chop-logic-components 0.1.0 → 0.3.0
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/dist/components/button/Button.d.ts +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/inputs/checkbox/Checkbox.d.ts +10 -0
- package/dist/components/inputs/checkbox/__docs__/Checkbox.stories.d.ts +7 -0
- package/dist/components/inputs/checkbox/__docs__/Example.d.ts +5 -0
- package/dist/components/inputs/checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/components/inputs/select/Select.d.ts +15 -0
- package/dist/components/inputs/select/__docs__/Example.d.ts +5 -0
- package/dist/components/inputs/select/__docs__/Select.stories.d.ts +7 -0
- package/dist/components/inputs/select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/inputs/select/elements/Combobox.d.ts +15 -0
- package/dist/components/inputs/select/elements/Dropdown.d.ts +13 -0
- package/dist/components/inputs/select/elements/Option.d.ts +9 -0
- package/dist/components/{inputs → misc}/label/Label.d.ts +1 -0
- package/dist/enums/icon.d.ts +47 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +601 -409
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/__tests__/use-click-outside.test.d.ts +1 -0
- package/dist/utils/move-focus-on-element-by-id.d.ts +1 -0
- package/dist/utils/use-click-outside.d.ts +12 -0
- package/package.json +12 -11
- package/dist/assets/icons/utf-icons.d.ts +0 -20
- /package/dist/components/{inputs → misc}/error-message/ErrorMessage.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function moveFocusOnElementById(id: string): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Hook that handles clicks outside of the passed ref
|
|
5
|
+
*/
|
|
6
|
+
type UseClickOutsideParams = {
|
|
7
|
+
ref: React.MutableRefObject<any>;
|
|
8
|
+
onClickOutsideHandler: () => void;
|
|
9
|
+
dependentRef?: React.MutableRefObject<any>;
|
|
10
|
+
};
|
|
11
|
+
export declare const useClickOutside: ({ ref, onClickOutsideHandler, dependentRef }: UseClickOutsideParams) => void;
|
|
12
|
+
export {};
|
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": "0.
|
|
7
|
+
"version": "0.3.0",
|
|
8
8
|
"description": "React UI components library for Chop Logic project",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "dist/index.cjs.js",
|
|
@@ -44,17 +44,18 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/SavouryGin/chop-logic-components#readme",
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@chromatic-com/storybook": "^1.
|
|
47
|
+
"@chromatic-com/storybook": "^1.5.0",
|
|
48
48
|
"@commitlint/cli": "^19.3.0",
|
|
49
49
|
"@commitlint/config-conventional": "^19.2.2",
|
|
50
|
-
"@storybook/addon-essentials": "^8.
|
|
51
|
-
"@storybook/addon-interactions": "^8.
|
|
52
|
-
"@storybook/addon-links": "^8.
|
|
53
|
-
"@storybook/addon-
|
|
54
|
-
"@storybook/
|
|
55
|
-
"@storybook/
|
|
56
|
-
"@storybook/react
|
|
57
|
-
"@storybook/
|
|
50
|
+
"@storybook/addon-essentials": "^8.1.5",
|
|
51
|
+
"@storybook/addon-interactions": "^8.1.5",
|
|
52
|
+
"@storybook/addon-links": "^8.1.5",
|
|
53
|
+
"@storybook/addon-mdx-gfm": "^8.1.5",
|
|
54
|
+
"@storybook/addon-onboarding": "^8.1.5",
|
|
55
|
+
"@storybook/blocks": "^8.1.5",
|
|
56
|
+
"@storybook/react": "^8.1.5",
|
|
57
|
+
"@storybook/react-vite": "^8.1.5",
|
|
58
|
+
"@storybook/test": "^8.1.5",
|
|
58
59
|
"@testing-library/jest-dom": "^6.4.2",
|
|
59
60
|
"@testing-library/react": "^15.0.6",
|
|
60
61
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"jsdom": "^24.0.0",
|
|
73
74
|
"lint-staged": "^15.2.2",
|
|
74
75
|
"prettier": "^3.2.5",
|
|
75
|
-
"storybook": "^8.
|
|
76
|
+
"storybook": "^8.1.5",
|
|
76
77
|
"typescript": "^5.4.5",
|
|
77
78
|
"vite": "^5.2.10",
|
|
78
79
|
"vite-plugin-dts": "^3.9.0",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare enum UTFIcon {
|
|
2
|
-
CheckMark = 0,
|
|
3
|
-
Ballot = 1,
|
|
4
|
-
ClockwiseTop = 2,
|
|
5
|
-
ClockwiseOpen = 3,
|
|
6
|
-
Pencil = 4,
|
|
7
|
-
Rightwards = 5,
|
|
8
|
-
Leftwards = 6,
|
|
9
|
-
Upwards = 7,
|
|
10
|
-
Downwards = 8,
|
|
11
|
-
Copyright = 9,
|
|
12
|
-
Warning = 10,
|
|
13
|
-
Question = 11,
|
|
14
|
-
Envelope = 12,
|
|
15
|
-
Hart = 13,
|
|
16
|
-
Scissors = 14,
|
|
17
|
-
Star = 15
|
|
18
|
-
}
|
|
19
|
-
export type UTFIconNames = keyof typeof UTFIcon;
|
|
20
|
-
export declare const UTF_ICONS: Record<UTFIconNames, string>;
|
|
File without changes
|