@gears-frontx/ui-kit 0.4.0-alpha.1 → 0.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert.js +11 -11
- package/dist/attachment.js +45 -37
- package/dist/attachment.js.map +1 -1
- package/dist/avatar.js +39 -39
- package/dist/badge.js +15 -15
- package/dist/bubble.js +40 -39
- package/dist/bubble.js.map +1 -1
- package/dist/button.js +28 -28
- package/dist/chunks/alert.C5BedF7l.css +1 -0
- package/dist/chunks/attachment.GAZbWSyB.css +1 -0
- package/dist/chunks/avatar.DZUXl1ev.css +1 -0
- package/dist/chunks/badge.Bi22h20j.css +1 -0
- package/dist/chunks/bubble.DvN6QyQ1.css +1 -0
- package/dist/chunks/button.DvAxXxKj.css +1 -0
- package/dist/chunks/context-menu.DwGCD0vN.css +1 -0
- package/dist/chunks/data-table.CtZdVSAU.css +1 -0
- package/dist/chunks/dropdown-menu.C5TLD9JO.css +1 -0
- package/dist/chunks/empty.BlhsHrOz.css +1 -0
- package/dist/chunks/field.Ccqt897k.css +1 -0
- package/dist/chunks/item.BkcgydVc.css +1 -0
- package/dist/chunks/native-select.DF1QrNz4.css +1 -0
- package/dist/chunks/questionnaire.D-u_K3Co.css +1 -0
- package/dist/chunks/table.BpnQ6j85.css +1 -0
- package/dist/chunks/tabs.4MEFBvw-.css +1 -0
- package/dist/chunks/toast.uUtCEAiv.css +1 -0
- package/dist/components/attachment/attachment.d.ts.map +1 -1
- package/dist/components/bubble/bubble.d.ts.map +1 -1
- package/dist/components/marker/marker.d.ts.map +1 -1
- package/dist/context-menu.js +62 -62
- package/dist/data-table.js +26 -26
- package/dist/docs/badge.md +7 -8
- package/dist/docs/questionnaire.md +4 -4
- package/dist/docs/sidebar.md +2 -2
- package/dist/dropdown-menu.js +65 -65
- package/dist/empty.js +18 -18
- package/dist/field.js +10 -10
- package/dist/item.js +20 -20
- package/dist/marker.js +26 -25
- package/dist/marker.js.map +1 -1
- package/dist/native-select.js +21 -20
- package/dist/native-select.js.map +1 -1
- package/dist/questionnaire.js +77 -77
- package/dist/table.js +23 -23
- package/dist/tabs.js +17 -17
- package/dist/theme.css +359 -242
- package/dist/toast.js +50 -50
- package/package.json +1 -1
- package/dist/chunks/alert.BJLRcB65.css +0 -1
- package/dist/chunks/attachment.rknKEWlr.css +0 -1
- package/dist/chunks/avatar.CsQmQnay.css +0 -1
- package/dist/chunks/badge.DR0epAiZ.css +0 -1
- package/dist/chunks/bubble.BKcAopT7.css +0 -1
- package/dist/chunks/button.D69BdJF1.css +0 -1
- package/dist/chunks/context-menu.Bjib7_AL.css +0 -1
- package/dist/chunks/data-table.DECm3qI-.css +0 -1
- package/dist/chunks/dropdown-menu.CDaeWYDT.css +0 -1
- package/dist/chunks/empty.B334jSES.css +0 -1
- package/dist/chunks/field.yTrg1G90.css +0 -1
- package/dist/chunks/item.CLg1KaYF.css +0 -1
- package/dist/chunks/native-select.BdYLTCZv.css +0 -1
- package/dist/chunks/questionnaire.DYnuWKAQ.css +0 -1
- package/dist/chunks/table.CFAJfhd-.css +0 -1
- package/dist/chunks/tabs.C4jGj2Vg.css +0 -1
- package/dist/chunks/toast.DMUpK07T.css +0 -1
package/dist/marker.js
CHANGED
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { mergeProps as
|
|
4
|
-
import { useRender as
|
|
5
|
-
import { cx as
|
|
6
|
-
import './chunks/marker.DDxI_rZn.css';const
|
|
7
|
-
marker:
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { mergeProps as m } from "@base-ui/react/merge-props";
|
|
4
|
+
import { useRender as c } from "@base-ui/react/use-render";
|
|
5
|
+
import { cx as o, cva as d } from "class-variance-authority";
|
|
6
|
+
import './chunks/marker.DDxI_rZn.css';const v = "_marker_1dbba_11", u = "_variantDefault_1dbba_48", _ = "_variantBorder_1dbba_53", f = "_variantSeparator_1dbba_61", k = "_markerIcon_1dbba_78", l = "_markerContent_1dbba_91", a = {
|
|
7
|
+
marker: v,
|
|
8
8
|
variantDefault: u,
|
|
9
9
|
variantBorder: _,
|
|
10
|
-
variantSeparator:
|
|
11
|
-
markerIcon:
|
|
12
|
-
markerContent:
|
|
13
|
-
}, p =
|
|
10
|
+
variantSeparator: f,
|
|
11
|
+
markerIcon: k,
|
|
12
|
+
markerContent: l
|
|
13
|
+
}, p = d(a.marker, {
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
16
|
-
default:
|
|
17
|
-
separator:
|
|
18
|
-
border:
|
|
16
|
+
default: a.variantDefault,
|
|
17
|
+
separator: a.variantSeparator,
|
|
18
|
+
border: a.variantBorder
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: {
|
|
22
22
|
variant: "default"
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function D({ className: r, variant: t, render: i, ...s }) {
|
|
26
|
+
const e = t ?? "default";
|
|
27
|
+
return c({
|
|
27
28
|
defaultTagName: "div",
|
|
28
|
-
render:
|
|
29
|
+
render: i,
|
|
29
30
|
// `data-variant` is layered on AFTER mergeProps, not passed through it:
|
|
30
31
|
// mergeProps types its own object literal as the closed DOM attribute
|
|
31
32
|
// set for the tag, which rejects a `data-*` key — the same
|
|
32
33
|
// shadow-proofing needed anywhere a `data-*` prop must survive
|
|
33
34
|
// mergeProps.
|
|
34
35
|
props: {
|
|
35
|
-
...
|
|
36
|
-
"data-variant":
|
|
36
|
+
...m({ className: p({ variant: e, className: r }) }, s),
|
|
37
|
+
"data-variant": e
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
function N({ className: r, ...t }) {
|
|
42
|
+
return /* @__PURE__ */ n("span", { "aria-hidden": "true", className: o(a.markerIcon, r), ...t });
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return /* @__PURE__ */
|
|
44
|
+
function S({ className: r, ...t }) {
|
|
45
|
+
return /* @__PURE__ */ n("span", { className: o(a.markerContent, r), ...t });
|
|
45
46
|
}
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
D as Marker,
|
|
49
|
+
S as MarkerContent,
|
|
50
|
+
N as MarkerIcon,
|
|
50
51
|
p as markerVariants
|
|
51
52
|
};
|
|
52
53
|
//# sourceMappingURL=marker.js.map
|
package/dist/marker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker.js","sources":["../src/components/marker/marker.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './marker.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Marker\n * (registry/bases/base/ui/marker.tsx): an inline conversation marker for\n * status updates, system notes, bordered rows, and labeled separators.\n * Marker has no Base UI primitive, but gets `render`-prop polymorphism\n * from `useRender`/`mergeProps` — the same utilities Base UI's own\n * primitives are built on, and the same pattern Badge uses — for turning a\n * marker into a link or button.\n *\n * Pairs with the `shimmer` utility (src/styles/utilities.css, this\n * package's global CSS alongside theme.css — see that file's own header)\n * for a streaming-text effect: add the `shimmer` class to `MarkerContent`\n * directly, same as upstream (see marker.md's \"Shimmer\" section). Marker\n * does not apply it automatically — unlike Attachment's title\n * (attachment.tsx), which reacts to an upload `state` axis Marker has no\n * equivalent of.\n */\nconst markerVariants = cva(styles.marker, {\n variants: {\n variant: {\n default: styles.variantDefault,\n separator: styles.variantSeparator,\n border: styles.variantBorder,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface MarkerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof markerVariants> {}\n\nexport function Marker({ className, variant
|
|
1
|
+
{"version":3,"file":"marker.js","sources":["../src/components/marker/marker.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './marker.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Marker\n * (registry/bases/base/ui/marker.tsx): an inline conversation marker for\n * status updates, system notes, bordered rows, and labeled separators.\n * Marker has no Base UI primitive, but gets `render`-prop polymorphism\n * from `useRender`/`mergeProps` — the same utilities Base UI's own\n * primitives are built on, and the same pattern Badge uses — for turning a\n * marker into a link or button.\n *\n * Pairs with the `shimmer` utility (src/styles/utilities.css, this\n * package's global CSS alongside theme.css — see that file's own header)\n * for a streaming-text effect: add the `shimmer` class to `MarkerContent`\n * directly, same as upstream (see marker.md's \"Shimmer\" section). Marker\n * does not apply it automatically — unlike Attachment's title\n * (attachment.tsx), which reacts to an upload `state` axis Marker has no\n * equivalent of.\n */\nconst markerVariants = cva(styles.marker, {\n variants: {\n variant: {\n default: styles.variantDefault,\n separator: styles.variantSeparator,\n border: styles.variantBorder,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface MarkerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof markerVariants> {}\n\nexport function Marker({ className, variant, render, ...props }: MarkerProps) {\n // cva's own VariantProps types this `| null` (a consumer can pass\n // `variant={null}` to explicitly reset to the default), which a default\n // parameter value alone doesn't absorb — only `undefined` does. cva reads\n // that null as \"emit no variant class at all\" while `data-variant` would\n // still be dropped by React, so the marker would come out with neither the\n // default class nor the attribute. Resolved once here, same as item.tsx,\n // so class and attribute always agree.\n const resolvedVariant = variant ?? 'default';\n return useRender({\n defaultTagName: 'div',\n render,\n // `data-variant` is layered on AFTER mergeProps, not passed through it:\n // mergeProps types its own object literal as the closed DOM attribute\n // set for the tag, which rejects a `data-*` key — the same\n // shadow-proofing needed anywhere a `data-*` prop must survive\n // mergeProps.\n props: {\n ...mergeProps<'div'>({ className: markerVariants({ variant: resolvedVariant, className }) }, props),\n 'data-variant': resolvedVariant,\n },\n });\n}\n\nexport { markerVariants };\n\nexport type MarkerIconProps = ComponentProps<'span'>;\n\n/** A decorative icon slot, hidden from assistive tech. For an icon-only\n * marker, give `Marker` itself an `aria-label` or visible text — an\n * icon alone announces as empty. */\nexport function MarkerIcon({ className, ...props }: MarkerIconProps) {\n return <span aria-hidden=\"true\" className={cx(styles.markerIcon, className)} {...props} />;\n}\n\nexport type MarkerContentProps = ComponentProps<'span'>;\n\n/** The marker's text content. */\nexport function MarkerContent({ className, ...props }: MarkerContentProps) {\n return <span className={cx(styles.markerContent, className)} {...props} />;\n}\n"],"names":["markerVariants","cva","styles","Marker","className","variant","render","props","resolvedVariant","useRender","mergeProps","MarkerIcon","jsx","cx","MarkerContent"],"mappings":";;;;;;;;;;;;GA0BMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,QAAQA,EAAO;AAAA,IAAA;AAAA,EACjB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAIM,SAASC,EAAO,EAAE,WAAAC,GAAW,SAAAC,GAAS,QAAAC,GAAQ,GAAGC,KAAsB;AAQ5E,QAAMC,IAAkBH,KAAW;AACnC,SAAOI,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAO;AAAA,MACL,GAAGI,EAAkB,EAAE,WAAWV,EAAe,EAAE,SAASQ,GAAiB,WAAAJ,EAAA,CAAW,EAAA,GAAKG,CAAK;AAAA,MAClG,gBAAgBC;AAAA,IAAA;AAAA,EAClB,CACD;AACH;AASO,SAASG,EAAW,EAAE,WAAAP,GAAW,GAAGG,KAA0B;AACnE,SAAO,gBAAAK,EAAC,QAAA,EAAK,eAAY,QAAO,WAAWC,EAAGX,EAAO,YAAYE,CAAS,GAAI,GAAGG,EAAA,CAAO;AAC1F;AAKO,SAASO,EAAc,EAAE,WAAAV,GAAW,GAAGG,KAA6B;AACzE,SAAO,gBAAAK,EAAC,UAAK,WAAWC,EAAGX,EAAO,eAAeE,CAAS,GAAI,GAAGG,GAAO;AAC1E;"}
|
package/dist/native-select.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { cx as
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import './chunks/native-select.
|
|
2
|
+
import { cx as c } from "class-variance-authority";
|
|
3
|
+
import { ChevronDownIcon as i } from "lucide-react";
|
|
4
|
+
import './chunks/native-select.DF1QrNz4.css';const a = "_wrapper_1yxg6_12", _ = "_select_1yxg6_45", l = "_sizeSm_1yxg6_102", m = "_option_1yxg6_119", u = "_optgroup_1yxg6_130", g = "_icon_1yxg6_135", o = {
|
|
5
5
|
wrapper: a,
|
|
6
|
-
select:
|
|
7
|
-
sizeSm:
|
|
8
|
-
option:
|
|
9
|
-
|
|
6
|
+
select: _,
|
|
7
|
+
sizeSm: l,
|
|
8
|
+
option: m,
|
|
9
|
+
optgroup: u,
|
|
10
|
+
icon: g
|
|
10
11
|
};
|
|
11
|
-
function
|
|
12
|
+
function y({ className: t, size: e = "default", disabled: n, ...p }) {
|
|
12
13
|
return /* @__PURE__ */ r(
|
|
13
14
|
"div",
|
|
14
15
|
{
|
|
15
|
-
className:
|
|
16
|
-
"data-disabled":
|
|
16
|
+
className: c(o.wrapper, e === "sm" && o.sizeSm, t),
|
|
17
|
+
"data-disabled": n || void 0,
|
|
17
18
|
children: [
|
|
18
19
|
/* @__PURE__ */ s(
|
|
19
20
|
"select",
|
|
20
21
|
{
|
|
21
|
-
className:
|
|
22
|
-
disabled:
|
|
23
|
-
...
|
|
22
|
+
className: o.select,
|
|
23
|
+
disabled: n,
|
|
24
|
+
...p
|
|
24
25
|
}
|
|
25
26
|
),
|
|
26
|
-
/* @__PURE__ */ s(
|
|
27
|
+
/* @__PURE__ */ s(i, { className: o.icon })
|
|
27
28
|
]
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
31
|
}
|
|
31
|
-
function S({ className:
|
|
32
|
-
return /* @__PURE__ */ s("option", { className:
|
|
32
|
+
function S({ className: t, ...e }) {
|
|
33
|
+
return /* @__PURE__ */ s("option", { className: c(o.option, t), ...e });
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
return /* @__PURE__ */ s("optgroup", { className:
|
|
35
|
+
function v({ className: t, ...e }) {
|
|
36
|
+
return /* @__PURE__ */ s("optgroup", { className: c(o.optgroup, t), ...e });
|
|
36
37
|
}
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
y as NativeSelect,
|
|
40
|
+
v as NativeSelectOptGroup,
|
|
40
41
|
S as NativeSelectOption
|
|
41
42
|
};
|
|
42
43
|
//# sourceMappingURL=native-select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-select.js","sources":["../src/components/native-select/native-select.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { ChevronDownIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport styles from './native-select.module.css';\n\n/*\n * NativeSelect wraps a real <select> — the source-of-truth control\n * (Base UI ships no NativeSelect primitive; this is the same \"pure styling\n * translation over native markup\" shape as table.tsx, not a Base UI\n * wrapper). The wrapper div exists only because a <select> is a replaced\n * element with no ::before/::after to draw a chevron into — same reasoning\n * as Input's icon/end slots (input.tsx), forced here unconditionally since\n * a select without its dropdown indicator reads as broken, not as a valid\n * \"no slot\" state the way an unslotted Input does.\n */\nexport interface NativeSelectProps extends Omit<ComponentProps<'select'>, 'className' | 'size'> {\n className?: string;\n /** Matches the kit's two-step control scale used elsewhere for compact\n * chrome (Table's `density`, Select's `size`) — `lg` is not offered here,\n * mirroring upstream's own sm/default axis. */\n size?: 'sm' | 'default';\n}\n\nexport function NativeSelect({ className, size = 'default', disabled, ...props }: NativeSelectProps) {\n return (\n <div\n className={cx(styles.wrapper, size === 'sm' && styles.sizeSm, className)}\n data-disabled={disabled || undefined}\n >\n <select\n className={styles.select}\n disabled={disabled}\n {...props}\n />\n <ChevronDownIcon className={styles.icon} />\n </div>\n );\n}\n\nexport type NativeSelectOptionProps = ComponentProps<'option'>;\n\nexport function NativeSelectOption({ className, ...props }: NativeSelectOptionProps) {\n return <option className={cx(styles.option, className)} {...props} />;\n}\n\nexport type NativeSelectOptGroupProps = ComponentProps<'optgroup'>;\n\nexport function NativeSelectOptGroup({ className, ...props }: NativeSelectOptGroupProps) {\n return <optgroup className={cx(styles.
|
|
1
|
+
{"version":3,"file":"native-select.js","sources":["../src/components/native-select/native-select.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { ChevronDownIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport styles from './native-select.module.css';\n\n/*\n * NativeSelect wraps a real <select> — the source-of-truth control\n * (Base UI ships no NativeSelect primitive; this is the same \"pure styling\n * translation over native markup\" shape as table.tsx, not a Base UI\n * wrapper). The wrapper div exists only because a <select> is a replaced\n * element with no ::before/::after to draw a chevron into — same reasoning\n * as Input's icon/end slots (input.tsx), forced here unconditionally since\n * a select without its dropdown indicator reads as broken, not as a valid\n * \"no slot\" state the way an unslotted Input does.\n */\nexport interface NativeSelectProps extends Omit<ComponentProps<'select'>, 'className' | 'size'> {\n className?: string;\n /** Matches the kit's two-step control scale used elsewhere for compact\n * chrome (Table's `density`, Select's `size`) — `lg` is not offered here,\n * mirroring upstream's own sm/default axis. */\n size?: 'sm' | 'default';\n}\n\nexport function NativeSelect({ className, size = 'default', disabled, ...props }: NativeSelectProps) {\n return (\n <div\n className={cx(styles.wrapper, size === 'sm' && styles.sizeSm, className)}\n data-disabled={disabled || undefined}\n >\n <select\n className={styles.select}\n disabled={disabled}\n {...props}\n />\n <ChevronDownIcon className={styles.icon} />\n </div>\n );\n}\n\nexport type NativeSelectOptionProps = ComponentProps<'option'>;\n\nexport function NativeSelectOption({ className, ...props }: NativeSelectOptionProps) {\n return <option className={cx(styles.option, className)} {...props} />;\n}\n\nexport type NativeSelectOptGroupProps = ComponentProps<'optgroup'>;\n\nexport function NativeSelectOptGroup({ className, ...props }: NativeSelectOptGroupProps) {\n return <optgroup className={cx(styles.optgroup, className)} {...props} />;\n}\n"],"names":["NativeSelect","className","size","disabled","props","jsxs","cx","styles","jsx","ChevronDownIcon","NativeSelectOption","NativeSelectOptGroup"],"mappings":";;;;;;;;;;;AAwBO,SAASA,EAAa,EAAE,WAAAC,GAAW,MAAAC,IAAO,WAAW,UAAAC,GAAU,GAAGC,KAA4B;AACnG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,SAASL,MAAS,QAAQK,EAAO,QAAQN,CAAS;AAAA,MACvE,iBAAeE,KAAY;AAAA,MAE3B,UAAA;AAAA,QAAA,gBAAAK;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD,EAAO;AAAA,YAClB,UAAAJ;AAAA,YACC,GAAGC;AAAA,UAAA;AAAA,QAAA;AAAA,QAEN,gBAAAI,EAACC,GAAA,EAAgB,WAAWF,EAAO,KAAA,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG/C;AAIO,SAASG,EAAmB,EAAE,WAAAT,GAAW,GAAGG,KAAkC;AACnF,SAAO,gBAAAI,EAAC,YAAO,WAAWF,EAAGC,EAAO,QAAQN,CAAS,GAAI,GAAGG,GAAO;AACrE;AAIO,SAASO,EAAqB,EAAE,WAAAV,GAAW,GAAGG,KAAoC;AACvF,SAAO,gBAAAI,EAAC,cAAS,WAAWF,EAAGC,EAAO,UAAUN,CAAS,GAAI,GAAGG,GAAO;AACzE;"}
|
package/dist/questionnaire.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Questionnaire as c } from "@shadcn/react/questionnaire";
|
|
3
3
|
import { cx as n } from "class-variance-authority";
|
|
4
|
-
import { CheckIcon as
|
|
4
|
+
import { CheckIcon as _ } from "lucide-react";
|
|
5
5
|
import { Button as a } from "./button.js";
|
|
6
6
|
import { Input as h } from "./input.js";
|
|
7
|
-
import './chunks/questionnaire.
|
|
7
|
+
import './chunks/questionnaire.D-u_K3Co.css';const m = "_item_1iulu_15", p = "_previous_1iulu_21", f = "_skip_1iulu_22", d = "_next_1iulu_23", N = "_submit_1iulu_24", Q = "_root_1iulu_28", b = "_progress_1iulu_36", C = "_title_1iulu_61", I = "_description_1iulu_73", k = "_choices_1iulu_87", x = "_choice_1iulu_87", v = "_choiceInput_1iulu_95", D = "_indicator_1iulu_225", g = "_dot_1iulu_278", L = "_check_1iulu_291", S = "_choiceLabel_1iulu_127", P = "_choiceDescription_1iulu_315", j = "_shortcut_1iulu_242", E = "_error_1iulu_357", T = "_actions_1iulu_372", o = {
|
|
8
8
|
item: m,
|
|
9
9
|
previous: p,
|
|
10
|
-
skip:
|
|
10
|
+
skip: f,
|
|
11
11
|
next: d,
|
|
12
|
-
submit:
|
|
13
|
-
root:
|
|
14
|
-
progress:
|
|
15
|
-
title:
|
|
16
|
-
description:
|
|
17
|
-
choices:
|
|
18
|
-
choice:
|
|
19
|
-
choiceInput:
|
|
20
|
-
indicator:
|
|
21
|
-
dot:
|
|
12
|
+
submit: N,
|
|
13
|
+
root: Q,
|
|
14
|
+
progress: b,
|
|
15
|
+
title: C,
|
|
16
|
+
description: I,
|
|
17
|
+
choices: k,
|
|
18
|
+
choice: x,
|
|
19
|
+
choiceInput: v,
|
|
20
|
+
indicator: D,
|
|
21
|
+
dot: g,
|
|
22
22
|
check: L,
|
|
23
23
|
choiceLabel: S,
|
|
24
24
|
choiceDescription: P,
|
|
@@ -26,105 +26,105 @@ import './chunks/questionnaire.DYnuWKAQ.css';const m = "_item_1giif_15", p = "_p
|
|
|
26
26
|
error: E,
|
|
27
27
|
actions: T
|
|
28
28
|
};
|
|
29
|
-
function G({ className:
|
|
30
|
-
return /* @__PURE__ */ t(c.Root, { className: n(o.root,
|
|
29
|
+
function G({ className: e, ...i }) {
|
|
30
|
+
return /* @__PURE__ */ t(c.Root, { className: n(o.root, e), ...i });
|
|
31
31
|
}
|
|
32
|
-
function H({ className:
|
|
33
|
-
return /* @__PURE__ */ t(c.Progress, { className: n(o.progress,
|
|
32
|
+
function H({ className: e, ...i }) {
|
|
33
|
+
return /* @__PURE__ */ t(c.Progress, { className: n(o.progress, e), ...i });
|
|
34
34
|
}
|
|
35
|
-
function J({ className:
|
|
36
|
-
return /* @__PURE__ */ t(c.Item, { className: n(o.item,
|
|
35
|
+
function J({ className: e, ...i }) {
|
|
36
|
+
return /* @__PURE__ */ t(c.Item, { className: n(o.item, e), ...i });
|
|
37
37
|
}
|
|
38
|
-
function K({ className:
|
|
39
|
-
return /* @__PURE__ */ t(c.Title, { className: n(o.title,
|
|
38
|
+
function K({ className: e, ...i }) {
|
|
39
|
+
return /* @__PURE__ */ t(c.Title, { className: n(o.title, e), ...i });
|
|
40
40
|
}
|
|
41
41
|
function M({
|
|
42
|
-
className:
|
|
43
|
-
...
|
|
42
|
+
className: e,
|
|
43
|
+
...i
|
|
44
44
|
}) {
|
|
45
45
|
return /* @__PURE__ */ t(
|
|
46
46
|
c.Description,
|
|
47
47
|
{
|
|
48
|
-
className: n(o.description,
|
|
49
|
-
...
|
|
48
|
+
className: n(o.description, e),
|
|
49
|
+
...i
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
function O({ className:
|
|
54
|
-
return /* @__PURE__ */ t(c.Choices, { className: n(o.choices,
|
|
53
|
+
function O({ className: e, ...i }) {
|
|
54
|
+
return /* @__PURE__ */ t(c.Choices, { className: n(o.choices, e), ...i });
|
|
55
55
|
}
|
|
56
56
|
function y({
|
|
57
|
-
className:
|
|
58
|
-
...
|
|
57
|
+
className: e,
|
|
58
|
+
...i
|
|
59
59
|
}) {
|
|
60
60
|
return /* @__PURE__ */ t(
|
|
61
61
|
c.ChoiceInput,
|
|
62
62
|
{
|
|
63
|
-
className: n(o.choiceInput,
|
|
64
|
-
...
|
|
63
|
+
className: n(o.choiceInput, e),
|
|
64
|
+
...i
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
function A({
|
|
69
|
-
className:
|
|
70
|
-
...
|
|
69
|
+
className: e,
|
|
70
|
+
...i
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ t(
|
|
73
73
|
c.ChoiceLabel,
|
|
74
74
|
{
|
|
75
|
-
className: n(o.choiceLabel,
|
|
76
|
-
...
|
|
75
|
+
className: n(o.choiceLabel, e),
|
|
76
|
+
...i
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
function B({
|
|
81
|
-
className:
|
|
82
|
-
...
|
|
81
|
+
className: e,
|
|
82
|
+
...i
|
|
83
83
|
}) {
|
|
84
84
|
return /* @__PURE__ */ t(
|
|
85
85
|
c.ChoiceShortcut,
|
|
86
86
|
{
|
|
87
|
-
className: n(o.shortcut,
|
|
88
|
-
...
|
|
87
|
+
className: n(o.shortcut, e),
|
|
88
|
+
...i
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
function U({ className:
|
|
93
|
-
return /* @__PURE__ */
|
|
92
|
+
function U({ className: e, children: i, ...r }) {
|
|
93
|
+
return /* @__PURE__ */ l(c.Choice, { className: n(o.choice, e), ...r, children: [
|
|
94
94
|
/* @__PURE__ */ t(y, {}),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ l("span", { "aria-hidden": "true", className: o.indicator, children: [
|
|
96
96
|
/* @__PURE__ */ t("span", { className: o.dot }),
|
|
97
|
-
/* @__PURE__ */ t(
|
|
97
|
+
/* @__PURE__ */ t(_, { className: o.check })
|
|
98
98
|
] }),
|
|
99
|
-
/* @__PURE__ */ t(A, { children:
|
|
99
|
+
/* @__PURE__ */ t(A, { children: i }),
|
|
100
100
|
/* @__PURE__ */ t(B, {})
|
|
101
101
|
] });
|
|
102
102
|
}
|
|
103
103
|
function V({
|
|
104
|
-
className:
|
|
105
|
-
...
|
|
104
|
+
className: e,
|
|
105
|
+
...i
|
|
106
106
|
}) {
|
|
107
|
-
return /* @__PURE__ */ t("span", { className: n(o.choiceDescription,
|
|
107
|
+
return /* @__PURE__ */ t("span", { className: n(o.choiceDescription, e), ...i });
|
|
108
108
|
}
|
|
109
|
-
function W({ className:
|
|
109
|
+
function W({ className: e, render: i, ...r }) {
|
|
110
110
|
return /* @__PURE__ */ t(
|
|
111
111
|
c.Input,
|
|
112
112
|
{
|
|
113
|
-
className:
|
|
114
|
-
render:
|
|
113
|
+
className: e,
|
|
114
|
+
render: i ?? /* @__PURE__ */ t(h, {}),
|
|
115
115
|
...r
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function X({ className:
|
|
120
|
-
return /* @__PURE__ */ t(c.Error, { className: n(o.error,
|
|
119
|
+
function X({ className: e, ...i }) {
|
|
120
|
+
return /* @__PURE__ */ t(c.Error, { className: n(o.error, e), ...i });
|
|
121
121
|
}
|
|
122
|
-
function Y({ className:
|
|
123
|
-
return /* @__PURE__ */ t("div", { className: n(o.actions,
|
|
122
|
+
function Y({ className: e, ...i }) {
|
|
123
|
+
return /* @__PURE__ */ t("div", { className: n(o.actions, e), ...i });
|
|
124
124
|
}
|
|
125
125
|
function Z({
|
|
126
|
-
className:
|
|
127
|
-
render:
|
|
126
|
+
className: e,
|
|
127
|
+
render: i,
|
|
128
128
|
variant: r = "outline",
|
|
129
129
|
size: s = "default",
|
|
130
130
|
...u
|
|
@@ -132,15 +132,15 @@ function Z({
|
|
|
132
132
|
return /* @__PURE__ */ t(
|
|
133
133
|
c.Previous,
|
|
134
134
|
{
|
|
135
|
-
className: n(o.previous,
|
|
136
|
-
render:
|
|
135
|
+
className: n(o.previous, e),
|
|
136
|
+
render: i ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
|
|
137
137
|
...u
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
className:
|
|
143
|
-
render:
|
|
141
|
+
function ee({
|
|
142
|
+
className: e,
|
|
143
|
+
render: i,
|
|
144
144
|
variant: r = "outline",
|
|
145
145
|
size: s = "default",
|
|
146
146
|
...u
|
|
@@ -148,15 +148,15 @@ function ii({
|
|
|
148
148
|
return /* @__PURE__ */ t(
|
|
149
149
|
c.Skip,
|
|
150
150
|
{
|
|
151
|
-
className: n(o.skip,
|
|
152
|
-
render:
|
|
151
|
+
className: n(o.skip, e),
|
|
152
|
+
render: i ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
|
|
153
153
|
...u
|
|
154
154
|
}
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
className:
|
|
159
|
-
render:
|
|
157
|
+
function ie({
|
|
158
|
+
className: e,
|
|
159
|
+
render: i,
|
|
160
160
|
variant: r = "default",
|
|
161
161
|
size: s = "default",
|
|
162
162
|
...u
|
|
@@ -164,15 +164,15 @@ function ei({
|
|
|
164
164
|
return /* @__PURE__ */ t(
|
|
165
165
|
c.Next,
|
|
166
166
|
{
|
|
167
|
-
className: n(o.next,
|
|
168
|
-
render:
|
|
167
|
+
className: n(o.next, e),
|
|
168
|
+
render: i ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
|
|
169
169
|
...u
|
|
170
170
|
}
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
className:
|
|
175
|
-
render:
|
|
173
|
+
function te({
|
|
174
|
+
className: e,
|
|
175
|
+
render: i,
|
|
176
176
|
variant: r = "default",
|
|
177
177
|
size: s = "default",
|
|
178
178
|
...u
|
|
@@ -180,8 +180,8 @@ function ti({
|
|
|
180
180
|
return /* @__PURE__ */ t(
|
|
181
181
|
c.Submit,
|
|
182
182
|
{
|
|
183
|
-
className: n(o.submit,
|
|
184
|
-
render:
|
|
183
|
+
className: n(o.submit, e),
|
|
184
|
+
render: i ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
|
|
185
185
|
...u
|
|
186
186
|
}
|
|
187
187
|
);
|
|
@@ -199,11 +199,11 @@ export {
|
|
|
199
199
|
X as QuestionnaireError,
|
|
200
200
|
W as QuestionnaireInput,
|
|
201
201
|
J as QuestionnaireItem,
|
|
202
|
-
|
|
202
|
+
ie as QuestionnaireNext,
|
|
203
203
|
Z as QuestionnairePrevious,
|
|
204
204
|
H as QuestionnaireProgress,
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
ee as QuestionnaireSkip,
|
|
206
|
+
te as QuestionnaireSubmit,
|
|
207
207
|
K as QuestionnaireTitle
|
|
208
208
|
};
|
|
209
209
|
//# sourceMappingURL=questionnaire.js.map
|
package/dist/table.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cx as l } from "class-variance-authority";
|
|
3
|
-
import './chunks/table.
|
|
3
|
+
import './chunks/table.BpnQ6j85.css';const r = "_tableContainer_me1x6_8", c = "_table_me1x6_8", s = "_tableRow_me1x6_77", i = "_tableBody_me1x6_94", m = "_tableHead_me1x6_62", _ = "_tableCell_me1x6_212", d = "_densityCompact_me1x6_280", C = "_tableCaption_me1x6_289", u = "_tableFooter_me1x6_311", a = {
|
|
4
4
|
tableContainer: r,
|
|
5
5
|
table: c,
|
|
6
6
|
tableRow: s,
|
|
7
7
|
tableBody: i,
|
|
8
|
-
tableHead:
|
|
9
|
-
tableCell:
|
|
10
|
-
densityCompact:
|
|
8
|
+
tableHead: m,
|
|
9
|
+
tableCell: _,
|
|
10
|
+
densityCompact: d,
|
|
11
11
|
tableCaption: C,
|
|
12
12
|
tableFooter: u
|
|
13
13
|
};
|
|
14
|
-
function f({ className:
|
|
14
|
+
function f({ className: t, label: e, density: n, ...b }) {
|
|
15
15
|
return /* @__PURE__ */ o(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
|
-
className:
|
|
18
|
+
className: a.tableContainer,
|
|
19
19
|
tabIndex: 0,
|
|
20
|
-
role:
|
|
21
|
-
"aria-label":
|
|
20
|
+
role: e === void 0 ? void 0 : "region",
|
|
21
|
+
"aria-label": e,
|
|
22
22
|
children: /* @__PURE__ */ o(
|
|
23
23
|
"table",
|
|
24
24
|
{
|
|
25
|
-
className: l(
|
|
25
|
+
className: l(a.table, n === "compact" && a.densityCompact, t),
|
|
26
26
|
...b
|
|
27
27
|
}
|
|
28
28
|
)
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
-
function y({ className:
|
|
33
|
-
return /* @__PURE__ */ o("thead", { className: l(
|
|
32
|
+
function y({ className: t, ...e }) {
|
|
33
|
+
return /* @__PURE__ */ o("thead", { className: l(a.tableHeader, t), ...e });
|
|
34
34
|
}
|
|
35
|
-
function N({ className:
|
|
36
|
-
return /* @__PURE__ */ o("tbody", { className: l(
|
|
35
|
+
function N({ className: t, ...e }) {
|
|
36
|
+
return /* @__PURE__ */ o("tbody", { className: l(a.tableBody, t), ...e });
|
|
37
37
|
}
|
|
38
|
-
function T({ className:
|
|
39
|
-
return /* @__PURE__ */ o("tfoot", { className: l(
|
|
38
|
+
function T({ className: t, ...e }) {
|
|
39
|
+
return /* @__PURE__ */ o("tfoot", { className: l(a.tableFooter, t), ...e });
|
|
40
40
|
}
|
|
41
|
-
function H({ className:
|
|
42
|
-
return /* @__PURE__ */ o("tr", { className: l(
|
|
41
|
+
function H({ className: t, ...e }) {
|
|
42
|
+
return /* @__PURE__ */ o("tr", { className: l(a.tableRow, t), ...e });
|
|
43
43
|
}
|
|
44
|
-
function w({ className:
|
|
45
|
-
return /* @__PURE__ */ o("th", { className: l(
|
|
44
|
+
function w({ className: t, ...e }) {
|
|
45
|
+
return /* @__PURE__ */ o("th", { className: l(a.tableHead, t), ...e });
|
|
46
46
|
}
|
|
47
|
-
function B({ className:
|
|
48
|
-
return /* @__PURE__ */ o("td", { className: l(
|
|
47
|
+
function B({ className: t, ...e }) {
|
|
48
|
+
return /* @__PURE__ */ o("td", { className: l(a.tableCell, t), ...e });
|
|
49
49
|
}
|
|
50
|
-
function F({ className:
|
|
51
|
-
return /* @__PURE__ */ o("caption", { className: l(
|
|
50
|
+
function F({ className: t, ...e }) {
|
|
51
|
+
return /* @__PURE__ */ o("caption", { className: l(a.tableCaption, t), ...e });
|
|
52
52
|
}
|
|
53
53
|
export {
|
|
54
54
|
f as Table,
|
package/dist/tabs.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Tabs as
|
|
3
|
-
import { cx as
|
|
4
|
-
import './chunks/tabs.
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs as s } from "@base-ui/react/tabs";
|
|
3
|
+
import { cx as i, cva as o } from "class-variance-authority";
|
|
4
|
+
import './chunks/tabs.4MEFBvw-.css';const c = "_tabs_1prau_28", u = "_list_1prau_23", l = "_trigger_1prau_5", _ = "_content_1prau_28", f = "_variantDefault_1prau_84", b = "_variantLine_1prau_88", n = {
|
|
5
5
|
tabs: c,
|
|
6
|
-
list:
|
|
7
|
-
trigger:
|
|
8
|
-
content:
|
|
6
|
+
list: u,
|
|
7
|
+
trigger: l,
|
|
8
|
+
content: _,
|
|
9
9
|
variantDefault: f,
|
|
10
10
|
variantLine: b
|
|
11
11
|
};
|
|
12
12
|
function T({ className: t, ...a }) {
|
|
13
|
-
return /* @__PURE__ */ s
|
|
13
|
+
return /* @__PURE__ */ r(s.Root, { className: i(n.tabs, t), ...a });
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const v = o(n.list, {
|
|
16
16
|
variants: {
|
|
17
17
|
variant: {
|
|
18
18
|
default: n.variantDefault,
|
|
@@ -23,19 +23,19 @@ const q = o(n.list, {
|
|
|
23
23
|
variant: "default"
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
function L({ className: t, variant: a, ...
|
|
27
|
-
return /* @__PURE__ */ s
|
|
28
|
-
}
|
|
29
|
-
function p({ className: t, ...a }) {
|
|
30
|
-
return /* @__PURE__ */ s(e.Tab, { className: r(n.trigger, t), ...a });
|
|
26
|
+
function L({ className: t, variant: a, ...e }) {
|
|
27
|
+
return /* @__PURE__ */ r(s.List, { className: v({ variant: a, className: t }), ...e });
|
|
31
28
|
}
|
|
32
29
|
function D({ className: t, ...a }) {
|
|
33
|
-
return /* @__PURE__ */ s
|
|
30
|
+
return /* @__PURE__ */ r(s.Tab, { className: i(n.trigger, t), ...a });
|
|
31
|
+
}
|
|
32
|
+
function N({ className: t, ...a }) {
|
|
33
|
+
return /* @__PURE__ */ r(s.Panel, { className: i(n.content, t), ...a });
|
|
34
34
|
}
|
|
35
35
|
export {
|
|
36
36
|
T as Tabs,
|
|
37
|
-
|
|
37
|
+
N as TabsContent,
|
|
38
38
|
L as TabsList,
|
|
39
|
-
|
|
39
|
+
D as TabsTrigger
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=tabs.js.map
|