@codefast/ui 0.1.37 → 0.1.38
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/chunk-J7Z75WLH.cjs +4 -0
- package/dist/chunk-J7Z75WLH.cjs.map +1 -0
- package/dist/chunk-PCE3WY5B.js +4 -0
- package/dist/chunk-PCE3WY5B.js.map +1 -0
- package/dist/components/chart.cjs +1 -1
- package/dist/components/chart.cjs.map +1 -1
- package/dist/components/chart.d.cts +50 -1
- package/dist/components/chart.d.ts +50 -1
- package/dist/components/chart.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-4LQA6RGQ.js +0 -1
- package/dist/chunk-4LQA6RGQ.js.map +0 -1
- package/dist/chunk-CFQPQ5FI.cjs +0 -1
- package/dist/chunk-CFQPQ5FI.cjs.map +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _react = require('react');var _recharts = require('recharts'); var g = _interopRequireWildcard(_recharts);var _jsxruntime = require('react/jsx-runtime');var N={light:"",dark:".dark"},w=_react.createContext.call(void 0, null);function _(){let e=_react.useContext.call(void 0, w);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}var $=_react.forwardRef.call(void 0, ({children:e,className:r,config:t,id:o,...a},c)=>{let s=_react.useId.call(void 0, ),l=`chart-${o||s.replace(/:/g,"")}`;return _jsxruntime.jsx.call(void 0, w.Provider,{value:{config:t},children:_jsxruntime.jsxs.call(void 0, "div",{ref:c,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex aspect-video justify-center text-xs","[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground","[&_.recharts-cartesian-grid_line[stroke=#ccc]]:stroke-border/50","[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border","[&_.recharts-dot[stroke=#fff]]:stroke-transparent","[&_.recharts-layer]:outline-none","[&_.recharts-polar-grid_[stroke=#ccc]]:stroke-border","[&_.recharts-radial-bar-background-sector]:fill-muted","[&_.recharts-reference-line_[stroke=#ccc]]:stroke-border","[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted","[&_.recharts-sector]:outline-none","[&_.recharts-sector[stroke=#fff]]:stroke-transparent","[&_.recharts-surface]:outline-none",r),"data-chart":l,...a,children:[_jsxruntime.jsx.call(void 0, I,{config:t,id:l}),_jsxruntime.jsx.call(void 0, g.ResponsiveContainer,{children:e})]})})});$.displayName="Chart";function I({id:e,config:r}){let t=_react.useMemo.call(void 0, ()=>X(e,r),[e,r]);return _jsxruntime.jsx.call(void 0, "style",{dangerouslySetInnerHTML:{__html:t}})}var G=g.Tooltip,O= exports.d =_react.forwardRef.call(void 0, ({active:e,className:r,color:t,formatter:o,hideIndicator:a=!1,hideLabel:c=!1,indicator:s="dot",label:l,labelClassName:p,labelFormatter:h,labelKey:y,nameKey:E,payload:u},j)=>{let{config:m}=_(),k=_react.useMemo.call(void 0, ()=>{if(c||!_optionalChain([u, 'optionalAccess', _2 => _2.length]))return null;let[n]=u;if(!n)return null;let P=`${y||n.dataKey||n.name||"value"}`,b=x(m,n,P),C=!y&&typeof l=="string"?_optionalChain([m, 'access', _3 => _3[l], 'optionalAccess', _4 => _4.label])||l:_optionalChain([b, 'optionalAccess', _5 => _5.label]);return h?_jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "font-medium",p),children:h(C,u)}):C?_jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "font-medium",p),children:C}):null},[m,c,l,p,h,y,u]);if(!e||!_optionalChain([u, 'optionalAccess', _6 => _6.length]))return null;let v=u.length===1&&s!=="dot";return _jsxruntime.jsxs.call(void 0, "div",{ref:j,className:_chunkDD6AVCRHcjs.a.call(void 0, "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:k,_jsxruntime.jsx.call(void 0, "div",{className:"grid gap-1.5",children:u.map((n,P)=>{let b=`${E||n.name||n.dataKey||"value"}`,C=x(m,n,b),R=t||n.payload.fill||n.color;return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",s==="dot"&&"items-center"),children:o&&n.value!==void 0&&n.name?o(n.value,n.name,n,P,n.payload):_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_optionalChain([C, 'optionalAccess', _7 => _7.icon])?_jsxruntime.jsx.call(void 0, C.icon,{}):!a&&_jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":s==="dot","w-1":s==="line","w-0 border-[1.5px] border-dashed bg-transparent":s==="dashed","my-0.5":v&&s==="dashed"}),style:{"--color-bg":R,"--color-border":R}}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[_jsxruntime.jsxs.call(void 0, "div",{className:"grid gap-1.5",children:[v?k:null,_jsxruntime.jsx.call(void 0, "span",{className:"text-muted-foreground",children:_optionalChain([C, 'optionalAccess', _8 => _8.label])||n.name})]}),n.value?_jsxruntime.jsx.call(void 0, "span",{className:"text-foreground font-mono font-medium tabular-nums",children:n.value.toLocaleString()}):null]})]})},n.dataKey)})})]})});O.displayName="ChartTooltipContent";var Q=g.Legend,D= exports.f =_react.forwardRef.call(void 0, ({className:e,hideIcon:r=!1,nameKey:t,payload:o,verticalAlign:a="bottom"},c)=>{let{config:s}=_();return _optionalChain([o, 'optionalAccess', _9 => _9.length])?_jsxruntime.jsx.call(void 0, "div",{ref:c,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex items-center justify-center gap-4",a==="top"?"pb-3":"pt-3",e),children:o.map(l=>{let p="value";t?p=t:l.dataKey&&(p=String(l.dataKey));let h=x(s,l,p);return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3"),children:[_optionalChain([h, 'optionalAccess', _10 => _10.icon])&&!r?_jsxruntime.jsx.call(void 0, h.icon,{}):_jsxruntime.jsx.call(void 0, "div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),_optionalChain([h, 'optionalAccess', _11 => _11.label])]},String(l.value))})}):null});D.displayName="ChartLegendContent";function x(e,r,t){if(!S(r))return;let o="payload"in r&&S(r.payload)?r.payload:void 0,a=V(r,o,t);return a in e?e[a]:e[t]}function S(e){return typeof e=="object"&&e!==null}function V(e,r,t){return t in e&&typeof e[t]=="string"?e[t]:r&&t in r&&typeof r[t]=="string"?r[t]:t}function J(e,r,t){let o=[];return o.push(`${N[e]} [data-chart=${r}] {`),t.forEach(([a,c])=>{let s=_optionalChain([c, 'access', _12 => _12.theme, 'optionalAccess', _13 => _13[e]])||c.color;s&&o.push(` --color-${a}: ${s};`)}),o.push("}"),o.join(`
|
|
2
|
+
`)}function X(e,r){let t=Object.entries(r).filter(([a,{theme:c,color:s}])=>c||s),o=[];return Object.keys(N).forEach(a=>{let c=J(a,e,t);o.push(c)}),o.join(`
|
|
3
|
+
`)}exports.a = $; exports.b = I; exports.c = G; exports.d = O; exports.e = Q; exports.f = D;
|
|
4
|
+
//# sourceMappingURL=chunk-J7Z75WLH.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-J7Z75WLH.cjs","../src/components/chart.tsx"],"names":["RechartsPrimitive","createContext","useChart","ChartContainer","children","className","id","ref","uniqueId","useId","chartId","jsx","ChartContext"],"mappings":"AAAA,22BAAY,CAAC,wDCKX,8BASUA,gFAgPM,+CAvOhB,IACA,CAAA,CAAA,CAAA,KAAM,CAAA,EACR,CAAA,IAwBqBC,CAAwC,OAE7D,CAAA,CAAA,CAAA,CAAA,kCAAA,IAASC,CAA8B,CACrC,SAAuC,CAAA,CAEvC,CAAA,CAAA,IACE,CAAA,CAAA,+BAAA,CAAA,CAAM,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,MAAM,IAAA,KAAA,CAAA,mDAkBpB,CAAA,CAAMC,OACD,CAAA,CAAA,IAAA,CAAA,CAAAC,+BAAAA,CAAU,CAAA,QAAAC,CAAAA,CAAW,CAAA,SAAQ,CAAA,CAAAC,CAAAA,MAAa,CAAGC,CAAAA,CAAAA,EAAQ,CACtD,CAAA,CAAA,GAAMC,CAAWC,CAAAA,CAAM,CAAA,CACjBC,EAAU,CAAA,IAAA,CAAA,CAAA,0BAAA,CAASJ,CAAAA,CAAME,CAAAA,CAAS,MAAA,EAAQ,CAAA,EAAA,CAAA,CAAM,OAEtD,CAAA,IAAA,CACEG,EAACC,CAAAA,CAAa,CAAA;AAwcG;AACvB","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-J7Z75WLH.cjs","sourcesContent":[null,"'use client';\n\nimport {\n type ComponentProps,\n type ComponentType,\n createContext,\n type CSSProperties,\n forwardRef,\n type JSX,\n type ReactNode,\n useContext,\n useId,\n useMemo,\n} from 'react';\nimport * as RechartsPrimitive from 'recharts';\nimport {\n type NameType,\n type Payload,\n type ValueType,\n} from 'recharts/types/component/DefaultTooltipContent';\nimport { cn } from '@/lib/utils';\n\nconst THEMES = {\n light: '',\n dark: '.dark',\n} as const;\n\ntype Theme = keyof typeof THEMES;\n\nexport type ChartConfig = {\n [k in string]: {\n icon?: ComponentType;\n label?: ReactNode;\n } & (\n | {\n color?: string;\n theme?: never;\n }\n | {\n theme: Record<Theme, string>;\n color?: never;\n }\n );\n};\n\ninterface ChartContextProps {\n config: ChartConfig;\n}\n\nconst ChartContext = createContext<ChartContextProps | null>(null);\n\nfunction useChart(): ChartContextProps {\n const context = useContext(ChartContext);\n\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Chart\n * -------------------------------------------------------------------------- */\n\ntype ChartContainerElement = HTMLDivElement;\ninterface ChartContainerProps extends ComponentProps<'div'> {\n children: ComponentProps<\n typeof RechartsPrimitive.ResponsiveContainer\n >['children'];\n config: ChartConfig;\n}\n\nconst ChartContainer = forwardRef<ChartContainerElement, ChartContainerProps>(\n ({ children, className, config, id, ...props }, ref) => {\n const uniqueId = useId();\n const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`;\n\n return (\n <ChartContext.Provider value={{ config }}>\n <div\n ref={ref}\n className={cn(\n 'flex aspect-video justify-center text-xs',\n '[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground',\n '[&_.recharts-cartesian-grid_line[stroke=#ccc]]:stroke-border/50',\n '[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border',\n '[&_.recharts-dot[stroke=#fff]]:stroke-transparent',\n '[&_.recharts-layer]:outline-none',\n '[&_.recharts-polar-grid_[stroke=#ccc]]:stroke-border',\n '[&_.recharts-radial-bar-background-sector]:fill-muted',\n '[&_.recharts-reference-line_[stroke=#ccc]]:stroke-border',\n '[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted',\n '[&_.recharts-sector]:outline-none',\n '[&_.recharts-sector[stroke=#fff]]:stroke-transparent',\n '[&_.recharts-surface]:outline-none',\n className,\n )}\n data-chart={chartId}\n {...props}\n >\n <ChartStyle config={config} id={chartId} />\n <RechartsPrimitive.ResponsiveContainer>\n {children}\n </RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n );\n },\n);\n\nChartContainer.displayName = 'Chart';\n\n/* -----------------------------------------------------------------------------\n * Component: ChartStyle\n * -------------------------------------------------------------------------- */\n\ninterface ChartStyleProps {\n config: ChartConfig;\n id: string;\n}\n\nfunction ChartStyle({ id, config }: ChartStyleProps): JSX.Element | null {\n const cssString = useMemo(() => generateCSS(id, config), [id, config]);\n\n return <style dangerouslySetInnerHTML={{ __html: cssString }} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltip\n * -------------------------------------------------------------------------- */\n\ntype ChartTooltipProps = ComponentProps<typeof RechartsPrimitive.Tooltip>;\nconst ChartTooltip = RechartsPrimitive.Tooltip;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltipContent\n * -------------------------------------------------------------------------- */\n\ntype ChartTooltipContentElement = HTMLDivElement;\ninterface ChartTooltipContentProps\n extends ComponentProps<typeof RechartsPrimitive.Tooltip>,\n Omit<ComponentProps<'div'>, 'content'> {\n hideIndicator?: boolean;\n hideLabel?: boolean;\n indicator?: 'line' | 'dot' | 'dashed';\n labelKey?: string;\n nameKey?: string;\n}\n\nconst ChartTooltipContent = forwardRef<\n ChartTooltipContentElement,\n ChartTooltipContentProps\n>(\n (\n {\n active,\n className,\n color,\n formatter,\n hideIndicator = false,\n hideLabel = false,\n indicator = 'dot',\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n nameKey,\n payload,\n },\n ref,\n ) => {\n const { config } = useChart();\n\n const tooltipLabel = useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null;\n }\n\n const [item] = payload;\n\n if (!item) {\n return null;\n }\n\n const key = `${labelKey || item.dataKey || item.name || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const value =\n !labelKey && typeof label === 'string'\n ? config[label]?.label || label\n : itemConfig?.label;\n\n if (labelFormatter) {\n return (\n <div className={cn('font-medium', labelClassName)}>\n {labelFormatter(value, payload)}\n </div>\n );\n }\n\n if (!value) {\n return null;\n }\n\n return <div className={cn('font-medium', labelClassName)}>{value}</div>;\n }, [\n config,\n hideLabel,\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n payload,\n ]);\n\n if (!active || !payload?.length) {\n return null;\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot';\n\n return (\n <div\n ref={ref}\n className={cn(\n 'border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl',\n className,\n )}\n >\n {!nestLabel ? tooltipLabel : null}\n <div className=\"grid gap-1.5\">\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const indicatorColor =\n color || (item.payload as { fill?: string }).fill || item.color;\n\n return (\n <div\n key={item.dataKey}\n className={cn(\n '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5',\n indicator === 'dot' && 'items-center',\n )}\n >\n {formatter && item.value !== undefined && item.name ? (\n formatter(\n item.value,\n item.name,\n item,\n index,\n item.payload as Payload<ValueType, NameType>[],\n )\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn(\n 'shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]',\n {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'w-1': indicator === 'line',\n 'w-0 border-[1.5px] border-dashed bg-transparent':\n indicator === 'dashed',\n 'my-0.5': nestLabel && indicator === 'dashed',\n },\n )}\n style={\n {\n '--color-bg': indicatorColor,\n '--color-border': indicatorColor,\n } as CSSProperties\n }\n />\n )\n )}\n <div\n className={cn(\n 'flex flex-1 justify-between leading-none',\n nestLabel ? 'items-end' : 'items-center',\n )}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-muted-foreground\">\n {itemConfig?.label || item.name}\n </span>\n </div>\n {item.value ? (\n <span className=\"text-foreground font-mono font-medium tabular-nums\">\n {item.value.toLocaleString()}\n </span>\n ) : null}\n </div>\n </>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n },\n);\n\nChartTooltipContent.displayName = 'ChartTooltipContent';\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegend\n * -------------------------------------------------------------------------- */\n\ntype ChartLegendProps = ComponentProps<typeof RechartsPrimitive.Legend>;\nconst ChartLegend = RechartsPrimitive.Legend;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegendContent\n * -------------------------------------------------------------------------- */\n\ntype ChartLegendContent = HTMLDivElement;\ninterface ChartLegendContentProps\n extends ComponentProps<'div'>,\n Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> {\n hideIcon?: boolean;\n nameKey?: string;\n}\n\nconst ChartLegendContent = forwardRef<HTMLDivElement, ChartLegendContentProps>(\n (\n { className, hideIcon = false, nameKey, payload, verticalAlign = 'bottom' },\n ref,\n ) => {\n const { config } = useChart();\n\n if (!payload?.length) {\n return null;\n }\n\n return (\n <div\n ref={ref}\n className={cn(\n 'flex items-center justify-center gap-4',\n verticalAlign === 'top' ? 'pb-3' : 'pt-3',\n className,\n )}\n >\n {payload.map((item) => {\n let key = 'value';\n\n if (nameKey) {\n key = nameKey;\n } else if (item.dataKey) {\n key = String(item.dataKey);\n }\n\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n\n return (\n <div\n key={String(item.value)}\n className={cn(\n '[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3',\n )}\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"h-2 w-2 shrink-0 rounded-[2px]\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n {itemConfig?.label}\n </div>\n );\n })}\n </div>\n );\n },\n);\n\nChartLegendContent.displayName = 'ChartLegendContent';\n\n/* -----------------------------------------------------------------------------\n * Helpers\n * -------------------------------------------------------------------------- */\n\n/**\n * Extracts and returns the appropriate configuration object from\n * the payload based on the specified key.\n *\n * @param config - The chart configuration object that contains various\n * settings.\n * @param payload - The payload object that might contain nested payload data.\n * @param key - The key used to retrieve the specific configuration from the\n * chart config.\n * @returns Returns a configuration object with optional properties `icon`,\n * `label`, `color` or `theme`, or `undefined` if the payload is invalid or\n * no configuration is found for the provided key.\n */\nfunction getPayloadConfigFromPayload(\n config: ChartConfig,\n payload: unknown,\n key: string,\n):\n | ({\n icon?: ComponentType;\n label?: ReactNode;\n } & {\n color?: string;\n theme?: never;\n })\n | ({\n icon?: ComponentType;\n label?: ReactNode;\n } & {\n theme: Record<Theme, string>;\n color?: never;\n })\n | undefined {\n if (!isValidObject(payload)) {\n return undefined;\n }\n\n const nestedPayload =\n 'payload' in payload && isValidObject(payload.payload)\n ? payload.payload\n : undefined;\n\n const configLabelKey = getConfigLabelKey(payload, nestedPayload, key);\n\n return configLabelKey in config ? config[configLabelKey] : config[key];\n}\n\n/**\n * Checks if the provided value is a valid object.\n *\n * @param obj - The value to check.\n * @returns - Returns true if the value is an object and not null, false\n * otherwise.\n */\nfunction isValidObject(obj: unknown): obj is Record<string, unknown> {\n return typeof obj === 'object' && obj !== null;\n}\n\n/**\n * Retrieves the configuration label key from either the payload or\n * nestedPayload. If the key exists in the payload and is a string, the\n * corresponding value is returned. Otherwise, if the key exists in the\n * nestedPayload and is a string, its value is returned. If the key is not\n * found as a string in either object, the key itself is returned.\n *\n * @param payload - The primary payload containing key-value pairs.\n * @param nestedPayload - An optional nested payload containing additional\n * key-value pairs.\n * @param key - The key to search for within the payload and nestedPayload.\n *\n * @returns The string value associated with the key if found; otherwise, the\n * key itself.\n */\nfunction getConfigLabelKey(\n payload: Record<string, unknown>,\n nestedPayload: Record<string, unknown> | undefined,\n key: string,\n): string {\n if (key in payload && typeof payload[key] === 'string') {\n return payload[key];\n }\n\n if (\n nestedPayload &&\n key in nestedPayload &&\n typeof nestedPayload[key] === 'string'\n ) {\n return nestedPayload[key];\n }\n\n return key;\n}\n\n/**\n * Generates CSS for a specified theme and chart configuration.\n *\n * @param theme - The theme to be used (for example, 'light', 'dark').\n * @param id - The unique identifier of the chart.\n * @param configEntries - A list of configuration entries, each containing a key and a chart configuration.\n * @returns The generated CSS as a string.\n */\nfunction generateThemeCSS(\n theme: Theme,\n id: string,\n configEntries: [string, ChartConfig[string]][],\n): string {\n const rules: string[] = [];\n\n rules.push(`${THEMES[theme]} [data-chart=${id}] {`);\n\n configEntries.forEach(([key, itemConfig]) => {\n const color = itemConfig.theme?.[theme] || itemConfig.color;\n\n if (color) {\n rules.push(` --color-${key}: ${color};`);\n }\n });\n\n rules.push('}');\n\n return rules.join('\\n');\n}\n\n/**\n * Generates CSS styles for a chart based on the provided configuration and themes.\n *\n * @param id - The unique identifier for the chart element.\n * @param config - Configuration object for the chart. This includes theme and color settings.\n * @returns A string containing the generated CSS rules.\n */\nfunction generateCSS(id: string, config: ChartConfig): string {\n const themeOrColorConfig = Object.entries(config).filter(\n ([_, { theme, color }]) => theme || color,\n );\n\n const allRules: string[] = [];\n\n Object.keys(THEMES).forEach((theme) => {\n const themeCSS = generateThemeCSS(theme as Theme, id, themeOrColorConfig);\n\n allRules.push(themeCSS);\n });\n\n return allRules.join('\\n');\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ChartContainer,\n type ChartContainerProps,\n ChartLegend,\n ChartLegendContent,\n type ChartLegendContentProps,\n type ChartLegendProps,\n ChartStyle,\n type ChartStyleProps,\n ChartTooltip,\n ChartTooltipContent,\n type ChartTooltipContentProps,\n type ChartTooltipProps,\n};\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";import{a as d}from"./chunk-VPYH6JWS.js";import{createContext as M,forwardRef as T,useContext as H,useId as K,useMemo as L}from"react";import*as g from"recharts";import{Fragment as q,jsx as i,jsxs as f}from"react/jsx-runtime";var N={light:"",dark:".dark"},w=M(null);function _(){let e=H(w);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}var $=T(({children:e,className:r,config:t,id:o,...a},c)=>{let s=K(),l=`chart-${o||s.replace(/:/g,"")}`;return i(w.Provider,{value:{config:t},children:f("div",{ref:c,className:d("flex aspect-video justify-center text-xs","[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground","[&_.recharts-cartesian-grid_line[stroke=#ccc]]:stroke-border/50","[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border","[&_.recharts-dot[stroke=#fff]]:stroke-transparent","[&_.recharts-layer]:outline-none","[&_.recharts-polar-grid_[stroke=#ccc]]:stroke-border","[&_.recharts-radial-bar-background-sector]:fill-muted","[&_.recharts-reference-line_[stroke=#ccc]]:stroke-border","[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted","[&_.recharts-sector]:outline-none","[&_.recharts-sector[stroke=#fff]]:stroke-transparent","[&_.recharts-surface]:outline-none",r),"data-chart":l,...a,children:[i(I,{config:t,id:l}),i(g.ResponsiveContainer,{children:e})]})})});$.displayName="Chart";function I({id:e,config:r}){let t=L(()=>X(e,r),[e,r]);return i("style",{dangerouslySetInnerHTML:{__html:t}})}var Q=g.Tooltip,O=T(({active:e,className:r,color:t,formatter:o,hideIndicator:a=!1,hideLabel:c=!1,indicator:s="dot",label:l,labelClassName:p,labelFormatter:h,labelKey:y,nameKey:E,payload:u},j)=>{let{config:m}=_(),k=L(()=>{if(c||!u?.length)return null;let[n]=u;if(!n)return null;let P=`${y||n.dataKey||n.name||"value"}`,b=x(m,n,P),C=!y&&typeof l=="string"?m[l]?.label||l:b?.label;return h?i("div",{className:d("font-medium",p),children:h(C,u)}):C?i("div",{className:d("font-medium",p),children:C}):null},[m,c,l,p,h,y,u]);if(!e||!u?.length)return null;let v=u.length===1&&s!=="dot";return f("div",{ref:j,className:d("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:k,i("div",{className:"grid gap-1.5",children:u.map((n,P)=>{let b=`${E||n.name||n.dataKey||"value"}`,C=x(m,n,b),R=t||n.payload.fill||n.color;return i("div",{className:d("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",s==="dot"&&"items-center"),children:o&&n.value!==void 0&&n.name?o(n.value,n.name,n,P,n.payload):f(q,{children:[C?.icon?i(C.icon,{}):!a&&i("div",{className:d("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":s==="dot","w-1":s==="line","w-0 border-[1.5px] border-dashed bg-transparent":s==="dashed","my-0.5":v&&s==="dashed"}),style:{"--color-bg":R,"--color-border":R}}),f("div",{className:d("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[f("div",{className:"grid gap-1.5",children:[v?k:null,i("span",{className:"text-muted-foreground",children:C?.label||n.name})]}),n.value?i("span",{className:"text-foreground font-mono font-medium tabular-nums",children:n.value.toLocaleString()}):null]})]})},n.dataKey)})})]})});O.displayName="ChartTooltipContent";var U=g.Legend,D=T(({className:e,hideIcon:r=!1,nameKey:t,payload:o,verticalAlign:a="bottom"},c)=>{let{config:s}=_();return o?.length?i("div",{ref:c,className:d("flex items-center justify-center gap-4",a==="top"?"pb-3":"pt-3",e),children:o.map(l=>{let p="value";t?p=t:l.dataKey&&(p=String(l.dataKey));let h=x(s,l,p);return f("div",{className:d("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3"),children:[h?.icon&&!r?i(h.icon,{}):i("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),h?.label]},String(l.value))})}):null});D.displayName="ChartLegendContent";function x(e,r,t){if(!S(r))return;let o="payload"in r&&S(r.payload)?r.payload:void 0,a=V(r,o,t);return a in e?e[a]:e[t]}function S(e){return typeof e=="object"&&e!==null}function V(e,r,t){return t in e&&typeof e[t]=="string"?e[t]:r&&t in r&&typeof r[t]=="string"?r[t]:t}function J(e,r,t){let o=[];return o.push(`${N[e]} [data-chart=${r}] {`),t.forEach(([a,c])=>{let s=c.theme?.[e]||c.color;s&&o.push(` --color-${a}: ${s};`)}),o.push("}"),o.join(`
|
|
2
|
+
`)}function X(e,r){let t=Object.entries(r).filter(([a,{theme:c,color:s}])=>c||s),o=[];return Object.keys(N).forEach(a=>{let c=J(a,e,t);o.push(c)}),o.join(`
|
|
3
|
+
`)}export{$ as a,I as b,Q as c,O as d,U as e,D as f};
|
|
4
|
+
//# sourceMappingURL=chunk-PCE3WY5B.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/chart.tsx"],"names":["createContext","forwardRef","useContext","useId","useMemo","RechartsPrimitive","Fragment","jsx","jsxs","THEMES","ChartContext","useChart","context","ChartContainer","children","className","config","id","props","ref","uniqueId","chartId","cn","ChartStyle","cssString","generateCSS","ChartTooltip","ChartTooltipContent","active","color","formatter","hideIndicator","hideLabel","indicator","label","labelClassName","labelFormatter","labelKey","nameKey","payload","tooltipLabel","item","key","itemConfig","getPayloadConfigFromPayload","value","nestLabel","index","indicatorColor","ChartLegend","ChartLegendContent","hideIcon","verticalAlign","isValidObject","nestedPayload","configLabelKey","getConfigLabelKey","obj","generateThemeCSS","theme","configEntries","rules","themeOrColorConfig","_","allRules","themeCSS"],"mappings":"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","sourcesContent":["'use client';\n\nimport {\n type ComponentProps,\n type ComponentType,\n createContext,\n type CSSProperties,\n forwardRef,\n type JSX,\n type ReactNode,\n useContext,\n useId,\n useMemo,\n} from 'react';\nimport * as RechartsPrimitive from 'recharts';\nimport {\n type NameType,\n type Payload,\n type ValueType,\n} from 'recharts/types/component/DefaultTooltipContent';\nimport { cn } from '@/lib/utils';\n\nconst THEMES = {\n light: '',\n dark: '.dark',\n} as const;\n\ntype Theme = keyof typeof THEMES;\n\nexport type ChartConfig = {\n [k in string]: {\n icon?: ComponentType;\n label?: ReactNode;\n } & (\n | {\n color?: string;\n theme?: never;\n }\n | {\n theme: Record<Theme, string>;\n color?: never;\n }\n );\n};\n\ninterface ChartContextProps {\n config: ChartConfig;\n}\n\nconst ChartContext = createContext<ChartContextProps | null>(null);\n\nfunction useChart(): ChartContextProps {\n const context = useContext(ChartContext);\n\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Chart\n * -------------------------------------------------------------------------- */\n\ntype ChartContainerElement = HTMLDivElement;\ninterface ChartContainerProps extends ComponentProps<'div'> {\n children: ComponentProps<\n typeof RechartsPrimitive.ResponsiveContainer\n >['children'];\n config: ChartConfig;\n}\n\nconst ChartContainer = forwardRef<ChartContainerElement, ChartContainerProps>(\n ({ children, className, config, id, ...props }, ref) => {\n const uniqueId = useId();\n const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`;\n\n return (\n <ChartContext.Provider value={{ config }}>\n <div\n ref={ref}\n className={cn(\n 'flex aspect-video justify-center text-xs',\n '[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground',\n '[&_.recharts-cartesian-grid_line[stroke=#ccc]]:stroke-border/50',\n '[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border',\n '[&_.recharts-dot[stroke=#fff]]:stroke-transparent',\n '[&_.recharts-layer]:outline-none',\n '[&_.recharts-polar-grid_[stroke=#ccc]]:stroke-border',\n '[&_.recharts-radial-bar-background-sector]:fill-muted',\n '[&_.recharts-reference-line_[stroke=#ccc]]:stroke-border',\n '[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted',\n '[&_.recharts-sector]:outline-none',\n '[&_.recharts-sector[stroke=#fff]]:stroke-transparent',\n '[&_.recharts-surface]:outline-none',\n className,\n )}\n data-chart={chartId}\n {...props}\n >\n <ChartStyle config={config} id={chartId} />\n <RechartsPrimitive.ResponsiveContainer>\n {children}\n </RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n );\n },\n);\n\nChartContainer.displayName = 'Chart';\n\n/* -----------------------------------------------------------------------------\n * Component: ChartStyle\n * -------------------------------------------------------------------------- */\n\ninterface ChartStyleProps {\n config: ChartConfig;\n id: string;\n}\n\nfunction ChartStyle({ id, config }: ChartStyleProps): JSX.Element | null {\n const cssString = useMemo(() => generateCSS(id, config), [id, config]);\n\n return <style dangerouslySetInnerHTML={{ __html: cssString }} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltip\n * -------------------------------------------------------------------------- */\n\ntype ChartTooltipProps = ComponentProps<typeof RechartsPrimitive.Tooltip>;\nconst ChartTooltip = RechartsPrimitive.Tooltip;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltipContent\n * -------------------------------------------------------------------------- */\n\ntype ChartTooltipContentElement = HTMLDivElement;\ninterface ChartTooltipContentProps\n extends ComponentProps<typeof RechartsPrimitive.Tooltip>,\n Omit<ComponentProps<'div'>, 'content'> {\n hideIndicator?: boolean;\n hideLabel?: boolean;\n indicator?: 'line' | 'dot' | 'dashed';\n labelKey?: string;\n nameKey?: string;\n}\n\nconst ChartTooltipContent = forwardRef<\n ChartTooltipContentElement,\n ChartTooltipContentProps\n>(\n (\n {\n active,\n className,\n color,\n formatter,\n hideIndicator = false,\n hideLabel = false,\n indicator = 'dot',\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n nameKey,\n payload,\n },\n ref,\n ) => {\n const { config } = useChart();\n\n const tooltipLabel = useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null;\n }\n\n const [item] = payload;\n\n if (!item) {\n return null;\n }\n\n const key = `${labelKey || item.dataKey || item.name || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const value =\n !labelKey && typeof label === 'string'\n ? config[label]?.label || label\n : itemConfig?.label;\n\n if (labelFormatter) {\n return (\n <div className={cn('font-medium', labelClassName)}>\n {labelFormatter(value, payload)}\n </div>\n );\n }\n\n if (!value) {\n return null;\n }\n\n return <div className={cn('font-medium', labelClassName)}>{value}</div>;\n }, [\n config,\n hideLabel,\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n payload,\n ]);\n\n if (!active || !payload?.length) {\n return null;\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot';\n\n return (\n <div\n ref={ref}\n className={cn(\n 'border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl',\n className,\n )}\n >\n {!nestLabel ? tooltipLabel : null}\n <div className=\"grid gap-1.5\">\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const indicatorColor =\n color || (item.payload as { fill?: string }).fill || item.color;\n\n return (\n <div\n key={item.dataKey}\n className={cn(\n '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5',\n indicator === 'dot' && 'items-center',\n )}\n >\n {formatter && item.value !== undefined && item.name ? (\n formatter(\n item.value,\n item.name,\n item,\n index,\n item.payload as Payload<ValueType, NameType>[],\n )\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn(\n 'shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]',\n {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'w-1': indicator === 'line',\n 'w-0 border-[1.5px] border-dashed bg-transparent':\n indicator === 'dashed',\n 'my-0.5': nestLabel && indicator === 'dashed',\n },\n )}\n style={\n {\n '--color-bg': indicatorColor,\n '--color-border': indicatorColor,\n } as CSSProperties\n }\n />\n )\n )}\n <div\n className={cn(\n 'flex flex-1 justify-between leading-none',\n nestLabel ? 'items-end' : 'items-center',\n )}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-muted-foreground\">\n {itemConfig?.label || item.name}\n </span>\n </div>\n {item.value ? (\n <span className=\"text-foreground font-mono font-medium tabular-nums\">\n {item.value.toLocaleString()}\n </span>\n ) : null}\n </div>\n </>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n },\n);\n\nChartTooltipContent.displayName = 'ChartTooltipContent';\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegend\n * -------------------------------------------------------------------------- */\n\ntype ChartLegendProps = ComponentProps<typeof RechartsPrimitive.Legend>;\nconst ChartLegend = RechartsPrimitive.Legend;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegendContent\n * -------------------------------------------------------------------------- */\n\ntype ChartLegendContent = HTMLDivElement;\ninterface ChartLegendContentProps\n extends ComponentProps<'div'>,\n Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> {\n hideIcon?: boolean;\n nameKey?: string;\n}\n\nconst ChartLegendContent = forwardRef<HTMLDivElement, ChartLegendContentProps>(\n (\n { className, hideIcon = false, nameKey, payload, verticalAlign = 'bottom' },\n ref,\n ) => {\n const { config } = useChart();\n\n if (!payload?.length) {\n return null;\n }\n\n return (\n <div\n ref={ref}\n className={cn(\n 'flex items-center justify-center gap-4',\n verticalAlign === 'top' ? 'pb-3' : 'pt-3',\n className,\n )}\n >\n {payload.map((item) => {\n let key = 'value';\n\n if (nameKey) {\n key = nameKey;\n } else if (item.dataKey) {\n key = String(item.dataKey);\n }\n\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n\n return (\n <div\n key={String(item.value)}\n className={cn(\n '[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3',\n )}\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"h-2 w-2 shrink-0 rounded-[2px]\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n {itemConfig?.label}\n </div>\n );\n })}\n </div>\n );\n },\n);\n\nChartLegendContent.displayName = 'ChartLegendContent';\n\n/* -----------------------------------------------------------------------------\n * Helpers\n * -------------------------------------------------------------------------- */\n\n/**\n * Extracts and returns the appropriate configuration object from\n * the payload based on the specified key.\n *\n * @param config - The chart configuration object that contains various\n * settings.\n * @param payload - The payload object that might contain nested payload data.\n * @param key - The key used to retrieve the specific configuration from the\n * chart config.\n * @returns Returns a configuration object with optional properties `icon`,\n * `label`, `color` or `theme`, or `undefined` if the payload is invalid or\n * no configuration is found for the provided key.\n */\nfunction getPayloadConfigFromPayload(\n config: ChartConfig,\n payload: unknown,\n key: string,\n):\n | ({\n icon?: ComponentType;\n label?: ReactNode;\n } & {\n color?: string;\n theme?: never;\n })\n | ({\n icon?: ComponentType;\n label?: ReactNode;\n } & {\n theme: Record<Theme, string>;\n color?: never;\n })\n | undefined {\n if (!isValidObject(payload)) {\n return undefined;\n }\n\n const nestedPayload =\n 'payload' in payload && isValidObject(payload.payload)\n ? payload.payload\n : undefined;\n\n const configLabelKey = getConfigLabelKey(payload, nestedPayload, key);\n\n return configLabelKey in config ? config[configLabelKey] : config[key];\n}\n\n/**\n * Checks if the provided value is a valid object.\n *\n * @param obj - The value to check.\n * @returns - Returns true if the value is an object and not null, false\n * otherwise.\n */\nfunction isValidObject(obj: unknown): obj is Record<string, unknown> {\n return typeof obj === 'object' && obj !== null;\n}\n\n/**\n * Retrieves the configuration label key from either the payload or\n * nestedPayload. If the key exists in the payload and is a string, the\n * corresponding value is returned. Otherwise, if the key exists in the\n * nestedPayload and is a string, its value is returned. If the key is not\n * found as a string in either object, the key itself is returned.\n *\n * @param payload - The primary payload containing key-value pairs.\n * @param nestedPayload - An optional nested payload containing additional\n * key-value pairs.\n * @param key - The key to search for within the payload and nestedPayload.\n *\n * @returns The string value associated with the key if found; otherwise, the\n * key itself.\n */\nfunction getConfigLabelKey(\n payload: Record<string, unknown>,\n nestedPayload: Record<string, unknown> | undefined,\n key: string,\n): string {\n if (key in payload && typeof payload[key] === 'string') {\n return payload[key];\n }\n\n if (\n nestedPayload &&\n key in nestedPayload &&\n typeof nestedPayload[key] === 'string'\n ) {\n return nestedPayload[key];\n }\n\n return key;\n}\n\n/**\n * Generates CSS for a specified theme and chart configuration.\n *\n * @param theme - The theme to be used (for example, 'light', 'dark').\n * @param id - The unique identifier of the chart.\n * @param configEntries - A list of configuration entries, each containing a key and a chart configuration.\n * @returns The generated CSS as a string.\n */\nfunction generateThemeCSS(\n theme: Theme,\n id: string,\n configEntries: [string, ChartConfig[string]][],\n): string {\n const rules: string[] = [];\n\n rules.push(`${THEMES[theme]} [data-chart=${id}] {`);\n\n configEntries.forEach(([key, itemConfig]) => {\n const color = itemConfig.theme?.[theme] || itemConfig.color;\n\n if (color) {\n rules.push(` --color-${key}: ${color};`);\n }\n });\n\n rules.push('}');\n\n return rules.join('\\n');\n}\n\n/**\n * Generates CSS styles for a chart based on the provided configuration and themes.\n *\n * @param id - The unique identifier for the chart element.\n * @param config - Configuration object for the chart. This includes theme and color settings.\n * @returns A string containing the generated CSS rules.\n */\nfunction generateCSS(id: string, config: ChartConfig): string {\n const themeOrColorConfig = Object.entries(config).filter(\n ([_, { theme, color }]) => theme || color,\n );\n\n const allRules: string[] = [];\n\n Object.keys(THEMES).forEach((theme) => {\n const themeCSS = generateThemeCSS(theme as Theme, id, themeOrColorConfig);\n\n allRules.push(themeCSS);\n });\n\n return allRules.join('\\n');\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ChartContainer,\n type ChartContainerProps,\n ChartLegend,\n ChartLegendContent,\n type ChartLegendContentProps,\n type ChartLegendProps,\n ChartStyle,\n type ChartStyleProps,\n ChartTooltip,\n ChartTooltipContent,\n type ChartTooltipContentProps,\n type ChartTooltipProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkJ7Z75WLHcjs = require('../chunk-J7Z75WLH.cjs');require('../chunk-DD6AVCRH.cjs');exports.ChartContainer = _chunkJ7Z75WLHcjs.a; exports.ChartLegend = _chunkJ7Z75WLHcjs.e; exports.ChartLegendContent = _chunkJ7Z75WLHcjs.f; exports.ChartStyle = _chunkJ7Z75WLHcjs.b; exports.ChartTooltip = _chunkJ7Z75WLHcjs.c; exports.ChartTooltipContent = _chunkJ7Z75WLHcjs.d;
|
|
2
2
|
//# sourceMappingURL=chart.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/chart.cjs"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/chart.cjs"],"names":[],"mappings":"AAAA,qFAAY,CAAC,yDAA8C,iCAA8B,mRAAgI","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/chart.cjs"}
|
|
@@ -1,2 +1,51 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentType, ReactNode, ComponentProps, JSX } from 'react';
|
|
3
|
+
import * as RechartsPrimitive from 'recharts';
|
|
1
4
|
|
|
2
|
-
|
|
5
|
+
declare const THEMES: {
|
|
6
|
+
readonly light: "";
|
|
7
|
+
readonly dark: ".dark";
|
|
8
|
+
};
|
|
9
|
+
type Theme = keyof typeof THEMES;
|
|
10
|
+
type ChartConfig = {
|
|
11
|
+
[k in string]: {
|
|
12
|
+
icon?: ComponentType;
|
|
13
|
+
label?: ReactNode;
|
|
14
|
+
} & ({
|
|
15
|
+
color?: string;
|
|
16
|
+
theme?: never;
|
|
17
|
+
} | {
|
|
18
|
+
theme: Record<Theme, string>;
|
|
19
|
+
color?: never;
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
interface ChartContainerProps extends ComponentProps<'div'> {
|
|
23
|
+
children: ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
|
|
24
|
+
config: ChartConfig;
|
|
25
|
+
}
|
|
26
|
+
declare const ChartContainer: react.ForwardRefExoticComponent<Omit<ChartContainerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
interface ChartStyleProps {
|
|
28
|
+
config: ChartConfig;
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
declare function ChartStyle({ id, config }: ChartStyleProps): JSX.Element | null;
|
|
32
|
+
type ChartTooltipProps = ComponentProps<typeof RechartsPrimitive.Tooltip>;
|
|
33
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
34
|
+
interface ChartTooltipContentProps extends ComponentProps<typeof RechartsPrimitive.Tooltip>, Omit<ComponentProps<'div'>, 'content'> {
|
|
35
|
+
hideIndicator?: boolean;
|
|
36
|
+
hideLabel?: boolean;
|
|
37
|
+
indicator?: 'line' | 'dot' | 'dashed';
|
|
38
|
+
labelKey?: string;
|
|
39
|
+
nameKey?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const ChartTooltipContent: react.ForwardRefExoticComponent<Omit<ChartTooltipContentProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
type ChartLegendProps = ComponentProps<typeof RechartsPrimitive.Legend>;
|
|
43
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
44
|
+
interface ChartLegendContentProps extends ComponentProps<'div'>, Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> {
|
|
45
|
+
hideIcon?: boolean;
|
|
46
|
+
nameKey?: string;
|
|
47
|
+
}
|
|
48
|
+
type ChartLegendContent = HTMLDivElement;
|
|
49
|
+
declare const ChartLegendContent: react.ForwardRefExoticComponent<Omit<ChartLegendContentProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
|
|
51
|
+
export { type ChartConfig, ChartContainer, type ChartContainerProps, ChartLegend, ChartLegendContent, type ChartLegendContentProps, type ChartLegendProps, ChartStyle, type ChartStyleProps, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTooltipProps };
|
|
@@ -1,2 +1,51 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentType, ReactNode, ComponentProps, JSX } from 'react';
|
|
3
|
+
import * as RechartsPrimitive from 'recharts';
|
|
1
4
|
|
|
2
|
-
|
|
5
|
+
declare const THEMES: {
|
|
6
|
+
readonly light: "";
|
|
7
|
+
readonly dark: ".dark";
|
|
8
|
+
};
|
|
9
|
+
type Theme = keyof typeof THEMES;
|
|
10
|
+
type ChartConfig = {
|
|
11
|
+
[k in string]: {
|
|
12
|
+
icon?: ComponentType;
|
|
13
|
+
label?: ReactNode;
|
|
14
|
+
} & ({
|
|
15
|
+
color?: string;
|
|
16
|
+
theme?: never;
|
|
17
|
+
} | {
|
|
18
|
+
theme: Record<Theme, string>;
|
|
19
|
+
color?: never;
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
interface ChartContainerProps extends ComponentProps<'div'> {
|
|
23
|
+
children: ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
|
|
24
|
+
config: ChartConfig;
|
|
25
|
+
}
|
|
26
|
+
declare const ChartContainer: react.ForwardRefExoticComponent<Omit<ChartContainerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
interface ChartStyleProps {
|
|
28
|
+
config: ChartConfig;
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
declare function ChartStyle({ id, config }: ChartStyleProps): JSX.Element | null;
|
|
32
|
+
type ChartTooltipProps = ComponentProps<typeof RechartsPrimitive.Tooltip>;
|
|
33
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
34
|
+
interface ChartTooltipContentProps extends ComponentProps<typeof RechartsPrimitive.Tooltip>, Omit<ComponentProps<'div'>, 'content'> {
|
|
35
|
+
hideIndicator?: boolean;
|
|
36
|
+
hideLabel?: boolean;
|
|
37
|
+
indicator?: 'line' | 'dot' | 'dashed';
|
|
38
|
+
labelKey?: string;
|
|
39
|
+
nameKey?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const ChartTooltipContent: react.ForwardRefExoticComponent<Omit<ChartTooltipContentProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
type ChartLegendProps = ComponentProps<typeof RechartsPrimitive.Legend>;
|
|
43
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
44
|
+
interface ChartLegendContentProps extends ComponentProps<'div'>, Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> {
|
|
45
|
+
hideIcon?: boolean;
|
|
46
|
+
nameKey?: string;
|
|
47
|
+
}
|
|
48
|
+
type ChartLegendContent = HTMLDivElement;
|
|
49
|
+
declare const ChartLegendContent: react.ForwardRefExoticComponent<Omit<ChartLegendContentProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
|
|
51
|
+
export { type ChartConfig, ChartContainer, type ChartContainerProps, ChartLegend, ChartLegendContent, type ChartLegendContentProps, type ChartLegendProps, ChartStyle, type ChartStyleProps, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTooltipProps };
|
package/dist/components/chart.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-
|
|
1
|
+
"use client";import{a,b,c,d,e,f}from"../chunk-PCE3WY5B.js";import"../chunk-VPYH6JWS.js";export{a as ChartContainer,e as ChartLegend,f as ChartLegendContent,b as ChartStyle,c as ChartTooltip,d as ChartTooltipContent};
|
|
2
2
|
//# sourceMappingURL=chart.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk32SQW5RIcjs = require('./chunk-32SQW5RI.cjs');require('./chunk-L5RKZ4EK.cjs');var _chunkYUJO6FOFcjs = require('./chunk-YUJO6FOF.cjs');var _chunkJO3GWI7Zcjs = require('./chunk-JO3GWI7Z.cjs');var _chunkFOCRCGCPcjs = require('./chunk-FOCRCGCP.cjs');var _chunk27FVJY2Dcjs = require('./chunk-27FVJY2D.cjs');var _chunk2KJO6CJDcjs = require('./chunk-2KJO6CJD.cjs');var _chunkCVDXD5WNcjs = require('./chunk-CVDXD5WN.cjs');var _chunkTAFSGBZZcjs = require('./chunk-TAFSGBZZ.cjs');var _chunkG2ZKUHLXcjs = require('./chunk-G2ZKUHLX.cjs');var _chunkYL262UMCcjs = require('./chunk-YL262UMC.cjs');var _chunk6JVA5L6Fcjs = require('./chunk-6JVA5L6F.cjs');var _chunk5GPUH5DHcjs = require('./chunk-5GPUH5DH.cjs');var _chunk7RUBTABZcjs = require('./chunk-7RUBTABZ.cjs');var _chunkYP7NF7KYcjs = require('./chunk-YP7NF7KY.cjs');var _chunkV6H7J3PZcjs = require('./chunk-V6H7J3PZ.cjs');var _chunk5AQT2M4Qcjs = require('./chunk-5AQT2M4Q.cjs');var _chunk7K56G3OScjs = require('./chunk-7K56G3OS.cjs');var _chunkEYYMRAUHcjs = require('./chunk-EYYMRAUH.cjs');var _chunk3VRNVFVAcjs = require('./chunk-3VRNVFVA.cjs');var _chunkDXKDE2PNcjs = require('./chunk-DXKDE2PN.cjs');var _chunkEGLZAP4Scjs = require('./chunk-EGLZAP4S.cjs');var _chunkZ7V3J23Wcjs = require('./chunk-Z7V3J23W.cjs');var _chunk6UCQE3N6cjs = require('./chunk-6UCQE3N6.cjs');var _chunkAQBPC4WTcjs = require('./chunk-AQBPC4WT.cjs');var _chunkR4NKNWAFcjs = require('./chunk-R4NKNWAF.cjs');var _chunkGP4IX6Q5cjs = require('./chunk-GP4IX6Q5.cjs');var _chunkIGBASIDTcjs = require('./chunk-IGBASIDT.cjs');var _chunkD77DV2PYcjs = require('./chunk-D77DV2PY.cjs');var _chunkG7L7OMQCcjs = require('./chunk-G7L7OMQC.cjs');var _chunk2VT6BX7Scjs = require('./chunk-2VT6BX7S.cjs');var _chunkGLTHRHLIcjs = require('./chunk-GLTHRHLI.cjs');var _chunk277MGUJUcjs = require('./chunk-277MGUJU.cjs');var _chunkNBQOSKVVcjs = require('./chunk-NBQOSKVV.cjs');var _chunk3X6EEYS3cjs = require('./chunk-3X6EEYS3.cjs');var _chunkQJGSGK2Fcjs = require('./chunk-QJGSGK2F.cjs');require('./chunk-2RAQYLLP.cjs');var _chunkKU2TWJO6cjs = require('./chunk-KU2TWJO6.cjs');var _chunkB2B6KDWQcjs = require('./chunk-B2B6KDWQ.cjs');var _chunkLVV67TW7cjs = require('./chunk-LVV67TW7.cjs');var _chunkC3JCUMYCcjs = require('./chunk-C3JCUMYC.cjs');var _chunkSSEBLMN5cjs = require('./chunk-SSEBLMN5.cjs');var _chunkSFY3PJ4Pcjs = require('./chunk-SFY3PJ4P.cjs');var _chunk4NUC23C3cjs = require('./chunk-4NUC23C3.cjs');var _chunk6WG2BQFJcjs = require('./chunk-6WG2BQFJ.cjs');var _chunk3INI5ONRcjs = require('./chunk-3INI5ONR.cjs');var _chunk6CRPUDHOcjs = require('./chunk-6CRPUDHO.cjs');var _chunkQGXJIDRMcjs = require('./chunk-QGXJIDRM.cjs');var _chunk4EPZJQXBcjs = require('./chunk-4EPZJQXB.cjs');var _chunkMKZNGJBScjs = require('./chunk-MKZNGJBS.cjs');var _chunkCVSZ456Pcjs = require('./chunk-CVSZ456P.cjs');var _chunkDDUYQ6R3cjs = require('./chunk-DDUYQ6R3.cjs');var _chunkAIMWT5FFcjs = require('./chunk-AIMWT5FF.cjs');var _chunk6QQPQ7WNcjs = require('./chunk-6QQPQ7WN.cjs');var _chunk5AARHWODcjs = require('./chunk-5AARHWOD.cjs');var _chunkQP6DOJTZcjs = require('./chunk-QP6DOJTZ.cjs');var _chunkB2ANDYCKcjs = require('./chunk-B2ANDYCK.cjs');var _chunkNTCSJCJ2cjs = require('./chunk-NTCSJCJ2.cjs');var _chunkY46KHJVEcjs = require('./chunk-Y46KHJVE.cjs');var _chunk4GFRDE44cjs = require('./chunk-4GFRDE44.cjs');var _chunkHFROIOY3cjs = require('./chunk-HFROIOY3.cjs');require('./chunk-CFQPQ5FI.cjs');var _chunkRY34IJ6Jcjs = require('./chunk-RY34IJ6J.cjs');var _chunkOILTSDECcjs = require('./chunk-OILTSDEC.cjs');var _chunkUFTG26DAcjs = require('./chunk-UFTG26DA.cjs');var _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.cjs');var _chunkCOVOQ3ITcjs = require('./chunk-COVOQ3IT.cjs');var _chunkFNXUC6VMcjs = require('./chunk-FNXUC6VM.cjs');var _chunkHW6UEQFNcjs = require('./chunk-HW6UEQFN.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _chunkNSA7UBGFcjs = require('./chunk-NSA7UBGF.cjs');var _chunkHDDB7PJQcjs = require('./chunk-HDDB7PJQ.cjs');exports.Accordion = _chunkOILTSDECcjs.a; exports.AccordionContent = _chunkOILTSDECcjs.e; exports.AccordionIcon = _chunkOILTSDECcjs.c; exports.AccordionItem = _chunkOILTSDECcjs.b; exports.AccordionTrigger = _chunkOILTSDECcjs.d; exports.Alert = _chunkCOVOQ3ITcjs.a; exports.AlertDescription = _chunkCOVOQ3ITcjs.c; exports.AlertDialog = _chunkUFTG26DAcjs.a; exports.AlertDialogAction = _chunkUFTG26DAcjs.i; exports.AlertDialogBody = _chunkUFTG26DAcjs.e; exports.AlertDialogCancel = _chunkUFTG26DAcjs.j; exports.AlertDialogContent = _chunkUFTG26DAcjs.c; exports.AlertDialogDescription = _chunkUFTG26DAcjs.h; exports.AlertDialogFooter = _chunkUFTG26DAcjs.f; exports.AlertDialogHeader = _chunkUFTG26DAcjs.d; exports.AlertDialogTitle = _chunkUFTG26DAcjs.g; exports.AlertDialogTrigger = _chunkUFTG26DAcjs.b; exports.AlertTitle = _chunkCOVOQ3ITcjs.b; exports.AspectRatio = _chunkFNXUC6VMcjs.a; exports.Avatar = _chunkHW6UEQFNcjs.a; exports.AvatarFallback = _chunkHW6UEQFNcjs.c; exports.AvatarImage = _chunkHW6UEQFNcjs.b; exports.Badge = _chunkNSA7UBGFcjs.a; exports.Blockquote = _chunkHDDB7PJQcjs.a; exports.Box = _chunk5AARHWODcjs.a; exports.Breadcrumb = _chunkQP6DOJTZcjs.a; exports.BreadcrumbEllipsis = _chunkQP6DOJTZcjs.g; exports.BreadcrumbItem = _chunkQP6DOJTZcjs.c; exports.BreadcrumbLink = _chunkQP6DOJTZcjs.d; exports.BreadcrumbList = _chunkQP6DOJTZcjs.b; exports.BreadcrumbPage = _chunkQP6DOJTZcjs.e; exports.BreadcrumbSeparator = _chunkQP6DOJTZcjs.f; exports.Button = _chunk4GFRDE44cjs.a; exports.Calendar = _chunkB2ANDYCKcjs.a; exports.CalendarLabel = _chunkB2ANDYCKcjs.c; exports.CalendarRangeLabel = _chunkB2ANDYCKcjs.b; exports.Card = _chunkNTCSJCJ2cjs.a; exports.CardContent = _chunkNTCSJCJ2cjs.e; exports.CardDescription = _chunkNTCSJCJ2cjs.d; exports.CardFooter = _chunkNTCSJCJ2cjs.f; exports.CardHeader = _chunkNTCSJCJ2cjs.b; exports.CardTitle = _chunkNTCSJCJ2cjs.c; exports.Carousel = _chunkY46KHJVEcjs.b; exports.CarouselContent = _chunkY46KHJVEcjs.c; exports.CarouselItem = _chunkY46KHJVEcjs.d; exports.CarouselNext = _chunkY46KHJVEcjs.f; exports.CarouselPrevious = _chunkY46KHJVEcjs.e; exports.Checkbox = _chunk6WG2BQFJcjs.a; exports.CheckboxCards = _chunkRY34IJ6Jcjs.a; exports.CheckboxCardsItem = _chunkRY34IJ6Jcjs.b; exports.CheckboxGroup = _chunk4NUC23C3cjs.a; exports.CheckboxGroupItem = _chunk4NUC23C3cjs.b; exports.Code = _chunk3INI5ONRcjs.a; exports.Collapsible = _chunk6CRPUDHOcjs.a; exports.CollapsibleContent = _chunk6CRPUDHOcjs.c; exports.CollapsibleTrigger = _chunk6CRPUDHOcjs.b; exports.Command = _chunkQGXJIDRMcjs.a; exports.CommandDialog = _chunkQGXJIDRMcjs.b; exports.CommandEmpty = _chunkQGXJIDRMcjs.e; exports.CommandGroup = _chunkQGXJIDRMcjs.f; exports.CommandInput = _chunkQGXJIDRMcjs.c; exports.CommandItem = _chunkQGXJIDRMcjs.h; exports.CommandList = _chunkQGXJIDRMcjs.d; exports.CommandLoading = _chunkQGXJIDRMcjs.i; exports.CommandSeparator = _chunkQGXJIDRMcjs.g; exports.CommandShortcut = _chunkQGXJIDRMcjs.j; exports.Container = _chunkMKZNGJBScjs.a; exports.ContextMenu = _chunkCVSZ456Pcjs.a; exports.ContextMenuArrow = _chunkCVSZ456Pcjs.o; exports.ContextMenuCheckboxItem = _chunkCVSZ456Pcjs.j; exports.ContextMenuContent = _chunkCVSZ456Pcjs.h; exports.ContextMenuGroup = _chunkCVSZ456Pcjs.c; exports.ContextMenuItem = _chunkCVSZ456Pcjs.i; exports.ContextMenuLabel = _chunkCVSZ456Pcjs.l; exports.ContextMenuRadioGroup = _chunkCVSZ456Pcjs.e; exports.ContextMenuRadioItem = _chunkCVSZ456Pcjs.k; exports.ContextMenuSeparator = _chunkCVSZ456Pcjs.m; exports.ContextMenuShortcut = _chunkCVSZ456Pcjs.n; exports.ContextMenuSub = _chunkCVSZ456Pcjs.d; exports.ContextMenuSubContent = _chunkCVSZ456Pcjs.g; exports.ContextMenuSubTrigger = _chunkCVSZ456Pcjs.f; exports.ContextMenuTrigger = _chunkCVSZ456Pcjs.b; exports.DataTableColumnHeader = _chunkDDUYQ6R3cjs.c; exports.DataTablePagination = _chunkDDUYQ6R3cjs.b; exports.DataTableViewOptions = _chunkDDUYQ6R3cjs.a; exports.Dialog = _chunk4EPZJQXBcjs.a; exports.DialogBody = _chunk4EPZJQXBcjs.e; exports.DialogClose = _chunk4EPZJQXBcjs.i; exports.DialogContent = _chunk4EPZJQXBcjs.c; exports.DialogDescription = _chunk4EPZJQXBcjs.h; exports.DialogFooter = _chunk4EPZJQXBcjs.f; exports.DialogHeader = _chunk4EPZJQXBcjs.d; exports.DialogTitle = _chunk4EPZJQXBcjs.g; exports.DialogTrigger = _chunk4EPZJQXBcjs.b; exports.Drawer = _chunkKU2TWJO6cjs.a; exports.DrawerBody = _chunkKU2TWJO6cjs.e; exports.DrawerClose = _chunkKU2TWJO6cjs.i; exports.DrawerContent = _chunkKU2TWJO6cjs.c; exports.DrawerDescription = _chunkKU2TWJO6cjs.h; exports.DrawerFooter = _chunkKU2TWJO6cjs.f; exports.DrawerHeader = _chunkKU2TWJO6cjs.d; exports.DrawerTitle = _chunkKU2TWJO6cjs.g; exports.DrawerTrigger = _chunkKU2TWJO6cjs.b; exports.DropdownMenu = _chunk6QQPQ7WNcjs.a; exports.DropdownMenuArrow = _chunk6QQPQ7WNcjs.o; exports.DropdownMenuCheckboxItem = _chunk6QQPQ7WNcjs.j; exports.DropdownMenuContent = _chunk6QQPQ7WNcjs.h; exports.DropdownMenuGroup = _chunk6QQPQ7WNcjs.c; exports.DropdownMenuItem = _chunk6QQPQ7WNcjs.i; exports.DropdownMenuLabel = _chunk6QQPQ7WNcjs.l; exports.DropdownMenuRadioGroup = _chunk6QQPQ7WNcjs.e; exports.DropdownMenuRadioItem = _chunk6QQPQ7WNcjs.k; exports.DropdownMenuSeparator = _chunk6QQPQ7WNcjs.m; exports.DropdownMenuShortcut = _chunk6QQPQ7WNcjs.n; exports.DropdownMenuSub = _chunk6QQPQ7WNcjs.d; exports.DropdownMenuSubContent = _chunk6QQPQ7WNcjs.g; exports.DropdownMenuSubTrigger = _chunk6QQPQ7WNcjs.f; exports.DropdownMenuTrigger = _chunk6QQPQ7WNcjs.b; exports.Em = _chunkB2B6KDWQcjs.a; exports.Form = _chunkLVV67TW7cjs.a; exports.FormControl = _chunkLVV67TW7cjs.f; exports.FormDescription = _chunkLVV67TW7cjs.g; exports.FormField = _chunkLVV67TW7cjs.c; exports.FormItem = _chunkLVV67TW7cjs.d; exports.FormLabel = _chunkLVV67TW7cjs.e; exports.FormMessage = _chunkLVV67TW7cjs.h; exports.Heading = _chunkSSEBLMN5cjs.a; exports.HoverCard = _chunkSFY3PJ4Pcjs.a; exports.HoverCardArrow = _chunkSFY3PJ4Pcjs.d; exports.HoverCardContent = _chunkSFY3PJ4Pcjs.c; exports.HoverCardTrigger = _chunkSFY3PJ4Pcjs.b; exports.InputOTP = _chunkD77DV2PYcjs.d; exports.InputOTPGroup = _chunkD77DV2PYcjs.e; exports.InputOTPSeparator = _chunkD77DV2PYcjs.g; exports.InputOTPSlot = _chunkD77DV2PYcjs.f; exports.Kbd = _chunkG7L7OMQCcjs.a; exports.Label = _chunkC3JCUMYCcjs.a; exports.Menubar = _chunk2VT6BX7Scjs.e; exports.MenubarArrow = _chunk2VT6BX7Scjs.p; exports.MenubarCheckboxItem = _chunk2VT6BX7Scjs.k; exports.MenubarContent = _chunk2VT6BX7Scjs.i; exports.MenubarGroup = _chunk2VT6BX7Scjs.b; exports.MenubarItem = _chunk2VT6BX7Scjs.j; exports.MenubarLabel = _chunk2VT6BX7Scjs.m; exports.MenubarMenu = _chunk2VT6BX7Scjs.a; exports.MenubarRadioGroup = _chunk2VT6BX7Scjs.d; exports.MenubarRadioItem = _chunk2VT6BX7Scjs.l; exports.MenubarSeparator = _chunk2VT6BX7Scjs.n; exports.MenubarShortcut = _chunk2VT6BX7Scjs.o; exports.MenubarSub = _chunk2VT6BX7Scjs.c; exports.MenubarSubContent = _chunk2VT6BX7Scjs.h; exports.MenubarSubTrigger = _chunk2VT6BX7Scjs.g; exports.MenubarTrigger = _chunk2VT6BX7Scjs.f; exports.NavigationMenu = _chunkGLTHRHLIcjs.a; exports.NavigationMenuContent = _chunkGLTHRHLIcjs.e; exports.NavigationMenuItem = _chunkGLTHRHLIcjs.c; exports.NavigationMenuLink = _chunkGLTHRHLIcjs.f; exports.NavigationMenuList = _chunkGLTHRHLIcjs.b; exports.NavigationMenuTrigger = _chunkGLTHRHLIcjs.d; exports.NumberInput = _chunk277MGUJUcjs.a; exports.Pagination = _chunkNBQOSKVVcjs.a; exports.PaginationContent = _chunkNBQOSKVVcjs.b; exports.PaginationEllipsis = _chunkNBQOSKVVcjs.g; exports.PaginationItem = _chunkNBQOSKVVcjs.c; exports.PaginationLink = _chunkNBQOSKVVcjs.d; exports.PaginationNext = _chunkNBQOSKVVcjs.f; exports.PaginationPrevious = _chunkNBQOSKVVcjs.e; exports.PasswordInput = _chunk3X6EEYS3cjs.a; exports.Popover = _chunkDXKDE2PNcjs.a; exports.PopoverAnchor = _chunkDXKDE2PNcjs.c; exports.PopoverArrow = _chunkDXKDE2PNcjs.e; exports.PopoverContent = _chunkDXKDE2PNcjs.d; exports.PopoverTrigger = _chunkDXKDE2PNcjs.b; exports.Pre = _chunkEGLZAP4Scjs.a; exports.Progress = _chunkZ7V3J23Wcjs.a; exports.Quote = _chunk6UCQE3N6cjs.a; exports.REGEXP_ONLY_CHARS = _chunkD77DV2PYcjs.a; exports.REGEXP_ONLY_DIGITS = _chunkD77DV2PYcjs.b; exports.REGEXP_ONLY_DIGITS_AND_CHARS = _chunkD77DV2PYcjs.c; exports.Radio = _chunkGP4IX6Q5cjs.a; exports.RadioCards = _chunkAQBPC4WTcjs.a; exports.RadioCardsItem = _chunkAQBPC4WTcjs.b; exports.RadioGroup = _chunkR4NKNWAFcjs.a; exports.RadioGroupItem = _chunkR4NKNWAFcjs.b; exports.ResizableHandle = _chunkIGBASIDTcjs.c; exports.ResizablePanel = _chunkIGBASIDTcjs.b; exports.ResizablePanelGroup = _chunkIGBASIDTcjs.a; exports.ScrollArea = _chunk7RUBTABZcjs.a; exports.ScrollAreaScrollbar = _chunk7RUBTABZcjs.b; exports.SearchInput = _chunkYP7NF7KYcjs.a; exports.Section = _chunkV6H7J3PZcjs.a; exports.Select = _chunkAIMWT5FFcjs.a; exports.SelectContent = _chunkAIMWT5FFcjs.g; exports.SelectGroup = _chunkAIMWT5FFcjs.b; exports.SelectItem = _chunkAIMWT5FFcjs.i; exports.SelectLabel = _chunkAIMWT5FFcjs.h; exports.SelectScrollDownButton = _chunkAIMWT5FFcjs.f; exports.SelectScrollUpButton = _chunkAIMWT5FFcjs.e; exports.SelectSeparator = _chunkAIMWT5FFcjs.j; exports.SelectTrigger = _chunkAIMWT5FFcjs.d; exports.SelectValue = _chunkAIMWT5FFcjs.c; exports.Separator = _chunk5AQT2M4Qcjs.a; exports.SeparatorItem = _chunk5AQT2M4Qcjs.b; exports.Sheet = _chunk7K56G3OScjs.a; exports.SheetBody = _chunk7K56G3OScjs.e; exports.SheetClose = _chunk7K56G3OScjs.i; exports.SheetContent = _chunk7K56G3OScjs.c; exports.SheetDescription = _chunk7K56G3OScjs.h; exports.SheetFooter = _chunk7K56G3OScjs.f; exports.SheetHeader = _chunk7K56G3OScjs.d; exports.SheetTitle = _chunk7K56G3OScjs.g; exports.SheetTrigger = _chunk7K56G3OScjs.b; exports.Skeleton = _chunkEYYMRAUHcjs.a; exports.Slider = _chunk3VRNVFVAcjs.a; exports.Spinner = _chunkHFROIOY3cjs.a; exports.Strong = _chunkCVDXD5WNcjs.a; exports.Switch = _chunkTAFSGBZZcjs.a; exports.Table = _chunkG2ZKUHLXcjs.a; exports.TableBody = _chunkG2ZKUHLXcjs.c; exports.TableCaption = _chunkG2ZKUHLXcjs.h; exports.TableCell = _chunkG2ZKUHLXcjs.g; exports.TableFooter = _chunkG2ZKUHLXcjs.d; exports.TableHead = _chunkG2ZKUHLXcjs.f; exports.TableHeader = _chunkG2ZKUHLXcjs.b; exports.TableRow = _chunkG2ZKUHLXcjs.e; exports.Tabs = _chunkYL262UMCcjs.a; exports.TabsContent = _chunkYL262UMCcjs.d; exports.TabsList = _chunkYL262UMCcjs.b; exports.TabsTrigger = _chunkYL262UMCcjs.c; exports.Text = _chunk5GPUH5DHcjs.a; exports.TextInput = _chunk6JVA5L6Fcjs.a; exports.Textarea = _chunk32SQW5RIcjs.a; exports.Toaster = _chunk2KJO6CJDcjs.b; exports.Toggle = _chunkJO3GWI7Zcjs.a; exports.ToggleGroup = _chunkYUJO6FOFcjs.a; exports.ToggleGroupItem = _chunkYUJO6FOFcjs.b; exports.Tooltip = _chunk27FVJY2Dcjs.b; exports.TooltipArrow = _chunk27FVJY2Dcjs.e; exports.TooltipContent = _chunk27FVJY2Dcjs.d; exports.TooltipProvider = _chunk27FVJY2Dcjs.a; exports.TooltipTrigger = _chunk27FVJY2Dcjs.c; exports.buttonVariants = _chunkUF5YIM7Lcjs.a; exports.cn = _chunkDD6AVCRHcjs.a; exports.createCarouselScope = _chunkY46KHJVEcjs.a; exports.createFormFieldScope = _chunkLVV67TW7cjs.b; exports.inputVariants = _chunkQJGSGK2Fcjs.a; exports.toast = _chunk2KJO6CJDcjs.a; exports.toggleVariants = _chunkFOCRCGCPcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk32SQW5RIcjs = require('./chunk-32SQW5RI.cjs');require('./chunk-L5RKZ4EK.cjs');var _chunkYUJO6FOFcjs = require('./chunk-YUJO6FOF.cjs');var _chunkJO3GWI7Zcjs = require('./chunk-JO3GWI7Z.cjs');var _chunkFOCRCGCPcjs = require('./chunk-FOCRCGCP.cjs');var _chunk27FVJY2Dcjs = require('./chunk-27FVJY2D.cjs');var _chunk2KJO6CJDcjs = require('./chunk-2KJO6CJD.cjs');var _chunkCVDXD5WNcjs = require('./chunk-CVDXD5WN.cjs');var _chunkTAFSGBZZcjs = require('./chunk-TAFSGBZZ.cjs');var _chunkG2ZKUHLXcjs = require('./chunk-G2ZKUHLX.cjs');var _chunkYL262UMCcjs = require('./chunk-YL262UMC.cjs');var _chunk6JVA5L6Fcjs = require('./chunk-6JVA5L6F.cjs');var _chunk5GPUH5DHcjs = require('./chunk-5GPUH5DH.cjs');var _chunk7RUBTABZcjs = require('./chunk-7RUBTABZ.cjs');var _chunkYP7NF7KYcjs = require('./chunk-YP7NF7KY.cjs');var _chunkV6H7J3PZcjs = require('./chunk-V6H7J3PZ.cjs');var _chunk5AQT2M4Qcjs = require('./chunk-5AQT2M4Q.cjs');var _chunk7K56G3OScjs = require('./chunk-7K56G3OS.cjs');var _chunkEYYMRAUHcjs = require('./chunk-EYYMRAUH.cjs');var _chunk3VRNVFVAcjs = require('./chunk-3VRNVFVA.cjs');var _chunkDXKDE2PNcjs = require('./chunk-DXKDE2PN.cjs');var _chunkEGLZAP4Scjs = require('./chunk-EGLZAP4S.cjs');var _chunkZ7V3J23Wcjs = require('./chunk-Z7V3J23W.cjs');var _chunk6UCQE3N6cjs = require('./chunk-6UCQE3N6.cjs');var _chunkAQBPC4WTcjs = require('./chunk-AQBPC4WT.cjs');var _chunkR4NKNWAFcjs = require('./chunk-R4NKNWAF.cjs');var _chunkGP4IX6Q5cjs = require('./chunk-GP4IX6Q5.cjs');var _chunkIGBASIDTcjs = require('./chunk-IGBASIDT.cjs');var _chunkD77DV2PYcjs = require('./chunk-D77DV2PY.cjs');var _chunkG7L7OMQCcjs = require('./chunk-G7L7OMQC.cjs');var _chunk2VT6BX7Scjs = require('./chunk-2VT6BX7S.cjs');var _chunkGLTHRHLIcjs = require('./chunk-GLTHRHLI.cjs');var _chunk277MGUJUcjs = require('./chunk-277MGUJU.cjs');var _chunkNBQOSKVVcjs = require('./chunk-NBQOSKVV.cjs');var _chunk3X6EEYS3cjs = require('./chunk-3X6EEYS3.cjs');var _chunkQJGSGK2Fcjs = require('./chunk-QJGSGK2F.cjs');require('./chunk-2RAQYLLP.cjs');var _chunkKU2TWJO6cjs = require('./chunk-KU2TWJO6.cjs');var _chunkB2B6KDWQcjs = require('./chunk-B2B6KDWQ.cjs');var _chunkLVV67TW7cjs = require('./chunk-LVV67TW7.cjs');var _chunkC3JCUMYCcjs = require('./chunk-C3JCUMYC.cjs');var _chunkSSEBLMN5cjs = require('./chunk-SSEBLMN5.cjs');var _chunkSFY3PJ4Pcjs = require('./chunk-SFY3PJ4P.cjs');var _chunk4NUC23C3cjs = require('./chunk-4NUC23C3.cjs');var _chunk6WG2BQFJcjs = require('./chunk-6WG2BQFJ.cjs');var _chunk3INI5ONRcjs = require('./chunk-3INI5ONR.cjs');var _chunk6CRPUDHOcjs = require('./chunk-6CRPUDHO.cjs');var _chunkQGXJIDRMcjs = require('./chunk-QGXJIDRM.cjs');var _chunk4EPZJQXBcjs = require('./chunk-4EPZJQXB.cjs');var _chunkMKZNGJBScjs = require('./chunk-MKZNGJBS.cjs');var _chunkCVSZ456Pcjs = require('./chunk-CVSZ456P.cjs');var _chunkDDUYQ6R3cjs = require('./chunk-DDUYQ6R3.cjs');var _chunkAIMWT5FFcjs = require('./chunk-AIMWT5FF.cjs');var _chunk6QQPQ7WNcjs = require('./chunk-6QQPQ7WN.cjs');var _chunk5AARHWODcjs = require('./chunk-5AARHWOD.cjs');var _chunkQP6DOJTZcjs = require('./chunk-QP6DOJTZ.cjs');var _chunkB2ANDYCKcjs = require('./chunk-B2ANDYCK.cjs');var _chunkNTCSJCJ2cjs = require('./chunk-NTCSJCJ2.cjs');var _chunkY46KHJVEcjs = require('./chunk-Y46KHJVE.cjs');var _chunk4GFRDE44cjs = require('./chunk-4GFRDE44.cjs');var _chunkHFROIOY3cjs = require('./chunk-HFROIOY3.cjs');var _chunkJ7Z75WLHcjs = require('./chunk-J7Z75WLH.cjs');var _chunkRY34IJ6Jcjs = require('./chunk-RY34IJ6J.cjs');var _chunkOILTSDECcjs = require('./chunk-OILTSDEC.cjs');var _chunkUFTG26DAcjs = require('./chunk-UFTG26DA.cjs');var _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.cjs');var _chunkCOVOQ3ITcjs = require('./chunk-COVOQ3IT.cjs');var _chunkFNXUC6VMcjs = require('./chunk-FNXUC6VM.cjs');var _chunkHW6UEQFNcjs = require('./chunk-HW6UEQFN.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _chunkNSA7UBGFcjs = require('./chunk-NSA7UBGF.cjs');var _chunkHDDB7PJQcjs = require('./chunk-HDDB7PJQ.cjs');exports.Accordion = _chunkOILTSDECcjs.a; exports.AccordionContent = _chunkOILTSDECcjs.e; exports.AccordionIcon = _chunkOILTSDECcjs.c; exports.AccordionItem = _chunkOILTSDECcjs.b; exports.AccordionTrigger = _chunkOILTSDECcjs.d; exports.Alert = _chunkCOVOQ3ITcjs.a; exports.AlertDescription = _chunkCOVOQ3ITcjs.c; exports.AlertDialog = _chunkUFTG26DAcjs.a; exports.AlertDialogAction = _chunkUFTG26DAcjs.i; exports.AlertDialogBody = _chunkUFTG26DAcjs.e; exports.AlertDialogCancel = _chunkUFTG26DAcjs.j; exports.AlertDialogContent = _chunkUFTG26DAcjs.c; exports.AlertDialogDescription = _chunkUFTG26DAcjs.h; exports.AlertDialogFooter = _chunkUFTG26DAcjs.f; exports.AlertDialogHeader = _chunkUFTG26DAcjs.d; exports.AlertDialogTitle = _chunkUFTG26DAcjs.g; exports.AlertDialogTrigger = _chunkUFTG26DAcjs.b; exports.AlertTitle = _chunkCOVOQ3ITcjs.b; exports.AspectRatio = _chunkFNXUC6VMcjs.a; exports.Avatar = _chunkHW6UEQFNcjs.a; exports.AvatarFallback = _chunkHW6UEQFNcjs.c; exports.AvatarImage = _chunkHW6UEQFNcjs.b; exports.Badge = _chunkNSA7UBGFcjs.a; exports.Blockquote = _chunkHDDB7PJQcjs.a; exports.Box = _chunk5AARHWODcjs.a; exports.Breadcrumb = _chunkQP6DOJTZcjs.a; exports.BreadcrumbEllipsis = _chunkQP6DOJTZcjs.g; exports.BreadcrumbItem = _chunkQP6DOJTZcjs.c; exports.BreadcrumbLink = _chunkQP6DOJTZcjs.d; exports.BreadcrumbList = _chunkQP6DOJTZcjs.b; exports.BreadcrumbPage = _chunkQP6DOJTZcjs.e; exports.BreadcrumbSeparator = _chunkQP6DOJTZcjs.f; exports.Button = _chunk4GFRDE44cjs.a; exports.Calendar = _chunkB2ANDYCKcjs.a; exports.CalendarLabel = _chunkB2ANDYCKcjs.c; exports.CalendarRangeLabel = _chunkB2ANDYCKcjs.b; exports.Card = _chunkNTCSJCJ2cjs.a; exports.CardContent = _chunkNTCSJCJ2cjs.e; exports.CardDescription = _chunkNTCSJCJ2cjs.d; exports.CardFooter = _chunkNTCSJCJ2cjs.f; exports.CardHeader = _chunkNTCSJCJ2cjs.b; exports.CardTitle = _chunkNTCSJCJ2cjs.c; exports.Carousel = _chunkY46KHJVEcjs.b; exports.CarouselContent = _chunkY46KHJVEcjs.c; exports.CarouselItem = _chunkY46KHJVEcjs.d; exports.CarouselNext = _chunkY46KHJVEcjs.f; exports.CarouselPrevious = _chunkY46KHJVEcjs.e; exports.ChartContainer = _chunkJ7Z75WLHcjs.a; exports.ChartLegend = _chunkJ7Z75WLHcjs.e; exports.ChartLegendContent = _chunkJ7Z75WLHcjs.f; exports.ChartStyle = _chunkJ7Z75WLHcjs.b; exports.ChartTooltip = _chunkJ7Z75WLHcjs.c; exports.ChartTooltipContent = _chunkJ7Z75WLHcjs.d; exports.Checkbox = _chunk6WG2BQFJcjs.a; exports.CheckboxCards = _chunkRY34IJ6Jcjs.a; exports.CheckboxCardsItem = _chunkRY34IJ6Jcjs.b; exports.CheckboxGroup = _chunk4NUC23C3cjs.a; exports.CheckboxGroupItem = _chunk4NUC23C3cjs.b; exports.Code = _chunk3INI5ONRcjs.a; exports.Collapsible = _chunk6CRPUDHOcjs.a; exports.CollapsibleContent = _chunk6CRPUDHOcjs.c; exports.CollapsibleTrigger = _chunk6CRPUDHOcjs.b; exports.Command = _chunkQGXJIDRMcjs.a; exports.CommandDialog = _chunkQGXJIDRMcjs.b; exports.CommandEmpty = _chunkQGXJIDRMcjs.e; exports.CommandGroup = _chunkQGXJIDRMcjs.f; exports.CommandInput = _chunkQGXJIDRMcjs.c; exports.CommandItem = _chunkQGXJIDRMcjs.h; exports.CommandList = _chunkQGXJIDRMcjs.d; exports.CommandLoading = _chunkQGXJIDRMcjs.i; exports.CommandSeparator = _chunkQGXJIDRMcjs.g; exports.CommandShortcut = _chunkQGXJIDRMcjs.j; exports.Container = _chunkMKZNGJBScjs.a; exports.ContextMenu = _chunkCVSZ456Pcjs.a; exports.ContextMenuArrow = _chunkCVSZ456Pcjs.o; exports.ContextMenuCheckboxItem = _chunkCVSZ456Pcjs.j; exports.ContextMenuContent = _chunkCVSZ456Pcjs.h; exports.ContextMenuGroup = _chunkCVSZ456Pcjs.c; exports.ContextMenuItem = _chunkCVSZ456Pcjs.i; exports.ContextMenuLabel = _chunkCVSZ456Pcjs.l; exports.ContextMenuRadioGroup = _chunkCVSZ456Pcjs.e; exports.ContextMenuRadioItem = _chunkCVSZ456Pcjs.k; exports.ContextMenuSeparator = _chunkCVSZ456Pcjs.m; exports.ContextMenuShortcut = _chunkCVSZ456Pcjs.n; exports.ContextMenuSub = _chunkCVSZ456Pcjs.d; exports.ContextMenuSubContent = _chunkCVSZ456Pcjs.g; exports.ContextMenuSubTrigger = _chunkCVSZ456Pcjs.f; exports.ContextMenuTrigger = _chunkCVSZ456Pcjs.b; exports.DataTableColumnHeader = _chunkDDUYQ6R3cjs.c; exports.DataTablePagination = _chunkDDUYQ6R3cjs.b; exports.DataTableViewOptions = _chunkDDUYQ6R3cjs.a; exports.Dialog = _chunk4EPZJQXBcjs.a; exports.DialogBody = _chunk4EPZJQXBcjs.e; exports.DialogClose = _chunk4EPZJQXBcjs.i; exports.DialogContent = _chunk4EPZJQXBcjs.c; exports.DialogDescription = _chunk4EPZJQXBcjs.h; exports.DialogFooter = _chunk4EPZJQXBcjs.f; exports.DialogHeader = _chunk4EPZJQXBcjs.d; exports.DialogTitle = _chunk4EPZJQXBcjs.g; exports.DialogTrigger = _chunk4EPZJQXBcjs.b; exports.Drawer = _chunkKU2TWJO6cjs.a; exports.DrawerBody = _chunkKU2TWJO6cjs.e; exports.DrawerClose = _chunkKU2TWJO6cjs.i; exports.DrawerContent = _chunkKU2TWJO6cjs.c; exports.DrawerDescription = _chunkKU2TWJO6cjs.h; exports.DrawerFooter = _chunkKU2TWJO6cjs.f; exports.DrawerHeader = _chunkKU2TWJO6cjs.d; exports.DrawerTitle = _chunkKU2TWJO6cjs.g; exports.DrawerTrigger = _chunkKU2TWJO6cjs.b; exports.DropdownMenu = _chunk6QQPQ7WNcjs.a; exports.DropdownMenuArrow = _chunk6QQPQ7WNcjs.o; exports.DropdownMenuCheckboxItem = _chunk6QQPQ7WNcjs.j; exports.DropdownMenuContent = _chunk6QQPQ7WNcjs.h; exports.DropdownMenuGroup = _chunk6QQPQ7WNcjs.c; exports.DropdownMenuItem = _chunk6QQPQ7WNcjs.i; exports.DropdownMenuLabel = _chunk6QQPQ7WNcjs.l; exports.DropdownMenuRadioGroup = _chunk6QQPQ7WNcjs.e; exports.DropdownMenuRadioItem = _chunk6QQPQ7WNcjs.k; exports.DropdownMenuSeparator = _chunk6QQPQ7WNcjs.m; exports.DropdownMenuShortcut = _chunk6QQPQ7WNcjs.n; exports.DropdownMenuSub = _chunk6QQPQ7WNcjs.d; exports.DropdownMenuSubContent = _chunk6QQPQ7WNcjs.g; exports.DropdownMenuSubTrigger = _chunk6QQPQ7WNcjs.f; exports.DropdownMenuTrigger = _chunk6QQPQ7WNcjs.b; exports.Em = _chunkB2B6KDWQcjs.a; exports.Form = _chunkLVV67TW7cjs.a; exports.FormControl = _chunkLVV67TW7cjs.f; exports.FormDescription = _chunkLVV67TW7cjs.g; exports.FormField = _chunkLVV67TW7cjs.c; exports.FormItem = _chunkLVV67TW7cjs.d; exports.FormLabel = _chunkLVV67TW7cjs.e; exports.FormMessage = _chunkLVV67TW7cjs.h; exports.Heading = _chunkSSEBLMN5cjs.a; exports.HoverCard = _chunkSFY3PJ4Pcjs.a; exports.HoverCardArrow = _chunkSFY3PJ4Pcjs.d; exports.HoverCardContent = _chunkSFY3PJ4Pcjs.c; exports.HoverCardTrigger = _chunkSFY3PJ4Pcjs.b; exports.InputOTP = _chunkD77DV2PYcjs.d; exports.InputOTPGroup = _chunkD77DV2PYcjs.e; exports.InputOTPSeparator = _chunkD77DV2PYcjs.g; exports.InputOTPSlot = _chunkD77DV2PYcjs.f; exports.Kbd = _chunkG7L7OMQCcjs.a; exports.Label = _chunkC3JCUMYCcjs.a; exports.Menubar = _chunk2VT6BX7Scjs.e; exports.MenubarArrow = _chunk2VT6BX7Scjs.p; exports.MenubarCheckboxItem = _chunk2VT6BX7Scjs.k; exports.MenubarContent = _chunk2VT6BX7Scjs.i; exports.MenubarGroup = _chunk2VT6BX7Scjs.b; exports.MenubarItem = _chunk2VT6BX7Scjs.j; exports.MenubarLabel = _chunk2VT6BX7Scjs.m; exports.MenubarMenu = _chunk2VT6BX7Scjs.a; exports.MenubarRadioGroup = _chunk2VT6BX7Scjs.d; exports.MenubarRadioItem = _chunk2VT6BX7Scjs.l; exports.MenubarSeparator = _chunk2VT6BX7Scjs.n; exports.MenubarShortcut = _chunk2VT6BX7Scjs.o; exports.MenubarSub = _chunk2VT6BX7Scjs.c; exports.MenubarSubContent = _chunk2VT6BX7Scjs.h; exports.MenubarSubTrigger = _chunk2VT6BX7Scjs.g; exports.MenubarTrigger = _chunk2VT6BX7Scjs.f; exports.NavigationMenu = _chunkGLTHRHLIcjs.a; exports.NavigationMenuContent = _chunkGLTHRHLIcjs.e; exports.NavigationMenuItem = _chunkGLTHRHLIcjs.c; exports.NavigationMenuLink = _chunkGLTHRHLIcjs.f; exports.NavigationMenuList = _chunkGLTHRHLIcjs.b; exports.NavigationMenuTrigger = _chunkGLTHRHLIcjs.d; exports.NumberInput = _chunk277MGUJUcjs.a; exports.Pagination = _chunkNBQOSKVVcjs.a; exports.PaginationContent = _chunkNBQOSKVVcjs.b; exports.PaginationEllipsis = _chunkNBQOSKVVcjs.g; exports.PaginationItem = _chunkNBQOSKVVcjs.c; exports.PaginationLink = _chunkNBQOSKVVcjs.d; exports.PaginationNext = _chunkNBQOSKVVcjs.f; exports.PaginationPrevious = _chunkNBQOSKVVcjs.e; exports.PasswordInput = _chunk3X6EEYS3cjs.a; exports.Popover = _chunkDXKDE2PNcjs.a; exports.PopoverAnchor = _chunkDXKDE2PNcjs.c; exports.PopoverArrow = _chunkDXKDE2PNcjs.e; exports.PopoverContent = _chunkDXKDE2PNcjs.d; exports.PopoverTrigger = _chunkDXKDE2PNcjs.b; exports.Pre = _chunkEGLZAP4Scjs.a; exports.Progress = _chunkZ7V3J23Wcjs.a; exports.Quote = _chunk6UCQE3N6cjs.a; exports.REGEXP_ONLY_CHARS = _chunkD77DV2PYcjs.a; exports.REGEXP_ONLY_DIGITS = _chunkD77DV2PYcjs.b; exports.REGEXP_ONLY_DIGITS_AND_CHARS = _chunkD77DV2PYcjs.c; exports.Radio = _chunkGP4IX6Q5cjs.a; exports.RadioCards = _chunkAQBPC4WTcjs.a; exports.RadioCardsItem = _chunkAQBPC4WTcjs.b; exports.RadioGroup = _chunkR4NKNWAFcjs.a; exports.RadioGroupItem = _chunkR4NKNWAFcjs.b; exports.ResizableHandle = _chunkIGBASIDTcjs.c; exports.ResizablePanel = _chunkIGBASIDTcjs.b; exports.ResizablePanelGroup = _chunkIGBASIDTcjs.a; exports.ScrollArea = _chunk7RUBTABZcjs.a; exports.ScrollAreaScrollbar = _chunk7RUBTABZcjs.b; exports.SearchInput = _chunkYP7NF7KYcjs.a; exports.Section = _chunkV6H7J3PZcjs.a; exports.Select = _chunkAIMWT5FFcjs.a; exports.SelectContent = _chunkAIMWT5FFcjs.g; exports.SelectGroup = _chunkAIMWT5FFcjs.b; exports.SelectItem = _chunkAIMWT5FFcjs.i; exports.SelectLabel = _chunkAIMWT5FFcjs.h; exports.SelectScrollDownButton = _chunkAIMWT5FFcjs.f; exports.SelectScrollUpButton = _chunkAIMWT5FFcjs.e; exports.SelectSeparator = _chunkAIMWT5FFcjs.j; exports.SelectTrigger = _chunkAIMWT5FFcjs.d; exports.SelectValue = _chunkAIMWT5FFcjs.c; exports.Separator = _chunk5AQT2M4Qcjs.a; exports.SeparatorItem = _chunk5AQT2M4Qcjs.b; exports.Sheet = _chunk7K56G3OScjs.a; exports.SheetBody = _chunk7K56G3OScjs.e; exports.SheetClose = _chunk7K56G3OScjs.i; exports.SheetContent = _chunk7K56G3OScjs.c; exports.SheetDescription = _chunk7K56G3OScjs.h; exports.SheetFooter = _chunk7K56G3OScjs.f; exports.SheetHeader = _chunk7K56G3OScjs.d; exports.SheetTitle = _chunk7K56G3OScjs.g; exports.SheetTrigger = _chunk7K56G3OScjs.b; exports.Skeleton = _chunkEYYMRAUHcjs.a; exports.Slider = _chunk3VRNVFVAcjs.a; exports.Spinner = _chunkHFROIOY3cjs.a; exports.Strong = _chunkCVDXD5WNcjs.a; exports.Switch = _chunkTAFSGBZZcjs.a; exports.Table = _chunkG2ZKUHLXcjs.a; exports.TableBody = _chunkG2ZKUHLXcjs.c; exports.TableCaption = _chunkG2ZKUHLXcjs.h; exports.TableCell = _chunkG2ZKUHLXcjs.g; exports.TableFooter = _chunkG2ZKUHLXcjs.d; exports.TableHead = _chunkG2ZKUHLXcjs.f; exports.TableHeader = _chunkG2ZKUHLXcjs.b; exports.TableRow = _chunkG2ZKUHLXcjs.e; exports.Tabs = _chunkYL262UMCcjs.a; exports.TabsContent = _chunkYL262UMCcjs.d; exports.TabsList = _chunkYL262UMCcjs.b; exports.TabsTrigger = _chunkYL262UMCcjs.c; exports.Text = _chunk5GPUH5DHcjs.a; exports.TextInput = _chunk6JVA5L6Fcjs.a; exports.Textarea = _chunk32SQW5RIcjs.a; exports.Toaster = _chunk2KJO6CJDcjs.b; exports.Toggle = _chunkJO3GWI7Zcjs.a; exports.ToggleGroup = _chunkYUJO6FOFcjs.a; exports.ToggleGroupItem = _chunkYUJO6FOFcjs.b; exports.Tooltip = _chunk27FVJY2Dcjs.b; exports.TooltipArrow = _chunk27FVJY2Dcjs.e; exports.TooltipContent = _chunk27FVJY2Dcjs.d; exports.TooltipProvider = _chunk27FVJY2Dcjs.a; exports.TooltipTrigger = _chunk27FVJY2Dcjs.c; exports.buttonVariants = _chunkUF5YIM7Lcjs.a; exports.cn = _chunkDD6AVCRHcjs.a; exports.createCarouselScope = _chunkY46KHJVEcjs.a; exports.createFormFieldScope = _chunkLVV67TW7cjs.b; exports.inputVariants = _chunkQJGSGK2Fcjs.a; exports.toast = _chunk2KJO6CJDcjs.a; exports.toggleVariants = _chunkFOCRCGCPcjs.a;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/index.cjs"],"names":[],"mappings":"AAAA,iIAAyC,gCAA6B,wDAAkD,wDAA0C,wDAAyC,wDAA0E,wDAAkD,wDAA0C,wDAA0C,wDAAkG,wDAAkE,wDAA0C,wDAA0C,wDAAkD,wDAA0C,wDAA0C,wDAAkD,wDAA0G,wDAA0C,wDAA0C,wDAA0E,wDAA0C,wDAA0C,wDAA0C,wDAAkD,wDAAkD,wDAA0C,wDAA0D,wDAA0F,wDAA0C,wDAAkK,wDAAkF,wDAA0C,wDAA0F,wDAA0C,wDAAyC,gCAA6B,wDAA0G,wDAA0C,wDAAkG,wDAA0C,wDAA0C,wDAAkE,wDAAkD,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/index.cjs"],"names":[],"mappings":"AAAA,iIAAyC,gCAA6B,wDAAkD,wDAA0C,wDAAyC,wDAA0E,wDAAkD,wDAA0C,wDAA0C,wDAAkG,wDAAkE,wDAA0C,wDAA0C,wDAAkD,wDAA0C,wDAA0C,wDAAkD,wDAA0G,wDAA0C,wDAA0C,wDAA0E,wDAA0C,wDAA0C,wDAA0C,wDAAkD,wDAAkD,wDAA0C,wDAA0D,wDAA0F,wDAA0C,wDAAkK,wDAAkF,wDAA0C,wDAA0F,wDAA0C,wDAAyC,gCAA6B,wDAA0G,wDAA0C,wDAAkG,wDAA0C,wDAA0C,wDAAkE,wDAAkD,wDAA0C,wDAA0C,wDAA0D,wDAAkH,wDAA0G,wDAA0C,wDAA0J,wDAA0D,wDAAkH,wDAA0J,wDAAyC,wDAAmF,wDAAuD,wDAA4E,wDAA4E,wDAAyC,wDAAyC,wDAAiF,wDAAkD,wDAAqE,wDAAwG,wDAAyC,wDAAuD,wDAAyC,wDAAuD,wDAAyC,wDAAyC,wDAAyC,wpWAA65J","file":"/home/runner/work/codefast/codefast/packages/ui/dist/index.cjs"}
|
package/dist/index.d.cts
CHANGED
|
@@ -15,6 +15,7 @@ export { Button, ButtonProps } from './components/button.cjs';
|
|
|
15
15
|
export { Calendar, CalendarLabel, CalendarLabelProps, CalendarProps, CalendarRangeLabel, CalendarRangeLabelProps } from './components/calendar.cjs';
|
|
16
16
|
export { Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps } from './components/card.cjs';
|
|
17
17
|
export { Carousel, CarouselApi, CarouselContent, CarouselContentProps, CarouselItem, CarouselItemProps, CarouselNext, CarouselNextProps, CarouselPrevious, CarouselPreviousProps, CarouselProps, createCarouselScope } from './components/carousel.cjs';
|
|
18
|
+
export { ChartConfig, ChartContainer, ChartContainerProps, ChartLegend, ChartLegendContent, ChartLegendContentProps, ChartLegendProps, ChartStyle, ChartStyleProps, ChartTooltip, ChartTooltipContent, ChartTooltipContentProps, ChartTooltipProps } from './components/chart.cjs';
|
|
18
19
|
export { Checkbox, CheckboxProps } from './components/checkbox.cjs';
|
|
19
20
|
export { CheckboxCards, CheckboxCardsItem, CheckboxCardsItemProps, CheckboxCardsProps } from './components/checkbox-cards.cjs';
|
|
20
21
|
export { CheckboxGroup, CheckboxGroupItem, CheckboxGroupItemProps, CheckboxGroupProps } from './components/checkbox-group.cjs';
|
|
@@ -81,6 +82,7 @@ import '@radix-ui/react-aspect-ratio';
|
|
|
81
82
|
import '@radix-ui/react-avatar';
|
|
82
83
|
import '@radix-ui/react-context';
|
|
83
84
|
import 'embla-carousel-react';
|
|
85
|
+
import 'recharts';
|
|
84
86
|
import '@radix-ui/react-checkbox';
|
|
85
87
|
import '@codefast-ui/checkbox-group';
|
|
86
88
|
import '@radix-ui/react-collapsible';
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { Button, ButtonProps } from './components/button.js';
|
|
|
15
15
|
export { Calendar, CalendarLabel, CalendarLabelProps, CalendarProps, CalendarRangeLabel, CalendarRangeLabelProps } from './components/calendar.js';
|
|
16
16
|
export { Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps } from './components/card.js';
|
|
17
17
|
export { Carousel, CarouselApi, CarouselContent, CarouselContentProps, CarouselItem, CarouselItemProps, CarouselNext, CarouselNextProps, CarouselPrevious, CarouselPreviousProps, CarouselProps, createCarouselScope } from './components/carousel.js';
|
|
18
|
+
export { ChartConfig, ChartContainer, ChartContainerProps, ChartLegend, ChartLegendContent, ChartLegendContentProps, ChartLegendProps, ChartStyle, ChartStyleProps, ChartTooltip, ChartTooltipContent, ChartTooltipContentProps, ChartTooltipProps } from './components/chart.js';
|
|
18
19
|
export { Checkbox, CheckboxProps } from './components/checkbox.js';
|
|
19
20
|
export { CheckboxCards, CheckboxCardsItem, CheckboxCardsItemProps, CheckboxCardsProps } from './components/checkbox-cards.js';
|
|
20
21
|
export { CheckboxGroup, CheckboxGroupItem, CheckboxGroupItemProps, CheckboxGroupProps } from './components/checkbox-group.js';
|
|
@@ -81,6 +82,7 @@ import '@radix-ui/react-aspect-ratio';
|
|
|
81
82
|
import '@radix-ui/react-avatar';
|
|
82
83
|
import '@radix-ui/react-context';
|
|
83
84
|
import 'embla-carousel-react';
|
|
85
|
+
import 'recharts';
|
|
84
86
|
import '@radix-ui/react-checkbox';
|
|
85
87
|
import '@codefast-ui/checkbox-group';
|
|
86
88
|
import '@radix-ui/react-collapsible';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as Ff}from"./chunk-Y7NPEE5D.js";import"./chunk-U2JQOYDM.js";import{a as Hf,b as If}from"./chunk-ER57BTKA.js";import{a as Gf}from"./chunk-TSLTPMZG.js";import{a as f}from"./chunk-CQUPWL67.js";import{a as Jf,b as Kf,c as Lf,d as Mf,e as Nf}from"./chunk-P3NQKY2O.js";import{a as gf,b as hf}from"./chunk-P43SRU6B.js";import{a as jf}from"./chunk-LXKXNXN3.js";import{a as kf}from"./chunk-6NCX7KIZ.js";import{a as lf,b as nf,c as qf,d as sf,e as uf,f as vf,g as wf,h as yf}from"./chunk-CABVGOLI.js";import{a as zf,b as Af,c as Bf,d as Cf}from"./chunk-OIBROWV7.js";import{a as Ef}from"./chunk-ESGJD3EH.js";import{a as Df}from"./chunk-PAMP6NUT.js";import{a as Xe,b as Ye}from"./chunk-5LXJ6LNT.js";import{a as Ze}from"./chunk-RPUH3ITJ.js";import{a as _e}from"./chunk-VIFD5JWH.js";import{a as $e,b as of}from"./chunk-ZNOQDIWE.js";import{a as rf,b as ef,c as ff,d as mf,e as pf,f as tf,g as xf,h as af,i as bf}from"./chunk-T3UMGRIG.js";import{a as cf}from"./chunk-H673265S.js";import{a as df}from"./chunk-WV3VVLBR.js";import{a as He,b as Ie,c as Je,d as Ke,e as Le}from"./chunk-WIMGJQVV.js";import{a as Me}from"./chunk-TRKS7L3H.js";import{a as Ne}from"./chunk-2OTO3VQG.js";import{a as Oe}from"./chunk-GYXY4PT6.js";import{a as Qe,b as Re}from"./chunk-KNSUZHIX.js";import{a as Se,b as Te}from"./chunk-IDUR6OTC.js";import{a as Pe}from"./chunk-4LXGDACG.js";import{a as Ue,b as Ve,c as We}from"./chunk-JF2IPHMR.js";import{a as Wr,b as Xr,c as Yr,d as Zr,e as _r,f as $r,g as oe}from"./chunk-B6SHQPJP.js";import{a as re}from"./chunk-S6JAAVCK.js";import{a as ee,b as fe,c as me,d as pe,e as te,f as xe,g as ae,h as be,i as ce,j as de,k as ge,l as he,m as ie,n as je,o as ke,p as le}from"./chunk-PSJENEZT.js";import{a as ne,b as qe,c as se,d as ue,e as ve,f as we}from"./chunk-2L2JOHZX.js";import{a as ye}from"./chunk-5WJRJGUS.js";import{a as ze,b as Ae,c as Be,d as Ce,e as De,f as Ee,g as Fe}from"./chunk-DQYZFLAN.js";import{a as Ge}from"./chunk-5ZLLY3TV.js";import{a as e}from"./chunk-B3N66CDR.js";import"./chunk-C46H5E6H.js";import{a as yr,b as zr,c as Ar,d as Br,e as Cr,f as Dr,g as Er,h as Fr,i as Gr}from"./chunk-HO75YBHT.js";import{a as Hr}from"./chunk-JTU2KPJV.js";import{a as Jr,b as Kr,c as Lr,d as Mr,e as Nr,f as Or,g as Pr,h as Qr}from"./chunk-SS3SK3YG.js";import{a as Ir}from"./chunk-H6BT6PGA.js";import{a as Rr}from"./chunk-MEM2VQOF.js";import{a as Sr,b as Tr,c as Ur,d as Vr}from"./chunk-PAG3B6YB.js";import{a as ao,b as bo}from"./chunk-L7HMJMCP.js";import{a as po}from"./chunk-B6QFTT55.js";import{a as co}from"./chunk-XBWLMOFD.js";import{a as go,b as ho,c as io}from"./chunk-UOKR5A44.js";import{a as yo,b as zo,c as Ao,d as Bo,e as Co,f as Do,g as Eo,h as Fo,i as Go,j as Ho}from"./chunk-PFJKZSJ6.js";import{a as jo,b as ko,c as lo,d as no,e as qo,f as so,g as uo,h as vo,i as wo}from"./chunk-5NHYXWLY.js";import{a as Io}from"./chunk-ZW5FER3Z.js";import{a as Jo,b as Ko,c as Lo,d as Mo,e as No,f as Oo,g as Po,h as Qo,i as Ro,j as So,k as To,l as Uo,m as Vo,n as Wo,o as Xo}from"./chunk-ESTQ3TW2.js";import{a as ur,b as vr,c as wr}from"./chunk-AWEJTVM3.js";import{a as dr,b as gr,c as hr,d as ir,e as jr,f as kr,g as lr,h as nr,i as qr,j as sr}from"./chunk-4MEKIJBX.js";import{a as Yo,b as Zo,c as _o,d as $o,e as or,f as rr,g as er,h as fr,i as mr,j as pr,k as tr,l as xr,m as ar,n as br,o as cr}from"./chunk-7AU7CPUH.js";import{a as C}from"./chunk-36U4Q3SK.js";import{a as D,b as E,c as F,d as G,e as H,f as I,g as J}from"./chunk-J5GEUQC3.js";import{a as M,b as N,c as O}from"./chunk-JNSAIWYA.js";import{a as P,b as Q,c as R,d as S,e as T,f as U}from"./chunk-MKML3QHO.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _}from"./chunk-PHNUQKIK.js";import{a as L}from"./chunk-MS6HNR34.js";import{a as K}from"./chunk-QOOHNPY5.js";import{a as $,b as oo,c as ro,d as eo,e as fo,f as mo}from"./chunk-PCE3WY5B.js";import{a as to,b as xo}from"./chunk-VPPKOHWH.js";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-RZRUQ2YQ.js";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s,j as u}from"./chunk-IHEIUFFB.js";import{a as r}from"./chunk-2LKWUAEG.js";import{a as b,b as c,c as d}from"./chunk-3SGIRTMN.js";import{a as v}from"./chunk-34KHJIHB.js";import{a as w,b as y,c as z}from"./chunk-RN4E5CZJ.js";import{a as o}from"./chunk-VPYH6JWS.js";import{a as A}from"./chunk-PCEPHQF4.js";import{a as B}from"./chunk-WDWMIB3K.js";export{m as Accordion,a as AccordionContent,t as AccordionIcon,p as AccordionItem,x as AccordionTrigger,b as Alert,d as AlertDescription,g as AlertDialog,s as AlertDialogAction,k as AlertDialogBody,u as AlertDialogCancel,i as AlertDialogContent,q as AlertDialogDescription,l as AlertDialogFooter,j as AlertDialogHeader,n as AlertDialogTitle,h as AlertDialogTrigger,c as AlertTitle,v as AspectRatio,w as Avatar,z as AvatarFallback,y as AvatarImage,A as Badge,B as Blockquote,C as Box,D as Breadcrumb,J as BreadcrumbEllipsis,F as BreadcrumbItem,G as BreadcrumbLink,E as BreadcrumbList,H as BreadcrumbPage,I as BreadcrumbSeparator,L as Button,M as Calendar,O as CalendarLabel,N as CalendarRangeLabel,P as Card,T as CardContent,S as CardDescription,U as CardFooter,Q as CardHeader,R as CardTitle,W as Carousel,X as CarouselContent,Y as CarouselItem,_ as CarouselNext,Z as CarouselPrevious,$ as ChartContainer,fo as ChartLegend,mo as ChartLegendContent,oo as ChartStyle,ro as ChartTooltip,eo as ChartTooltipContent,po as Checkbox,to as CheckboxCards,xo as CheckboxCardsItem,ao as CheckboxGroup,bo as CheckboxGroupItem,co as Code,go as Collapsible,io as CollapsibleContent,ho as CollapsibleTrigger,yo as Command,zo as CommandDialog,Co as CommandEmpty,Do as CommandGroup,Ao as CommandInput,Fo as CommandItem,Bo as CommandList,Go as CommandLoading,Eo as CommandSeparator,Ho as CommandShortcut,Io as Container,Jo as ContextMenu,Xo as ContextMenuArrow,So as ContextMenuCheckboxItem,Qo as ContextMenuContent,Lo as ContextMenuGroup,Ro as ContextMenuItem,Uo as ContextMenuLabel,No as ContextMenuRadioGroup,To as ContextMenuRadioItem,Vo as ContextMenuSeparator,Wo as ContextMenuShortcut,Mo as ContextMenuSub,Po as ContextMenuSubContent,Oo as ContextMenuSubTrigger,Ko as ContextMenuTrigger,wr as DataTableColumnHeader,vr as DataTablePagination,ur as DataTableViewOptions,jo as Dialog,qo as DialogBody,wo as DialogClose,lo as DialogContent,vo as DialogDescription,so as DialogFooter,no as DialogHeader,uo as DialogTitle,ko as DialogTrigger,yr as Drawer,Cr as DrawerBody,Gr as DrawerClose,Ar as DrawerContent,Fr as DrawerDescription,Dr as DrawerFooter,Br as DrawerHeader,Er as DrawerTitle,zr as DrawerTrigger,Yo as DropdownMenu,cr as DropdownMenuArrow,pr as DropdownMenuCheckboxItem,fr as DropdownMenuContent,_o as DropdownMenuGroup,mr as DropdownMenuItem,xr as DropdownMenuLabel,or as DropdownMenuRadioGroup,tr as DropdownMenuRadioItem,ar as DropdownMenuSeparator,br as DropdownMenuShortcut,$o as DropdownMenuSub,er as DropdownMenuSubContent,rr as DropdownMenuSubTrigger,Zo as DropdownMenuTrigger,Hr as Em,Jr as Form,Or as FormControl,Pr as FormDescription,Lr as FormField,Mr as FormItem,Nr as FormLabel,Qr as FormMessage,Rr as Heading,Sr as HoverCard,Vr as HoverCardArrow,Ur as HoverCardContent,Tr as HoverCardTrigger,Zr as InputOTP,_r as InputOTPGroup,oe as InputOTPSeparator,$r as InputOTPSlot,re as Kbd,Ir as Label,te as Menubar,le as MenubarArrow,ge as MenubarCheckboxItem,ce as MenubarContent,fe as MenubarGroup,de as MenubarItem,ie as MenubarLabel,ee as MenubarMenu,pe as MenubarRadioGroup,he as MenubarRadioItem,je as MenubarSeparator,ke as MenubarShortcut,me as MenubarSub,be as MenubarSubContent,ae as MenubarSubTrigger,xe as MenubarTrigger,ne as NavigationMenu,ve as NavigationMenuContent,se as NavigationMenuItem,we as NavigationMenuLink,qe as NavigationMenuList,ue as NavigationMenuTrigger,ye as NumberInput,ze as Pagination,Ae as PaginationContent,Fe as PaginationEllipsis,Be as PaginationItem,Ce as PaginationLink,Ee as PaginationNext,De as PaginationPrevious,Ge as PasswordInput,He as Popover,Je as PopoverAnchor,Le as PopoverArrow,Ke as PopoverContent,Ie as PopoverTrigger,Me as Pre,Ne as Progress,Oe as Quote,Wr as REGEXP_ONLY_CHARS,Xr as REGEXP_ONLY_DIGITS,Yr as REGEXP_ONLY_DIGITS_AND_CHARS,Pe as Radio,Qe as RadioCards,Re as RadioCardsItem,Se as RadioGroup,Te as RadioGroupItem,We as ResizableHandle,Ve as ResizablePanel,Ue as ResizablePanelGroup,Xe as ScrollArea,Ye as ScrollAreaScrollbar,Ze as SearchInput,_e as Section,dr as Select,lr as SelectContent,gr as SelectGroup,qr as SelectItem,nr as SelectLabel,kr as SelectScrollDownButton,jr as SelectScrollUpButton,sr as SelectSeparator,ir as SelectTrigger,hr as SelectValue,$e as Separator,of as SeparatorItem,rf as Sheet,pf as SheetBody,bf as SheetClose,ff as SheetContent,af as SheetDescription,tf as SheetFooter,mf as SheetHeader,xf as SheetTitle,ef as SheetTrigger,cf as Skeleton,df as Slider,K as Spinner,jf as Strong,kf as Switch,lf as Table,qf as TableBody,yf as TableCaption,wf as TableCell,sf as TableFooter,vf as TableHead,nf as TableHeader,uf as TableRow,zf as Tabs,Cf as TabsContent,Af as TabsList,Bf as TabsTrigger,Df as Text,Ef as TextInput,Ff as Textarea,hf as Toaster,Gf as Toggle,Hf as ToggleGroup,If as ToggleGroupItem,Kf as Tooltip,Nf as TooltipArrow,Mf as TooltipContent,Jf as TooltipProvider,Lf as TooltipTrigger,r as buttonVariants,o as cn,V as createCarouselScope,Kr as createFormFieldScope,e as inputVariants,gf as toast,f as toggleVariants};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/codefastlabs/codefast/issues"
|
|
6
6
|
},
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"tailwind-merge": "^2.5.3",
|
|
76
76
|
"tailwind-variants": "^0.2.1",
|
|
77
77
|
"vaul": "^1.0.0",
|
|
78
|
-
"@codefast-ui/checkbox-group": "0.1.
|
|
79
|
-
"@codefast-ui/input": "0.1.
|
|
80
|
-
"@codefast-ui/number-input": "0.1.
|
|
78
|
+
"@codefast-ui/checkbox-group": "0.1.38",
|
|
79
|
+
"@codefast-ui/input": "0.1.38",
|
|
80
|
+
"@codefast-ui/number-input": "0.1.38"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@types/node": "^20.16.11",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"tailwindcss": "^3.4.13",
|
|
87
87
|
"tsup": "^8.3.0",
|
|
88
88
|
"typescript": "^5.6.3",
|
|
89
|
-
"@codefast/config-tailwind": "0.1.
|
|
90
|
-
"@codefast/config-typescript": "0.1.
|
|
91
|
-
"@codefast/eslint-config": "0.1.
|
|
89
|
+
"@codefast/config-tailwind": "0.1.38",
|
|
90
|
+
"@codefast/config-typescript": "0.1.38",
|
|
91
|
+
"@codefast/eslint-config": "0.1.38"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@tanstack/react-table": "^8",
|
package/dist/chunk-4LQA6RGQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-4LQA6RGQ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/chunk-CFQPQ5FI.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";//# sourceMappingURL=chunk-CFQPQ5FI.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CFQPQ5FI.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CFQPQ5FI.cjs"}
|