@pingux/astro 2.208.3 → 2.208.4-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 (216) 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/PopoverMenu/PopoverMenu.stories.js +2 -13
  82. package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.d.ts +13 -0
  83. package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.js +20 -0
  84. package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +2 -27
  85. package/lib/cjs/components/ProgressBar/progressBarAttributes.d.ts +42 -0
  86. package/lib/cjs/components/ProgressBar/progressBarAttributes.js +65 -0
  87. package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +2 -28
  88. package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.d.ts +1 -0
  89. package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.js +46 -0
  90. package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +4 -13
  91. package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.d.ts +121 -0
  92. package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.js +91 -0
  93. package/lib/cjs/components/SearchField/SearchField.stories.js +2 -27
  94. package/lib/cjs/components/SearchField/searchFieldAttributes.d.ts +1 -0
  95. package/lib/cjs/components/SearchField/searchFieldAttributes.js +45 -0
  96. package/lib/cjs/components/SelectField/SelectField.stories.js +2 -41
  97. package/lib/cjs/components/SelectField/selectFieldAttributes.d.ts +1 -0
  98. package/lib/cjs/components/SelectField/selectFieldAttributes.js +61 -0
  99. package/lib/cjs/components/Separator/Separator.stories.js +21 -1
  100. package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
  101. package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.d.ts +33 -0
  102. package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +54 -0
  103. package/lib/cjs/components/SliderField/SliderField.stories.js +2 -38
  104. package/lib/cjs/components/SliderField/sliderFieldAttributes.d.ts +38 -0
  105. package/lib/cjs/components/SliderField/sliderFieldAttributes.js +45 -0
  106. package/lib/cjs/components/StatusIcon/StatusIcon.stories.js +30 -0
  107. package/lib/cjs/components/Table/Table.stories.js +20 -4
  108. package/lib/cjs/components/TableBase/TableBase.stories.js +3 -1
  109. package/lib/cjs/components/TableBase/tableBaseAttributes.d.ts +33 -0
  110. package/lib/cjs/components/TableBase/tableBaseAttributes.js +62 -0
  111. package/lib/cjs/components/Tabs/Tabs.stories.js +2 -18
  112. package/lib/cjs/components/Tabs/tabsAttributes.d.ts +18 -0
  113. package/lib/cjs/components/Tabs/tabsAttributes.js +25 -0
  114. package/lib/cjs/components/Text/Text.stories.js +2 -26
  115. package/lib/cjs/components/Text/textAttributes.d.ts +26 -0
  116. package/lib/cjs/components/Text/textAttributes.js +33 -0
  117. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +2 -41
  118. package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.d.ts +1 -0
  119. package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.js +61 -0
  120. package/lib/cjs/components/TimeField/TimeField.stories.js +2 -1
  121. package/lib/cjs/components/TimeField/timeFieldAttributes.d.ts +89 -0
  122. package/lib/cjs/components/TimeField/timeFieldAttributes.js +132 -0
  123. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +55 -0
  124. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
  125. package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.d.ts +130 -0
  126. package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.js +90 -0
  127. package/lib/cjs/components/TreeView/TreeView.stories.js +61 -1
  128. package/lib/components/AIComponents/AIPanel/AIPanel.stories.js +3 -1
  129. package/lib/components/AIComponents/AIPanel/aiPanelAttributes.js +35 -0
  130. package/lib/components/AIComponents/Prompt/Prompt.stories.js +7 -1
  131. package/lib/components/AIComponents/Response/Response.stories.js +3 -1
  132. package/lib/components/AIComponents/Response/responseAttributes.js +20 -0
  133. package/lib/components/AIComponents/Suggestions/Suggestions.stories.js +18 -1
  134. package/lib/components/AccordionGroup/AccordionGroup.stories.js +4 -23
  135. package/lib/components/AccordionGroup/accordionGroupAttributes.js +22 -0
  136. package/lib/components/ArrayField/ArrayField.stories.js +2 -28
  137. package/lib/components/ArrayField/arrayFieldAttributes.js +39 -0
  138. package/lib/components/AstroProvider/AstroProvider.stories.js +21 -1
  139. package/lib/components/Avatar/Avatar.stories.js +2 -23
  140. package/lib/components/Avatar/avatarAttributes.js +23 -0
  141. package/lib/components/Bracket/Bracket.stories.js +2 -25
  142. package/lib/components/Bracket/bracketAttributes.js +25 -0
  143. package/lib/components/CheckboxField/CheckboxField.stories.js +2 -34
  144. package/lib/components/CheckboxField/checkboxFieldAttributes.js +45 -0
  145. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +13 -12
  146. package/lib/components/CollapsiblePanel/collapsiblePanelAttributes.js +12 -0
  147. package/lib/components/ColorField/ColorField.stories.js +2 -26
  148. package/lib/components/ColorField/colorFieldAttributes.js +37 -0
  149. package/lib/components/DataTable/DataTable.stories.js +2 -101
  150. package/lib/components/DataTable/dataTableAttributes.js +102 -0
  151. package/lib/components/ExpandableText/ExpandableText.stories.js +14 -1
  152. package/lib/components/ExpandableText/expandableTextAttributes.js +26 -0
  153. package/lib/components/Footer/Footer.stories.js +6 -0
  154. package/lib/components/Grid/Grid.stories.js +2 -19
  155. package/lib/components/Grid/gridAttributes.js +19 -0
  156. package/lib/components/IconBadge/IconBadge.stories.js +33 -1
  157. package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +3 -1
  158. package/lib/components/IconButtonToggle/iconButtonToggleAttributes.js +56 -0
  159. package/lib/components/Image/Image.stories.js +2 -16
  160. package/lib/components/Image/imageAttributes.js +16 -0
  161. package/lib/components/Input/Input.stories.js +13 -6
  162. package/lib/components/Input/inputAttributes.js +6 -0
  163. package/lib/components/Label/Label.stories.js +2 -13
  164. package/lib/components/Label/labelAttributes.js +14 -0
  165. package/lib/components/Link/Link.stories.js +2 -33
  166. package/lib/components/Link/linkAttributes.js +33 -0
  167. package/lib/components/ListView/stories/ListViewOnyxDark.stories.js +52 -1
  168. package/lib/components/ListView/stories/listViewOnyxDarkAttributes.js +51 -0
  169. package/lib/components/Modal/Convenience/ModalBody.stories.js +14 -1
  170. package/lib/components/Modal/Convenience/ModalFooter.stories.js +14 -1
  171. package/lib/components/Modal/Convenience/ModalHeader.stories.js +14 -1
  172. package/lib/components/Modal/Convenience/modalBodyAttributes.js +35 -0
  173. package/lib/components/Modal/Convenience/modalFooterAttributes.js +44 -0
  174. package/lib/components/Modal/Convenience/modalHeaderAttributes.js +53 -0
  175. package/lib/components/Modal/Modal.stories.js +13 -56
  176. package/lib/components/Modal/modalAttributes.js +56 -0
  177. package/lib/components/NavBar/NavBar.stories.js +13 -0
  178. package/lib/components/NavBar/navBarAttributes.js +48 -0
  179. package/lib/components/NavBar/stories/NavBar.Onyx.stories.js +14 -1
  180. package/lib/components/NavBar/stories/navBarOnyxAttributes.js +42 -0
  181. package/lib/components/Pagination/Pagination.stories.js +2 -24
  182. package/lib/components/Pagination/paginationAttributes.js +24 -0
  183. package/lib/components/PopoverMenu/PopoverMenu.stories.js +2 -13
  184. package/lib/components/PopoverMenu/popoverMenuAttributes.js +13 -0
  185. package/lib/components/ProgressBar/ProgressBar.stories.js +2 -27
  186. package/lib/components/ProgressBar/progressBarAttributes.js +58 -0
  187. package/lib/components/RadioGroupField/RadioGroupField.stories.js +2 -28
  188. package/lib/components/RadioGroupField/radioGroupFieldAttributes.js +39 -0
  189. package/lib/components/RangeCalendar/RangeCalendar.stories.js +2 -13
  190. package/lib/components/RangeCalendar/rangeCalendarAttributes.js +84 -0
  191. package/lib/components/SearchField/SearchField.stories.js +2 -27
  192. package/lib/components/SearchField/searchFieldAttributes.js +38 -0
  193. package/lib/components/SelectField/SelectField.stories.js +2 -41
  194. package/lib/components/SelectField/selectFieldAttributes.js +54 -0
  195. package/lib/components/Separator/Separator.stories.js +22 -1
  196. package/lib/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
  197. package/lib/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +47 -0
  198. package/lib/components/SliderField/SliderField.stories.js +2 -38
  199. package/lib/components/SliderField/sliderFieldAttributes.js +38 -0
  200. package/lib/components/StatusIcon/StatusIcon.stories.js +31 -0
  201. package/lib/components/Table/Table.stories.js +21 -4
  202. package/lib/components/TableBase/TableBase.stories.js +3 -1
  203. package/lib/components/TableBase/tableBaseAttributes.js +55 -0
  204. package/lib/components/Tabs/Tabs.stories.js +2 -18
  205. package/lib/components/Tabs/tabsAttributes.js +18 -0
  206. package/lib/components/Text/Text.stories.js +2 -26
  207. package/lib/components/Text/textAttributes.js +26 -0
  208. package/lib/components/TextAreaField/TextAreaField.stories.js +2 -41
  209. package/lib/components/TextAreaField/textAreaFieldAttributes.js +54 -0
  210. package/lib/components/TimeField/TimeField.stories.js +2 -1
  211. package/lib/components/TimeField/timeFieldAttributes.js +125 -0
  212. package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +56 -0
  213. package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
  214. package/lib/components/TooltipTrigger/tooltipTriggerAttributes.js +83 -0
  215. package/lib/components/TreeView/TreeView.stories.js +60 -0
  216. package/package.json +1 -1
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.208.3",
3
+ "version": "2.208.4-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",