asheeui 0.6.7 → 0.6.9

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 (114) hide show
  1. package/dist/components/autocomplete/Autocomplete.d.ts +34 -17
  2. package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
  3. package/dist/components/autocomplete/Autocomplete.js +90 -106
  4. package/dist/components/autocomplete/autocomplete-config.d.ts +2 -20
  5. package/dist/components/autocomplete/autocomplete-config.d.ts.map +1 -1
  6. package/dist/components/autocomplete/autocomplete-config.js +9 -13
  7. package/dist/components/button/Button.d.ts +31 -5
  8. package/dist/components/button/Button.d.ts.map +1 -1
  9. package/dist/components/button/Button.js +68 -64
  10. package/dist/components/card/Card.d.ts +58 -54
  11. package/dist/components/card/Card.d.ts.map +1 -1
  12. package/dist/components/card/Card.js +152 -158
  13. package/dist/components/card/card-config.d.ts +66 -33
  14. package/dist/components/card/card-config.d.ts.map +1 -1
  15. package/dist/components/card/card-config.js +9 -9
  16. package/dist/components/date-picker/Calendar.d.ts +57 -0
  17. package/dist/components/date-picker/Calendar.d.ts.map +1 -0
  18. package/dist/components/date-picker/Calendar.js +224 -0
  19. package/dist/components/date-picker/DatePicker.d.ts +68 -155
  20. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  21. package/dist/components/date-picker/DatePicker.js +194 -466
  22. package/dist/components/date-picker/TimeSpinner.d.ts +46 -0
  23. package/dist/components/date-picker/TimeSpinner.d.ts.map +1 -0
  24. package/dist/components/date-picker/TimeSpinner.js +84 -0
  25. package/dist/components/date-picker/date-picker-config.d.ts +21 -1
  26. package/dist/components/date-picker/date-picker-config.d.ts.map +1 -1
  27. package/dist/components/date-picker/date-picker-config.js +10 -14
  28. package/dist/components/date-picker/date-picker-styles.d.ts.map +1 -1
  29. package/dist/components/date-picker/date-picker-styles.js +4 -11
  30. package/dist/components/date-picker/date-picker.helpers.d.ts +111 -0
  31. package/dist/components/date-picker/date-picker.helpers.d.ts.map +1 -0
  32. package/dist/components/date-picker/date-picker.helpers.js +110 -0
  33. package/dist/components/date-picker/index.js +3 -0
  34. package/dist/components/input/Input.d.ts +13 -7
  35. package/dist/components/input/Input.d.ts.map +1 -1
  36. package/dist/components/input/Input.js +96 -91
  37. package/dist/components/keyboard/KeyboardContext.d.ts +130 -0
  38. package/dist/components/keyboard/KeyboardContext.d.ts.map +1 -0
  39. package/dist/components/keyboard/KeyboardContext.js +13 -0
  40. package/dist/components/keyboard/KeyboardProvider.d.ts +78 -0
  41. package/dist/components/keyboard/KeyboardProvider.d.ts.map +1 -0
  42. package/dist/components/keyboard/KeyboardProvider.js +183 -0
  43. package/dist/components/keyboard/OnScreenKeyboard.d.ts +65 -43
  44. package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
  45. package/dist/components/keyboard/OnScreenKeyboard.js +119 -113
  46. package/dist/components/keyboard/index.d.ts +2 -1
  47. package/dist/components/keyboard/index.d.ts.map +1 -1
  48. package/dist/components/keyboard/index.js +2 -1
  49. package/dist/components/keyboard/keyboard-config.d.ts +40 -36
  50. package/dist/components/keyboard/keyboard-config.d.ts.map +1 -1
  51. package/dist/components/keyboard/keyboard-config.js +15 -10
  52. package/dist/components/keyboard/use-keyboard-field.d.ts +6 -4
  53. package/dist/components/keyboard/use-keyboard-field.d.ts.map +1 -1
  54. package/dist/components/keyboard/use-keyboard-field.js +12 -12
  55. package/dist/components/modal/Modal.d.ts.map +1 -1
  56. package/dist/components/modal/Modal.js +59 -65
  57. package/dist/components/multi-select/MultiSelect.d.ts +75 -40
  58. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  59. package/dist/components/multi-select/MultiSelect.js +188 -188
  60. package/dist/components/multi-select/multi-select-config.d.ts +2 -20
  61. package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
  62. package/dist/components/multi-select/multi-select-config.js +10 -14
  63. package/dist/components/select/Select.d.ts +60 -45
  64. package/dist/components/select/Select.d.ts.map +1 -1
  65. package/dist/components/select/Select.js +149 -161
  66. package/dist/components/select/select-config.d.ts +3 -29
  67. package/dist/components/select/select-config.d.ts.map +1 -1
  68. package/dist/components/select/select-config.js +6 -14
  69. package/dist/components/select/select-styles.js +1 -6
  70. package/dist/components/select-menu/SelectMenu.d.ts +48 -42
  71. package/dist/components/select-menu/SelectMenu.d.ts.map +1 -1
  72. package/dist/components/select-menu/SelectMenu.js +137 -123
  73. package/dist/components/select-menu/select-menu-config.d.ts +33 -2
  74. package/dist/components/select-menu/select-menu-config.d.ts.map +1 -1
  75. package/dist/components/select-menu/select-menu-config.js +3 -1
  76. package/dist/components/sidebar/Sidebar.js +1 -1
  77. package/dist/components/switch/Switch.d.ts +9 -33
  78. package/dist/components/switch/Switch.d.ts.map +1 -1
  79. package/dist/components/switch/Switch.js +68 -74
  80. package/dist/components/switch/switch-styles.d.ts +1 -6
  81. package/dist/components/switch/switch-styles.d.ts.map +1 -1
  82. package/dist/components/switch/switch-styles.js +6 -12
  83. package/dist/components/tabs/Tabs.js +1 -1
  84. package/dist/components/textarea/Textarea.d.ts +19 -1
  85. package/dist/components/textarea/Textarea.d.ts.map +1 -1
  86. package/dist/components/textarea/Textarea.js +95 -90
  87. package/dist/components/toast/ToastContext.d.ts +122 -0
  88. package/dist/components/toast/ToastContext.d.ts.map +1 -0
  89. package/dist/components/toast/ToastContext.js +28 -0
  90. package/dist/components/toast/ToastProvider.d.ts +98 -0
  91. package/dist/components/toast/ToastProvider.d.ts.map +1 -0
  92. package/dist/components/toast/ToastProvider.js +188 -0
  93. package/dist/components/toast/index.d.ts +2 -1
  94. package/dist/components/toast/index.d.ts.map +1 -1
  95. package/dist/components/toast/index.js +2 -1
  96. package/dist/components/toast/toast-config.d.ts +36 -0
  97. package/dist/components/toast/toast-config.d.ts.map +1 -1
  98. package/dist/icons/ChevronUpIcon.d.ts +3 -0
  99. package/dist/icons/ChevronUpIcon.d.ts.map +1 -0
  100. package/dist/icons/ChevronUpIcon.js +21 -0
  101. package/dist/icons/index.d.ts +2 -0
  102. package/dist/icons/index.d.ts.map +1 -1
  103. package/dist/index.css +24 -2
  104. package/dist/index.d.ts +1 -0
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.js +62 -59
  107. package/dist/theme/color.js +2 -2
  108. package/package.json +1 -1
  109. package/dist/components/keyboard/keyboard-context.d.ts +0 -118
  110. package/dist/components/keyboard/keyboard-context.d.ts.map +0 -1
  111. package/dist/components/keyboard/keyboard-context.js +0 -90
  112. package/dist/components/toast/toast-context.d.ts +0 -163
  113. package/dist/components/toast/toast-context.d.ts.map +0 -1
  114. package/dist/components/toast/toast-context.js +0 -177
@@ -1,16 +1,16 @@
1
1
  import { FloatingContext } from '@floating-ui/react';
2
2
  import { ReactNode } from 'react';
3
- import { SelectMenuConfig } from './select-menu-config';
3
+ import { MenuConfig, SelectMenuOption } from './select-menu-config';
4
4
  /**
5
- * Type alias for a select option.
6
- * Each option must have a label and a unique value.
5
+ * Menu props that extend MenuConfig with className.
6
+ * Used for menu configuration overrides.
7
7
  */
8
- export interface SelectOption {
9
- label: string;
10
- value: string | number;
11
- disabled?: boolean;
12
- [key: string]: unknown;
13
- }
8
+ export type MenuProps = MenuConfig & {
9
+ /**
10
+ * Extra CSS classes for the menu container.
11
+ */
12
+ className?: string;
13
+ };
14
14
  /**
15
15
  * Props for the SelectMenu component.
16
16
  */
@@ -38,7 +38,7 @@ export interface SelectMenuProps {
38
38
  /**
39
39
  * Available options to display in the menu.
40
40
  */
41
- options: SelectOption[];
41
+ options: SelectMenuOption[];
42
42
  /**
43
43
  * Currently selected values.
44
44
  * Used to highlight selected options with a checkmark.
@@ -48,7 +48,7 @@ export interface SelectMenuProps {
48
48
  * Callback fired when an option is selected.
49
49
  * Receives the selected option object.
50
50
  */
51
- onSelectOption: (option: SelectOption) => void;
51
+ onSelectMenuOption: (option: SelectMenuOption) => void;
52
52
  /**
53
53
  * Whether search input is shown in the menu.
54
54
  * @default true
@@ -76,23 +76,20 @@ export interface SelectMenuProps {
76
76
  * Content rendered below the options list.
77
77
  */
78
78
  belowList?: ReactNode;
79
- /**
80
- * Extra CSS classes for the dropdown.
81
- */
82
- dropdownClassName?: string;
83
79
  /**
84
80
  * Configuration for menu items from the parent component.
85
81
  */
86
- menuConfig?: SelectMenuConfig;
82
+ menuConfig?: MenuConfig;
87
83
  /**
88
84
  * Props override for menu configuration.
85
+ * Includes className, portal, portalTarget, and visual style options.
89
86
  */
90
- menuProps?: SelectMenuConfig;
87
+ menuProps?: MenuProps;
91
88
  /**
92
89
  * Custom render function for each option.
93
90
  * Receives the option and a boolean indicating if it's selected.
94
91
  */
95
- renderOption?: (option: SelectOption, isSelected: boolean) => ReactNode;
92
+ renderOption?: (option: SelectMenuOption, isSelected: boolean) => ReactNode;
96
93
  /**
97
94
  * Initial focus target for the FloatingFocusManager.
98
95
  */
@@ -102,20 +99,6 @@ export interface SelectMenuProps {
102
99
  * @default false
103
100
  */
104
101
  returnFocus?: boolean;
105
- /**
106
- * Whether to render the menu in a React portal.
107
- * When true, the menu is rendered at the document body level.
108
- * Defaults to true. This is typically controlled by the parent
109
- * component (Select, MultiSelect, Autocomplete) via their own
110
- * config or props.
111
- */
112
- portal?: boolean;
113
- /**
114
- * Custom portal target element for the menu.
115
- * When portal is enabled, the menu is rendered into this element.
116
- * Defaults to document.body.
117
- */
118
- portalTarget?: HTMLElement | null;
119
102
  }
120
103
  /**
121
104
  * A reusable dropdown menu for selecting options from a list.
@@ -131,8 +114,8 @@ export interface SelectMenuProps {
131
114
  * By default, the menu uses React's createPortal to render at the document
132
115
  * body level. This ensures the menu escapes CSS containment, overflow
133
116
  * clipping, and stacking context issues. The portal can be disabled via
134
- * the `portal` prop if the menu needs to stay within a specific parent
135
- * container. This is typically controlled by the parent component.
117
+ * the `menuProps.portal` prop if the menu needs to stay within a specific
118
+ * parent container. This is typically controlled by the parent component.
136
119
  *
137
120
  * @param props - SelectMenu configuration options.
138
121
  * @param props.isOpen - Whether the menu is open.
@@ -142,16 +125,18 @@ export interface SelectMenuProps {
142
125
  * @param props.setFloatingRef - Ref setter for the floating element.
143
126
  * @param props.options - Available options to display.
144
127
  * @param props.selectedValues - Currently selected values.
145
- * @param props.onSelectOption - Callback fired when an option is selected.
128
+ * @param props.onSelectMenuOption - Callback fired when an option is selected.
146
129
  * @param props.isSearch - Whether search is enabled. Defaults to true.
147
130
  * @param props.searchPlaceholder - Search placeholder. Defaults to "Search...".
131
+ * @param props.searchInputName - Name attribute for the search input. Defaults to "select-menu-search".
132
+ * @param props.searchQuery - Controlled search query value.
133
+ * @param props.onSearchChange - Callback fired when the search query changes.
148
134
  * @param props.belowList - Content below the options list.
149
- * @param props.dropdownClassName - Extra classes for the dropdown.
150
135
  * @param props.menuConfig - Configuration for menu items.
151
- * @param props.menuProps - Props override for menu configuration.
136
+ * @param props.menuProps - Props override for menu configuration. Includes className, portal, portalTarget, and visual styles.
152
137
  * @param props.renderOption - Custom render function for options.
153
- * @param props.portal - Whether to render the menu in a portal. Defaults to true.
154
- * @param props.portalTarget - Custom portal target element. Defaults to document.body.
138
+ * @param props.initialFocus - Initial focus target for the FloatingFocusManager.
139
+ * @param props.returnFocus - Whether to return focus to the trigger after closing. Defaults to false.
155
140
  *
156
141
  * @example
157
142
  * ```tsx
@@ -165,15 +150,36 @@ export interface SelectMenuProps {
165
150
  * setFloatingRef={refs.setFloating}
166
151
  * options={options}
167
152
  * selectedValues={selectedValues}
168
- * onSelectOption={handleSelect}
153
+ * onSelectMenuOption={handleSelect}
154
+ * />
155
+ * ```
156
+ *
157
+ * @example
158
+ * ```tsx
159
+ * // With custom menu configuration
160
+ * <SelectMenu
161
+ * isOpen={isOpen}
162
+ * context={context}
163
+ * floatingStyles={floatingStyles}
164
+ * getFloatingProps={getFloatingProps}
165
+ * setFloatingRef={refs.setFloating}
166
+ * options={options}
167
+ * selectedValues={selectedValues}
168
+ * onSelectMenuOption={handleSelect}
169
+ * menuProps={{
170
+ * className: "custom-dropdown",
171
+ * portal: false,
172
+ * itemVariant: "solid",
173
+ * activeItemColor: "success"
174
+ * }}
169
175
  * />
170
176
  * ```
171
177
  *
172
- * @see SelectMenuConfig - The configuration type for menu items.
178
+ * @see MenuConfig - The configuration type for menu items.
173
179
  * @see Button - The button component used for menu items.
174
180
  */
175
181
  export declare const SelectMenu: {
176
- ({ isOpen, context, floatingStyles, getFloatingProps, setFloatingRef, options, selectedValues, onSelectOption, isSearch, searchPlaceholder, searchInputName, searchQuery, onSearchChange, belowList, dropdownClassName, menuConfig, menuProps, renderOption, initialFocus, returnFocus, portal, portalTarget, }: SelectMenuProps): import("react").JSX.Element | null;
182
+ ({ isOpen, context, floatingStyles, getFloatingProps, setFloatingRef, options, selectedValues, onSelectMenuOption, isSearch, searchPlaceholder, searchInputName, searchQuery, onSearchChange, belowList, menuConfig, menuProps, renderOption, initialFocus, returnFocus, }: SelectMenuProps): import("react").JSX.Element | null;
177
183
  displayName: string;
178
184
  };
179
185
  //# sourceMappingURL=SelectMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","sources":["../../../src/components/select-menu/SelectMenu.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAoB,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAU5E,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,KA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IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEzC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,KAAK,SAAS,CAAC;IAE5E;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAErD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,eAAO,MAAM,UAAU;gRAoBpB,eAAe;;CA2NjB,CAAC"}
@@ -1,147 +1,161 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as z } from "react/jsx-runtime";
3
- import { FloatingFocusManager as H } from "@floating-ui/react";
4
- import { useState as J, useMemo as W } from "react";
5
- import { createPortal as X } from "react-dom";
6
- import { CheckIcon as Y } from "../../icons/CheckIcon.js";
7
- import { SearchIcon as Z } from "../../icons/SearchIcon.js";
8
- import { useAsheeConfig as $ } from "../../libs/context.js";
9
- import { resolveCascade as c, resolveRadiusKey as p } from "../../utils/resolve-token.js";
10
- import { Button as C } from "../button/Button.js";
11
- import { Input as g } from "../input/Input.js";
12
- import { FALLBACK_SELECT_MENU_CONFIG as l } from "./select-menu-config.js";
13
- import { cn as P } from "../../utils/cn.js";
14
- const tt = ({
15
- isOpen: V,
16
- context: m,
17
- floatingStyles: u,
18
- getFloatingProps: S,
19
- setFloatingRef: k,
20
- options: s = [],
21
- selectedValues: A = [],
22
- onSelectOption: F,
23
- isSearch: v = !0,
24
- searchPlaceholder: M = "Search...",
25
- searchInputName: L = "select-menu-search",
26
- searchQuery: Q,
2
+ import { jsx as a, jsxs as V } from "react/jsx-runtime";
3
+ import { FloatingFocusManager as X } from "@floating-ui/react";
4
+ import { useState as Y, useEffect as Z, useMemo as $ } from "react";
5
+ import { createPortal as n } from "react-dom";
6
+ import { CheckIcon as u } from "../../icons/CheckIcon.js";
7
+ import { SearchIcon as m } from "../../icons/SearchIcon.js";
8
+ import { useAsheeConfig as p } from "../../libs/context.js";
9
+ import { resolveCascade as r, resolveRadiusKey as C } from "../../utils/resolve-token.js";
10
+ import { Button as g } from "../button/Button.js";
11
+ import { Input as P } from "../input/Input.js";
12
+ import { FALLBACK_SELECT_MENU_CONFIG as d } from "./select-menu-config.js";
13
+ import { cn as tt } from "../../utils/cn.js";
14
+ const lt = ({
15
+ isOpen: s,
16
+ context: A,
17
+ floatingStyles: F,
18
+ getFloatingProps: L,
19
+ setFloatingRef: M,
20
+ options: v = [],
21
+ selectedValues: E = [],
22
+ onSelectMenuOption: Q,
23
+ isSearch: y = !0,
24
+ searchPlaceholder: T = "Search...",
25
+ searchInputName: j = "select-menu-search",
26
+ searchQuery: K,
27
27
  onSearchChange: b,
28
28
  belowList: h,
29
- dropdownClassName: j,
30
- menuConfig: t,
31
- menuProps: e,
29
+ menuConfig: l,
30
+ menuProps: t = {},
32
31
  renderOption: x,
33
- initialFocus: E,
34
- returnFocus: K,
35
- portal: R = !0,
36
- portalTarget: _
32
+ initialFocus: R,
33
+ returnFocus: _
37
34
  }) => {
38
- const d = $(), [B, O] = J(""), o = Q ?? B, T = (r) => {
39
- b ? b(r) : O(r);
40
- }, f = W(() => !v || !o.trim() ? s : s.filter(
41
- (r) => r.label.toLowerCase().includes(o.toLowerCase())
42
- ), [s, v, o]), D = (r) => A.includes(r), G = c(
43
- e == null ? void 0 : e.itemVariant,
35
+ const c = p(), [B, D] = Y(""), i = K ?? B, G = (e) => {
36
+ b ? b(e) : D(e);
37
+ }, w = r(
38
+ t == null ? void 0 : t.lockScroll,
39
+ l == null ? void 0 : l.lockScroll,
40
+ void 0,
41
+ d.lockScroll
42
+ ), O = r(
43
+ t == null ? void 0 : t.portal,
44
+ l == null ? void 0 : l.portal,
45
+ void 0,
46
+ d.portal
47
+ ), I = r(
48
+ t == null ? void 0 : t.portalTarget,
49
+ l == null ? void 0 : l.portalTarget,
50
+ void 0,
51
+ typeof document < "u" ? document.body : null
52
+ );
53
+ Z(() => {
54
+ if (!s || !w) return;
55
+ const e = document.body.style.overflow, o = document.body.style.position, J = document.body.style.width;
56
+ return document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.width = "100%", () => {
57
+ document.body.style.overflow = e, document.body.style.position = o, document.body.style.width = J;
58
+ };
59
+ }, [s, w]);
60
+ const N = $(() => !y || !i.trim() ? v : v.filter(
61
+ (e) => e.label.toLowerCase().includes(i.toLowerCase())
62
+ ), [v, y, i]), U = (e) => E.includes(e), W = r(
44
63
  t == null ? void 0 : t.itemVariant,
64
+ l == null ? void 0 : l.itemVariant,
45
65
  void 0,
46
- l.itemVariant
47
- ), y = c(
48
- e == null ? void 0 : e.itemColor,
66
+ d.itemVariant
67
+ ), S = r(
49
68
  t == null ? void 0 : t.itemColor,
50
- d.defaultColor,
51
- l.itemColor
52
- ), U = c(
53
- e == null ? void 0 : e.activeItemVariant,
69
+ l == null ? void 0 : l.itemColor,
70
+ c.defaultColor,
71
+ d.itemColor
72
+ ), q = r(
54
73
  t == null ? void 0 : t.activeItemVariant,
55
- d.defaultVariant,
56
- l.activeItemVariant
57
- ), q = c(
58
- e == null ? void 0 : e.activeItemColor,
74
+ l == null ? void 0 : l.activeItemVariant,
75
+ c.defaultVariant,
76
+ d.activeItemVariant
77
+ ), H = r(
59
78
  t == null ? void 0 : t.activeItemColor,
60
- d.defaultColor,
61
- l.activeItemColor
62
- ), I = p(
63
- e == null ? void 0 : e.radius,
79
+ l == null ? void 0 : l.activeItemColor,
80
+ c.defaultColor,
81
+ d.activeItemColor
82
+ ), f = C(
64
83
  t == null ? void 0 : t.radius,
65
- d.defaultRadius,
66
- l.radius
67
- ), N = c(
68
- e == null ? void 0 : e.size,
84
+ l == null ? void 0 : l.radius,
85
+ c.defaultRadius,
86
+ d.radius
87
+ ), k = r(
69
88
  t == null ? void 0 : t.size,
89
+ l == null ? void 0 : l.size,
70
90
  void 0,
71
- l.size
72
- ), n = _ ?? (typeof document < "u" ? document.body : null);
73
- if (!V) return null;
74
- const w = /* @__PURE__ */ a(
75
- H,
91
+ d.size
92
+ );
93
+ if (!s) return null;
94
+ const z = /* @__PURE__ */ a(
95
+ X,
76
96
  {
77
- context: m,
97
+ context: A,
78
98
  modal: !1,
79
- initialFocus: E,
80
- returnFocus: K,
81
- children: /* @__PURE__ */ a(
99
+ initialFocus: R,
100
+ returnFocus: _,
101
+ children: /* @__PURE__ */ V(
82
102
  "div",
83
103
  {
84
- ref: k,
85
- style: { ...u, zIndex: 999999 },
86
- className: "w-full outline-none",
87
- ...S(),
88
- children: /* @__PURE__ */ z(
89
- "div",
90
- {
91
- className: P(
92
- "max-h-60 shadow-xl bg-background border border-border p-1 flex flex-col gap-0.5 overflow-y-auto scrollbar-hide",
93
- "animate-in fade-in-0 zoom-in-95 slide-in-from-top-1 duration-150 ease-out",
94
- j
95
- ),
96
- children: [
97
- v && /* @__PURE__ */ a("div", { className: "w-full p-1 mb-1 sticky top-0 z-10 border-b border-border", children: /* @__PURE__ */ a(
98
- g,
99
- {
100
- name: L,
101
- type: "text",
102
- variant: "bordered",
103
- radius: I,
104
- color: y,
105
- size: N,
106
- value: o,
107
- onChange: (r) => T(r.target.value),
108
- startContent: /* @__PURE__ */ a(Z, { className: "w-3.5 h-3.5 text-foreground/70" }),
109
- placeholder: M,
110
- autoFocus: !0,
111
- className: "w-full pl-8 h-8 text-xs bg-secondary/30 border-none focus-visible:ring-0"
112
- }
113
- ) }),
114
- f.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-4 text-xs text-foreground/70 text-center", children: "No options found" }) : f.map((r) => {
115
- const i = D(r.value);
116
- return x ? x(r, i) : /* @__PURE__ */ z(
117
- C,
118
- {
119
- variant: i ? U : G,
120
- color: i ? q : y,
121
- radius: I,
122
- size: N,
123
- isDisabled: r.disabled,
124
- onClick: () => F(r),
125
- className: "w-full justify-between font-normal text-left transition-colors truncate",
126
- children: [
127
- /* @__PURE__ */ a("span", { children: r.label }),
128
- i && /* @__PURE__ */ a(Y, { className: "w-3.5 h-3.5 shrink-0 ml-2" })
129
- ]
130
- },
131
- String(r.value)
132
- );
133
- }),
134
- h && /* @__PURE__ */ a("div", { className: "border-t border-border pt-1 mt-1", children: h })
135
- ]
136
- }
137
- )
104
+ ref: M,
105
+ style: { ...F },
106
+ className: tt(
107
+ "z-100 w-full outline-none max-h-60 shadow-xl bg-background border border-border p-1 flex flex-col gap-0.5 overflow-y-auto scrollable-hidden",
108
+ "animate-in fade-in-0 zoom-in-95 slide-in-from-top-1 duration-150 ease-out",
109
+ t == null ? void 0 : t.className
110
+ ),
111
+ ...L(),
112
+ children: [
113
+ y && /* @__PURE__ */ a("div", { className: "w-full p-1 mb-1 sticky top-0 z-10 border-b border-border", children: /* @__PURE__ */ a(
114
+ P,
115
+ {
116
+ name: j,
117
+ type: "text",
118
+ variant: "bordered",
119
+ radius: f,
120
+ color: S,
121
+ size: k,
122
+ value: i,
123
+ onChange: (e) => G(e.target.value),
124
+ startContent: /* @__PURE__ */ a(m, { className: "w-3.5 h-3.5 text-foreground/70" }),
125
+ placeholder: T,
126
+ autoFocus: !0,
127
+ className: "w-full pl-8 h-8 text-xs bg-secondary/30 border-none focus-visible:ring-0"
128
+ }
129
+ ) }),
130
+ N.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-4 text-xs text-foreground/70 text-center", children: "No options found" }) : N.map((e) => {
131
+ const o = U(e.value);
132
+ return x ? x(e, o) : /* @__PURE__ */ V(
133
+ g,
134
+ {
135
+ variant: o ? q : W,
136
+ color: o ? H : S,
137
+ radius: f,
138
+ size: k,
139
+ isDisabled: e.disabled,
140
+ onClick: () => Q(e),
141
+ className: "w-full justify-between font-normal text-left transition-colors truncate",
142
+ children: [
143
+ /* @__PURE__ */ a("span", { children: e.label }),
144
+ o && /* @__PURE__ */ a(u, { className: "w-3.5 h-3.5 shrink-0 ml-2" })
145
+ ]
146
+ },
147
+ String(e.value)
148
+ );
149
+ }),
150
+ h && /* @__PURE__ */ a("div", { className: "border-t border-border pt-1 mt-1", children: h })
151
+ ]
138
152
  }
139
153
  )
140
154
  }
141
155
  );
142
- return R && n ? X(w, n) : w;
156
+ return O && I ? n(z, I) : z;
143
157
  };
144
- tt.displayName = "SelectMenu";
158
+ lt.displayName = "SelectMenu";
145
159
  export {
146
- tt as SelectMenu
160
+ lt as SelectMenu
147
161
  };
@@ -29,7 +29,7 @@ export interface SelectMenuOption {
29
29
  * Theme configuration options for the SelectMenu component.
30
30
  * Controls the visual appearance of the dropdown menu and its items.
31
31
  */
32
- export interface SelectMenuConfig {
32
+ export interface MenuConfig {
33
33
  /**
34
34
  * Corner rounding of the dropdown menu.
35
35
  * Controls the border-radius of the menu container.
@@ -72,11 +72,42 @@ export interface SelectMenuConfig {
72
72
  * @default "primary"
73
73
  */
74
74
  activeItemColor?: Color;
75
+ /**
76
+ * Whether to lock body scroll when the dropdown is open.
77
+ * When true, the page behind the dropdown cannot scroll.
78
+ * This prevents the page from scrolling while interacting with the dropdown.
79
+ *
80
+ * @default false
81
+ */
82
+ lockScroll?: boolean;
83
+ /**
84
+ * Whether to render the menu in a React portal.
85
+ * When true, the menu is rendered at the document body level.
86
+ * Defaults to true. This is typically controlled by the parent
87
+ * component (Select, MultiSelect, Autocomplete) via their own
88
+ * config or props.
89
+ */
90
+ portal?: boolean;
91
+ /**
92
+ * Custom portal target element for the menu.
93
+ * When portal is enabled, the menu is rendered into this element.
94
+ * Defaults to document.body.
95
+ */
96
+ portalTarget?: HTMLElement | null;
75
97
  }
76
98
  /**
77
99
  * Hard fallback values used when no config tier provides a value.
78
100
  * These values are used when instance props, component config,
79
101
  * and global defaults are all undefined.
80
102
  */
81
- export declare const FALLBACK_SELECT_MENU_CONFIG: Required<SelectMenuConfig>;
103
+ export declare const FALLBACK_SELECT_MENU_CONFIG: {
104
+ radius: Radius;
105
+ size: Size;
106
+ itemVariant: Variant;
107
+ itemColor: Color;
108
+ activeItemVariant: Variant;
109
+ activeItemColor: Color;
110
+ lockScroll: boolean;
111
+ portal: boolean;
112
+ };
82
113
  //# sourceMappingURL=select-menu-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-menu-config.d.ts","sourceRoot":"","sources":["../../../src/components/select-menu/select-menu-config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;IAElB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,gBAAgB,CAOlE,CAAC"}
1
+ {"version":3,"file":"select-menu-config.d.ts","sourceRoot":"","sources":["../../../src/components/select-menu/select-menu-config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;IAElB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;IAExB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;YACtB,MAAM;UACR,IAAI;iBACM,OAAO;eACP,KAAK;uBACC,OAAO;qBACP,KAAK;;;CAGpC,CAAC"}
@@ -5,7 +5,9 @@ const t = {
5
5
  itemVariant: "ghost",
6
6
  itemColor: "primary",
7
7
  activeItemVariant: "faded",
8
- activeItemColor: "primary"
8
+ activeItemColor: "primary",
9
+ lockScroll: !1,
10
+ portal: !0
9
11
  };
10
12
  export {
11
13
  t as FALLBACK_SELECT_MENU_CONFIG
@@ -275,7 +275,7 @@ function Ge({
275
275
  "nav",
276
276
  {
277
277
  className: i(
278
- "flex-1 overflow-y-auto py-3 px-2 flex flex-col gap-3 scrollbar-hide",
278
+ "flex-1 overflow-y-auto py-3 px-2 flex flex-col gap-3 scrollable-hidden",
279
279
  ee
280
280
  ),
281
281
  children: Ae.map(_e)
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent, InputHTMLAttributes } from 'react';
2
2
  import { SwitchConfig } from './switch-config';
3
- type BaseSwitchProps = SwitchConfig & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "children" | "color">;
3
+ type BaseSwitchProps = Omit<SwitchConfig, "status"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "children" | "color">;
4
4
  /**
5
5
  * Configuration options for the Switch component.
6
6
  */
@@ -15,11 +15,6 @@ export interface SwitchProps extends BaseSwitchProps {
15
15
  * Provides additional context for the switch.
16
16
  */
17
17
  description?: string;
18
- /**
19
- * Validation message shown below the switch.
20
- * Color is determined by the status prop.
21
- */
22
- message?: string;
23
18
  /**
24
19
  * Whether the field is required.
25
20
  * Adds a required indicator to the label.
@@ -51,23 +46,20 @@ export interface SwitchProps extends BaseSwitchProps {
51
46
  onChange?: (checked: boolean, event: ChangeEvent<HTMLInputElement>) => void;
52
47
  }
53
48
  /**
54
- * A toggle switch with label, description, and validation support.
49
+ * A toggle switch with label and description support.
55
50
  *
56
51
  * Switch renders a toggle input that can be checked or unchecked. It
57
- * supports controlled and uncontrolled usage, validation states, and
58
- * the standard AsheeUI cascade for visual tokens. The component
59
- * integrates with FieldShell for label, description, and message
60
- * handling.
52
+ * supports controlled and uncontrolled usage, and the standard AsheeUI
53
+ * cascade for visual tokens. The component integrates with FieldShell for
54
+ * label and description handling.
61
55
  *
62
56
  * The component automatically handles accessibility attributes including
63
- * role="switch", aria-checked, aria-invalid, and aria-busy for loading
64
- * states. It also supports proper focus management through the native
65
- * input element.
57
+ * role="switch", aria-checked, and aria-busy for loading states. It also
58
+ * supports proper focus management through the native input element.
66
59
  *
67
60
  * @param props - Switch configuration options.
68
61
  * @param props.label - Label text for the switch.
69
62
  * @param props.description - Description text.
70
- * @param props.message - Validation message.
71
63
  * @param props.required - Whether the field is required. Defaults to false.
72
64
  * @param props.isLoading - Loading state. Defaults to false.
73
65
  * @param props.checked - Controlled checked state.
@@ -76,7 +68,6 @@ export interface SwitchProps extends BaseSwitchProps {
76
68
  * @param props.size - Size scale. Defaults to "md".
77
69
  * @param props.color - Theme accent color. Defaults to "primary".
78
70
  * @param props.radius - Corner rounding. Defaults to "full".
79
- * @param props.status - Validation status. Defaults to "default".
80
71
  * @param props.labelAlign - Alignment of the label. Defaults to "left".
81
72
  * @param props.disabled - Whether the switch is disabled.
82
73
  * @param props.className - Extra CSS classes for the switch.
@@ -91,29 +82,14 @@ export interface SwitchProps extends BaseSwitchProps {
91
82
  * const [checked, setChecked] = useState(false);
92
83
  *
93
84
  * return (
94
- * <Switch
95
- * label="Enable notifications"
96
- * description="Receive email notifications for updates"
97
- * checked={checked}
98
- * onChange={(checked) => setChecked(checked)}
85
+ * <Switch * checked="{checked}" description="Receive email notifications for updates" label="Enable notifications" onChange="{(checked)"> setChecked(checked)}
99
86
  * />
100
87
  * );
101
88
  * }
102
89
  * ```
103
90
  *
104
- * @example
105
- * ```tsx
106
- * // With validation
107
- * <Switch
108
- * label="Terms accepted"
109
- * status="error"
110
- * message="You must accept the terms to continue"
111
- * required
112
- * />
113
- * ```
114
- *
115
91
  * @see SwitchConfig - The configuration type for component defaults.
116
- * @see FieldShell - The wrapper component for label and validation.
92
+ * @see FieldShell - The wrapper component for label and layout.
117
93
  * @see useAsheeConfig - Hook for accessing the global configuration.
118
94
  */
119
95
  export declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/switch/Switch.tsx"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,mBAAmB,EAIzB,MAAM,OAAO,CAAC;AAWf,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAU5E,KAAK,eAAe,GAAG,YAAY,GACjC,IAAI,CACF,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAC3C,CAAC;AAEJ;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC7E;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,eAAO,MAAM,MAAM,0GAiLlB,CAAC"}
1
+ {"version":3,"file":"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