@pingux/astro 2.208.3 → 2.209.0-alpha.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 (244) hide show
  1. package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.js +3 -1
  2. package/lib/cjs/components/AIComponents/AIPanel/aiPanelAttributes.d.ts +17 -0
  3. package/lib/cjs/components/AIComponents/AIPanel/aiPanelAttributes.js +42 -0
  4. package/lib/cjs/components/AIComponents/Prompt/Prompt.stories.js +7 -1
  5. package/lib/cjs/components/AIComponents/Response/Response.stories.js +3 -1
  6. package/lib/cjs/components/AIComponents/Response/responseAttributes.d.ts +20 -0
  7. package/lib/cjs/components/AIComponents/Response/responseAttributes.js +27 -0
  8. package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.js +17 -1
  9. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +4 -23
  10. package/lib/cjs/components/AccordionGroup/accordionGroupAttributes.d.ts +21 -0
  11. package/lib/cjs/components/AccordionGroup/accordionGroupAttributes.js +29 -0
  12. package/lib/cjs/components/ArrayField/ArrayField.stories.js +2 -28
  13. package/lib/cjs/components/ArrayField/arrayFieldAttributes.d.ts +99 -0
  14. package/lib/cjs/components/ArrayField/arrayFieldAttributes.js +46 -0
  15. package/lib/cjs/components/AstroProvider/AstroProvider.stories.js +21 -1
  16. package/lib/cjs/components/Avatar/Avatar.stories.js +2 -23
  17. package/lib/cjs/components/Avatar/avatarAttributes.d.ts +23 -0
  18. package/lib/cjs/components/Avatar/avatarAttributes.js +30 -0
  19. package/lib/cjs/components/Bracket/Bracket.stories.js +2 -25
  20. package/lib/cjs/components/Bracket/bracketAttributes.d.ts +25 -0
  21. package/lib/cjs/components/Bracket/bracketAttributes.js +32 -0
  22. package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +2 -34
  23. package/lib/cjs/components/CheckboxField/checkboxFieldAttributes.d.ts +1 -0
  24. package/lib/cjs/components/CheckboxField/checkboxFieldAttributes.js +52 -0
  25. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +12 -12
  26. package/lib/cjs/components/CollapsiblePanel/collapsiblePanelAttributes.d.ts +12 -0
  27. package/lib/cjs/components/CollapsiblePanel/collapsiblePanelAttributes.js +19 -0
  28. package/lib/cjs/components/ColorField/ColorField.stories.js +2 -26
  29. package/lib/cjs/components/ColorField/colorFieldAttributes.d.ts +1 -0
  30. package/lib/cjs/components/ColorField/colorFieldAttributes.js +44 -0
  31. package/lib/cjs/components/DataTable/DataTable.stories.js +3 -101
  32. package/lib/cjs/components/DataTable/dataTableAttributes.d.ts +162 -0
  33. package/lib/cjs/components/DataTable/dataTableAttributes.js +109 -0
  34. package/lib/cjs/components/ExpandableText/ExpandableText.stories.js +13 -1
  35. package/lib/cjs/components/ExpandableText/expandableTextAttributes.d.ts +26 -0
  36. package/lib/cjs/components/ExpandableText/expandableTextAttributes.js +33 -0
  37. package/lib/cjs/components/Footer/Footer.stories.js +6 -0
  38. package/lib/cjs/components/Grid/Grid.stories.js +2 -19
  39. package/lib/cjs/components/Grid/gridAttributes.d.ts +19 -0
  40. package/lib/cjs/components/Grid/gridAttributes.js +26 -0
  41. package/lib/cjs/components/IconBadge/IconBadge.stories.js +32 -1
  42. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +3 -1
  43. package/lib/cjs/components/IconButtonToggle/iconButtonToggleAttributes.d.ts +40 -0
  44. package/lib/cjs/components/IconButtonToggle/iconButtonToggleAttributes.js +63 -0
  45. package/lib/cjs/components/Image/Image.stories.js +2 -16
  46. package/lib/cjs/components/Image/imageAttributes.d.ts +15 -0
  47. package/lib/cjs/components/Image/imageAttributes.js +23 -0
  48. package/lib/cjs/components/Input/Input.stories.js +12 -6
  49. package/lib/cjs/components/Input/inputAttributes.d.ts +6 -0
  50. package/lib/cjs/components/Input/inputAttributes.js +13 -0
  51. package/lib/cjs/components/Label/Label.stories.js +2 -13
  52. package/lib/cjs/components/Label/labelAttributes.d.ts +17 -0
  53. package/lib/cjs/components/Label/labelAttributes.js +21 -0
  54. package/lib/cjs/components/Link/Link.stories.js +2 -33
  55. package/lib/cjs/components/Link/linkAttributes.d.ts +28 -0
  56. package/lib/cjs/components/Link/linkAttributes.js +41 -0
  57. package/lib/cjs/components/ListView/stories/ListViewOnyxDark.stories.js +51 -1
  58. package/lib/cjs/components/ListView/stories/listViewOnyxDarkAttributes.d.ts +31 -0
  59. package/lib/cjs/components/ListView/stories/listViewOnyxDarkAttributes.js +58 -0
  60. package/lib/cjs/components/Modal/Convenience/ModalBody.stories.js +13 -1
  61. package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.js +13 -1
  62. package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.js +13 -1
  63. package/lib/cjs/components/Modal/Convenience/modalBodyAttributes.d.ts +21 -0
  64. package/lib/cjs/components/Modal/Convenience/modalBodyAttributes.js +42 -0
  65. package/lib/cjs/components/Modal/Convenience/modalFooterAttributes.d.ts +28 -0
  66. package/lib/cjs/components/Modal/Convenience/modalFooterAttributes.js +51 -0
  67. package/lib/cjs/components/Modal/Convenience/modalHeaderAttributes.d.ts +35 -0
  68. package/lib/cjs/components/Modal/Convenience/modalHeaderAttributes.js +60 -0
  69. package/lib/cjs/components/Modal/Modal.stories.js +13 -58
  70. package/lib/cjs/components/Modal/modalAttributes.d.ts +55 -0
  71. package/lib/cjs/components/Modal/modalAttributes.js +63 -0
  72. package/lib/cjs/components/NavBar/NavBar.stories.js +13 -2
  73. package/lib/cjs/components/NavBar/navBarAttributes.d.ts +30 -0
  74. package/lib/cjs/components/NavBar/navBarAttributes.js +55 -0
  75. package/lib/cjs/components/NavBar/stories/NavBar.Onyx.stories.js +13 -1
  76. package/lib/cjs/components/NavBar/stories/navBarOnyxAttributes.d.ts +24 -0
  77. package/lib/cjs/components/NavBar/stories/navBarOnyxAttributes.js +49 -0
  78. package/lib/cjs/components/Pagination/Pagination.stories.js +2 -24
  79. package/lib/cjs/components/Pagination/paginationAttributes.d.ts +24 -0
  80. package/lib/cjs/components/Pagination/paginationAttributes.js +31 -0
  81. package/lib/cjs/components/PhoneNumberField/PhoneNumberField.d.ts +4 -0
  82. package/lib/cjs/components/PhoneNumberField/PhoneNumberField.js +299 -0
  83. package/lib/cjs/components/PhoneNumberField/PhoneNumberField.mdx +32 -0
  84. package/lib/cjs/components/PhoneNumberField/PhoneNumberField.stories.js +136 -0
  85. package/lib/cjs/components/PhoneNumberField/PhoneNumberField.test.js +158 -0
  86. package/lib/cjs/components/PhoneNumberField/index.d.ts +1 -0
  87. package/lib/cjs/components/PhoneNumberField/index.js +14 -0
  88. package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +2 -13
  89. package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.d.ts +13 -0
  90. package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.js +20 -0
  91. package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +2 -27
  92. package/lib/cjs/components/ProgressBar/progressBarAttributes.d.ts +42 -0
  93. package/lib/cjs/components/ProgressBar/progressBarAttributes.js +65 -0
  94. package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +2 -28
  95. package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.d.ts +1 -0
  96. package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.js +46 -0
  97. package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +4 -13
  98. package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.d.ts +121 -0
  99. package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.js +91 -0
  100. package/lib/cjs/components/SearchField/SearchField.stories.js +2 -27
  101. package/lib/cjs/components/SearchField/searchFieldAttributes.d.ts +1 -0
  102. package/lib/cjs/components/SearchField/searchFieldAttributes.js +45 -0
  103. package/lib/cjs/components/SelectField/SelectField.stories.js +2 -41
  104. package/lib/cjs/components/SelectField/selectFieldAttributes.d.ts +1 -0
  105. package/lib/cjs/components/SelectField/selectFieldAttributes.js +61 -0
  106. package/lib/cjs/components/Separator/Separator.stories.js +21 -1
  107. package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
  108. package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.d.ts +33 -0
  109. package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +54 -0
  110. package/lib/cjs/components/SliderField/SliderField.stories.js +2 -38
  111. package/lib/cjs/components/SliderField/sliderFieldAttributes.d.ts +38 -0
  112. package/lib/cjs/components/SliderField/sliderFieldAttributes.js +45 -0
  113. package/lib/cjs/components/StatusIcon/StatusIcon.stories.js +30 -0
  114. package/lib/cjs/components/Table/Table.stories.js +20 -4
  115. package/lib/cjs/components/TableBase/TableBase.stories.js +3 -1
  116. package/lib/cjs/components/TableBase/tableBaseAttributes.d.ts +33 -0
  117. package/lib/cjs/components/TableBase/tableBaseAttributes.js +62 -0
  118. package/lib/cjs/components/Tabs/Tabs.stories.js +2 -18
  119. package/lib/cjs/components/Tabs/tabsAttributes.d.ts +18 -0
  120. package/lib/cjs/components/Tabs/tabsAttributes.js +25 -0
  121. package/lib/cjs/components/Text/Text.stories.js +2 -26
  122. package/lib/cjs/components/Text/textAttributes.d.ts +26 -0
  123. package/lib/cjs/components/Text/textAttributes.js +33 -0
  124. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +2 -41
  125. package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.d.ts +1 -0
  126. package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.js +61 -0
  127. package/lib/cjs/components/TimeField/TimeField.stories.js +2 -1
  128. package/lib/cjs/components/TimeField/timeFieldAttributes.d.ts +89 -0
  129. package/lib/cjs/components/TimeField/timeFieldAttributes.js +132 -0
  130. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +55 -0
  131. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
  132. package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.d.ts +130 -0
  133. package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.js +90 -0
  134. package/lib/cjs/components/TreeView/TreeView.stories.js +61 -1
  135. package/lib/cjs/index.d.ts +2 -0
  136. package/lib/cjs/index.js +56 -37
  137. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  138. package/lib/cjs/types/index.d.ts +1 -0
  139. package/lib/cjs/types/index.js +32 -21
  140. package/lib/cjs/types/phoneNumberField.d.ts +45 -0
  141. package/lib/cjs/types/phoneNumberField.js +6 -0
  142. package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
  143. package/lib/cjs/utils/designUtils/figmaLinks.js +3 -0
  144. package/lib/cjs/utils/testUtils/universalFormSubmitTest.js +25 -11
  145. package/lib/components/AIComponents/AIPanel/AIPanel.stories.js +3 -1
  146. package/lib/components/AIComponents/AIPanel/aiPanelAttributes.js +35 -0
  147. package/lib/components/AIComponents/Prompt/Prompt.stories.js +7 -1
  148. package/lib/components/AIComponents/Response/Response.stories.js +3 -1
  149. package/lib/components/AIComponents/Response/responseAttributes.js +20 -0
  150. package/lib/components/AIComponents/Suggestions/Suggestions.stories.js +18 -1
  151. package/lib/components/AccordionGroup/AccordionGroup.stories.js +4 -23
  152. package/lib/components/AccordionGroup/accordionGroupAttributes.js +22 -0
  153. package/lib/components/ArrayField/ArrayField.stories.js +2 -28
  154. package/lib/components/ArrayField/arrayFieldAttributes.js +39 -0
  155. package/lib/components/AstroProvider/AstroProvider.stories.js +21 -1
  156. package/lib/components/Avatar/Avatar.stories.js +2 -23
  157. package/lib/components/Avatar/avatarAttributes.js +23 -0
  158. package/lib/components/Bracket/Bracket.stories.js +2 -25
  159. package/lib/components/Bracket/bracketAttributes.js +25 -0
  160. package/lib/components/CheckboxField/CheckboxField.stories.js +2 -34
  161. package/lib/components/CheckboxField/checkboxFieldAttributes.js +45 -0
  162. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +13 -12
  163. package/lib/components/CollapsiblePanel/collapsiblePanelAttributes.js +12 -0
  164. package/lib/components/ColorField/ColorField.stories.js +2 -26
  165. package/lib/components/ColorField/colorFieldAttributes.js +37 -0
  166. package/lib/components/DataTable/DataTable.stories.js +2 -101
  167. package/lib/components/DataTable/dataTableAttributes.js +102 -0
  168. package/lib/components/ExpandableText/ExpandableText.stories.js +14 -1
  169. package/lib/components/ExpandableText/expandableTextAttributes.js +26 -0
  170. package/lib/components/Footer/Footer.stories.js +6 -0
  171. package/lib/components/Grid/Grid.stories.js +2 -19
  172. package/lib/components/Grid/gridAttributes.js +19 -0
  173. package/lib/components/IconBadge/IconBadge.stories.js +33 -1
  174. package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +3 -1
  175. package/lib/components/IconButtonToggle/iconButtonToggleAttributes.js +56 -0
  176. package/lib/components/Image/Image.stories.js +2 -16
  177. package/lib/components/Image/imageAttributes.js +16 -0
  178. package/lib/components/Input/Input.stories.js +13 -6
  179. package/lib/components/Input/inputAttributes.js +6 -0
  180. package/lib/components/Label/Label.stories.js +2 -13
  181. package/lib/components/Label/labelAttributes.js +14 -0
  182. package/lib/components/Link/Link.stories.js +2 -33
  183. package/lib/components/Link/linkAttributes.js +33 -0
  184. package/lib/components/ListView/stories/ListViewOnyxDark.stories.js +52 -1
  185. package/lib/components/ListView/stories/listViewOnyxDarkAttributes.js +51 -0
  186. package/lib/components/Modal/Convenience/ModalBody.stories.js +14 -1
  187. package/lib/components/Modal/Convenience/ModalFooter.stories.js +14 -1
  188. package/lib/components/Modal/Convenience/ModalHeader.stories.js +14 -1
  189. package/lib/components/Modal/Convenience/modalBodyAttributes.js +35 -0
  190. package/lib/components/Modal/Convenience/modalFooterAttributes.js +44 -0
  191. package/lib/components/Modal/Convenience/modalHeaderAttributes.js +53 -0
  192. package/lib/components/Modal/Modal.stories.js +13 -56
  193. package/lib/components/Modal/modalAttributes.js +56 -0
  194. package/lib/components/NavBar/NavBar.stories.js +13 -0
  195. package/lib/components/NavBar/navBarAttributes.js +48 -0
  196. package/lib/components/NavBar/stories/NavBar.Onyx.stories.js +14 -1
  197. package/lib/components/NavBar/stories/navBarOnyxAttributes.js +42 -0
  198. package/lib/components/Pagination/Pagination.stories.js +2 -24
  199. package/lib/components/Pagination/paginationAttributes.js +24 -0
  200. package/lib/components/PhoneNumberField/PhoneNumberField.js +288 -0
  201. package/lib/components/PhoneNumberField/PhoneNumberField.mdx +32 -0
  202. package/lib/components/PhoneNumberField/PhoneNumberField.stories.js +126 -0
  203. package/lib/components/PhoneNumberField/PhoneNumberField.test.js +155 -0
  204. package/lib/components/PhoneNumberField/index.js +1 -0
  205. package/lib/components/PopoverMenu/PopoverMenu.stories.js +2 -13
  206. package/lib/components/PopoverMenu/popoverMenuAttributes.js +13 -0
  207. package/lib/components/ProgressBar/ProgressBar.stories.js +2 -27
  208. package/lib/components/ProgressBar/progressBarAttributes.js +58 -0
  209. package/lib/components/RadioGroupField/RadioGroupField.stories.js +2 -28
  210. package/lib/components/RadioGroupField/radioGroupFieldAttributes.js +39 -0
  211. package/lib/components/RangeCalendar/RangeCalendar.stories.js +2 -13
  212. package/lib/components/RangeCalendar/rangeCalendarAttributes.js +84 -0
  213. package/lib/components/SearchField/SearchField.stories.js +2 -27
  214. package/lib/components/SearchField/searchFieldAttributes.js +38 -0
  215. package/lib/components/SelectField/SelectField.stories.js +2 -41
  216. package/lib/components/SelectField/selectFieldAttributes.js +54 -0
  217. package/lib/components/Separator/Separator.stories.js +22 -1
  218. package/lib/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
  219. package/lib/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +47 -0
  220. package/lib/components/SliderField/SliderField.stories.js +2 -38
  221. package/lib/components/SliderField/sliderFieldAttributes.js +38 -0
  222. package/lib/components/StatusIcon/StatusIcon.stories.js +31 -0
  223. package/lib/components/Table/Table.stories.js +21 -4
  224. package/lib/components/TableBase/TableBase.stories.js +3 -1
  225. package/lib/components/TableBase/tableBaseAttributes.js +55 -0
  226. package/lib/components/Tabs/Tabs.stories.js +2 -18
  227. package/lib/components/Tabs/tabsAttributes.js +18 -0
  228. package/lib/components/Text/Text.stories.js +2 -26
  229. package/lib/components/Text/textAttributes.js +26 -0
  230. package/lib/components/TextAreaField/TextAreaField.stories.js +2 -41
  231. package/lib/components/TextAreaField/textAreaFieldAttributes.js +54 -0
  232. package/lib/components/TimeField/TimeField.stories.js +2 -1
  233. package/lib/components/TimeField/timeFieldAttributes.js +125 -0
  234. package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +56 -0
  235. package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
  236. package/lib/components/TooltipTrigger/tooltipTriggerAttributes.js +83 -0
  237. package/lib/components/TreeView/TreeView.stories.js +60 -0
  238. package/lib/index.js +2 -0
  239. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  240. package/lib/types/index.js +1 -0
  241. package/lib/types/phoneNumberField.js +1 -0
  242. package/lib/utils/designUtils/figmaLinks.js +3 -0
  243. package/lib/utils/testUtils/universalFormSubmitTest.js +25 -11
  244. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ export var textArgTypes = {
2
+ as: {
3
+ control: false
4
+ },
5
+ role: {
6
+ control: false
7
+ },
8
+ variant: {
9
+ control: false,
10
+ description: 'Text variant.'
11
+ },
12
+ children: {
13
+ control: false,
14
+ description: 'Text value.'
15
+ },
16
+ color: {
17
+ control: {
18
+ type: 'text'
19
+ },
20
+ description: 'Text color.'
21
+ },
22
+ bg: {
23
+ control: false,
24
+ description: 'Background color.'
25
+ }
26
+ };
@@ -17,10 +17,8 @@ import SearchIcon from '@pingux/mdi-react/SearchIcon';
17
17
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
18
18
  import { Box, Icon, TextAreaField } from '../../index';
19
19
  import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
20
- import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
21
- import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
22
- import { statusArgTypes } from '../../utils/docUtils/statusProp';
23
20
  import TextAreaFieldReadme from './TextAreaField.mdx';
21
+ import { textAreaFieldArgTypes } from './textAreaFieldAttributes';
24
22
  import { jsx as ___EmotionJSX } from "@emotion/react";
25
23
  export default {
26
24
  title: 'Form/TextAreaField',
@@ -40,44 +38,7 @@ export default {
40
38
  }
41
39
  }
42
40
  },
43
- argTypes: _objectSpread(_objectSpread(_objectSpread({
44
- label: {
45
- control: {
46
- type: 'text'
47
- }
48
- },
49
- labelMode: {
50
- control: {
51
- type: 'select',
52
- options: _Object$values(labelModes)
53
- }
54
- },
55
- defaultValue: {},
56
- placeholder: {},
57
- name: {},
58
- helperText: {
59
- control: {
60
- type: 'text'
61
- }
62
- },
63
- hintText: {
64
- control: {
65
- type: 'text'
66
- }
67
- },
68
- rows: {},
69
- isDisabled: {},
70
- isRequired: {},
71
- isReadOnly: {},
72
- hasAutoFocus: {},
73
- isUnresizable: {},
74
- id: {},
75
- autocomplete: {},
76
- className: {},
77
- value: {
78
- control: false
79
- }
80
- }, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
41
+ argTypes: _objectSpread({}, textAreaFieldArgTypes),
81
42
  args: {
82
43
  label: 'Example Label',
83
44
  labelMode: _Object$values(labelModes)[0]
@@ -0,0 +1,54 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
11
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
13
+ import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
14
+ import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
15
+ import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
16
+ import { statusArgTypes } from '../../utils/docUtils/statusProp';
17
+ export var textAreaFieldArgTypes = _objectSpread(_objectSpread(_objectSpread({
18
+ label: {
19
+ control: {
20
+ type: 'text'
21
+ }
22
+ },
23
+ labelMode: {
24
+ control: {
25
+ type: 'select',
26
+ options: _Object$values(labelModes)
27
+ }
28
+ },
29
+ defaultValue: {},
30
+ placeholder: {},
31
+ name: {},
32
+ helperText: {
33
+ control: {
34
+ type: 'text'
35
+ }
36
+ },
37
+ hintText: {
38
+ control: {
39
+ type: 'text'
40
+ }
41
+ },
42
+ rows: {},
43
+ isDisabled: {},
44
+ isRequired: {},
45
+ isReadOnly: {},
46
+ hasAutoFocus: {},
47
+ isUnresizable: {},
48
+ id: {},
49
+ autocomplete: {},
50
+ className: {},
51
+ value: {
52
+ control: false
53
+ }
54
+ }, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes);
@@ -4,6 +4,7 @@ import React, { useState } from 'react';
4
4
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
5
5
  import { TimeField } from '../../index';
6
6
  import TimeFieldReadme from './TimeField.mdx';
7
+ import { timeFieldArgTypes } from './timeFieldAttributes';
7
8
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
9
  export default {
9
10
  title: 'Experimental/TimeField',
@@ -26,7 +27,7 @@ export default {
26
27
  }
27
28
  }
28
29
  },
29
- argTypes: {}
30
+ argTypes: timeFieldArgTypes
30
31
  };
31
32
  export var Default = function Default(args) {
32
33
  return ___EmotionJSX(TimeField, _extends({}, args, {
@@ -0,0 +1,125 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
12
+ import { booleanArg, funcArg } from '../../utils/docUtils/docArgTypes';
13
+ export var timeFieldArgTypes = {
14
+ isDisabled: _objectSpread(_objectSpread({}, booleanArg), {}, {
15
+ description: 'Whether the input is disabled.'
16
+ }),
17
+ isReadOnly: _objectSpread(_objectSpread({}, booleanArg), {}, {
18
+ description: 'Whether the input can be selected but not changed by the user.'
19
+ }),
20
+ isRequired: _objectSpread(_objectSpread({}, booleanArg), {}, {
21
+ description: 'Whether user input is required on the input before form submission.'
22
+ }),
23
+ isInvalid: _objectSpread(_objectSpread({}, booleanArg), {}, {
24
+ description: 'Whether the input value is invalid.'
25
+ }),
26
+ autoFocus: _objectSpread(_objectSpread({}, booleanArg), {}, {
27
+ description: 'Whether the element should receive focus on render.'
28
+ }),
29
+ shouldForceLeadingZeros: _objectSpread(_objectSpread({}, booleanArg), {}, {
30
+ description: 'Whether to always show leading zeros in the hour field.'
31
+ }),
32
+ hourCycle: {
33
+ control: {
34
+ type: 'select'
35
+ },
36
+ options: [12, 24],
37
+ description: 'Whether to display the time in 12 or 24 hour format. Default is determined by the user\'s locale.'
38
+ },
39
+ granularity: {
40
+ control: {
41
+ type: 'select'
42
+ },
43
+ options: ['hour', 'minute', 'second'],
44
+ description: 'Determines the smallest unit that is displayed in the time picker.'
45
+ },
46
+ validationBehavior: {
47
+ control: {
48
+ type: 'select'
49
+ },
50
+ options: ['native', 'aria'],
51
+ description: 'Whether to use native HTML form validation or ARIA to mark the field as required or invalid.'
52
+ },
53
+ label: {
54
+ control: {
55
+ type: 'text'
56
+ },
57
+ description: 'The content to display as the label.'
58
+ },
59
+ name: {
60
+ control: {
61
+ type: 'text'
62
+ },
63
+ description: 'The name of the input element, used when submitting an HTML form.'
64
+ },
65
+ id: {
66
+ control: {
67
+ type: 'text'
68
+ },
69
+ description: 'The element\'s unique identifier.'
70
+ },
71
+ slot: {
72
+ control: {
73
+ type: 'text'
74
+ },
75
+ description: 'A slot name for the component, allowing it to receive props from a parent component.'
76
+ },
77
+ value: {
78
+ control: {
79
+ type: null
80
+ },
81
+ description: 'The current value (controlled). Accepts a TimeValue, string, or null.'
82
+ },
83
+ defaultValue: {
84
+ control: {
85
+ type: null
86
+ },
87
+ description: 'The default value (uncontrolled). Accepts a TimeValue, string, or null.'
88
+ },
89
+ placeholderValue: {
90
+ control: {
91
+ type: null
92
+ },
93
+ description: 'A placeholder time that influences the format of the placeholder shown when no value is selected.'
94
+ },
95
+ minValue: {
96
+ control: {
97
+ type: null
98
+ },
99
+ description: 'The minimum allowed time that a user may select.'
100
+ },
101
+ maxValue: {
102
+ control: {
103
+ type: null
104
+ },
105
+ description: 'The maximum allowed time that a user may select.'
106
+ },
107
+ onChange: _objectSpread(_objectSpread({}, funcArg), {}, {
108
+ description: 'Handler that is called when the value changes.'
109
+ }),
110
+ onFocus: _objectSpread(_objectSpread({}, funcArg), {}, {
111
+ description: 'Handler that is called when the element receives focus.'
112
+ }),
113
+ onBlur: _objectSpread(_objectSpread({}, funcArg), {}, {
114
+ description: 'Handler that is called when the element loses focus.'
115
+ }),
116
+ onFocusChange: _objectSpread(_objectSpread({}, funcArg), {}, {
117
+ description: 'Handler that is called when the element\'s focus status changes.'
118
+ }),
119
+ onKeyDown: _objectSpread(_objectSpread({}, funcArg), {}, {
120
+ description: 'Handler that is called when a key is pressed.'
121
+ }),
122
+ onKeyUp: _objectSpread(_objectSpread({}, funcArg), {}, {
123
+ description: 'Handler that is called when a key is released.'
124
+ })
125
+ };
@@ -1,8 +1,20 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
1
9
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
10
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
11
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
12
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
3
14
  import React from 'react';
4
15
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
5
16
  import { TimeZonePicker } from '../../index';
17
+ import { funcArg } from '../../utils/docUtils/docArgTypes';
6
18
  import TimeZonePickerReadme from './TimeZonePicker.mdx';
7
19
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
20
  export default {
@@ -14,6 +26,50 @@ export default {
14
26
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TimeZonePickerReadme, null), ___EmotionJSX(DocsLayout, null));
15
27
  }
16
28
  }
29
+ },
30
+ argTypes: {
31
+ selectedKey: {
32
+ description: 'The key of the currently selected time zone item (controlled).',
33
+ control: {
34
+ type: 'text'
35
+ }
36
+ },
37
+ inputValue: {
38
+ description: 'The current value of the search input field (controlled).',
39
+ control: {
40
+ type: 'text'
41
+ }
42
+ },
43
+ emptySearchText: {
44
+ description: 'Text displayed when the search query returns no results.',
45
+ control: {
46
+ type: 'text'
47
+ }
48
+ },
49
+ locales: {
50
+ description: 'Locale string or array of locale strings used to format time zone display names.',
51
+ control: {
52
+ type: 'text'
53
+ }
54
+ },
55
+ onSelectionChange: _objectSpread(_objectSpread({}, funcArg), {}, {
56
+ description: 'Callback invoked when the selected time zone changes.'
57
+ }),
58
+ onInputChange: _objectSpread(_objectSpread({}, funcArg), {}, {
59
+ description: 'Callback invoked when the search input value changes.'
60
+ }),
61
+ additionalTimeZones: {
62
+ description: 'An object mapping custom display labels to IANA time zone identifiers to include alongside the default list.',
63
+ control: {
64
+ type: null
65
+ }
66
+ },
67
+ localeOptions: {
68
+ description: 'Options object passed to Intl.DateTimeFormat for locale-sensitive time zone name formatting.',
69
+ control: {
70
+ type: null
71
+ }
72
+ }
17
73
  }
18
74
  };
19
75
  export var Default = function Default(args) {
@@ -9,6 +9,7 @@ import { useGetTheme } from '../../hooks';
9
9
  import { Box, Button, Icon, IconButton, Text, Tooltip, TooltipTrigger } from '../../index';
10
10
  import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
11
11
  import TooltipTriggerReadme from './TooltipTrigger.mdx';
12
+ import { tooltipTriggerArgTypes } from './tooltipTriggerAttributes';
12
13
  import { jsx as ___EmotionJSX } from "@emotion/react";
13
14
  export default {
14
15
  title: 'Components/TooltipTrigger',
@@ -19,7 +20,8 @@ export default {
19
20
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TooltipTriggerReadme, null), ___EmotionJSX(DocsLayout, null));
20
21
  }
21
22
  }
22
- }
23
+ },
24
+ argTypes: tooltipTriggerArgTypes
23
25
  };
24
26
  export var Default = function Default(args) {
25
27
  return ___EmotionJSX(TooltipTrigger, args, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Tooltip Content"));
@@ -0,0 +1,83 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
12
+ import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
13
+ import { booleanArg } from '../../utils/docUtils/docArgTypes';
14
+ export var tooltipTriggerArgTypes = _objectSpread({
15
+ align: {
16
+ description: 'Alignment of the tooltip relative to the trigger element.',
17
+ control: {
18
+ type: 'select'
19
+ },
20
+ options: ['start', 'end', 'middle']
21
+ },
22
+ direction: {
23
+ description: 'Where the tooltip opens relative to its trigger.',
24
+ control: {
25
+ type: 'select'
26
+ },
27
+ options: ['top', 'right', 'bottom', 'left']
28
+ },
29
+ offset: {
30
+ description: 'Offset of the tooltip relative to its trigger along the primary axis.',
31
+ control: {
32
+ type: 'number'
33
+ }
34
+ },
35
+ crossOffset: {
36
+ description: 'Additional offset applied along the cross axis between the tooltip and its anchor.',
37
+ control: {
38
+ type: 'number'
39
+ }
40
+ },
41
+ delay: {
42
+ description: 'Delay in milliseconds before the tooltip is shown after hovering.',
43
+ control: {
44
+ type: 'number'
45
+ }
46
+ },
47
+ arrowCrossOffset: {
48
+ description: 'Arrow offset relative to the left of the tooltip. Must be a px or percentage value.',
49
+ control: {
50
+ type: 'text'
51
+ }
52
+ },
53
+ width: {
54
+ description: 'Width applied to the wrapper of the tooltip component.',
55
+ control: {
56
+ type: 'text'
57
+ }
58
+ },
59
+ placement: {
60
+ description: 'The placement of the tooltip with respect to its anchor element.',
61
+ control: {
62
+ type: 'text'
63
+ }
64
+ },
65
+ isDarkMode: _objectSpread(_objectSpread({}, booleanArg), {}, {
66
+ description: 'Whether the tooltip uses dark styling with white text (defaults to true).'
67
+ }),
68
+ isDefaultOpen: _objectSpread(_objectSpread({}, booleanArg), {}, {
69
+ description: 'Whether the tooltip is open by default (uncontrolled).'
70
+ }),
71
+ isNotFlippable: _objectSpread(_objectSpread({}, booleanArg), {}, {
72
+ description: 'Whether the tooltip is prevented from flipping when there is insufficient space for the given direction.'
73
+ }),
74
+ hasNoArrow: _objectSpread(_objectSpread({}, booleanArg), {}, {
75
+ description: 'Whether the tooltip arrow indicator is hidden.'
76
+ }),
77
+ isOpen: _objectSpread(_objectSpread({}, booleanArg), {}, {
78
+ description: 'Whether the tooltip is currently open (controlled).'
79
+ }),
80
+ isDisabled: _objectSpread(_objectSpread({}, booleanArg), {}, {
81
+ description: 'Whether the tooltip trigger is disabled, preventing the tooltip from appearing.'
82
+ })
83
+ }, ariaAttributeBaseArgTypes);
@@ -1,3 +1,9 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
6
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
1
7
  import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
2
8
  import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
3
9
  import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
@@ -11,6 +17,7 @@ import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
11
17
  import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
12
18
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
13
19
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
20
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
14
21
  function _regeneratorRuntime() { "use strict"; var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (_Object$getPrototypeOf ? _Object$getPrototypeOf(e) : e.__proto__).constructor; function n(r) { var e = "function" == typeof r && r.constructor; return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); } var o = { "throw": 1, "return": 2, "break": 3, "continue": 3 }; function a(r) { var e, t; return function (n) { e || (e = { stop: function stop() { return t(n.a, 2); }, "catch": function _catch() { return n.v; }, abrupt: function abrupt(r, e) { return t(n.a, o[r], e); }, delegateYield: function delegateYield(r, o, a) { return e.resultName = o, t(n.d, _regeneratorValues(r), a); }, finish: function finish(r) { return t(n.f, r); } }, t = function t(r, _t, o) { n.p = e.prev, n.n = e.next; try { return r(_t, o); } finally { e.next = n.n; } }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; try { return r.call(this, e); } finally { n.p = e.prev, n.n = e.next; } }; } return (_regeneratorRuntime = function _regeneratorRuntime() { return { wrap: function wrap(e, t, n, o) { return r.w(a(e), t, n, o && _reverseInstanceProperty(o).call(o)); }, isGeneratorFunction: n, mark: r.m, awrap: function awrap(r, e) { return new _OverloadYield(r, e); }, AsyncIterator: _regeneratorAsyncIterator, async: function async(r, e, t, o, u) { return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u); }, keys: _regeneratorKeys, values: _regeneratorValues }; })(); }
15
22
  function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof _Symbol && _Symbol$iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
16
23
  function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) r.unshift(t); return function e() { for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; return e.done = !0, e; }; }
@@ -27,9 +34,12 @@ import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
27
34
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
28
35
  import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
29
36
  import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/splice";
37
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
38
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
30
39
  import React, { useEffect, useState } from 'react';
31
40
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
32
41
  import { Item, TreeView, useTreeData } from '../../index';
42
+ import { funcArg } from '../../utils/docUtils/docArgTypes';
33
43
  import TreeViewReadMe from './TreeView.mdx';
34
44
  import { jsx as ___EmotionJSX } from "@emotion/react";
35
45
  export default {
@@ -55,6 +65,56 @@ export default {
55
65
  }]
56
66
  }
57
67
  }
68
+ },
69
+ argTypes: {
70
+ onExpandedChange: _objectSpread(_objectSpread({}, funcArg), {}, {
71
+ description: 'Callback invoked when the set of expanded tree nodes changes.'
72
+ }),
73
+ onKeyDown: _objectSpread(_objectSpread({}, funcArg), {}, {
74
+ description: 'Callback invoked when a key is pressed while the tree has focus.'
75
+ }),
76
+ onDragStart: _objectSpread(_objectSpread({}, funcArg), {}, {
77
+ description: 'Callback invoked when a drag operation on a tree item starts.'
78
+ }),
79
+ onDrop: _objectSpread(_objectSpread({}, funcArg), {}, {
80
+ description: 'Callback invoked when an item is dropped onto the tree.'
81
+ }),
82
+ pageLength: {
83
+ description: 'Number of items to move focus by when Page Up or Page Down is pressed.',
84
+ control: {
85
+ type: 'number'
86
+ }
87
+ },
88
+ 'aria-label': {
89
+ description: 'Defines an accessible label for the tree.',
90
+ control: {
91
+ type: 'text'
92
+ }
93
+ },
94
+ tree: {
95
+ description: 'The tree data object returned by useTreeData, used to manage tree state.',
96
+ control: {
97
+ type: null
98
+ }
99
+ },
100
+ items: {
101
+ description: 'The iterable list of top-level tree items to render.',
102
+ control: {
103
+ type: null
104
+ }
105
+ },
106
+ disabledKeys: {
107
+ description: 'Keys of items that are disabled and cannot be interacted with.',
108
+ control: {
109
+ type: null
110
+ }
111
+ },
112
+ loadingNodes: {
113
+ description: 'Array of node loading state objects indicating which nodes are currently loading children.',
114
+ control: {
115
+ type: null
116
+ }
117
+ }
58
118
  }
59
119
  };
60
120
  var data = [{
package/lib/index.js CHANGED
@@ -151,6 +151,8 @@ export { default as PanelHeaderMenu } from './components/PanelHeader/controls/Pa
151
151
  export { default as PanelHeaderSwitchField } from './components/PanelHeader/controls/PanelHeaderSwitchField';
152
152
  export { default as PasswordField } from './components/PasswordField';
153
153
  export * from './components/PasswordField';
154
+ export { default as PhoneNumberField } from './components/PhoneNumberField';
155
+ export * from './components/PhoneNumberField';
154
156
  export { default as PopoverContainer } from './components/PopoverContainer';
155
157
  export * from './components/PopoverContainer';
156
158
  export { default as PopoverMenu } from './components/PopoverMenu';
@@ -1,4 +1,4 @@
1
- var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'MaterialSymbolIcon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField'];
1
+ var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'MaterialSymbolIcon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PhoneNumberField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField'];
2
2
  export var componentSpecificNextGenBlacklist = {
3
3
  AstroProvider: ['Default', 'With Custom Theme Override'],
4
4
  Messages: ['Customization'],
@@ -42,6 +42,7 @@ export * from './navBar';
42
42
  export * from './navSideBar';
43
43
  export * from './overlayPanel';
44
44
  export * from './passwordField';
45
+ export * from './phoneNumberField';
45
46
  export * from './popoverContainer';
46
47
  export * from './popoverMenu';
47
48
  export * from './progressBar';
@@ -0,0 +1 @@
1
+ export {};
@@ -163,6 +163,9 @@ export var FIGMA_LINKS = {
163
163
  withAvatar: 'https://www.figma.com/design/XDGxYAgQkcHDVjyu8OGrBv/Onyx-Specs?node-id=4470-24174&m=dev',
164
164
  withExtraLongText: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=44688%3A39713&mode=dev'
165
165
  },
166
+ phoneNumberField: {
167
+ "default": 'https://www.figma.com/design/XDGxYAgQkcHDVjyu8OGrBv/Onyx-Specs?node-id=8496-31873'
168
+ },
166
169
  popoverMenu: {
167
170
  "default": 'https://www.figma.com/file/Oa6VYtJcUJzEJuuRp0p4ls/Astro?type=design&node-id=0%3A3073&t=We3h7LaaFJQnxdSy-1'
168
171
  },