@databricks/design-system 1.12.12 → 1.12.14

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 (174) hide show
  1. package/dist/{DropdownMenu-06a1051f.js → Stepper-839336b1.js} +951 -873
  2. package/dist/Stepper-839336b1.js.map +1 -0
  3. package/dist/design-system/AutoComplete/AutoComplete.d.ts +3 -0
  4. package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
  5. package/dist/design-system/Button/Button.d.ts +13 -1
  6. package/dist/design-system/Button/Button.d.ts.map +1 -1
  7. package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
  8. package/dist/design-system/ContextMenu/ContextMenu.d.ts.map +1 -0
  9. package/dist/design-system/ContextMenu/index.d.ts +2 -0
  10. package/dist/design-system/ContextMenu/index.d.ts.map +1 -0
  11. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  12. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +45 -0
  13. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -0
  14. package/dist/design-system/DesignSystemEventProvider/index.d.ts +2 -0
  15. package/dist/design-system/DesignSystemEventProvider/index.d.ts.map +1 -0
  16. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts +1 -1
  17. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -1
  18. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
  19. package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts.map +1 -1
  20. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
  21. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +9 -5
  22. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
  23. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +9 -0
  24. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
  25. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +7 -0
  26. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
  27. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  28. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +1 -2
  29. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  30. package/dist/design-system/FormV2/RHFAdapters.d.ts +7 -1
  31. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  32. package/dist/design-system/Header/Header.d.ts.map +1 -1
  33. package/dist/design-system/Icon/Icon.d.ts +1 -1
  34. package/dist/design-system/Icon/Icon.d.ts.map +1 -1
  35. package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts +5 -0
  36. package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts.map +1 -0
  37. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts +5 -0
  38. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts.map +1 -0
  39. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts +5 -0
  40. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts.map +1 -0
  41. package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts +5 -0
  42. package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts.map +1 -0
  43. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts +5 -0
  44. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts.map +1 -0
  45. package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts +5 -0
  46. package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts.map +1 -0
  47. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +5 -0
  48. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts.map +1 -0
  49. package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts +5 -0
  50. package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts.map +1 -0
  51. package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts +5 -0
  52. package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts.map +1 -0
  53. package/dist/design-system/Icon/__generated/icons/index.d.ts +9 -0
  54. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  55. package/dist/design-system/Input/Input.d.ts +9 -1
  56. package/dist/design-system/Input/Input.d.ts.map +1 -1
  57. package/dist/design-system/Input/index.d.ts +2 -1
  58. package/dist/design-system/Input/index.d.ts.map +1 -1
  59. package/dist/design-system/Label/Label.d.ts +1 -0
  60. package/dist/design-system/Label/Label.d.ts.map +1 -1
  61. package/dist/design-system/Modal/Modal.d.ts +2 -2
  62. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  63. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  64. package/dist/design-system/Pagination/index.d.ts +9 -1
  65. package/dist/design-system/Pagination/index.d.ts.map +1 -1
  66. package/dist/design-system/Popover/InfoPopover.d.ts +2 -1
  67. package/dist/design-system/Popover/InfoPopover.d.ts.map +1 -1
  68. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +1 -0
  69. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  70. package/dist/design-system/Select/Select.d.ts.map +1 -1
  71. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  72. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  73. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
  74. package/dist/design-system/Steps/Steps.d.ts +1 -2
  75. package/dist/design-system/Steps/Steps.d.ts.map +1 -1
  76. package/dist/design-system/Switch/Switch.d.ts.map +1 -1
  77. package/dist/design-system/TableUI/Table.d.ts.map +1 -1
  78. package/dist/design-system/TableUI/TableFilterInput.d.ts +2 -1
  79. package/dist/design-system/TableUI/TableFilterInput.d.ts.map +1 -1
  80. package/dist/design-system/TableUI/TableFilterLayout.d.ts.map +1 -1
  81. package/dist/design-system/TableUI/TableRow.d.ts.map +1 -1
  82. package/dist/design-system/Tag/index.d.ts +2 -2
  83. package/dist/design-system/Tag/index.d.ts.map +1 -1
  84. package/dist/design-system/Tooltip/Tooltip.d.ts +6 -0
  85. package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
  86. package/dist/design-system/Tree/Tree.d.ts +24 -0
  87. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  88. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts +3 -0
  89. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts.map +1 -0
  90. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +3 -1
  91. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
  92. package/dist/design-system/TypeaheadCombobox/index.d.ts +1 -0
  93. package/dist/design-system/TypeaheadCombobox/index.d.ts.map +1 -1
  94. package/dist/design-system/Wizard/Wizard.d.ts +74 -0
  95. package/dist/design-system/Wizard/Wizard.d.ts.map +1 -0
  96. package/dist/design-system/Wizard/WizardFooter.d.ts +15 -0
  97. package/dist/design-system/Wizard/WizardFooter.d.ts.map +1 -0
  98. package/dist/design-system/Wizard/WizardModal.d.ts +7 -0
  99. package/dist/design-system/Wizard/WizardModal.d.ts.map +1 -0
  100. package/dist/design-system/Wizard/WizardStep.d.ts +71 -0
  101. package/dist/design-system/Wizard/WizardStep.d.ts.map +1 -0
  102. package/dist/design-system/Wizard/WizardStepsContent.d.ts +10 -0
  103. package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +1 -0
  104. package/dist/design-system/Wizard/index.d.ts +5 -0
  105. package/dist/design-system/Wizard/index.d.ts.map +1 -0
  106. package/dist/design-system/Wizard/useWizardCurrentStep.d.ts +20 -0
  107. package/dist/design-system/Wizard/useWizardCurrentStep.d.ts.map +1 -0
  108. package/dist/design-system/_shared_/Combobox/styles.d.ts +12 -0
  109. package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
  110. package/dist/design-system/constants.d.ts +2 -2
  111. package/dist/design-system/constants.d.ts.map +1 -1
  112. package/dist/design-system/index.d.ts +3 -0
  113. package/dist/design-system/index.d.ts.map +1 -1
  114. package/dist/design-system/utils/safex.d.ts +3 -2
  115. package/dist/design-system/utils/safex.d.ts.map +1 -1
  116. package/dist/design-system/utils/useNotifyOnFirstView.d.ts +15 -0
  117. package/dist/design-system/utils/useNotifyOnFirstView.d.ts.map +1 -0
  118. package/dist/development/Banner/Banner.d.ts +16 -6
  119. package/dist/development/Banner/Banner.d.ts.map +1 -1
  120. package/dist/development/ChatUI/ChatInput.d.ts.map +1 -1
  121. package/dist/development/ChatUI/Feedback.d.ts.map +1 -1
  122. package/dist/development/Stepper/Stepper.d.ts +62 -0
  123. package/dist/development/Stepper/Stepper.d.ts.map +1 -0
  124. package/dist/development/Stepper/index.d.ts +2 -0
  125. package/dist/development/Stepper/index.d.ts.map +1 -0
  126. package/dist/development/Toolbar/Toolbar.d.ts +15 -0
  127. package/dist/development/Toolbar/Toolbar.d.ts.map +1 -0
  128. package/dist/development/Toolbar/index.d.ts +2 -0
  129. package/dist/development/Toolbar/index.d.ts.map +1 -0
  130. package/dist/development/index.d.ts +3 -2
  131. package/dist/development/index.d.ts.map +1 -1
  132. package/dist/development.js +340 -327
  133. package/dist/development.js.map +1 -1
  134. package/dist/dubois-colors.less +203 -142
  135. package/dist/flags.d.ts +1 -2
  136. package/dist/flags.d.ts.map +1 -1
  137. package/dist/index-dark.css +289 -289
  138. package/dist/index.css +196 -196
  139. package/dist/index.js +2588 -937
  140. package/dist/index.js.map +1 -1
  141. package/dist/rollup/less.d.ts.map +1 -1
  142. package/dist/test-utils/enzyme/selectEvent.d.ts +5 -0
  143. package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -1
  144. package/dist/test-utils/enzyme/table.d.ts.map +1 -1
  145. package/dist/test-utils/enzyme/utils.d.ts +6 -0
  146. package/dist/test-utils/enzyme/utils.d.ts.map +1 -1
  147. package/dist/test-utils/enzyme.js +34 -15
  148. package/dist/test-utils/enzyme.js.map +1 -1
  149. package/dist/test-utils/rtl/selectEvent.d.ts +5 -0
  150. package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -1
  151. package/dist/test-utils/rtl.js +16 -1
  152. package/dist/test-utils/rtl.js.map +1 -1
  153. package/dist/theme/_generated/PrimitiveColors.d.ts +3 -0
  154. package/dist/theme/_generated/PrimitiveColors.d.ts.map +1 -0
  155. package/dist/theme/_generated/SemanticColors-Dark.d.ts +3 -0
  156. package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +1 -0
  157. package/dist/theme/_generated/SemanticColors-Light.d.ts +3 -0
  158. package/dist/theme/_generated/SemanticColors-Light.d.ts.map +1 -0
  159. package/dist/theme/_generated/ValidPrimitiveColors.d.ts +56 -0
  160. package/dist/theme/_generated/ValidPrimitiveColors.d.ts.map +1 -0
  161. package/dist/theme/_generated/ValidSemanticColors.d.ts +98 -0
  162. package/dist/theme/_generated/ValidSemanticColors.d.ts.map +1 -0
  163. package/dist/theme/colors.d.ts +62 -141
  164. package/dist/theme/colors.d.ts.map +1 -1
  165. package/dist/theme/spacing.d.ts +1 -0
  166. package/dist/theme/spacing.d.ts.map +1 -1
  167. package/package.json +13 -15
  168. package/dist/DropdownMenu-06a1051f.js.map +0 -1
  169. package/dist/development/ContextMenu/ContextMenu.d.ts.map +0 -1
  170. package/dist/development/ContextMenu/index.d.ts +0 -2
  171. package/dist/development/ContextMenu/index.d.ts.map +0 -1
  172. package/dist/theme/colorList.d.ts +0 -130
  173. package/dist/theme/colorList.d.ts.map +0 -1
  174. /package/dist/{development → design-system}/ContextMenu/ContextMenu.d.ts +0 -0
@@ -36,5 +36,11 @@ export interface TooltipProps extends HTMLDataAttributes {
36
36
  */
37
37
  useAsLabel?: boolean;
38
38
  }
39
+ /**
40
+ * If the tooltip is not displaying for you, it might be because the child does not accept the onMouseEnter, onMouseLeave, onPointerEnter,
41
+ * onPointerLeave, onFocus, and onClick props. You can add these props to your child component, or wrap it in a `<span>` tag.
42
+ *
43
+ * See go/dubois.
44
+ */
39
45
  export declare const Tooltip: React.FC<TooltipProps>;
40
46
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/design-system/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAI7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC1C;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACpD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkE1C,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/design-system/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAI7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC1C;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACpD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkE1C,CAAC"}
@@ -42,6 +42,30 @@ export interface TreeProps extends HTMLDataAttributes, DangerouslySetAntdProps<A
42
42
  showLine?: boolean | {
43
43
  showLeafIcon: boolean;
44
44
  };
45
+ /**
46
+ * (Controlled) Specifies the keys of the selected treeNodes, multiple selection needs to set multiple to true
47
+ */
48
+ selectedKeys?: AntDTreeProps['selectedKeys'];
49
+ /**
50
+ * (Controlled) Specifies the keys of the expanded treeNodes
51
+ */
52
+ expandedKeys?: AntDTreeProps['expandedKeys'];
53
+ /**
54
+ * Whether to automatically expand a parent treeNode
55
+ */
56
+ autoExpandParent?: AntDTreeProps['autoExpandParent'];
57
+ /**
58
+ * Callback function for when the user clicks a treeNode
59
+ */
60
+ onSelect?: AntDTreeProps['onSelect'];
61
+ /**
62
+ * Callback function for when a treeNode is expanded or collapsed
63
+ */
64
+ onExpand?: AntDTreeProps['onExpand'];
65
+ /**
66
+ * Callback function for when the onCheck event occurs
67
+ */
68
+ onCheck?: AntDTreeProps['onCheck'];
45
69
  }
46
70
  export declare const Tree: import("react").ForwardRefExoticComponent<TreeProps & import("react").RefAttributes<AntDTree>>;
47
71
  //# sourceMappingURL=Tree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../src/design-system/Tree/Tree.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAUvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAI5E,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAUpE,MAAM,WAAW,SAAU,SAAQ,kBAAkB,EAAE,uBAAuB,CAAC,aAAa,CAAC;IAC3F;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAEpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,iBAAiB,GAAG,WAAW,CAAC;IAClE;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG;QAAE,YAAY,EAAE,OAAO,CAAA;KAAE,CAAC;CAChD;AAqSD,eAAO,MAAM,IAAI,gGAkDf,CAAC"}
1
+ {"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../src/design-system/Tree/Tree.tsx"],"names":[],"mappings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AAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACpC;AAkUD,eAAO,MAAM,IAAI,gGAkDf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ButtonProps } from '../Button';
2
+ export declare const TypeaheadComboboxAddButton: ({ children, ...restProps }: ButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=TypeaheadComboboxAddButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeaheadComboboxAddButton.d.ts","sourceRoot":"","sources":["../../../src/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAM7C,eAAO,MAAM,0BAA0B,+BAAgC,WAAW,qDA2CjF,CAAC"}
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { type UseComboboxReturnValue, type UseMultipleSelectionReturnValue, type UseComboboxStateChange } from 'downshift';
2
+ import { type UseComboboxReturnValue, type UseComboboxStateChange, type UseMultipleSelectionReturnValue } from 'downshift';
3
3
  interface SingleSelectProps<T> extends CommonComboboxStateProps<T> {
4
4
  multiSelect?: false;
5
+ setInputValue?: React.Dispatch<React.SetStateAction<string>>;
5
6
  setItems: React.Dispatch<React.SetStateAction<T[]>>;
6
7
  }
7
8
  interface MultiSelectProps<T> extends CommonComboboxStateProps<T> {
@@ -20,6 +21,7 @@ interface CommonComboboxStateProps<T> {
20
21
  formValue?: T;
21
22
  formOnChange?: (value: any) => void;
22
23
  formOnBlur?: (value: any) => void;
24
+ onStateChange?: (changes: UseComboboxStateChange<T>) => void;
23
25
  }
24
26
  export type UseComboboxStateProps<T> = SingleSelectProps<T> | MultiSelectProps<T>;
25
27
  export declare function useComboboxState<T>({ allItems, items, itemToString, onIsOpenChange, allowNewValue, formValue, formOnChange, formOnBlur, ...props }: UseComboboxStateProps<T>): UseComboboxReturnValue<T>;
@@ -1 +1 @@
1
- {"version":3,"file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AI,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAElF,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,EAClC,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,cAAc,EACd,aAAqB,EACrB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,GAAG,KAAK,EACT,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAiFtD;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,aAAa,EAAE,CAAC,EAAE,EAClB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1D,+BAA+B,CAAC,CAAC,CAAC,CAgBpC"}
1
+ {"version":3,"file":"downshiftHookWrappers.d.ts","sourceRoot":"","sources":["../../../../src/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.ts"],"names":[],"mappings":";AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACrC,MAAM,WAAW,CAAC;AAEnB,UAAU,iBAAiB,CAAC,CAAC,CAAE,SAAQ,wBAAwB,CAAC,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,KAAK,CAAC;IAEpB,aAAa,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAE7D,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CACrD;AAED,UAAU,gBAAgB,CAAC,CAAC,CAAE,SAAQ,wBAAwB,CAAC,CAAC,CAAC;IAC/D,WAAW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C,CAwFtD;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,aAAa,EAAE,CAAC,EAAE,EAClB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1D,+BAA+B,CAAC,CAAC,CAAC,CAgBpC"}
@@ -9,5 +9,6 @@ export { TypeaheadComboboxSelectedItem } from './TypeaheadComboboxSelectedItem';
9
9
  export { TypeaheadComboboxSeparator } from './TypeaheadComboboxSeparator';
10
10
  export { TypeaheadComboboxToggleButton } from './TypeaheadComboboxToggleButton';
11
11
  export { TypeaheadComboboxFooter } from './TypeaheadComboboxFooter';
12
+ export { TypeaheadComboboxAddButton } from './TypeaheadComboboxAddButton';
12
13
  export * from './hooks';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/TypeaheadCombobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/TypeaheadCombobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,SAAS,CAAC"}
@@ -0,0 +1,74 @@
1
+ /// <reference types="react" />
2
+ import type { WizardStep } from './WizardStep';
3
+ import type { WizardCurrentStepParams, WizardCurrentStepResult } from './useWizardCurrentStep';
4
+ import type { ButtonProps } from '..';
5
+ import type { StepperProps } from '../../development/Stepper';
6
+ export interface WizardProps {
7
+ /**
8
+ * The steps in this wizard.
9
+ * If steps are empty, this component won't render anything
10
+ */
11
+ steps: WizardStep[];
12
+ /**
13
+ * Fired when the step has changed. Completed will be true when clicking done on the final step
14
+ */
15
+ onStepChanged: WizardCurrentStepParams['onStepChanged'];
16
+ /**
17
+ * Fired when clicking on next and if the promise returns false, it will not advance to the next step
18
+ * This is useful for validating fields when users click on next and if invalid keep the user on this step
19
+ */
20
+ onValidateStepChange?: WizardCurrentStepParams['onValidateStepChange'];
21
+ /**
22
+ * Function to localize the step number; workaround for no react-intl support within dubois
23
+ *
24
+ * ex) localizeStepNumber={intl.formatNumber}
25
+ */
26
+ localizeStepNumber: StepperProps['localizeStepNumber'];
27
+ /**
28
+ * Called when user clicks on cancel button in Wizard footer
29
+ */
30
+ onCancel: () => void;
31
+ /**
32
+ * Initial step of the wizard
33
+ *
34
+ * @default 0
35
+ */
36
+ initialStep?: number;
37
+ /**
38
+ * Width of the entire component
39
+ *
40
+ * @default 100%
41
+ */
42
+ width?: string | number;
43
+ /**
44
+ * Content of the wizard's footer cancel button
45
+ */
46
+ cancelButtonContent: React.ReactNode;
47
+ /**
48
+ * Content of the wizard's footer next button
49
+ *
50
+ * Can be overriden for a specific step by setting `nextButtonContentOverride` on the step
51
+ */
52
+ nextButtonContent: React.ReactNode;
53
+ /**
54
+ * Content of the wizard's footer previous button
55
+ *
56
+ * Can be overriden for a specific step by setting `previousButtonContentOverride` on the step
57
+ */
58
+ previousButtonContent: React.ReactNode;
59
+ /**
60
+ * Content of the wizard's footer done (last step's next) button
61
+ *
62
+ * Can be overriden for a specific step by setting `nextButtonContentOverride` on the last step
63
+ */
64
+ doneButtonContent: React.ReactNode;
65
+ /**
66
+ * Extra set of buttons to be displayed in the footer to the right of the cancel button
67
+ * The only button property that will be overriden is type to default; keeping 'next' as the only primary button.
68
+ */
69
+ extraFooterButtons?: ButtonProps[];
70
+ }
71
+ export declare function Wizard({ steps, onStepChanged, onValidateStepChange, initialStep, ...props }: WizardProps): import("@emotion/react/jsx-runtime").JSX.Element;
72
+ export type WizardControlledProps = WizardProps & WizardCurrentStepResult;
73
+ export declare function WizardControlled({ initialStep, steps, width, currentStepIndex, localizeStepNumber, onStepsChange, isLastStep, ...footerProps }: WizardControlledProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
74
+ //# sourceMappingURL=Wizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wizard.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/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AAe,EACf,KAAK,EACL,KAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,GAAG,WAAW,EACf,EAAE,qBAAqB,2DAiBvB"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import type { WizardStep } from './WizardStep';
3
+ import type { WizardCurrentStepResult } from './useWizardCurrentStep';
4
+ import type { ButtonProps } from '..';
5
+ export interface WizardFooterProps extends Omit<WizardCurrentStepResult, 'onStepsChange' | 'onValidateStepChange'>, WizardStep {
6
+ onCancel?: () => void;
7
+ cancelButtonContent: React.ReactNode;
8
+ nextButtonContent: React.ReactNode;
9
+ previousButtonContent: React.ReactNode;
10
+ doneButtonContent: React.ReactNode;
11
+ extraFooterButtons?: ButtonProps[];
12
+ }
13
+ export declare function WizardFooter(props: WizardFooterProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
+ export declare function getWizardFooterButtons({ goToNextStepOrDone, isLastStep, currentStepIndex, goToPreviousStep, busyValidatingNextStep, nextButtonDisabled, nextButtonLoading, nextButtonContentOverride, previousButtonContentOverride, previousStepButtonHidden, previousButtonDisabled, previousButtonLoading, cancelButtonContent, cancelStepButtonHidden, nextButtonContent, previousButtonContent, doneButtonContent, extraFooterButtons, onCancel, }: WizardFooterProps): (import("@emotion/react/jsx-runtime").JSX.Element | import("@emotion/react/jsx-runtime").JSX.Element[])[];
15
+ //# sourceMappingURL=WizardFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WizardFooter.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardFooter.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAGtC,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,uBAAuB,EAAE,eAAe,GAAG,sBAAsB,CAAC,EAC7E,UAAU;IACZ,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,qBAAqB,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAC;CACpC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,oDAgBpD;AAED,wBAAgB,sBAAsB,CAAC,EACrC,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,GACT,EAAE,iBAAiB,6GAsCnB"}
@@ -0,0 +1,7 @@
1
+ import type { WizardProps } from './Wizard';
2
+ import type { ModalProps } from '..';
3
+ export interface WizardModalProps extends Omit<ModalProps, 'footer' | 'onCancel' | 'onOk'>, Omit<WizardProps, 'width'> {
4
+ onModalClose: () => void;
5
+ }
6
+ export declare function WizardModal({ onStepChanged, onCancel, initialStep, steps, onModalClose, localizeStepNumber, cancelButtonContent, nextButtonContent, previousButtonContent, doneButtonContent, ...modalProps }: WizardModalProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
7
+ //# sourceMappingURL=WizardModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WizardModal.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAErC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IACpH,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,GAAG,UAAU,EACd,EAAE,gBAAgB,2DA4BlB"}
@@ -0,0 +1,71 @@
1
+ /// <reference types="react" />
2
+ import type { Step } from '../../development/Stepper';
3
+ /**
4
+ * Represents one step in the wizard
5
+ */
6
+ export interface WizardStep {
7
+ /**
8
+ * The title of the step displayed in the steps header
9
+ */
10
+ title: string;
11
+ /**
12
+ * Content of the step; the actual form
13
+ */
14
+ content: React.ReactNode;
15
+ /**
16
+ * Optional description of the step displayed in the steps header
17
+ */
18
+ description?: string;
19
+ /**
20
+ * if true the step is completed, reflected in the stepper style
21
+ */
22
+ status?: Step['status'];
23
+ /**
24
+ * if true the next footer button for this step will be disabled
25
+ *
26
+ * @default false
27
+ */
28
+ nextButtonDisabled: boolean;
29
+ /**
30
+ * if true the next footer button for this step will be loading
31
+ *
32
+ * @default false
33
+ */
34
+ nextButtonLoading?: boolean;
35
+ /**
36
+ * Override content of this step's next button
37
+ *
38
+ * ex) 'Next', 'Create', 'Done' (for the last step)
39
+ */
40
+ nextButtonContentOverride?: React.ReactNode;
41
+ /**
42
+ * If true the previous button will be hidden for this step.
43
+ * Note for the first step this is a no-op as it will always be hidden
44
+ *
45
+ * @default false
46
+ */
47
+ previousStepButtonHidden?: boolean;
48
+ /**
49
+ * Override content of this step's previous button
50
+ */
51
+ previousButtonContentOverride?: React.ReactNode;
52
+ /**
53
+ * if true the previous footer button for this step will be disabled
54
+ *
55
+ * @default false
56
+ */
57
+ previousButtonDisabled?: boolean;
58
+ /**
59
+ * if true the previous footer button for this step will be loading
60
+ *
61
+ * @default false
62
+ */
63
+ previousButtonLoading?: boolean;
64
+ /**
65
+ * If true the cancel button will be hidden for this step.
66
+ *
67
+ * @default false
68
+ */
69
+ cancelStepButtonHidden?: boolean;
70
+ }
71
+ //# sourceMappingURL=WizardStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WizardStep.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardStep.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5C;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,6BAA6B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhD;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC"}
@@ -0,0 +1,10 @@
1
+ import type { WizardStep } from './WizardStep';
2
+ import type { StepperProps } from '../../development/Stepper';
3
+ interface WizardStepsContentProps {
4
+ steps: WizardStep[];
5
+ currentStepIndex: number;
6
+ localizeStepNumber: StepperProps['localizeStepNumber'];
7
+ }
8
+ export declare function WizardStepsContent({ steps: wizardSteps, currentStepIndex, localizeStepNumber, }: WizardStepsContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=WizardStepsContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WizardStepsContent.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardStepsContent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,UAAU,uBAAuB;IAC/B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAAC;CACxD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EAAE,WAAW,EAClB,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,uBAAuB,oDAmBzB"}
@@ -0,0 +1,5 @@
1
+ export * from './Wizard';
2
+ export * from './useWizardCurrentStep';
3
+ export * from './WizardStep';
4
+ export * from './WizardModal';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,20 @@
1
+ export interface WizardCurrentStepParams {
2
+ initialStep?: number;
3
+ totalSteps: number;
4
+ onValidateStepChange?: (step: number) => Promise<boolean>;
5
+ onStepChanged: ({ step, completed }: {
6
+ step: number;
7
+ completed: boolean;
8
+ }) => void;
9
+ }
10
+ export declare function useWizardCurrentStep({ initialStep, totalSteps, onValidateStepChange, onStepChanged, }: WizardCurrentStepParams): {
11
+ currentStepIndex: number;
12
+ busyValidatingNextStep: boolean;
13
+ isLastStep: boolean;
14
+ onStepsChange: (step: number, completed?: any) => Promise<void>;
15
+ goToNextStepOrDone: () => Promise<void>;
16
+ goToPreviousStep: () => void;
17
+ goToStep: (step: number) => void;
18
+ };
19
+ export type WizardCurrentStepResult = ReturnType<typeof useWizardCurrentStep>;
20
+ //# sourceMappingURL=useWizardCurrentStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWizardCurrentStep.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/useWizardCurrentStep.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1D,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACpF;AAED,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,aAAa,GACd,EAAE,uBAAuB;;;;0BAMT,MAAM;;;qBAgCZ,MAAM;EAiBhB;AAED,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
2
  import type { Theme } from '../../../theme';
3
+ import type { DialogComboboxContextType } from '../../DialogCombobox/providers/DialogComboboxContext';
3
4
  export declare const getComboboxContentWrapperStyles: (theme: Theme, { maxHeight, maxWidth, minHeight, minWidth, width, }: {
4
5
  maxHeight?: string | number | undefined;
5
6
  maxWidth?: string | number | undefined;
@@ -8,7 +9,18 @@ export declare const getComboboxContentWrapperStyles: (theme: Theme, { maxHeight
8
9
  width?: string | number | undefined;
9
10
  }) => SerializedStyles;
10
11
  export declare const getComboboxOptionItemWrapperStyles: (theme: Theme) => SerializedStyles;
12
+ interface getComboboxOptionLabelStylesProps {
13
+ theme: Theme;
14
+ dangerouslyHideCheck?: boolean;
15
+ textOverflowMode?: 'ellipsis' | 'multiline';
16
+ contentWidth?: DialogComboboxContextType['contentWidth'];
17
+ hasHintColumn?: boolean;
18
+ }
19
+ export declare const getComboboxOptionLabelStyles: ({ theme, dangerouslyHideCheck, textOverflowMode, contentWidth, hasHintColumn, }: getComboboxOptionLabelStylesProps) => SerializedStyles;
11
20
  export declare const getInfoIconStyles: (theme: Theme) => SerializedStyles;
12
21
  export declare const getCheckboxStyles: (theme: Theme, textOverflowMode: 'ellipsis' | 'multiline') => SerializedStyles;
13
22
  export declare const getFooterStyles: (theme: Theme) => SerializedStyles;
23
+ export declare const getSelectItemWithHintColumnStyles: (hintColumnWidthPercent?: number) => SerializedStyles;
24
+ export declare const getHintColumnStyles: (theme: Theme, disabled: boolean, textOverflowMode: DialogComboboxContextType['textOverflowMode']) => SerializedStyles;
25
+ export {};
14
26
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/design-system/_shared_/Combobox/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C,eAAO,MAAM,+BAA+B,UACnC,KAAK;;;;;;MAcX,gBAuBF,CAAC;AAEF,eAAO,MAAM,kCAAkC,UAAW,KAAK,KAAG,gBA4BjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,KAAK,KAAG,gBAQhD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,KAAK,oBAAoB,UAAU,GAAG,WAAW,KAAG,gBAsC5F,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,KAAK,KAAG,gBAQ9C,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/design-system/_shared_/Combobox/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AAKtG,eAAO,MAAM,+BAA+B,UACnC,KAAK;;;;;;MAcX,gBAuBF,CAAC;AAEF,eAAO,MAAM,kCAAkC,UAAW,KAAK,KAAG,gBA4BjE,CAAC;AAEF,UAAU,iCAAiC;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IAC5C,YAAY,CAAC,EAAE,yBAAyB,CAAC,cAAc,CAAC,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,4BAA4B,oFAMtC,iCAAiC,KAAG,gBAgBtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,KAAK,KAAG,gBAQhD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,KAAK,oBAAoB,UAAU,GAAG,WAAW,KAAG,gBAwC5F,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,KAAK,KAAG,gBAsB9C,CAAC;AAEF,eAAO,MAAM,iCAAiC,4BAA4B,MAAM,KAAQ,gBAMvF,CAAC;AAEF,eAAO,MAAM,mBAAmB,UACvB,KAAK,YACF,OAAO,oBACC,yBAAyB,CAAC,kBAAkB,CAAC,KAC9D,gBAcF,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { getColors } from '../theme/colors';
2
- export declare const ColorVars: Record<string, keyof ReturnType<typeof getColors>>;
1
+ import { ValidSemanticColors } from '../theme/_generated/ValidSemanticColors';
2
+ export declare const ColorVars: Record<string, ValidSemanticColors>;
3
3
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/design-system/constants.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,UAAU,CAAC,OAAO,SAAS,CAAC,CAOxE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/design-system/constants.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAOzD,CAAC"}
@@ -7,7 +7,9 @@ export * from './Breadcrumb';
7
7
  export * from './Button';
8
8
  export * from './Card';
9
9
  export * from './Checkbox';
10
+ export * from './ContextMenu';
10
11
  export * from './DatePicker';
12
+ export * from './DesignSystemEventProvider';
11
13
  export * from './DesignSystemProvider';
12
14
  export * from './DialogCombobox';
13
15
  export * from './Drawer';
@@ -54,5 +56,6 @@ export * from './Tooltip';
54
56
  export * from './Tree';
55
57
  export * from './TypeaheadCombobox';
56
58
  export * from './Typography';
59
+ export * from './Wizard';
57
60
  export * from './utils';
58
61
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/design-system/index.ts"],"names":[],"mappings":"AAEA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,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S,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -1,3 +1,4 @@
1
+ type SAFEXValueType = boolean | number;
1
2
  /**
2
3
  * Provides access to http://go/safex flags from the frontend. Note that this is a temporary
3
4
  * workaround until direct `safex` imports are available.
@@ -5,8 +6,8 @@
5
6
  * @param defaultValue The default value to return if the flag is not set
6
7
  * @returns
7
8
  */
8
- export declare const safex: (flag: string, defaultValue: boolean) => any;
9
- type FlagMap = Record<string, boolean>;
9
+ export declare const safex: <T extends SAFEXValueType>(flag: string, defaultValue: T) => T;
10
+ type FlagMap = Record<string, SAFEXValueType>;
10
11
  export type SafexTestingConfig = {
11
12
  setSafex: (overrides: FlagMap) => void;
12
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"safex.d.ts","sourceRoot":"","sources":["../../../src/design-system/utils/safex.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,SAAU,MAAM,gBAAgB,OAAO,QASxD,CAAC;AAEF,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,kBAAkB,CA0BtD"}
1
+ {"version":3,"file":"safex.d.ts","sourceRoot":"","sources":["../../../src/design-system/utils/safex.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvC;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,CAAC,CAAC,SAAS,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,KAAK,CAYhF,CAAC;AAEF,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,kBAAkB,CA0BtD"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ interface useNotifyOnFirstViewProps {
3
+ onView: () => void;
4
+ }
5
+ /**
6
+ * Checks if the element was viewed and calls the onView callback.
7
+ * NOTE: This hook only triggers the onView callback once for the element.
8
+ * @param onView - callback to be called when the element is viewed
9
+ * @typeParam T - extends Element to specify the type of element being observed
10
+ */
11
+ export declare const useNotifyOnFirstView: <T extends Element>({ onView }: useNotifyOnFirstViewProps) => {
12
+ elementRef: import("react").MutableRefObject<T | null>;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=useNotifyOnFirstView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNotifyOnFirstView.d.ts","sourceRoot":"","sources":["../../../src/design-system/utils/useNotifyOnFirstView.ts"],"names":[],"mappings":";AAoCA,UAAU,yBAAyB;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,kCAAmC,yBAAyB;;CA0B5F,CAAC"}
@@ -1,19 +1,29 @@
1
- import type { ReactNode } from 'react';
2
1
  import React from 'react';
2
+ import { DesignSystemEventProviderAnalyticsEventTypes } from '../../design-system/DesignSystemEventProvider/DesignSystemEventProvider';
3
3
  export declare const BANNER_MIN_HEIGHT = 68;
4
4
  export declare const BANNER_MAX_HEIGHT = 82;
5
- type BannerLevel = 'info' | 'error';
5
+ export type BannerLevel = 'info' | 'warning' | 'error';
6
6
  export interface BannerProps {
7
7
  level: BannerLevel;
8
- message: ReactNode;
9
- description?: ReactNode;
10
- ctaText?: ReactNode;
8
+ message: string;
9
+ description?: string;
10
+ ctaText?: string;
11
11
  onAccept?: () => void;
12
12
  closable?: boolean;
13
13
  onClose?: () => void;
14
14
  'data-testid'?: string;
15
+ /**
16
+ * componentId is used to identify the component in analytics events. It distinguished
17
+ * this component from all other components of this type. For new instances of this
18
+ * component it's good to have this be a short, human-readable string that describes
19
+ * the component. For example, the syntax for the identifier could be something similar
20
+ * to "webapp.notebook.share".
21
+ * This will be used in querying component events in analytics.
22
+ * go/ui-observability
23
+ */
24
+ componentId: string;
25
+ analyticsEvents?: ReadonlyArray<DesignSystemEventProviderAnalyticsEventTypes.OnView>;
15
26
  closeButtonAriaLabel?: string;
16
27
  }
17
28
  export declare const Banner: React.FC<BannerProps>;
18
- export {};
19
29
  //# sourceMappingURL=Banner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/development/Banner/Banner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAQpC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAoHD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqDxC,CAAC"}
1
+ {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/development/Banner/Banner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,4CAA4C,EAG7C,MAAM,yEAAyE,CAAC;AAUjF,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAUvD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;;;OAQG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,aAAa,CAAC,4CAA4C,CAAC,MAAM,CAAC,CAAC;IAGrF,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAmKD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4ExC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/development/ChatUI/ChatInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,KAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC,CAAC;AA6BF,eAAO,MAAM,SAAS,8DAA+D,cAAc,qDA0ClG,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/development/ChatUI/ChatInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,KAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC,CAAC;AA6BF,eAAO,MAAM,SAAS,8DAA+D,cAAc,qDAgDlG,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Feedback.d.ts","sourceRoot":"","sources":["../../../src/development/ChatUI/Feedback.tsx"],"names":[],"mappings":"AAQA,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAC7D,CAAC;AAqBF,eAAO,MAAM,QAAQ,mBAAoB,aAAa,4DAyDrD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Feedback.d.ts","sourceRoot":"","sources":["../../../src/development/ChatUI/Feedback.tsx"],"names":[],"mappings":"AAQA,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAC7D,CAAC;AAqBF,eAAO,MAAM,QAAQ,mBAAoB,aAAa,4DAgErD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,62 @@
1
+ /// <reference types="react" />
2
+ export interface Step {
3
+ /**
4
+ * Title of the step
5
+ */
6
+ title: string;
7
+ /**
8
+ * Optional description of the step
9
+ */
10
+ description?: string;
11
+ /**
12
+ * Status of the step. This will change the icon and text color of the step.
13
+ *
14
+ * @default 'upcoming'
15
+ */
16
+ status?: 'completed' | 'loading' | 'upcoming' | 'error';
17
+ icon?: React.ComponentType<{
18
+ statusColor: string;
19
+ status: Step['status'];
20
+ }>;
21
+ }
22
+ export interface StepperProps {
23
+ /**
24
+ * List of ordered steps in the stepper
25
+ */
26
+ steps: Step[];
27
+ /**
28
+ * Function to localize the step number; workaround for no react-intl support within dubois
29
+ *
30
+ * ex) localizeStepNumber={intl.formatNumber}
31
+ */
32
+ localizeStepNumber: (stepIndex: number) => string;
33
+ /**
34
+ * Direction of the stepper
35
+ *
36
+ * @default horizontal
37
+ */
38
+ direction?: 'horizontal' | 'vertical';
39
+ /**
40
+ * Current active step from the `steps` property (zero-indexed)
41
+ *
42
+ * @default 0
43
+ */
44
+ currentStepIndex?: number;
45
+ /**
46
+ * If true, and the stepper has a horizontal direction the stepper will be updated to be vertical if width is less than 532px.
47
+ * Set this value to false to opt out of the responsive behavior.
48
+ *
49
+ * @default true
50
+ */
51
+ responsive?: boolean;
52
+ }
53
+ export declare function Stepper({ direction: requestedDirection, currentStepIndex: currentStep, steps, localizeStepNumber, responsive, }: StepperProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
54
+ export declare function useResponsiveDirection({ requestedDirection, responsive, enabled, ref, }: {
55
+ requestedDirection: StepperProps['direction'];
56
+ enabled: boolean;
57
+ responsive: boolean;
58
+ ref: React.RefObject<HTMLOListElement>;
59
+ }): {
60
+ direction: "horizontal" | "vertical";
61
+ };
62
+ //# sourceMappingURL=Stepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/development/Stepper/Stepper.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAExD,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;KAAE,CAAC,CAAC;CAC7E;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,CAAC;IAEd;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAElD;;;;OAIG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAEtC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAS,EAAE,kBAAkB,EAC7B,gBAAgB,EAAE,WAAW,EAC7B,KAAK,EACL,kBAAkB,EAClB,UAAiB,GAClB,EAAE,YAAY,2DA0Ed;AA6OD,wBAAgB,sBAAsB,CAAC,EACrC,kBAAiC,EACjC,UAAU,EACV,OAAO,EACP,GAAG,GACJ,EAAE;IACD,kBAAkB,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACxC;;EA2BA"}
@@ -0,0 +1,2 @@
1
+ export { Stepper, type StepperProps, type Step } from './Stepper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/development/Stepper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC"}