twenty-ui 2.48.0 → 2.49.0

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 (203) hide show
  1. package/README.md +27 -2
  2. package/dist/Avatar-C6WxBgjS.cjs +1 -0
  3. package/dist/{Avatar-D-QA0RE5.js → Avatar-ifVlxbx_.js} +18 -17
  4. package/dist/{Button-D5enZ0Qz.js → Button-DIw804CX.js} +1 -1
  5. package/dist/{Button-Dbi5P05r.cjs → Button-DTm1WDzp.cjs} +1 -1
  6. package/dist/Dropdown-1OAJvS1f.js +1000 -0
  7. package/dist/Dropdown-Bl4OXCf9.cjs +1 -0
  8. package/dist/{ListItem-CjnrSbka.js → ListItem-DizNUBT8.js} +1 -1
  9. package/dist/{ListItem-CHTR-GLd.cjs → ListItem-DwBb-I1D.cjs} +1 -1
  10. package/dist/{ProgressBar-BvT1dyFo.js → ProgressBar-B3xACTV2.js} +1 -1
  11. package/dist/{ProgressBar-DfFz0fFB.cjs → ProgressBar-OpSMnDBz.cjs} +1 -1
  12. package/dist/{Radio-DMI1B7o5.js → Radio-BEAztmPu.js} +1 -1
  13. package/dist/{Radio-xmHgGHQO.cjs → Radio-Dx6b4SYZ.cjs} +1 -1
  14. package/dist/ResizeHandle-B1MuHTNA.cjs +1 -0
  15. package/dist/{ResizeHandle-C1kQ3MYR.js → ResizeHandle-B30OYZxS.js} +56 -55
  16. package/dist/Shortcut-Bp9iDdQg.js +73 -0
  17. package/dist/Shortcut-N8TELGPI.cjs +1 -0
  18. package/dist/{TintedIconTile-4BGa8g8n.js → TintedIconTile-B1XDtGrF.js} +1 -1
  19. package/dist/{TintedIconTile-CU2hCerq.cjs → TintedIconTile-DO1XJXCQ.cjs} +1 -1
  20. package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -1
  21. package/dist/components/code-editor.cjs +1 -1
  22. package/dist/components/code-editor.mjs +52 -51
  23. package/dist/components/data-display.cjs +1 -1
  24. package/dist/components/data-display.mjs +2 -2
  25. package/dist/components/feedback.cjs +1 -1
  26. package/dist/components/feedback.mjs +1 -1
  27. package/dist/components/input/CountrySelect/CountrySelect.d.ts +5 -2
  28. package/dist/components/input/CountrySelect/__stories__/CountrySelectPartsExample.d.ts +11 -0
  29. package/dist/components/input/CountrySelect/internal/CountrySelectComponent.d.ts +2 -0
  30. package/dist/components/input/CountrySelect/internal/CountrySelectContext.d.ts +2 -0
  31. package/dist/components/input/CountrySelect/internal/CountrySelectContextValue.d.ts +11 -0
  32. package/dist/components/input/CountrySelect/internal/CountrySelectDropdown.d.ts +4 -0
  33. package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +2 -11
  34. package/dist/components/input/CountrySelect/internal/CountrySelectOptionsContent.d.ts +2 -0
  35. package/dist/components/input/CountrySelect/internal/CountrySelectRoot.d.ts +2 -0
  36. package/dist/components/input/CountrySelect/internal/CountrySelectTrigger.d.ts +2 -0
  37. package/dist/components/input/CountrySelect/internal/NO_COUNTRY_SELECTION_VALUE.d.ts +1 -0
  38. package/dist/components/input/CountrySelect/internal/PreparedCountryChoice.d.ts +5 -0
  39. package/dist/components/input/CountrySelect/internal/getCountrySelectionValue.d.ts +1 -0
  40. package/dist/components/input/CountrySelect/internal/useCountrySelectContextOrThrow.d.ts +1 -0
  41. package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +1 -0
  42. package/dist/components/input/CountrySelect/types/CountrySelectOptionsProps.d.ts +10 -0
  43. package/dist/components/input/CountrySelect/types/CountrySelectOptionsState.d.ts +4 -0
  44. package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +7 -13
  45. package/dist/components/input/CountrySelect/types/CountrySelectRootProps.d.ts +12 -0
  46. package/dist/components/input/CountrySelect/types/CountrySelectTriggerProps.d.ts +6 -0
  47. package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -3
  48. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts +5 -0
  49. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledExample.d.ts +5 -0
  50. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts +5 -0
  51. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +3 -4
  52. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerListLabelExample.d.ts +1 -0
  53. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerRootStateExample.d.ts +1 -0
  54. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerContext.d.ts +11 -0
  55. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +1 -1
  56. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerRoot.d.ts +2 -0
  57. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerShorthand.d.ts +2 -0
  58. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +1 -1
  59. package/dist/components/input/CurrencyPicker/internal/PreparedCurrencyPickerOption.d.ts +7 -0
  60. package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerSearchText.d.ts +2 -0
  61. package/dist/components/input/CurrencyPicker/internal/useCurrencyPickerContextOrThrow.d.ts +7 -0
  62. package/dist/components/input/CurrencyPicker/types/CurrencyPickerChangeEventDetails.d.ts +2 -0
  63. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +1 -0
  64. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +6 -5
  65. package/dist/components/input/CurrencyPicker/types/CurrencyPickerProps.d.ts +10 -0
  66. package/dist/components/input/CurrencyPicker/types/CurrencyPickerRootProps.d.ts +17 -0
  67. package/dist/components/input/CurrencyPicker/types/CurrencyPickerState.d.ts +6 -0
  68. package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +3 -2
  69. package/dist/components/input/IconButton/__stories__/IconButtonExample.d.ts +7 -0
  70. package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +5 -3
  71. package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +7 -3
  72. package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts +5 -0
  73. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryCallingCodeDirection.d.ts +3 -0
  74. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts +5 -0
  75. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountrySelection.d.ts +5 -0
  76. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerContext.d.ts +9 -0
  77. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +1 -1
  78. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerRoot.d.ts +2 -0
  79. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +1 -1
  80. package/dist/components/input/PhoneCountryPicker/internal/PreparedPhoneCountryOption.d.ts +5 -0
  81. package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionTooltipLabel.d.ts +2 -0
  82. package/dist/components/input/PhoneCountryPicker/internal/matchesPhoneCountrySearch.d.ts +6 -0
  83. package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts +7 -0
  84. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +1 -0
  85. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +4 -5
  86. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerProps.d.ts +10 -0
  87. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerRootProps.d.ts +12 -0
  88. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +1 -3
  89. package/dist/components/input/index.d.ts +10 -0
  90. package/dist/components/input.cjs +1 -1
  91. package/dist/components/input.mjs +13 -13
  92. package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +1 -2
  93. package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +1 -2
  94. package/dist/components/layout.cjs +1 -1
  95. package/dist/components/layout.mjs +1 -1
  96. package/dist/components/navigation/Dropdown/Dropdown.d.ts +2 -1
  97. package/dist/components/navigation/Dropdown/__stories__/DropdownIconGridExample.d.ts +3 -0
  98. package/dist/components/navigation/Dropdown/__stories__/DropdownSelectionGroupsExample.d.ts +1 -0
  99. package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +6 -1
  100. package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
  101. package/dist/components/navigation/Dropdown/internal/DropdownOptionItemOwner.d.ts +7 -0
  102. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContext.d.ts +2 -0
  103. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContextValue.d.ts +9 -0
  104. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroup.d.ts +2 -0
  105. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroupEffect.d.ts +11 -0
  106. package/dist/components/navigation/Dropdown/internal/createDropdownSelectionEventDetails.d.ts +5 -0
  107. package/dist/components/navigation/Dropdown/internal/dropdownItemActivation.d.ts +11 -0
  108. package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +2 -2
  109. package/dist/components/navigation/Dropdown/internal/getDropdownOptionItemRole.d.ts +9 -0
  110. package/dist/components/navigation/Dropdown/internal/getDropdownSelectionGroupState.d.ts +6 -0
  111. package/dist/components/navigation/Dropdown/internal/getTrailingFocusGuard.d.ts +1 -0
  112. package/dist/components/navigation/Dropdown/internal/isDropdownOptionItemSelected.d.ts +6 -0
  113. package/dist/components/navigation/Dropdown/internal/useDropdownSelections.d.ts +12 -0
  114. package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -2
  115. package/dist/components/navigation/Dropdown/types/DropdownOptionItemSelectEventDetails.d.ts +2 -0
  116. package/dist/components/navigation/Dropdown/types/DropdownOptionItemState.d.ts +5 -0
  117. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails.d.ts +7 -0
  118. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupProps.d.ts +21 -0
  119. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupState.d.ts +7 -0
  120. package/dist/components/navigation/index.d.ts +5 -0
  121. package/dist/components/navigation.cjs +1 -1
  122. package/dist/components/navigation.mjs +2 -2
  123. package/dist/components/settings.cjs +1 -1
  124. package/dist/components/settings.mjs +1 -1
  125. package/dist/components.cjs +1 -1
  126. package/dist/components.mjs +22 -22
  127. package/dist/data-display-BSKGlijb.cjs +1 -0
  128. package/dist/{data-display-KyZbLLy-.js → data-display-BtXCGOGw.js} +81 -80
  129. package/dist/{data-display-0QO_WDSs.js → data-display-DtXIhJ4B.js} +45 -44
  130. package/dist/data-display-XV3ht1rC.cjs +2 -0
  131. package/dist/doNotTranslate-BSVT8Xyd.js +4 -0
  132. package/dist/doNotTranslate-CHE7WmRS.cjs +1 -0
  133. package/dist/feedback-Cs-38OH4.cjs +1 -0
  134. package/dist/{feedback-CM6fatE8.js → feedback-DTyVVcTb.js} +198 -197
  135. package/dist/index.cjs +1 -1
  136. package/dist/index.mjs +42 -42
  137. package/dist/{input-CJDYNwoO.cjs → input-B_rBplmn.cjs} +1 -1
  138. package/dist/input-BrjD91wv.js +785 -0
  139. package/dist/input-ChlFcqIS.cjs +1 -0
  140. package/dist/{input-DRpDiMRi.js → input-D1oyk0tD.js} +2 -2
  141. package/dist/layout-CthYckvl.cjs +1 -0
  142. package/dist/layout-DQcjBu08.js +439 -0
  143. package/dist/{navigation-B1SRvzKK.js → navigation-B6nka3bW.js} +125 -128
  144. package/dist/navigation-CIVYqPc5.js +132 -0
  145. package/dist/navigation-CflGBYv-.cjs +1 -0
  146. package/dist/navigation-DoInK0Sp.cjs +1 -0
  147. package/dist/preventDismissingClickActivation-AaqHBLnW.js +45 -0
  148. package/dist/preventDismissingClickActivation-CIhWvKCu.cjs +1 -0
  149. package/dist/primitives/data-display.cjs +1 -1
  150. package/dist/primitives/data-display.mjs +2 -2
  151. package/dist/primitives/feedback.cjs +1 -1
  152. package/dist/primitives/feedback.mjs +1 -1
  153. package/dist/primitives/input/Radio/__stories__/RadioCardContent.d.ts +8 -0
  154. package/dist/primitives/input.cjs +1 -1
  155. package/dist/primitives/input.mjs +3 -3
  156. package/dist/primitives/layout/ResizeHandle/__stories__/ResizableNotesExample.d.ts +2 -0
  157. package/dist/primitives/layout.cjs +1 -1
  158. package/dist/primitives/layout.mjs +1 -1
  159. package/dist/primitives/navigation.cjs +1 -1
  160. package/dist/primitives/navigation.mjs +2 -2
  161. package/dist/primitives/typography.cjs +1 -1
  162. package/dist/primitives/typography.mjs +2 -2
  163. package/dist/primitives.cjs +1 -1
  164. package/dist/primitives.mjs +11 -11
  165. package/dist/{settings-BjEZiHXE.js → settings-BgVuLpg9.js} +1 -1
  166. package/dist/{settings-BAYsnlZJ.cjs → settings-CPXhrmbK.cjs} +1 -1
  167. package/dist/style.css +1 -1
  168. package/dist/testing/GroupedCatalog.d.ts +14 -0
  169. package/dist/testing/index.d.ts +1 -0
  170. package/dist/testing.cjs +1 -1
  171. package/dist/testing.mjs +96 -66
  172. package/dist/{typography-fOTFr0jS.js → typography-DT2eKLvd.js} +1 -1
  173. package/dist/{typography-B5QEuPaL.cjs → typography-bKeSMuJd.cjs} +1 -1
  174. package/dist/useIsMobile-Byp9AIq-.cjs +1 -0
  175. package/dist/useIsMobile-D1ImfQnE.js +38 -0
  176. package/dist/utilities/internal/doNotTranslate.d.ts +1 -0
  177. package/dist/utilities-BKCMZyqZ.js +53 -0
  178. package/dist/utilities-xZh8D2gd.cjs +1 -0
  179. package/dist/utilities.cjs +1 -1
  180. package/dist/utilities.mjs +3 -3
  181. package/package.json +3 -3
  182. package/dist/Avatar-CQhIEazb.cjs +0 -1
  183. package/dist/Dropdown-BKjAaZS0.cjs +0 -1
  184. package/dist/Dropdown-C2hXrjvD.js +0 -820
  185. package/dist/ResizeHandle-DI4LHIQm.cjs +0 -1
  186. package/dist/Shortcut-BvWUZ3pb.js +0 -72
  187. package/dist/Shortcut-CgrdLv_L.cjs +0 -1
  188. package/dist/data-display-CPmTJAWJ.cjs +0 -1
  189. package/dist/data-display-DjhAHvj1.cjs +0 -2
  190. package/dist/feedback-ybO4n69s.cjs +0 -1
  191. package/dist/input-3D2lXywH.cjs +0 -1
  192. package/dist/input-TM3nUdu6.js +0 -554
  193. package/dist/layout-BszCDxAO.js +0 -441
  194. package/dist/layout-VaIq7Sjr.cjs +0 -1
  195. package/dist/navigation-CYAs2LnR.js +0 -131
  196. package/dist/navigation-CthkGHJ8.cjs +0 -1
  197. package/dist/navigation-DrOV5E67.cjs +0 -1
  198. package/dist/preventDismissingClickActivation-CzWqpjiX.js +0 -44
  199. package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +0 -1
  200. package/dist/useIsMobile-DxOPI2_E.cjs +0 -1
  201. package/dist/useIsMobile-nrufFzMb.js +0 -37
  202. package/dist/utilities-BeLfNQ0Q.cjs +0 -1
  203. package/dist/utilities-CEi9I09B.js +0 -52
@@ -0,0 +1,6 @@
1
+ import { CurrencyPickerOption } from './CurrencyPickerOption';
2
+ export type CurrencyPickerState = {
3
+ value: string | null;
4
+ selectedCurrency: CurrencyPickerOption | undefined;
5
+ disabled: boolean;
6
+ };
@@ -1,4 +1,5 @@
1
+ import { ReactNode } from 'react';
1
2
  import { DropdownTriggerProps } from '../../../navigation/Dropdown/types/DropdownTriggerProps';
2
- export type CurrencyPickerTriggerProps = Omit<DropdownTriggerProps, 'children' | 'value' | 'openOnHover' | 'delay' | 'closeDelay' | 'handle' | 'payload'> & {
3
- value: string;
3
+ export type CurrencyPickerTriggerProps = Omit<DropdownTriggerProps, 'value' | 'openOnHover' | 'delay' | 'closeDelay'> & {
4
+ placeholder?: ReactNode;
4
5
  };
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ type IconButtonExampleProps = {
3
+ children: ReactNode;
4
+ label: string;
5
+ };
6
+ export declare const IconButtonExample: ({ children, label, }: IconButtonExampleProps) => import("react").JSX.Element;
7
+ export {};
@@ -1,4 +1,6 @@
1
- export declare const PhoneCountryPicker: {
2
- Trigger: ({ country, className, "aria-describedby": ariaDescribedBy, ...props }: import('..').PhoneCountryPickerTriggerProps) => import("react").JSX.Element;
3
- Options: ({ countries, value, onValueChange, searchLabel, emptyLabel, }: import('..').PhoneCountryPickerOptionsProps) => import("react").JSX.Element;
1
+ import { PhoneCountryPickerProps } from './types/PhoneCountryPickerProps';
2
+ export declare const PhoneCountryPicker: (({ countries, value, defaultValue, onValueChange, disabled, closeOnSelect, dropdownProps, contentProps, optionsProps, ...triggerProps }: PhoneCountryPickerProps) => import("react").JSX.Element) & {
3
+ Root: ({ children, countries, value: controlledValue, defaultValue, onValueChange, disabled, closeOnSelect, }: import('..').PhoneCountryPickerRootProps) => import("react").JSX.Element;
4
+ Trigger: ({ children, disabled: triggerDisabled, className, "aria-describedby": ariaDescribedBy, ...props }: import('..').PhoneCountryPickerTriggerProps) => import("react").JSX.Element;
5
+ Options: ({ searchLabel, listLabel, emptyLabel, disabled: optionsDisabled, className, render, ref, ...props }: import('..').PhoneCountryPickerOptionsProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
4
6
  };
@@ -1,12 +1,16 @@
1
+ import { DropdownSelectionGroupChangeEventDetails } from '../../../navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails';
1
2
  import { PhoneCountryOption } from '../types/PhoneCountryOption';
2
3
  type PhoneCountryPickerExampleProps = {
3
- initialValue?: string;
4
+ initialValue?: string | null;
5
+ composition?: 'shorthand' | 'compound';
6
+ controlled?: boolean;
4
7
  disabled?: boolean;
5
8
  label?: string;
6
9
  countries?: readonly PhoneCountryOption[];
7
10
  searchLabel?: string;
11
+ listLabel?: string;
8
12
  emptyLabel?: string;
9
- onValueChange?: (value: string) => void;
13
+ onValueChange?: (value: string | null, eventDetails: DropdownSelectionGroupChangeEventDetails) => void;
10
14
  };
11
- export declare const PhoneCountryPickerExample: ({ initialValue, disabled, label, countries, searchLabel, emptyLabel, onValueChange, }: PhoneCountryPickerExampleProps) => import("react").JSX.Element;
15
+ export declare const PhoneCountryPickerExample: ({ initialValue, composition, controlled, disabled, label, countries, searchLabel, listLabel, emptyLabel, onValueChange, }: PhoneCountryPickerExampleProps) => import("react").JSX.Element;
12
16
  export {};
@@ -0,0 +1,5 @@
1
+ import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
2
+ export declare const testDisabledPhoneCountryPicker: ({ canvasElement, args, }: {
3
+ canvasElement: HTMLElement;
4
+ args: Pick<PhoneCountryPickerRootProps, "onValueChange">;
5
+ }) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ export declare const testPhoneCountryCallingCodeDirection: ({ canvasElement, }: {
2
+ canvasElement: HTMLElement;
3
+ }) => Promise<void>;
@@ -0,0 +1,5 @@
1
+ import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
2
+ export declare const testPhoneCountryNullSelection: ({ canvasElement, args, }: {
3
+ canvasElement: HTMLElement;
4
+ args: Pick<PhoneCountryPickerRootProps, "onValueChange">;
5
+ }) => Promise<void>;
@@ -0,0 +1,5 @@
1
+ import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
2
+ export declare const testPhoneCountrySelection: ({ canvasElement, args, }: {
3
+ canvasElement: HTMLElement;
4
+ args: Pick<PhoneCountryPickerRootProps, "onValueChange">;
5
+ }) => Promise<void>;
@@ -0,0 +1,9 @@
1
+ import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
2
+ import { PreparedPhoneCountryOption } from './PreparedPhoneCountryOption';
3
+ export declare const PhoneCountryPickerContext: import('react').Context<{
4
+ countries: readonly PreparedPhoneCountryOption[];
5
+ value: string | null;
6
+ onValueChange: NonNullable<PhoneCountryPickerRootProps["onValueChange"]>;
7
+ disabled: boolean;
8
+ closeOnSelect: boolean;
9
+ } | null>;
@@ -1,2 +1,2 @@
1
1
  import { PhoneCountryPickerOptionsProps } from '../types/PhoneCountryPickerOptionsProps';
2
- export declare const PhoneCountryPickerOptions: ({ countries, value, onValueChange, searchLabel, emptyLabel, }: PhoneCountryPickerOptionsProps) => import("react").JSX.Element;
2
+ export declare const PhoneCountryPickerOptions: ({ searchLabel, listLabel, emptyLabel, disabled: optionsDisabled, className, render, ref, ...props }: PhoneCountryPickerOptionsProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
@@ -0,0 +1,2 @@
1
+ import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
2
+ export declare const PhoneCountryPickerRoot: ({ children, countries, value: controlledValue, defaultValue, onValueChange, disabled, closeOnSelect, }: PhoneCountryPickerRootProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PhoneCountryPickerTriggerProps } from '../types/PhoneCountryPickerTriggerProps';
2
- export declare const PhoneCountryPickerTrigger: ({ country, className, "aria-describedby": ariaDescribedBy, ...props }: PhoneCountryPickerTriggerProps) => import("react").JSX.Element;
2
+ export declare const PhoneCountryPickerTrigger: ({ children, disabled: triggerDisabled, className, "aria-describedby": ariaDescribedBy, ...props }: PhoneCountryPickerTriggerProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { PhoneCountryOption } from '../types/PhoneCountryOption';
2
+ export type PreparedPhoneCountryOption = PhoneCountryOption & {
3
+ searchLabel: string;
4
+ searchValue: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { PhoneCountryOption } from '../types/PhoneCountryOption';
2
+ export declare const getPhoneCountryOptionTooltipLabel: ({ label, callingCode, }: Pick<PhoneCountryOption, "label" | "callingCode">) => string;
@@ -0,0 +1,6 @@
1
+ import { PreparedPhoneCountryOption } from './PreparedPhoneCountryOption';
2
+ export declare const matchesPhoneCountrySearch: ({ country, normalizedSearch, callingCodeSearch, }: {
3
+ country: Pick<PreparedPhoneCountryOption, "searchLabel" | "searchValue" | "callingCode">;
4
+ normalizedSearch: string;
5
+ callingCodeSearch: string;
6
+ }) => boolean;
@@ -0,0 +1,7 @@
1
+ export declare const usePhoneCountryPickerContextOrThrow: () => {
2
+ countries: readonly import('./PreparedPhoneCountryOption').PreparedPhoneCountryOption[];
3
+ value: string | null;
4
+ onValueChange: NonNullable<import('../..').PhoneCountryPickerRootProps["onValueChange"]>;
5
+ disabled: boolean;
6
+ closeOnSelect: boolean;
7
+ };
@@ -4,4 +4,5 @@ export type PhoneCountryOption = {
4
4
  label: string;
5
5
  callingCode: string;
6
6
  flag: ReactNode;
7
+ disabled?: boolean;
7
8
  };
@@ -1,8 +1,7 @@
1
- import { PhoneCountryOption } from './PhoneCountryOption';
2
- export type PhoneCountryPickerOptionsProps = {
3
- countries: readonly PhoneCountryOption[];
4
- value?: string;
5
- onValueChange: (value: string) => void;
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ export type PhoneCountryPickerOptionsProps = Omit<useRender.ComponentProps<'div'>, 'children'> & {
3
+ disabled?: boolean;
6
4
  searchLabel?: string;
5
+ listLabel?: string;
7
6
  emptyLabel?: string;
8
7
  };
@@ -0,0 +1,10 @@
1
+ import { DropdownContentProps } from '../../../navigation/Dropdown/types/DropdownContentProps';
2
+ import { DropdownRootProps } from '../../../navigation/Dropdown/types/DropdownRootProps';
3
+ import { PhoneCountryPickerOptionsProps } from './PhoneCountryPickerOptionsProps';
4
+ import { PhoneCountryPickerRootProps } from './PhoneCountryPickerRootProps';
5
+ import { PhoneCountryPickerTriggerProps } from './PhoneCountryPickerTriggerProps';
6
+ export type PhoneCountryPickerProps = Omit<PhoneCountryPickerRootProps, 'children'> & Omit<PhoneCountryPickerTriggerProps, 'value' | 'defaultValue'> & {
7
+ dropdownProps?: Omit<DropdownRootProps, 'children' | 'type' | 'multiple'>;
8
+ contentProps?: Omit<DropdownContentProps, 'children'>;
9
+ optionsProps?: PhoneCountryPickerOptionsProps;
10
+ };
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { DropdownSelectionGroupChangeEventDetails } from '../../../navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails';
3
+ import { PhoneCountryOption } from './PhoneCountryOption';
4
+ export type PhoneCountryPickerRootProps = {
5
+ children: ReactNode;
6
+ countries: readonly PhoneCountryOption[];
7
+ value?: string | null;
8
+ defaultValue?: string | null;
9
+ onValueChange?: (value: string | null, eventDetails: DropdownSelectionGroupChangeEventDetails) => void;
10
+ disabled?: boolean;
11
+ closeOnSelect?: boolean;
12
+ };
@@ -1,6 +1,4 @@
1
1
  import { DropdownTriggerProps } from '../../../navigation/Dropdown/types/DropdownTriggerProps';
2
- import { PhoneCountryOption } from './PhoneCountryOption';
3
- export type PhoneCountryPickerTriggerProps = Omit<DropdownTriggerProps, 'children' | 'render' | 'nativeButton' | 'aria-label'> & {
4
- country?: PhoneCountryOption;
2
+ export type PhoneCountryPickerTriggerProps = Omit<DropdownTriggerProps, 'aria-label'> & {
5
3
  'aria-label': string;
6
4
  };
@@ -1,9 +1,17 @@
1
1
  export { CountrySelect } from './CountrySelect/CountrySelect';
2
2
  export type { CountryChoice } from './CountrySelect/types/CountryChoice';
3
+ export type { CountrySelectOptionsProps } from './CountrySelect/types/CountrySelectOptionsProps';
4
+ export type { CountrySelectOptionsState } from './CountrySelect/types/CountrySelectOptionsState';
3
5
  export type { CountrySelectProps } from './CountrySelect/types/CountrySelectProps';
6
+ export type { CountrySelectRootProps } from './CountrySelect/types/CountrySelectRootProps';
7
+ export type { CountrySelectTriggerProps } from './CountrySelect/types/CountrySelectTriggerProps';
4
8
  export { CurrencyPicker } from './CurrencyPicker/CurrencyPicker';
9
+ export type { CurrencyPickerChangeEventDetails } from './CurrencyPicker/types/CurrencyPickerChangeEventDetails';
5
10
  export type { CurrencyPickerOption } from './CurrencyPicker/types/CurrencyPickerOption';
6
11
  export type { CurrencyPickerOptionsProps } from './CurrencyPicker/types/CurrencyPickerOptionsProps';
12
+ export type { CurrencyPickerProps } from './CurrencyPicker/types/CurrencyPickerProps';
13
+ export type { CurrencyPickerRootProps } from './CurrencyPicker/types/CurrencyPickerRootProps';
14
+ export type { CurrencyPickerState } from './CurrencyPicker/types/CurrencyPickerState';
7
15
  export type { CurrencyPickerTriggerProps } from './CurrencyPicker/types/CurrencyPickerTriggerProps';
8
16
  export { IconButton } from './IconButton/IconButton';
9
17
  export type { IconButtonProps } from './IconButton/types/IconButtonProps';
@@ -20,6 +28,8 @@ export type { NumberStepperProps } from './NumberStepper/types/NumberStepperProp
20
28
  export { PhoneCountryPicker } from './PhoneCountryPicker/PhoneCountryPicker';
21
29
  export type { PhoneCountryOption } from './PhoneCountryPicker/types/PhoneCountryOption';
22
30
  export type { PhoneCountryPickerOptionsProps } from './PhoneCountryPicker/types/PhoneCountryPickerOptionsProps';
31
+ export type { PhoneCountryPickerProps } from './PhoneCountryPicker/types/PhoneCountryPickerProps';
32
+ export type { PhoneCountryPickerRootProps } from './PhoneCountryPicker/types/PhoneCountryPickerRootProps';
23
33
  export type { PhoneCountryPickerTriggerProps } from './PhoneCountryPicker/types/PhoneCountryPickerTriggerProps';
24
34
  export { SearchInput } from './SearchInput/SearchInput';
25
35
  export type { SearchInputProps } from './SearchInput/types/SearchInputProps';
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-BKjAaZS0.cjs"),e=require("../input-3D2lXywH.cjs");exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.IconButton=t.IconButton;exports.ImageInput=e.ImageInput;exports.LightButton=e.LightButton;exports.LightIconButton=t.LightIconButton;exports.MainButton=e.MainButton;exports.NumberStepper=e.NumberStepper;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../input-ChlFcqIS.cjs"),t=require("../Dropdown-Bl4OXCf9.cjs");exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.IconButton=t.IconButton;exports.ImageInput=e.ImageInput;exports.LightButton=e.LightButton;exports.LightIconButton=t.LightIconButton;exports.MainButton=e.MainButton;exports.NumberStepper=e.NumberStepper;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;
@@ -1,15 +1,15 @@
1
- import { n, r as o } from "../Dropdown-C2hXrjvD.js";
2
- import { a, c as e, i as s, l as u, n as c, o as i, r as m, s as p, t as I } from "../input-TM3nUdu6.js";
1
+ import { a as o, c as a, i as n, l as r, n as e, o as s, r as u, s as i, t as c } from "../input-BrjD91wv.js";
2
+ import { a as p, i as I } from "../Dropdown-1OAJvS1f.js";
3
3
  export {
4
- u as CountrySelect,
5
- e as CurrencyPicker,
6
- o as IconButton,
7
- p as ImageInput,
8
- i as LightButton,
9
- n as LightIconButton,
10
- a as MainButton,
11
- s as NumberStepper,
12
- m as PhoneCountryPicker,
13
- c as SearchInput,
14
- I as SegmentedControl
4
+ r as CountrySelect,
5
+ a as CurrencyPicker,
6
+ p as IconButton,
7
+ i as ImageInput,
8
+ s as LightButton,
9
+ I as LightIconButton,
10
+ o as MainButton,
11
+ n as NumberStepper,
12
+ u as PhoneCountryPicker,
13
+ e as SearchInput,
14
+ c as SegmentedControl
15
15
  };
@@ -1,5 +1,4 @@
1
- export declare const measureItemWidths: ({ items, itemElements, supportsSynchronousLayout, }: {
1
+ export declare const measureItemWidths: ({ items, itemElements, }: {
2
2
  items: HTMLElement;
3
3
  itemElements: Element[];
4
- supportsSynchronousLayout: boolean;
5
4
  }) => number[];
@@ -1,10 +1,9 @@
1
1
  import { OverflowingListLayout } from './types/OverflowingListLayout';
2
- export declare const measureOverflowingListLayout: ({ container, items, trigger, itemElements, itemCount, reserveCountSpace, supportsSynchronousLayout, }: {
2
+ export declare const measureOverflowingListLayout: ({ container, items, trigger, itemElements, itemCount, reserveCountSpace, }: {
3
3
  container: HTMLElement;
4
4
  items: HTMLElement;
5
5
  trigger: HTMLElement | null;
6
6
  itemElements: Element[];
7
7
  itemCount: number;
8
8
  reserveCountSpace: boolean;
9
- supportsSynchronousLayout: boolean;
10
9
  }) => OverflowingListLayout;
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../layout-VaIq7Sjr.cjs");exports.AnimatedIconCrossfade=e.AnimatedIconCrossfade;exports.OverflowingList=e.OverflowingList;exports.Section=e.Section;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../layout-CthYckvl.cjs");exports.AnimatedIconCrossfade=e.AnimatedIconCrossfade;exports.OverflowingList=e.OverflowingList;exports.Section=e.Section;
@@ -1,4 +1,4 @@
1
- import { n as r, r as s, t } from "../layout-BszCDxAO.js";
1
+ import { n as r, r as s, t } from "../layout-DQcjBu08.js";
2
2
  export {
3
3
  s as AnimatedIconCrossfade,
4
4
  r as OverflowingList,
@@ -5,7 +5,8 @@ export declare const Dropdown: {
5
5
  Trigger: ({ onKeyDown, onClick, ref, ...props }: import('..').DropdownTriggerProps) => import("react").JSX.Element;
6
6
  Content: ({ side, align, sideOffset, alignOffset, anchor, collisionPadding, container, keepMounted, width, className, style, children, initialFocus, onKeyDown, onFocus, onInput, onClick, onMouseDown, onPointerDown, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ref, ...props }: import('..').DropdownContentProps) => import("react").JSX.Element;
7
7
  ActionItem: ({ color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, closeOnClick, onClick, page, id, ...props }: import('..').DropdownActionItemProps) => import("react").JSX.Element;
8
- OptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, onClick, id, ...props }: import('..').DropdownOptionItemProps) => import("react").JSX.Element;
8
+ OptionItem: ({ value, selected: standaloneSelected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, onClick, id, ...props }: import('..').DropdownOptionItemProps) => import("react").JSX.Element;
9
+ SelectionGroup: (props: import('..').DropdownSelectionGroupProps) => import("react").JSX.Element;
9
10
  Search: ({ onValueChange, className, ...props }: import('..').DropdownSearchProps) => import("react").JSX.Element;
10
11
  Header: ({ render, ref, className, ...props }: import('..').DropdownHeaderProps) => ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
11
12
  Title: ({ className, render, ref, ...props }: import('..').DropdownTitleProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const DropdownIconGridExample: ({ onSelect, }: {
2
+ onSelect?: (index: number) => void;
3
+ }) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const DropdownSelectionGroupsExample: () => import("react").JSX.Element;
@@ -3,7 +3,8 @@ import { DropdownType } from '../types/DropdownType';
3
3
  import { DropdownFocusTarget } from './DropdownFocusTarget';
4
4
  import { DropdownPageFocusRequest } from './DropdownPageFocusRequest';
5
5
  import { DropdownRowFocus } from './DropdownRowFocus';
6
- export type DropdownContextValue = {
6
+ import { useDropdownSelections } from './useDropdownSelections';
7
+ export type DropdownContextValue = ReturnType<typeof useDropdownSelections> & {
7
8
  type: DropdownType;
8
9
  rootType: DropdownType;
9
10
  open: boolean;
@@ -23,6 +24,10 @@ export type DropdownContextValue = {
23
24
  setFocusOnOpen: (focusOnOpen: boolean) => void;
24
25
  setOpen: (open: boolean) => void;
25
26
  closeTree: (tabOutEvent?: Event) => void;
27
+ tabForwardOutOfTree: (tab: {
28
+ ownerDocument: Document;
29
+ tabOutEvent: Event;
30
+ }) => void;
26
31
  goToPage: (page: {
27
32
  id: string;
28
33
  trigger?: DropdownFocusTarget;
@@ -1,2 +1,2 @@
1
1
  import { DropdownOptionItemProps } from '../types/DropdownOptionItemProps';
2
- export declare const DropdownOptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, onClick, id, ...props }: DropdownOptionItemProps) => import("react").JSX.Element;
2
+ export declare const DropdownOptionItem: ({ value, selected: standaloneSelected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, onClick, id, ...props }: DropdownOptionItemProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { DropdownOptionItemState } from '../types/DropdownOptionItemState';
3
+ type DropdownOptionItemOwnerProps = useRender.ComponentProps<'button', DropdownOptionItemState> & {
4
+ state: DropdownOptionItemState;
5
+ };
6
+ export declare const DropdownOptionItemOwner: ({ render, ref, state, ...props }: DropdownOptionItemOwnerProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { DropdownSelectionContextValue } from './DropdownSelectionContextValue';
2
+ export declare const DropdownSelectionContext: import('react').Context<DropdownSelectionContextValue | undefined>;
@@ -0,0 +1,9 @@
1
+ import { DropdownSelectionGroupChangeEventDetails } from '../types/DropdownSelectionGroupChangeEventDetails';
2
+ import { DropdownSelectionGroupState } from '../types/DropdownSelectionGroupState';
3
+ export type DropdownSelectionContextValue = DropdownSelectionGroupState & {
4
+ closeOnSelect: boolean;
5
+ select: (selection: {
6
+ value: string;
7
+ eventDetails: DropdownSelectionGroupChangeEventDetails;
8
+ }) => void;
9
+ };
@@ -0,0 +1,2 @@
1
+ import { DropdownSelectionGroupProps } from '../types/DropdownSelectionGroupProps';
2
+ export declare const DropdownSelectionGroup: (props: DropdownSelectionGroupProps) => import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { DropdownSelectionGroupState } from '../types/DropdownSelectionGroupState';
2
+ type DropdownSelectionGroupEffectProps = {
3
+ id: string;
4
+ initialState: DropdownSelectionGroupState;
5
+ initializeSelection: (selection: {
6
+ id: string;
7
+ state: DropdownSelectionGroupState;
8
+ }) => void;
9
+ };
10
+ export declare const DropdownSelectionGroupEffect: ({ id, initialState, initializeSelection, }: DropdownSelectionGroupEffectProps) => null;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ import { DropdownSelectionGroupChangeEventDetails } from '../types/DropdownSelectionGroupChangeEventDetails';
2
+ export declare const createDropdownSelectionEventDetails: ({ event, trigger, }: {
3
+ event: DropdownSelectionGroupChangeEventDetails["event"];
4
+ trigger: Element;
5
+ }) => DropdownSelectionGroupChangeEventDetails;
@@ -0,0 +1,11 @@
1
+ import { DropdownSelectionGroupChangeEventDetails } from '../types/DropdownSelectionGroupChangeEventDetails';
2
+ export declare const dropdownItemActivation: {
3
+ activate: ({ item, event }: {
4
+ item: HTMLElement;
5
+ event: KeyboardEvent;
6
+ }) => void;
7
+ getEvent: ({ item, event, }: {
8
+ item: HTMLElement;
9
+ event: DropdownSelectionGroupChangeEventDetails["event"];
10
+ }) => KeyboardEvent | MouseEvent;
11
+ };
@@ -1,5 +1,5 @@
1
- import { ReactElement } from 'react';
1
+ import { DropdownOptionItemProps } from '../types/DropdownOptionItemProps';
2
2
  export declare const getDropdownItemExplicitId: ({ id, render, }: {
3
3
  id?: string;
4
- render?: ReactElement;
4
+ render?: DropdownOptionItemProps["render"];
5
5
  }) => string | undefined;
@@ -0,0 +1,9 @@
1
+ import { DropdownOptionItemProps } from '../types/DropdownOptionItemProps';
2
+ import { DropdownType } from '../types/DropdownType';
3
+ export declare const getDropdownOptionItemRole: ({ type, hasSelectionState, hasSelectionOwner, multiple, role, }: {
4
+ type: DropdownType;
5
+ hasSelectionState: boolean;
6
+ hasSelectionOwner: boolean;
7
+ multiple: boolean;
8
+ role: DropdownOptionItemProps["role"];
9
+ }) => DropdownOptionItemProps["role"];
@@ -0,0 +1,6 @@
1
+ import { DropdownSelectionGroupProps } from '../types/DropdownSelectionGroupProps';
2
+ import { DropdownSelectionGroupState } from '../types/DropdownSelectionGroupState';
3
+ export declare const getDropdownSelectionGroupState: ({ props, storedState, }: {
4
+ props: DropdownSelectionGroupProps;
5
+ storedState?: DropdownSelectionGroupState;
6
+ }) => DropdownSelectionGroupState;
@@ -0,0 +1 @@
1
+ export declare const getTrailingFocusGuard: (element: Element | null) => HTMLElement | undefined;
@@ -0,0 +1,6 @@
1
+ import { DropdownSelectionContextValue } from './DropdownSelectionContextValue';
2
+ export declare const isDropdownOptionItemSelected: ({ selection, value, standaloneSelected, }: {
3
+ selection: DropdownSelectionContextValue | undefined;
4
+ value: string | undefined;
5
+ standaloneSelected: boolean | undefined;
6
+ }) => boolean | undefined;
@@ -0,0 +1,12 @@
1
+ import { DropdownSelectionGroupState } from '../types/DropdownSelectionGroupState';
2
+ export declare const useDropdownSelections: () => {
3
+ selections: Map<string, DropdownSelectionGroupState>;
4
+ initializeSelection: ({ id, state }: {
5
+ id: string;
6
+ state: DropdownSelectionGroupState;
7
+ }) => void;
8
+ updateSelection: ({ id, state }: {
9
+ id: string;
10
+ state: DropdownSelectionGroupState;
11
+ }) => void;
12
+ };
@@ -1,7 +1,12 @@
1
1
  import { DropdownActionItemProps } from './DropdownActionItemProps';
2
- export type DropdownOptionItemProps = Omit<DropdownActionItemProps, 'page' | 'closeOnClick' | 'onSelect'> & {
2
+ import { useRender } from '@base-ui/react/use-render';
3
+ import { DropdownOptionItemState } from './DropdownOptionItemState';
4
+ import { DropdownOptionItemSelectEventDetails } from './DropdownOptionItemSelectEventDetails';
5
+ export type DropdownOptionItemProps = Omit<DropdownActionItemProps, 'page' | 'closeOnClick' | 'onSelect' | 'render' | 'value'> & {
6
+ value?: string;
7
+ render?: useRender.ComponentProps<'button', DropdownOptionItemState>['render'];
3
8
  selected?: boolean;
4
9
  indicator?: 'check' | 'checkbox' | 'none';
5
- onSelect?: () => void;
10
+ onSelect?: (eventDetails: DropdownOptionItemSelectEventDetails) => void;
6
11
  closeOnSelect?: boolean;
7
12
  };
@@ -0,0 +1,2 @@
1
+ import { DropdownSelectionGroupChangeEventDetails } from './DropdownSelectionGroupChangeEventDetails';
2
+ export type DropdownOptionItemSelectEventDetails = DropdownSelectionGroupChangeEventDetails;
@@ -0,0 +1,5 @@
1
+ export type DropdownOptionItemState = {
2
+ selected: boolean;
3
+ multiple: boolean;
4
+ disabled: boolean;
5
+ };
@@ -0,0 +1,7 @@
1
+ export type DropdownSelectionGroupChangeEventDetails = {
2
+ reason: 'item-press';
3
+ event: MouseEvent | KeyboardEvent | PointerEvent;
4
+ trigger: Element | undefined;
5
+ cancel: () => void;
6
+ isCanceled: boolean;
7
+ };
@@ -0,0 +1,21 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { DropdownSelectionGroupChangeEventDetails } from './DropdownSelectionGroupChangeEventDetails';
3
+ import { DropdownSelectionGroupState } from './DropdownSelectionGroupState';
4
+ type DropdownSelectionGroupValueProps<TValue> = {
5
+ defaultValue?: TValue;
6
+ onValueChange?: (value: TValue, eventDetails: DropdownSelectionGroupChangeEventDetails) => void;
7
+ } & ({
8
+ id?: string;
9
+ value: TValue;
10
+ } | {
11
+ id: string;
12
+ value?: TValue;
13
+ });
14
+ export type DropdownSelectionGroupProps = Omit<useRender.ComponentProps<'div', DropdownSelectionGroupState>, 'id' | 'defaultValue' | 'onChange'> & {
15
+ closeOnSelect?: boolean;
16
+ } & (({
17
+ multiple?: false;
18
+ } & DropdownSelectionGroupValueProps<string | null>) | ({
19
+ multiple: true;
20
+ } & DropdownSelectionGroupValueProps<string[]>));
21
+ export {};
@@ -0,0 +1,7 @@
1
+ export type DropdownSelectionGroupState = {
2
+ multiple: false;
3
+ value: string | null;
4
+ } | {
5
+ multiple: true;
6
+ value: string[];
7
+ };
@@ -6,10 +6,15 @@ export type { DropdownContentProps } from './Dropdown/types/DropdownContentProps
6
6
  export type { DropdownDismissEvent } from './Dropdown/types/DropdownDismissEvent';
7
7
  export type { DropdownHeaderProps } from './Dropdown/types/DropdownHeaderProps';
8
8
  export type { DropdownOptionItemProps } from './Dropdown/types/DropdownOptionItemProps';
9
+ export type { DropdownOptionItemSelectEventDetails } from './Dropdown/types/DropdownOptionItemSelectEventDetails';
10
+ export type { DropdownOptionItemState } from './Dropdown/types/DropdownOptionItemState';
9
11
  export type { DropdownPageProps } from './Dropdown/types/DropdownPageProps';
10
12
  export type { DropdownRootProps } from './Dropdown/types/DropdownRootProps';
11
13
  export type { DropdownSearchProps } from './Dropdown/types/DropdownSearchProps';
12
14
  export type { DropdownSectionProps } from './Dropdown/types/DropdownSectionProps';
15
+ export type { DropdownSelectionGroupChangeEventDetails } from './Dropdown/types/DropdownSelectionGroupChangeEventDetails';
16
+ export type { DropdownSelectionGroupProps } from './Dropdown/types/DropdownSelectionGroupProps';
17
+ export type { DropdownSelectionGroupState } from './Dropdown/types/DropdownSelectionGroupState';
13
18
  export type { DropdownSubmenuProps } from './Dropdown/types/DropdownSubmenuProps';
14
19
  export type { DropdownSubmenuTriggerProps } from './Dropdown/types/DropdownSubmenuTriggerProps';
15
20
  export type { DropdownTitleProps } from './Dropdown/types/DropdownTitleProps';
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-BKjAaZS0.cjs"),e=require("../navigation-DrOV5E67.cjs");exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=t.Dropdown;exports.ListItemButton=e.ListItemButton;exports.MenuItem=e.MenuItem;exports.MenuItemAvatar=e.MenuItemAvatar;exports.MenuItemDraggable=e.MenuItemDraggable;exports.MenuItemSuggestion=e.MenuItemSuggestion;exports.MenuPicker=e.MenuPicker;exports.TabButton=e.TabButton;exports.useDropdownPage=e.useDropdownPage;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-Bl4OXCf9.cjs"),e=require("../navigation-CflGBYv-.cjs");exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=t.Dropdown;exports.ListItemButton=e.ListItemButton;exports.MenuItem=e.MenuItem;exports.MenuItemAvatar=e.MenuItemAvatar;exports.MenuItemDraggable=e.MenuItemDraggable;exports.MenuItemSuggestion=e.MenuItemSuggestion;exports.MenuPicker=e.MenuPicker;exports.TabButton=e.TabButton;exports.useDropdownPage=e.useDropdownPage;
@@ -1,5 +1,5 @@
1
- import { t } from "../Dropdown-C2hXrjvD.js";
2
- import { a as s, c as o, i as n, l as r, n as m, o as u, r as i, s as g, t as p } from "../navigation-B1SRvzKK.js";
1
+ import { t } from "../Dropdown-1OAJvS1f.js";
2
+ import { a as s, c as o, i as n, l as r, n as m, o as u, r as i, s as g, t as p } from "../navigation-B6nka3bW.js";
3
3
  export {
4
4
  g as DEFAULT_COLOR_LABELS,
5
5
  t as Dropdown,
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-BAYsnlZJ.cjs");exports.SettingsRow=e.SettingsRow;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-CPXhrmbK.cjs");exports.SettingsRow=e.SettingsRow;
@@ -1,4 +1,4 @@
1
- import { t as o } from "../settings-BjEZiHXE.js";
1
+ import { t as o } from "../settings-BgVuLpg9.js";
2
2
  export {
3
3
  o as SettingsRow
4
4
  };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./data-display-DjhAHvj1.cjs"),i=require("./TintedIconTile-CU2hCerq.cjs"),n=require("./feedback-ybO4n69s.cjs"),r=require("./Dropdown-BKjAaZS0.cjs"),e=require("./input-3D2lXywH.cjs"),u=require("./layout-VaIq7Sjr.cjs"),t=require("./navigation-DrOV5E67.cjs"),a=require("./settings-BAYsnlZJ.cjs");exports.AnimatedIconCrossfade=u.AnimatedIconCrossfade;exports.AvatarGroup=o.AvatarGroup;exports.Callout=n.Callout;exports.CommandBlock=o.CommandBlock;exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.DEFAULT_COLOR_LABELS=t.DEFAULT_COLOR_LABELS;exports.Dropdown=r.Dropdown;exports.IconButton=r.IconButton;exports.ImageInput=e.ImageInput;exports.InlineBanner=n.InlineBanner;exports.JsonTree=o.JsonTree;exports.LightButton=e.LightButton;exports.LightIconButton=r.LightIconButton;exports.ListItemButton=t.ListItemButton;exports.MainButton=e.MainButton;exports.MenuItem=t.MenuItem;exports.MenuItemAvatar=t.MenuItemAvatar;exports.MenuItemDraggable=t.MenuItemDraggable;exports.MenuItemSuggestion=t.MenuItemSuggestion;exports.MenuPicker=t.MenuPicker;exports.MetricRow=o.MetricRow;exports.NumberStepper=e.NumberStepper;exports.OverflowingList=u.OverflowingList;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.Section=u.Section;exports.SegmentedControl=e.SegmentedControl;exports.SettingsRow=a.SettingsRow;exports.StackIcon=o.StackIcon;exports.TabButton=t.TabButton;exports.TintedIconTile=i.TintedIconTile;exports.Toast=n.Toast;exports.ToastProvider=n.ToastProvider;exports.Toaster=n.Toaster;exports.getIconTileColorShades=i.getIconTileColorShades;exports.useDropdownPage=t.useDropdownPage;exports.useToast=n.useToast;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./data-display-XV3ht1rC.cjs"),i=require("./TintedIconTile-DO1XJXCQ.cjs"),n=require("./feedback-Cs-38OH4.cjs"),e=require("./input-ChlFcqIS.cjs"),r=require("./Dropdown-Bl4OXCf9.cjs"),u=require("./layout-CthYckvl.cjs"),t=require("./navigation-CflGBYv-.cjs"),a=require("./settings-CPXhrmbK.cjs");exports.AnimatedIconCrossfade=u.AnimatedIconCrossfade;exports.AvatarGroup=o.AvatarGroup;exports.Callout=n.Callout;exports.CommandBlock=o.CommandBlock;exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.DEFAULT_COLOR_LABELS=t.DEFAULT_COLOR_LABELS;exports.Dropdown=r.Dropdown;exports.IconButton=r.IconButton;exports.ImageInput=e.ImageInput;exports.InlineBanner=n.InlineBanner;exports.JsonTree=o.JsonTree;exports.LightButton=e.LightButton;exports.LightIconButton=r.LightIconButton;exports.ListItemButton=t.ListItemButton;exports.MainButton=e.MainButton;exports.MenuItem=t.MenuItem;exports.MenuItemAvatar=t.MenuItemAvatar;exports.MenuItemDraggable=t.MenuItemDraggable;exports.MenuItemSuggestion=t.MenuItemSuggestion;exports.MenuPicker=t.MenuPicker;exports.MetricRow=o.MetricRow;exports.NumberStepper=e.NumberStepper;exports.OverflowingList=u.OverflowingList;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.Section=u.Section;exports.SegmentedControl=e.SegmentedControl;exports.SettingsRow=a.SettingsRow;exports.StackIcon=o.StackIcon;exports.TabButton=t.TabButton;exports.TintedIconTile=i.TintedIconTile;exports.Toast=n.Toast;exports.ToastProvider=n.ToastProvider;exports.Toaster=n.Toaster;exports.getIconTileColorShades=i.getIconTileColorShades;exports.useDropdownPage=t.useDropdownPage;exports.useToast=n.useToast;