Skip to content

Commit 7e3f7bb

Browse files
Small changes
1 parent 05c09b9 commit 7e3f7bb

File tree

7 files changed

+1286
-647
lines changed

7 files changed

+1286
-647
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"engines": {
77
"node": "20.x"
88
},
9-
"packageManager": "pnpm@9.14.2",
9+
"packageManager": "pnpm@9.15.1",
1010
"scripts": {
1111
"preinstall": "npx only-allow pnpm",
1212
"dev": "turbo dev",
@@ -26,14 +26,15 @@
2626
"release": "pnpm build:release && changeset version && changeset publish"
2727
},
2828
"devDependencies": {
29-
"@changesets/cli": "^2.27.10",
30-
"prettier": "^3.4.1",
29+
"@changesets/cli": "^2.27.11",
30+
"prettier": "^3.4.2",
3131
"turbo": "^2.3.3",
3232
"typescript": "^5.7.2"
3333
},
3434
"pnpm": {
3535
"overrides": {
36-
"cross-spawn@>=7.0.0 <7.0.5": ">=7.0.5"
36+
"cross-spawn@>=7.0.0 <7.0.5": ">=7.0.5",
37+
"nanoid@<3.3.8": ">=3.3.8"
3738
}
3839
}
3940
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# minimal-shared
22

3-
## 1.0.0
3+
## 1.0.4
4+
5+
_Jan 1, 2025_
6+
7+
- Update tests.
8+
- Update dependencies.
9+
10+
---
11+
12+
## 1.0.3
13+
14+
_Dec 6, 2024_
415

516
- Init

packages/minimal-shared/README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,12 @@ Shared hooks and utils used by Mnimal UI and Zone UI.
44

55
###### List of hooks
66

7-
- useTabs
8-
- useBoolean
9-
- usePopover
10-
- useCookies
11-
- useDebounce
12-
- useSetState
13-
- useIsClient
14-
- useBackToTop
15-
- useClientRect
16-
- useMultiSelect
17-
- useDoubleClick
18-
- useLocalStorage
19-
- usePopoverHover
20-
- useCountdownDate
21-
- useScrollOffsetTop
22-
- useCountdownSeconds
23-
- useCopyToClipboard
7+
[https://github.com/minimal-ui-kit/minimal-shared/tree/main/packages/minimal-shared/src/hooks](https://github.com/minimal-ui-kit/minimal-shared/tree/main/packages/minimal-shared/src/hooks)
8+
9+
###### List of utils
10+
11+
[https://github.com/minimal-ui-kit/minimal-shared/tree/main/packages/minimal-shared/src/utils](https://github.com/minimal-ui-kit/minimal-shared/tree/main/packages/minimal-shared/src/utils)
12+
13+
###### CHANGELOG
14+
15+
[https://github.com/minimal-ui-kit/minimal-shared/blob/main/packages/minimal-shared/CHANGELOG.md](https://github.com/minimal-ui-kit/minimal-shared/blob/main/packages/minimal-shared/CHANGELOG.md)

packages/minimal-shared/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "minimal-shared",
33
"author": "Minimals",
4-
"version": "1.0.3",
4+
"version": "1.0.4",
55
"description": "Shared hooks and utils used by Minimal UI and Zone UI.",
66
"keywords": [
77
"typescript",
@@ -66,15 +66,15 @@
6666
"tsc:print": "npx tsc --showConfig"
6767
},
6868
"dependencies": {
69-
"es-toolkit": "^1.27.0"
69+
"es-toolkit": "^1.30.1"
7070
},
7171
"devDependencies": {
7272
"@testing-library/jest-dom": "^6.6.3",
73-
"@testing-library/react": "^16.0.1",
73+
"@testing-library/react": "^16.1.0",
7474
"@types/fs-extra": "^11.0.4",
75-
"@types/node": "^22.10.0",
75+
"@types/node": "^22.10.2",
7676
"@types/react": "18.3.12",
77-
"chalk": "^5.3.0",
77+
"chalk": "^5.4.1",
7878
"fast-glob": "^3.3.2",
7979
"fs-extra": "^11.2.0",
8080
"glob": "^11.0.0",
@@ -84,9 +84,9 @@
8484
"react": "^18.3.1",
8585
"tsup": "^8.3.5",
8686
"typescript": "^5.7.2",
87-
"vitest": "^2.1.6"
87+
"vitest": "^2.1.8"
8888
},
8989
"peerDependencies": {
90-
"react": "^18"
90+
"react": "^18.0.0 || ^19.0.0"
9191
}
9292
}

packages/minimal-shared/src/utils/color/color.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,16 @@ export function varAlpha(color: string, opacity: number = 1): string {
107107

108108
if (unsupported) {
109109
throw new Error(
110-
`[Alpha]: Unsupported color format "${color}".
111-
Supported formats are:
112-
- RGB channels: "0 184 217".
113-
- CSS variables with "Channel" prefix: "var(--palette-common-blackChannel, #000000)".
114-
Unsupported formats are:
115-
- Hex: "#00B8D9".
116-
- RGB: "rgb(0, 184, 217)".
117-
- RGBA: "rgba(0, 184, 217, 1)".
118-
`
110+
[
111+
`[Alpha]: Unsupported color format "${color}"`,
112+
'Supported formats are:',
113+
'- RGB channels: "0 184 217"',
114+
'- CSS variables with "Channel" prefix: "var(--palette-common-blackChannel, #000000)"',
115+
'Unsupported formats are:',
116+
'- Hex: "#00B8D9"',
117+
'- RGB: "rgb(0, 184, 217)"',
118+
'- RGBA: "rgba(0, 184, 217, 1)"',
119+
].join('\n')
119120
);
120121
}
121122

packages/minimal-shared/tests/highlight-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import chalk from 'chalk';
33
// ----------------------------------------------------------------------
44

55
export const highlightText = {
6-
value: (text: string) => `${chalk.yellowBright(text)}`,
6+
val: (text: string) => `${chalk.yellowBright(text)}`,
77
fn: (text: string) => `${chalk.magenta(text)}`,
88
};

0 commit comments

Comments
 (0)