@oztix/roadie-components 2.0.2 → 2.1.1

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 (66) hide show
  1. package/dist/Accordion.d.ts +6 -8
  2. package/dist/Accordion.d.ts.map +1 -1
  3. package/dist/Accordion.js +1 -1
  4. package/dist/Accordion.js.map +1 -1
  5. package/dist/Autocomplete.d.ts +24 -23
  6. package/dist/Autocomplete.d.ts.map +1 -1
  7. package/dist/Autocomplete.js +1 -1
  8. package/dist/Autocomplete.js.map +1 -1
  9. package/dist/Badge.d.ts +1 -1
  10. package/dist/Breadcrumb.d.ts +12 -14
  11. package/dist/Breadcrumb.d.ts.map +1 -1
  12. package/dist/Breadcrumb.js +1 -1
  13. package/dist/Breadcrumb.js.map +1 -1
  14. package/dist/Button.d.ts +2 -3
  15. package/dist/Button.js +1 -1
  16. package/dist/Card.d.ts +9 -11
  17. package/dist/Card.d.ts.map +1 -1
  18. package/dist/Card.js +1 -1
  19. package/dist/Card.js.map +1 -1
  20. package/dist/Carousel.d.ts +257 -0
  21. package/dist/Carousel.d.ts.map +1 -0
  22. package/dist/Carousel.js +2 -0
  23. package/dist/Carousel.js.map +1 -0
  24. package/dist/Code.d.ts +1 -1
  25. package/dist/Combobox.d.ts +25 -24
  26. package/dist/Combobox.d.ts.map +1 -1
  27. package/dist/Combobox.js +1 -1
  28. package/dist/Combobox.js.map +1 -1
  29. package/dist/Field.d.ts +14 -17
  30. package/dist/Field.d.ts.map +1 -1
  31. package/dist/Field.js +1 -1
  32. package/dist/Field.js.map +1 -1
  33. package/dist/Fieldset.d.ts +11 -14
  34. package/dist/Fieldset.d.ts.map +1 -1
  35. package/dist/Fieldset.js +1 -1
  36. package/dist/Fieldset.js.map +1 -1
  37. package/dist/{Button-DdE0vCfo.js → IconButton-0UdUDm0O.js} +1 -1
  38. package/dist/IconButton-0UdUDm0O.js.map +1 -0
  39. package/dist/{Button-Dt1TGgrL.d.ts → IconButton-BajbaUJ_.d.ts} +15 -3
  40. package/dist/IconButton-BajbaUJ_.d.ts.map +1 -0
  41. package/dist/LinkButton-9nnOzX_0.js.map +1 -1
  42. package/dist/LinkButton.d.ts +1 -1
  43. package/dist/RadioGroup.d.ts +14 -17
  44. package/dist/RadioGroup.d.ts.map +1 -1
  45. package/dist/RadioGroup.js +1 -1
  46. package/dist/RadioGroup.js.map +1 -1
  47. package/dist/Select.d.ts +30 -29
  48. package/dist/Select.d.ts.map +1 -1
  49. package/dist/Select.js +1 -1
  50. package/dist/Select.js.map +1 -1
  51. package/dist/Separator.d.ts +1 -1
  52. package/dist/Steps.d.ts +24 -26
  53. package/dist/Steps.d.ts.map +1 -1
  54. package/dist/Steps.js +1 -1
  55. package/dist/Steps.js.map +1 -1
  56. package/dist/{index-0w-ydb3o.d.ts → index-4M9XZOF1.d.ts} +25 -7
  57. package/dist/index-4M9XZOF1.d.ts.map +1 -0
  58. package/dist/index.d.ts +4 -4
  59. package/dist/index.js +4 -4
  60. package/dist/index.js.map +1 -1
  61. package/package.json +23 -3
  62. package/dist/Button-DdE0vCfo.js.map +0 -1
  63. package/dist/Button-Dt1TGgrL.d.ts.map +0 -1
  64. package/dist/index-0w-ydb3o.d.ts.map +0 -1
  65. package/dist/index-C3_4djmE.d.ts +0 -17
  66. package/dist/index-C3_4djmE.d.ts.map +0 -1
package/dist/Select.d.ts CHANGED
@@ -10,17 +10,38 @@ declare const selectTriggerVariants: (props?: ({
10
10
  emphasis?: "normal" | "subtle" | null | undefined;
11
11
  size?: "sm" | "md" | "lg" | null | undefined;
12
12
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
13
- type SelectRootProps = Select$1.Root.Props<unknown> & {
13
+ type SelectProps = Select$1.Root.Props<unknown> & {
14
14
  invalid?: boolean;
15
15
  required?: boolean;
16
16
  };
17
- declare function SelectRoot({
17
+ /**
18
+ * @deprecated Use `SelectProps` instead.
19
+ */
20
+ type SelectRootProps = SelectProps;
21
+ declare function Select({
18
22
  invalid,
19
23
  required,
20
24
  ...props
21
- }: SelectRootProps): _$react_jsx_runtime0.JSX.Element;
22
- declare namespace SelectRoot {
23
- var displayName: string;
25
+ }: SelectProps): _$react_jsx_runtime0.JSX.Element;
26
+ declare namespace Select {
27
+ var displayName: string;
28
+ var Trigger: typeof SelectTrigger;
29
+ var Value: typeof SelectValue;
30
+ var Icon: typeof SelectIcon;
31
+ var Portal: typeof SelectPortal;
32
+ var Positioner: typeof SelectPositioner;
33
+ var Popup: typeof SelectPopup;
34
+ var Content: typeof SelectContent;
35
+ var Item: typeof SelectItem;
36
+ var ItemText: typeof SelectItemText;
37
+ var ItemIndicator: typeof SelectItemIndicator;
38
+ var Group: typeof SelectGroup;
39
+ var GroupLabel: typeof SelectGroupLabel;
40
+ var Label: typeof SelectLabel;
41
+ var HelperText: typeof SelectHelperText;
42
+ var ErrorText: typeof SelectErrorText;
43
+ var ScrollUpArrow: typeof SelectScrollUpArrow;
44
+ var ScrollDownArrow: typeof SelectScrollDownArrow;
24
45
  }
25
46
  type SelectTriggerProps = Select$1.Trigger.Props & RefAttributes<HTMLButtonElement> & VariantProps<typeof selectTriggerVariants>;
26
47
  declare function SelectTrigger({
@@ -138,7 +159,7 @@ declare function SelectScrollDownArrow({
138
159
  declare namespace SelectScrollDownArrow {
139
160
  var displayName: string;
140
161
  }
141
- interface SelectHelperTextProps extends ComponentProps<'p'> {}
162
+ type SelectHelperTextProps = ComponentProps<'p'>;
142
163
  declare function SelectHelperText({
143
164
  className,
144
165
  ...props
@@ -146,7 +167,7 @@ declare function SelectHelperText({
146
167
  declare namespace SelectHelperText {
147
168
  var displayName: string;
148
169
  }
149
- interface SelectErrorTextProps extends ComponentProps<'p'> {}
170
+ type SelectErrorTextProps = ComponentProps<'p'>;
150
171
  declare function SelectErrorText({
151
172
  className,
152
173
  ...props
@@ -154,7 +175,7 @@ declare function SelectErrorText({
154
175
  declare namespace SelectErrorText {
155
176
  var displayName: string;
156
177
  }
157
- interface SelectContentProps extends SelectPopupProps {}
178
+ type SelectContentProps = SelectPopupProps;
158
179
  declare function SelectContent({
159
180
  children,
160
181
  ...props
@@ -162,26 +183,6 @@ declare function SelectContent({
162
183
  declare namespace SelectContent {
163
184
  var displayName: string;
164
185
  }
165
- declare const Select: typeof SelectRoot & {
166
- Trigger: typeof SelectTrigger;
167
- Value: typeof SelectValue;
168
- Icon: typeof SelectIcon;
169
- Portal: typeof SelectPortal;
170
- Positioner: typeof SelectPositioner;
171
- Popup: typeof SelectPopup;
172
- Content: typeof SelectContent;
173
- Item: typeof SelectItem;
174
- ItemText: typeof SelectItemText;
175
- ItemIndicator: typeof SelectItemIndicator;
176
- Group: typeof SelectGroup;
177
- GroupLabel: typeof SelectGroupLabel;
178
- Label: typeof SelectLabel;
179
- HelperText: typeof SelectHelperText;
180
- ErrorText: typeof SelectErrorText;
181
- ScrollUpArrow: typeof SelectScrollUpArrow;
182
- ScrollDownArrow: typeof SelectScrollDownArrow;
183
- };
184
- type SelectProps = SelectRootProps;
185
186
  //#endregion
186
- export { Select, SelectContent, SelectContentProps, SelectErrorText, SelectErrorTextProps, SelectGroup, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectHelperText, SelectHelperTextProps, SelectIcon, SelectIconProps, SelectItem, SelectItemIndicator, SelectItemIndicatorProps, SelectItemProps, SelectItemText, SelectItemTextProps, SelectLabel, SelectLabelProps, SelectPopup, SelectPopupProps, SelectPortal, SelectPortalProps, SelectPositioner, SelectPositionerProps, SelectProps, SelectRoot, SelectRootProps, SelectScrollDownArrow, SelectScrollDownArrowProps, SelectScrollUpArrow, SelectScrollUpArrowProps, SelectTrigger, SelectTriggerProps, type SelectTriggerProps as SelectTriggerVariantProps, SelectValue, SelectValueProps, selectTriggerVariants };
187
+ export { Select, SelectContent, SelectContentProps, SelectErrorText, SelectErrorTextProps, SelectGroup, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectHelperText, SelectHelperTextProps, SelectIcon, SelectIconProps, SelectItem, SelectItemIndicator, SelectItemIndicatorProps, SelectItemProps, SelectItemText, SelectItemTextProps, SelectLabel, SelectLabelProps, SelectPopup, SelectPopupProps, SelectPortal, SelectPortalProps, SelectPositioner, SelectPositionerProps, SelectProps, SelectRootProps, SelectScrollDownArrow, SelectScrollDownArrowProps, SelectScrollUpArrow, SelectScrollUpArrowProps, SelectTrigger, SelectTriggerProps, type SelectTriggerProps as SelectTriggerVariantProps, SelectValue, SelectValueProps, selectTriggerVariants };
187
188
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","names":[],"sources":["../src/components/Select/index.tsx"],"mappings":";;;;;;;cA+Ba,qBAAA,GAAqB,KAAA;;;;IAqBjC,iCAAA,CAAA,SAAA;AAAA,KAIW,eAAA,GAAkB,QAAA,CAAgB,IAAA,CAAK,KAAA;EACjD,OAAA;EACA,QAAA;AAAA;AAAA,iBAGc,UAAA,CAAA;EAAa,OAAA;EAAS,QAAA;EAAA,GAAa;AAAA,GAAS,eAAA,GAAe,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAA3D,UAAA;EAAA,IAAU,WAAA;AAAA;AAAA,KAkBd,kBAAA,GAAqB,QAAA,CAAgB,OAAA,CAAQ,KAAA,GACvD,aAAA,CAAc,iBAAA,IACd,YAAA,QAAoB,qBAAA;AAAA,iBAEN,aAAA,CAAA;EACd,SAAA;EACA,MAAA;EACA,QAAA;EACA,IAAA;EAAA,GACG;AAAA,GACF,kBAAA,GAAkB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBANL,aAAA;EAAA,IAAa,WAAA;AAAA;AAAA,KAiCjB,gBAAA,GAAmB,QAAA,CAAgB,KAAA,CAAM,KAAA,GACnD,aAAA,CAAc,eAAA;AAAA,iBAEA,WAAA,CAAA;EAAc,SAAA;EAAA,GAAc;AAAA,GAAS,gBAAA,GAAgB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAArD,WAAA;EAAA,IAAW,WAAA;AAAA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AgB,WAAA;AAAA;AAAA,KAWpB,oBAAA,GAAuB,cAAA;AAAA,iBAEnB,eAAA,CAAA;EAAkB,SAAA;EAAA,GAAc;AAAA,GAAS,oBAAA,GAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAA7D,eAAA;EAAA,IAAe,WAAA;AAAA;AAAA,KAgBnB,kBAAA,GAAqB,gBAAA;AAAA,iBAEjB,aAAA,CAAA;EAAgB,QAAA;EAAA,GAAa;AAAA,GAAS,kBAAA,GAAkB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAAxD,aAAA;EAAA,IAAa,WAAA;AAAA"}
package/dist/Select.js CHANGED
@@ -1,2 +1,2 @@
1
- "use client";import{t as e}from"./variants-DTAwzBl3.js";import{OptionalIndicator as t,RequiredIndicator as n}from"./Indicator.js";import{useFieldContext as r}from"./Field.js";import{cva as i}from"class-variance-authority";import{cn as a}from"@oztix/roadie-core/utils";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";import{createContext as l,use as u}from"react";import{CaretDownIcon as d,CaretUpIcon as f,CheckIcon as p}from"@phosphor-icons/react";import{Select as m}from"@base-ui/react/select";const h=l({}),g=i(`inline-flex w-full items-center justify-between rounded-lg font-sans select-none cursor-pointer text-left data-[popup-open]:bg-[var(--color-accent-2)] data-[popup-open]:border-[var(--color-accent-9)] data-[popup-open]:outline-[length:var(--focus-ring-width)]`,{variants:{intent:e,emphasis:{normal:`emphasis-raised border border-normal is-interactive-field`,subtle:`bg-subtle text-normal border border-transparent is-interactive-field`},size:{sm:`h-8 px-1.5 text-base`,md:`h-10 px-2 text-base`,lg:`h-12 px-2 text-base`}},defaultVariants:{emphasis:`normal`,size:`md`}});function _({invalid:e,required:t,...n}){let i=r();return s(h,{value:{invalid:e??i.invalid,required:t??i.required},children:s(m.Root,{...n})})}_.displayName=`Select`;function v({className:e,intent:t,emphasis:n,size:i,...o}){let c=r(),{invalid:l}=u(h),d=!!c.fieldId;return s(m.Trigger,{className:a(g({intent:t,emphasis:n,size:i,className:e})),...d&&{"aria-labelledby":c.labelId||void 0,"aria-describedby":l?c.errorTextId||void 0:c.helperTextId||void 0,"aria-invalid":l||void 0,"aria-required":c.required||void 0},...o})}v.displayName=`Select.Trigger`;function y({className:e,...t}){return s(m.Value,{className:a(`truncate data-[placeholder]:text-subtle`,e),...t})}y.displayName=`Select.Value`;function b({className:e,children:t,...n}){return s(m.Icon,{className:a(`duration-moderate ml-2 shrink-0 text-subtle transition-transform data-[popup-open]:rotate-180`,e),...n,children:t??s(d,{weight:`bold`,className:`size-4`})})}b.displayName=`Select.Icon`;function x(e){return s(m.Portal,{...e})}x.displayName=`Select.Portal`;function S({className:e,...t}){return s(m.Positioner,{className:a(`z-50`,e),alignItemWithTrigger:!1,...t})}S.displayName=`Select.Positioner`;function C({className:e,...t}){return s(m.Popup,{className:a(`max-h-[var(--available-height)] max-w-[var(--available-width)] min-w-[var(--anchor-width)] overflow-y-auto rounded-xl border border-[var(--intent-border-subtle)] bg-raised p-1 shadow-lg`,`origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`,e),...t})}C.displayName=`Select.Popup`;function w({className:e,children:t,...n}){let r=typeof t==`string`||typeof t==`number`?c(o,{children:[s(T,{children:t}),s(E,{})]}):t;return s(m.Item,{className:a(`flex w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2 py-1.5 text-sm text-normal outline-none select-none`,`data-[highlighted]:bg-subtle`,e),...n,children:r})}w.displayName=`Select.Item`;function T(e){return s(m.ItemText,{...e})}T.displayName=`Select.ItemText`;function E({className:e,children:t,...n}){return s(m.ItemIndicator,{className:a(`shrink-0 text-subtle`,e),...n,children:t??s(p,{weight:`bold`,className:`size-4`})})}E.displayName=`Select.ItemIndicator`;function D({className:e,...t}){return s(m.Group,{className:a(`[&+&]:mt-1`,e),...t})}D.displayName=`Select.Group`;function O({className:e,...t}){return s(m.GroupLabel,{className:a(`px-2 py-1.5 text-xs font-medium text-subtle select-none`,e),...t})}O.displayName=`Select.GroupLabel`;function k({className:e,showIndicator:r,children:i,...l}){let{required:d}=u(h);return c(m.Label,{className:a(`flex items-center gap-1 text-sm font-medium text-normal`,e),...l,children:[i,r&&(d?c(o,{children:[` `,s(n,{})]}):c(o,{children:[` `,s(t,{})]}))]})}k.displayName=`Select.Label`;function A({className:e,...t}){return s(m.ScrollUpArrow,{className:a(`flex items-center justify-center py-1 text-subtle`,e),...t,children:s(f,{weight:`bold`,className:`size-3`})})}A.displayName=`Select.ScrollUpArrow`;function j({className:e,...t}){return s(m.ScrollDownArrow,{className:a(`flex items-center justify-center py-1 text-subtle`,e),...t,children:s(d,{weight:`bold`,className:`size-3`})})}j.displayName=`Select.ScrollDownArrow`;function M({className:e,...t}){return s(`p`,{className:a(`text-sm text-subtle`,e),...t})}M.displayName=`Select.HelperText`;function N({className:e,...t}){let{invalid:n}=u(h);return n?s(`p`,{role:`alert`,className:a(`text-sm text-subtle intent-danger`,e),...t}):null}N.displayName=`Select.ErrorText`;function P({children:e,...t}){return s(x,{children:s(S,{children:s(C,{...t,children:e})})})}P.displayName=`Select.Content`;const F=Object.assign(_,{Trigger:v,Value:y,Icon:b,Portal:x,Positioner:S,Popup:C,Content:P,Item:w,ItemText:T,ItemIndicator:E,Group:D,GroupLabel:O,Label:k,HelperText:M,ErrorText:N,ScrollUpArrow:A,ScrollDownArrow:j});export{F as Select,P as SelectContent,N as SelectErrorText,D as SelectGroup,O as SelectGroupLabel,M as SelectHelperText,b as SelectIcon,w as SelectItem,E as SelectItemIndicator,T as SelectItemText,k as SelectLabel,C as SelectPopup,x as SelectPortal,S as SelectPositioner,_ as SelectRoot,j as SelectScrollDownArrow,A as SelectScrollUpArrow,v as SelectTrigger,y as SelectValue,g as selectTriggerVariants};
1
+ "use client";import{t as e}from"./variants-DTAwzBl3.js";import{OptionalIndicator as t,RequiredIndicator as n}from"./Indicator.js";import{useFieldContext as r}from"./Field.js";import{cva as i}from"class-variance-authority";import{cn as a}from"@oztix/roadie-core/utils";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";import{createContext as l,use as u}from"react";import{CaretDownIcon as d,CaretUpIcon as f,CheckIcon as p}from"@phosphor-icons/react";import{Select as m}from"@base-ui/react/select";const h=l({}),g=i(`inline-flex w-full items-center justify-between rounded-lg font-sans select-none cursor-pointer text-left data-[popup-open]:bg-[var(--color-accent-2)] data-[popup-open]:border-[var(--color-accent-9)] data-[popup-open]:outline-[length:var(--focus-ring-width)]`,{variants:{intent:e,emphasis:{normal:`emphasis-raised border border-normal is-interactive-field`,subtle:`bg-subtle text-normal border border-transparent is-interactive-field`},size:{sm:`h-8 px-1.5 text-base`,md:`h-10 px-2 text-base`,lg:`h-12 px-2 text-base`}},defaultVariants:{emphasis:`normal`,size:`md`}});function _({invalid:e,required:t,...n}){let i=r();return s(h,{value:{invalid:e??i.invalid,required:t??i.required},children:s(m.Root,{...n})})}_.displayName=`Select`;function v({className:e,intent:t,emphasis:n,size:i,...o}){let c=r(),{invalid:l}=u(h),d=!!c.fieldId;return s(m.Trigger,{className:a(g({intent:t,emphasis:n,size:i,className:e})),...d&&{"aria-labelledby":c.labelId||void 0,"aria-describedby":l?c.errorTextId||void 0:c.helperTextId||void 0,"aria-invalid":l||void 0,"aria-required":c.required||void 0},...o})}v.displayName=`Select.Trigger`;function y({className:e,...t}){return s(m.Value,{className:a(`truncate data-[placeholder]:text-subtle`,e),...t})}y.displayName=`Select.Value`;function b({className:e,children:t,...n}){return s(m.Icon,{className:a(`duration-moderate ml-2 shrink-0 text-subtle transition-transform data-[popup-open]:rotate-180`,e),...n,children:t??s(d,{weight:`bold`,className:`size-4`})})}b.displayName=`Select.Icon`;function x(e){return s(m.Portal,{...e})}x.displayName=`Select.Portal`;function S({className:e,...t}){return s(m.Positioner,{className:a(`z-50`,e),alignItemWithTrigger:!1,...t})}S.displayName=`Select.Positioner`;function C({className:e,...t}){return s(m.Popup,{className:a(`max-h-[var(--available-height)] max-w-[var(--available-width)] min-w-[var(--anchor-width)] overflow-y-auto rounded-xl border border-[var(--intent-border-subtle)] bg-raised p-1 shadow-lg`,`origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`,e),...t})}C.displayName=`Select.Popup`;function w({className:e,children:t,...n}){let r=typeof t==`string`||typeof t==`number`?c(o,{children:[s(T,{children:t}),s(E,{})]}):t;return s(m.Item,{className:a(`flex w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2 py-1.5 text-sm text-normal outline-none select-none`,`data-[highlighted]:bg-subtle`,e),...n,children:r})}w.displayName=`Select.Item`;function T(e){return s(m.ItemText,{...e})}T.displayName=`Select.ItemText`;function E({className:e,children:t,...n}){return s(m.ItemIndicator,{className:a(`shrink-0 text-subtle`,e),...n,children:t??s(p,{weight:`bold`,className:`size-4`})})}E.displayName=`Select.ItemIndicator`;function D({className:e,...t}){return s(m.Group,{className:a(`[&+&]:mt-1`,e),...t})}D.displayName=`Select.Group`;function O({className:e,...t}){return s(m.GroupLabel,{className:a(`px-2 py-1.5 text-xs font-medium text-subtle select-none`,e),...t})}O.displayName=`Select.GroupLabel`;function k({className:e,showIndicator:r,children:i,...l}){let{required:d}=u(h);return c(m.Label,{className:a(`flex items-center gap-1 text-sm font-medium text-normal`,e),...l,children:[i,r&&(d?c(o,{children:[` `,s(n,{})]}):c(o,{children:[` `,s(t,{})]}))]})}k.displayName=`Select.Label`;function A({className:e,...t}){return s(m.ScrollUpArrow,{className:a(`flex items-center justify-center py-1 text-subtle`,e),...t,children:s(f,{weight:`bold`,className:`size-3`})})}A.displayName=`Select.ScrollUpArrow`;function j({className:e,...t}){return s(m.ScrollDownArrow,{className:a(`flex items-center justify-center py-1 text-subtle`,e),...t,children:s(d,{weight:`bold`,className:`size-3`})})}j.displayName=`Select.ScrollDownArrow`;function M({className:e,...t}){return s(`p`,{className:a(`text-sm text-subtle`,e),...t})}M.displayName=`Select.HelperText`;function N({className:e,...t}){let{invalid:n}=u(h);return n?s(`p`,{role:`alert`,className:a(`text-sm text-subtle intent-danger`,e),...t}):null}N.displayName=`Select.ErrorText`;function P({children:e,...t}){return s(x,{children:s(S,{children:s(C,{...t,children:e})})})}P.displayName=`Select.Content`,_.Trigger=v,_.Value=y,_.Icon=b,_.Portal=x,_.Positioner=S,_.Popup=C,_.Content=P,_.Item=w,_.ItemText=T,_.ItemIndicator=E,_.Group=D,_.GroupLabel=O,_.Label=k,_.HelperText=M,_.ErrorText=N,_.ScrollUpArrow=A,_.ScrollDownArrow=j;export{_ as Select,P as SelectContent,N as SelectErrorText,D as SelectGroup,O as SelectGroupLabel,M as SelectHelperText,b as SelectIcon,w as SelectItem,E as SelectItemIndicator,T as SelectItemText,k as SelectLabel,C as SelectPopup,x as SelectPortal,S as SelectPositioner,j as SelectScrollDownArrow,A as SelectScrollUpArrow,v as SelectTrigger,y as SelectValue,g as selectTriggerVariants};
2
2
  //# sourceMappingURL=Select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["SelectPrimitive"],"sources":["../src/components/Select/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentProps,\n type RefAttributes,\n createContext,\n use\n} from 'react'\n\nimport { Select as SelectPrimitive } from '@base-ui/react/select'\nimport { CaretDownIcon, CaretUpIcon, CheckIcon } from '@phosphor-icons/react'\nimport { type VariantProps, cva } from 'class-variance-authority'\n\nimport { cn } from '@oztix/roadie-core/utils'\n\nimport { intentVariants } from '../../variants'\nimport { useFieldContext } from '../Field'\nimport { OptionalIndicator } from '../Indicator'\nimport { RequiredIndicator } from '../Indicator'\n\n/* ─── Context ─── */\n\ninterface SelectContextValue {\n invalid?: boolean\n required?: boolean\n}\n\nconst SelectContext = createContext<SelectContextValue>({})\n\n/* ─── Trigger variants (matches Input) ─── */\n\nexport const selectTriggerVariants = cva(\n 'inline-flex w-full items-center justify-between rounded-lg font-sans select-none cursor-pointer text-left data-[popup-open]:bg-[var(--color-accent-2)] data-[popup-open]:border-[var(--color-accent-9)] data-[popup-open]:outline-[length:var(--focus-ring-width)]',\n {\n variants: {\n intent: intentVariants,\n emphasis: {\n normal: 'emphasis-raised border border-normal is-interactive-field',\n subtle:\n 'bg-subtle text-normal border border-transparent is-interactive-field'\n },\n size: {\n sm: 'h-8 px-1.5 text-base',\n md: 'h-10 px-2 text-base',\n lg: 'h-12 px-2 text-base'\n }\n },\n defaultVariants: {\n emphasis: 'normal',\n size: 'md'\n }\n }\n)\n\n/* ─── Root ─── */\n\nexport type SelectRootProps = SelectPrimitive.Root.Props<unknown> & {\n invalid?: boolean\n required?: boolean\n}\n\nexport function SelectRoot({ invalid, required, ...props }: SelectRootProps) {\n const fieldContext = useFieldContext()\n const resolvedInvalid = invalid ?? fieldContext.invalid\n const resolvedRequired = required ?? fieldContext.required\n\n return (\n <SelectContext\n value={{ invalid: resolvedInvalid, required: resolvedRequired }}\n >\n <SelectPrimitive.Root {...props} />\n </SelectContext>\n )\n}\n\nSelectRoot.displayName = 'Select'\n\n/* ─── Trigger ─── */\n\nexport type SelectTriggerProps = SelectPrimitive.Trigger.Props &\n RefAttributes<HTMLButtonElement> &\n VariantProps<typeof selectTriggerVariants>\n\nexport function SelectTrigger({\n className,\n intent,\n emphasis,\n size,\n ...props\n}: SelectTriggerProps) {\n const fieldContext = useFieldContext()\n const { invalid } = use(SelectContext)\n const inField = !!fieldContext.fieldId\n\n return (\n <SelectPrimitive.Trigger\n className={cn(\n selectTriggerVariants({ intent, emphasis, size, className })\n )}\n {...(inField && {\n 'aria-labelledby': fieldContext.labelId || undefined,\n 'aria-describedby': invalid\n ? fieldContext.errorTextId || undefined\n : fieldContext.helperTextId || undefined,\n 'aria-invalid': invalid || undefined,\n 'aria-required': fieldContext.required || undefined\n })}\n {...props}\n />\n )\n}\n\nSelectTrigger.displayName = 'Select.Trigger'\n\n/* ─── Value ─── */\n\nexport type SelectValueProps = SelectPrimitive.Value.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectValue({ className, ...props }: SelectValueProps) {\n return (\n <SelectPrimitive.Value\n className={cn('truncate data-[placeholder]:text-subtle', className)}\n {...props}\n />\n )\n}\n\nSelectValue.displayName = 'Select.Value'\n\n/* ─── Icon ─── */\n\nexport type SelectIconProps = SelectPrimitive.Icon.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectIcon({ className, children, ...props }: SelectIconProps) {\n return (\n <SelectPrimitive.Icon\n className={cn(\n 'duration-moderate ml-2 shrink-0 text-subtle transition-transform data-[popup-open]:rotate-180',\n className\n )}\n {...props}\n >\n {children ?? <CaretDownIcon weight='bold' className='size-4' />}\n </SelectPrimitive.Icon>\n )\n}\n\nSelectIcon.displayName = 'Select.Icon'\n\n/* ─── Portal ─── */\n\nexport type SelectPortalProps = SelectPrimitive.Portal.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectPortal(props: SelectPortalProps) {\n return <SelectPrimitive.Portal {...props} />\n}\n\nSelectPortal.displayName = 'Select.Portal'\n\n/* ─── Positioner ─── */\n\nexport type SelectPositionerProps = SelectPrimitive.Positioner.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectPositioner({\n className,\n ...props\n}: SelectPositionerProps) {\n return (\n <SelectPrimitive.Positioner\n className={cn('z-50', className)}\n alignItemWithTrigger={false}\n {...props}\n />\n )\n}\n\nSelectPositioner.displayName = 'Select.Positioner'\n\n/* ─── Popup (dropdown content) ─── */\n\nexport type SelectPopupProps = SelectPrimitive.Popup.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectPopup({ className, ...props }: SelectPopupProps) {\n return (\n <SelectPrimitive.Popup\n className={cn(\n 'max-h-[var(--available-height)] max-w-[var(--available-width)] min-w-[var(--anchor-width)] overflow-y-auto rounded-xl border border-[var(--intent-border-subtle)] bg-raised p-1 shadow-lg',\n 'origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\nSelectPopup.displayName = 'Select.Popup'\n\n/* ─── Item ─── */\n\nexport type SelectItemProps = SelectPrimitive.Item.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectItem({ className, children, ...props }: SelectItemProps) {\n const content =\n typeof children === 'string' || typeof children === 'number' ? (\n <>\n <SelectItemText>{children}</SelectItemText>\n <SelectItemIndicator />\n </>\n ) : (\n children\n )\n\n return (\n <SelectPrimitive.Item\n className={cn(\n 'flex w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2 py-1.5 text-sm text-normal outline-none select-none',\n 'data-[highlighted]:bg-subtle',\n className\n )}\n {...props}\n >\n {content}\n </SelectPrimitive.Item>\n )\n}\n\nSelectItem.displayName = 'Select.Item'\n\n/* ─── ItemText ─── */\n\nexport type SelectItemTextProps = SelectPrimitive.ItemText.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectItemText(props: SelectItemTextProps) {\n return <SelectPrimitive.ItemText {...props} />\n}\n\nSelectItemText.displayName = 'Select.ItemText'\n\n/* ─── ItemIndicator ─── */\n\nexport type SelectItemIndicatorProps = SelectPrimitive.ItemIndicator.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectItemIndicator({\n className,\n children,\n ...props\n}: SelectItemIndicatorProps) {\n return (\n <SelectPrimitive.ItemIndicator\n className={cn('shrink-0 text-subtle', className)}\n {...props}\n >\n {children ?? <CheckIcon weight='bold' className='size-4' />}\n </SelectPrimitive.ItemIndicator>\n )\n}\n\nSelectItemIndicator.displayName = 'Select.ItemIndicator'\n\n/* ─── Group ─── */\n\nexport type SelectGroupProps = SelectPrimitive.Group.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectGroup({ className, ...props }: SelectGroupProps) {\n return (\n <SelectPrimitive.Group className={cn('[&+&]:mt-1', className)} {...props} />\n )\n}\n\nSelectGroup.displayName = 'Select.Group'\n\n/* ─── GroupLabel ─── */\n\nexport type SelectGroupLabelProps = SelectPrimitive.GroupLabel.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectGroupLabel({\n className,\n ...props\n}: SelectGroupLabelProps) {\n return (\n <SelectPrimitive.GroupLabel\n className={cn(\n 'px-2 py-1.5 text-xs font-medium text-subtle select-none',\n className\n )}\n {...props}\n />\n )\n}\n\nSelectGroupLabel.displayName = 'Select.GroupLabel'\n\n/* ─── Label ─── */\n\nexport type SelectLabelProps = SelectPrimitive.Label.Props &\n RefAttributes<HTMLDivElement> & {\n showIndicator?: boolean\n }\n\nexport function SelectLabel({\n className,\n showIndicator,\n children,\n ...props\n}: SelectLabelProps) {\n const { required } = use(SelectContext)\n return (\n <SelectPrimitive.Label\n className={cn(\n 'flex items-center gap-1 text-sm font-medium text-normal',\n className\n )}\n {...props}\n >\n {children}\n {showIndicator &&\n (required ? (\n <>\n {' '}\n <RequiredIndicator />\n </>\n ) : (\n <>\n {' '}\n <OptionalIndicator />\n </>\n ))}\n </SelectPrimitive.Label>\n )\n}\n\nSelectLabel.displayName = 'Select.Label'\n\n/* ─── ScrollUpArrow ─── */\n\nexport type SelectScrollUpArrowProps = SelectPrimitive.ScrollUpArrow.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectScrollUpArrow({\n className,\n ...props\n}: SelectScrollUpArrowProps) {\n return (\n <SelectPrimitive.ScrollUpArrow\n className={cn(\n 'flex items-center justify-center py-1 text-subtle',\n className\n )}\n {...props}\n >\n <CaretUpIcon weight='bold' className='size-3' />\n </SelectPrimitive.ScrollUpArrow>\n )\n}\n\nSelectScrollUpArrow.displayName = 'Select.ScrollUpArrow'\n\n/* ─── ScrollDownArrow ─── */\n\nexport type SelectScrollDownArrowProps = SelectPrimitive.ScrollDownArrow.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectScrollDownArrow({\n className,\n ...props\n}: SelectScrollDownArrowProps) {\n return (\n <SelectPrimitive.ScrollDownArrow\n className={cn(\n 'flex items-center justify-center py-1 text-subtle',\n className\n )}\n {...props}\n >\n <CaretDownIcon weight='bold' className='size-3' />\n </SelectPrimitive.ScrollDownArrow>\n )\n}\n\nSelectScrollDownArrow.displayName = 'Select.ScrollDownArrow'\n\n/* ─── HelperText ─── */\n\nexport interface SelectHelperTextProps extends ComponentProps<'p'> {}\n\nexport function SelectHelperText({\n className,\n ...props\n}: SelectHelperTextProps) {\n return <p className={cn('text-sm text-subtle', className)} {...props} />\n}\n\nSelectHelperText.displayName = 'Select.HelperText'\n\n/* ─── ErrorText ─── */\n\nexport interface SelectErrorTextProps extends ComponentProps<'p'> {}\n\nexport function SelectErrorText({ className, ...props }: SelectErrorTextProps) {\n const { invalid } = use(SelectContext)\n if (!invalid) return null\n return (\n <p\n role='alert'\n className={cn('text-sm text-subtle intent-danger', className)}\n {...props}\n />\n )\n}\n\nSelectErrorText.displayName = 'Select.ErrorText'\n\n/* ─── Content (convenience wrapper) ─── */\n\nexport interface SelectContentProps extends SelectPopupProps {}\n\nexport function SelectContent({ children, ...props }: SelectContentProps) {\n return (\n <SelectPortal>\n <SelectPositioner>\n <SelectPopup {...props}>{children}</SelectPopup>\n </SelectPositioner>\n </SelectPortal>\n )\n}\n\nSelectContent.displayName = 'Select.Content'\n\n/* ─── Compound export ─── */\n\nexport const Select = Object.assign(SelectRoot, {\n Trigger: SelectTrigger,\n Value: SelectValue,\n Icon: SelectIcon,\n Portal: SelectPortal,\n Positioner: SelectPositioner,\n Popup: SelectPopup,\n Content: SelectContent,\n Item: SelectItem,\n ItemText: SelectItemText,\n ItemIndicator: SelectItemIndicator,\n Group: SelectGroup,\n GroupLabel: SelectGroupLabel,\n Label: SelectLabel,\n HelperText: SelectHelperText,\n ErrorText: SelectErrorText,\n ScrollUpArrow: SelectScrollUpArrow,\n ScrollDownArrow: SelectScrollDownArrow\n})\n\nexport type SelectProps = SelectRootProps\nexport type { SelectTriggerProps as SelectTriggerVariantProps }\n"],"mappings":"ggBA2BA,MA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,EAAc,CAEtC,OADK,EAEH,EAAC,IAAD,CACE,KAAK,QACL,UAAW,EAAG,oCAAqC,EAAU,CAC7D,GAAI,EACJ,CAAA,CANiB,KAUvB,EAAgB,YAAc,mBAM9B,SAAgB,EAAc,CAAE,WAAU,GAAG,GAA6B,CACxE,OACE,EAAC,EAAD,CAAA,SACE,EAAC,EAAD,CAAA,SACE,EAAC,EAAD,CAAa,GAAI,EAAQ,WAAuB,CAAA,CAC/B,CAAA,CACN,CAAA,CAInB,EAAc,YAAc,iBAI5B,MAAa,EAAS,OAAO,OAAO,EAAY,CAC9C,QAAS,EACT,MAAO,EACP,KAAM,EACN,OAAQ,EACR,WAAY,EACZ,MAAO,EACP,QAAS,EACT,KAAM,EACN,SAAU,EACV,cAAe,EACf,MAAO,EACP,WAAY,EACZ,MAAO,EACP,WAAY,EACZ,UAAW,EACX,cAAe,EACf,gBAAiB,EAClB,CAAC"}
1
+ {"version":3,"file":"Select.js","names":["SelectPrimitive"],"sources":["../src/components/Select/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n type ComponentProps,\n type RefAttributes,\n createContext,\n use\n} from 'react'\n\nimport { Select as SelectPrimitive } from '@base-ui/react/select'\nimport { CaretDownIcon, CaretUpIcon, CheckIcon } from '@phosphor-icons/react'\nimport { type VariantProps, cva } from 'class-variance-authority'\n\nimport { cn } from '@oztix/roadie-core/utils'\n\nimport { intentVariants } from '../../variants'\nimport { useFieldContext } from '../Field'\nimport { OptionalIndicator } from '../Indicator'\nimport { RequiredIndicator } from '../Indicator'\n\n/* ─── Context ─── */\n\ninterface SelectContextValue {\n invalid?: boolean\n required?: boolean\n}\n\nconst SelectContext = createContext<SelectContextValue>({})\n\n/* ─── Trigger variants (matches Input) ─── */\n\nexport const selectTriggerVariants = cva(\n 'inline-flex w-full items-center justify-between rounded-lg font-sans select-none cursor-pointer text-left data-[popup-open]:bg-[var(--color-accent-2)] data-[popup-open]:border-[var(--color-accent-9)] data-[popup-open]:outline-[length:var(--focus-ring-width)]',\n {\n variants: {\n intent: intentVariants,\n emphasis: {\n normal: 'emphasis-raised border border-normal is-interactive-field',\n subtle:\n 'bg-subtle text-normal border border-transparent is-interactive-field'\n },\n size: {\n sm: 'h-8 px-1.5 text-base',\n md: 'h-10 px-2 text-base',\n lg: 'h-12 px-2 text-base'\n }\n },\n defaultVariants: {\n emphasis: 'normal',\n size: 'md'\n }\n }\n)\n\n/* ─── Root ─── */\n\nexport type SelectProps = SelectPrimitive.Root.Props<unknown> & {\n invalid?: boolean\n required?: boolean\n}\n\n/**\n * @deprecated Use `SelectProps` instead.\n */\nexport type SelectRootProps = SelectProps\n\nexport function Select({ invalid, required, ...props }: SelectProps) {\n const fieldContext = useFieldContext()\n const resolvedInvalid = invalid ?? fieldContext.invalid\n const resolvedRequired = required ?? fieldContext.required\n\n return (\n <SelectContext\n value={{ invalid: resolvedInvalid, required: resolvedRequired }}\n >\n <SelectPrimitive.Root {...props} />\n </SelectContext>\n )\n}\n\nSelect.displayName = 'Select'\n\n/* ─── Trigger ─── */\n\nexport type SelectTriggerProps = SelectPrimitive.Trigger.Props &\n RefAttributes<HTMLButtonElement> &\n VariantProps<typeof selectTriggerVariants>\n\nexport function SelectTrigger({\n className,\n intent,\n emphasis,\n size,\n ...props\n}: SelectTriggerProps) {\n const fieldContext = useFieldContext()\n const { invalid } = use(SelectContext)\n const inField = !!fieldContext.fieldId\n\n return (\n <SelectPrimitive.Trigger\n className={cn(\n selectTriggerVariants({ intent, emphasis, size, className })\n )}\n {...(inField && {\n 'aria-labelledby': fieldContext.labelId || undefined,\n 'aria-describedby': invalid\n ? fieldContext.errorTextId || undefined\n : fieldContext.helperTextId || undefined,\n 'aria-invalid': invalid || undefined,\n 'aria-required': fieldContext.required || undefined\n })}\n {...props}\n />\n )\n}\n\nSelectTrigger.displayName = 'Select.Trigger'\n\n/* ─── Value ─── */\n\nexport type SelectValueProps = SelectPrimitive.Value.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectValue({ className, ...props }: SelectValueProps) {\n return (\n <SelectPrimitive.Value\n className={cn('truncate data-[placeholder]:text-subtle', className)}\n {...props}\n />\n )\n}\n\nSelectValue.displayName = 'Select.Value'\n\n/* ─── Icon ─── */\n\nexport type SelectIconProps = SelectPrimitive.Icon.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectIcon({ className, children, ...props }: SelectIconProps) {\n return (\n <SelectPrimitive.Icon\n className={cn(\n 'duration-moderate ml-2 shrink-0 text-subtle transition-transform data-[popup-open]:rotate-180',\n className\n )}\n {...props}\n >\n {children ?? <CaretDownIcon weight='bold' className='size-4' />}\n </SelectPrimitive.Icon>\n )\n}\n\nSelectIcon.displayName = 'Select.Icon'\n\n/* ─── Portal ─── */\n\nexport type SelectPortalProps = SelectPrimitive.Portal.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectPortal(props: SelectPortalProps) {\n return <SelectPrimitive.Portal {...props} />\n}\n\nSelectPortal.displayName = 'Select.Portal'\n\n/* ─── Positioner ─── */\n\nexport type SelectPositionerProps = SelectPrimitive.Positioner.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectPositioner({\n className,\n ...props\n}: SelectPositionerProps) {\n return (\n <SelectPrimitive.Positioner\n className={cn('z-50', className)}\n alignItemWithTrigger={false}\n {...props}\n />\n )\n}\n\nSelectPositioner.displayName = 'Select.Positioner'\n\n/* ─── Popup (dropdown content) ─── */\n\nexport type SelectPopupProps = SelectPrimitive.Popup.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectPopup({ className, ...props }: SelectPopupProps) {\n return (\n <SelectPrimitive.Popup\n className={cn(\n 'max-h-[var(--available-height)] max-w-[var(--available-width)] min-w-[var(--anchor-width)] overflow-y-auto rounded-xl border border-[var(--intent-border-subtle)] bg-raised p-1 shadow-lg',\n 'origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0',\n className\n )}\n {...props}\n />\n )\n}\n\nSelectPopup.displayName = 'Select.Popup'\n\n/* ─── Item ─── */\n\nexport type SelectItemProps = SelectPrimitive.Item.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectItem({ className, children, ...props }: SelectItemProps) {\n const content =\n typeof children === 'string' || typeof children === 'number' ? (\n <>\n <SelectItemText>{children}</SelectItemText>\n <SelectItemIndicator />\n </>\n ) : (\n children\n )\n\n return (\n <SelectPrimitive.Item\n className={cn(\n 'flex w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2 py-1.5 text-sm text-normal outline-none select-none',\n 'data-[highlighted]:bg-subtle',\n className\n )}\n {...props}\n >\n {content}\n </SelectPrimitive.Item>\n )\n}\n\nSelectItem.displayName = 'Select.Item'\n\n/* ─── ItemText ─── */\n\nexport type SelectItemTextProps = SelectPrimitive.ItemText.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectItemText(props: SelectItemTextProps) {\n return <SelectPrimitive.ItemText {...props} />\n}\n\nSelectItemText.displayName = 'Select.ItemText'\n\n/* ─── ItemIndicator ─── */\n\nexport type SelectItemIndicatorProps = SelectPrimitive.ItemIndicator.Props &\n RefAttributes<HTMLSpanElement>\n\nexport function SelectItemIndicator({\n className,\n children,\n ...props\n}: SelectItemIndicatorProps) {\n return (\n <SelectPrimitive.ItemIndicator\n className={cn('shrink-0 text-subtle', className)}\n {...props}\n >\n {children ?? <CheckIcon weight='bold' className='size-4' />}\n </SelectPrimitive.ItemIndicator>\n )\n}\n\nSelectItemIndicator.displayName = 'Select.ItemIndicator'\n\n/* ─── Group ─── */\n\nexport type SelectGroupProps = SelectPrimitive.Group.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectGroup({ className, ...props }: SelectGroupProps) {\n return (\n <SelectPrimitive.Group className={cn('[&+&]:mt-1', className)} {...props} />\n )\n}\n\nSelectGroup.displayName = 'Select.Group'\n\n/* ─── GroupLabel ─── */\n\nexport type SelectGroupLabelProps = SelectPrimitive.GroupLabel.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectGroupLabel({\n className,\n ...props\n}: SelectGroupLabelProps) {\n return (\n <SelectPrimitive.GroupLabel\n className={cn(\n 'px-2 py-1.5 text-xs font-medium text-subtle select-none',\n className\n )}\n {...props}\n />\n )\n}\n\nSelectGroupLabel.displayName = 'Select.GroupLabel'\n\n/* ─── Label ─── */\n\nexport type SelectLabelProps = SelectPrimitive.Label.Props &\n RefAttributes<HTMLDivElement> & {\n showIndicator?: boolean\n }\n\nexport function SelectLabel({\n className,\n showIndicator,\n children,\n ...props\n}: SelectLabelProps) {\n const { required } = use(SelectContext)\n return (\n <SelectPrimitive.Label\n className={cn(\n 'flex items-center gap-1 text-sm font-medium text-normal',\n className\n )}\n {...props}\n >\n {children}\n {showIndicator &&\n (required ? (\n <>\n {' '}\n <RequiredIndicator />\n </>\n ) : (\n <>\n {' '}\n <OptionalIndicator />\n </>\n ))}\n </SelectPrimitive.Label>\n )\n}\n\nSelectLabel.displayName = 'Select.Label'\n\n/* ─── ScrollUpArrow ─── */\n\nexport type SelectScrollUpArrowProps = SelectPrimitive.ScrollUpArrow.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectScrollUpArrow({\n className,\n ...props\n}: SelectScrollUpArrowProps) {\n return (\n <SelectPrimitive.ScrollUpArrow\n className={cn(\n 'flex items-center justify-center py-1 text-subtle',\n className\n )}\n {...props}\n >\n <CaretUpIcon weight='bold' className='size-3' />\n </SelectPrimitive.ScrollUpArrow>\n )\n}\n\nSelectScrollUpArrow.displayName = 'Select.ScrollUpArrow'\n\n/* ─── ScrollDownArrow ─── */\n\nexport type SelectScrollDownArrowProps = SelectPrimitive.ScrollDownArrow.Props &\n RefAttributes<HTMLDivElement>\n\nexport function SelectScrollDownArrow({\n className,\n ...props\n}: SelectScrollDownArrowProps) {\n return (\n <SelectPrimitive.ScrollDownArrow\n className={cn(\n 'flex items-center justify-center py-1 text-subtle',\n className\n )}\n {...props}\n >\n <CaretDownIcon weight='bold' className='size-3' />\n </SelectPrimitive.ScrollDownArrow>\n )\n}\n\nSelectScrollDownArrow.displayName = 'Select.ScrollDownArrow'\n\n/* ─── HelperText ─── */\n\nexport type SelectHelperTextProps = ComponentProps<'p'>\n\nexport function SelectHelperText({\n className,\n ...props\n}: SelectHelperTextProps) {\n return <p className={cn('text-sm text-subtle', className)} {...props} />\n}\n\nSelectHelperText.displayName = 'Select.HelperText'\n\n/* ─── ErrorText ─── */\n\nexport type SelectErrorTextProps = ComponentProps<'p'>\n\nexport function SelectErrorText({ className, ...props }: SelectErrorTextProps) {\n const { invalid } = use(SelectContext)\n if (!invalid) return null\n return (\n <p\n role='alert'\n className={cn('text-sm text-subtle intent-danger', className)}\n {...props}\n />\n )\n}\n\nSelectErrorText.displayName = 'Select.ErrorText'\n\n/* ─── Content (convenience wrapper) ─── */\n\nexport type SelectContentProps = SelectPopupProps\n\nexport function SelectContent({ children, ...props }: SelectContentProps) {\n return (\n <SelectPortal>\n <SelectPositioner>\n <SelectPopup {...props}>{children}</SelectPopup>\n </SelectPositioner>\n </SelectPortal>\n )\n}\n\nSelectContent.displayName = 'Select.Content'\n\n/* ─── Compound export ─── */\n\nSelect.Trigger = SelectTrigger\nSelect.Value = SelectValue\nSelect.Icon = SelectIcon\nSelect.Portal = SelectPortal\nSelect.Positioner = SelectPositioner\nSelect.Popup = SelectPopup\nSelect.Content = SelectContent\nSelect.Item = SelectItem\nSelect.ItemText = SelectItemText\nSelect.ItemIndicator = SelectItemIndicator\nSelect.Group = SelectGroup\nSelect.GroupLabel = SelectGroupLabel\nSelect.Label = SelectLabel\nSelect.HelperText = SelectHelperText\nSelect.ErrorText = SelectErrorText\nSelect.ScrollUpArrow = SelectScrollUpArrow\nSelect.ScrollDownArrow = SelectScrollDownArrow\n\nexport type { SelectTriggerProps as SelectTriggerVariantProps }\n"],"mappings":"ggBA2BA,MAAM,EAAgB,EAAkC,EAAE,CAAC,CAI9C,EAAwB,EACnC,qQACA,CACE,SAAU,CACR,OAAQ,EACR,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D,GAAI,EACJ,CAAA,CANiB,KAUvB,EAAgB,YAAc,mBAM9B,SAAgB,EAAc,CAAE,WAAU,GAAG,GAA6B,CACxE,OACE,EAAC,EAAD,CAAA,SACE,EAAC,EAAD,CAAA,SACE,EAAC,EAAD,CAAa,GAAI,EAAQ,WAAuB,CAAA,CAC/B,CAAA,CACN,CAAA,CAInB,EAAc,YAAc,iBAI5B,EAAO,QAAU,EACjB,EAAO,MAAQ,EACf,EAAO,KAAO,EACd,EAAO,OAAS,EAChB,EAAO,WAAa,EACpB,EAAO,MAAQ,EACf,EAAO,QAAU,EACjB,EAAO,KAAO,EACd,EAAO,SAAW,EAClB,EAAO,cAAgB,EACvB,EAAO,MAAQ,EACf,EAAO,WAAa,EACpB,EAAO,MAAQ,EACf,EAAO,WAAa,EACpB,EAAO,UAAY,EACnB,EAAO,cAAgB,EACvB,EAAO,gBAAkB"}
@@ -5,7 +5,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
5
5
 
6
6
  //#region src/components/Separator/index.d.ts
7
7
  declare const separatorVariants: (props?: ({
8
- orientation?: "vertical" | "horizontal" | null | undefined;
8
+ orientation?: "horizontal" | "vertical" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  interface SeparatorProps extends ComponentProps<'div'>, VariantProps<typeof separatorVariants> {}
11
11
  declare function Separator({
package/dist/Steps.d.ts CHANGED
@@ -7,16 +7,36 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
7
7
 
8
8
  //#region src/components/Steps/index.d.ts
9
9
  declare const stepsVariants: (props?: ({
10
- direction?: "vertical" | "horizontal" | null | undefined;
10
+ direction?: "horizontal" | "vertical" | null | undefined;
11
11
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
12
12
  type StepsProps = Omit<Steps$1.RootProps, 'orientation'> & VariantProps<typeof stepsVariants>;
13
- declare function StepsRoot({
13
+ declare function Steps({
14
14
  direction,
15
15
  className,
16
16
  ...props
17
17
  }: StepsProps): _$react_jsx_runtime0.JSX.Element;
18
- declare namespace StepsRoot {
18
+ declare namespace Steps {
19
19
  var displayName: string;
20
+ var List: typeof StepsList;
21
+ var Item: typeof StepsItem;
22
+ var Trigger: typeof StepsTrigger;
23
+ var TriggerText: typeof StepsTriggerText;
24
+ var Indicator: typeof StepsIndicator;
25
+ var Separator: typeof StepsSeparator;
26
+ var Content: typeof StepsContent;
27
+ var CompletedContent: typeof StepsCompletedContent;
28
+ var NextTrigger: typeof StepsNextTrigger;
29
+ var PrevTrigger: typeof StepsPrevTrigger;
30
+ var Progress: typeof StepsProgress;
31
+ var Context: {
32
+ (props: Steps$1.ContextProps): _$react.ReactNode;
33
+ displayName: string;
34
+ };
35
+ var ItemContext: {
36
+ (props: Steps$1.ItemContextProps): _$react.ReactNode;
37
+ displayName: string;
38
+ };
39
+ var RootProvider: _$react.ForwardRefExoticComponent<Steps$1.RootProviderProps & _$react.RefAttributes<HTMLDivElement>>;
20
40
  }
21
41
  type StepsListProps = Steps$1.ListProps;
22
42
  declare function StepsList({
@@ -117,28 +137,6 @@ declare function StepsTriggerText({
117
137
  declare namespace StepsTriggerText {
118
138
  var displayName: string;
119
139
  }
120
- declare const Steps: typeof StepsRoot & {
121
- List: typeof StepsList;
122
- Item: typeof StepsItem;
123
- Trigger: typeof StepsTrigger;
124
- TriggerText: typeof StepsTriggerText;
125
- Indicator: typeof StepsIndicator;
126
- Separator: typeof StepsSeparator;
127
- Content: typeof StepsContent;
128
- CompletedContent: typeof StepsCompletedContent;
129
- NextTrigger: typeof StepsNextTrigger;
130
- PrevTrigger: typeof StepsPrevTrigger;
131
- Progress: typeof StepsProgress;
132
- Context: {
133
- (props: Steps$1.ContextProps): _$react.ReactNode;
134
- displayName: string;
135
- };
136
- ItemContext: {
137
- (props: Steps$1.ItemContextProps): _$react.ReactNode;
138
- displayName: string;
139
- };
140
- RootProvider: _$react.ForwardRefExoticComponent<Steps$1.RootProviderProps & _$react.RefAttributes<HTMLDivElement>>;
141
- };
142
140
  //#endregion
143
- export { Steps, StepsItemProps, StepsProps, type UseStepsProps, type UseStepsReturn, stepsVariants, useSteps };
141
+ export { Steps, StepsCompletedContent, StepsContent, StepsIndicator, StepsItem, StepsItemProps, StepsList, StepsNextTrigger, StepsPrevTrigger, StepsProgress, StepsProps, StepsSeparator, StepsTrigger, StepsTriggerText, type UseStepsProps, type UseStepsReturn, stepsVariants, useSteps };
144
142
  //# sourceMappingURL=Steps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.d.ts","names":[],"sources":["../src/components/Steps/index.tsx"],"mappings":";;;;;;;;cAqBa,aAAA,GAAa,KAAA;;IAUxB,iCAAA,CAAA,SAAA;AAAA,KAIU,UAAA,GAAa,IAAA,CAAK,OAAA,CAAS,SAAA,mBACrC,YAAA,QAAoB,aAAA;AAAA,iBAEb,SAAA,CAAA;EAAY,SAAA;EAAW,SAAA;EAAA,GAAc;AAAA,GAAS,UAAA,GAAU,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAAxD,SAAA;EAAA,IAAS,WAAA;AAAA;AAAA,KAcb,cAAA,GAAiB,OAAA,CAAS,SAAA;AAAA,iBAEtB,SAAA,CAAA;EAAY,SAAA;EAAA,GAAc;AAAA,GAAS,cAAA,GAAc,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAAjD,SAAA;EAAA,IAAS,WAAA;AAAA;AAAA,UAiBD,cAAA;EACf,KAAA;EACA,OAAA;EACA,SAAA;EACA,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,iBAQV,SAAA,CAAA;EAAY,SAAA;EAAW,OAAA;EAAA,GAAY;AAAA,GAAS,cAAA,GAAc,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAA1D,SAAA;EAAA,IAAS,WAAA;AAAA;AAAA,KA4Db,iBAAA,GAAoB,OAAA,CAAS,YAAA;AAAA,iBAEzB,YAAA,CAAA;EAAe,SAAA;EAAA,GAAc;AAAA,GAAS,iBAAA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;EAAA,GACG;AAAA,GACF,qBAAA,GAAqB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAHR,gBAAA;EAAA,IAAgB,WAAA;AAAA;AAAA,KAW3B,qBAAA,GAAwB,OAAA,CAAS,gBAAA;AAAA,iBAEtB,gBAAA,CAAA;EACd,SAAA;EAAA,GACG;AAAA,GACF,qBAAA,GAAqB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAHR,gBAAA;EAAA,IAAgB,WAAA;AAAA;AAAA,KAW3B,kBAAA,GAAqB,OAAA,CAAS,aAAA;AAAA,iBAEnB,aAAA,CAAA;EAAgB,SAAA;EAAA,GAAc;AAAA,GAAS,kBAAA,GAAkB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAAzD,aAAA;EAAA,IAAa,WAAA;AAAA;AAAA,KAiBxB,qBAAA,GAAwB,cAAA;AAAA,iBAEb,gBAAA,CAAA;EACd,SAAA;EAAA,GACG;AAAA,GACF,qBAAA,GAAqB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAHR,gBAAA;EAAA,IAAgB,WAAA;AAAA"}
package/dist/Steps.js CHANGED
@@ -1,2 +1,2 @@
1
- "use client";import{cva as e}from"class-variance-authority";import{cn as t}from"@oztix/roadie-core/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useCallback as i,useEffect as a,useRef as o}from"react";import{CheckIcon as s}from"@phosphor-icons/react";import{Steps as c,useSteps as l}from"@ark-ui/react/steps";const u=e(`grid w-full gap-4`,{variants:{direction:{horizontal:``,vertical:`grid-cols-[auto_1fr] gap-3`}},defaultVariants:{direction:`horizontal`}});function d({direction:e,className:r,...i}){return n(c.Root,{orientation:e===`vertical`?`vertical`:`horizontal`,className:t(u({direction:e,className:r})),...i})}d.displayName=`Steps`;function f({className:e,...r}){return n(c.List,{className:t(`flex items-start justify-start rounded-xl bg-subtler px-4 py-3`,`data-[orientation=vertical]:flex-col data-[orientation=vertical]:gap-2`,e),...r})}f.displayName=`Steps.List`;function p({className:e,invalid:r,...s}){let l=c.Item,u=o(null),d=o(r);a(()=>{if(r&&!d.current){let e=u.current?.querySelector(`[data-part="trigger"]`);e&&(e.classList.remove(`animate-shake`),e.offsetWidth,e.classList.add(`animate-shake`))}d.current=r},[r]);let f=i(e=>{let t=e.currentTarget.querySelector(`[data-part="trigger"]`);t&&t.getAttribute(`tabindex`)===`-1`&&t.hasAttribute(`data-incomplete`)&&(t.classList.remove(`animate-shake`),t.offsetWidth,t.classList.add(`animate-shake`))},[]);return n(l,{ref:u,className:t(`group/step-item flex flex-1 items-center last:flex-none`,`data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch`,e),"data-invalid":r||void 0,onClick:f,...s})}p.displayName=`Steps.Item`;function m({className:e,...r}){return n(c.Trigger,{className:t(`group/step flex cursor-pointer flex-col items-center gap-1 rounded-md border-none bg-transparent px-3 py-3 transition-all duration-200 ease-out`,`data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-center data-[orientation=vertical]:gap-2`,`data-current:intent-accent`,e),...r})}m.displayName=`Steps.Trigger`;function h({className:e,children:i,...a}){return r(c.Indicator,{className:t(`flex size-10 shrink-0 items-center justify-center rounded-full border text-lg font-black outline-0 outline-offset-0 outline-[color-mix(in_oklch,var(--color-accent-9)_var(--focus-ring-opacity),transparent)] transition-all duration-200 ease-out`,`border-subtle bg-raised text-subtler`,`group-hover/step:outline-[length:var(--focus-ring-width)]`,`data-current:border-normal data-current:bg-subtle data-current:text-subtle`,`data-complete:emphasis-strong`,`group-data-invalid/step-item:emphasis-normal group-data-invalid/step-item:border-normal group-data-invalid/step-item:bg-subtle group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger`,e),...a,children:[n(`span`,{className:`group-data-complete/step:hidden group-data-invalid/step-item:!block`,children:i}),n(s,{weight:`bold`,className:`hidden size-5 group-data-complete/step:block group-data-invalid/step-item:!hidden`})]})}h.displayName=`Steps.Indicator`;function g({className:e,...r}){return n(c.Separator,{className:t(`h-0.5 flex-1 bg-subtle transition-all duration-200 ease-out md:bottom-0 md:translate-y-5.5`,`data-complete:bg-strong`,`data-[orientation=vertical]:ml-4 data-[orientation=vertical]:h-4 data-[orientation=vertical]:w-0.5`,e),...r})}g.displayName=`Steps.Separator`;function _({className:e,...r}){let i=c.Content;return n(i,{className:t(e),...r})}_.displayName=`Steps.Content`;function v({className:e,...r}){return n(c.CompletedContent,{className:t(e),...r})}v.displayName=`Steps.CompletedContent`;function y({className:e,...r}){return n(c.NextTrigger,{className:t(e),...r})}y.displayName=`Steps.NextTrigger`;function b({className:e,...r}){return n(c.PrevTrigger,{className:t(e),...r})}b.displayName=`Steps.PrevTrigger`;function x({className:e,...r}){return n(c.Progress,{className:t(`relative h-1 w-full overflow-hidden rounded-sm bg-subtle`,`after:absolute after:inset-y-0 after:left-0 after:w-[calc(var(--percent)*1%)] after:bg-strong after:transition-[width] after:duration-300 after:ease-out`,e),...r})}x.displayName=`Steps.Progress`;function S({className:e,...r}){return n(`span`,{className:t(`hidden text-sm font-bold md:block`,`group-data-incomplete/step:text-subtle`,`group-data-current/step:text-subtle`,`group-data-complete/step:text-normal`,`group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger`,e),...r})}S.displayName=`Steps.TriggerText`;const C=Object.assign(d,{List:f,Item:p,Trigger:m,TriggerText:S,Indicator:h,Separator:g,Content:_,CompletedContent:v,NextTrigger:y,PrevTrigger:b,Progress:x,Context:c.Context,ItemContext:c.ItemContext,RootProvider:c.RootProvider});export{C as Steps,u as stepsVariants,l as useSteps};
1
+ "use client";import{cva as e}from"class-variance-authority";import{cn as t}from"@oztix/roadie-core/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useCallback as i,useEffect as a,useRef as o}from"react";import{CheckIcon as s}from"@phosphor-icons/react";import{Steps as c,useSteps as l}from"@ark-ui/react/steps";const u=e(`grid w-full gap-4`,{variants:{direction:{horizontal:``,vertical:`grid-cols-[auto_1fr] gap-3`}},defaultVariants:{direction:`horizontal`}});function d({direction:e,className:r,...i}){return n(c.Root,{orientation:e===`vertical`?`vertical`:`horizontal`,className:t(u({direction:e,className:r})),...i})}d.displayName=`Steps`;function f({className:e,...r}){return n(c.List,{className:t(`flex items-start justify-start rounded-xl bg-subtler px-4 py-3`,`data-[orientation=vertical]:flex-col data-[orientation=vertical]:gap-2`,e),...r})}f.displayName=`Steps.List`;function p({className:e,invalid:r,...s}){let l=c.Item,u=o(null),d=o(r);a(()=>{if(r&&!d.current){let e=u.current?.querySelector(`[data-part="trigger"]`);e&&(e.classList.remove(`animate-shake`),e.offsetWidth,e.classList.add(`animate-shake`))}d.current=r},[r]);let f=i(e=>{let t=e.currentTarget.querySelector(`[data-part="trigger"]`);t&&t.getAttribute(`tabindex`)===`-1`&&t.hasAttribute(`data-incomplete`)&&(t.classList.remove(`animate-shake`),t.offsetWidth,t.classList.add(`animate-shake`))},[]);return n(l,{ref:u,className:t(`group/step-item flex flex-1 items-center last:flex-none`,`data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch`,e),"data-invalid":r||void 0,onClick:f,...s})}p.displayName=`Steps.Item`;function m({className:e,...r}){return n(c.Trigger,{className:t(`group/step flex cursor-pointer flex-col items-center gap-1 rounded-md border-none bg-transparent px-3 py-3 transition-all duration-200 ease-out`,`data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-center data-[orientation=vertical]:gap-2`,`data-current:intent-accent`,e),...r})}m.displayName=`Steps.Trigger`;function h({className:e,children:i,...a}){return r(c.Indicator,{className:t(`flex size-10 shrink-0 items-center justify-center rounded-full border text-lg font-black outline-0 outline-offset-0 outline-[color-mix(in_oklch,var(--color-accent-9)_var(--focus-ring-opacity),transparent)] transition-all duration-200 ease-out`,`border-subtle bg-raised text-subtler`,`group-hover/step:outline-[length:var(--focus-ring-width)]`,`data-current:border-normal data-current:bg-subtle data-current:text-subtle`,`data-complete:emphasis-strong`,`group-data-invalid/step-item:emphasis-normal group-data-invalid/step-item:border-normal group-data-invalid/step-item:bg-subtle group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger`,e),...a,children:[n(`span`,{className:`group-data-complete/step:hidden group-data-invalid/step-item:!block`,children:i}),n(s,{weight:`bold`,className:`hidden size-5 group-data-complete/step:block group-data-invalid/step-item:!hidden`})]})}h.displayName=`Steps.Indicator`;function g({className:e,...r}){return n(c.Separator,{className:t(`h-0.5 flex-1 bg-subtle transition-all duration-200 ease-out md:bottom-0 md:translate-y-5.5`,`data-complete:bg-strong`,`data-[orientation=vertical]:ml-4 data-[orientation=vertical]:h-4 data-[orientation=vertical]:w-0.5`,e),...r})}g.displayName=`Steps.Separator`;function _({className:e,...r}){let i=c.Content;return n(i,{className:t(e),...r})}_.displayName=`Steps.Content`;function v({className:e,...r}){return n(c.CompletedContent,{className:t(e),...r})}v.displayName=`Steps.CompletedContent`;function y({className:e,...r}){return n(c.NextTrigger,{className:t(e),...r})}y.displayName=`Steps.NextTrigger`;function b({className:e,...r}){return n(c.PrevTrigger,{className:t(e),...r})}b.displayName=`Steps.PrevTrigger`;function x({className:e,...r}){return n(c.Progress,{className:t(`relative h-1 w-full overflow-hidden rounded-sm bg-subtle`,`after:absolute after:inset-y-0 after:left-0 after:w-[calc(var(--percent)*1%)] after:bg-strong after:transition-[width] after:duration-300 after:ease-out`,e),...r})}x.displayName=`Steps.Progress`;function S({className:e,...r}){return n(`span`,{className:t(`hidden text-sm font-bold md:block`,`group-data-incomplete/step:text-subtle`,`group-data-current/step:text-subtle`,`group-data-complete/step:text-normal`,`group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger`,e),...r})}S.displayName=`Steps.TriggerText`,d.List=f,d.Item=p,d.Trigger=m,d.TriggerText=S,d.Indicator=h,d.Separator=g,d.Content=_,d.CompletedContent=v,d.NextTrigger=y,d.PrevTrigger=b,d.Progress=x,d.Context=c.Context,d.ItemContext=c.ItemContext,d.RootProvider=c.RootProvider;export{d as Steps,v as StepsCompletedContent,_ as StepsContent,h as StepsIndicator,p as StepsItem,f as StepsList,y as StepsNextTrigger,b as StepsPrevTrigger,x as StepsProgress,g as StepsSeparator,m as StepsTrigger,S as StepsTriggerText,u as stepsVariants,l as useSteps};
2
2
  //# sourceMappingURL=Steps.js.map
package/dist/Steps.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.js","names":["ArkSteps"],"sources":["../src/components/Steps/index.tsx"],"sourcesContent":["'use client'\n\nimport { type ComponentProps, useCallback, useEffect, useRef } from 'react'\n\nimport {\n Steps as ArkSteps,\n type UseStepsProps,\n type UseStepsReturn,\n useSteps\n} from '@ark-ui/react/steps'\nimport { CheckIcon } from '@phosphor-icons/react'\nimport { type VariantProps, cva } from 'class-variance-authority'\n\nimport { cn } from '@oztix/roadie-core/utils'\n\n/* ─── Re-exports ─── */\n\nexport { useSteps, type UseStepsProps, type UseStepsReturn }\n\n/* ─── Root variants ─── */\n\nexport const stepsVariants = cva('grid w-full gap-4', {\n variants: {\n direction: {\n horizontal: '',\n vertical: 'grid-cols-[auto_1fr] gap-3'\n }\n },\n defaultVariants: {\n direction: 'horizontal'\n }\n})\n\n/* ─── Root ─── */\n\nexport type StepsProps = Omit<ArkSteps.RootProps, 'orientation'> &\n VariantProps<typeof stepsVariants>\n\nfunction StepsRoot({ direction, className, ...props }: StepsProps) {\n return (\n <ArkSteps.Root\n orientation={direction === 'vertical' ? 'vertical' : 'horizontal'}\n className={cn(stepsVariants({ direction, className }))}\n {...props}\n />\n )\n}\n\nStepsRoot.displayName = 'Steps'\n\n/* ─── List ─── */\n\ntype StepsListProps = ArkSteps.ListProps\n\nfunction StepsList({ className, ...props }: StepsListProps) {\n return (\n <ArkSteps.List\n className={cn(\n 'flex items-start justify-start rounded-xl bg-subtler px-4 py-3',\n 'data-[orientation=vertical]:flex-col data-[orientation=vertical]:gap-2',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsList.displayName = 'Steps.List'\n\n/* ─── Item ─── */\n\nexport interface StepsItemProps {\n index: number\n invalid?: boolean\n className?: string\n children?: React.ReactNode\n}\n\ninterface StepsItemInternalProps extends StepsItemProps {\n ref?: React.Ref<HTMLDivElement>\n onClick?: React.MouseEventHandler<HTMLDivElement>\n}\n\nfunction StepsItem({ className, invalid, ...props }: StepsItemProps) {\n // Ark UI's types lose `index` in the HTMLProps intersection (upstream bug).\n // Cast is safe — index is required by the Zag.js state machine at runtime.\n const Item = ArkSteps.Item as React.ComponentType<\n Omit<StepsItemInternalProps, 'invalid'>\n >\n\n const itemRef = useRef<HTMLDivElement>(null)\n const prevInvalid = useRef(invalid)\n\n useEffect(() => {\n if (invalid && !prevInvalid.current) {\n const trigger = itemRef.current?.querySelector(\n '[data-part=\"trigger\"]'\n ) as HTMLElement | null\n if (trigger) {\n trigger.classList.remove('animate-shake')\n void trigger.offsetWidth\n trigger.classList.add('animate-shake')\n }\n }\n prevInvalid.current = invalid\n }, [invalid])\n\n const handleClick = useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n const trigger = (e.currentTarget as HTMLElement).querySelector(\n '[data-part=\"trigger\"]'\n ) as HTMLElement | null\n if (!trigger) return\n // In linear mode, Ark sets tabindex=\"-1\" on non-current triggers\n // and the onClick returns early — the step doesn't change.\n // We detect this by checking tabindex and data-incomplete.\n const isLocked =\n trigger.getAttribute('tabindex') === '-1' &&\n trigger.hasAttribute('data-incomplete')\n if (!isLocked) return\n trigger.classList.remove('animate-shake')\n void trigger.offsetWidth\n trigger.classList.add('animate-shake')\n }, [])\n\n return (\n <Item\n ref={itemRef}\n className={cn(\n 'group/step-item flex flex-1 items-center last:flex-none',\n 'data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch',\n className\n )}\n data-invalid={invalid || undefined}\n onClick={handleClick}\n {...props}\n />\n )\n}\n\nStepsItem.displayName = 'Steps.Item'\n\n/* ─── Trigger ─── */\n\ntype StepsTriggerProps = ArkSteps.TriggerProps\n\nfunction StepsTrigger({ className, ...props }: StepsTriggerProps) {\n return (\n <ArkSteps.Trigger\n className={cn(\n 'group/step flex cursor-pointer flex-col items-center gap-1 rounded-md border-none bg-transparent px-3 py-3 transition-all duration-200 ease-out',\n 'data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-center data-[orientation=vertical]:gap-2',\n 'data-current:intent-accent',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsTrigger.displayName = 'Steps.Trigger'\n\n/* ─── Indicator ─── */\n\ntype StepsIndicatorProps = ArkSteps.IndicatorProps\n\nfunction StepsIndicator({\n className,\n children,\n ...props\n}: StepsIndicatorProps) {\n return (\n <ArkSteps.Indicator\n className={cn(\n 'flex size-10 shrink-0 items-center justify-center rounded-full border text-lg font-black outline-0 outline-offset-0 outline-[color-mix(in_oklch,var(--color-accent-9)_var(--focus-ring-opacity),transparent)] transition-all duration-200 ease-out',\n 'border-subtle bg-raised text-subtler',\n 'group-hover/step:outline-[length:var(--focus-ring-width)]',\n 'data-current:border-normal data-current:bg-subtle data-current:text-subtle',\n 'data-complete:emphasis-strong',\n 'group-data-invalid/step-item:emphasis-normal group-data-invalid/step-item:border-normal group-data-invalid/step-item:bg-subtle group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger',\n className\n )}\n {...props}\n >\n <span className='group-data-complete/step:hidden group-data-invalid/step-item:!block'>\n {children}\n </span>\n <CheckIcon\n weight='bold'\n className='hidden size-5 group-data-complete/step:block group-data-invalid/step-item:!hidden'\n />\n </ArkSteps.Indicator>\n )\n}\n\nStepsIndicator.displayName = 'Steps.Indicator'\n\n/* ─── Separator ─── */\n\ntype StepsSeparatorProps = ArkSteps.SeparatorProps\n\nfunction StepsSeparator({ className, ...props }: StepsSeparatorProps) {\n return (\n <ArkSteps.Separator\n className={cn(\n 'h-0.5 flex-1 bg-subtle transition-all duration-200 ease-out md:bottom-0 md:translate-y-5.5',\n 'data-complete:bg-strong',\n 'data-[orientation=vertical]:ml-4 data-[orientation=vertical]:h-4 data-[orientation=vertical]:w-0.5',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsSeparator.displayName = 'Steps.Separator'\n\n/* ─── Content ─── */\n\ninterface StepsContentProps {\n index: number\n className?: string\n children?: React.ReactNode\n}\n\nfunction StepsContent({ className, ...props }: StepsContentProps) {\n const Content = ArkSteps.Content as React.ComponentType<StepsContentProps>\n return <Content className={cn(className)} {...props} />\n}\n\nStepsContent.displayName = 'Steps.Content'\n\n/* ─── CompletedContent ─── */\n\ntype StepsCompletedContentProps = ArkSteps.CompletedContentProps\n\nfunction StepsCompletedContent({\n className,\n ...props\n}: StepsCompletedContentProps) {\n return <ArkSteps.CompletedContent className={cn(className)} {...props} />\n}\n\nStepsCompletedContent.displayName = 'Steps.CompletedContent'\n\n/* ─── NextTrigger ─── */\n\ntype StepsNextTriggerProps = ArkSteps.NextTriggerProps\n\nfunction StepsNextTrigger({ className, ...props }: StepsNextTriggerProps) {\n return <ArkSteps.NextTrigger className={cn(className)} {...props} />\n}\n\nStepsNextTrigger.displayName = 'Steps.NextTrigger'\n\n/* ─── PrevTrigger ─── */\n\ntype StepsPrevTriggerProps = ArkSteps.PrevTriggerProps\n\nfunction StepsPrevTrigger({ className, ...props }: StepsPrevTriggerProps) {\n return <ArkSteps.PrevTrigger className={cn(className)} {...props} />\n}\n\nStepsPrevTrigger.displayName = 'Steps.PrevTrigger'\n\n/* ─── Progress ─── */\n\ntype StepsProgressProps = ArkSteps.ProgressProps\n\nfunction StepsProgress({ className, ...props }: StepsProgressProps) {\n return (\n <ArkSteps.Progress\n className={cn(\n 'relative h-1 w-full overflow-hidden rounded-sm bg-subtle',\n 'after:absolute after:inset-y-0 after:left-0 after:w-[calc(var(--percent)*1%)] after:bg-strong after:transition-[width] after:duration-300 after:ease-out',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsProgress.displayName = 'Steps.Progress'\n\n/* ─── TriggerText ─── */\n\ntype StepsTriggerTextProps = ComponentProps<'span'>\n\nfunction StepsTriggerText({ className, ...props }: StepsTriggerTextProps) {\n return (\n <span\n className={cn(\n 'hidden text-sm font-bold md:block',\n 'group-data-incomplete/step:text-subtle',\n 'group-data-current/step:text-subtle',\n 'group-data-complete/step:text-normal',\n 'group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsTriggerText.displayName = 'Steps.TriggerText'\n\n/* ─── Compound export ─── */\n\nexport const Steps = Object.assign(StepsRoot, {\n List: StepsList,\n Item: StepsItem,\n Trigger: StepsTrigger,\n TriggerText: StepsTriggerText,\n Indicator: StepsIndicator,\n Separator: StepsSeparator,\n Content: StepsContent,\n CompletedContent: StepsCompletedContent,\n NextTrigger: StepsNextTrigger,\n PrevTrigger: StepsPrevTrigger,\n Progress: StepsProgress,\n Context: ArkSteps.Context,\n ItemContext: ArkSteps.ItemContext,\n RootProvider: ArkSteps.RootProvider\n})\n"],"mappings":"uUAqBA,MAAa,EAAgB,EAAI,oBAAqB,CACpD,SAAU,CACR,UAAW,CACT,WAAY,GACZ,SAAU,6BACX,CACF,CACD,gBAAiB,CACf,UAAW,aACZ,CACF,CAAC,CAOF,SAAS,EAAU,CAAE,YAAW,YAAW,GAAG,GAAqB,CACjE,OACE,EAACA,EAAS,KAAV,CACE,YAAa,IAAc,WAAa,WAAa,aACrD,UAAW,EAAG,EAAc,CAAE,YAAW,YAAW,CAAC,CAAC,CACtD,GAAI,EACJ,CAAA,CAIN,EAAU,YAAc,QAMxB,SAAS,EAAU,CAAE,YAAW,GAAG,GAAyB,CAC1D,OACE,EAACA,EAAS,KAAV,CACE,UAAW,EACT,iEACA,yEACA,EACD,CACD,GAAI,EACJ,CAAA,CAIN,EAAU,YAAc,aAgBxB,SAAS,EAAU,CAAE,YAAW,UAAS,GAAG,GAAyB,CAGnE,IAAM,EAAOA,EAAS,KAIhB,EAAU,EAAuB,KAAK,CACtC,EAAc,EAAO,EAAQ,CAEnC,MAAgB,CACd,GAAI,GAAW,CAAC,EAAY,QAAS,CACnC,IAAM,EAAU,EAAQ,SAAS,cAC/B,wBACD,CACG,IACF,EAAQ,UAAU,OAAO,gB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,EAAsB,CAC7B,YACA,GAAG,GAC0B,CAC7B,OAAO,EAACA,EAAS,iBAAV,CAA2B,UAAW,EAAG,EAAU,CAAE,GAAI,EAAS,CAAA,CAG3E,EAAsB,YAAc,yBAMpC,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAgC,CACxE,OAAO,EAACA,EAAS,YAAV,CAAsB,UAAW,EAAG,EAAU,CAAE,GAAI,EAAS,CAAA,CAGtE,EAAiB,YAAc,oBAM/B,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAgC,CACxE,OAAO,EAACA,EAAS,YAAV,CAAsB,UAAW,EAAG,EAAU,CAAE,GAAI,EAAS,CAAA,CAGtE,EAAiB,YAAc,oBAM/B,SAAS,EAAc,CAAE,YAAW,GAAG,GAA6B,CAClE,OACE,EAACA,EAAS,SAAV,CACE,UAAW,EACT,2DACA,2JACA,EACD,CACD,GAAI,EACJ,CAAA,CAIN,EAAc,YAAc,iBAM5B,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAgC,CACxE,OACE,EAAC,OAAD,CACE,UAAW,EACT,oCACA,yCACA,sCACA,uCACA,sFACA,EACD,CACD,GAAI,EACJ,CAAA,CAIN,EAAiB,YAAc,oBAI/B,MAAa,EAAQ,OAAO,OAAO,EAAW,CAC5C,KAAM,EACN,KAAM,EACN,QAAS,EACT,YAAa,EACb,UAAW,EACX,UAAW,EACX,QAAS,EACT,iBAAkB,EAClB,YAAa,EACb,YAAa,EACb,SAAU,EACV,QAASA,EAAS,QAClB,YAAaA,EAAS,YACtB,aAAcA,EAAS,aACxB,CAAC"}
1
+ {"version":3,"file":"Steps.js","names":["ArkSteps"],"sources":["../src/components/Steps/index.tsx"],"sourcesContent":["'use client'\n\nimport { type ComponentProps, useCallback, useEffect, useRef } from 'react'\n\nimport {\n Steps as ArkSteps,\n type UseStepsProps,\n type UseStepsReturn,\n useSteps\n} from '@ark-ui/react/steps'\nimport { CheckIcon } from '@phosphor-icons/react'\nimport { type VariantProps, cva } from 'class-variance-authority'\n\nimport { cn } from '@oztix/roadie-core/utils'\n\n/* ─── Re-exports ─── */\n\nexport { useSteps, type UseStepsProps, type UseStepsReturn }\n\n/* ─── Root variants ─── */\n\nexport const stepsVariants = cva('grid w-full gap-4', {\n variants: {\n direction: {\n horizontal: '',\n vertical: 'grid-cols-[auto_1fr] gap-3'\n }\n },\n defaultVariants: {\n direction: 'horizontal'\n }\n})\n\n/* ─── Root ─── */\n\nexport type StepsProps = Omit<ArkSteps.RootProps, 'orientation'> &\n VariantProps<typeof stepsVariants>\n\nexport function Steps({ direction, className, ...props }: StepsProps) {\n return (\n <ArkSteps.Root\n orientation={direction === 'vertical' ? 'vertical' : 'horizontal'}\n className={cn(stepsVariants({ direction, className }))}\n {...props}\n />\n )\n}\n\nSteps.displayName = 'Steps'\n\n/* ─── List ─── */\n\ntype StepsListProps = ArkSteps.ListProps\n\nexport function StepsList({ className, ...props }: StepsListProps) {\n return (\n <ArkSteps.List\n className={cn(\n 'flex items-start justify-start rounded-xl bg-subtler px-4 py-3',\n 'data-[orientation=vertical]:flex-col data-[orientation=vertical]:gap-2',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsList.displayName = 'Steps.List'\n\n/* ─── Item ─── */\n\nexport interface StepsItemProps {\n index: number\n invalid?: boolean\n className?: string\n children?: React.ReactNode\n}\n\ninterface StepsItemInternalProps extends StepsItemProps {\n ref?: React.Ref<HTMLDivElement>\n onClick?: React.MouseEventHandler<HTMLDivElement>\n}\n\nexport function StepsItem({ className, invalid, ...props }: StepsItemProps) {\n // Ark UI's types lose `index` in the HTMLProps intersection (upstream bug).\n // Cast is safe — index is required by the Zag.js state machine at runtime.\n const Item = ArkSteps.Item as React.ComponentType<\n Omit<StepsItemInternalProps, 'invalid'>\n >\n\n const itemRef = useRef<HTMLDivElement>(null)\n const prevInvalid = useRef(invalid)\n\n useEffect(() => {\n if (invalid && !prevInvalid.current) {\n const trigger = itemRef.current?.querySelector(\n '[data-part=\"trigger\"]'\n ) as HTMLElement | null\n if (trigger) {\n trigger.classList.remove('animate-shake')\n void trigger.offsetWidth\n trigger.classList.add('animate-shake')\n }\n }\n prevInvalid.current = invalid\n }, [invalid])\n\n const handleClick = useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n const trigger = (e.currentTarget as HTMLElement).querySelector(\n '[data-part=\"trigger\"]'\n ) as HTMLElement | null\n if (!trigger) return\n // In linear mode, Ark sets tabindex=\"-1\" on non-current triggers\n // and the onClick returns early — the step doesn't change.\n // We detect this by checking tabindex and data-incomplete.\n const isLocked =\n trigger.getAttribute('tabindex') === '-1' &&\n trigger.hasAttribute('data-incomplete')\n if (!isLocked) return\n trigger.classList.remove('animate-shake')\n void trigger.offsetWidth\n trigger.classList.add('animate-shake')\n }, [])\n\n return (\n <Item\n ref={itemRef}\n className={cn(\n 'group/step-item flex flex-1 items-center last:flex-none',\n 'data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch',\n className\n )}\n data-invalid={invalid || undefined}\n onClick={handleClick}\n {...props}\n />\n )\n}\n\nStepsItem.displayName = 'Steps.Item'\n\n/* ─── Trigger ─── */\n\ntype StepsTriggerProps = ArkSteps.TriggerProps\n\nexport function StepsTrigger({ className, ...props }: StepsTriggerProps) {\n return (\n <ArkSteps.Trigger\n className={cn(\n 'group/step flex cursor-pointer flex-col items-center gap-1 rounded-md border-none bg-transparent px-3 py-3 transition-all duration-200 ease-out',\n 'data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-center data-[orientation=vertical]:gap-2',\n 'data-current:intent-accent',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsTrigger.displayName = 'Steps.Trigger'\n\n/* ─── Indicator ─── */\n\ntype StepsIndicatorProps = ArkSteps.IndicatorProps\n\nexport function StepsIndicator({\n className,\n children,\n ...props\n}: StepsIndicatorProps) {\n return (\n <ArkSteps.Indicator\n className={cn(\n 'flex size-10 shrink-0 items-center justify-center rounded-full border text-lg font-black outline-0 outline-offset-0 outline-[color-mix(in_oklch,var(--color-accent-9)_var(--focus-ring-opacity),transparent)] transition-all duration-200 ease-out',\n 'border-subtle bg-raised text-subtler',\n 'group-hover/step:outline-[length:var(--focus-ring-width)]',\n 'data-current:border-normal data-current:bg-subtle data-current:text-subtle',\n 'data-complete:emphasis-strong',\n 'group-data-invalid/step-item:emphasis-normal group-data-invalid/step-item:border-normal group-data-invalid/step-item:bg-subtle group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger',\n className\n )}\n {...props}\n >\n <span className='group-data-complete/step:hidden group-data-invalid/step-item:!block'>\n {children}\n </span>\n <CheckIcon\n weight='bold'\n className='hidden size-5 group-data-complete/step:block group-data-invalid/step-item:!hidden'\n />\n </ArkSteps.Indicator>\n )\n}\n\nStepsIndicator.displayName = 'Steps.Indicator'\n\n/* ─── Separator ─── */\n\ntype StepsSeparatorProps = ArkSteps.SeparatorProps\n\nexport function StepsSeparator({ className, ...props }: StepsSeparatorProps) {\n return (\n <ArkSteps.Separator\n className={cn(\n 'h-0.5 flex-1 bg-subtle transition-all duration-200 ease-out md:bottom-0 md:translate-y-5.5',\n 'data-complete:bg-strong',\n 'data-[orientation=vertical]:ml-4 data-[orientation=vertical]:h-4 data-[orientation=vertical]:w-0.5',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsSeparator.displayName = 'Steps.Separator'\n\n/* ─── Content ─── */\n\ninterface StepsContentProps {\n index: number\n className?: string\n children?: React.ReactNode\n}\n\nexport function StepsContent({ className, ...props }: StepsContentProps) {\n const Content = ArkSteps.Content as React.ComponentType<StepsContentProps>\n return <Content className={cn(className)} {...props} />\n}\n\nStepsContent.displayName = 'Steps.Content'\n\n/* ─── CompletedContent ─── */\n\ntype StepsCompletedContentProps = ArkSteps.CompletedContentProps\n\nexport function StepsCompletedContent({\n className,\n ...props\n}: StepsCompletedContentProps) {\n return <ArkSteps.CompletedContent className={cn(className)} {...props} />\n}\n\nStepsCompletedContent.displayName = 'Steps.CompletedContent'\n\n/* ─── NextTrigger ─── */\n\ntype StepsNextTriggerProps = ArkSteps.NextTriggerProps\n\nexport function StepsNextTrigger({\n className,\n ...props\n}: StepsNextTriggerProps) {\n return <ArkSteps.NextTrigger className={cn(className)} {...props} />\n}\n\nStepsNextTrigger.displayName = 'Steps.NextTrigger'\n\n/* ─── PrevTrigger ─── */\n\ntype StepsPrevTriggerProps = ArkSteps.PrevTriggerProps\n\nexport function StepsPrevTrigger({\n className,\n ...props\n}: StepsPrevTriggerProps) {\n return <ArkSteps.PrevTrigger className={cn(className)} {...props} />\n}\n\nStepsPrevTrigger.displayName = 'Steps.PrevTrigger'\n\n/* ─── Progress ─── */\n\ntype StepsProgressProps = ArkSteps.ProgressProps\n\nexport function StepsProgress({ className, ...props }: StepsProgressProps) {\n return (\n <ArkSteps.Progress\n className={cn(\n 'relative h-1 w-full overflow-hidden rounded-sm bg-subtle',\n 'after:absolute after:inset-y-0 after:left-0 after:w-[calc(var(--percent)*1%)] after:bg-strong after:transition-[width] after:duration-300 after:ease-out',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsProgress.displayName = 'Steps.Progress'\n\n/* ─── TriggerText ─── */\n\ntype StepsTriggerTextProps = ComponentProps<'span'>\n\nexport function StepsTriggerText({\n className,\n ...props\n}: StepsTriggerTextProps) {\n return (\n <span\n className={cn(\n 'hidden text-sm font-bold md:block',\n 'group-data-incomplete/step:text-subtle',\n 'group-data-current/step:text-subtle',\n 'group-data-complete/step:text-normal',\n 'group-data-invalid/step-item:text-subtle group-data-invalid/step-item:intent-danger',\n className\n )}\n {...props}\n />\n )\n}\n\nStepsTriggerText.displayName = 'Steps.TriggerText'\n\n/* ─── Compound export ─── */\n\nSteps.List = StepsList\nSteps.Item = StepsItem\nSteps.Trigger = StepsTrigger\nSteps.TriggerText = StepsTriggerText\nSteps.Indicator = StepsIndicator\nSteps.Separator = StepsSeparator\nSteps.Content = StepsContent\nSteps.CompletedContent = StepsCompletedContent\nSteps.NextTrigger = StepsNextTrigger\nSteps.PrevTrigger = StepsPrevTrigger\nSteps.Progress = StepsPro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E,GAAI,EAAS,CAAA,CAGtE,EAAiB,YAAc,oBAM/B,SAAgB,EAAc,CAAE,YAAW,GAAG,GAA6B,CACzE,OACE,EAACA,EAAS,SAAV,CACE,UAAW,EACT,2DACA,2JACA,EACD,CACD,GAAI,EACJ,CAAA,CAIN,EAAc,YAAc,iBAM5B,SAAgB,EAAiB,CAC/B,YACA,GAAG,GACqB,CACxB,OACE,EAAC,OAAD,CACE,UAAW,EACT,oCACA,yCACA,sCACA,uCACA,sFACA,EACD,CACD,GAAI,EACJ,CAAA,CAIN,EAAiB,YAAc,oBAI/B,EAAM,KAAO,EACb,EAAM,KAAO,EACb,EAAM,QAAU,EAChB,EAAM,YAAc,EACpB,EAAM,UAAY,EAClB,EAAM,UAAY,EAClB,EAAM,QAAU,EAChB,EAAM,iBAAmB,EACzB,EAAM,YAAc,EACpB,EAAM,YAAc,EACpB,EAAM,SAAW,EACjB,EAAM,QAAUA,EAAS,QACzB,EAAM,YAAcA,EAAS,YAC7B,EAAM,aAAeA,EAAS"}
@@ -1,14 +1,23 @@
1
- import { r as buttonVariants } from "./Button-Dt1TGgrL.js";
2
- import { VariantProps } from "class-variance-authority";
3
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
2
  import { ComponentProps, ElementType } from "react";
5
3
 
6
4
  //#region src/components/LinkButton/LinkButton.d.ts
5
+ type LinkButtonIntent = 'neutral' | 'brand' | 'brand-secondary' | 'accent' | 'danger' | 'success' | 'warning' | 'info';
6
+ type LinkButtonEmphasis = 'strong' | 'normal' | 'subtle' | 'subtler';
7
7
  type LinkButtonSize = 'xs' | 'sm' | 'md' | 'lg';
8
8
  type LinkButtonProps<T extends ElementType = 'a'> = {
9
9
  as?: T;
10
- intent?: VariantProps<typeof buttonVariants>['intent'];
11
- emphasis?: VariantProps<typeof buttonVariants>['emphasis'];
10
+ /**
11
+ * @default 'neutral'
12
+ */
13
+ intent?: LinkButtonIntent;
14
+ /**
15
+ * @default 'normal'
16
+ */
17
+ emphasis?: LinkButtonEmphasis;
18
+ /**
19
+ * @default 'md'
20
+ */
12
21
  size?: LinkButtonSize;
13
22
  className?: string;
14
23
  } & Omit<ComponentProps<T>, 'as' | 'intent' | 'emphasis' | 'size' | 'className'>;
@@ -29,8 +38,17 @@ type LinkIconButtonSize = 'icon-xs' | 'icon-sm' | 'icon-md' | 'icon-lg';
29
38
  type LinkIconButtonProps<T extends ElementType = 'a'> = {
30
39
  as?: T;
31
40
  'aria-label': string;
32
- intent?: VariantProps<typeof buttonVariants>['intent'];
33
- emphasis?: VariantProps<typeof buttonVariants>['emphasis'];
41
+ /**
42
+ * @default 'neutral'
43
+ */
44
+ intent?: LinkButtonIntent;
45
+ /**
46
+ * @default 'normal'
47
+ */
48
+ emphasis?: LinkButtonEmphasis;
49
+ /**
50
+ * @default 'icon-md'
51
+ */
34
52
  size?: LinkIconButtonSize;
35
53
  className?: string;
36
54
  } & Omit<ComponentProps<T>, 'as' | 'aria-label' | 'intent' | 'emphasis' | 'size' | 'className'>;
@@ -47,4 +65,4 @@ declare namespace LinkIconButton {
47
65
  }
48
66
  //#endregion
49
67
  export { LinkButtonProps as i, LinkIconButtonProps as n, LinkButton as r, LinkIconButton as t };
50
- //# sourceMappingURL=index-0w-ydb3o.d.ts.map
68
+ //# sourceMappingURL=index-4M9XZOF1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-4M9XZOF1.d.ts","names":[],"sources":["../src/components/LinkButton/LinkButton.tsx","../src/components/LinkButton/LinkIconButton.tsx"],"mappings":";;;;KAMY,gBAAA;AAAA,KAUA,kBAAA;AAAA,KAEA,cAAA;AAAA,KAEA,eAAA,WAA0B,WAAA;EACpC,EAAA,GAAK,CAAA;;;;EAIL,MAAA,GAAS,gBAAA;EATmB;;;EAa5B,QAAA,GAAW,kBAAA;EAXD;;;EAeV,IAAA,GAAO,cAAA;EACP,SAAA;AAAA,IACE,IAAA,CAAK,cAAA,CAAe,CAAA;AAAA,iBAER,UAAA,WAAqB,WAAA,OAAA,CAAA;EACnC,EAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,IAAA;EAAA,GACG;AAAA,GACF,eAAA,CAAgB,CAAA,IAAE,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAPL,UAAA;EAAA,IAAU,WAAA;AAAA;;;KC9Bd,kBAAA;AAAA,KAEA,mBAAA,WAA8B,WAAA;EACxC,EAAA,GAAK,CAAA;EACL,YAAA;;;;EAIA,MAAA,GAAS,gBAAA;EDCmB;;;ECG5B,QAAA,GAAW,kBAAA;EDDD;;;ECKV,IAAA,GAAO,kBAAA;EACP,SAAA;AAAA,IACE,IAAA,CACF,cAAA,CAAe,CAAA;AAAA,iBAID,cAAA,WAAyB,WAAA,OAAA,CAAA;EACvC,EAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,IAAA;EAAA,GACG;AAAA,GACF,mBAAA,CAAoB,CAAA,IAAE,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAPT,cAAA;EAAA,IAAc,WAAA;AAAA"}
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@ import { Accordion, AccordionProps, accordionVariants } from "./Accordion.js";
2
2
  import { Autocomplete, AutocompleteClearProps, AutocompleteCollectionProps, AutocompleteEmptyProps, AutocompleteGroupLabelProps, AutocompleteGroupProps, AutocompleteInputGroupProps, AutocompleteInputProps, AutocompleteItemProps, AutocompleteListProps, AutocompletePopupProps, AutocompletePortalProps, AutocompletePositionerProps, AutocompleteProps, AutocompleteRootProps, AutocompleteStatusProps, AutocompleteTriggerProps, AutocompleteValueProps, autocompleteInputGroupVariants, useFilteredItems } from "./Autocomplete.js";
3
3
  import { Badge, BadgeProps, badgeVariants } from "./Badge.js";
4
4
  import { Breadcrumb, BreadcrumbSeparatorProps } from "./Breadcrumb.js";
5
- import { n as ButtonProps, r as buttonVariants, t as Button } from "./Button-Dt1TGgrL.js";
6
- import { n as IconButtonProps, t as IconButton } from "./index-C3_4djmE.js";
5
+ import { a as buttonVariants, i as ButtonProps, n as IconButtonProps, r as Button, t as IconButton } from "./IconButton-BajbaUJ_.js";
7
6
  import { Card, CardProps, cardVariants } from "./Card.js";
7
+ import { Carousel, CarouselActions, CarouselContentOverflow, CarouselContentProps, CarouselControlsProps, CarouselDotsProps, CarouselHeaderProps, CarouselItemProps, CarouselNavButtonProps, CarouselProps, CarouselState, CarouselTitleLinkProps, CarouselTitleProps, UseCarouselReturn, carouselContainerVariants, carouselContentVariants, carouselDotsVariants, carouselItemVariants, useCarousel, useCarouselUnsafeEmbla } from "./Carousel.js";
8
8
  import { Code, CodeProps, codeVariants } from "./Code.js";
9
9
  import { Combobox, ComboboxClearProps, ComboboxCollectionProps, ComboboxEmptyProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInputGroupProps, ComboboxInputProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxLabelProps, ComboboxListProps, ComboboxPopupProps, ComboboxPortalProps, ComboboxPositionerProps, ComboboxProps, ComboboxRootProps, ComboboxStatusProps, ComboboxTriggerProps, Filter as ComboboxFilter, FilterOptions as ComboboxFilterOptions, comboboxInputGroupVariants, useFilter } from "./Combobox.js";
10
10
  import { Input, InputProps, inputVariants } from "./Input.js";
@@ -15,7 +15,7 @@ import { Fieldset, FieldsetErrorTextProps, FieldsetHelperTextProps, FieldsetLege
15
15
  import { Mark, MarkProps, markVariants } from "./Mark.js";
16
16
  import { Highlight, HighlightProps } from "./Highlight.js";
17
17
  import { OptionalIndicator, OptionalIndicatorProps, RequiredIndicator, RequiredIndicatorProps } from "./Indicator.js";
18
- import { i as LinkButtonProps, n as LinkIconButtonProps, r as LinkButton, t as LinkIconButton } from "./index-0w-ydb3o.js";
18
+ import { i as LinkButtonProps, n as LinkIconButtonProps, r as LinkButton, t as LinkIconButton } from "./index-4M9XZOF1.js";
19
19
  import { Marquee, MarqueeProps } from "./Marquee.js";
20
20
  import { Prose, ProseProps, proseVariants } from "./Prose.js";
21
21
  import { RadioGroup, RadioGroupErrorTextProps, RadioGroupHelperTextProps, RadioGroupItemProps, RadioGroupLabelProps, RadioGroupProps, radioGroupItemVariants, radioGroupVariants } from "./RadioGroup.js";
@@ -55,5 +55,5 @@ declare function ThemeProvider({
55
55
  }: ThemeProviderProps): _$react_jsx_runtime0.JSX.Element;
56
56
  declare function useTheme(): ThemeContextType;
57
57
  //#endregion
58
- export { Accordion, type AccordionProps, Autocomplete, type AutocompleteClearProps, type AutocompleteCollectionProps, type AutocompleteEmptyProps, type AutocompleteGroupLabelProps, type AutocompleteGroupProps, type AutocompleteInputGroupProps, type AutocompleteInputProps, type AutocompleteItemProps, type AutocompleteListProps, type AutocompletePopupProps, type AutocompletePortalProps, type AutocompletePositionerProps, type AutocompleteProps, type AutocompleteRootProps, type AutocompleteStatusProps, type AutocompleteTriggerProps, type AutocompleteValueProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, type CardProps, Code, type CodeProps, Combobox, type ComboboxClearProps, type ComboboxCollectionProps, type ComboboxEmptyProps, type ComboboxGroupLabelProps, type ComboboxGroupProps, type ComboboxInputGroupProps, type ComboboxInputProps, type ComboboxItemIndicatorProps, type ComboboxItemProps, type ComboboxLabelProps, type ComboboxListProps, type ComboboxPopupProps, type ComboboxPortalProps, type ComboboxPositionerProps, type ComboboxProps, type ComboboxRootProps, type ComboboxStatusProps, type ComboboxTriggerProps, Field, type FieldErrorTextProps, type FieldHelperTextProps, type FieldLabelProps, type FieldProps, Fieldset, type FieldsetErrorTextProps, type FieldsetHelperTextProps, type FieldsetLegendProps, type FieldsetProps, type ComboboxFilter as Filter, type ComboboxFilterOptions as FilterOptions, Highlight, type HighlightProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, LinkButton, type LinkButtonProps, LinkIconButton, type LinkIconButtonProps, Mark, type MarkProps, Marquee, type MarqueeProps, OptionalIndicator, type OptionalIndicatorProps, Prose, type ProseProps, RadioGroup, type RadioGroupErrorTextProps, type RadioGroupHelperTextProps, type RadioGroupItemProps, type RadioGroupLabelProps, type RadioGroupProps, RequiredIndicator, type RequiredIndicatorProps, Select, type SelectContentProps, type SelectErrorTextProps, type SelectGroupLabelProps, type SelectGroupProps, type SelectHelperTextProps, type SelectIconProps, type SelectItemIndicatorProps, type SelectItemProps, type SelectItemTextProps, type SelectLabelProps, type SelectPopupProps, type SelectPortalProps, type SelectPositionerProps, type SelectProps, type SelectRootProps, type SelectScrollDownArrowProps, type SelectScrollUpArrowProps, type SelectTriggerProps, type SelectValueProps, Separator, type SeparatorProps, Steps, type StepsItemProps, type StepsProps, Textarea, type TextareaProps, ThemeProvider, type ThemeProviderProps, type UseStepsProps, type UseStepsReturn, accordionVariants, autocompleteInputGroupVariants, badgeVariants, buttonVariants, cardVariants, codeVariants, comboboxInputGroupVariants, getAccentStyleTag, getThemeScript, inputVariants, markVariants, proseVariants, radioGroupItemVariants, radioGroupVariants, selectTriggerVariants, separatorVariants, stepsVariants, textareaVariants, useFieldContext, useFieldInputProps, useFilter, useFilteredItems, useSteps, useTheme };
58
+ export { Accordion, type AccordionProps, Autocomplete, type AutocompleteClearProps, type AutocompleteCollectionProps, type AutocompleteEmptyProps, type AutocompleteGroupLabelProps, type AutocompleteGroupProps, type AutocompleteInputGroupProps, type AutocompleteInputProps, type AutocompleteItemProps, type AutocompleteListProps, type AutocompletePopupProps, type AutocompletePortalProps, type AutocompletePositionerProps, type AutocompleteProps, type AutocompleteRootProps, type AutocompleteStatusProps, type AutocompleteTriggerProps, type AutocompleteValueProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbSeparatorProps, Button, type ButtonProps, Card, type CardProps, Carousel, type CarouselActions, type CarouselContentOverflow, type CarouselContentProps, type CarouselControlsProps, type CarouselDotsProps, type CarouselHeaderProps, type CarouselItemProps, type CarouselNavButtonProps, type CarouselProps, type CarouselState, type CarouselTitleLinkProps, type CarouselTitleProps, Code, type CodeProps, Combobox, type ComboboxClearProps, type ComboboxCollectionProps, type ComboboxEmptyProps, type ComboboxGroupLabelProps, type ComboboxGroupProps, type ComboboxInputGroupProps, type ComboboxInputProps, type ComboboxItemIndicatorProps, type ComboboxItemProps, type ComboboxLabelProps, type ComboboxListProps, type ComboboxPopupProps, type ComboboxPortalProps, type ComboboxPositionerProps, type ComboboxProps, type ComboboxRootProps, type ComboboxStatusProps, type ComboboxTriggerProps, Field, type FieldErrorTextProps, type FieldHelperTextProps, type FieldLabelProps, type FieldProps, Fieldset, type FieldsetErrorTextProps, type FieldsetHelperTextProps, type FieldsetLegendProps, type FieldsetProps, type ComboboxFilter as Filter, type ComboboxFilterOptions as FilterOptions, Highlight, type HighlightProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, LinkButton, type LinkButtonProps, LinkIconButton, type LinkIconButtonProps, Mark, type MarkProps, Marquee, type MarqueeProps, OptionalIndicator, type OptionalIndicatorProps, Prose, type ProseProps, RadioGroup, type RadioGroupErrorTextProps, type RadioGroupHelperTextProps, type RadioGroupItemProps, type RadioGroupLabelProps, type RadioGroupProps, RequiredIndicator, type RequiredIndicatorProps, Select, type SelectContentProps, type SelectErrorTextProps, type SelectGroupLabelProps, type SelectGroupProps, type SelectHelperTextProps, type SelectIconProps, type SelectItemIndicatorProps, type SelectItemProps, type SelectItemTextProps, type SelectLabelProps, type SelectPopupProps, type SelectPortalProps, type SelectPositionerProps, type SelectProps, type SelectRootProps, type SelectScrollDownArrowProps, type SelectScrollUpArrowProps, type SelectTriggerProps, type SelectValueProps, Separator, type SeparatorProps, Steps, type StepsItemProps, type StepsProps, Textarea, type TextareaProps, ThemeProvider, type ThemeProviderProps, type UseCarouselReturn, type UseStepsProps, type UseStepsReturn, accordionVariants, autocompleteInputGroupVariants, badgeVariants, buttonVariants, cardVariants, carouselContainerVariants, carouselContentVariants, carouselDotsVariants, carouselItemVariants, codeVariants, comboboxInputGroupVariants, getAccentStyleTag, getThemeScript, inputVariants, markVariants, proseVariants, radioGroupItemVariants, radioGroupVariants, selectTriggerVariants, separatorVariants, stepsVariants, textareaVariants, useCarousel, useCarouselUnsafeEmbla, useFieldContext, useFieldInputProps, useFilter, useFilteredItems, useSteps, useTheme };
59
59
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./Button-CDQ6ik0P.js";import{t as n}from"./Button-DdE0vCfo.js";import{n as r,t as i}from"./LinkButton-9nnOzX_0.js";import{Code as a,codeVariants as o}from"./Code.js";import{Mark as s,markVariants as c}from"./Mark.js";import{Highlight as l}from"./Highlight.js";import{Prose as u,proseVariants as d}from"./Prose.js";import{Accordion as ee,accordionVariants as f}from"./Accordion.js";import{Badge as p,badgeVariants as m}from"./Badge.js";import{Breadcrumb as h}from"./Breadcrumb.js";import{Card as g,cardVariants as _}from"./Card.js";import{Separator as te,separatorVariants as ne}from"./Separator.js";import{Marquee as v}from"./Marquee.js";import{Steps as y,stepsVariants as b,useSteps as x}from"./Steps.js";import{OptionalIndicator as S,RequiredIndicator as C}from"./Indicator.js";import{Label as w}from"./Label.js";import{Input as T,inputVariants as E}from"./Input.js";import{Textarea as D,textareaVariants as O}from"./Textarea.js";import{Field as k,useFieldContext as A,useFieldInputProps as j}from"./Field.js";import{Select as M,selectTriggerVariants as N}from"./Select.js";import{Combobox as P,comboboxInputGroupVariants as F,useFilter as I}from"./Combobox.js";import{Autocomplete as re,autocompleteInputGroupVariants as L,useFilteredItems as R}from"./Autocomplete.js";import{RadioGroup as z,radioGroupItemVariants as B,radioGroupVariants as V}from"./RadioGroup.js";import{Fieldset as H}from"./Fieldset.js";import{jsx as U}from"react/jsx-runtime";import*as W from"react";import{generateAccentScale as G,generateNeutralScale as K,getOklchChroma as q,getOklchHue as J}from"@oztix/roadie-core/colors";import{getThemeScript as Y}from"@oztix/roadie-core/theme";const X=`theme`,ie=typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`color`,`oklch(0 0 0)`),Z=W.createContext(void 0);async function ae(e,t=`roadie-accent-theme`){let n=await G(e),r=await K(e),i=Math.round(await J(e)),a=+(await q(e)).toFixed(4),o=n.light.map((e,t)=>`--color-accent-${t}: ${e};`).join(`
1
+ import{n as e,t}from"./Button-CDQ6ik0P.js";import{t as n}from"./IconButton-0UdUDm0O.js";import"./Button.js";import{n as r,t as i}from"./LinkButton-9nnOzX_0.js";import{Code as a,codeVariants as o}from"./Code.js";import{Mark as s,markVariants as c}from"./Mark.js";import{Highlight as l}from"./Highlight.js";import{Prose as ee,proseVariants as te}from"./Prose.js";import{Accordion as ne,accordionVariants as u}from"./Accordion.js";import{Badge as d,badgeVariants as re}from"./Badge.js";import{Breadcrumb as ie}from"./Breadcrumb.js";import{Card as ae,cardVariants as oe}from"./Card.js";import{Carousel as se,carouselContainerVariants as ce,carouselContentVariants as f,carouselDotsVariants as p,carouselItemVariants as m,useCarousel as h,useCarouselUnsafeEmbla as g}from"./Carousel.js";import{Separator as _,separatorVariants as v}from"./Separator.js";import{Marquee as y}from"./Marquee.js";import{Steps as b,stepsVariants as x,useSteps as S}from"./Steps.js";import{OptionalIndicator as C,RequiredIndicator as w}from"./Indicator.js";import{Label as T}from"./Label.js";import{Input as E,inputVariants as D}from"./Input.js";import{Textarea as O,textareaVariants as k}from"./Textarea.js";import{Field as A,useFieldContext as j,useFieldInputProps as M}from"./Field.js";import{Select as N,selectTriggerVariants as P}from"./Select.js";import{Combobox as le,comboboxInputGroupVariants as F,useFilter as I}from"./Combobox.js";import{Autocomplete as L,autocompleteInputGroupVariants as R,useFilteredItems as z}from"./Autocomplete.js";import{RadioGroup as B,radioGroupItemVariants as V,radioGroupVariants as H}from"./RadioGroup.js";import{Fieldset as U}from"./Fieldset.js";import{jsx as W}from"react/jsx-runtime";import*as G from"react";import{generateAccentScale as K,generateNeutralScale as q,getOklchChroma as J,getOklchHue as Y}from"@oztix/roadie-core/colors";import{getThemeScript as ue}from"@oztix/roadie-core/theme";const X=`theme`,de=typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`color`,`oklch(0 0 0)`),Z=G.createContext(void 0);async function fe(e,t=`roadie-accent-theme`){let n=await K(e),r=await q(e),i=Math.round(await Y(e)),a=+(await J(e)).toFixed(4),o=n.light.map((e,t)=>`--color-accent-${t}: ${e};`).join(`
2
2
  `),s=n.dark.map((e,t)=>`--color-accent-${t}: ${e};`).join(`
3
3
  `),c=r.light.map((e,t)=>`--color-neutral-${t}: ${e};`).join(`
4
4
  `),l=r.dark.map((e,t)=>`--color-neutral-${t}: ${e};`).join(`
@@ -13,12 +13,12 @@ import{n as e,t}from"./Button-CDQ6ik0P.js";import{t as n}from"./Button-DdE0vCfo.
13
13
  ${l}
14
14
  ${s}
15
15
  }
16
- </style>`}function Q(e){document.documentElement.classList.toggle(`dark`,e),document.documentElement.style.colorScheme=e?`dark`:`light`}function $(){try{return localStorage.getItem(X)}catch{return null}}function oe(e){try{localStorage.setItem(X,e?`dark`:`light`)}catch{}}function se({children:e,defaultAccentColor:t=`#0091EB`,defaultDark:n=!1,followSystem:r=!1}){let[i,a]=W.useState(t),[o,s]=W.useState(n);W.useEffect(()=>{let e=$();if(e){s(e===`dark`);return}if(r){let e=window.matchMedia(`(prefers-color-scheme: dark)`).matches;s(e),Q(e)}else s(document.documentElement.classList.contains(`dark`))},[]),W.useEffect(()=>{if(!r)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=e=>{$()||(s(e.matches),Q(e.matches))};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[r]);let c=W.useCallback(e=>{s(e),Q(e),oe(e)},[]);W.useEffect(()=>{let e=!1;async function t(){let t=Math.round(await J(i)),n=+(await q(i)).toFixed(4);if(e||document.getElementById(`roadie-accent-theme`)?.textContent?.includes(`--accent-hue: ${t}`))return;let r;if(ie)r=`
16
+ </style>`}function Q(e){document.documentElement.classList.toggle(`dark`,e),document.documentElement.style.colorScheme=e?`dark`:`light`}function $(){try{return localStorage.getItem(X)}catch{return null}}function pe(e){try{localStorage.setItem(X,e?`dark`:`light`)}catch{}}function me({children:e,defaultAccentColor:t=`#0091EB`,defaultDark:n=!1,followSystem:r=!1}){let[i,a]=G.useState(t),[o,s]=G.useState(n);G.useEffect(()=>{let e=$();if(e){s(e===`dark`);return}if(r){let e=window.matchMedia(`(prefers-color-scheme: dark)`).matches;s(e),Q(e)}else s(document.documentElement.classList.contains(`dark`))},[]),G.useEffect(()=>{if(!r)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=e=>{$()||(s(e.matches),Q(e.matches))};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[r]);let c=G.useCallback(e=>{s(e),Q(e),pe(e)},[]);G.useEffect(()=>{let e=!1;async function t(){let t=Math.round(await Y(i)),n=+(await J(i)).toFixed(4);if(e||document.getElementById(`roadie-accent-theme`)?.textContent?.includes(`--accent-hue: ${t}`))return;let r;if(de)r=`
17
17
  :root {
18
18
  --accent-hue: ${t};
19
19
  --accent-chroma: ${n};
20
20
  }
21
- `;else{let t=await G(i),n=await K(i);if(e)return;let a=t.light.map((e,t)=>`--color-accent-${t}: ${e};`).join(`
21
+ `;else{let t=await K(i),n=await q(i);if(e)return;let a=t.light.map((e,t)=>`--color-accent-${t}: ${e};`).join(`
22
22
  `),o=t.dark.map((e,t)=>`--color-accent-${t}: ${e};`).join(`
23
23
  `);r=`
24
24
  :root {
@@ -31,5 +31,5 @@ import{n as e,t}from"./Button-CDQ6ik0P.js";import{t as n}from"./Button-DdE0vCfo.
31
31
  `)}
32
32
  ${o}
33
33
  }
34
- `}let a=document.getElementById(`roadie-accent-theme`);a||(a=document.createElement(`style`),a.id=`roadie-accent-theme`,document.head.appendChild(a)),a.textContent=r}return t(),()=>{e=!0}},[i]);let l=W.useMemo(()=>({accentColor:i,setAccentColor:a,isDark:o,setDark:c}),[i,o,c]);return U(Z.Provider,{value:l,children:e})}function ce(){let e=W.useContext(Z);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e}export{ee as Accordion,re as Autocomplete,p as Badge,h as Breadcrumb,t as Button,g as Card,a as Code,P as Combobox,k as Field,H as Fieldset,l as Highlight,n as IconButton,T as Input,w as Label,r as LinkButton,i as LinkIconButton,s as Mark,v as Marquee,S as OptionalIndicator,u as Prose,z as RadioGroup,C as RequiredIndicator,M as Select,te as Separator,y as Steps,D as Textarea,se as ThemeProvider,f as accordionVariants,L as autocompleteInputGroupVariants,m as badgeVariants,e as buttonVariants,_ as cardVariants,o as codeVariants,F as comboboxInputGroupVariants,ae as getAccentStyleTag,Y as getThemeScript,E as inputVariants,c as markVariants,d as proseVariants,B as radioGroupItemVariants,V as radioGroupVariants,N as selectTriggerVariants,ne as separatorVariants,b as stepsVariants,O as textareaVariants,A as useFieldContext,j as useFieldInputProps,I as useFilter,R as useFilteredItems,x as useSteps,ce as useTheme};
34
+ `}let a=document.getElementById(`roadie-accent-theme`);a||(a=document.createElement(`style`),a.id=`roadie-accent-theme`,document.head.appendChild(a)),a.textContent=r}return t(),()=>{e=!0}},[i]);let l=G.useMemo(()=>({accentColor:i,setAccentColor:a,isDark:o,setDark:c}),[i,o,c]);return W(Z.Provider,{value:l,children:e})}function he(){let e=G.useContext(Z);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e}export{ne as Accordion,L as Autocomplete,d as Badge,ie as Breadcrumb,t as Button,ae as Card,se as Carousel,a as Code,le as Combobox,A as Field,U as Fieldset,l as Highlight,n as IconButton,E as Input,T as Label,r as LinkButton,i as LinkIconButton,s as Mark,y as Marquee,C as OptionalIndicator,ee as Prose,B as RadioGroup,w as RequiredIndicator,N as Select,_ as Separator,b as Steps,O as Textarea,me as ThemeProvider,u as accordionVariants,R as autocompleteInputGroupVariants,re as badgeVariants,e as buttonVariants,oe as cardVariants,ce as carouselContainerVariants,f as carouselContentVariants,p as carouselDotsVariants,m as carouselItemVariants,o as codeVariants,F as comboboxInputGroupVariants,fe as getAccentStyleTag,ue as getThemeScript,D as inputVariants,c as markVariants,te as proseVariants,V as radioGroupItemVariants,H as radioGroupVariants,P as selectTriggerVariants,v as separatorVariants,x as stepsVariants,k as textareaVariants,h as useCarousel,g as useCarouselUnsafeEmbla,j as useFieldContext,M as useFieldInputProps,I as useFilter,z as useFilteredItems,S as useSteps,he as useTheme};
35
35
  //# sourceMappingURL=index.js.map