@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.
Files changed (64) hide show
  1. package/dist/alert.js +11 -11
  2. package/dist/attachment.js +45 -37
  3. package/dist/attachment.js.map +1 -1
  4. package/dist/avatar.js +39 -39
  5. package/dist/badge.js +15 -15
  6. package/dist/bubble.js +40 -39
  7. package/dist/bubble.js.map +1 -1
  8. package/dist/button.js +28 -28
  9. package/dist/chunks/alert.C5BedF7l.css +1 -0
  10. package/dist/chunks/attachment.GAZbWSyB.css +1 -0
  11. package/dist/chunks/avatar.DZUXl1ev.css +1 -0
  12. package/dist/chunks/badge.Bi22h20j.css +1 -0
  13. package/dist/chunks/bubble.DvN6QyQ1.css +1 -0
  14. package/dist/chunks/button.DvAxXxKj.css +1 -0
  15. package/dist/chunks/context-menu.DwGCD0vN.css +1 -0
  16. package/dist/chunks/data-table.CtZdVSAU.css +1 -0
  17. package/dist/chunks/dropdown-menu.C5TLD9JO.css +1 -0
  18. package/dist/chunks/empty.BlhsHrOz.css +1 -0
  19. package/dist/chunks/field.Ccqt897k.css +1 -0
  20. package/dist/chunks/item.BkcgydVc.css +1 -0
  21. package/dist/chunks/native-select.DF1QrNz4.css +1 -0
  22. package/dist/chunks/questionnaire.D-u_K3Co.css +1 -0
  23. package/dist/chunks/table.BpnQ6j85.css +1 -0
  24. package/dist/chunks/tabs.4MEFBvw-.css +1 -0
  25. package/dist/chunks/toast.uUtCEAiv.css +1 -0
  26. package/dist/components/attachment/attachment.d.ts.map +1 -1
  27. package/dist/components/bubble/bubble.d.ts.map +1 -1
  28. package/dist/components/marker/marker.d.ts.map +1 -1
  29. package/dist/context-menu.js +62 -62
  30. package/dist/data-table.js +26 -26
  31. package/dist/docs/badge.md +7 -8
  32. package/dist/docs/questionnaire.md +4 -4
  33. package/dist/docs/sidebar.md +2 -2
  34. package/dist/dropdown-menu.js +65 -65
  35. package/dist/empty.js +18 -18
  36. package/dist/field.js +10 -10
  37. package/dist/item.js +20 -20
  38. package/dist/marker.js +26 -25
  39. package/dist/marker.js.map +1 -1
  40. package/dist/native-select.js +21 -20
  41. package/dist/native-select.js.map +1 -1
  42. package/dist/questionnaire.js +77 -77
  43. package/dist/table.js +23 -23
  44. package/dist/tabs.js +17 -17
  45. package/dist/theme.css +359 -242
  46. package/dist/toast.js +50 -50
  47. package/package.json +1 -1
  48. package/dist/chunks/alert.BJLRcB65.css +0 -1
  49. package/dist/chunks/attachment.rknKEWlr.css +0 -1
  50. package/dist/chunks/avatar.CsQmQnay.css +0 -1
  51. package/dist/chunks/badge.DR0epAiZ.css +0 -1
  52. package/dist/chunks/bubble.BKcAopT7.css +0 -1
  53. package/dist/chunks/button.D69BdJF1.css +0 -1
  54. package/dist/chunks/context-menu.Bjib7_AL.css +0 -1
  55. package/dist/chunks/data-table.DECm3qI-.css +0 -1
  56. package/dist/chunks/dropdown-menu.CDaeWYDT.css +0 -1
  57. package/dist/chunks/empty.B334jSES.css +0 -1
  58. package/dist/chunks/field.yTrg1G90.css +0 -1
  59. package/dist/chunks/item.CLg1KaYF.css +0 -1
  60. package/dist/chunks/native-select.BdYLTCZv.css +0 -1
  61. package/dist/chunks/questionnaire.DYnuWKAQ.css +0 -1
  62. package/dist/chunks/table.CFAJfhd-.css +0 -1
  63. package/dist/chunks/tabs.C4jGj2Vg.css +0 -1
  64. 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 e } from "react/jsx-runtime";
3
- import { mergeProps as s } from "@base-ui/react/merge-props";
4
- import { useRender as m } from "@base-ui/react/use-render";
5
- import { cx as n, cva as c } from "class-variance-authority";
6
- import './chunks/marker.DDxI_rZn.css';const d = "_marker_1dbba_11", u = "_variantDefault_1dbba_48", _ = "_variantBorder_1dbba_53", v = "_variantSeparator_1dbba_61", f = "_markerIcon_1dbba_78", k = "_markerContent_1dbba_91", r = {
7
- marker: d,
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: v,
11
- markerIcon: f,
12
- markerContent: k
13
- }, p = c(r.marker, {
10
+ variantSeparator: f,
11
+ markerIcon: k,
12
+ markerContent: l
13
+ }, p = d(a.marker, {
14
14
  variants: {
15
15
  variant: {
16
- default: r.variantDefault,
17
- separator: r.variantSeparator,
18
- border: r.variantBorder
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 B({ className: t, variant: a = "default", render: o, ...i }) {
26
- return m({
25
+ function D({ className: r, variant: t, render: i, ...s }) {
26
+ const e = t ?? "default";
27
+ return c({
27
28
  defaultTagName: "div",
28
- render: o,
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
- ...s({ className: p({ variant: a, className: t }) }, i),
36
- "data-variant": a
36
+ ...m({ className: p({ variant: e, className: r }) }, s),
37
+ "data-variant": e
37
38
  }
38
39
  });
39
40
  }
40
- function D({ className: t, ...a }) {
41
- return /* @__PURE__ */ e("span", { "aria-hidden": "true", className: n(r.markerIcon, t), ...a });
41
+ function N({ className: r, ...t }) {
42
+ return /* @__PURE__ */ n("span", { "aria-hidden": "true", className: o(a.markerIcon, r), ...t });
42
43
  }
43
- function N({ className: t, ...a }) {
44
- return /* @__PURE__ */ e("span", { className: n(r.markerContent, t), ...a });
44
+ function S({ className: r, ...t }) {
45
+ return /* @__PURE__ */ n("span", { className: o(a.markerContent, r), ...t });
45
46
  }
46
47
  export {
47
- B as Marker,
48
- N as MarkerContent,
49
- D as MarkerIcon,
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
@@ -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 = 'default', render, ...props }: MarkerProps) {\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, className }) }, props),\n 'data-variant': variant,\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","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,IAAU,WAAW,QAAAC,GAAQ,GAAGC,KAAsB;AACxF,SAAOC,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAO;AAAA,MACL,GAAGG,EAAkB,EAAE,WAAWT,EAAe,EAAE,SAAAK,GAAS,WAAAD,EAAA,CAAW,EAAA,GAAKG,CAAK;AAAA,MACjF,gBAAgBF;AAAA,IAAA;AAAA,EAClB,CACD;AACH;AASO,SAASK,EAAW,EAAE,WAAAN,GAAW,GAAGG,KAA0B;AACnE,SAAO,gBAAAI,EAAC,QAAA,EAAK,eAAY,QAAO,WAAWC,EAAGV,EAAO,YAAYE,CAAS,GAAI,GAAGG,EAAA,CAAO;AAC1F;AAKO,SAASM,EAAc,EAAE,WAAAT,GAAW,GAAGG,KAA6B;AACzE,SAAO,gBAAAI,EAAC,UAAK,WAAWC,EAAGV,EAAO,eAAeE,CAAS,GAAI,GAAGG,GAAO;AAC1E;"}
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;"}
@@ -1,42 +1,43 @@
1
1
  import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
- import { cx as n } from "class-variance-authority";
3
- import { ChevronDownIcon as p } from "lucide-react";
4
- import './chunks/native-select.BdYLTCZv.css';const a = "_wrapper_1vuz1_12", l = "_select_1vuz1_45", m = "_sizeSm_1vuz1_102", _ = "_option_1vuz1_119", u = "_icon_1vuz1_124", e = {
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: l,
7
- sizeSm: m,
8
- option: _,
9
- icon: u
6
+ select: _,
7
+ sizeSm: l,
8
+ option: m,
9
+ optgroup: u,
10
+ icon: g
10
11
  };
11
- function f({ className: o, size: t = "default", disabled: c, ...i }) {
12
+ function y({ className: t, size: e = "default", disabled: n, ...p }) {
12
13
  return /* @__PURE__ */ r(
13
14
  "div",
14
15
  {
15
- className: n(e.wrapper, t === "sm" && e.sizeSm, o),
16
- "data-disabled": c || void 0,
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: e.select,
22
- disabled: c,
23
- ...i
22
+ className: o.select,
23
+ disabled: n,
24
+ ...p
24
25
  }
25
26
  ),
26
- /* @__PURE__ */ s(p, { className: e.icon })
27
+ /* @__PURE__ */ s(i, { className: o.icon })
27
28
  ]
28
29
  }
29
30
  );
30
31
  }
31
- function S({ className: o, ...t }) {
32
- return /* @__PURE__ */ s("option", { className: n(e.option, o), ...t });
32
+ function S({ className: t, ...e }) {
33
+ return /* @__PURE__ */ s("option", { className: c(o.option, t), ...e });
33
34
  }
34
- function d({ className: o, ...t }) {
35
- return /* @__PURE__ */ s("optgroup", { className: n(e.option, o), ...t });
35
+ function v({ className: t, ...e }) {
36
+ return /* @__PURE__ */ s("optgroup", { className: c(o.optgroup, t), ...e });
36
37
  }
37
38
  export {
38
- f as NativeSelect,
39
- d as NativeSelectOptGroup,
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.option, 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,QAAQN,CAAS,GAAI,GAAGG,GAAO;AACvE;"}
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;"}
@@ -1,24 +1,24 @@
1
- import { jsx as t, jsxs as _ } from "react/jsx-runtime";
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 f } from "lucide-react";
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.DYnuWKAQ.css';const m = "_item_1giif_15", p = "_previous_1giif_21", l = "_skip_1giif_22", d = "_next_1giif_23", g = "_submit_1giif_24", N = "_root_1giif_28", Q = "_progress_1giif_36", b = "_title_1giif_61", C = "_description_1giif_73", I = "_choices_1giif_87", k = "_choice_1giif_87", x = "_choiceInput_1giif_95", v = "_indicator_1giif_225", D = "_dot_1giif_278", L = "_check_1giif_291", S = "_choiceLabel_1giif_127", P = "_choiceDescription_1giif_315", j = "_shortcut_1giif_242", E = "_error_1giif_357", T = "_actions_1giif_369", o = {
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: l,
10
+ skip: f,
11
11
  next: d,
12
- submit: g,
13
- root: N,
14
- progress: Q,
15
- title: b,
16
- description: C,
17
- choices: I,
18
- choice: k,
19
- choiceInput: x,
20
- indicator: v,
21
- dot: D,
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: i, ...e }) {
30
- return /* @__PURE__ */ t(c.Root, { className: n(o.root, i), ...e });
29
+ function G({ className: e, ...i }) {
30
+ return /* @__PURE__ */ t(c.Root, { className: n(o.root, e), ...i });
31
31
  }
32
- function H({ className: i, ...e }) {
33
- return /* @__PURE__ */ t(c.Progress, { className: n(o.progress, i), ...e });
32
+ function H({ className: e, ...i }) {
33
+ return /* @__PURE__ */ t(c.Progress, { className: n(o.progress, e), ...i });
34
34
  }
35
- function J({ className: i, ...e }) {
36
- return /* @__PURE__ */ t(c.Item, { className: n(o.item, i), ...e });
35
+ function J({ className: e, ...i }) {
36
+ return /* @__PURE__ */ t(c.Item, { className: n(o.item, e), ...i });
37
37
  }
38
- function K({ className: i, ...e }) {
39
- return /* @__PURE__ */ t(c.Title, { className: n(o.title, i), ...e });
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: i,
43
- ...e
42
+ className: e,
43
+ ...i
44
44
  }) {
45
45
  return /* @__PURE__ */ t(
46
46
  c.Description,
47
47
  {
48
- className: n(o.description, i),
49
- ...e
48
+ className: n(o.description, e),
49
+ ...i
50
50
  }
51
51
  );
52
52
  }
53
- function O({ className: i, ...e }) {
54
- return /* @__PURE__ */ t(c.Choices, { className: n(o.choices, i), ...e });
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: i,
58
- ...e
57
+ className: e,
58
+ ...i
59
59
  }) {
60
60
  return /* @__PURE__ */ t(
61
61
  c.ChoiceInput,
62
62
  {
63
- className: n(o.choiceInput, i),
64
- ...e
63
+ className: n(o.choiceInput, e),
64
+ ...i
65
65
  }
66
66
  );
67
67
  }
68
68
  function A({
69
- className: i,
70
- ...e
69
+ className: e,
70
+ ...i
71
71
  }) {
72
72
  return /* @__PURE__ */ t(
73
73
  c.ChoiceLabel,
74
74
  {
75
- className: n(o.choiceLabel, i),
76
- ...e
75
+ className: n(o.choiceLabel, e),
76
+ ...i
77
77
  }
78
78
  );
79
79
  }
80
80
  function B({
81
- className: i,
82
- ...e
81
+ className: e,
82
+ ...i
83
83
  }) {
84
84
  return /* @__PURE__ */ t(
85
85
  c.ChoiceShortcut,
86
86
  {
87
- className: n(o.shortcut, i),
88
- ...e
87
+ className: n(o.shortcut, e),
88
+ ...i
89
89
  }
90
90
  );
91
91
  }
92
- function U({ className: i, children: e, ...r }) {
93
- return /* @__PURE__ */ _(c.Choice, { className: n(o.choice, i), ...r, children: [
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__ */ _("span", { "aria-hidden": "true", className: o.indicator, children: [
95
+ /* @__PURE__ */ l("span", { "aria-hidden": "true", className: o.indicator, children: [
96
96
  /* @__PURE__ */ t("span", { className: o.dot }),
97
- /* @__PURE__ */ t(f, { className: o.check })
97
+ /* @__PURE__ */ t(_, { className: o.check })
98
98
  ] }),
99
- /* @__PURE__ */ t(A, { children: e }),
99
+ /* @__PURE__ */ t(A, { children: i }),
100
100
  /* @__PURE__ */ t(B, {})
101
101
  ] });
102
102
  }
103
103
  function V({
104
- className: i,
105
- ...e
104
+ className: e,
105
+ ...i
106
106
  }) {
107
- return /* @__PURE__ */ t("span", { className: n(o.choiceDescription, i), ...e });
107
+ return /* @__PURE__ */ t("span", { className: n(o.choiceDescription, e), ...i });
108
108
  }
109
- function W({ className: i, render: e, ...r }) {
109
+ function W({ className: e, render: i, ...r }) {
110
110
  return /* @__PURE__ */ t(
111
111
  c.Input,
112
112
  {
113
- className: i,
114
- render: e ?? /* @__PURE__ */ t(h, {}),
113
+ className: e,
114
+ render: i ?? /* @__PURE__ */ t(h, {}),
115
115
  ...r
116
116
  }
117
117
  );
118
118
  }
119
- function X({ className: i, ...e }) {
120
- return /* @__PURE__ */ t(c.Error, { className: n(o.error, i), ...e });
119
+ function X({ className: e, ...i }) {
120
+ return /* @__PURE__ */ t(c.Error, { className: n(o.error, e), ...i });
121
121
  }
122
- function Y({ className: i, ...e }) {
123
- return /* @__PURE__ */ t("div", { className: n(o.actions, i), ...e });
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: i,
127
- render: e,
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, i),
136
- render: e ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
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 ii({
142
- className: i,
143
- render: e,
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, i),
152
- render: e ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
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 ei({
158
- className: i,
159
- render: e,
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, i),
168
- render: e ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
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 ti({
174
- className: i,
175
- render: e,
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, i),
184
- render: e ?? /* @__PURE__ */ t(a, { variant: r, size: s }),
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
- ei as QuestionnaireNext,
202
+ ie as QuestionnaireNext,
203
203
  Z as QuestionnairePrevious,
204
204
  H as QuestionnaireProgress,
205
- ii as QuestionnaireSkip,
206
- ti as QuestionnaireSubmit,
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.CFAJfhd-.css';const r = "_tableContainer_1a7ht_8", c = "_table_1a7ht_8", s = "_tableRow_1a7ht_77", i = "_tableBody_1a7ht_94", _ = "_tableHead_1a7ht_62", d = "_tableCell_1a7ht_210", m = "_densityCompact_1a7ht_278", C = "_tableCaption_1a7ht_287", u = "_tableFooter_1a7ht_309", e = {
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: d,
10
- densityCompact: m,
8
+ tableHead: m,
9
+ tableCell: _,
10
+ densityCompact: d,
11
11
  tableCaption: C,
12
12
  tableFooter: u
13
13
  };
14
- function f({ className: a, label: t, density: n, ...b }) {
14
+ function f({ className: t, label: e, density: n, ...b }) {
15
15
  return /* @__PURE__ */ o(
16
16
  "div",
17
17
  {
18
- className: e.tableContainer,
18
+ className: a.tableContainer,
19
19
  tabIndex: 0,
20
- role: t === void 0 ? void 0 : "region",
21
- "aria-label": t,
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(e.table, n === "compact" && e.densityCompact, a),
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: a, ...t }) {
33
- return /* @__PURE__ */ o("thead", { className: l(e.tableHeader, a), ...t });
32
+ function y({ className: t, ...e }) {
33
+ return /* @__PURE__ */ o("thead", { className: l(a.tableHeader, t), ...e });
34
34
  }
35
- function N({ className: a, ...t }) {
36
- return /* @__PURE__ */ o("tbody", { className: l(e.tableBody, a), ...t });
35
+ function N({ className: t, ...e }) {
36
+ return /* @__PURE__ */ o("tbody", { className: l(a.tableBody, t), ...e });
37
37
  }
38
- function T({ className: a, ...t }) {
39
- return /* @__PURE__ */ o("tfoot", { className: l(e.tableFooter, a), ...t });
38
+ function T({ className: t, ...e }) {
39
+ return /* @__PURE__ */ o("tfoot", { className: l(a.tableFooter, t), ...e });
40
40
  }
41
- function H({ className: a, ...t }) {
42
- return /* @__PURE__ */ o("tr", { className: l(e.tableRow, a), ...t });
41
+ function H({ className: t, ...e }) {
42
+ return /* @__PURE__ */ o("tr", { className: l(a.tableRow, t), ...e });
43
43
  }
44
- function w({ className: a, ...t }) {
45
- return /* @__PURE__ */ o("th", { className: l(e.tableHead, a), ...t });
44
+ function w({ className: t, ...e }) {
45
+ return /* @__PURE__ */ o("th", { className: l(a.tableHead, t), ...e });
46
46
  }
47
- function B({ className: a, ...t }) {
48
- return /* @__PURE__ */ o("td", { className: l(e.tableCell, a), ...t });
47
+ function B({ className: t, ...e }) {
48
+ return /* @__PURE__ */ o("td", { className: l(a.tableCell, t), ...e });
49
49
  }
50
- function F({ className: a, ...t }) {
51
- return /* @__PURE__ */ o("caption", { className: l(e.tableCaption, a), ...t });
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 s } from "react/jsx-runtime";
2
- import { Tabs as e } from "@base-ui/react/tabs";
3
- import { cx as r, cva as o } from "class-variance-authority";
4
- import './chunks/tabs.C4jGj2Vg.css';const c = "_tabs_n5qqe_28", l = "_list_n5qqe_23", _ = "_trigger_n5qqe_5", u = "_content_n5qqe_28", f = "_variantDefault_n5qqe_84", b = "_variantLine_n5qqe_88", n = {
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: l,
7
- trigger: _,
8
- content: u,
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(e.Root, { className: r(n.tabs, t), ...a });
13
+ return /* @__PURE__ */ r(s.Root, { className: i(n.tabs, t), ...a });
14
14
  }
15
- const q = o(n.list, {
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, ...i }) {
27
- return /* @__PURE__ */ s(e.List, { className: q({ variant: a, className: t }), ...i });
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(e.Panel, { className: r(n.content, t), ...a });
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
- D as TabsContent,
37
+ N as TabsContent,
38
38
  L as TabsList,
39
- p as TabsTrigger
39
+ D as TabsTrigger
40
40
  };
41
41
  //# sourceMappingURL=tabs.js.map