@bigbinary/neeto-atoms 1.0.104 → 1.0.106

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 (53) hide show
  1. package/dist/{Combobox-DriZMj4f.js → Combobox-NgubHftk.js} +2 -2
  2. package/dist/{Combobox-DriZMj4f.js.map → Combobox-NgubHftk.js.map} +1 -1
  3. package/dist/{Select-N5Ten-tn.js → Select-ZWR0HFCa.js} +253 -85
  4. package/dist/Select-ZWR0HFCa.js.map +1 -0
  5. package/dist/{SelectFieldWrapper-D98IWsW5.js → SelectFieldWrapper-D370CD4o.js} +8 -1
  6. package/dist/SelectFieldWrapper-D370CD4o.js.map +1 -0
  7. package/dist/{TreeSelect-DMbr7J2H.js → TreeSelect-rrTHwY42.js} +2 -2
  8. package/dist/{TreeSelect-DMbr7J2H.js.map → TreeSelect-rrTHwY42.js.map} +1 -1
  9. package/dist/cjs/{Combobox-BE8LT4yq.js → Combobox-PAGcNUr6.js} +2 -2
  10. package/dist/cjs/{Combobox-BE8LT4yq.js.map → Combobox-PAGcNUr6.js.map} +1 -1
  11. package/dist/cjs/{Select-CGG3J9NS.js → Select-VQCROyX1.js} +252 -84
  12. package/dist/cjs/Select-VQCROyX1.js.map +1 -0
  13. package/dist/cjs/{SelectFieldWrapper-BLVvwUcK.js → SelectFieldWrapper-CIh_atln.js} +8 -1
  14. package/dist/cjs/SelectFieldWrapper-CIh_atln.js.map +1 -0
  15. package/dist/cjs/{TreeSelect-3APPRsqr.js → TreeSelect-DDQx8FPS.js} +2 -2
  16. package/dist/cjs/{TreeSelect-3APPRsqr.js.map → TreeSelect-DDQx8FPS.js.map} +1 -1
  17. package/dist/cjs/components/Select.js +4 -4
  18. package/dist/cjs/components/TreeSelect.js +2 -2
  19. package/dist/cjs/components/index.js +4 -4
  20. package/dist/cjs/formik/Select.js +4 -4
  21. package/dist/cjs/formik/TreeSelect.js +2 -2
  22. package/dist/cjs/formik/index.js +5 -5
  23. package/dist/cjs/index.js +4 -4
  24. package/dist/cjs/primitives/Combobox.js +2 -2
  25. package/dist/cjs/primitives/Progress.js +1 -0
  26. package/dist/cjs/primitives/Progress.js.map +1 -1
  27. package/dist/cjs/primitives/index.js +1 -1
  28. package/dist/components/Select/MultiSelectCombobox.types.d.ts +6 -0
  29. package/dist/components/Select/SelectAnchor.d.ts +19 -1
  30. package/dist/components/Select/SelectCombobox.types.d.ts +12 -2
  31. package/dist/components/Select/SelectFieldWrapper.d.ts +7 -1
  32. package/dist/components/Select/constants.d.ts +1 -0
  33. package/dist/components/Select/hooks/useCreatableItems.d.ts +3 -1
  34. package/dist/components/Select/hooks/useMultiSelectState.d.ts +7 -1
  35. package/dist/components/Select/hooks/useSelectState.d.ts +7 -1
  36. package/dist/components/Select/types.d.ts +23 -0
  37. package/dist/components/Select/utils.d.ts +13 -0
  38. package/dist/components/Select.js +4 -4
  39. package/dist/components/TreeSelect.js +2 -2
  40. package/dist/components/index.js +4 -4
  41. package/dist/formik/Select.js +4 -4
  42. package/dist/formik/TreeSelect.js +2 -2
  43. package/dist/formik/index.js +5 -5
  44. package/dist/index.js +4 -4
  45. package/dist/primitives/Combobox.js +2 -2
  46. package/dist/primitives/Progress.js +1 -0
  47. package/dist/primitives/Progress.js.map +1 -1
  48. package/dist/primitives/index.js +1 -1
  49. package/package.json +1 -1
  50. package/dist/Select-N5Ten-tn.js.map +0 -1
  51. package/dist/SelectFieldWrapper-D98IWsW5.js.map +0 -1
  52. package/dist/cjs/Select-CGG3J9NS.js.map +0 -1
  53. package/dist/cjs/SelectFieldWrapper-BLVvwUcK.js.map +0 -1
@@ -3,7 +3,7 @@
3
3
  require('react/jsx-runtime');
4
4
  require('react');
5
5
  require('../utils-BhM0B89p.js');
6
- var primitives_Combobox = require('../Combobox-BE8LT4yq.js');
6
+ var primitives_Combobox = require('../Combobox-PAGcNUr6.js');
7
7
  require('../button-CSBhDSDJ.js');
8
8
  require('../index-vioSzJOw.js');
9
9
  require('../index-DuNgWCXZ.js');
@@ -13,8 +13,8 @@ require('../input-BVxqXG2C.js');
13
13
  require('../textarea-Cq6pBK7q.js');
14
14
  require('../chevron-down-CPsWSS51.js');
15
15
  require('../createLucideIcon-D0tRgV6l.js');
16
- require('../check-BQgcDXys.js');
17
16
  require('../x-Brw3FJst.js');
17
+ require('../check-BQgcDXys.js');
18
18
  require('../useOpenInteractionType-D4z6FTrA.js');
19
19
  require('../floating-ui.utils.dom-BGEmL7pd.js');
20
20
  require('react-dom');
@@ -124,6 +124,7 @@ function Progress$1({
124
124
  Root,
125
125
  {
126
126
  "data-slot": "progress",
127
+ value,
127
128
  className: utils.cn(
128
129
  "relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",
129
130
  className
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.js","sources":["../../../node_modules/radix-ui/node_modules/@radix-ui/react-progress/dist/index.mjs","../../../src/shadcn/components/progress.tsx","../../../src/primitives/Progress.tsx"],"sourcesContent":["\"use client\";\n\n// src/progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\"\nimport { Progress as ProgressPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n className={cn(\n \"relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"size-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n )\n}\n\nexport { Progress }\n","import type React from \"react\";\n\nimport { Progress as ShadcnProgress } from \"src/shadcn/components/progress\";\n\nconst Progress = (props: React.ComponentProps<typeof ShadcnProgress>) => (\n <ShadcnProgress {...props} />\n);\n\nexport { Progress };\n"],"names":["createContextScope","Progress","React","jsx","Primitive","ProgressPrimitive.Root","cn","ProgressPrimitive.Indicator","ShadcnProgress"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAI,aAAa,GAAG,UAAU;AAC9B,IAAI,WAAW,GAAG,GAAG;AACrB,IAAI,CAAC,qBAA0C,CAAC,GAAGA,0BAAkB,CAAC,aAAa,CAAC;AACpF,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,aAAa,CAAC;AACjF,IAAIC,UAAQ,GAAGC,gBAAK,CAAC,UAAU;AAC/B,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM;AACV,MAAM,eAAe;AACrB,MAAM,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A,EAAU,4CAAA;AAAA,UACV,OAAO,EAAE,SAAA,EAAW,eAAe,GAAA,IAAO,KAAA,IAAS,EAAE,CAAA,EAAA,CAAA;AAAK;AAAA;AAC5D;AAAA,GACF;AAEJ;;ACtBA,MAAM,WAAW,CAAC,KAAA,qBAChBJ,cAAA,CAACK,UAAA,EAAA,EAAgB,GAAG,KAAA,EAAO;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"Progress.js","sources":["../../../node_modules/radix-ui/node_modules/@radix-ui/react-progress/dist/index.mjs","../../../src/shadcn/components/progress.tsx","../../../src/primitives/Progress.tsx"],"sourcesContent":["\"use client\";\n\n// src/progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\"\nimport { Progress as ProgressPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn(\n \"relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"size-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n )\n}\n\nexport { Progress }\n","import type React from \"react\";\n\nimport { Progress as ShadcnProgress } from \"src/shadcn/components/progress\";\n\nconst Progress = (props: React.ComponentProps<typeof ShadcnProgress>) => (\n <ShadcnProgress {...props} />\n);\n\nexport { Progress };\n"],"names":["createContextScope","Progress","React","jsx","Primitive","ProgressPrimitive.Root","cn","ProgressPrimitive.Indicator","ShadcnProgress"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAI,aAAa,GAAG,UAAU;AAC9B,IAAI,WAAW,GAAG,GAAG;AACrB,IAAI,CAAC,qBAA0C,CAAC,GAAGA,0BAAkB,CAAC,aAAa,CAAC;AACpF,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,aAAa,CAAC;AACjF,IAAIC,UAAQ,GAAGC,gBAAK,CAAC,UAAU;AAC/B,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM;AACV,MAAM,eAAe;AACrB,MAAM,KAAK,EAAE,SAAS,GAAG,IAAI;AAC7B,MAAM,GAAG,EAAE,OAAO;AAClB,MAAM,aAAa,GAAG,oBAAoB;AAC1C,MAAM,GAAG;AACT,KAAK,GAAG,KAAK;AACb,IAAI,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,gBAA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,CAACK,UAAA,EAAA,EAAgB,GAAG,KAAA,EAAO;;;;","x_google_ignoreList":[0]}
@@ -15,7 +15,7 @@ var primitives_Carousel = require('./Carousel.js');
15
15
  var primitives_Chart = require('./Chart.js');
16
16
  var primitives_Checkbox = require('./Checkbox.js');
17
17
  var primitives_Collapsible = require('./Collapsible.js');
18
- var primitives_Combobox = require('../Combobox-BE8LT4yq.js');
18
+ var primitives_Combobox = require('../Combobox-PAGcNUr6.js');
19
19
  var primitives_Command = require('./Command.js');
20
20
  var primitives_ContextMenu = require('./ContextMenu.js');
21
21
  var primitives_Dialog = require('./Dialog.js');
@@ -5,6 +5,8 @@ export type { DropdownPassthroughProps };
5
5
  export interface MultiSelectComboboxProps {
6
6
  name?: string;
7
7
  id: string;
8
+ /** ID of the field label, used to label the trigger in content-search mode. */
9
+ labelId?: string;
8
10
  effectiveItems?: string[] | {
9
11
  label: string;
10
12
  items: string[];
@@ -12,6 +14,10 @@ export interface MultiSelectComboboxProps {
12
14
  labelForValue: (val: string) => string;
13
15
  renderOption: (val: string) => React.ReactNode;
14
16
  isSearchable: boolean;
17
+ /** Whether search happens in the control or inside the dropdown. */
18
+ searchPosition: "trigger" | "content";
19
+ /** Placeholder for the in-dropdown search field. */
20
+ searchPlaceholder: string;
15
21
  isAsync: boolean;
16
22
  isCreatable: boolean;
17
23
  creatableFilter: (v: string, q: string, fn?: (v: string) => string) => boolean;
@@ -1,7 +1,25 @@
1
1
  interface SelectAnchorProps {
2
- isSearchable: boolean;
2
+ /**
3
+ * Render the anchor as a `Combobox.Trigger` instead of a plain wrapper. Used
4
+ * when the control itself is not a search input — either because search is
5
+ * off, or because the search field lives inside the dropdown. Base UI then
6
+ * treats this element as the combobox: it gets `role="combobox"`,
7
+ * `tabIndex=0` and the expanded/haspopup state.
8
+ */
9
+ renderAsTrigger: boolean;
3
10
  className?: string;
4
11
  dataTestId?: string;
12
+ /**
13
+ * Accessibility props applied only when the trigger, rather than a hidden
14
+ * input, is the form control (`searchPosition="content"`).
15
+ */
16
+ triggerFieldProps?: {
17
+ id?: string;
18
+ "aria-labelledby"?: string;
19
+ "aria-describedby"?: string;
20
+ "aria-required"?: boolean;
21
+ "aria-invalid"?: boolean;
22
+ };
5
23
  children: React.ReactNode;
6
24
  }
7
25
  export declare const SelectAnchor: import("react").ForwardRefExoticComponent<SelectAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -7,6 +7,8 @@ export interface SelectComboboxProps {
7
7
  name?: string;
8
8
  /** ID for the combobox input, forwarded from the field wrapper. */
9
9
  id: string;
10
+ /** ID of the field label, used to label the trigger in content-search mode. */
11
+ labelId?: string;
10
12
  /** Base-UI items array for filtering (derived from options). */
11
13
  effectiveItems?: string[] | {
12
14
  label: string;
@@ -20,6 +22,12 @@ export interface SelectComboboxProps {
20
22
  renderTrigger: (val: string) => React.ReactNode;
21
23
  /** Whether the search input is visible. */
22
24
  isSearchable: boolean;
25
+ /** Whether search happens in the control or inside the dropdown. */
26
+ searchPosition: "trigger" | "content";
27
+ /** Placeholder for the in-dropdown search field. */
28
+ searchPlaceholder: string;
29
+ /** The current search query. Empty unless the user is typing. */
30
+ inputValue: string;
23
31
  /** Whether options are loaded asynchronously. */
24
32
  isAsync: boolean;
25
33
  /** Whether new options can be created by typing. */
@@ -36,8 +44,10 @@ export interface SelectComboboxProps {
36
44
  currentValue: string;
37
45
  /** Called by the combobox when the selected value changes. */
38
46
  handleValueChange: (next: string | null) => void;
39
- /** Called when the search input value changes (async/creatable). */
40
- handleInputValueChange: (value: string) => void;
47
+ /** Called by the combobox when the search input value changes. */
48
+ handleInputValueChange: (value: string, details?: {
49
+ reason?: string;
50
+ }) => void;
41
51
  /** Called when the clear button is clicked. */
42
52
  handleClear: () => void;
43
53
  /** Callback when the dropdown opens or closes. */
@@ -7,12 +7,18 @@ interface SelectFieldWrapperProps {
7
7
  helpText: React.ReactNode;
8
8
  errorId: string;
9
9
  helpTextId: string;
10
+ labelId?: string;
10
11
  isDisabled: boolean;
11
12
  required: boolean;
12
13
  testIdPrefix?: string;
14
+ /**
15
+ * Focus the element with `id` when the label is clicked. Needed when the
16
+ * control is the combobox trigger (a `div`), which `htmlFor` cannot target.
17
+ */
18
+ focusTargetOnLabelClick?: boolean;
13
19
  labelProps?: Omit<React.ComponentProps<typeof FieldLabel>, "htmlFor" | "children">;
14
20
  className?: string;
15
21
  children: React.ReactNode;
16
22
  }
17
- export declare function SelectFieldWrapper({ id, label, error, helpText, errorId, helpTextId, isDisabled, required, testIdPrefix, labelProps, className, children, }: SelectFieldWrapperProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function SelectFieldWrapper({ id, label, error, helpText, errorId, helpTextId, labelId, isDisabled, required, testIdPrefix, focusTargetOnLabelClick, labelProps, className, children, }: SelectFieldWrapperProps): import("react/jsx-runtime").JSX.Element;
18
24
  export {};
@@ -1,3 +1,4 @@
1
+ export declare const INPUT_CHANGE_REASON = "input-change";
1
2
  export declare const SIZE_CONFIG: Record<"small" | "medium" | "large", {
2
3
  chips: string;
3
4
  input: string;
@@ -24,7 +24,9 @@ interface UseCreatableItemsReturn {
24
24
  items: string[];
25
25
  }[] | undefined;
26
26
  creatableFilter: (itemValue: string, query: string, itemToString?: (v: string) => string) => boolean;
27
- handleInputValueChange: (value: string) => void;
27
+ handleInputValueChange: (value: string, details?: {
28
+ reason?: string;
29
+ }) => void;
28
30
  handleValueChange: (next: string[] | null) => void;
29
31
  }
30
32
  export declare function useCreatableItems({ isCreatable, isGrouped, flatOptions, selectedValues, baseUiItems, onCreateOption, onChange, onAsyncInputChange, children, }: UseCreatableItemsConfig): UseCreatableItemsReturn;
@@ -4,6 +4,7 @@ export declare function useMultiSelectState(props: MultiSelectProps): {
4
4
  id: string;
5
5
  errorId: string;
6
6
  helpTextId: string;
7
+ labelId: string;
7
8
  sizeConfig: {
8
9
  chips: string;
9
10
  input: string;
@@ -12,12 +13,17 @@ export declare function useMultiSelectState(props: MultiSelectProps): {
12
13
  };
13
14
  isControlled: boolean;
14
15
  selectedValues: string[];
16
+ isSearchable: boolean;
17
+ searchPosition: "content" | "trigger";
18
+ searchPlaceholder: string;
15
19
  effectiveItems: string[] | {
16
20
  label: string;
17
21
  items: string[];
18
22
  }[] | undefined;
19
23
  creatableFilter: (itemValue: string, query: string, itemToString?: (v: string) => string) => boolean;
20
- handleInputValueChange: (value: string) => void;
24
+ handleInputValueChange: (value: string, details?: {
25
+ reason?: string;
26
+ }) => void;
21
27
  handleValueChange: (next: string[] | null) => void;
22
28
  showCreateOption: boolean;
23
29
  ariaDescribedBy: string | undefined;
@@ -7,6 +7,7 @@ export declare function useSelectState(props: SingleSelectProps): {
7
7
  id: string;
8
8
  errorId: string;
9
9
  helpTextId: string;
10
+ labelId: string;
10
11
  sizeConfig: {
11
12
  chips: string;
12
13
  input: string;
@@ -21,7 +22,9 @@ export declare function useSelectState(props: SingleSelectProps): {
21
22
  }[] | undefined;
22
23
  creatableFilter: (itemValue: string, query: string, itemToString?: (v: string) => string) => boolean;
23
24
  handleValueChange: (next: string | null) => void;
24
- handleInputValueChange: (value: string) => void;
25
+ handleInputValueChange: (value: string, details?: {
26
+ reason?: string;
27
+ }) => void;
25
28
  handleClear: () => void;
26
29
  showCreateOption: boolean;
27
30
  showClearButton: boolean;
@@ -37,6 +40,9 @@ export declare function useSelectState(props: SingleSelectProps): {
37
40
  isDisabled: boolean;
38
41
  required: boolean;
39
42
  isSearchable: boolean;
43
+ searchPosition: "content" | "trigger";
44
+ searchPlaceholder: string;
45
+ inputValue: string;
40
46
  autoHighlight: boolean;
41
47
  onOpenChange: ((open: boolean) => void) | undefined;
42
48
  isClearable: boolean;
@@ -48,6 +48,29 @@ interface SelectSharedProps {
48
48
  * @default true
49
49
  */
50
50
  isSearchable?: boolean;
51
+ /**
52
+ * Where the search field lives.
53
+ * - `"trigger"`: type directly in the control, like react-select.
54
+ * - `"content"`: the control becomes a read-only trigger showing the
55
+ * selection, and the search field renders at the top of the dropdown.
56
+ * The trigger itself is then the form control, so a forwarded `ref`
57
+ * resolves to that element (a focusable `div`, not an `<input>`).
58
+ * @default "trigger"
59
+ */
60
+ searchPosition?: "trigger" | "content";
61
+ /**
62
+ * Placeholder for the in-dropdown search field.
63
+ * Only used when `searchPosition` is `"content"`.
64
+ * @default "Search..."
65
+ */
66
+ searchPlaceholder?: string;
67
+ /**
68
+ * Hide the search field when there are fewer than this many options, so
69
+ * short dropdowns stay clean. Ignored when options are async, creatable or
70
+ * lazy-loaded, since the total count isn't known upfront.
71
+ * @default undefined (search is always shown)
72
+ */
73
+ searchThreshold?: number;
51
74
  /** Whether the first matching item is highlighted automatically. @default true */
52
75
  autoHighlight?: boolean;
53
76
  /** Callback fired when the dropdown opens or closes. */
@@ -1,4 +1,7 @@
1
+ import type React from "react";
1
2
  import type { SelectOption as MultiSelectOption, SelectOptionBase as MultiSelectOptionBase } from "./types";
3
+ /** Write an element into a callback or object ref, ignoring `null` refs. */
4
+ export declare function assignRef<T>(ref: React.Ref<T> | undefined, element: T | null): void;
2
5
  type AccessorFn = (option: any) => string;
3
6
  export declare function normalizeOption(option: any, getValue?: AccessorFn, getLabel?: AccessorFn): MultiSelectOptionBase;
4
7
  export declare function normalizeOptions(options: MultiSelectOption[] | undefined, getValue?: AccessorFn, getLabel?: AccessorFn): MultiSelectOption[] | undefined;
@@ -11,6 +14,16 @@ export declare function toBaseUiItems(options: MultiSelectOption[]): string[] |
11
14
  label: string;
12
15
  items: string[];
13
16
  }[];
17
+ interface ResolveIsSearchableConfig {
18
+ isSearchable: boolean;
19
+ searchThreshold?: number;
20
+ optionCount: number;
21
+ /** Async, creatable and lazy-loaded lists grow after mount, so `optionCount`
22
+ * isn't the real list size and the threshold must not apply. */
23
+ isCountKnown: boolean;
24
+ }
25
+ /** Apply `searchThreshold` on top of `isSearchable`. */
26
+ export declare function resolveIsSearchable({ isSearchable, searchThreshold, optionCount, isCountKnown, }: ResolveIsSearchableConfig): boolean;
14
27
  /** Build the effective items array, appending a "Create" entry when needed. */
15
28
  export declare function computeEffectiveItems(children: unknown, baseUiItems: string[] | {
16
29
  label: string;
@@ -1,9 +1,9 @@
1
- export { S as Select } from '../Select-N5Ten-tn.js';
1
+ export { S as Select } from '../Select-ZWR0HFCa.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '../fieldIds-VpluAAMl.js';
5
5
  import '../hyphenize-TRhMI0tl.js';
6
- import '../SelectFieldWrapper-D98IWsW5.js';
6
+ import '../SelectFieldWrapper-D370CD4o.js';
7
7
  import '../primitives/Field.js';
8
8
  import '../utils-BJnb9o5c.js';
9
9
  import '../HelpIcon-xh488VXs.js';
@@ -42,13 +42,13 @@ import 'react-i18next';
42
42
  import '../loader-circle-DycHUAWN.js';
43
43
  import '../label-YEsizr2c.js';
44
44
  import '../separator-ByRsc-y-.js';
45
- import '../Combobox-DriZMj4f.js';
45
+ import '../Combobox-NgubHftk.js';
46
46
  import '../input-group-DuITGkyB.js';
47
47
  import '../input-CNbQc_tG.js';
48
48
  import '../textarea-BZIsQ5UD.js';
49
49
  import '../chevron-down-BNi0ntys.js';
50
- import '../check-Cpkv29p1.js';
51
50
  import '../x-_o2T3n6D.js';
51
+ import '../check-Cpkv29p1.js';
52
52
  import '../useOpenInteractionType-CVfxIsuz.js';
53
53
  import '../index-DZXbzIgC.js';
54
54
  import '../index-CSMSzzKM.js';
@@ -1,4 +1,4 @@
1
- export { T as TreeSelect } from '../TreeSelect-DMbr7J2H.js';
1
+ export { T as TreeSelect } from '../TreeSelect-rrTHwY42.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '../utils-BJnb9o5c.js';
@@ -20,7 +20,7 @@ import '../index-BYZaLNq1.js';
20
20
  import '../index-fV_U4ZJM.js';
21
21
  import '../index-yFgkK_AM.js';
22
22
  import '../index-Cor698lu.js';
23
- import '../SelectFieldWrapper-D98IWsW5.js';
23
+ import '../SelectFieldWrapper-D370CD4o.js';
24
24
  import '../primitives/Field.js';
25
25
  import '../HelpIcon-xh488VXs.js';
26
26
  import '../primitives/Tooltip.js';
@@ -19,7 +19,7 @@ export { P as Pagination } from '../Pagination-yjG8uCpV.js';
19
19
  export { P as Popover } from '../Popover-BHGvcdV2.js';
20
20
  export { P as Progress } from '../Progress-DbtLbWf8.js';
21
21
  export { R as RadioGroup } from '../RadioGroup-CBXByAMW.js';
22
- export { S as Select } from '../Select-N5Ten-tn.js';
22
+ export { S as Select } from '../Select-ZWR0HFCa.js';
23
23
  export { S as Sheet } from '../Sheet-D1MWtg1q.js';
24
24
  export { S as Slider } from '../Slider-CxQdlyHZ.js';
25
25
  export { S as Spinner } from '../Spinner-vfggfvEp.js';
@@ -33,7 +33,7 @@ export { T as Toastr } from '../Toastr-CXqmoXjn.js';
33
33
  export { T as Tooltip } from '../Tooltip-DWDsgyx7.js';
34
34
  export { T as TranslationProvider } from '../TranslationProvider-CtJI6HJ4.js';
35
35
  export { T as Tree } from '../Tree-Cb1Zkayi.js';
36
- export { T as TreeSelect } from '../TreeSelect-DMbr7J2H.js';
36
+ export { T as TreeSelect } from '../TreeSelect-rrTHwY42.js';
37
37
  export { T as Typography, t as typographyVariants } from '../Typography-CmILccNh.js';
38
38
  export { f as flattenTreeData, g as getExpandedKeysFromSearch, a as getParentKey } from '../search-B5K8FsJs.js';
39
39
  import 'react/jsx-runtime';
@@ -123,8 +123,8 @@ import '../primitives/Label.js';
123
123
  import '../primitives/HoverCard.js';
124
124
  import '../primitives/Progress.js';
125
125
  import '../primitives/RadioGroup.js';
126
- import '../SelectFieldWrapper-D98IWsW5.js';
127
- import '../Combobox-DriZMj4f.js';
126
+ import '../SelectFieldWrapper-D370CD4o.js';
127
+ import '../Combobox-NgubHftk.js';
128
128
  import '../primitives/Sheet.js';
129
129
  import '../sheet-B9oDGvvX.js';
130
130
  import '../primitives/Slider.js';
@@ -2,10 +2,10 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { useField, useFormikContext, getIn } from 'formik';
4
4
  import { dissoc } from 'ramda';
5
- import { S as Select } from '../Select-N5Ten-tn.js';
5
+ import { S as Select } from '../Select-ZWR0HFCa.js';
6
6
  import '../fieldIds-VpluAAMl.js';
7
7
  import '../hyphenize-TRhMI0tl.js';
8
- import '../SelectFieldWrapper-D98IWsW5.js';
8
+ import '../SelectFieldWrapper-D370CD4o.js';
9
9
  import '../primitives/Field.js';
10
10
  import '../utils-BJnb9o5c.js';
11
11
  import '../HelpIcon-xh488VXs.js';
@@ -44,13 +44,13 @@ import 'react-i18next';
44
44
  import '../loader-circle-DycHUAWN.js';
45
45
  import '../label-YEsizr2c.js';
46
46
  import '../separator-ByRsc-y-.js';
47
- import '../Combobox-DriZMj4f.js';
47
+ import '../Combobox-NgubHftk.js';
48
48
  import '../input-group-DuITGkyB.js';
49
49
  import '../input-CNbQc_tG.js';
50
50
  import '../textarea-BZIsQ5UD.js';
51
51
  import '../chevron-down-BNi0ntys.js';
52
- import '../check-Cpkv29p1.js';
53
52
  import '../x-_o2T3n6D.js';
53
+ import '../check-Cpkv29p1.js';
54
54
  import '../useOpenInteractionType-CVfxIsuz.js';
55
55
  import '../index-DZXbzIgC.js';
56
56
  import '../index-CSMSzzKM.js';
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { useField, useFormikContext, getIn } from 'formik';
4
4
  import { dissoc } from 'ramda';
5
- import { T as TreeSelect } from '../TreeSelect-DMbr7J2H.js';
5
+ import { T as TreeSelect } from '../TreeSelect-rrTHwY42.js';
6
6
  import '../utils-BJnb9o5c.js';
7
7
  import '../primitives/Popover.js';
8
8
  import '../index-DNzunGHb.js';
@@ -22,7 +22,7 @@ import '../index-BYZaLNq1.js';
22
22
  import '../index-fV_U4ZJM.js';
23
23
  import '../index-yFgkK_AM.js';
24
24
  import '../index-Cor698lu.js';
25
- import '../SelectFieldWrapper-D98IWsW5.js';
25
+ import '../SelectFieldWrapper-D370CD4o.js';
26
26
  import '../primitives/Field.js';
27
27
  import '../HelpIcon-xh488VXs.js';
28
28
  import '../primitives/Tooltip.js';
@@ -63,12 +63,12 @@ import '../hyphenize-TRhMI0tl.js';
63
63
  import '../withIconSize-BonoFXeH.js';
64
64
  import '../Textarea-CUe09-sr.js';
65
65
  import '../primitives/Textarea.js';
66
- import '../Select-N5Ten-tn.js';
67
- import '../SelectFieldWrapper-D98IWsW5.js';
68
- import '../Combobox-DriZMj4f.js';
66
+ import '../Select-ZWR0HFCa.js';
67
+ import '../SelectFieldWrapper-D370CD4o.js';
68
+ import '../Combobox-NgubHftk.js';
69
69
  import '../chevron-down-BNi0ntys.js';
70
- import '../check-Cpkv29p1.js';
71
70
  import '../x-_o2T3n6D.js';
71
+ import '../check-Cpkv29p1.js';
72
72
  import '../useOpenInteractionType-CVfxIsuz.js';
73
73
  import '../index-DZXbzIgC.js';
74
74
  import '../index-CSMSzzKM.js';
@@ -87,7 +87,7 @@ import '../primitives/Switch.js';
87
87
  import '../Slider-CxQdlyHZ.js';
88
88
  import '../primitives/Slider.js';
89
89
  import '../index-BfAAoDv6.js';
90
- import '../TreeSelect-DMbr7J2H.js';
90
+ import '../TreeSelect-rrTHwY42.js';
91
91
  import '../primitives/Popover.js';
92
92
  import '../index-Jr4soqx3.js';
93
93
  import '../Tree-Cb1Zkayi.js';
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ export { P as Pagination } from './Pagination-yjG8uCpV.js';
25
25
  export { P as Popover } from './Popover-BHGvcdV2.js';
26
26
  export { P as Progress } from './Progress-DbtLbWf8.js';
27
27
  export { R as RadioGroup } from './RadioGroup-CBXByAMW.js';
28
- export { S as Select } from './Select-N5Ten-tn.js';
28
+ export { S as Select } from './Select-ZWR0HFCa.js';
29
29
  export { S as Sheet } from './Sheet-D1MWtg1q.js';
30
30
  export { S as Slider } from './Slider-CxQdlyHZ.js';
31
31
  export { S as Spinner } from './Spinner-vfggfvEp.js';
@@ -37,7 +37,7 @@ export { T as TimePicker } from './TimePicker-BixF9wdU.js';
37
37
  export { T as Toastr } from './Toastr-CXqmoXjn.js';
38
38
  export { T as Tooltip } from './Tooltip-DWDsgyx7.js';
39
39
  export { T as Tree } from './Tree-Cb1Zkayi.js';
40
- export { T as TreeSelect } from './TreeSelect-DMbr7J2H.js';
40
+ export { T as TreeSelect } from './TreeSelect-rrTHwY42.js';
41
41
  export { T as Typography, t as typographyVariants } from './Typography-CmILccNh.js';
42
42
  import 'react/jsx-runtime';
43
43
  import 'react';
@@ -128,8 +128,8 @@ import './primitives/Label.js';
128
128
  import './primitives/HoverCard.js';
129
129
  import './primitives/Progress.js';
130
130
  import './primitives/RadioGroup.js';
131
- import './SelectFieldWrapper-D98IWsW5.js';
132
- import './Combobox-DriZMj4f.js';
131
+ import './SelectFieldWrapper-D370CD4o.js';
132
+ import './Combobox-NgubHftk.js';
133
133
  import './primitives/Sheet.js';
134
134
  import './sheet-B9oDGvvX.js';
135
135
  import './primitives/Slider.js';
@@ -1,7 +1,7 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
3
  import '../utils-BJnb9o5c.js';
4
- export { C as Combobox, a as ComboboxChip, b as ComboboxChips, c as ComboboxChipsInput, d as ComboboxCollection, e as ComboboxContent, f as ComboboxEmpty, g as ComboboxGroup, h as ComboboxInput, i as ComboboxItem, j as ComboboxLabel, k as ComboboxList, l as ComboboxSeparator, m as ComboboxTrigger, n as ComboboxValue, u as useComboboxAnchor } from '../Combobox-DriZMj4f.js';
4
+ export { C as Combobox, a as ComboboxChip, b as ComboboxChips, c as ComboboxChipsInput, d as ComboboxCollection, e as ComboboxContent, f as ComboboxEmpty, g as ComboboxGroup, h as ComboboxInput, i as ComboboxItem, j as ComboboxLabel, k as ComboboxList, l as ComboboxSeparator, m as ComboboxTrigger, n as ComboboxValue, u as useComboboxAnchor } from '../Combobox-NgubHftk.js';
5
5
  import '../button-CePY5zne.js';
6
6
  import '../index-Bo3AAQJp.js';
7
7
  import '../index-CfriMyrd.js';
@@ -11,8 +11,8 @@ import '../input-CNbQc_tG.js';
11
11
  import '../textarea-BZIsQ5UD.js';
12
12
  import '../chevron-down-BNi0ntys.js';
13
13
  import '../createLucideIcon-C8ycilSN.js';
14
- import '../check-Cpkv29p1.js';
15
14
  import '../x-_o2T3n6D.js';
15
+ import '../check-Cpkv29p1.js';
16
16
  import '../useOpenInteractionType-CVfxIsuz.js';
17
17
  import '../floating-ui.utils.dom-Bw_Rc4bg.js';
18
18
  import 'react-dom';
@@ -102,6 +102,7 @@ function Progress$1({
102
102
  Root,
103
103
  {
104
104
  "data-slot": "progress",
105
+ value,
105
106
  className: cn(
106
107
  "relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",
107
108
  className
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.js","sources":["../../node_modules/radix-ui/node_modules/@radix-ui/react-progress/dist/index.mjs","../../src/shadcn/components/progress.tsx","../../src/primitives/Progress.tsx"],"sourcesContent":["\"use client\";\n\n// src/progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\"\nimport { Progress as ProgressPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n className={cn(\n \"relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"size-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n )\n}\n\nexport { Progress }\n","import type React from \"react\";\n\nimport { Progress as ShadcnProgress } from \"src/shadcn/components/progress\";\n\nconst Progress = (props: React.ComponentProps<typeof ShadcnProgress>) => (\n <ShadcnProgress {...props} />\n);\n\nexport { Progress };\n"],"names":["Progress","ProgressPrimitive.Root","ProgressPrimitive.Indicator","ShadcnProgress"],"mappings":";;;;;;;;AAOA,IAAI,aAAa,GAAG,UAAU;AAC9B,IAAI,WAAW,GAAG,GAAG;AACrB,IAAI,CAAC,qBAA0C,CAAC,GAAG,kBAAkB,CAAC,aAAa,CAAC;AACpF,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,aAAa,CAAC;AACjF,IAAIA,UAAQ,GAAG,KAAK,CAAC,UAAU;AAC/B,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM;AACV,MAAM,eAAe;AACrB,MAAM,KAAK,EAAE,SAAS,GAAG,IAAI;AAC7B,MAAM,GAAG,EAAE,OAAO;AAClB,MAAM,aAAa,GAAG,oBAAoB;AAC1C,MAAM,GA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D;AAAA,GACF;AAEJ;;ACtBA,MAAM,WAAW,CAAC,KAAA,qBAChB,GAAA,CAACC,UAAA,EAAA,EAAgB,GAAG,KAAA,EAAO;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"Progress.js","sources":["../../node_modules/radix-ui/node_modules/@radix-ui/react-progress/dist/index.mjs","../../src/shadcn/components/progress.tsx","../../src/primitives/Progress.tsx"],"sourcesContent":["\"use client\";\n\n// src/progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\"\nimport { Progress as ProgressPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn(\n \"relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"size-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n )\n}\n\nexport { Progress }\n","import type React from \"react\";\n\nimport { Progress as ShadcnProgress } from \"src/shadcn/components/progress\";\n\nconst Progress = (props: React.ComponentProps<typeof ShadcnProgress>) => (\n <ShadcnProgress {...props} />\n);\n\nexport { Progress };\n"],"names":["Progress","ProgressPrimitive.Root","ProgressPrimitive.Indicator","ShadcnProgress"],"mappings":";;;;;;;;AAOA,IAAI,aAAa,GAAG,UAAU;AAC9B,IAAI,WAAW,GAAG,GAAG;AACrB,IAAI,CAAC,qBAA0C,CAAC,GAAG,kBAAkB,CAAC,aAAa,CAAC;AACpF,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,aAAa,CAAC;AACjF,IAAIA,UAAQ,GAAG,KAAK,CAAC,UAAU;AAC/B,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM;AACV,MAAM,eAAe;AACrB,MAAM,KAAK,EAAE,SAAS,GAAG,IAAI;AAC7B,MAAM,GAAG,EAAE,OAAO;AAClB,MAAM,aAAa,GAAG,oBAAoB;AAC1C,MAAM,GAAG;AACT,KAAK,GAAG,KAAK;AACb,IAAI,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE;AAClE,MAAM,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACjE,IAAI;AACJ,IAAI,MAAM,GAAG,GAAG,gBAAgB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I,CAAC;AACvE;AACA,SAAS,kBAAkB,CAAC,SAAS,EAAE,aAAa,EAAE;AACtD,EAAE,OAAO,CAAC,gCAAgC,EAAE,SAAS,CAAC,iBAAiB,EAAE,aAAa,CAAC,sEAAsE,EAAE,WAAW,CAAC,GAAG,CAAC;AAC/K;AACA,SAAS,oBAAoB,CAAC,SAAS,EAAE,aAAa,EAAE;AACxD,EAAE,OAAO,CAAC,kCAAkC,EAAE,SAAS,CAAC,iBAAiB,EAAE,aAAa,CAAC;AACzF;AACA,8CAA8C,EAAE,WAAW,CAAC;AAC5D;;AAEA,uBAAuB,CAAC;AACxB;AACA,IAAI,IAAI,GAAGA,UAAQ;AACnB,IAAI,SAAS,GAAG,iBAAiB;;ACvFjC,SAASA,UAAA,CAAS;AAAA,EAChB,SAAA;AAAA,EACA,KAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAwD;AACtD,EAAA,uBACE,GAAA;AAAA,IAACC,IAAkB;AAAA,IAAlB;AAAA,MACC,WAAA,EAAU,UAAA;AAAA,MACV,KAAA;AAAA,MACA,SAAA,EAAW,EAAA;AAAA,QACT,+EAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA;AAAA,QAACC,SAAkB;AAAA,QAAlB;AAAA,UACC,WAAA,EAAU,oBAAA;AAAA,UACV,SAAA,EAAU,4CAAA;AAAA,UACV,OAAO,EAAE,SAAA,EAAW,eAAe,GAAA,IAAO,KAAA,IAAS,EAAE,CAAA,EAAA,CAAA;AAAK;AAAA;AAC5D;AAAA,GACF;AAEJ;;ACvBA,MAAM,WAAW,CAAC,KAAA,qBAChB,GAAA,CAACC,UAAA,EAAA,EAAgB,GAAG,KAAA,EAAO;;;;","x_google_ignoreList":[0]}
@@ -13,7 +13,7 @@ export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious
13
13
  export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from './Chart.js';
14
14
  export { Checkbox } from './Checkbox.js';
15
15
  export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './Collapsible.js';
16
- export { C as Combobox, a as ComboboxChip, b as ComboboxChips, c as ComboboxChipsInput, d as ComboboxCollection, e as ComboboxContent, f as ComboboxEmpty, g as ComboboxGroup, h as ComboboxInput, i as ComboboxItem, j as ComboboxLabel, k as ComboboxList, l as ComboboxSeparator, m as ComboboxTrigger, n as ComboboxValue, u as useComboboxAnchor } from '../Combobox-DriZMj4f.js';
16
+ export { C as Combobox, a as ComboboxChip, b as ComboboxChips, c as ComboboxChipsInput, d as ComboboxCollection, e as ComboboxContent, f as ComboboxEmpty, g as ComboboxGroup, h as ComboboxInput, i as ComboboxItem, j as ComboboxLabel, k as ComboboxList, l as ComboboxSeparator, m as ComboboxTrigger, n as ComboboxValue, u as useComboboxAnchor } from '../Combobox-NgubHftk.js';
17
17
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './Command.js';
18
18
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './ContextMenu.js';
19
19
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './Dialog.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-atoms",
3
- "version": "1.0.104",
3
+ "version": "1.0.106",
4
4
  "author": "BigBinary",
5
5
  "license": "MIT",
6
6
  "engines": {