@npm-questionpro/wick-ui-lib 0.1.2 → 0.2.3
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/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/src/base/ui/avatar.d.ts +6 -0
- package/dist/src/base/ui/breadcrumb.d.ts +19 -0
- package/dist/src/base/ui/button.d.ts +5 -6
- package/dist/src/base/ui/dialog.d.ts +21 -0
- package/dist/src/base/ui/dropdownMenu.d.ts +28 -0
- package/dist/src/base/ui/input.d.ts +3 -0
- package/dist/src/base/ui/menubar.d.ts +28 -0
- package/dist/src/base/ui/popover.d.ts +6 -0
- package/dist/src/base/ui/scrollArea.d.ts +5 -0
- package/dist/src/base/ui/select.d.ts +13 -0
- package/dist/src/base/ui/textarea.d.ts +3 -0
- package/dist/src/base/ui/toast.d.ts +5 -5
- package/dist/src/base/ui/toaster.d.ts +1 -1
- package/dist/src/base/ui/toggle.d.ts +12 -0
- package/dist/src/base/ui/toggleGroup.d.ts +12 -0
- package/dist/src/base/ui/useToast.d.ts +40 -0
- package/dist/src/components/appHeader/WuAppHeader.d.ts +15 -0
- package/dist/src/components/appHeader/WuAppHeader.test.d.ts +1 -0
- package/dist/src/components/appHeader/index.d.ts +7 -0
- package/dist/src/components/appHeader/types/WuAppHeaderAccount.d.ts +44 -0
- package/dist/src/components/appHeader/types/WuAppHeaderBreadcrumbItem.d.ts +7 -0
- package/dist/src/components/appHeader/types/WuAppHeaderHelpMenu.d.ts +7 -0
- package/dist/src/components/appHeader/types/WuAppHeaderMenuItem.d.ts +16 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderAccount.d.ts +8 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderBreadcrumb.d.ts +6 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderHelp.d.ts +6 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderMenu.d.ts +9 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderSearch.d.ts +6 -0
- package/dist/src/components/appHeader/utils/dataFromApi.d.ts +4 -0
- package/dist/src/components/button/WuButton.d.ts +4 -8
- package/dist/src/components/button/index.d.ts +0 -4
- package/dist/src/components/checkbox/WuCheckbox.d.ts +1 -0
- package/dist/src/components/formFields/WuFormFields.test.d.ts +1 -0
- package/dist/src/components/formFields/WuInput.d.ts +15 -0
- package/dist/src/components/formFields/WuInputError.d.ts +3 -0
- package/dist/src/components/formFields/WuInputHint.d.ts +5 -0
- package/dist/src/components/formFields/WuTextarea.d.ts +7 -0
- package/dist/src/components/formFields/index.d.ts +4 -0
- package/dist/src/components/helpButton/WuHelpButton.d.ts +8 -0
- package/dist/src/components/helpButton/WuHelpButton.test.d.ts +1 -0
- package/dist/src/components/helpButton/index.d.ts +2 -0
- package/dist/src/components/icon/WuIcon.d.ts +8 -0
- package/dist/src/components/icon/WuIcon.test.d.ts +1 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/loader/WuLoader.d.ts +8 -0
- package/dist/src/components/loader/WuLoader.test.d.ts +1 -0
- package/dist/src/components/loader/index.d.ts +2 -0
- package/dist/src/components/menu/WuMenu.d.ts +14 -0
- package/dist/src/components/menu/WuMenu.test.d.ts +1 -0
- package/dist/src/components/menu/WuMenuItemGroup.d.ts +3 -0
- package/dist/src/components/menu/WuMenuSeparatorItem.d.ts +3 -0
- package/dist/src/components/menu/WuSubMenu.d.ts +5 -0
- package/dist/src/components/menu/index.d.ts +10 -0
- package/dist/src/components/menu/ui/WuMenuCheckboxItem.d.ts +8 -0
- package/dist/src/components/menu/ui/WuMenuItem.d.ts +8 -0
- package/dist/src/components/menu/ui/WuMenuItemGroup.d.ts +5 -0
- package/dist/src/components/menu/ui/WuMenuRadioItem.d.ts +11 -0
- package/dist/src/components/menu/ui/WuMenuSeparatorItem.d.ts +3 -0
- package/dist/src/components/menu/ui/WuSubMenu.d.ts +9 -0
- package/dist/src/components/modal/WuModal.d.ts +26 -0
- package/dist/src/components/modal/WuModal.test.d.ts +1 -0
- package/dist/src/components/modal/index.d.ts +2 -0
- package/dist/src/components/radio/WuRadio.d.ts +2 -2
- package/dist/src/components/select/WuSelect.d.ts +15 -0
- package/dist/src/components/select/WuSelect.test.d.ts +1 -0
- package/dist/src/components/select/hooks/useOptionDestructure.d.ts +3 -0
- package/dist/src/components/select/index.d.ts +3 -0
- package/dist/src/components/select/types/IWuMultipleCheck.d.ts +1 -0
- package/dist/src/components/select/types/IWuSelectOptions.d.ts +19 -0
- package/dist/src/components/select/ui/WuSelectItem.d.ts +10 -0
- package/dist/src/components/select/ui/WuSelectTrigger.d.ts +12 -0
- package/dist/src/components/stepper/WuStepper.d.ts +10 -0
- package/dist/src/components/stepper/WuStepper.test.d.ts +1 -0
- package/dist/src/components/stepper/index.d.ts +2 -0
- package/dist/src/components/switcher/WuSwitcher.d.ts +10 -0
- package/dist/src/components/switcher/WuSwitcher.test.d.ts +1 -0
- package/dist/src/components/switcher/index.d.ts +4 -0
- package/dist/src/components/switcher/types/IWuSwitcherOption.d.ts +4 -0
- package/dist/src/components/switcher/types/IWuSwitcherOptions.d.ts +6 -0
- package/dist/src/components/toast/WuToast.d.ts +1 -1
- package/dist/src/components/toggle/WuToggle.d.ts +2 -2
- package/dist/src/components/virtualScroll/WuVirtualScroll.d.ts +9 -0
- package/dist/src/components/virtualScroll/WuVirtualScroll.test.d.ts +1 -0
- package/dist/src/components/virtualScroll/index.d.ts +2 -0
- package/dist/src/docs/Theme.d.ts +2 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useAnimation.d.ts +9 -0
- package/dist/src/index.d.ts +12 -2
- package/dist/src/lib/testUtils.d.ts +4 -0
- package/dist/src/lib/utils.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +11654 -3994
- package/dist/wick-ui-lib/es/index.js.map +1 -1
- package/dist/wick-ui-lib/umd/index.js +95 -7
- package/dist/wick-ui-lib/umd/index.js.map +1 -1
- package/package.json +63 -48
- package/dist/src/base/ui/use-toast.d.ts +0 -44
- package/dist/src/components/button/types/WuButtonColorEnum.d.ts +0 -5
- package/dist/src/components/button/types/WuButtonIconPositionEnum.d.ts +0 -4
- package/dist/src/components/button/types/WuButtonSizeEnum.d.ts +0 -5
- package/dist/src/components/button/types/WuButtonVariantEnum.d.ts +0 -8
- package/dist/src/components/spinner/WuSpinner.d.ts +0 -12
- package/dist/src/components/spinner/index.d.ts +0 -3
- package/dist/src/components/spinner/types/WuSpinnerSizeEnum.d.ts +0 -5
- /package/dist/src/base/ui/{radio-group.d.ts → radioGroup.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,72 +1,104 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm-questionpro/wick-ui-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"description": "A React UI library for building web applications with ease.",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "./dist/
|
|
8
|
-
"module": "./dist/
|
|
7
|
+
"main": "./dist/wick-ui-lib/umd/index.js",
|
|
8
|
+
"module": "./dist/wick-ui-lib/es/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/
|
|
14
|
-
"require": "./dist/
|
|
13
|
+
"import": "./dist/wick-ui-lib/es/index.js",
|
|
14
|
+
"require": "./dist/wick-ui-lib/umd/index.js"
|
|
15
15
|
},
|
|
16
16
|
"./dist/style.css": "./dist/style.css"
|
|
17
17
|
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc -b && vite build",
|
|
20
|
+
"lint": "eslint ./src --fix",
|
|
21
|
+
"lint:ci": "tsc --noEmit && eslint --max-warnings 0 ./src",
|
|
22
|
+
"format": "prettier --write .",
|
|
23
|
+
"format:ci": "prettier --check .",
|
|
24
|
+
"preview": "vite preview",
|
|
25
|
+
"dev": "storybook dev -p 6006",
|
|
26
|
+
"build-storybook": "storybook build",
|
|
27
|
+
"prepare": "husky",
|
|
28
|
+
"test": "vitest",
|
|
29
|
+
"test:ui": "vitest --ui",
|
|
30
|
+
"test:ci": "vitest --coverage"
|
|
31
|
+
},
|
|
18
32
|
"devDependencies": {
|
|
33
|
+
"@eslint/js": "^9.11.1",
|
|
34
|
+
"@radix-ui/react-avatar": "^1.1.0",
|
|
19
35
|
"@radix-ui/react-checkbox": "^1.1.1",
|
|
36
|
+
"@radix-ui/react-dialog": "^1.1.1",
|
|
37
|
+
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
38
|
+
"@radix-ui/react-label": "^2.1.0",
|
|
39
|
+
"@radix-ui/react-menubar": "^1.1.1",
|
|
40
|
+
"@radix-ui/react-popover": "^1.1.1",
|
|
41
|
+
"@radix-ui/react-radio-group": "^1.2.0",
|
|
42
|
+
"@radix-ui/react-scroll-area": "^1.1.0",
|
|
43
|
+
"@radix-ui/react-select": "^2.1.1",
|
|
20
44
|
"@radix-ui/react-slot": "^1.1.0",
|
|
21
45
|
"@radix-ui/react-switch": "^1.1.0",
|
|
22
46
|
"@radix-ui/react-toast": "^1.2.1",
|
|
47
|
+
"@radix-ui/react-toggle": "^1.1.0",
|
|
48
|
+
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
23
49
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
24
|
-
"@storybook/addon-a11y": "^8.
|
|
25
|
-
"@storybook/addon-essentials": "^8.
|
|
26
|
-
"@storybook/addon-links": "^8.
|
|
27
|
-
"@storybook/addon-storysource": "^8.
|
|
28
|
-
"@storybook/blocks": "^8.
|
|
29
|
-
"@storybook/
|
|
30
|
-
"@storybook/react
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
50
|
+
"@storybook/addon-a11y": "^8.2.6",
|
|
51
|
+
"@storybook/addon-essentials": "^8.2.6",
|
|
52
|
+
"@storybook/addon-links": "^8.2.6",
|
|
53
|
+
"@storybook/addon-storysource": "^8.2.6",
|
|
54
|
+
"@storybook/blocks": "^8.2.6",
|
|
55
|
+
"@storybook/manager-api": "^8.2.6",
|
|
56
|
+
"@storybook/react": "^8.2.6",
|
|
57
|
+
"@storybook/react-vite": "^8.2.6",
|
|
58
|
+
"@storybook/theming": "^8.2.6",
|
|
59
|
+
"@testing-library/dom": "^10.4.0",
|
|
60
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
33
61
|
"@testing-library/react": "^16.0.0",
|
|
34
62
|
"@testing-library/user-event": "^14.5.2",
|
|
35
|
-
"@types/node": "^20.14.
|
|
63
|
+
"@types/node": "^20.14.12",
|
|
36
64
|
"@types/react": "^18.3.3",
|
|
37
65
|
"@types/react-dom": "^18.3.0",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
39
|
-
"@typescript-eslint/parser": "^7.
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
|
67
|
+
"@typescript-eslint/parser": "^7.17.0",
|
|
40
68
|
"@vitejs/plugin-react": "^4.3.1",
|
|
41
|
-
"@vitest/coverage-v8": "^2.0.
|
|
42
|
-
"@vitest/ui": "^2.0.
|
|
69
|
+
"@vitest/coverage-v8": "^2.0.4",
|
|
70
|
+
"@vitest/ui": "^2.0.4",
|
|
43
71
|
"autoprefixer": "^10.4.19",
|
|
44
72
|
"class-variance-authority": "^0.7.0",
|
|
45
73
|
"clsx": "^2.1.1",
|
|
46
74
|
"eslint": "^8.57.0",
|
|
47
75
|
"eslint-plugin-import": "^2.29.1",
|
|
76
|
+
"eslint-plugin-react": "^7.37.0",
|
|
48
77
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
49
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
78
|
+
"eslint-plugin-react-refresh": "^0.4.9",
|
|
50
79
|
"eslint-plugin-storybook": "^0.8.0",
|
|
51
80
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
81
|
+
"globals": "^15.9.0",
|
|
82
|
+
"husky": "^9.1.2",
|
|
83
|
+
"jsdom": "^24.1.1",
|
|
54
84
|
"lint-staged": "^15.2.7",
|
|
55
85
|
"lucide-react": "^0.399.0",
|
|
56
|
-
"postcss": "^8.4.
|
|
57
|
-
"prettier": "^3.3.
|
|
86
|
+
"postcss": "^8.4.40",
|
|
87
|
+
"prettier": "^3.3.3",
|
|
58
88
|
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
59
89
|
"react": "^18.3.1",
|
|
60
90
|
"react-dom": "^18.3.1",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
91
|
+
"react-virtuoso": "^4.10.4",
|
|
92
|
+
"storybook": "^8.2.6",
|
|
93
|
+
"tailwind-merge": "^2.4.0",
|
|
94
|
+
"tailwindcss": "^3.4.7",
|
|
64
95
|
"tailwindcss-animate": "^1.0.7",
|
|
65
|
-
"typescript": "^5.
|
|
66
|
-
"
|
|
96
|
+
"typescript": "^5.5.4",
|
|
97
|
+
"typescript-eslint": "^8.8.0",
|
|
98
|
+
"vite": "^5.3.5",
|
|
67
99
|
"vite-plugin-dts": "^3.9.1",
|
|
68
100
|
"vite-tsconfig-paths": "^4.3.2",
|
|
69
|
-
"vitest": "^2.0.
|
|
101
|
+
"vitest": "^2.0.4"
|
|
70
102
|
},
|
|
71
103
|
"peerDependencies": {
|
|
72
104
|
"react": "^18.3.1",
|
|
@@ -80,22 +112,5 @@
|
|
|
80
112
|
"prettier -w",
|
|
81
113
|
"eslint --fix"
|
|
82
114
|
]
|
|
83
|
-
},
|
|
84
|
-
"dependencies": {
|
|
85
|
-
"@radix-ui/react-label": "^2.1.0",
|
|
86
|
-
"@radix-ui/react-radio-group": "^1.2.0"
|
|
87
|
-
},
|
|
88
|
-
"scripts": {
|
|
89
|
-
"build": "tsc -b && vite build",
|
|
90
|
-
"lint": "eslint",
|
|
91
|
-
"lint:ci": "eslint --max-warnings 0",
|
|
92
|
-
"format": "prettier --write .",
|
|
93
|
-
"format:ci": "prettier --check .",
|
|
94
|
-
"preview": "vite preview",
|
|
95
|
-
"dev": "storybook dev -p 6006",
|
|
96
|
-
"build-storybook": "storybook build",
|
|
97
|
-
"test": "vitest",
|
|
98
|
-
"test:ui": "vitest --ui",
|
|
99
|
-
"test:ci": "vitest run --coverage"
|
|
100
115
|
}
|
|
101
|
-
}
|
|
116
|
+
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ToastActionElement, ToastProps } from './toast';
|
|
2
|
-
|
|
3
|
-
type ToasterToast = ToastProps & {
|
|
4
|
-
id: string;
|
|
5
|
-
title?: React.ReactNode;
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
action?: ToastActionElement;
|
|
8
|
-
};
|
|
9
|
-
declare const actionTypes: {
|
|
10
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
11
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
12
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
13
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
14
|
-
};
|
|
15
|
-
type ActionType = typeof actionTypes;
|
|
16
|
-
type Action = {
|
|
17
|
-
type: ActionType['ADD_TOAST'];
|
|
18
|
-
toast: ToasterToast;
|
|
19
|
-
} | {
|
|
20
|
-
type: ActionType['UPDATE_TOAST'];
|
|
21
|
-
toast: Partial<ToasterToast>;
|
|
22
|
-
} | {
|
|
23
|
-
type: ActionType['DISMISS_TOAST'];
|
|
24
|
-
toastId?: ToasterToast['id'];
|
|
25
|
-
} | {
|
|
26
|
-
type: ActionType['REMOVE_TOAST'];
|
|
27
|
-
toastId?: ToasterToast['id'];
|
|
28
|
-
};
|
|
29
|
-
interface State {
|
|
30
|
-
toasts: ToasterToast[];
|
|
31
|
-
}
|
|
32
|
-
export declare const reducer: (state: State, action: Action) => State;
|
|
33
|
-
type Toast = Omit<ToasterToast, 'id'>;
|
|
34
|
-
declare function toast({ ...props }: Toast): {
|
|
35
|
-
id: string;
|
|
36
|
-
dismiss: () => void;
|
|
37
|
-
update: (props: ToasterToast) => void;
|
|
38
|
-
};
|
|
39
|
-
declare function useToast(): {
|
|
40
|
-
toast: typeof toast;
|
|
41
|
-
dismiss: (toastId?: string) => void;
|
|
42
|
-
toasts: ToasterToast[];
|
|
43
|
-
};
|
|
44
|
-
export { toast, useToast };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { WuSpinnerSizeEnum } from './types/WuSpinnerSizeEnum';
|
|
3
|
-
|
|
4
|
-
export interface IWuSpinnerProps {
|
|
5
|
-
size?: WuSpinnerSizeEnum | string;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
color?: string;
|
|
9
|
-
ariaLabel?: string;
|
|
10
|
-
message?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const WuSpinner: React.FC<IWuSpinnerProps>;
|
|
File without changes
|