chop-logic-components 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -26
- package/dist/components/containers/form/Form.styled.d.ts +0 -1
- package/dist/components/containers/form/types.d.ts +4 -1
- package/dist/components/containers/grid/Grid.styled.d.ts +0 -1
- package/dist/components/containers/grid/types.d.ts +3 -6
- package/dist/components/containers/tabs/types.d.ts +3 -2
- package/dist/components/inputs/_common/error-message/ErrorMessage.styled.d.ts +0 -1
- package/dist/components/inputs/_common/input-inner-button/InputInnerButton.styled.d.ts +0 -1
- package/dist/components/inputs/_common/label/Label.styled.d.ts +0 -1
- package/dist/components/inputs/button/types.d.ts +3 -2
- package/dist/components/inputs/checkbox/Checkbox.styled.d.ts +0 -1
- package/dist/components/inputs/checkbox/controller.d.ts +0 -1
- package/dist/components/inputs/checkbox/types.d.ts +5 -4
- package/dist/components/inputs/multi-select/MultiSelect.styled.d.ts +0 -1
- package/dist/components/inputs/multi-select/types.d.ts +3 -3
- package/dist/components/inputs/numeric/NumericInput.styled.d.ts +0 -1
- package/dist/components/inputs/numeric/types.d.ts +11 -5
- package/dist/components/inputs/select/Select.styled.d.ts +0 -1
- package/dist/components/inputs/select/types.d.ts +4 -4
- package/dist/components/inputs/text/TextInput.styled.d.ts +0 -1
- package/dist/components/inputs/text/types.d.ts +11 -2
- package/dist/components/modals/alert/Alert.styled.d.ts +0 -1
- package/dist/components/modals/alert/types.d.ts +2 -2
- package/dist/components/modals/dialog/Dialog.styled.d.ts +0 -1
- package/dist/components/modals/dialog/types.d.ts +2 -1
- package/dist/components/modals/tooltip/Tooltip.styled.d.ts +0 -1
- package/dist/components/modals/tooltip/controller.d.ts +0 -1
- package/dist/components/modals/tooltip/types.d.ts +2 -1
- package/dist/constants/style-variables.d.ts +2 -2
- package/dist/favicon.ico +0 -0
- package/dist/hooks/use-modal-focus-trap/index.d.ts +0 -1
- package/dist/hooks/use-tooltip-position/index.d.ts +0 -1
- package/dist/index.cjs.js +92 -92
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3026 -3050
- package/dist/index.es.js.map +1 -1
- package/dist/logo.png +0 -0
- package/dist/utils/__tests__/get-initial-color-mode.test.d.ts +1 -0
- package/dist/utils/get-initial-color-mode.d.ts +1 -0
- package/dist/utils/types.d.ts +13 -0
- package/package.json +14 -15
package/dist/logo.png
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getInitialColorMode(): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type CommonComponentProps = {
|
|
2
|
+
id?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
tabIndex?: number;
|
|
6
|
+
title?: string;
|
|
7
|
+
};
|
|
8
|
+
export type CommonInputProps = CommonComponentProps & {
|
|
9
|
+
label: string;
|
|
10
|
+
name: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/SavouryGin/chop-logic-components.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.5",
|
|
8
8
|
"description": "React UI components library for Chop Logic project",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "dist/index.cjs.js",
|
|
@@ -20,15 +20,13 @@
|
|
|
20
20
|
"build": "tsc && vite build",
|
|
21
21
|
"test": "vitest",
|
|
22
22
|
"test:ci": "vitest run",
|
|
23
|
-
"coverage": "vitest run --coverage",
|
|
24
23
|
"storybook": "storybook dev -p 6006",
|
|
25
24
|
"build-storybook": "storybook build -- -o storybook-static --quiet",
|
|
26
25
|
"prepare": "npm run build && husky install"
|
|
27
26
|
},
|
|
28
27
|
"lint-staged": {
|
|
29
28
|
"*.{ts,tsx}": [
|
|
30
|
-
"npm run lint"
|
|
31
|
-
"npm run test:ci"
|
|
29
|
+
"npm run lint"
|
|
32
30
|
]
|
|
33
31
|
},
|
|
34
32
|
"keywords": [
|
|
@@ -42,18 +40,19 @@
|
|
|
42
40
|
"bugs": {
|
|
43
41
|
"url": "https://github.com/SavouryGin/chop-logic-components/issues"
|
|
44
42
|
},
|
|
45
|
-
"homepage": "https://github.
|
|
43
|
+
"homepage": "https://savourygin.github.io/chop-logic-components",
|
|
46
44
|
"devDependencies": {
|
|
47
|
-
"@chromatic-com/storybook": "^
|
|
45
|
+
"@chromatic-com/storybook": "^3.1.0",
|
|
48
46
|
"@commitlint/cli": "^19.3.0",
|
|
49
47
|
"@commitlint/config-conventional": "^19.2.2",
|
|
50
|
-
"@storybook/addon-essentials": "^8.3.
|
|
51
|
-
"@storybook/addon-interactions": "^8.3.
|
|
52
|
-
"@storybook/addon-links": "^8.3.
|
|
53
|
-
"@storybook/
|
|
54
|
-
"@storybook/
|
|
55
|
-
"@storybook/react
|
|
56
|
-
"@storybook/
|
|
48
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
49
|
+
"@storybook/addon-interactions": "^8.3.6",
|
|
50
|
+
"@storybook/addon-links": "^8.3.6",
|
|
51
|
+
"@storybook/addon-mdx-gfm": "^8.3.6",
|
|
52
|
+
"@storybook/blocks": "^8.3.6",
|
|
53
|
+
"@storybook/react": "^8.3.6",
|
|
54
|
+
"@storybook/react-vite": "^8.3.6",
|
|
55
|
+
"@storybook/test": "^8.3.6",
|
|
57
56
|
"@testing-library/jest-dom": "^6.4.2",
|
|
58
57
|
"@testing-library/react": "^15.0.6",
|
|
59
58
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -67,13 +66,13 @@
|
|
|
67
66
|
"eslint-plugin-react": "^7.34.1",
|
|
68
67
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
69
68
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
70
|
-
"eslint-plugin-storybook": "^0.
|
|
69
|
+
"eslint-plugin-storybook": "^0.10.1",
|
|
71
70
|
"husky": "^8.0.0",
|
|
72
71
|
"husky-init": "^8.0.0",
|
|
73
72
|
"jsdom": "^24.0.0",
|
|
74
73
|
"lint-staged": "^15.2.2",
|
|
75
74
|
"prettier": "^3.2.5",
|
|
76
|
-
"storybook": "^8.3.
|
|
75
|
+
"storybook": "^8.3.6",
|
|
77
76
|
"styled-components": "^6.1.12",
|
|
78
77
|
"typescript": "^5.4.5",
|
|
79
78
|
"vite": "^5.2.10",
|