@fuf-stack/pixels 1.11.1 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.cjs +0 -1
- package/dist/Accordion/Accordion.cjs.map +1 -1
- package/dist/Accordion/Accordion.d.cts +14 -14
- package/dist/Accordion/Accordion.d.cts.map +1 -1
- package/dist/Accordion/Accordion.d.ts +14 -14
- package/dist/Accordion/Accordion.d.ts.map +1 -1
- package/dist/Alert/Alert.cjs +19 -15
- package/dist/Alert/Alert.cjs.map +1 -1
- package/dist/Alert/Alert.d.cts +102 -66
- package/dist/Alert/Alert.d.cts.map +1 -1
- package/dist/Alert/Alert.d.ts +102 -66
- package/dist/Alert/Alert.d.ts.map +1 -1
- package/dist/Alert/Alert.js +19 -14
- package/dist/Alert/Alert.js.map +1 -1
- package/dist/Avatar/Avatar.cjs +0 -1
- package/dist/Avatar/Avatar.cjs.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.cjs +0 -1
- package/dist/AvatarGroup/AvatarGroup.cjs.map +1 -1
- package/dist/Badge/Badge.cjs +0 -1
- package/dist/Badge/Badge.cjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.cjs +10 -11
- package/dist/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +10 -10
- package/dist/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/Button/Button.cjs +0 -1
- package/dist/Button/Button.cjs.map +1 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs +0 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.cjs +0 -1
- package/dist/ButtonGroup/ButtonGroup.cjs.map +1 -1
- package/dist/Card/Card.cjs +1 -2
- package/dist/Card/Card.cjs.map +1 -1
- package/dist/Card/Card.js +1 -1
- package/dist/Card/Card.js.map +1 -1
- package/dist/Drawer/Drawer.cjs +0 -1
- package/dist/Drawer/Drawer.cjs.map +1 -1
- package/dist/Drawer/Drawer.d.cts +16 -16
- package/dist/Drawer/Drawer.d.ts +16 -16
- package/dist/Json/Json.cjs +30 -23
- package/dist/Json/Json.cjs.map +1 -1
- package/dist/Json/Json.d.cts.map +1 -1
- package/dist/Json/Json.d.ts.map +1 -1
- package/dist/Json/Json.js +30 -22
- package/dist/Json/Json.js.map +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.cjs +3 -4
- package/dist/Json/subcomponents/CopiedRenderer.cjs.map +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.js +3 -3
- package/dist/Json/subcomponents/CopiedRenderer.js.map +1 -1
- package/dist/Json/subcomponents/ErrorRenderer.cjs +0 -1
- package/dist/Json/subcomponents/ErrorRenderer.cjs.map +1 -1
- package/dist/Json/subcomponents/NullRenderer.cjs +0 -1
- package/dist/Json/subcomponents/NullRenderer.cjs.map +1 -1
- package/dist/Label/Label.cjs +0 -1
- package/dist/Label/Label.cjs.map +1 -1
- package/dist/Label/Label.d.cts +52 -52
- package/dist/Label/Label.d.cts.map +1 -1
- package/dist/Label/Label.d.ts +52 -52
- package/dist/Label/Label.d.ts.map +1 -1
- package/dist/Menu/Menu.cjs +1 -2
- package/dist/Menu/Menu.cjs.map +1 -1
- package/dist/Menu/Menu.d.cts +10 -10
- package/dist/Menu/Menu.d.cts.map +1 -1
- package/dist/Menu/Menu.d.ts +10 -10
- package/dist/Menu/Menu.d.ts.map +1 -1
- package/dist/Menu/Menu.js +1 -1
- package/dist/Menu/Menu.js.map +1 -1
- package/dist/Menu/VerticalDotsIcon.cjs +0 -1
- package/dist/Menu/VerticalDotsIcon.cjs.map +1 -1
- package/dist/Modal/Modal.cjs +0 -1
- package/dist/Modal/Modal.cjs.map +1 -1
- package/dist/Modal/Modal.d.cts +10 -10
- package/dist/Modal/Modal.d.cts.map +1 -1
- package/dist/Modal/Modal.d.ts +10 -10
- package/dist/Modal/Modal.d.ts.map +1 -1
- package/dist/Modal/ModalHost.cjs +0 -1
- package/dist/Modal/ModalHost.cjs.map +1 -1
- package/dist/Modal/modalStore.cjs +0 -1
- package/dist/Modal/modalStore.cjs.map +1 -1
- package/dist/Popover/Popover.cjs +1 -2
- package/dist/Popover/Popover.cjs.map +1 -1
- package/dist/Popover/Popover.d.cts +10 -10
- package/dist/Popover/Popover.d.ts +10 -10
- package/dist/Popover/Popover.js +1 -1
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Progress/Progress.cjs +0 -1
- package/dist/Progress/Progress.cjs.map +1 -1
- package/dist/Progress/Progress.d.cts +32 -32
- package/dist/Progress/Progress.d.cts.map +1 -1
- package/dist/Progress/Progress.d.ts +32 -32
- package/dist/Progress/Progress.d.ts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.cjs +1 -2
- package/dist/ProgressCircular/ProgressCircular.cjs.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.cts +35 -35
- package/dist/ProgressCircular/ProgressCircular.d.cts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.ts +35 -35
- package/dist/ProgressCircular/ProgressCircular.d.ts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.js +1 -1
- package/dist/ProgressCircular/ProgressCircular.js.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.cjs +0 -1
- package/dist/ScrollShadow/ScrollShadow.cjs.map +1 -1
- package/dist/SearchInput/SearchInput.cjs +8 -9
- package/dist/SearchInput/SearchInput.cjs.map +1 -1
- package/dist/SearchInput/SearchInput.js +8 -8
- package/dist/SearchInput/SearchInput.js.map +1 -1
- package/dist/Table/Table.cjs +0 -1
- package/dist/Table/Table.cjs.map +1 -1
- package/dist/Tabs/Tabs.cjs +0 -1
- package/dist/Tabs/Tabs.cjs.map +1 -1
- package/dist/Toast/Toaster.cjs +0 -1
- package/dist/Toast/Toaster.cjs.map +1 -1
- package/dist/Toast/toast.cjs +2 -3
- package/dist/Toast/toast.cjs.map +1 -1
- package/dist/Toast/toast.d.cts +17 -17
- package/dist/Toast/toast.d.cts.map +1 -1
- package/dist/Toast/toast.d.ts +17 -17
- package/dist/Toast/toast.d.ts.map +1 -1
- package/dist/Toast/toast.js +2 -2
- package/dist/Toast/toast.js.map +1 -1
- package/dist/Tooltip/Tooltip.cjs +6 -7
- package/dist/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/Tooltip/Tooltip.d.cts +6 -6
- package/dist/Tooltip/Tooltip.d.cts.map +1 -1
- package/dist/Tooltip/Tooltip.d.ts +6 -6
- package/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/Tooltip/Tooltip.js +6 -6
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/hooks/useDebounce/useDebounce.cjs +0 -1
- package/dist/hooks/useDebounce/useDebounce.cjs.map +1 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs +0 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs +0 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs +0 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs +0 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs.map +1 -1
- package/package.json +4 -4
package/dist/Json/Json.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Json.js","names":[],"sources":["../../src/Json/Json.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { ReactNode } from 'react';\n\nimport { useState } from 'react';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { getValue } from './jsonParser';\nimport CopiedRenderer from './subcomponents/CopiedRenderer';\nimport ErrorRenderer from './subcomponents/ErrorRenderer';\nimport NullRenderer from './subcomponents/NullRenderer';\n\nimport './theme.css';\n\n/**\n * Handles copying text or object values to clipboard.\n *\n * @param rawValue - The original value to copy (can be an object or primitive)\n * @param onCopy - Optional callback function triggered after copying with the copied value\n *\n * This function:\n * 1. Detects if the value is an object (not null and typeof 'object')\n * 2. Converts objects to JSON strings for clipboard copying\n * 3. Uses setTimeout to write the value to clipboard in the next render cycle\n * - This is necessary because JsonView (CopiedRenderer) normally handles copying itself,\n * but its copied value doesn't follow the same isObject logic\n * - By using setTimeout, we ensure our properly formatted value overwrites any previous copy operation\n * 4. Calls the optional onCopy callback with the copied value if provided\n *\n * Note: The text parameter is kept for API consistency but is not used in the copying process\n */\nconst handleCopy = (rawValue?: unknown, onCopy?: JsonProps['onCopy']) => {\n // determine of copied value is object-like\n let isObject = false;\n try {\n if (rawValue !== NullRenderer && typeof rawValue === 'object') {\n isObject = true;\n }\n } catch
|
|
1
|
+
{"version":3,"file":"Json.js","names":[],"sources":["../../src/Json/Json.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { ReactNode } from 'react';\n\nimport { useState } from 'react';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { getValue } from './jsonParser';\nimport CopiedRenderer from './subcomponents/CopiedRenderer';\nimport ErrorRenderer from './subcomponents/ErrorRenderer';\nimport NullRenderer from './subcomponents/NullRenderer';\n\nimport './theme.css';\n\n/**\n * Handles copying text or object values to clipboard.\n *\n * @param rawValue - The original value to copy (can be an object or primitive)\n * @param onCopy - Optional callback function triggered after copying with the copied value\n *\n * This function:\n * 1. Detects if the value is an object (not null and typeof 'object')\n * 2. Converts objects to JSON strings for clipboard copying\n * 3. Uses setTimeout to write the value to clipboard in the next render cycle\n * - This is necessary because JsonView (CopiedRenderer) normally handles copying itself,\n * but its copied value doesn't follow the same isObject logic\n * - By using setTimeout, we ensure our properly formatted value overwrites any previous copy operation\n * 4. Calls the optional onCopy callback with the copied value if provided\n *\n * Note: The text parameter is kept for API consistency but is not used in the copying process\n */\nconst handleCopy = (rawValue?: unknown, onCopy?: JsonProps['onCopy']) => {\n // determine of copied value is object-like\n let isObject = false;\n try {\n if (rawValue !== NullRenderer && typeof rawValue === 'object') {\n isObject = true;\n }\n } catch {\n // ignore\n }\n const copyValue = isObject\n ? JSON.stringify(rawValue, null, 2)\n : (rawValue as string);\n\n // JsonView (CopiedRenderer) does copy on its own but doesn't handle\n // object serialization correctly. We use setTimeout to overwrite its\n // clipboard value with our properly formatted version in the next tick.\n setTimeout(async () => {\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n return navigator.clipboard.writeText(copyValue);\n }, 1);\n\n // if cb provided call it with copyValue\n if (onCopy) {\n onCopy(copyValue);\n }\n};\n\nexport interface JsonProps {\n /** CSS class name */\n className?: string;\n /** When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. */\n collapsed?: boolean | number;\n /** Optional custom error renderer */\n errorRenderer?: (error: Error, data: string | object) => ReactNode;\n /** Optional maximum height of the JSON viewer */\n maxHeight?: string | number;\n /** Callback when copy action is performed */\n onCopy?: (copiedValue: string) => void;\n /** Object to be visualized JSON string or object */\n value: string | object;\n}\n\n/**\n * Json renderer based on [react-json-view](https://uiwjs.github.io/react-json-view)\n * with improved error handling, accessibility, and customization options\n */\nconst Json = ({\n className = undefined,\n collapsed = false,\n errorRenderer = undefined,\n maxHeight = undefined,\n onCopy = undefined,\n value,\n}: JsonProps) => {\n const [showDetails, setShowDetails] = useState(false);\n let parsedValue: object | undefined;\n let parsingError: Error | null = null;\n\n try {\n parsedValue = getValue(value);\n } catch (err) {\n parsingError = err as Error;\n }\n\n if (parsingError) {\n const defaultError = (\n <ErrorRenderer\n data={value}\n error={parsingError}\n onToggleDetails={() => {\n setShowDetails(!showDetails);\n }}\n showDetails={showDetails}\n />\n );\n\n const renderedError = errorRenderer\n ? errorRenderer(parsingError, value)\n : defaultError;\n\n return (\n <div aria-label=\"JSON viewer\" className={cn(className)} role=\"region\">\n {renderedError}\n </div>\n );\n }\n\n return (\n <div aria-label=\"JSON viewer\" className={cn(className)} role=\"region\">\n <div\n className=\"relative\"\n style={{ maxHeight, overflowY: maxHeight ? 'auto' : undefined }}\n >\n <JsonView\n className=\"pr-5\"\n collapsed={collapsed}\n displayDataTypes={false}\n onCopied={(_, rawValue) => {\n handleCopy(rawValue, onCopy);\n }}\n value={parsedValue}\n >\n <CopiedRenderer />\n <NullRenderer />\n </JsonView>\n </div>\n </div>\n );\n};\n\nexport default Json;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,MAAM,cAAc,UAAoB,WAAiC;CAEvE,IAAI,WAAW;CACf,IAAI;EACF,IAAI,aAAa,gBAAgB,OAAO,aAAa,UACnD,WAAW;CAEf,QAAQ,CAER;CACA,MAAM,YAAY,WACd,KAAK,UAAU,UAAU,MAAM,CAAC,IAC/B;CAKL,WAAW,YAAY;EAErB,OAAO,UAAU,UAAU,UAAU,SAAS;CAChD,GAAG,CAAC;CAGJ,IAAI,QACF,OAAO,SAAS;AAEpB;;;;;AAqBA,MAAM,QAAQ,EACZ,YAAY,KAAA,GACZ,YAAY,OACZ,gBAAgB,KAAA,GAChB,YAAY,KAAA,GACZ,SAAS,KAAA,GACT,YACe;CACf,MAAM,CAAC,aAAa,kBAAkB,SAAS,KAAK;CACpD,IAAI;CACJ,IAAI,eAA6B;CAEjC,IAAI;EACF,cAAc,SAAS,KAAK;CAC9B,SAAS,KAAK;EACZ,eAAe;CACjB;CAEA,IAAI,cAAc;EAYhB,MAAM,gBAAgB,gBAClB,cAAc,cAAc,KAAK,IACjC,oBAZD,eAAD;GACE,MAAM;GACN,OAAO;GACP,uBAAuB;IACrB,eAAe,CAAC,WAAW;GAC7B;GACa;EACd,CAKY;EAEf,OACE,oBAAC,OAAD;GAAK,cAAW;GAAc,WAAW,GAAG,SAAS;GAAG,MAAK;aAC1D;EACE,CAAA;CAET;CAEA,OACE,oBAAC,OAAD;EAAK,cAAW;EAAc,WAAW,GAAG,SAAS;EAAG,MAAK;YAC3D,oBAAC,OAAD;GACE,WAAU;GACV,OAAO;IAAE;IAAW,WAAW,YAAY,SAAS,KAAA;GAAU;aAE9D,qBAAC,UAAD;IACE,WAAU;IACC;IACX,kBAAkB;IAClB,WAAW,GAAG,aAAa;KACzB,WAAW,UAAU,MAAM;IAC7B;IACA,OAAO;cAPT,CASE,oBAAC,gBAAD,CAAiB,CAAA,GACjB,oBAAC,cAAD,CAAe,CAAA,CACP;;EACP,CAAA;CACF,CAAA;AAET"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_index = require("../../node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/index.cjs");
|
|
3
2
|
let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
|
|
4
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -29,13 +28,13 @@ const CopiedRenderer = () => {
|
|
|
29
28
|
"aria-label": isCopied ? "Copied to clipboard" : "Copy to clipboard",
|
|
30
29
|
className: "ml-0! h-[1em]! w-0! relative",
|
|
31
30
|
"data-testid": "copy-button",
|
|
31
|
+
onClick: (e) => {
|
|
32
|
+
return onClick?.(e);
|
|
33
|
+
},
|
|
32
34
|
onKeyDown: handleKeyDown,
|
|
33
35
|
role: "button",
|
|
34
36
|
style,
|
|
35
37
|
tabIndex: 0,
|
|
36
|
-
onClick: (e) => {
|
|
37
|
-
return onClick?.(e);
|
|
38
|
-
},
|
|
39
38
|
children: isCopied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_hi.HiOutlineClipboardCheck, { className: elmClasses }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_hi.HiOutlineClipboard, { className: elmClasses })
|
|
40
39
|
});
|
|
41
40
|
} });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopiedRenderer.cjs","names":["JsonView","HiOutlineClipboardCheck","HiOutlineClipboard"],"sources":["../../../src/Json/subcomponents/CopiedRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { KeyboardEvent, MouseEvent } from 'react';\n\nimport { HiOutlineClipboard, HiOutlineClipboardCheck } from 'react-icons/hi';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\n/**\n * A custom renderer for the JsonView's copy functionality that provides an accessible\n * and interactive copy button with visual feedback.\n *\n * This component overrides the default copy button implementation from @uiw/react-json-view\n * to fix flickering issues and improve accessibility. It renders a button that:\n * - Shows different icons for copied/not copied states\n * - Supports keyboard navigation\n * - Provides proper ARIA labels\n * - Maintains consistent positioning\n *\n * @returns A JsonView.Copied component with custom render implementation\n */\nconst CopiedRenderer = () => {\n return (\n <JsonView.Copied\n render={(props) => {\n const { style, onClick, className } = props;\n\n // @ts-expect-error this is ok\n\n const isCopied = props['data-copied'] as boolean;\n\n const elmClasses = cn(\n className,\n 'fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1',\n { 'text-success': isCopied },\n );\n\n const handleKeyDown = (e: KeyboardEvent<HTMLSpanElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }\n };\n\n return (\n <span\n aria-label={isCopied ? 'Copied to clipboard' : 'Copy to clipboard'}\n className=\"ml-0! h-[1em]! w-0! relative\"\n data-testid=\"copy-button\"\n
|
|
1
|
+
{"version":3,"file":"CopiedRenderer.cjs","names":["JsonView","HiOutlineClipboardCheck","HiOutlineClipboard"],"sources":["../../../src/Json/subcomponents/CopiedRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { KeyboardEvent, MouseEvent } from 'react';\n\nimport { HiOutlineClipboard, HiOutlineClipboardCheck } from 'react-icons/hi';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\n/**\n * A custom renderer for the JsonView's copy functionality that provides an accessible\n * and interactive copy button with visual feedback.\n *\n * This component overrides the default copy button implementation from @uiw/react-json-view\n * to fix flickering issues and improve accessibility. It renders a button that:\n * - Shows different icons for copied/not copied states\n * - Supports keyboard navigation\n * - Provides proper ARIA labels\n * - Maintains consistent positioning\n *\n * @returns A JsonView.Copied component with custom render implementation\n */\nconst CopiedRenderer = () => {\n return (\n <JsonView.Copied\n render={(props) => {\n const { style, onClick, className } = props;\n\n // @ts-expect-error this is ok\n\n const isCopied = props['data-copied'] as boolean;\n\n const elmClasses = cn(\n className,\n 'fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1',\n { 'text-success': isCopied },\n );\n\n const handleKeyDown = (e: KeyboardEvent<HTMLSpanElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }\n };\n\n return (\n <span\n aria-label={isCopied ? 'Copied to clipboard' : 'Copy to clipboard'}\n className=\"ml-0! h-[1em]! w-0! relative\"\n data-testid=\"copy-button\"\n onClick={(e) => {\n return onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }}\n onKeyDown={handleKeyDown}\n role=\"button\"\n style={style}\n tabIndex={0}\n >\n {isCopied ? (\n <HiOutlineClipboardCheck className={elmClasses} />\n ) : (\n <HiOutlineClipboard className={elmClasses} />\n )}\n </span>\n );\n }}\n />\n );\n};\n\nexport default CopiedRenderer;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAwBA,MAAM,uBAAuB;CAC3B,OACE,iBAAA,GAAA,kBAAA,KAACA,cAAAA,QAAS,QAAV,EACE,SAAS,UAAU;EACjB,MAAM,EAAE,OAAO,SAAS,cAAc;EAItC,MAAM,WAAW,MAAM;EAEvB,MAAM,cAAA,GAAA,uBAAA,IACJ,WACA,+DACA,EAAE,gBAAgB,SAAS,CAC7B;EAEA,MAAM,iBAAiB,MAAsC;GAC3D,IAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KACjC,UAAU,CAAyC;EAEvD;EAEA,OACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,cAAY,WAAW,wBAAwB;GAC/C,WAAU;GACV,eAAY;GACZ,UAAU,MAAM;IACd,OAAO,UAAU,CAAyC;GAC5D;GACA,WAAW;GACX,MAAK;GACE;GACP,UAAU;aAET,WACC,iBAAA,GAAA,kBAAA,KAACC,eAAAA,yBAAD,EAAyB,WAAW,WAAa,CAAA,IAEjD,iBAAA,GAAA,kBAAA,KAACC,eAAAA,oBAAD,EAAoB,WAAW,WAAa,CAAA;EAE1C,CAAA;CAEV,EACD,CAAA;AAEL"}
|
|
@@ -28,13 +28,13 @@ const CopiedRenderer = () => {
|
|
|
28
28
|
"aria-label": isCopied ? "Copied to clipboard" : "Copy to clipboard",
|
|
29
29
|
className: "ml-0! h-[1em]! w-0! relative",
|
|
30
30
|
"data-testid": "copy-button",
|
|
31
|
+
onClick: (e) => {
|
|
32
|
+
return onClick?.(e);
|
|
33
|
+
},
|
|
31
34
|
onKeyDown: handleKeyDown,
|
|
32
35
|
role: "button",
|
|
33
36
|
style,
|
|
34
37
|
tabIndex: 0,
|
|
35
|
-
onClick: (e) => {
|
|
36
|
-
return onClick?.(e);
|
|
37
|
-
},
|
|
38
38
|
children: isCopied ? /* @__PURE__ */ jsx(HiOutlineClipboardCheck, { className: elmClasses }) : /* @__PURE__ */ jsx(HiOutlineClipboard, { className: elmClasses })
|
|
39
39
|
});
|
|
40
40
|
} });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopiedRenderer.js","names":[],"sources":["../../../src/Json/subcomponents/CopiedRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { KeyboardEvent, MouseEvent } from 'react';\n\nimport { HiOutlineClipboard, HiOutlineClipboardCheck } from 'react-icons/hi';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\n/**\n * A custom renderer for the JsonView's copy functionality that provides an accessible\n * and interactive copy button with visual feedback.\n *\n * This component overrides the default copy button implementation from @uiw/react-json-view\n * to fix flickering issues and improve accessibility. It renders a button that:\n * - Shows different icons for copied/not copied states\n * - Supports keyboard navigation\n * - Provides proper ARIA labels\n * - Maintains consistent positioning\n *\n * @returns A JsonView.Copied component with custom render implementation\n */\nconst CopiedRenderer = () => {\n return (\n <JsonView.Copied\n render={(props) => {\n const { style, onClick, className } = props;\n\n // @ts-expect-error this is ok\n\n const isCopied = props['data-copied'] as boolean;\n\n const elmClasses = cn(\n className,\n 'fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1',\n { 'text-success': isCopied },\n );\n\n const handleKeyDown = (e: KeyboardEvent<HTMLSpanElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }\n };\n\n return (\n <span\n aria-label={isCopied ? 'Copied to clipboard' : 'Copy to clipboard'}\n className=\"ml-0! h-[1em]! w-0! relative\"\n data-testid=\"copy-button\"\n
|
|
1
|
+
{"version":3,"file":"CopiedRenderer.js","names":[],"sources":["../../../src/Json/subcomponents/CopiedRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\nimport type { KeyboardEvent, MouseEvent } from 'react';\n\nimport { HiOutlineClipboard, HiOutlineClipboardCheck } from 'react-icons/hi';\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\n/**\n * A custom renderer for the JsonView's copy functionality that provides an accessible\n * and interactive copy button with visual feedback.\n *\n * This component overrides the default copy button implementation from @uiw/react-json-view\n * to fix flickering issues and improve accessibility. It renders a button that:\n * - Shows different icons for copied/not copied states\n * - Supports keyboard navigation\n * - Provides proper ARIA labels\n * - Maintains consistent positioning\n *\n * @returns A JsonView.Copied component with custom render implementation\n */\nconst CopiedRenderer = () => {\n return (\n <JsonView.Copied\n render={(props) => {\n const { style, onClick, className } = props;\n\n // @ts-expect-error this is ok\n\n const isCopied = props['data-copied'] as boolean;\n\n const elmClasses = cn(\n className,\n 'fill-transparent! absolute -right-4 -top-[2px] h-4 w-4 pl-1',\n { 'text-success': isCopied },\n );\n\n const handleKeyDown = (e: KeyboardEvent<HTMLSpanElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }\n };\n\n return (\n <span\n aria-label={isCopied ? 'Copied to clipboard' : 'Copy to clipboard'}\n className=\"ml-0! h-[1em]! w-0! relative\"\n data-testid=\"copy-button\"\n onClick={(e) => {\n return onClick?.(e as unknown as MouseEvent<SVGSVGElement>);\n }}\n onKeyDown={handleKeyDown}\n role=\"button\"\n style={style}\n tabIndex={0}\n >\n {isCopied ? (\n <HiOutlineClipboardCheck className={elmClasses} />\n ) : (\n <HiOutlineClipboard className={elmClasses} />\n )}\n </span>\n );\n }}\n />\n );\n};\n\nexport default CopiedRenderer;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAwBA,MAAM,uBAAuB;CAC3B,OACE,oBAAC,SAAS,QAAV,EACE,SAAS,UAAU;EACjB,MAAM,EAAE,OAAO,SAAS,cAAc;EAItC,MAAM,WAAW,MAAM;EAEvB,MAAM,aAAa,GACjB,WACA,+DACA,EAAE,gBAAgB,SAAS,CAC7B;EAEA,MAAM,iBAAiB,MAAsC;GAC3D,IAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KACjC,UAAU,CAAyC;EAEvD;EAEA,OACE,oBAAC,QAAD;GACE,cAAY,WAAW,wBAAwB;GAC/C,WAAU;GACV,eAAY;GACZ,UAAU,MAAM;IACd,OAAO,UAAU,CAAyC;GAC5D;GACA,WAAW;GACX,MAAK;GACE;GACP,UAAU;aAET,WACC,oBAAC,yBAAD,EAAyB,WAAW,WAAa,CAAA,IAEjD,oBAAC,oBAAD,EAAoB,WAAW,WAAa,CAAA;EAE1C,CAAA;CAEV,EACD,CAAA;AAEL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorRenderer.cjs","names":["FaTimesCircle","Button","FaChevronUp","FaChevronDown"],"sources":["../../../src/Json/subcomponents/ErrorRenderer.tsx"],"sourcesContent":["import { FaChevronDown, FaChevronUp, FaTimesCircle } from 'react-icons/fa';\n\nimport { Button } from '../../Button';\n\ninterface ErrorRendererProps {\n /** The error that occurred during JSON parsing or processing */\n error: unknown;\n /** The original data that caused the error */\n data: string | object;\n /** Controls whether detailed error information is visible */\n showDetails: boolean;\n /** Callback function to toggle the visibility of error details */\n onToggleDetails: () => void;\n}\n\n/**\n * Displays JSON parsing or processing errors in a user-friendly format with expandable details.\n *\n * This component provides a consistent error display with:\n * - A prominent error message\n * - Expandable details section\n * - Original data preview\n * - Accessibility support via ARIA attributes\n */\nconst ErrorRenderer = ({\n error,\n data,\n showDetails,\n onToggleDetails,\n}: ErrorRendererProps) => {\n return (\n <div\n aria-live=\"polite\"\n className=\"mb-4 flex flex-col items-center rounded-lg border border-danger bg-danger-50 p-4 text-sm text-danger\"\n role=\"alert\"\n >\n <div className=\"flex w-full justify-between gap-6\">\n <div className=\"flex items-center\">\n <FaTimesCircle aria-hidden=\"true\" className=\"mr-2\" />\n <span className=\"font-medium\">Failed to parse JSON data</span>\n </div>\n <Button\n aria-controls=\"error-details\"\n aria-expanded={showDetails}\n color=\"danger\"\n onClick={onToggleDetails}\n size=\"sm\"\n variant=\"light\"\n >\n {showDetails ? (\n <>\n <FaChevronUp aria-hidden=\"true\" /> Hide Details\n </>\n ) : (\n <>\n <FaChevronDown aria-hidden=\"true\" /> Show Details\n </>\n )}\n </Button>\n </div>\n {showDetails ? (\n <div className=\"mt-4 w-full text-left\" id=\"error-details\">\n <div>\n <strong>Error:</strong>\n <pre>\n {error instanceof Error\n ? `${error.name}: ${error.message}`\n : 'Unknown error'}\n </pre>\n </div>\n <div className=\"mt-4\">\n <strong>Data:</strong>\n <pre>\n {typeof data !== 'string' ? JSON.stringify(data, null, 2) : data}\n </pre>\n </div>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default ErrorRenderer;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorRenderer.cjs","names":["FaTimesCircle","Button","FaChevronUp","FaChevronDown"],"sources":["../../../src/Json/subcomponents/ErrorRenderer.tsx"],"sourcesContent":["import { FaChevronDown, FaChevronUp, FaTimesCircle } from 'react-icons/fa';\n\nimport { Button } from '../../Button';\n\ninterface ErrorRendererProps {\n /** The error that occurred during JSON parsing or processing */\n error: unknown;\n /** The original data that caused the error */\n data: string | object;\n /** Controls whether detailed error information is visible */\n showDetails: boolean;\n /** Callback function to toggle the visibility of error details */\n onToggleDetails: () => void;\n}\n\n/**\n * Displays JSON parsing or processing errors in a user-friendly format with expandable details.\n *\n * This component provides a consistent error display with:\n * - A prominent error message\n * - Expandable details section\n * - Original data preview\n * - Accessibility support via ARIA attributes\n */\nconst ErrorRenderer = ({\n error,\n data,\n showDetails,\n onToggleDetails,\n}: ErrorRendererProps) => {\n return (\n <div\n aria-live=\"polite\"\n className=\"mb-4 flex flex-col items-center rounded-lg border border-danger bg-danger-50 p-4 text-sm text-danger\"\n role=\"alert\"\n >\n <div className=\"flex w-full justify-between gap-6\">\n <div className=\"flex items-center\">\n <FaTimesCircle aria-hidden=\"true\" className=\"mr-2\" />\n <span className=\"font-medium\">Failed to parse JSON data</span>\n </div>\n <Button\n aria-controls=\"error-details\"\n aria-expanded={showDetails}\n color=\"danger\"\n onClick={onToggleDetails}\n size=\"sm\"\n variant=\"light\"\n >\n {showDetails ? (\n <>\n <FaChevronUp aria-hidden=\"true\" /> Hide Details\n </>\n ) : (\n <>\n <FaChevronDown aria-hidden=\"true\" /> Show Details\n </>\n )}\n </Button>\n </div>\n {showDetails ? (\n <div className=\"mt-4 w-full text-left\" id=\"error-details\">\n <div>\n <strong>Error:</strong>\n <pre>\n {error instanceof Error\n ? `${error.name}: ${error.message}`\n : 'Unknown error'}\n </pre>\n </div>\n <div className=\"mt-4\">\n <strong>Data:</strong>\n <pre>\n {typeof data !== 'string' ? JSON.stringify(data, null, 2) : data}\n </pre>\n </div>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default ErrorRenderer;\n"],"mappings":";;;;;;;;;;;;;AAwBA,MAAM,iBAAiB,EACrB,OACA,MACA,aACA,sBACwB;CACxB,OACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EACE,aAAU;EACV,WAAU;EACV,MAAK;YAHP,CAKE,iBAAA,GAAA,kBAAA,MAAC,OAAD;GAAK,WAAU;aAAf,CACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,kBAAA,KAACA,eAAAA,eAAD;KAAe,eAAY;KAAO,WAAU;IAAQ,CAAA,GACpD,iBAAA,GAAA,kBAAA,KAAC,QAAD;KAAM,WAAU;eAAc;IAA+B,CAAA,CAC1D;OACL,iBAAA,GAAA,kBAAA,KAACC,eAAAA,SAAD;IACE,iBAAc;IACd,iBAAe;IACf,OAAM;IACN,SAAS;IACT,MAAK;IACL,SAAQ;cAEP,cACC,iBAAA,GAAA,kBAAA,MAAA,kBAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAACC,eAAAA,aAAD,EAAa,eAAY,OAAQ,CAAA,GAAC,eAClC,EAAA,CAAA,IAEF,iBAAA,GAAA,kBAAA,MAAA,kBAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAACC,eAAAA,eAAD,EAAe,eAAY,OAAQ,CAAA,GAAC,eACpC,EAAA,CAAA;GAEE,CAAA,CACL;MACJ,cACC,iBAAA,GAAA,kBAAA,MAAC,OAAD;GAAK,WAAU;GAAwB,IAAG;aAA1C,CACE,iBAAA,GAAA,kBAAA,MAAC,OAAD,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAAC,UAAD,EAAA,UAAQ,SAAc,CAAA,GACtB,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAA,UACG,iBAAiB,QACd,GAAG,MAAM,KAAK,IAAI,MAAM,YACxB,gBACD,CAAA,CACF,EAAA,CAAA,GACL,iBAAA,GAAA,kBAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,kBAAA,KAAC,UAAD,EAAA,UAAQ,QAAa,CAAA,GACrB,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAA,UACG,OAAO,SAAS,WAAW,KAAK,UAAU,MAAM,MAAM,CAAC,IAAI,KACzD,CAAA,CACF;KACF;OACH,IACD;;AAET"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_index = require("../../node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/index.cjs");
|
|
3
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
3
|
//#region src/Json/subcomponents/NullRenderer.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NullRenderer.cjs","names":["JsonView"],"sources":["../../../src/Json/subcomponents/NullRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\n/**\n * A custom renderer for JSON null values in the JsonView component.\n *\n * This component provides a consistent way to render null values across the JSON viewer.\n * It can be customized to handle null values differently from the default representation,\n * such as using different styling or displaying alternative text.\n */\nconst NullRenderer = () => {\n return (\n <JsonView.Null\n render={() => {\n return (\n <span className=\"rounded bg-warning-100 px-1 text-xs text-warning-700\">\n null\n </span>\n );\n }}\n />\n );\n};\n\nexport default NullRenderer;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NullRenderer.cjs","names":["JsonView"],"sources":["../../../src/Json/subcomponents/NullRenderer.tsx"],"sourcesContent":["/* eslint-disable import-x/no-extraneous-dependencies */\n\n// INFO: react-json-view is bundled with --dts-resolve for now (dev dep)\nimport JsonView from '@uiw/react-json-view';\n\n/**\n * A custom renderer for JSON null values in the JsonView component.\n *\n * This component provides a consistent way to render null values across the JSON viewer.\n * It can be customized to handle null values differently from the default representation,\n * such as using different styling or displaying alternative text.\n */\nconst NullRenderer = () => {\n return (\n <JsonView.Null\n render={() => {\n return (\n <span className=\"rounded bg-warning-100 px-1 text-xs text-warning-700\">\n null\n </span>\n );\n }}\n />\n );\n};\n\nexport default NullRenderer;\n"],"mappings":";;;;;;;;;;AAYA,MAAM,qBAAqB;CACzB,OACE,iBAAA,GAAA,kBAAA,KAACA,cAAAA,QAAS,MAAV,EACE,cAAc;EACZ,OACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GAAM,WAAU;aAAuD;EAEjE,CAAA;CAEV,EACD,CAAA;AAEL"}
|
package/dist/Label/Label.cjs
CHANGED
package/dist/Label/Label.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.cjs","names":["heroLabelVariants","HeroLabel"],"sources":["../../src/Label/Label.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChipProps as HeroLabelProps } from '@heroui/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as HeroLabel } from '@heroui/chip';\nimport { chip as heroLabelVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// label variants\nexport const labelVariants = tv({\n slots: {\n base: '',\n closeButton: '',\n content: '',\n dot: '',\n icon: '',\n },\n variants: {\n color: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/chip.ts\n info: {\n dot: 'bg-info',\n },\n ...heroLabelVariants.variants.color,\n },\n isIconOnly: {\n true: {\n content: 'px-1',\n },\n false: {\n content: 'flex items-center gap-2',\n },\n },\n hasEndContent: {\n true: {\n base: 'pr-2',\n },\n },\n variant: heroLabelVariants.variants.variant,\n },\n defaultVariants: heroLabelVariants.defaultVariants,\n compoundVariants: [\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/chip.ts\n ...heroLabelVariants.compoundVariants,\n // solid / color info\n {\n variant: 'solid',\n color: 'info',\n class: {\n base: 'bg-info text-info-foreground',\n },\n },\n // bordered / color info\n {\n variant: 'bordered',\n color: 'info',\n class: {\n base: 'border-info text-info',\n },\n },\n // light / color info\n {\n variant: 'light',\n color: 'info',\n class: {\n base: 'text-info',\n },\n },\n // flat / color info\n {\n variant: 'flat',\n color: 'info',\n class: {\n base: 'bg-info/20 text-info-600',\n },\n },\n // faded / color info\n {\n variant: 'faded',\n color: 'info',\n class: {\n base: 'border-default text-info',\n },\n },\n ],\n});\n\ntype VariantProps = TVProps<typeof labelVariants>;\ntype ClassName = TVClassName<typeof labelVariants>;\n\nexport interface LabelProps extends VariantProps {\n /** content of the label */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** color of the label */\n color?: VariantProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: HeroLabelProps['endContent'];\n /** optional label icon, when only icon provided without children and endContent */\n icon?: ReactNode;\n /** add close button to endContent */\n onClose?: HeroLabelProps['onClose'];\n /** radius of the label */\n radius?: HeroLabelProps['radius'];\n /** size of the label */\n size?: HeroLabelProps['size'];\n /** style variant of the label */\n variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';\n}\n\n/**\n * Label component based on [HeroUI Chip](https://www.heroui.com//docs/components/chip)\n */\nconst Label = ({\n children = undefined,\n className: _className = undefined,\n color = 'default',\n endContent = undefined,\n icon = undefined,\n onClose = undefined,\n radius = 'full',\n size = 'md',\n variant = 'solid',\n}: LabelProps) => {\n // determine variants based on props\n const isIconOnly = !!icon && !children && !endContent;\n const hasEndContent = !!endContent;\n\n // classNames from slots\n const variants = labelVariants({ color, isIconOnly, hasEndContent, variant });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroLabel\n classNames={classNames}\n endContent={endContent}\n onClose={onClose}\n radius={radius}\n size={size}\n variant={variant}\n >\n {icon ? <span className={classNames.icon}>{icon}</span> : null}\n {children}\n </HeroLabel>\n );\n};\n\nexport default Label;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Label.cjs","names":["heroLabelVariants","HeroLabel"],"sources":["../../src/Label/Label.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChipProps as HeroLabelProps } from '@heroui/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as HeroLabel } from '@heroui/chip';\nimport { chip as heroLabelVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// label variants\nexport const labelVariants = tv({\n slots: {\n base: '',\n closeButton: '',\n content: '',\n dot: '',\n icon: '',\n },\n variants: {\n color: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/chip.ts\n info: {\n dot: 'bg-info',\n },\n ...heroLabelVariants.variants.color,\n },\n isIconOnly: {\n true: {\n content: 'px-1',\n },\n false: {\n content: 'flex items-center gap-2',\n },\n },\n hasEndContent: {\n true: {\n base: 'pr-2',\n },\n },\n variant: heroLabelVariants.variants.variant,\n },\n defaultVariants: heroLabelVariants.defaultVariants,\n compoundVariants: [\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/chip.ts\n ...heroLabelVariants.compoundVariants,\n // solid / color info\n {\n variant: 'solid',\n color: 'info',\n class: {\n base: 'bg-info text-info-foreground',\n },\n },\n // bordered / color info\n {\n variant: 'bordered',\n color: 'info',\n class: {\n base: 'border-info text-info',\n },\n },\n // light / color info\n {\n variant: 'light',\n color: 'info',\n class: {\n base: 'text-info',\n },\n },\n // flat / color info\n {\n variant: 'flat',\n color: 'info',\n class: {\n base: 'bg-info/20 text-info-600',\n },\n },\n // faded / color info\n {\n variant: 'faded',\n color: 'info',\n class: {\n base: 'border-default text-info',\n },\n },\n ],\n});\n\ntype VariantProps = TVProps<typeof labelVariants>;\ntype ClassName = TVClassName<typeof labelVariants>;\n\nexport interface LabelProps extends VariantProps {\n /** content of the label */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** color of the label */\n color?: VariantProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: HeroLabelProps['endContent'];\n /** optional label icon, when only icon provided without children and endContent */\n icon?: ReactNode;\n /** add close button to endContent */\n onClose?: HeroLabelProps['onClose'];\n /** radius of the label */\n radius?: HeroLabelProps['radius'];\n /** size of the label */\n size?: HeroLabelProps['size'];\n /** style variant of the label */\n variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';\n}\n\n/**\n * Label component based on [HeroUI Chip](https://www.heroui.com//docs/components/chip)\n */\nconst Label = ({\n children = undefined,\n className: _className = undefined,\n color = 'default',\n endContent = undefined,\n icon = undefined,\n onClose = undefined,\n radius = 'full',\n size = 'md',\n variant = 'solid',\n}: LabelProps) => {\n // determine variants based on props\n const isIconOnly = !!icon && !children && !endContent;\n const hasEndContent = !!endContent;\n\n // classNames from slots\n const variants = labelVariants({ color, isIconOnly, hasEndContent, variant });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroLabel\n classNames={classNames}\n endContent={endContent}\n onClose={onClose}\n radius={radius}\n size={size}\n variant={variant}\n >\n {icon ? <span className={classNames.icon}>{icon}</span> : null}\n {children}\n </HeroLabel>\n );\n};\n\nexport default Label;\n"],"mappings":";;;;;AAUA,MAAa,iBAAA,GAAA,uBAAA,IAAmB;CAC9B,OAAO;EACL,MAAM;EACN,aAAa;EACb,SAAS;EACT,KAAK;EACL,MAAM;CACR;CACA,UAAU;EACR,OAAO;GAEL,MAAM,EACJ,KAAK,UACP;GACA,GAAGA,cAAAA,KAAkB,SAAS;EAChC;EACA,YAAY;GACV,MAAM,EACJ,SAAS,OACX;GACA,OAAO,EACL,SAAS,0BACX;EACF;EACA,eAAe,EACb,MAAM,EACJ,MAAM,OACR,EACF;EACA,SAASA,cAAAA,KAAkB,SAAS;CACtC;CACA,iBAAiBA,cAAAA,KAAkB;CACnC,kBAAkB;EAEhB,GAAGA,cAAAA,KAAkB;EAErB;GACE,SAAS;GACT,OAAO;GACP,OAAO,EACL,MAAM,+BACR;EACF;EAEA;GACE,SAAS;GACT,OAAO;GACP,OAAO,EACL,MAAM,wBACR;EACF;EAEA;GACE,SAAS;GACT,OAAO;GACP,OAAO,EACL,MAAM,YACR;EACF;EAEA;GACE,SAAS;GACT,OAAO;GACP,OAAO,EACL,MAAM,2BACR;EACF;EAEA;GACE,SAAS;GACT,OAAO;GACP,OAAO,EACL,MAAM,2BACR;EACF;CACF;AACF,CAAC;;;;AA6BD,MAAM,SAAS,EACb,WAAW,KAAA,GACX,WAAW,aAAa,KAAA,GACxB,QAAQ,WACR,aAAa,KAAA,GACb,OAAO,KAAA,GACP,UAAU,KAAA,GACV,SAAS,QACT,OAAO,MACP,UAAU,cACM;CAOhB,MAAM,cAAA,GAAA,uBAAA,sBADW,cAAc;EAAE;EAAO,YAJrB,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;EAIS,eAAA,CAH7B,CAAC;EAG2C;CAAQ,CAC5B,GAAG,YAAY,MAAM;CAEpE,OACE,iBAAA,GAAA,kBAAA,MAACC,aAAAA,MAAD;EACc;EACA;EACH;EACD;EACF;EACG;YANX,CAQG,OAAO,iBAAA,GAAA,kBAAA,KAAC,QAAD;GAAM,WAAW,WAAW;aAAO;EAAW,CAAA,IAAI,MACzD,QACQ;;AAEf"}
|
package/dist/Label/Label.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import { ChipProps } from "@heroui/chip";
|
|
|
4
4
|
|
|
5
5
|
//#region src/Label/Label.d.ts
|
|
6
6
|
declare const labelVariants: ((props?: ({
|
|
7
|
-
variant?: "bordered" | "
|
|
8
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
7
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
8
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
9
9
|
hasEndContent?: boolean | undefined;
|
|
10
10
|
isIconOnly?: boolean | undefined;
|
|
11
11
|
} & ({
|
|
@@ -16,8 +16,8 @@ declare const labelVariants: ((props?: ({
|
|
|
16
16
|
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;
|
|
17
17
|
})) | undefined) => {
|
|
18
18
|
base: (slotProps?: ({
|
|
19
|
-
variant?: "bordered" | "
|
|
20
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
19
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
20
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
21
21
|
hasEndContent?: boolean | undefined;
|
|
22
22
|
isIconOnly?: boolean | undefined;
|
|
23
23
|
} & ({
|
|
@@ -28,8 +28,8 @@ declare const labelVariants: ((props?: ({
|
|
|
28
28
|
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;
|
|
29
29
|
})) | undefined) => string;
|
|
30
30
|
closeButton: (slotProps?: ({
|
|
31
|
-
variant?: "bordered" | "
|
|
32
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
31
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
32
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
33
33
|
hasEndContent?: boolean | undefined;
|
|
34
34
|
isIconOnly?: boolean | undefined;
|
|
35
35
|
} & ({
|
|
@@ -40,8 +40,8 @@ declare const labelVariants: ((props?: ({
|
|
|
40
40
|
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;
|
|
41
41
|
})) | undefined) => string;
|
|
42
42
|
content: (slotProps?: ({
|
|
43
|
-
variant?: "bordered" | "
|
|
44
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
43
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
44
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
45
45
|
hasEndContent?: boolean | undefined;
|
|
46
46
|
isIconOnly?: boolean | undefined;
|
|
47
47
|
} & ({
|
|
@@ -52,8 +52,8 @@ declare const labelVariants: ((props?: ({
|
|
|
52
52
|
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;
|
|
53
53
|
})) | undefined) => string;
|
|
54
54
|
dot: (slotProps?: ({
|
|
55
|
-
variant?: "bordered" | "
|
|
56
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
55
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
56
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
57
57
|
hasEndContent?: boolean | undefined;
|
|
58
58
|
isIconOnly?: boolean | undefined;
|
|
59
59
|
} & ({
|
|
@@ -64,8 +64,8 @@ declare const labelVariants: ((props?: ({
|
|
|
64
64
|
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;
|
|
65
65
|
})) | undefined) => string;
|
|
66
66
|
icon: (slotProps?: ({
|
|
67
|
-
variant?: "bordered" | "
|
|
68
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
67
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
68
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
69
69
|
hasEndContent?: boolean | undefined;
|
|
70
70
|
isIconOnly?: boolean | undefined;
|
|
71
71
|
} & ({
|
|
@@ -77,8 +77,8 @@ declare const labelVariants: ((props?: ({
|
|
|
77
77
|
})) | undefined) => string;
|
|
78
78
|
} & {
|
|
79
79
|
base: (slotProps?: ({
|
|
80
|
-
variant?: "bordered" | "
|
|
81
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
80
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
81
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
82
82
|
hasEndContent?: boolean | undefined;
|
|
83
83
|
isIconOnly?: boolean | undefined;
|
|
84
84
|
} & ({
|
|
@@ -89,8 +89,8 @@ declare const labelVariants: ((props?: ({
|
|
|
89
89
|
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;
|
|
90
90
|
})) | undefined) => string;
|
|
91
91
|
closeButton: (slotProps?: ({
|
|
92
|
-
variant?: "bordered" | "
|
|
93
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
92
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
93
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
94
94
|
hasEndContent?: boolean | undefined;
|
|
95
95
|
isIconOnly?: boolean | undefined;
|
|
96
96
|
} & ({
|
|
@@ -101,8 +101,8 @@ declare const labelVariants: ((props?: ({
|
|
|
101
101
|
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;
|
|
102
102
|
})) | undefined) => string;
|
|
103
103
|
content: (slotProps?: ({
|
|
104
|
-
variant?: "bordered" | "
|
|
105
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
104
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
105
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
106
106
|
hasEndContent?: boolean | undefined;
|
|
107
107
|
isIconOnly?: boolean | undefined;
|
|
108
108
|
} & ({
|
|
@@ -113,8 +113,8 @@ declare const labelVariants: ((props?: ({
|
|
|
113
113
|
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;
|
|
114
114
|
})) | undefined) => string;
|
|
115
115
|
dot: (slotProps?: ({
|
|
116
|
-
variant?: "bordered" | "
|
|
117
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
116
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
117
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
118
118
|
hasEndContent?: boolean | undefined;
|
|
119
119
|
isIconOnly?: boolean | undefined;
|
|
120
120
|
} & ({
|
|
@@ -125,8 +125,8 @@ declare const labelVariants: ((props?: ({
|
|
|
125
125
|
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;
|
|
126
126
|
})) | undefined) => string;
|
|
127
127
|
icon: (slotProps?: ({
|
|
128
|
-
variant?: "bordered" | "
|
|
129
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
128
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
129
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
130
130
|
hasEndContent?: boolean | undefined;
|
|
131
131
|
isIconOnly?: boolean | undefined;
|
|
132
132
|
} & ({
|
|
@@ -138,8 +138,8 @@ declare const labelVariants: ((props?: ({
|
|
|
138
138
|
})) | undefined) => string;
|
|
139
139
|
} & {}) & {
|
|
140
140
|
extend: ((props?: ({
|
|
141
|
-
variant?: "bordered" | "
|
|
142
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
141
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
142
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
143
143
|
hasEndContent?: boolean | undefined;
|
|
144
144
|
isIconOnly?: boolean | undefined;
|
|
145
145
|
} & ({
|
|
@@ -150,8 +150,8 @@ declare const labelVariants: ((props?: ({
|
|
|
150
150
|
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;
|
|
151
151
|
})) | undefined) => {} & {
|
|
152
152
|
base: (slotProps?: ({
|
|
153
|
-
variant?: "bordered" | "
|
|
154
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
153
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
154
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
155
155
|
hasEndContent?: boolean | undefined;
|
|
156
156
|
isIconOnly?: boolean | undefined;
|
|
157
157
|
} & ({
|
|
@@ -162,8 +162,8 @@ declare const labelVariants: ((props?: ({
|
|
|
162
162
|
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;
|
|
163
163
|
})) | undefined) => string;
|
|
164
164
|
closeButton: (slotProps?: ({
|
|
165
|
-
variant?: "bordered" | "
|
|
166
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
165
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
166
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
167
167
|
hasEndContent?: boolean | undefined;
|
|
168
168
|
isIconOnly?: boolean | undefined;
|
|
169
169
|
} & ({
|
|
@@ -174,8 +174,8 @@ declare const labelVariants: ((props?: ({
|
|
|
174
174
|
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;
|
|
175
175
|
})) | undefined) => string;
|
|
176
176
|
content: (slotProps?: ({
|
|
177
|
-
variant?: "bordered" | "
|
|
178
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
177
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
178
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
179
179
|
hasEndContent?: boolean | undefined;
|
|
180
180
|
isIconOnly?: boolean | undefined;
|
|
181
181
|
} & ({
|
|
@@ -186,8 +186,8 @@ declare const labelVariants: ((props?: ({
|
|
|
186
186
|
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;
|
|
187
187
|
})) | undefined) => string;
|
|
188
188
|
dot: (slotProps?: ({
|
|
189
|
-
variant?: "bordered" | "
|
|
190
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
189
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
190
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
191
191
|
hasEndContent?: boolean | undefined;
|
|
192
192
|
isIconOnly?: boolean | undefined;
|
|
193
193
|
} & ({
|
|
@@ -198,8 +198,8 @@ declare const labelVariants: ((props?: ({
|
|
|
198
198
|
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;
|
|
199
199
|
})) | undefined) => string;
|
|
200
200
|
icon: (slotProps?: ({
|
|
201
|
-
variant?: "bordered" | "
|
|
202
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
201
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
202
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
203
203
|
hasEndContent?: boolean | undefined;
|
|
204
204
|
isIconOnly?: boolean | undefined;
|
|
205
205
|
} & ({
|
|
@@ -275,22 +275,22 @@ declare const labelVariants: ((props?: ({
|
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
defaultVariants: {
|
|
278
|
-
variant?: "bordered" | "
|
|
279
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
278
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
279
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
280
280
|
hasEndContent?: boolean | undefined;
|
|
281
281
|
isIconOnly?: boolean | undefined;
|
|
282
282
|
};
|
|
283
283
|
compoundVariants: ({
|
|
284
|
-
variant?: "bordered" | "
|
|
285
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
284
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | ("bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow")[] | undefined;
|
|
285
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
286
286
|
hasEndContent?: boolean | boolean[] | undefined;
|
|
287
287
|
isIconOnly?: boolean | boolean[] | undefined;
|
|
288
288
|
} & ({
|
|
289
289
|
class?: (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) | {
|
|
290
290
|
base?: 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;
|
|
291
291
|
icon?: 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;
|
|
292
|
-
content?: 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;
|
|
293
292
|
closeButton?: 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;
|
|
293
|
+
content?: 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;
|
|
294
294
|
dot?: 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;
|
|
295
295
|
};
|
|
296
296
|
className?: never;
|
|
@@ -299,18 +299,18 @@ declare const labelVariants: ((props?: ({
|
|
|
299
299
|
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) | {
|
|
300
300
|
base?: 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;
|
|
301
301
|
icon?: 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;
|
|
302
|
-
content?: 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;
|
|
303
302
|
closeButton?: 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;
|
|
303
|
+
content?: 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;
|
|
304
304
|
dot?: 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;
|
|
305
305
|
};
|
|
306
306
|
}))[];
|
|
307
307
|
compoundSlots: ({
|
|
308
|
-
slots: ("base" | "icon" | "
|
|
308
|
+
slots: ("base" | "icon" | "closeButton" | "content" | "dot")[];
|
|
309
309
|
} & ({
|
|
310
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
310
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
311
311
|
isIconOnly?: boolean | boolean[] | undefined;
|
|
312
312
|
hasEndContent?: boolean | boolean[] | undefined;
|
|
313
|
-
variant?: "bordered" | "
|
|
313
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | ("bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow")[] | undefined;
|
|
314
314
|
} & ({
|
|
315
315
|
class?: 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;
|
|
316
316
|
className?: never;
|
|
@@ -384,22 +384,22 @@ declare const labelVariants: ((props?: ({
|
|
|
384
384
|
};
|
|
385
385
|
};
|
|
386
386
|
defaultVariants: {
|
|
387
|
-
variant?: "bordered" | "
|
|
388
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
387
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | undefined;
|
|
388
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
389
389
|
hasEndContent?: boolean | undefined;
|
|
390
390
|
isIconOnly?: boolean | undefined;
|
|
391
391
|
};
|
|
392
392
|
compoundVariants: ({
|
|
393
|
-
variant?: "bordered" | "
|
|
394
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
393
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | ("bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow")[] | undefined;
|
|
394
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
395
395
|
hasEndContent?: boolean | boolean[] | undefined;
|
|
396
396
|
isIconOnly?: boolean | boolean[] | undefined;
|
|
397
397
|
} & ({
|
|
398
398
|
class?: (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) | {
|
|
399
399
|
base?: 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;
|
|
400
400
|
icon?: 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;
|
|
401
|
-
content?: 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;
|
|
402
401
|
closeButton?: 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;
|
|
402
|
+
content?: 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;
|
|
403
403
|
dot?: 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;
|
|
404
404
|
};
|
|
405
405
|
className?: never;
|
|
@@ -408,18 +408,18 @@ declare const labelVariants: ((props?: ({
|
|
|
408
408
|
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) | {
|
|
409
409
|
base?: 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;
|
|
410
410
|
icon?: 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;
|
|
411
|
-
content?: 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;
|
|
412
411
|
closeButton?: 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;
|
|
412
|
+
content?: 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;
|
|
413
413
|
dot?: 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;
|
|
414
414
|
};
|
|
415
415
|
}))[];
|
|
416
416
|
compoundSlots: ({
|
|
417
|
-
slots: ("base" | "icon" | "
|
|
417
|
+
slots: ("base" | "icon" | "closeButton" | "content" | "dot")[];
|
|
418
418
|
} & ({
|
|
419
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
419
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
420
420
|
isIconOnly?: boolean | boolean[] | undefined;
|
|
421
421
|
hasEndContent?: boolean | boolean[] | undefined;
|
|
422
|
-
variant?: "bordered" | "
|
|
422
|
+
variant?: "bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow" | ("bordered" | "dot" | "solid" | "flat" | "light" | "faded" | "shadow")[] | undefined;
|
|
423
423
|
} & ({
|
|
424
424
|
class?: 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;
|
|
425
425
|
className?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.cts","names":[],"sources":["../../src/Label/Label.tsx"],"mappings":";;;;;cAUa,aAAA,IAAa,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mbAmHb;mbAVE;mbAAA;sbAAA;
|
|
1
|
+
{"version":3,"file":"Label.d.cts","names":[],"sources":["../../src/Label/Label.tsx"],"mappings":";;;;;cAUa,aAAA,IAAa,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mbAmHb;mbAVE;mbAAA;0bAAA;sbAAA;kbAAA;IAAA;;;;ubAAA;mbAAA;mbAAA;0bAAA;sbAAA;kbAAA;IAAA;EAAA;;;;;;;;;;;;;;;;;KA3BV,YAAA,GAAe,OAAO,QAAQ,aAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,aAAA;AAAA,UAEnB,UAAA,SAAmB,YAAA;;EAElC,QAAA,GAAW,SAAA;;EAEX,SAAA,GAAY,SAAA;;EAEZ,KAAA,GAAQ,YAAA;;EAER,UAAA,GAAa,SAAA;;EAEb,IAAA,GAAO,SAAA;;EAEP,OAAA,GAAU,SAAA;;EAEV,MAAA,GAAS,SAAA;;EAET,IAAA,GAAO,SAAA;;EAEP,OAAA;AAAA;;;;cAMI,KAAA;EAAS,QAAA;EAAA,SAAA,EAAA,UAAA;EAAA,KAAA;EAAA,UAAA;EAAA,IAAA;EAAA,OAAA;EAAA,MAAA;EAAA,IAAA;EAAA;AAAA,GAUZ,UAAA,iCAAU,GAAA,CAAA,OAAA"}
|