@fuf-stack/pixels 1.13.2 → 1.14.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/Accordion/Accordion.d.mts +18 -18
- package/dist/Accordion/Accordion.d.mts.map +1 -1
- package/dist/Accordion/Accordion.mjs +3 -2
- package/dist/Accordion/Accordion.mjs.map +1 -1
- package/dist/Alert/Alert.d.mts +52 -52
- package/dist/Alert/Alert.d.mts.map +1 -1
- package/dist/Alert/Alert.mjs +5 -3
- package/dist/Alert/Alert.mjs.map +1 -1
- package/dist/Avatar/Avatar.d.mts +14 -14
- package/dist/Avatar/Avatar.d.mts.map +1 -1
- package/dist/Avatar/Avatar.mjs +3 -1
- package/dist/Avatar/Avatar.mjs.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.d.mts +2 -2
- package/dist/AvatarGroup/AvatarGroup.d.mts.map +1 -1
- package/dist/Badge/Badge.d.mts +3 -3
- package/dist/Badge/Badge.d.mts.map +1 -1
- package/dist/Badge/Badge.mjs +3 -1
- package/dist/Badge/Badge.mjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.mts +27 -27
- package/dist/Breadcrumb/Breadcrumb.d.mts.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.mjs +2 -1
- package/dist/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/Button/Button.d.mts +2 -2
- package/dist/Button/Button.d.mts.map +1 -1
- package/dist/Button/Button.mjs +11 -10
- package/dist/Button/Button.mjs.map +1 -1
- package/dist/Card/Card.d.mts +14 -14
- package/dist/Card/Card.d.mts.map +1 -1
- package/dist/Card/Card.mjs +2 -1
- package/dist/Card/Card.mjs.map +1 -1
- package/dist/Drawer/Drawer.d.mts +21 -21
- package/dist/Drawer/Drawer.d.mts.map +1 -1
- package/dist/Drawer/Drawer.mjs +3 -1
- package/dist/Drawer/Drawer.mjs.map +1 -1
- package/dist/Json/Json.d.mts +2 -2
- package/dist/Json/Json.d.mts.map +1 -1
- package/dist/Json/jsonParser.mjs +9 -4
- package/dist/Json/jsonParser.mjs.map +1 -1
- package/dist/Label/Label.d.mts +55 -55
- package/dist/Label/Label.d.mts.map +1 -1
- package/dist/Label/Label.mjs +3 -2
- package/dist/Label/Label.mjs.map +1 -1
- package/dist/Menu/Menu.d.mts +16 -16
- package/dist/Menu/Menu.d.mts.map +1 -1
- package/dist/Menu/Menu.mjs +2 -1
- package/dist/Menu/Menu.mjs.map +1 -1
- package/dist/Modal/Modal.d.mts +8 -8
- package/dist/Modal/Modal.d.mts.map +1 -1
- package/dist/Modal/Modal.mjs +3 -1
- package/dist/Modal/Modal.mjs.map +1 -1
- package/dist/Modal/modalStore.d.mts +4 -5
- package/dist/Modal/modalStore.d.mts.map +1 -1
- package/dist/Popover/Popover.d.mts +25 -25
- package/dist/Popover/Popover.d.mts.map +1 -1
- package/dist/Popover/Popover.mjs +2 -1
- package/dist/Popover/Popover.mjs.map +1 -1
- package/dist/Progress/Progress.d.mts +30 -30
- package/dist/Progress/Progress.d.mts.map +1 -1
- package/dist/Progress/Progress.mjs +2 -1
- package/dist/Progress/Progress.mjs.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.mts +32 -32
- package/dist/ProgressCircular/ProgressCircular.d.mts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.mjs +6 -6
- package/dist/ProgressCircular/ProgressCircular.mjs.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.d.mts +2 -2
- package/dist/ScrollShadow/ScrollShadow.d.mts.map +1 -1
- package/dist/SearchInput/SearchInput.d.mts +4 -4
- package/dist/SearchInput/SearchInput.d.mts.map +1 -1
- package/dist/SearchInput/SearchInput.mjs +2 -1
- package/dist/SearchInput/SearchInput.mjs.map +1 -1
- package/dist/Table/Table.d.mts +12 -12
- package/dist/Table/Table.d.mts.map +1 -1
- package/dist/Table/Table.mjs +3 -1
- package/dist/Table/Table.mjs.map +1 -1
- package/dist/Tabs/Tabs.d.mts +5 -5
- package/dist/Tabs/Tabs.d.mts.map +1 -1
- package/dist/Tabs/Tabs.mjs +3 -1
- package/dist/Tabs/Tabs.mjs.map +1 -1
- package/dist/Toast/Toaster.d.mts +2 -2
- package/dist/Toast/Toaster.d.mts.map +1 -1
- package/dist/Toast/toast.d.mts +3 -3
- package/dist/Toast/toast.d.mts.map +1 -1
- package/dist/Tooltip/Tooltip.d.mts +17 -17
- package/dist/Tooltip/Tooltip.d.mts.map +1 -1
- package/dist/Tooltip/Tooltip.mjs +2 -1
- package/dist/Tooltip/Tooltip.mjs.map +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +1 -1
- package/dist/hooks/useDebounce/useDebounce.d.mts +1 -2
- package/dist/hooks/useDebounce/useDebounce.d.mts.map +1 -1
- package/dist/hooks/useDebounce/useDebounce.mjs +8 -6
- package/dist/hooks/useDebounce/useDebounce.mjs.map +1 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.mts +1 -2
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.mts.map +1 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.mjs.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.d.mts +1 -2
- package/dist/hooks/useLocalStorage/useLocalStorage.d.mts.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.mjs +2 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs +8 -7
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Copied.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs +11 -8
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedClose.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Value.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfo.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Ellipsis.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/KeyName.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Row.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Expands.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Section.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/ShowTools.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Symbols.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Types.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/symbol/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/types/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs +6 -3
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs.map +1 -1
- package/dist/utils/createWithSuspense/createWithSuspense.d.mts +3 -4
- package/dist/utils/createWithSuspense/createWithSuspense.d.mts.map +1 -1
- package/dist/utils/createWithSuspense/createWithSuspense.mjs +20 -19
- package/dist/utils/createWithSuspense/createWithSuspense.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/ProgressCircular/ProgressCircular.d.ts
|
|
4
|
-
declare const progressCircularVariants: ((props?: ({
|
|
5
|
-
color?: "
|
|
4
|
+
export declare const progressCircularVariants: ((props?: ({
|
|
5
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
6
6
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
7
7
|
hasError?: boolean | undefined;
|
|
8
8
|
isFinished?: boolean | undefined;
|
|
@@ -14,7 +14,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
14
14
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
15
15
|
})) | undefined) => {
|
|
16
16
|
base: (slotProps?: ({
|
|
17
|
-
color?: "
|
|
17
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
18
18
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
19
19
|
hasError?: boolean | undefined;
|
|
20
20
|
isFinished?: boolean | undefined;
|
|
@@ -26,7 +26,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
26
26
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
27
27
|
})) | undefined) => string;
|
|
28
28
|
indicator: (slotProps?: ({
|
|
29
|
-
color?: "
|
|
29
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
30
30
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
31
31
|
hasError?: boolean | undefined;
|
|
32
32
|
isFinished?: boolean | undefined;
|
|
@@ -38,7 +38,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
38
38
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
39
39
|
})) | undefined) => string;
|
|
40
40
|
label: (slotProps?: ({
|
|
41
|
-
color?: "
|
|
41
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
42
42
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
43
43
|
hasError?: boolean | undefined;
|
|
44
44
|
isFinished?: boolean | undefined;
|
|
@@ -50,7 +50,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
50
50
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
51
51
|
})) | undefined) => string;
|
|
52
52
|
svg: (slotProps?: ({
|
|
53
|
-
color?: "
|
|
53
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
54
54
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
55
55
|
hasError?: boolean | undefined;
|
|
56
56
|
isFinished?: boolean | undefined;
|
|
@@ -62,7 +62,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
62
62
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
63
63
|
})) | undefined) => string;
|
|
64
64
|
svgWrapper: (slotProps?: ({
|
|
65
|
-
color?: "
|
|
65
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
66
66
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
67
67
|
hasError?: boolean | undefined;
|
|
68
68
|
isFinished?: boolean | undefined;
|
|
@@ -74,7 +74,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
74
74
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
75
75
|
})) | undefined) => string;
|
|
76
76
|
track: (slotProps?: ({
|
|
77
|
-
color?: "
|
|
77
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
78
78
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
79
79
|
hasError?: boolean | undefined;
|
|
80
80
|
isFinished?: boolean | undefined;
|
|
@@ -86,7 +86,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
86
86
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
87
87
|
})) | undefined) => string;
|
|
88
88
|
value: (slotProps?: ({
|
|
89
|
-
color?: "
|
|
89
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
90
90
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
91
91
|
hasError?: boolean | undefined;
|
|
92
92
|
isFinished?: boolean | undefined;
|
|
@@ -99,7 +99,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
99
99
|
})) | undefined) => string;
|
|
100
100
|
} & {
|
|
101
101
|
base: (slotProps?: ({
|
|
102
|
-
color?: "
|
|
102
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
103
103
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
104
104
|
hasError?: boolean | undefined;
|
|
105
105
|
isFinished?: boolean | undefined;
|
|
@@ -111,7 +111,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
111
111
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
112
112
|
})) | undefined) => string;
|
|
113
113
|
indicator: (slotProps?: ({
|
|
114
|
-
color?: "
|
|
114
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
115
115
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
116
116
|
hasError?: boolean | undefined;
|
|
117
117
|
isFinished?: boolean | undefined;
|
|
@@ -123,7 +123,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
123
123
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
124
124
|
})) | undefined) => string;
|
|
125
125
|
label: (slotProps?: ({
|
|
126
|
-
color?: "
|
|
126
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
127
127
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
128
128
|
hasError?: boolean | undefined;
|
|
129
129
|
isFinished?: boolean | undefined;
|
|
@@ -135,7 +135,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
135
135
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
136
136
|
})) | undefined) => string;
|
|
137
137
|
svg: (slotProps?: ({
|
|
138
|
-
color?: "
|
|
138
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
139
139
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
140
140
|
hasError?: boolean | undefined;
|
|
141
141
|
isFinished?: boolean | undefined;
|
|
@@ -147,7 +147,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
147
147
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
148
148
|
})) | undefined) => string;
|
|
149
149
|
svgWrapper: (slotProps?: ({
|
|
150
|
-
color?: "
|
|
150
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
151
151
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
152
152
|
hasError?: boolean | undefined;
|
|
153
153
|
isFinished?: boolean | undefined;
|
|
@@ -159,7 +159,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
159
159
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
160
160
|
})) | undefined) => string;
|
|
161
161
|
track: (slotProps?: ({
|
|
162
|
-
color?: "
|
|
162
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
163
163
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
164
164
|
hasError?: boolean | undefined;
|
|
165
165
|
isFinished?: boolean | undefined;
|
|
@@ -171,7 +171,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
171
171
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
172
172
|
})) | undefined) => string;
|
|
173
173
|
value: (slotProps?: ({
|
|
174
|
-
color?: "
|
|
174
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
175
175
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
176
176
|
hasError?: boolean | undefined;
|
|
177
177
|
isFinished?: boolean | undefined;
|
|
@@ -184,7 +184,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
184
184
|
})) | undefined) => string;
|
|
185
185
|
} & {}) & {
|
|
186
186
|
extend: ((props?: ({
|
|
187
|
-
color?: "
|
|
187
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
188
188
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
189
189
|
hasError?: boolean | undefined;
|
|
190
190
|
isFinished?: boolean | undefined;
|
|
@@ -196,7 +196,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
196
196
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
197
197
|
})) | undefined) => {} & {
|
|
198
198
|
base: (slotProps?: ({
|
|
199
|
-
color?: "
|
|
199
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
200
200
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
201
201
|
hasError?: boolean | undefined;
|
|
202
202
|
isFinished?: boolean | undefined;
|
|
@@ -208,7 +208,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
208
208
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
209
209
|
})) | undefined) => string;
|
|
210
210
|
indicator: (slotProps?: ({
|
|
211
|
-
color?: "
|
|
211
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
212
212
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
213
213
|
hasError?: boolean | undefined;
|
|
214
214
|
isFinished?: boolean | undefined;
|
|
@@ -220,7 +220,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
220
220
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
221
221
|
})) | undefined) => string;
|
|
222
222
|
label: (slotProps?: ({
|
|
223
|
-
color?: "
|
|
223
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
224
224
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
225
225
|
hasError?: boolean | undefined;
|
|
226
226
|
isFinished?: boolean | undefined;
|
|
@@ -232,7 +232,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
232
232
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
233
233
|
})) | undefined) => string;
|
|
234
234
|
svg: (slotProps?: ({
|
|
235
|
-
color?: "
|
|
235
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
236
236
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
237
237
|
hasError?: boolean | undefined;
|
|
238
238
|
isFinished?: boolean | undefined;
|
|
@@ -244,7 +244,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
244
244
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
245
245
|
})) | undefined) => string;
|
|
246
246
|
svgWrapper: (slotProps?: ({
|
|
247
|
-
color?: "
|
|
247
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
248
248
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
249
249
|
hasError?: boolean | undefined;
|
|
250
250
|
isFinished?: boolean | undefined;
|
|
@@ -256,7 +256,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
256
256
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
257
257
|
})) | undefined) => string;
|
|
258
258
|
track: (slotProps?: ({
|
|
259
|
-
color?: "
|
|
259
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
260
260
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
261
261
|
hasError?: boolean | undefined;
|
|
262
262
|
isFinished?: boolean | undefined;
|
|
@@ -268,7 +268,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
268
268
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
269
269
|
})) | undefined) => string;
|
|
270
270
|
value: (slotProps?: ({
|
|
271
|
-
color?: "
|
|
271
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
272
272
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
273
273
|
hasError?: boolean | undefined;
|
|
274
274
|
isFinished?: boolean | undefined;
|
|
@@ -349,13 +349,13 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
349
349
|
};
|
|
350
350
|
};
|
|
351
351
|
defaultVariants: {
|
|
352
|
-
color?: "
|
|
352
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
353
353
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
354
354
|
hasError?: boolean | undefined;
|
|
355
355
|
isFinished?: boolean | undefined;
|
|
356
356
|
};
|
|
357
357
|
compoundVariants: ({
|
|
358
|
-
color?: "
|
|
358
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
359
359
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
360
360
|
hasError?: boolean | boolean[] | undefined;
|
|
361
361
|
isFinished?: boolean | boolean[] | undefined;
|
|
@@ -385,7 +385,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
385
385
|
compoundSlots: ({
|
|
386
386
|
slots: ("base" | "label" | "track" | "svg" | "value" | "indicator" | "svgWrapper")[];
|
|
387
387
|
} & ({
|
|
388
|
-
color?: "
|
|
388
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
389
389
|
hasError?: boolean | boolean[] | undefined;
|
|
390
390
|
isFinished?: boolean | boolean[] | undefined;
|
|
391
391
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
@@ -466,13 +466,13 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
468
|
defaultVariants: {
|
|
469
|
-
color?: "
|
|
469
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
470
470
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
471
471
|
hasError?: boolean | undefined;
|
|
472
472
|
isFinished?: boolean | undefined;
|
|
473
473
|
};
|
|
474
474
|
compoundVariants: ({
|
|
475
|
-
color?: "
|
|
475
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
476
476
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
477
477
|
hasError?: boolean | boolean[] | undefined;
|
|
478
478
|
isFinished?: boolean | boolean[] | undefined;
|
|
@@ -502,7 +502,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
502
502
|
compoundSlots: ({
|
|
503
503
|
slots: ("base" | "label" | "track" | "svg" | "value" | "indicator" | "svgWrapper")[];
|
|
504
504
|
} & ({
|
|
505
|
-
color?: "
|
|
505
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
506
506
|
hasError?: boolean | boolean[] | undefined;
|
|
507
507
|
isFinished?: boolean | boolean[] | undefined;
|
|
508
508
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
@@ -517,7 +517,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
517
517
|
};
|
|
518
518
|
type VariantProps = TVProps<typeof progressCircularVariants>;
|
|
519
519
|
type ClassName = TVClassName<typeof progressCircularVariants>;
|
|
520
|
-
interface ProgressCircularProps extends VariantProps {
|
|
520
|
+
export interface ProgressCircularProps extends VariantProps {
|
|
521
521
|
/** sets HTML aria-label attribute */
|
|
522
522
|
ariaLabel?: string;
|
|
523
523
|
/** CSS class name */
|
|
@@ -544,5 +544,5 @@ interface ProgressCircularProps extends VariantProps {
|
|
|
544
544
|
*/
|
|
545
545
|
declare const ProgressCircular: ({ ariaLabel, className, format, hasError, percent, disableAnimation, disableFinishedState, size, color, strokeWidth: strokeWidthProp }: ProgressCircularProps) => import("react").JSX.Element;
|
|
546
546
|
//#endregion
|
|
547
|
-
export {
|
|
547
|
+
export { ProgressCircular as default };
|
|
548
548
|
//# sourceMappingURL=ProgressCircular.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressCircular.d.mts","names":[],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ProgressCircular.d.mts","names":[],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"mappings":";;;qBAaa,4BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4DhC,eAAe,eAAe;KAC9B,YAAY,mBAAmB;iBAEnB,8BAA8B;;EAE7C;;EAEA,YAAY;;EAEZ,QAAQ;;EAER;;EAEA;;EAEA,UAAU,qBAAqB;;EAE/B;;EAEA;;EAEA,OAAO;;EAEP;;;;;cAWI,qBAAoB,WAAA,WAAA,QAAA,UAAA,SAAA,kBAAA,sBAAA,MAAA,OAAA,aAAA,mBAWvB,0CAAqB,IAAA"}
|
|
@@ -56,12 +56,13 @@ const defaultFormat = (percent = 0) => {
|
|
|
56
56
|
const ProgressCircular = ({ ariaLabel = "progress", className = void 0, format = defaultFormat, hasError = false, percent, disableAnimation = false, disableFinishedState = false, size = "md", color = "info", strokeWidth: strokeWidthProp = void 0 }) => {
|
|
57
57
|
const isInitialRenderCycle = useIsInitialRenderCycle();
|
|
58
58
|
const isFinished = !hasError && percent >= 100 && !disableFinishedState;
|
|
59
|
-
const
|
|
59
|
+
const variants = progressCircularVariants({
|
|
60
60
|
color,
|
|
61
61
|
hasError,
|
|
62
62
|
isFinished,
|
|
63
63
|
size
|
|
64
|
-
})
|
|
64
|
+
});
|
|
65
|
+
const classNames = variantsToClassNames(variants, className, "base");
|
|
65
66
|
let value = format(percent);
|
|
66
67
|
let strokeWidth = strokeWidthProp;
|
|
67
68
|
if (!strokeWidth) switch (size) {
|
|
@@ -71,9 +72,7 @@ const ProgressCircular = ({ ariaLabel = "progress", className = void 0, format =
|
|
|
71
72
|
case "sm":
|
|
72
73
|
strokeWidth = 1.8;
|
|
73
74
|
break;
|
|
74
|
-
default:
|
|
75
|
-
strokeWidth = 1.6;
|
|
76
|
-
break;
|
|
75
|
+
default: strokeWidth = 1.6;
|
|
77
76
|
}
|
|
78
77
|
let progressColor = color;
|
|
79
78
|
if (hasError) {
|
|
@@ -83,10 +82,11 @@ const ProgressCircular = ({ ariaLabel = "progress", className = void 0, format =
|
|
|
83
82
|
progressColor = "success";
|
|
84
83
|
value = /* @__PURE__ */ jsx(FaCheck, { className: "text-success" });
|
|
85
84
|
}
|
|
85
|
+
const heroUiColor = Object.keys(circularProgress.variants.color).includes(color) ? progressColor : void 0;
|
|
86
86
|
return /* @__PURE__ */ jsx(CircularProgress, {
|
|
87
87
|
"aria-label": ariaLabel,
|
|
88
88
|
classNames,
|
|
89
|
-
color:
|
|
89
|
+
color: heroUiColor,
|
|
90
90
|
disableAnimation: isInitialRenderCycle || disableAnimation,
|
|
91
91
|
showValueLabel: true,
|
|
92
92
|
strokeWidth,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressCircular.mjs","names":["heroCircularProgressVariants","HeroCircularProgress"],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { CircularProgressProps as HeroCircularProgressProps } from '@heroui/progress';\nimport type { ReactNode } from 'react';\n\nimport { FaCheck, FaTimes } from 'react-icons/fa';\n\nimport { CircularProgress as HeroCircularProgress } from '@heroui/progress';\nimport { circularProgress as heroCircularProgressVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useIsInitialRenderCycle } from '../hooks/useIsInitialRenderCycle';\n\nexport const progressCircularVariants = tv({\n slots: {\n // wrapper around the whole component\n base: '',\n // indicator of the circle (finished part)\n indicator: '',\n // label next to the svgWrapper\n label: '',\n // wrapper for the circle\n svg: '',\n // wrapper around progress svg and value span\n svgWrapper: '',\n // track of the circle (not finished part)\n track: 'stroke-default-300',\n // outer span next to the svg\n value: '',\n },\n variants: {\n color: {\n info: {\n svg: 'text-info',\n },\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts\n ...heroCircularProgressVariants.variants.color,\n },\n hasError: {\n true: {\n svg: 'text-danger',\n },\n },\n isFinished: {\n true: {\n svg: 'text-success',\n },\n },\n size: {\n xs: {\n svg: 'h-10 w-10',\n value: 'text-[0.6rem]',\n },\n sm: {\n svg: 'h-12 w-12',\n value: 'text-xs',\n },\n md: {\n svg: 'h-16 w-16',\n value: 'text-md',\n },\n lg: {\n svg: 'h-20 w-20',\n value: 'text-lg',\n },\n xl: {\n svg: 'h-24 w-24',\n value: 'text-xl',\n },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof progressCircularVariants>;\ntype ClassName = TVClassName<typeof progressCircularVariants>;\n\nexport interface ProgressCircularProps extends VariantProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** color options */\n color?: VariantProps['color'];\n /** disables all animations */\n disableAnimation?: boolean;\n /** disables special finished state (checkmark icon and success color) */\n disableFinishedState?: boolean;\n /** formats the display value of the progress in the center */\n format?: (percent?: number) => ReactNode;\n /** enables error version */\n hasError?: boolean;\n /** percentage / progress of the circular progress bar */\n percent: number;\n /** size options */\n size?: VariantProps['size'];\n /** stroke width of the circular progress bar */\n strokeWidth?: number;\n}\n\n/** formats percent with percent sign */\nconst defaultFormat = (percent = 0) => {\n return `${percent}%`;\n};\n\n/**\n * ProgressCircular component based on [HeroUI CircularProgress](https://www.heroui.com/docs/components/circular-progress)\n */\nconst ProgressCircular = ({\n ariaLabel = 'progress',\n className = undefined,\n format = defaultFormat,\n hasError = false,\n percent,\n disableAnimation = false,\n disableFinishedState = false,\n size = 'md',\n color = 'info',\n strokeWidth: strokeWidthProp = undefined,\n}: ProgressCircularProps) => {\n // used to disable animation on initial render cycle\n const isInitialRenderCycle = useIsInitialRenderCycle();\n\n // Apply finished state if percent is 100 or more and not disabled by disableFinishedState\n const isFinished = !hasError && percent >= 100 && !disableFinishedState;\n\n const variants = progressCircularVariants({\n color,\n hasError,\n isFinished,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n // format value\n let value = format(percent);\n\n let strokeWidth = strokeWidthProp;\n // set strokeWidth based on size prop when no strokeWidth provided\n if (!strokeWidth) {\n switch (size) {\n case 'xs':\n strokeWidth = 2;\n break;\n case 'sm':\n strokeWidth = 1.8;\n break;\n default:\n strokeWidth = 1.6;\n break;\n }\n }\n\n // handle special states\n let progressColor: VariantProps['color'] = color;\n if (hasError) {\n progressColor = 'danger';\n value = <FaTimes className=\"text-danger\" />;\n } else if (isFinished) {\n progressColor = 'success';\n value = <FaCheck className=\"text-success\" />;\n }\n\n // pass only HeroUI colors as props\n const heroUiColor = Object.keys(\n heroCircularProgressVariants.variants.color,\n ).includes(color)\n ? (progressColor as HeroCircularProgressProps['color'])\n : undefined;\n\n return (\n <HeroCircularProgress\n aria-label={ariaLabel}\n classNames={classNames}\n color={heroUiColor}\n disableAnimation={isInitialRenderCycle || disableAnimation}\n showValueLabel\n strokeWidth={strokeWidth}\n // INFO: we do NOT use spinner animation when no percent provided\n value={percent || 0}\n valueLabel={value}\n />\n );\n};\n\nexport default ProgressCircular;\n"],"mappings":";;;;;;;AAaA,MAAa,2BAA2B,GAAG;CACzC,OAAO;EAEL,MAAM;EAEN,WAAW;EAEX,OAAO;EAEP,KAAK;EAEL,YAAY;EAEZ,OAAO;EAEP,OAAO;CACT;CACA,UAAU;EACR,OAAO;GACL,MAAM,EACJ,KAAK,YACP;GAEA,GAAGA,iBAA6B,SAAS;EAC3C;EACA,UAAU,EACR,MAAM,EACJ,KAAK,cACP,EACF;EACA,YAAY,EACV,MAAM,EACJ,KAAK,eACP,EACF;EACA,MAAM;GACJ,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;EACF;CACF;AACF,CAAC;;AA6BD,MAAM,iBAAiB,UAAU,MAAM;CACrC,OAAO,GAAG,QAAQ;AACpB;;;;AAKA,MAAM,oBAAoB,EACxB,YAAY,YACZ,YAAY,KAAA,GACZ,SAAS,eACT,WAAW,OACX,SACA,mBAAmB,OACnB,uBAAuB,OACvB,OAAO,MACP,QAAQ,QACR,aAAa,kBAAkB,KAAA,QACJ;CAE3B,MAAM,uBAAuB,wBAAwB;CAGrD,MAAM,aAAa,CAAC,YAAY,WAAW,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProgressCircular.mjs","names":["heroCircularProgressVariants","HeroCircularProgress"],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { CircularProgressProps as HeroCircularProgressProps } from '@heroui/progress';\nimport type { ReactNode } from 'react';\n\nimport { FaCheck, FaTimes } from 'react-icons/fa';\n\nimport { CircularProgress as HeroCircularProgress } from '@heroui/progress';\nimport { circularProgress as heroCircularProgressVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useIsInitialRenderCycle } from '../hooks/useIsInitialRenderCycle';\n\nexport const progressCircularVariants = tv({\n slots: {\n // wrapper around the whole component\n base: '',\n // indicator of the circle (finished part)\n indicator: '',\n // label next to the svgWrapper\n label: '',\n // wrapper for the circle\n svg: '',\n // wrapper around progress svg and value span\n svgWrapper: '',\n // track of the circle (not finished part)\n track: 'stroke-default-300',\n // outer span next to the svg\n value: '',\n },\n variants: {\n color: {\n info: {\n svg: 'text-info',\n },\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts\n ...heroCircularProgressVariants.variants.color,\n },\n hasError: {\n true: {\n svg: 'text-danger',\n },\n },\n isFinished: {\n true: {\n svg: 'text-success',\n },\n },\n size: {\n xs: {\n svg: 'h-10 w-10',\n value: 'text-[0.6rem]',\n },\n sm: {\n svg: 'h-12 w-12',\n value: 'text-xs',\n },\n md: {\n svg: 'h-16 w-16',\n value: 'text-md',\n },\n lg: {\n svg: 'h-20 w-20',\n value: 'text-lg',\n },\n xl: {\n svg: 'h-24 w-24',\n value: 'text-xl',\n },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof progressCircularVariants>;\ntype ClassName = TVClassName<typeof progressCircularVariants>;\n\nexport interface ProgressCircularProps extends VariantProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** color options */\n color?: VariantProps['color'];\n /** disables all animations */\n disableAnimation?: boolean;\n /** disables special finished state (checkmark icon and success color) */\n disableFinishedState?: boolean;\n /** formats the display value of the progress in the center */\n format?: (percent?: number) => ReactNode;\n /** enables error version */\n hasError?: boolean;\n /** percentage / progress of the circular progress bar */\n percent: number;\n /** size options */\n size?: VariantProps['size'];\n /** stroke width of the circular progress bar */\n strokeWidth?: number;\n}\n\n/** formats percent with percent sign */\nconst defaultFormat = (percent = 0) => {\n return `${percent}%`;\n};\n\n/**\n * ProgressCircular component based on [HeroUI CircularProgress](https://www.heroui.com/docs/components/circular-progress)\n */\nconst ProgressCircular = ({\n ariaLabel = 'progress',\n className = undefined,\n format = defaultFormat,\n hasError = false,\n percent,\n disableAnimation = false,\n disableFinishedState = false,\n size = 'md',\n color = 'info',\n strokeWidth: strokeWidthProp = undefined,\n}: ProgressCircularProps) => {\n // used to disable animation on initial render cycle\n const isInitialRenderCycle = useIsInitialRenderCycle();\n\n // Apply finished state if percent is 100 or more and not disabled by disableFinishedState\n const isFinished = !hasError && percent >= 100 && !disableFinishedState;\n\n const variants = progressCircularVariants({\n color,\n hasError,\n isFinished,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n // format value\n let value = format(percent);\n\n let strokeWidth = strokeWidthProp;\n // set strokeWidth based on size prop when no strokeWidth provided\n if (!strokeWidth) {\n switch (size) {\n case 'xs':\n strokeWidth = 2;\n break;\n case 'sm':\n strokeWidth = 1.8;\n break;\n default:\n strokeWidth = 1.6;\n break;\n }\n }\n\n // handle special states\n let progressColor: VariantProps['color'] = color;\n if (hasError) {\n progressColor = 'danger';\n value = <FaTimes className=\"text-danger\" />;\n } else if (isFinished) {\n progressColor = 'success';\n value = <FaCheck className=\"text-success\" />;\n }\n\n // pass only HeroUI colors as props\n const heroUiColor = Object.keys(\n heroCircularProgressVariants.variants.color,\n ).includes(color)\n ? (progressColor as HeroCircularProgressProps['color'])\n : undefined;\n\n return (\n <HeroCircularProgress\n aria-label={ariaLabel}\n classNames={classNames}\n color={heroUiColor}\n disableAnimation={isInitialRenderCycle || disableAnimation}\n showValueLabel\n strokeWidth={strokeWidth}\n // INFO: we do NOT use spinner animation when no percent provided\n value={percent || 0}\n valueLabel={value}\n />\n );\n};\n\nexport default ProgressCircular;\n"],"mappings":";;;;;;;AAaA,MAAa,2BAA2B,GAAG;CACzC,OAAO;EAEL,MAAM;EAEN,WAAW;EAEX,OAAO;EAEP,KAAK;EAEL,YAAY;EAEZ,OAAO;EAEP,OAAO;CACT;CACA,UAAU;EACR,OAAO;GACL,MAAM,EACJ,KAAK,YACP;GAEA,GAAGA,iBAA6B,SAAS;EAC3C;EACA,UAAU,EACR,MAAM,EACJ,KAAK,cACP,EACF;EACA,YAAY,EACV,MAAM,EACJ,KAAK,eACP,EACF;EACA,MAAM;GACJ,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;EACF;CACF;AACF,CAAC;;AA6BD,MAAM,iBAAiB,UAAU,MAAM;CACrC,OAAO,GAAG,QAAQ;AACpB;;;;AAKA,MAAM,oBAAoB,EACxB,YAAY,YACZ,YAAY,KAAA,GACZ,SAAS,eACT,WAAW,OACX,SACA,mBAAmB,OACnB,uBAAuB,OACvB,OAAO,MACP,QAAQ,QACR,aAAa,kBAAkB,KAAA,QACJ;CAE3B,MAAM,uBAAuB,wBAAwB;CAGrD,MAAM,aAAa,CAAC,YAAY,WAAW,OAAO,CAAC;CAEnD,MAAM,WAAW,yBAAyB;EACxC;EACA;EACA;EACA;CACF,CAAC;CACD,MAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;CAGnE,IAAI,QAAQ,OAAO,OAAO;CAE1B,IAAI,cAAc;CAElB,IAAI,CAAC,aACH,QAAQ,MAAR;EACE,KAAK;GACH,cAAc;GACd;EACF,KAAK;GACH,cAAc;GACd;EACF,SACE,cAAc;CAElB;CAIF,IAAI,gBAAuC;CAC3C,IAAI,UAAU;EACZ,gBAAgB;EAChB,QAAQ,oBAAC,SAAD,EAAS,WAAU,cAAe,CAAA;CAC5C,OAAO,IAAI,YAAY;EACrB,gBAAgB;EAChB,QAAQ,oBAAC,SAAD,EAAS,WAAU,eAAgB,CAAA;CAC7C;CAGA,MAAM,cAAc,OAAO,KACzBA,iBAA6B,SAAS,KACxC,CAAC,CAAC,SAAS,KAAK,IACX,gBACD,KAAA;CAEJ,OACE,oBAACC,kBAAD;EACE,cAAY;EACA;EACZ,OAAO;EACP,kBAAkB,wBAAwB;EAC1C,gBAAA;EACa;EAEb,OAAO,WAAW;EAClB,YAAY;CACb,CAAA;AAEL"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from "react";
|
|
2
2
|
//#region src/ScrollShadow/ScrollShadow.d.ts
|
|
3
3
|
type ScrollShadowVisibility = 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'both' | 'none';
|
|
4
|
-
interface ScrollShadowProps {
|
|
4
|
+
export interface ScrollShadowProps {
|
|
5
5
|
/** child components */
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
/** Slot name for styling/debugging hooks */
|
|
@@ -26,5 +26,5 @@ interface ScrollShadowProps {
|
|
|
26
26
|
*/
|
|
27
27
|
declare const _default: import("react").ForwardRefExoticComponent<ScrollShadowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
28
|
//#endregion
|
|
29
|
-
export {
|
|
29
|
+
export { _default as default };
|
|
30
30
|
//# sourceMappingURL=ScrollShadow.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollShadow.d.mts","names":[],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"mappings":";;KAUK;
|
|
1
|
+
{"version":3,"file":"ScrollShadow.d.mts","names":[],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"mappings":";;KAUK;iBASY;;EAEf,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER,aAAa;;EAEb;;EAEA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/SearchInput/SearchInput.d.ts
|
|
4
|
-
declare const inputVariants: ((props?: ({
|
|
4
|
+
export declare const inputVariants: ((props?: ({
|
|
5
5
|
[x: string]: string | number | undefined;
|
|
6
6
|
[x: number]: string | number | undefined;
|
|
7
7
|
} & ({
|
|
@@ -626,11 +626,11 @@ declare const inputVariants: ((props?: ({
|
|
|
626
626
|
class?: never;
|
|
627
627
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
628
628
|
}))))[];
|
|
629
|
-
variantKeys: (string | number)[]
|
|
629
|
+
variantKeys: never[] | (string | number)[];
|
|
630
630
|
};
|
|
631
631
|
type VariantProps = TVProps<typeof inputVariants>;
|
|
632
632
|
type ClassName = TVClassName<typeof inputVariants>;
|
|
633
|
-
interface SearchInputProps extends VariantProps {
|
|
633
|
+
export interface SearchInputProps extends VariantProps {
|
|
634
634
|
/** CSS class name */
|
|
635
635
|
className?: ClassName;
|
|
636
636
|
/** input field is disabled */
|
|
@@ -655,5 +655,5 @@ interface SearchInputProps extends VariantProps {
|
|
|
655
655
|
*/
|
|
656
656
|
declare const SearchInput: ({ className: _className, disabled, endContent, onChange, placeholder, size, startContent, testId, initialValue }: SearchInputProps) => import("react").JSX.Element;
|
|
657
657
|
//#endregion
|
|
658
|
-
export {
|
|
658
|
+
export { SearchInput as default };
|
|
659
659
|
//# sourceMappingURL=SearchInput.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.mts","names":[],"sources":["../../src/SearchInput/SearchInput.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"SearchInput.d.mts","names":[],"sources":["../../src/SearchInput/SearchInput.tsx"],"mappings":";;;qBAWa,iBAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAarB,eAAe,eAAe;KAC9B,YAAY,mBAAmB;iBAEnB,yBAAyB;;EAExC,YAAY;;EAEZ;;EAEA,aAAa;;EAEb;;EAEA,WAAW;;EAEX;;EAEA;;EAEA,eAAe;;EAEf;;;;;cAMI,gBAAe,WAAA,YAAA,UAAA,YAAA,UAAA,aAAA,MAAA,cAAA,QAAA,gBAUlB,qCAAgB,IAAA"}
|
|
@@ -23,7 +23,8 @@ const SearchInput = ({ className: _className = void 0, disabled = false, endCont
|
|
|
23
23
|
setValue(e?.target?.value ?? "");
|
|
24
24
|
onChange(e?.target?.value ?? null);
|
|
25
25
|
};
|
|
26
|
-
const
|
|
26
|
+
const variants = inputVariants();
|
|
27
|
+
const classNames = variantsToClassNames(variants, _className, "base");
|
|
27
28
|
return /* @__PURE__ */ jsx(Input, {
|
|
28
29
|
autoComplete: "off",
|
|
29
30
|
classNames: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.mjs","names":["HeroInput"],"sources":["../../src/SearchInput/SearchInput.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChangeEvent, ReactNode } from 'react';\n\nimport { useState } from 'react';\nimport { FaSearch } from 'react-icons/fa';\n\nimport { Input as HeroInput } from '@heroui/input';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// input variants\nexport const inputVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof inputVariants>;\ntype ClassName = TVClassName<typeof inputVariants>;\n\nexport interface SearchInputProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** added content to the end of the input Field. */\n endContent?: ReactNode;\n /** optional initial value of the input */\n initialValue?: string;\n /** callback that is fired when the value is changed or cleared */\n onChange: (value: string | null) => void;\n /** form field placeholder */\n placeholder?: string;\n /** size of the input */\n size?: 'sm' | 'md' | 'lg';\n /** content added to the start of the input field */\n startContent?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * SearchInput component based on [HeroUI Input](https://www.heroui.com//docs/components/input)\n */\nconst SearchInput = ({\n className: _className = undefined,\n disabled = false,\n endContent = undefined,\n onChange,\n placeholder = undefined,\n size = undefined,\n startContent = undefined,\n testId = undefined,\n initialValue = undefined,\n}: SearchInputProps) => {\n // handle controlled value with initial value\n const [value, setValue] = useState(initialValue ?? '');\n\n const handleChange = (e?: ChangeEvent<HTMLInputElement>) => {\n setValue(e?.target?.value ?? '');\n onChange(e?.target?.value ?? null);\n };\n\n // classNames from slots\n const variants = inputVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroInput\n // disable password manager integrations\n autoComplete=\"off\"\n classNames={{\n base: classNames.base,\n clearButton: classNames.clearButton,\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n }}\n data-testid={testId ? slugify(testId) : undefined}\n endContent={endContent}\n isClearable\n isDisabled={disabled}\n onChange={handleChange}\n onClear={handleChange}\n placeholder={placeholder}\n radius=\"sm\"\n size={size}\n startContent={startContent ?? <FaSearch className=\"opacity-50\" />}\n value={value}\n variant=\"bordered\"\n />\n );\n};\n\nexport default SearchInput;\n"],"mappings":";;;;;;AAWA,MAAa,gBAAgB,GAAG,EAC9B,OAAO;;CAEL,MAAM;;CAEN,aAAa;;CAEb,OAAO;;CAEP,cAAc;AAChB,EACF,CAAC;;;;AA6BD,MAAM,eAAe,EACnB,WAAW,aAAa,KAAA,GACxB,WAAW,OACX,aAAa,KAAA,GACb,UACA,cAAc,KAAA,GACd,OAAO,KAAA,GACP,eAAe,KAAA,GACf,SAAS,KAAA,GACT,eAAe,KAAA,QACO;CAEtB,MAAM,CAAC,OAAO,YAAY,SAAS,gBAAgB,EAAE;CAErD,MAAM,gBAAgB,MAAsC;EAC1D,SAAS,GAAG,QAAQ,SAAS,EAAE;EAC/B,SAAS,GAAG,QAAQ,SAAS,IAAI;CACnC;
|
|
1
|
+
{"version":3,"file":"SearchInput.mjs","names":["HeroInput"],"sources":["../../src/SearchInput/SearchInput.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChangeEvent, ReactNode } from 'react';\n\nimport { useState } from 'react';\nimport { FaSearch } from 'react-icons/fa';\n\nimport { Input as HeroInput } from '@heroui/input';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// input variants\nexport const inputVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof inputVariants>;\ntype ClassName = TVClassName<typeof inputVariants>;\n\nexport interface SearchInputProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** added content to the end of the input Field. */\n endContent?: ReactNode;\n /** optional initial value of the input */\n initialValue?: string;\n /** callback that is fired when the value is changed or cleared */\n onChange: (value: string | null) => void;\n /** form field placeholder */\n placeholder?: string;\n /** size of the input */\n size?: 'sm' | 'md' | 'lg';\n /** content added to the start of the input field */\n startContent?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * SearchInput component based on [HeroUI Input](https://www.heroui.com//docs/components/input)\n */\nconst SearchInput = ({\n className: _className = undefined,\n disabled = false,\n endContent = undefined,\n onChange,\n placeholder = undefined,\n size = undefined,\n startContent = undefined,\n testId = undefined,\n initialValue = undefined,\n}: SearchInputProps) => {\n // handle controlled value with initial value\n const [value, setValue] = useState(initialValue ?? '');\n\n const handleChange = (e?: ChangeEvent<HTMLInputElement>) => {\n setValue(e?.target?.value ?? '');\n onChange(e?.target?.value ?? null);\n };\n\n // classNames from slots\n const variants = inputVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroInput\n // disable password manager integrations\n autoComplete=\"off\"\n classNames={{\n base: classNames.base,\n clearButton: classNames.clearButton,\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n }}\n data-testid={testId ? slugify(testId) : undefined}\n endContent={endContent}\n isClearable\n isDisabled={disabled}\n onChange={handleChange}\n onClear={handleChange}\n placeholder={placeholder}\n radius=\"sm\"\n size={size}\n startContent={startContent ?? <FaSearch className=\"opacity-50\" />}\n value={value}\n variant=\"bordered\"\n />\n );\n};\n\nexport default SearchInput;\n"],"mappings":";;;;;;AAWA,MAAa,gBAAgB,GAAG,EAC9B,OAAO;;CAEL,MAAM;;CAEN,aAAa;;CAEb,OAAO;;CAEP,cAAc;AAChB,EACF,CAAC;;;;AA6BD,MAAM,eAAe,EACnB,WAAW,aAAa,KAAA,GACxB,WAAW,OACX,aAAa,KAAA,GACb,UACA,cAAc,KAAA,GACd,OAAO,KAAA,GACP,eAAe,KAAA,GACf,SAAS,KAAA,GACT,eAAe,KAAA,QACO;CAEtB,MAAM,CAAC,OAAO,YAAY,SAAS,gBAAgB,EAAE;CAErD,MAAM,gBAAgB,MAAsC;EAC1D,SAAS,GAAG,QAAQ,SAAS,EAAE;EAC/B,SAAS,GAAG,QAAQ,SAAS,IAAI;CACnC;CAGA,MAAM,WAAW,cAAc;CAC/B,MAAM,aAAa,qBAAqB,UAAU,YAAY,MAAM;CAEpE,OACE,oBAACA,OAAD;EAEE,cAAa;EACb,YAAY;GACV,MAAM,WAAW;GACjB,aAAa,WAAW;GACxB,OAAO,WAAW;GAClB,cAAc,WAAW;EAC3B;EACA,eAAa,SAAS,QAAQ,MAAM,IAAI,KAAA;EAC5B;EACZ,aAAA;EACA,YAAY;EACZ,UAAU;EACV,SAAS;EACI;EACb,QAAO;EACD;EACN,cAAc,gBAAgB,oBAAC,UAAD,EAAU,WAAU,aAAc,CAAA;EACzD;EACP,SAAQ;CACT,CAAA;AAEL"}
|