@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.
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.js +3 -1
- package/lib/cjs/components/AIComponents/AIPanel/aiPanelAttributes.d.ts +17 -0
- package/lib/cjs/components/AIComponents/AIPanel/aiPanelAttributes.js +42 -0
- package/lib/cjs/components/AIComponents/Prompt/Prompt.stories.js +7 -1
- package/lib/cjs/components/AIComponents/Response/Response.stories.js +3 -1
- package/lib/cjs/components/AIComponents/Response/responseAttributes.d.ts +20 -0
- package/lib/cjs/components/AIComponents/Response/responseAttributes.js +27 -0
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.js +17 -1
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +4 -23
- package/lib/cjs/components/AccordionGroup/accordionGroupAttributes.d.ts +21 -0
- package/lib/cjs/components/AccordionGroup/accordionGroupAttributes.js +29 -0
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +2 -28
- package/lib/cjs/components/ArrayField/arrayFieldAttributes.d.ts +99 -0
- package/lib/cjs/components/ArrayField/arrayFieldAttributes.js +46 -0
- package/lib/cjs/components/AstroProvider/AstroProvider.stories.js +21 -1
- package/lib/cjs/components/Avatar/Avatar.stories.js +2 -23
- package/lib/cjs/components/Avatar/avatarAttributes.d.ts +23 -0
- package/lib/cjs/components/Avatar/avatarAttributes.js +30 -0
- package/lib/cjs/components/Bracket/Bracket.stories.js +2 -25
- package/lib/cjs/components/Bracket/bracketAttributes.d.ts +25 -0
- package/lib/cjs/components/Bracket/bracketAttributes.js +32 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +2 -34
- package/lib/cjs/components/CheckboxField/checkboxFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/CheckboxField/checkboxFieldAttributes.js +52 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +12 -12
- package/lib/cjs/components/CollapsiblePanel/collapsiblePanelAttributes.d.ts +12 -0
- package/lib/cjs/components/CollapsiblePanel/collapsiblePanelAttributes.js +19 -0
- package/lib/cjs/components/ColorField/ColorField.stories.js +2 -26
- package/lib/cjs/components/ColorField/colorFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/ColorField/colorFieldAttributes.js +44 -0
- package/lib/cjs/components/DataTable/DataTable.stories.js +3 -101
- package/lib/cjs/components/DataTable/dataTableAttributes.d.ts +162 -0
- package/lib/cjs/components/DataTable/dataTableAttributes.js +109 -0
- package/lib/cjs/components/ExpandableText/ExpandableText.stories.js +13 -1
- package/lib/cjs/components/ExpandableText/expandableTextAttributes.d.ts +26 -0
- package/lib/cjs/components/ExpandableText/expandableTextAttributes.js +33 -0
- package/lib/cjs/components/Footer/Footer.stories.js +6 -0
- package/lib/cjs/components/Grid/Grid.stories.js +2 -19
- package/lib/cjs/components/Grid/gridAttributes.d.ts +19 -0
- package/lib/cjs/components/Grid/gridAttributes.js +26 -0
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +32 -1
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +3 -1
- package/lib/cjs/components/IconButtonToggle/iconButtonToggleAttributes.d.ts +40 -0
- package/lib/cjs/components/IconButtonToggle/iconButtonToggleAttributes.js +63 -0
- package/lib/cjs/components/Image/Image.stories.js +2 -16
- package/lib/cjs/components/Image/imageAttributes.d.ts +15 -0
- package/lib/cjs/components/Image/imageAttributes.js +23 -0
- package/lib/cjs/components/Input/Input.stories.js +12 -6
- package/lib/cjs/components/Input/inputAttributes.d.ts +6 -0
- package/lib/cjs/components/Input/inputAttributes.js +13 -0
- package/lib/cjs/components/Label/Label.stories.js +2 -13
- package/lib/cjs/components/Label/labelAttributes.d.ts +17 -0
- package/lib/cjs/components/Label/labelAttributes.js +21 -0
- package/lib/cjs/components/Link/Link.stories.js +2 -33
- package/lib/cjs/components/Link/linkAttributes.d.ts +28 -0
- package/lib/cjs/components/Link/linkAttributes.js +41 -0
- package/lib/cjs/components/ListView/stories/ListViewOnyxDark.stories.js +51 -1
- package/lib/cjs/components/ListView/stories/listViewOnyxDarkAttributes.d.ts +31 -0
- package/lib/cjs/components/ListView/stories/listViewOnyxDarkAttributes.js +58 -0
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.js +13 -1
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.js +13 -1
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.js +13 -1
- package/lib/cjs/components/Modal/Convenience/modalBodyAttributes.d.ts +21 -0
- package/lib/cjs/components/Modal/Convenience/modalBodyAttributes.js +42 -0
- package/lib/cjs/components/Modal/Convenience/modalFooterAttributes.d.ts +28 -0
- package/lib/cjs/components/Modal/Convenience/modalFooterAttributes.js +51 -0
- package/lib/cjs/components/Modal/Convenience/modalHeaderAttributes.d.ts +35 -0
- package/lib/cjs/components/Modal/Convenience/modalHeaderAttributes.js +60 -0
- package/lib/cjs/components/Modal/Modal.stories.js +13 -58
- package/lib/cjs/components/Modal/modalAttributes.d.ts +55 -0
- package/lib/cjs/components/Modal/modalAttributes.js +63 -0
- package/lib/cjs/components/NavBar/NavBar.stories.js +13 -2
- package/lib/cjs/components/NavBar/navBarAttributes.d.ts +30 -0
- package/lib/cjs/components/NavBar/navBarAttributes.js +55 -0
- package/lib/cjs/components/NavBar/stories/NavBar.Onyx.stories.js +13 -1
- package/lib/cjs/components/NavBar/stories/navBarOnyxAttributes.d.ts +24 -0
- package/lib/cjs/components/NavBar/stories/navBarOnyxAttributes.js +49 -0
- package/lib/cjs/components/Pagination/Pagination.stories.js +2 -24
- package/lib/cjs/components/Pagination/paginationAttributes.d.ts +24 -0
- package/lib/cjs/components/Pagination/paginationAttributes.js +31 -0
- package/lib/cjs/components/PhoneNumberField/PhoneNumberField.d.ts +4 -0
- package/lib/cjs/components/PhoneNumberField/PhoneNumberField.js +299 -0
- package/lib/cjs/components/PhoneNumberField/PhoneNumberField.mdx +32 -0
- package/lib/cjs/components/PhoneNumberField/PhoneNumberField.stories.js +136 -0
- package/lib/cjs/components/PhoneNumberField/PhoneNumberField.test.js +158 -0
- package/lib/cjs/components/PhoneNumberField/index.d.ts +1 -0
- package/lib/cjs/components/PhoneNumberField/index.js +14 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +2 -13
- package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.d.ts +13 -0
- package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.js +20 -0
- package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +2 -27
- package/lib/cjs/components/ProgressBar/progressBarAttributes.d.ts +42 -0
- package/lib/cjs/components/ProgressBar/progressBarAttributes.js +65 -0
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +2 -28
- package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.js +46 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +4 -13
- package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.d.ts +121 -0
- package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.js +91 -0
- package/lib/cjs/components/SearchField/SearchField.stories.js +2 -27
- package/lib/cjs/components/SearchField/searchFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/SearchField/searchFieldAttributes.js +45 -0
- package/lib/cjs/components/SelectField/SelectField.stories.js +2 -41
- package/lib/cjs/components/SelectField/selectFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/SelectField/selectFieldAttributes.js +61 -0
- package/lib/cjs/components/Separator/Separator.stories.js +21 -1
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
- package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.d.ts +33 -0
- package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +54 -0
- package/lib/cjs/components/SliderField/SliderField.stories.js +2 -38
- package/lib/cjs/components/SliderField/sliderFieldAttributes.d.ts +38 -0
- package/lib/cjs/components/SliderField/sliderFieldAttributes.js +45 -0
- package/lib/cjs/components/StatusIcon/StatusIcon.stories.js +30 -0
- package/lib/cjs/components/Table/Table.stories.js +20 -4
- package/lib/cjs/components/TableBase/TableBase.stories.js +3 -1
- package/lib/cjs/components/TableBase/tableBaseAttributes.d.ts +33 -0
- package/lib/cjs/components/TableBase/tableBaseAttributes.js +62 -0
- package/lib/cjs/components/Tabs/Tabs.stories.js +2 -18
- package/lib/cjs/components/Tabs/tabsAttributes.d.ts +18 -0
- package/lib/cjs/components/Tabs/tabsAttributes.js +25 -0
- package/lib/cjs/components/Text/Text.stories.js +2 -26
- package/lib/cjs/components/Text/textAttributes.d.ts +26 -0
- package/lib/cjs/components/Text/textAttributes.js +33 -0
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +2 -41
- package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.js +61 -0
- package/lib/cjs/components/TimeField/TimeField.stories.js +2 -1
- package/lib/cjs/components/TimeField/timeFieldAttributes.d.ts +89 -0
- package/lib/cjs/components/TimeField/timeFieldAttributes.js +132 -0
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +55 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
- package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.d.ts +130 -0
- package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.js +90 -0
- package/lib/cjs/components/TreeView/TreeView.stories.js +61 -1
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +56 -37
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +32 -21
- package/lib/cjs/types/phoneNumberField.d.ts +45 -0
- package/lib/cjs/types/phoneNumberField.js +6 -0
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +3 -0
- package/lib/cjs/utils/testUtils/universalFormSubmitTest.js +25 -11
- package/lib/components/AIComponents/AIPanel/AIPanel.stories.js +3 -1
- package/lib/components/AIComponents/AIPanel/aiPanelAttributes.js +35 -0
- package/lib/components/AIComponents/Prompt/Prompt.stories.js +7 -1
- package/lib/components/AIComponents/Response/Response.stories.js +3 -1
- package/lib/components/AIComponents/Response/responseAttributes.js +20 -0
- package/lib/components/AIComponents/Suggestions/Suggestions.stories.js +18 -1
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +4 -23
- package/lib/components/AccordionGroup/accordionGroupAttributes.js +22 -0
- package/lib/components/ArrayField/ArrayField.stories.js +2 -28
- package/lib/components/ArrayField/arrayFieldAttributes.js +39 -0
- package/lib/components/AstroProvider/AstroProvider.stories.js +21 -1
- package/lib/components/Avatar/Avatar.stories.js +2 -23
- package/lib/components/Avatar/avatarAttributes.js +23 -0
- package/lib/components/Bracket/Bracket.stories.js +2 -25
- package/lib/components/Bracket/bracketAttributes.js +25 -0
- package/lib/components/CheckboxField/CheckboxField.stories.js +2 -34
- package/lib/components/CheckboxField/checkboxFieldAttributes.js +45 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +13 -12
- package/lib/components/CollapsiblePanel/collapsiblePanelAttributes.js +12 -0
- package/lib/components/ColorField/ColorField.stories.js +2 -26
- package/lib/components/ColorField/colorFieldAttributes.js +37 -0
- package/lib/components/DataTable/DataTable.stories.js +2 -101
- package/lib/components/DataTable/dataTableAttributes.js +102 -0
- package/lib/components/ExpandableText/ExpandableText.stories.js +14 -1
- package/lib/components/ExpandableText/expandableTextAttributes.js +26 -0
- package/lib/components/Footer/Footer.stories.js +6 -0
- package/lib/components/Grid/Grid.stories.js +2 -19
- package/lib/components/Grid/gridAttributes.js +19 -0
- package/lib/components/IconBadge/IconBadge.stories.js +33 -1
- package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +3 -1
- package/lib/components/IconButtonToggle/iconButtonToggleAttributes.js +56 -0
- package/lib/components/Image/Image.stories.js +2 -16
- package/lib/components/Image/imageAttributes.js +16 -0
- package/lib/components/Input/Input.stories.js +13 -6
- package/lib/components/Input/inputAttributes.js +6 -0
- package/lib/components/Label/Label.stories.js +2 -13
- package/lib/components/Label/labelAttributes.js +14 -0
- package/lib/components/Link/Link.stories.js +2 -33
- package/lib/components/Link/linkAttributes.js +33 -0
- package/lib/components/ListView/stories/ListViewOnyxDark.stories.js +52 -1
- package/lib/components/ListView/stories/listViewOnyxDarkAttributes.js +51 -0
- package/lib/components/Modal/Convenience/ModalBody.stories.js +14 -1
- package/lib/components/Modal/Convenience/ModalFooter.stories.js +14 -1
- package/lib/components/Modal/Convenience/ModalHeader.stories.js +14 -1
- package/lib/components/Modal/Convenience/modalBodyAttributes.js +35 -0
- package/lib/components/Modal/Convenience/modalFooterAttributes.js +44 -0
- package/lib/components/Modal/Convenience/modalHeaderAttributes.js +53 -0
- package/lib/components/Modal/Modal.stories.js +13 -56
- package/lib/components/Modal/modalAttributes.js +56 -0
- package/lib/components/NavBar/NavBar.stories.js +13 -0
- package/lib/components/NavBar/navBarAttributes.js +48 -0
- package/lib/components/NavBar/stories/NavBar.Onyx.stories.js +14 -1
- package/lib/components/NavBar/stories/navBarOnyxAttributes.js +42 -0
- package/lib/components/Pagination/Pagination.stories.js +2 -24
- package/lib/components/Pagination/paginationAttributes.js +24 -0
- package/lib/components/PhoneNumberField/PhoneNumberField.js +288 -0
- package/lib/components/PhoneNumberField/PhoneNumberField.mdx +32 -0
- package/lib/components/PhoneNumberField/PhoneNumberField.stories.js +126 -0
- package/lib/components/PhoneNumberField/PhoneNumberField.test.js +155 -0
- package/lib/components/PhoneNumberField/index.js +1 -0
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +2 -13
- package/lib/components/PopoverMenu/popoverMenuAttributes.js +13 -0
- package/lib/components/ProgressBar/ProgressBar.stories.js +2 -27
- package/lib/components/ProgressBar/progressBarAttributes.js +58 -0
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +2 -28
- package/lib/components/RadioGroupField/radioGroupFieldAttributes.js +39 -0
- package/lib/components/RangeCalendar/RangeCalendar.stories.js +2 -13
- package/lib/components/RangeCalendar/rangeCalendarAttributes.js +84 -0
- package/lib/components/SearchField/SearchField.stories.js +2 -27
- package/lib/components/SearchField/searchFieldAttributes.js +38 -0
- package/lib/components/SelectField/SelectField.stories.js +2 -41
- package/lib/components/SelectField/selectFieldAttributes.js +54 -0
- package/lib/components/Separator/Separator.stories.js +22 -1
- package/lib/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
- package/lib/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +47 -0
- package/lib/components/SliderField/SliderField.stories.js +2 -38
- package/lib/components/SliderField/sliderFieldAttributes.js +38 -0
- package/lib/components/StatusIcon/StatusIcon.stories.js +31 -0
- package/lib/components/Table/Table.stories.js +21 -4
- package/lib/components/TableBase/TableBase.stories.js +3 -1
- package/lib/components/TableBase/tableBaseAttributes.js +55 -0
- package/lib/components/Tabs/Tabs.stories.js +2 -18
- package/lib/components/Tabs/tabsAttributes.js +18 -0
- package/lib/components/Text/Text.stories.js +2 -26
- package/lib/components/Text/textAttributes.js +26 -0
- package/lib/components/TextAreaField/TextAreaField.stories.js +2 -41
- package/lib/components/TextAreaField/textAreaFieldAttributes.js +54 -0
- package/lib/components/TimeField/TimeField.stories.js +2 -1
- package/lib/components/TimeField/timeFieldAttributes.js +125 -0
- package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +56 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
- package/lib/components/TooltipTrigger/tooltipTriggerAttributes.js +83 -0
- package/lib/components/TreeView/TreeView.stories.js +60 -0
- package/lib/index.js +2 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/types/index.js +1 -0
- package/lib/types/phoneNumberField.js +1 -0
- package/lib/utils/designUtils/figmaLinks.js +3 -0
- package/lib/utils/testUtils/universalFormSubmitTest.js +25 -11
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
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 { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
|
14
|
+
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
|
15
|
+
export var checkboxFieldArgTypes = _objectSpread(_objectSpread(_objectSpread({
|
|
16
|
+
label: {
|
|
17
|
+
control: {
|
|
18
|
+
type: 'text'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
helperText: {
|
|
22
|
+
control: {
|
|
23
|
+
type: 'text'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
hintText: {
|
|
27
|
+
control: {
|
|
28
|
+
type: 'text'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
name: {},
|
|
32
|
+
id: {
|
|
33
|
+
control: {
|
|
34
|
+
type: 'text'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
value: {},
|
|
38
|
+
isRequired: {},
|
|
39
|
+
isDisabled: {},
|
|
40
|
+
isReadOnly: {},
|
|
41
|
+
hasAutoFocus: {},
|
|
42
|
+
isIndeterminate: {},
|
|
43
|
+
isDefaultSelected: {},
|
|
44
|
+
isSelected: {}
|
|
45
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes);
|
|
@@ -1,9 +1,21 @@
|
|
|
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 _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
10
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
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; }
|
|
2
13
|
import React from 'react';
|
|
3
14
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
4
15
|
import { CollapsiblePanel } from '../../index';
|
|
5
16
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
6
17
|
import CollapsiblePanelReadme from './CollapsiblePanel.mdx';
|
|
18
|
+
import { collapsiblePanelArgTypes } from './collapsiblePanelAttributes';
|
|
7
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
8
20
|
export default {
|
|
9
21
|
title: 'Components/CollapsiblePanel',
|
|
@@ -15,18 +27,7 @@ export default {
|
|
|
15
27
|
}
|
|
16
28
|
}
|
|
17
29
|
},
|
|
18
|
-
argTypes: {
|
|
19
|
-
listTitle: {},
|
|
20
|
-
openAriaLabel: {},
|
|
21
|
-
closeAriaLabel: {},
|
|
22
|
-
isDefaultOpen: {},
|
|
23
|
-
isOpen: {
|
|
24
|
-
onClick: {
|
|
25
|
-
action: 'clicked'
|
|
26
|
-
},
|
|
27
|
-
control: false
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
+
argTypes: _objectSpread({}, collapsiblePanelArgTypes),
|
|
30
31
|
args: {
|
|
31
32
|
listTitle: '',
|
|
32
33
|
openAriaLabel: 'Open filter menu?',
|
|
@@ -15,10 +15,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _co
|
|
|
15
15
|
import React, { useCallback, useState } from 'react';
|
|
16
16
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
17
17
|
import { ColorField, OverlayProvider } from '../../index';
|
|
18
|
-
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
19
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
|
20
|
-
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
|
21
18
|
import ColorFieldReadme from './ColorField.mdx';
|
|
19
|
+
import { colorFieldArgTypes } from './colorFieldAttributes';
|
|
22
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
21
|
export default {
|
|
24
22
|
title: 'Form/ColorField',
|
|
@@ -30,29 +28,7 @@ export default {
|
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
30
|
},
|
|
33
|
-
argTypes: _objectSpread(
|
|
34
|
-
value: {
|
|
35
|
-
control: {
|
|
36
|
-
type: 'text'
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
label: {
|
|
40
|
-
control: {
|
|
41
|
-
type: 'text'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
helperText: {
|
|
45
|
-
control: {
|
|
46
|
-
type: 'text'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
buttonProps: {
|
|
50
|
-
control: false
|
|
51
|
-
},
|
|
52
|
-
containerProps: {
|
|
53
|
-
control: false
|
|
54
|
-
}
|
|
55
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
|
31
|
+
argTypes: _objectSpread({}, colorFieldArgTypes),
|
|
56
32
|
args: {
|
|
57
33
|
label: 'Color Field',
|
|
58
34
|
buttonProps: {
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
|
14
|
+
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
|
15
|
+
export var colorFieldArgTypes = _objectSpread(_objectSpread(_objectSpread({
|
|
16
|
+
value: {
|
|
17
|
+
control: {
|
|
18
|
+
type: 'text'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
control: {
|
|
23
|
+
type: 'text'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
helperText: {
|
|
27
|
+
control: {
|
|
28
|
+
type: 'text'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
buttonProps: {
|
|
32
|
+
control: false
|
|
33
|
+
},
|
|
34
|
+
containerProps: {
|
|
35
|
+
control: false
|
|
36
|
+
}
|
|
37
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes);
|
|
@@ -1,10 +1,3 @@
|
|
|
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
1
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
2
|
import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
|
|
10
3
|
import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
|
|
@@ -19,7 +12,6 @@ import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
|
|
19
12
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
20
13
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
|
21
14
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
22
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
23
15
|
import _Number$isNaN from "@babel/runtime-corejs3/core-js-stable/number/is-nan";
|
|
24
16
|
import _parseFloat from "@babel/runtime-corejs3/core-js-stable/parse-float";
|
|
25
17
|
import _sortInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/sort";
|
|
@@ -34,8 +26,6 @@ function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c
|
|
|
34
26
|
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof _Symbol ? _Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = _Object$create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: _bindInstanceProperty(d).call(d, e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = _Object$getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(c); function f(e) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = _Object$create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
35
27
|
function _regeneratorDefine2(e, r, n, t) { var i = _Object$defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
36
28
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
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 _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39
29
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
40
30
|
import { useAsyncList } from 'react-stately';
|
|
41
31
|
import { useCollator } from '@react-aria/i18n';
|
|
@@ -45,8 +35,8 @@ import { getAllUsers } from '../../api/users';
|
|
|
45
35
|
import { Box, DataTable, DataTableBadge, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableRow } from '../../index';
|
|
46
36
|
import { LIMIT } from '../../mocks/constants';
|
|
47
37
|
import loadingStates from '../../utils/devUtils/constants/loadingStates';
|
|
48
|
-
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
49
38
|
import DataTableReadme from './DataTable.mdx';
|
|
39
|
+
import { dataTableArgTypes } from './dataTableAttributes';
|
|
50
40
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
51
41
|
export default {
|
|
52
42
|
title: 'Components/DataTable',
|
|
@@ -58,96 +48,7 @@ export default {
|
|
|
58
48
|
}
|
|
59
49
|
}
|
|
60
50
|
},
|
|
61
|
-
argTypes:
|
|
62
|
-
density: {
|
|
63
|
-
control: {
|
|
64
|
-
disable: true
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
overflowMode: {
|
|
68
|
-
control: {
|
|
69
|
-
disable: true
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
selectedKeys: {
|
|
73
|
-
description: 'The array of keys that is currently selected. (Controlled version).',
|
|
74
|
-
control: {
|
|
75
|
-
disable: true
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
disabledKeys: {
|
|
79
|
-
description: 'The array of keys that are unabled to be selected.',
|
|
80
|
-
control: {
|
|
81
|
-
disable: true
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
defaultSelectedKeys: {
|
|
85
|
-
description: 'The array of keys that is selected by default. (Uncontrolled version).',
|
|
86
|
-
control: {
|
|
87
|
-
disable: true
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
onSelectionChange: {
|
|
91
|
-
description: 'A callback function that fires when the selection changes.',
|
|
92
|
-
control: {
|
|
93
|
-
disable: true
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
selectionMode: {
|
|
97
|
-
description: 'Options are "none" and "single". Whether or not the DataTable support selection',
|
|
98
|
-
control: {
|
|
99
|
-
disable: true
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
width: {
|
|
103
|
-
description: 'Sets the width of the data table.',
|
|
104
|
-
control: {
|
|
105
|
-
disable: true
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
height: {
|
|
109
|
-
description: 'Sets the height of the data table.',
|
|
110
|
-
control: {
|
|
111
|
-
disable: true
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
sortDescriptor: {
|
|
115
|
-
description: 'Defines the current column key to sort by and the sort direction.',
|
|
116
|
-
control: {
|
|
117
|
-
disable: true
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
onSortChange: {
|
|
121
|
-
description: 'Callback function that fires when sortable column header is pressed.'
|
|
122
|
-
},
|
|
123
|
-
allowsSorting: {
|
|
124
|
-
description: 'Determine if the column supports sorting.',
|
|
125
|
-
control: {
|
|
126
|
-
disable: true
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
hideHeader: {
|
|
130
|
-
description: 'Determine if the header should be hidden.',
|
|
131
|
-
control: {
|
|
132
|
-
disable: true
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
loadingState: {
|
|
136
|
-
description: 'Reflects current loading state.',
|
|
137
|
-
control: {
|
|
138
|
-
disable: true
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
onLoadMore: {
|
|
142
|
-
description: 'Callback function that fires when more data should be loaded on demand as user scrolls.'
|
|
143
|
-
},
|
|
144
|
-
items: {
|
|
145
|
-
control: {
|
|
146
|
-
disable: true
|
|
147
|
-
},
|
|
148
|
-
description: 'The list of DataTable items.'
|
|
149
|
-
}
|
|
150
|
-
}, ariaAttributeBaseArgTypes),
|
|
51
|
+
argTypes: dataTableArgTypes,
|
|
151
52
|
args: {
|
|
152
53
|
density: 'spacious',
|
|
153
54
|
overflowMode: 'truncate'
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
export var dataTableArgTypes = _objectSpread({
|
|
14
|
+
density: {
|
|
15
|
+
control: {
|
|
16
|
+
disable: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
overflowMode: {
|
|
20
|
+
control: {
|
|
21
|
+
disable: true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
selectedKeys: {
|
|
25
|
+
description: 'The array of keys that is currently selected. (Controlled version).',
|
|
26
|
+
control: {
|
|
27
|
+
disable: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
disabledKeys: {
|
|
31
|
+
description: 'The array of keys that are unabled to be selected.',
|
|
32
|
+
control: {
|
|
33
|
+
disable: true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultSelectedKeys: {
|
|
37
|
+
description: 'The array of keys that is selected by default. (Uncontrolled version).',
|
|
38
|
+
control: {
|
|
39
|
+
disable: true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
onSelectionChange: {
|
|
43
|
+
description: 'A callback function that fires when the selection changes.',
|
|
44
|
+
control: {
|
|
45
|
+
disable: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
selectionMode: {
|
|
49
|
+
description: 'Options are "none" and "single". Whether or not the DataTable support selection',
|
|
50
|
+
control: {
|
|
51
|
+
disable: true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
width: {
|
|
55
|
+
description: 'Sets the width of the data table.',
|
|
56
|
+
control: {
|
|
57
|
+
disable: true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
height: {
|
|
61
|
+
description: 'Sets the height of the data table.',
|
|
62
|
+
control: {
|
|
63
|
+
disable: true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
sortDescriptor: {
|
|
67
|
+
description: 'Defines the current column key to sort by and the sort direction.',
|
|
68
|
+
control: {
|
|
69
|
+
disable: true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
onSortChange: {
|
|
73
|
+
description: 'Callback function that fires when sortable column header is pressed.'
|
|
74
|
+
},
|
|
75
|
+
allowsSorting: {
|
|
76
|
+
description: 'Determine if the column supports sorting.',
|
|
77
|
+
control: {
|
|
78
|
+
disable: true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
hideHeader: {
|
|
82
|
+
description: 'Determine if the header should be hidden.',
|
|
83
|
+
control: {
|
|
84
|
+
disable: true
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
loadingState: {
|
|
88
|
+
description: 'Reflects current loading state.',
|
|
89
|
+
control: {
|
|
90
|
+
disable: true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
onLoadMore: {
|
|
94
|
+
description: 'Callback function that fires when more data should be loaded on demand as user scrolls.'
|
|
95
|
+
},
|
|
96
|
+
items: {
|
|
97
|
+
control: {
|
|
98
|
+
disable: true
|
|
99
|
+
},
|
|
100
|
+
description: 'The list of DataTable items.'
|
|
101
|
+
}
|
|
102
|
+
}, ariaAttributeBaseArgTypes);
|
|
@@ -1,7 +1,19 @@
|
|
|
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; }
|
|
1
12
|
import React from 'react';
|
|
2
13
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
3
14
|
import { ExpandableText } from '../../index';
|
|
4
15
|
import ExpandableTextReadMe from './ExpandableText.mdx';
|
|
16
|
+
import { expandableTextArgTypes } from './expandableTextAttributes';
|
|
5
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
6
18
|
export default {
|
|
7
19
|
title: 'Experimental/ ExpandableText',
|
|
@@ -12,7 +24,8 @@ export default {
|
|
|
12
24
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ExpandableTextReadMe, null), ___EmotionJSX(DocsLayout, null));
|
|
13
25
|
}
|
|
14
26
|
}
|
|
15
|
-
}
|
|
27
|
+
},
|
|
28
|
+
argTypes: _objectSpread({}, expandableTextArgTypes)
|
|
16
29
|
};
|
|
17
30
|
export var Default = function Default(args) {
|
|
18
31
|
return ___EmotionJSX(ExpandableText, {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export var expandableTextArgTypes = {
|
|
2
|
+
maxLines: {
|
|
3
|
+
control: {
|
|
4
|
+
type: 'number'
|
|
5
|
+
},
|
|
6
|
+
description: 'The maximum number of lines to display before the text is truncated.'
|
|
7
|
+
},
|
|
8
|
+
className: {
|
|
9
|
+
control: {
|
|
10
|
+
type: 'text'
|
|
11
|
+
},
|
|
12
|
+
description: 'Additional CSS class name to apply to the component.'
|
|
13
|
+
},
|
|
14
|
+
children: {
|
|
15
|
+
control: {
|
|
16
|
+
type: null
|
|
17
|
+
},
|
|
18
|
+
description: 'The text content to display, which may be truncated based on maxLines.'
|
|
19
|
+
},
|
|
20
|
+
buttonProps: {
|
|
21
|
+
control: {
|
|
22
|
+
type: null
|
|
23
|
+
},
|
|
24
|
+
description: 'Props to pass to the expand/collapse toggle button.'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
@@ -19,6 +19,12 @@ export default {
|
|
|
19
19
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(FooterReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
},
|
|
23
|
+
argTypes: {
|
|
24
|
+
children: {
|
|
25
|
+
control: undefined,
|
|
26
|
+
description: 'Content rendered inside the footer.'
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
};
|
|
24
30
|
var legalLinks = [{
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
4
4
|
import { Box, Grid, Text } from '../../index';
|
|
5
5
|
import GridReadme from './Grid.mdx';
|
|
6
|
+
import { gridArgTypes } from './gridAttributes';
|
|
6
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
8
|
export default {
|
|
8
9
|
title: 'Components/Grid',
|
|
@@ -14,25 +15,7 @@ export default {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
|
-
argTypes:
|
|
18
|
-
repeat: {
|
|
19
|
-
options: ['fit', 'fill'],
|
|
20
|
-
control: {
|
|
21
|
-
type: 'select'
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
gap: {
|
|
25
|
-
control: {
|
|
26
|
-
type: 'number'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
width: {
|
|
30
|
-
control: false
|
|
31
|
-
},
|
|
32
|
-
columns: {
|
|
33
|
-
control: false
|
|
34
|
-
}
|
|
35
|
-
}
|
|
18
|
+
argTypes: gridArgTypes
|
|
36
19
|
};
|
|
37
20
|
export var Default = function Default(args) {
|
|
38
21
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Text, {
|
|
@@ -1,4 +1,15 @@
|
|
|
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 _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
10
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
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; }
|
|
2
13
|
import React from 'react';
|
|
3
14
|
import GroupIcon from '@pingux/mdi-react/AccountGroupIcon';
|
|
4
15
|
import ArrowIcon from '@pingux/mdi-react/ArrowTopRightThickIcon';
|
|
@@ -6,6 +17,7 @@ import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
|
6
17
|
import { useGetTheme } from '../../hooks';
|
|
7
18
|
import { Box, Icon, IconBadge } from '../../index';
|
|
8
19
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
20
|
+
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
9
21
|
import IconBadgeReadme from './IconBadge.mdx';
|
|
10
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
23
|
export default {
|
|
@@ -17,7 +29,27 @@ export default {
|
|
|
17
29
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconBadgeReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
18
30
|
}
|
|
19
31
|
}
|
|
20
|
-
}
|
|
32
|
+
},
|
|
33
|
+
argTypes: _objectSpread({
|
|
34
|
+
baseSize: {
|
|
35
|
+
description: 'The size of the base icon; number values are converted to pixels.',
|
|
36
|
+
control: {
|
|
37
|
+
type: 'text'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
circleColor: {
|
|
41
|
+
description: 'Color applied to the circular background; defaults to white.',
|
|
42
|
+
control: {
|
|
43
|
+
type: 'text'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
circleSize: {
|
|
47
|
+
description: 'The size of the icon rendered inside the circle; number values are converted to pixels.',
|
|
48
|
+
control: {
|
|
49
|
+
type: 'number'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, ariaAttributeBaseArgTypes)
|
|
21
53
|
};
|
|
22
54
|
export var Default = function Default(args) {
|
|
23
55
|
var _useGetTheme = useGetTheme(),
|
|
@@ -6,6 +6,7 @@ import EyeIcon from '@pingux/mdi-react/EyeOutlineIcon';
|
|
|
6
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
7
7
|
import { IconButtonToggle } from '../../index';
|
|
8
8
|
import IconButtonToggleReadme from './IconButtonToggle.mdx';
|
|
9
|
+
import { iconButtonToggleArgTypes } from './iconButtonToggleAttributes';
|
|
9
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
11
|
export default {
|
|
11
12
|
title: 'Components/IconButtonToggle',
|
|
@@ -16,7 +17,8 @@ export default {
|
|
|
16
17
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconButtonToggleReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
}
|
|
20
|
+
},
|
|
21
|
+
argTypes: iconButtonToggleArgTypes
|
|
20
22
|
};
|
|
21
23
|
export var Default = function Default(args) {
|
|
22
24
|
return ___EmotionJSX(IconButtonToggle, _extends({}, args, {
|