@sqrzro/ui 4.0.0-alpha.2 → 4.0.0-alpha.21
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/buttons/ActionButton/index.d.ts +6 -6
- package/dist/components/buttons/ActionButton/index.js +3 -27
- package/dist/components/buttons/Button/index.d.ts +5 -5
- package/dist/components/buttons/Button/index.js +6 -16
- package/dist/components/collections/Collection/index.d.ts +9 -3
- package/dist/components/collections/Collection/index.js +4 -4
- package/dist/components/collections/DataTable/index.d.ts +14 -0
- package/dist/components/collections/DataTable/index.js +9 -0
- package/dist/components/collections/EmptyMessage/index.d.ts +1 -1
- package/dist/components/collections/EmptyMessage/index.js +3 -4
- package/dist/components/collections/EmptyMessageAction/index.d.ts +2 -2
- package/dist/components/collections/EmptyMessageAction/index.js +1 -1
- package/dist/components/collections/List/index.d.ts +5 -3
- package/dist/components/collections/List/index.js +8 -2
- package/dist/components/collections/ListItem/index.d.ts +2 -2
- package/dist/components/collections/ListItem/index.js +6 -10
- package/dist/components/collections/ListItemMenu/index.d.ts +7 -0
- package/dist/components/collections/ListItemMenu/index.js +7 -0
- package/dist/components/collections/ListItemMeta/index.d.ts +6 -4
- package/dist/components/collections/ListItemMeta/index.js +12 -7
- package/dist/components/collections/ListItemSecondary/index.d.ts +1 -1
- package/dist/components/collections/ListItemSecondary/index.js +3 -4
- package/dist/components/collections/Pagination/index.d.ts +1 -1
- package/dist/components/collections/Pagination/index.js +5 -6
- package/dist/components/collections/PaginationLink/index.d.ts +9 -0
- package/dist/components/collections/PaginationLink/index.js +8 -0
- package/dist/components/collections/Table/index.d.ts +3 -3
- package/dist/components/collections/Table/index.js +1 -1
- package/dist/components/collections/TableClientComponent/index.d.ts +4 -4
- package/dist/components/collections/TableClientComponent/index.js +5 -10
- package/dist/components/collections/TableRow/index.d.ts +13 -0
- package/dist/components/collections/TableRow/index.js +9 -0
- package/dist/components/collections/interfaces.d.ts +19 -17
- package/dist/components/collections/utility/is-data-table-array.d.ts +3 -0
- package/dist/components/collections/utility/is-data-table-array.js +5 -0
- package/dist/components/collections/utility/is-data-table-object.d.ts +3 -0
- package/dist/components/collections/utility/is-data-table-object.js +4 -0
- package/dist/components/errors/AppError/index.d.ts +19 -0
- package/dist/components/errors/AppError/index.js +8 -0
- package/dist/components/errors/AppForbiddenError/index.d.ts +7 -0
- package/dist/components/errors/AppForbiddenError/index.js +6 -0
- package/dist/components/errors/AppNotFoundError/index.d.ts +7 -0
- package/dist/components/errors/AppNotFoundError/index.js +6 -0
- package/dist/components/errors/AppServerError/index.d.ts +8 -0
- package/dist/components/errors/AppServerError/index.js +17 -0
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.js +9 -0
- package/dist/components/modals/ConfirmModal/index.d.ts +3 -1
- package/dist/components/modals/ConfirmModal/index.js +3 -3
- package/dist/components/modals/Modal/index.d.ts +4 -4
- package/dist/components/modals/Modal/index.js +3 -3
- package/dist/components/modals/ModalActions/index.d.ts +3 -3
- package/dist/components/modals/ModalActions/index.js +3 -3
- package/dist/components/utility/Action/index.d.ts +11 -0
- package/dist/components/utility/Action/index.js +44 -0
- package/dist/components/utility/ActionList/index.d.ts +3 -3
- package/dist/components/utility/ActionList/index.js +3 -3
- package/dist/components/utility/ClassNamesClientComponent/index.d.ts +6 -0
- package/dist/components/utility/ClassNamesClientComponent/index.js +7 -0
- package/dist/components/utility/Confirmable/index.d.ts +9 -0
- package/dist/components/utility/Confirmable/index.js +14 -0
- package/dist/components/utility/Container/index.d.ts +1 -1
- package/dist/components/utility/Container/index.js +2 -2
- package/dist/components/utility/Link/index.d.ts +1 -1
- package/dist/components/utility/Link/index.js +3 -3
- package/dist/components/utility/Loader/index.d.ts +1 -1
- package/dist/components/utility/Loader/index.js +4 -4
- package/dist/components/utility/Menu/index.d.ts +11 -0
- package/dist/components/utility/Menu/index.js +15 -0
- package/dist/components/utility/MenuItem/index.d.ts +4 -0
- package/dist/components/utility/MenuItem/index.js +9 -0
- package/dist/components/utility/Popover/index.d.ts +1 -1
- package/dist/components/utility/Popover/index.js +4 -4
- package/dist/components/utility/Reference/index.d.ts +9 -0
- package/dist/components/utility/Reference/index.js +15 -0
- package/dist/components/utility/RootLayout/index.d.ts +6 -3
- package/dist/components/utility/RootLayout/index.js +7 -6
- package/dist/components/utility/Toast/index.d.ts +1 -1
- package/dist/components/utility/Toast/index.js +2 -2
- package/dist/filters/components/FilterBarClientComponent/index.d.ts +1 -1
- package/dist/filters/components/FilterBarClientComponent/index.js +2 -2
- package/dist/filters/components/FilterControl/index.d.ts +1 -1
- package/dist/filters/components/FilterControl/index.js +7 -4
- package/dist/filters/components/FilterItem/index.d.ts +1 -1
- package/dist/filters/components/FilterItem/index.js +2 -2
- package/dist/filters/components/FilterPanel/index.d.ts +1 -1
- package/dist/filters/filters/Filter/index.d.ts +1 -1
- package/dist/filters/filters/Filter/index.js +3 -4
- package/dist/filters/filters/SearchFilter/index.js +1 -1
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/index.js +1 -0
- package/dist/filters/interfaces.d.ts +2 -2
- package/dist/filters/utility/parse-filters.d.ts +1 -1
- package/dist/filters/utility/parse-filters.js +3 -2
- package/dist/filters/utility/transform-boolean.d.ts +1 -1
- package/dist/filters/utility/transform-date.d.ts +1 -1
- package/dist/filters/utility/transform-multi.d.ts +1 -1
- package/dist/forms/components/Autocomplete/index.d.ts +11 -0
- package/dist/forms/components/Autocomplete/index.js +37 -0
- package/dist/forms/components/Dropdown/index.d.ts +1 -1
- package/dist/forms/components/Dropdown/index.js +8 -5
- package/dist/forms/components/DropdownItem/index.d.ts +9 -0
- package/dist/forms/components/DropdownItem/index.js +8 -0
- package/dist/forms/components/DropdownList/index.d.ts +1 -1
- package/dist/forms/components/DropdownList/index.js +5 -8
- package/dist/forms/components/EditableForm/index.d.ts +3 -3
- package/dist/forms/components/EditableForm/index.js +3 -4
- package/dist/forms/components/EditableFormField/index.d.ts +1 -1
- package/dist/forms/components/EditableFormField/index.js +2 -2
- package/dist/forms/components/Form/index.d.ts +3 -2
- package/dist/forms/components/Form/index.js +5 -5
- package/dist/forms/components/FormError/index.d.ts +1 -1
- package/dist/forms/components/FormError/index.js +3 -3
- package/dist/forms/components/FormField/index.d.ts +4 -4
- package/dist/forms/components/FormField/index.js +7 -6
- package/dist/forms/components/FormFields/index.d.ts +9 -0
- package/dist/forms/components/FormFields/index.js +18 -0
- package/dist/forms/components/FormLabel/index.d.ts +1 -1
- package/dist/forms/components/FormLabel/index.js +3 -3
- package/dist/forms/components/ModalForm/index.js +1 -1
- package/dist/forms/components/NumberInput/index.d.ts +7 -0
- package/dist/forms/components/NumberInput/index.js +27 -0
- package/dist/forms/components/PasswordComplexity/index.d.ts +9 -0
- package/dist/forms/components/PasswordComplexity/index.js +10 -0
- package/dist/forms/components/PasswordInput/index.d.ts +1 -1
- package/dist/forms/components/PasswordInput/index.js +4 -5
- package/dist/forms/components/PointsInput/index.d.ts +5 -0
- package/dist/forms/components/PointsInput/index.js +22 -0
- package/dist/forms/components/StaticTextInput/index.d.ts +2 -3
- package/dist/forms/components/StaticTextInput/index.js +5 -8
- package/dist/forms/components/Switch/index.d.ts +1 -1
- package/dist/forms/components/Switch/index.js +4 -4
- package/dist/forms/components/TextInput/index.d.ts +2 -2
- package/dist/forms/components/TextInput/index.js +6 -6
- package/dist/forms/hooks/useAutocomplete.d.ts +9 -0
- package/dist/forms/hooks/useAutocomplete.js +31 -0
- package/dist/forms/hooks/useDropdown.d.ts +2 -2
- package/dist/forms/hooks/useForm.d.ts +1 -1
- package/dist/forms/hooks/useForm.js +5 -4
- package/dist/forms/hooks/useModalForm.d.ts +2 -2
- package/dist/forms/index.d.ts +18 -2
- package/dist/forms/index.js +7 -2
- package/dist/forms/interfaces.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +2 -1
- package/dist/hooks/useConfirmable.d.ts +21 -0
- package/dist/hooks/useConfirmable.js +58 -0
- package/dist/hooks/usePopover.d.ts +11 -0
- package/dist/hooks/usePopover.js +17 -0
- package/dist/hooks/useServerAction.d.ts +9 -0
- package/dist/hooks/useServerAction.js +15 -0
- package/dist/navigation/components/AppNavigation/index.d.ts +2 -1
- package/dist/navigation/components/AppNavigation/index.js +4 -4
- package/dist/navigation/components/AppNavigationItem/index.d.ts +5 -3
- package/dist/navigation/components/AppNavigationItem/index.js +13 -6
- package/dist/navigation/components/Tabs/index.js +1 -4
- package/dist/navigation/hooks/useNavigation.d.ts +3 -3
- package/dist/navigation/hooks/useNavigation.js +5 -5
- package/dist/styles/classnames/apply-variants.d.ts +3 -0
- package/dist/styles/classnames/apply-variants.js +25 -0
- package/dist/styles/classnames/config.d.ts +69 -0
- package/dist/styles/classnames/index.d.ts +7 -0
- package/dist/styles/classnames/index.js +37 -0
- package/dist/styles/classnames/interfaces.d.ts +56 -0
- package/dist/styles/classnames/interfaces.js +1 -0
- package/dist/styles/classnames/utility/is-classname-object.d.ts +3 -0
- package/dist/styles/classnames/utility/is-classname-object.js +7 -0
- package/dist/styles/icons/config.d.ts +9 -0
- package/dist/styles/icons/config.js +1 -0
- package/dist/styles/icons/index.d.ts +4 -0
- package/dist/styles/icons/interfaces.d.ts +4 -0
- package/dist/styles/icons/interfaces.js +1 -0
- package/dist/styles/index.d.ts +2 -2
- package/dist/styles/index.js +1 -1
- package/dist/styles/styles.css +59 -0
- package/dist/utility/interfaces.d.ts +19 -8
- package/package.json +9 -4
- package/dist/components/buttons/ConfirmableButton/index.d.ts +0 -7
- package/dist/components/buttons/ConfirmableButton/index.js +0 -13
- package/dist/components/collections/ListClientComponent/index.d.ts +0 -7
- package/dist/components/collections/ListClientComponent/index.js +0 -9
- package/dist/components/collections/utility/filter-columns.d.ts +0 -3
- package/dist/components/collections/utility/filter-columns.js +0 -8
- package/dist/components/utility/ClassNames/index.d.ts +0 -6
- package/dist/components/utility/ClassNames/index.js +0 -7
- package/dist/styles/config.d.ts +0 -64
- package/dist/styles/config.js +0 -43
- package/dist/styles/icons.d.ts +0 -15
- package/dist/styles/interfaces.d.ts +0 -41
- /package/dist/styles/{interfaces.js → classnames/config.js} +0 -0
- /package/dist/styles/{tw.d.ts → classnames/tw.d.ts} +0 -0
- /package/dist/styles/{tw.js → classnames/tw.js} +0 -0
- /package/dist/styles/{icons.js → icons/index.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqrzro/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.21",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "ISC",
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
"types": "./dist/styles/index.d.ts",
|
|
31
31
|
"default": "./dist/styles/index.js"
|
|
32
32
|
},
|
|
33
|
+
"./styles.css": {
|
|
34
|
+
"default": "./dist/styles/styles.css"
|
|
35
|
+
},
|
|
33
36
|
"./utility": {
|
|
34
37
|
"types": "./dist/utility/index.d.ts",
|
|
35
38
|
"default": "./dist/utility/index.js"
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
"react-dom": "^19.2.1",
|
|
46
49
|
"tailwind-merge": "^3.4.0",
|
|
47
50
|
"use-deep-compare-effect": "^1.8.1",
|
|
48
|
-
"@sqrzro/utility": "^4.0.0-alpha.
|
|
51
|
+
"@sqrzro/utility": "^4.0.0-alpha.8"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"@storybook/addon-a11y": "^10.1.7",
|
|
@@ -56,6 +59,7 @@
|
|
|
56
59
|
"@types/react": "^19.2.7",
|
|
57
60
|
"@types/react-dom": "^19.2.3",
|
|
58
61
|
"concurrently": "^9.2.1",
|
|
62
|
+
"cpx": "^1.5.0",
|
|
59
63
|
"next-router-mock": "^1.0.4",
|
|
60
64
|
"prettier": "^3.7.4",
|
|
61
65
|
"rimraf": "^6.1.2",
|
|
@@ -66,9 +70,10 @@
|
|
|
66
70
|
"@sqrzro/prettier-config": "^4.0.0-alpha.1"
|
|
67
71
|
},
|
|
68
72
|
"scripts": {
|
|
69
|
-
"build": "pnpm clean && tsc -p tsconfig.build.json && tsc-alias",
|
|
73
|
+
"build": "pnpm clean && tsc -p tsconfig.build.json && tsc-alias && pnpm build:css",
|
|
74
|
+
"build:css": "cpx \"./src/**/*.css\" ./dist",
|
|
70
75
|
"clean": "rimraf ./dist",
|
|
71
|
-
"dev": "(concurrently \"tsc -p tsconfig.build.json --watch\" \"tsc-alias -w\")",
|
|
76
|
+
"dev": "pnpm build:css && (concurrently \"tsc -p tsconfig.build.json --watch\" \"tsc-alias -w\")",
|
|
72
77
|
"docs:start": "storybook dev -p 6006",
|
|
73
78
|
"docs:build": "storybook build",
|
|
74
79
|
"lint": "tsc --noEmit && eslint \"./src/**/*.ts\"",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ConfirmableObject } from '../../../utility/interfaces';
|
|
2
|
-
import type { ButtonProps } from '../Button';
|
|
3
|
-
export type ConfirmableButtonProps = ButtonProps & {
|
|
4
|
-
confirmable: ConfirmableObject;
|
|
5
|
-
};
|
|
6
|
-
declare function ConfirmableButton({ confirmable, ...buttonProps }: Readonly<ConfirmableButtonProps>): React.ReactElement;
|
|
7
|
-
export default ConfirmableButton;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Fragment } from 'react';
|
|
4
|
-
import Button from '../Button';
|
|
5
|
-
function ConfirmableButton({ confirmable, ...buttonProps }) {
|
|
6
|
-
// const { handle, modalProps } = useConfirmable<HTMLButtonElement>({
|
|
7
|
-
// isLoading,
|
|
8
|
-
// onBeforeConfirm,
|
|
9
|
-
// onConfirm: (event) => onClick?.(event),
|
|
10
|
-
// });
|
|
11
|
-
return (_jsx(Fragment, { children: _jsx(Button, { ...buttonProps, icon: confirmable.icon, isLoading: confirmable.isLoading }) }));
|
|
12
|
-
}
|
|
13
|
-
export default ConfirmableButton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ListItemObject } from '../interfaces';
|
|
2
|
-
export interface ListClientComponentProps<Data extends object | null = null> {
|
|
3
|
-
data: ListItemObject<Data>[];
|
|
4
|
-
renderItem?: (props: ListItemObject<Data>) => React.ReactElement;
|
|
5
|
-
}
|
|
6
|
-
declare function ListClientComponent<Data extends object | null = null>({ data, renderItem, }: Readonly<ListClientComponentProps<Data>>): React.ReactElement;
|
|
7
|
-
export default ListClientComponent;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment } from 'react';
|
|
3
|
-
import ListItem from '../ListItem';
|
|
4
|
-
function ListClientComponent({
|
|
5
|
-
// actions,
|
|
6
|
-
data, renderItem = ListItem, }) {
|
|
7
|
-
return (_jsx("ul", { className: "", children: data.map((item) => (_jsx(Fragment, { children: renderItem({ /*actions,*/ ...item }) }, item.id))) }));
|
|
8
|
-
}
|
|
9
|
-
export default ListClientComponent;
|
package/dist/styles/config.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { ButtonClassNames } from '../components/buttons/Button';
|
|
2
|
-
import type { TextButtonClassNames } from '../components/buttons/TextButton';
|
|
3
|
-
import type { EmptyMessageClassNames } from '../components/collections/EmptyMessage';
|
|
4
|
-
import type { ListItemClassNames } from '../components/collections/ListItem';
|
|
5
|
-
import type { ListItemMetaClassNames } from '../components/collections/ListItemMeta';
|
|
6
|
-
import type { PaginationClassNames } from '../components/collections/Pagination';
|
|
7
|
-
import type { TableClassNames } from '../components/collections/Table';
|
|
8
|
-
import type { ModalClassNames } from '../components/modals/Modal';
|
|
9
|
-
import type { ActionListClassNames } from '../components/utility/ActionList';
|
|
10
|
-
import type { ContainerClassNames } from '../components/utility/Container';
|
|
11
|
-
import type { LinkClassNames } from '../components/utility/Link';
|
|
12
|
-
import type { LoaderClassNames } from '../components/utility/Loader';
|
|
13
|
-
import type { PopoverClassNames } from '../components/utility/Popover';
|
|
14
|
-
import type { RootLayoutClassNames } from '../components/utility/RootLayout';
|
|
15
|
-
import type { ToastClassNames } from '../components/utility/Toast';
|
|
16
|
-
import type { FilterBarClassNames } from '../filters/components/FilterBar';
|
|
17
|
-
import type { FilterItemClassNames } from '../filters/components/FilterItem';
|
|
18
|
-
import type { FilterPanelClassNames } from '../filters/components/FilterPanel';
|
|
19
|
-
import type { DropdownClassNames } from '../forms/components/Dropdown';
|
|
20
|
-
import type { EditableFormClassNames } from '../forms/components/EditableForm';
|
|
21
|
-
import type { EditableFormFieldClassNames } from '../forms/components/EditableFormField';
|
|
22
|
-
import type { FormClassNames } from '../forms/components/Form';
|
|
23
|
-
import type { FormFieldClassNames } from '../forms/components/FormField';
|
|
24
|
-
import type { PasswordInputClassNames } from '../forms/components/PasswordInput';
|
|
25
|
-
import type { StaticTextInputClassNames } from '../forms/components/StaticTextInput';
|
|
26
|
-
import type { SwitchClassNames } from '../forms/components/Switch';
|
|
27
|
-
import type { TextInputClassNames } from '../forms/components/TextInput';
|
|
28
|
-
import type { AppNavigationClassNames } from '../navigation/components/AppNavigation';
|
|
29
|
-
import type { TabsClassNames } from '../navigation/components/Tabs';
|
|
30
|
-
type ComponentClassNames<T> = Partial<T>;
|
|
31
|
-
export interface RegisteredClassNames {
|
|
32
|
-
actionList?: ComponentClassNames<ActionListClassNames>;
|
|
33
|
-
appNavigation?: ComponentClassNames<AppNavigationClassNames>;
|
|
34
|
-
button?: ComponentClassNames<ButtonClassNames>;
|
|
35
|
-
container?: ComponentClassNames<ContainerClassNames>;
|
|
36
|
-
dropdown?: ComponentClassNames<DropdownClassNames>;
|
|
37
|
-
editableForm?: ComponentClassNames<EditableFormClassNames>;
|
|
38
|
-
editableFormField?: ComponentClassNames<EditableFormFieldClassNames>;
|
|
39
|
-
emptyMessage?: ComponentClassNames<EmptyMessageClassNames>;
|
|
40
|
-
filterBar?: ComponentClassNames<FilterBarClassNames>;
|
|
41
|
-
filterItem?: ComponentClassNames<FilterItemClassNames>;
|
|
42
|
-
filterPanel?: ComponentClassNames<FilterPanelClassNames>;
|
|
43
|
-
form?: ComponentClassNames<FormClassNames>;
|
|
44
|
-
formField?: ComponentClassNames<FormFieldClassNames>;
|
|
45
|
-
link?: ComponentClassNames<LinkClassNames>;
|
|
46
|
-
listItem?: ComponentClassNames<ListItemClassNames>;
|
|
47
|
-
listItemMeta?: ComponentClassNames<ListItemMetaClassNames>;
|
|
48
|
-
loader?: ComponentClassNames<LoaderClassNames>;
|
|
49
|
-
modal?: ComponentClassNames<ModalClassNames>;
|
|
50
|
-
pagination?: ComponentClassNames<PaginationClassNames>;
|
|
51
|
-
passwordInput?: ComponentClassNames<PasswordInputClassNames>;
|
|
52
|
-
popover?: ComponentClassNames<PopoverClassNames>;
|
|
53
|
-
rootLayout?: ComponentClassNames<RootLayoutClassNames>;
|
|
54
|
-
staticTextInput?: ComponentClassNames<StaticTextInputClassNames>;
|
|
55
|
-
switch?: ComponentClassNames<SwitchClassNames>;
|
|
56
|
-
table?: ComponentClassNames<TableClassNames>;
|
|
57
|
-
tabs?: ComponentClassNames<TabsClassNames>;
|
|
58
|
-
textButton?: ComponentClassNames<TextButtonClassNames>;
|
|
59
|
-
textInput?: ComponentClassNames<TextInputClassNames>;
|
|
60
|
-
toast?: ComponentClassNames<ToastClassNames>;
|
|
61
|
-
}
|
|
62
|
-
export declare function registerClassNames(data: RegisteredClassNames): void;
|
|
63
|
-
export declare function getClassNames<K extends keyof RegisteredClassNames>(componentName: K): (props?: Record<string, unknown>) => RegisteredClassNames[K];
|
|
64
|
-
export {};
|
package/dist/styles/config.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// import type { ActionListClassNames } from '../elements/ActionList';
|
|
2
|
-
// import type { AppNavigationClassNames } from '../navigation/components/AppNavigation';
|
|
3
|
-
// import type { BadgeClassNames } from '../elements/Badge';
|
|
4
|
-
// import type { CalendarClassNames } from '../forms/Calendar';
|
|
5
|
-
// import type { CalendarInputClassNames } from '../forms/CalendarInput';
|
|
6
|
-
// import type { CalendarNavigationClassNames } from '../forms/CalendarNavigation';
|
|
7
|
-
// import type { CheckboxInputClassNames } from '../forms/CheckboxInput';
|
|
8
|
-
// import type { CodeInputClassNames } from '../forms/CodeInput';
|
|
9
|
-
// import type { ColorInputClassNames } from '../forms/ColorInput';
|
|
10
|
-
// import type { CSVInputClassNames } from '../forms/CSVInput';
|
|
11
|
-
// import type { DefinitionListClassNames } from '../elements/DefinitionList';
|
|
12
|
-
// import type { DropdownClassNames } from '../forms/Dropdown';
|
|
13
|
-
// import type { EditableFormClassNames } from '../forms/EditableForm';
|
|
14
|
-
// import type { EditableFormFieldClassNames } from '../forms/EditableFormField';
|
|
15
|
-
// import type { FieldsetClassNames } from '../forms/Fieldset';
|
|
16
|
-
// import type { FilterBarClassNames } from '../filters/components/FilterBar';
|
|
17
|
-
// import type { FilterItemClassNames } from '../filters/components/FilterItem';
|
|
18
|
-
// import type { FilterPanelClassNames } from '../filters/components/FilterPanel';
|
|
19
|
-
// import type { FormClassNames } from '../forms/Form';
|
|
20
|
-
// import type { ImageInputClassNames } from '../forms/ImageInput';
|
|
21
|
-
// import type { InfoPanelClassNames } from '../elements/InfoPanel';
|
|
22
|
-
// import type { ListMenuClassNames } from '../lists/ListMenu';
|
|
23
|
-
// import type { ListMenuButtonClassNames } from '../lists/ListMenuButton';
|
|
24
|
-
// import type { LoadingModalClassNames } from '../modals/LoadingModal';
|
|
25
|
-
// import type { ModalClassNames } from '../modals/Modal';
|
|
26
|
-
// import type { MultiInputClassNames } from '../forms/MultiInput';
|
|
27
|
-
// import type { ObjectInputClassNames } from '../forms/ObjectInput';
|
|
28
|
-
// import type { RadioInputClassNames } from '../forms/RadioInput';
|
|
29
|
-
// import type { StaticTextInputClassNames } from '../forms/StaticTextInput';
|
|
30
|
-
// import type { SwitchClassNames } from '../forms/Switch';
|
|
31
|
-
// import type { PasswordInputClassNames } from '../forms/PasswordInput';
|
|
32
|
-
// import type { TableClassNames } from '../tables/Table';
|
|
33
|
-
// import type { TextAreaClassNames } from '../forms/TextArea';
|
|
34
|
-
// import type { TextInputClassNames } from '../forms/TextInput';
|
|
35
|
-
// import type { ToastClassNames } from '../elements/Toast';
|
|
36
|
-
// import type { TooltipClassNames } from '../elements/Tooltip';
|
|
37
|
-
let registeredClassNames = {};
|
|
38
|
-
export function registerClassNames(data) {
|
|
39
|
-
registeredClassNames = { ...registeredClassNames, ...data };
|
|
40
|
-
}
|
|
41
|
-
export function getClassNames(componentName) {
|
|
42
|
-
return () => registeredClassNames[componentName];
|
|
43
|
-
}
|
package/dist/styles/icons.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type IconComponent = React.ForwardRefExoticComponent<React.PropsWithoutRef<React.SVGProps<SVGSVGElement>> & {
|
|
2
|
-
title?: string;
|
|
3
|
-
titleId?: string;
|
|
4
|
-
} & React.RefAttributes<SVGSVGElement>>;
|
|
5
|
-
export interface RegisteredIcons {
|
|
6
|
-
'collection.empty'?: IconComponent;
|
|
7
|
-
'filter.panel'?: IconComponent;
|
|
8
|
-
'filter.search'?: IconComponent;
|
|
9
|
-
password?: IconComponent;
|
|
10
|
-
'utility.success'?: IconComponent;
|
|
11
|
-
'utility.error'?: IconComponent;
|
|
12
|
-
}
|
|
13
|
-
export declare function registerIcons(data: RegisteredIcons): void;
|
|
14
|
-
export declare function getIcon(componentName: keyof RegisteredIcons): IconComponent | null;
|
|
15
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { ButtonVariant, StyleVariant } from "../utility/interfaces";
|
|
2
|
-
export interface ClassNameProps<T> {
|
|
3
|
-
classNames?: Partial<T>;
|
|
4
|
-
classNameProps?: Record<string, unknown>;
|
|
5
|
-
}
|
|
6
|
-
export interface CheckableClassName {
|
|
7
|
-
default?: string;
|
|
8
|
-
checked?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ErrorableClassName {
|
|
11
|
-
default?: string;
|
|
12
|
-
error?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface FocusableClassName {
|
|
15
|
-
default?: string;
|
|
16
|
-
focused?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface HighlightableClassName {
|
|
19
|
-
default?: string;
|
|
20
|
-
highlighted?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface LoadableClassName {
|
|
23
|
-
default?: string;
|
|
24
|
-
loading?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface SelectableClassName {
|
|
27
|
-
default?: string;
|
|
28
|
-
selected?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface SizableClassName {
|
|
31
|
-
default?: string;
|
|
32
|
-
lg?: string;
|
|
33
|
-
md?: string;
|
|
34
|
-
sm?: string;
|
|
35
|
-
}
|
|
36
|
-
export type StylableClassName = Partial<Record<StyleVariant, string>> & {
|
|
37
|
-
default?: string;
|
|
38
|
-
};
|
|
39
|
-
export type StylableButtonClassName = Partial<Record<ButtonVariant, string>> & {
|
|
40
|
-
default?: string;
|
|
41
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|