@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
|
@@ -20,9 +20,8 @@ import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
|
20
20
|
import { useDebounce, useGetTheme } from '../../hooks';
|
|
21
21
|
import { Box, Icon, IconButton, Item, SearchField, Text } from '../../index';
|
|
22
22
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
23
|
-
import { ariaAttributeBaseArgTypes, ariaAttributeBaseDocSettings } from '../../utils/docUtils/ariaAttributes';
|
|
24
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
|
25
23
|
import SearchFieldReadme from './SearchField.mdx';
|
|
24
|
+
import { searchFieldArgTypes } from './searchFieldAttributes';
|
|
26
25
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
27
26
|
export default {
|
|
28
27
|
title: 'Form/SearchField',
|
|
@@ -34,31 +33,7 @@ export default {
|
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
|
-
argTypes: _objectSpread(
|
|
38
|
-
label: {
|
|
39
|
-
control: {
|
|
40
|
-
type: 'text'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
placeholder: {},
|
|
44
|
-
defaultValue: {},
|
|
45
|
-
icon: {
|
|
46
|
-
control: false
|
|
47
|
-
},
|
|
48
|
-
isDisabled: {},
|
|
49
|
-
hasAutoFocus: {},
|
|
50
|
-
hasNoClearButton: {},
|
|
51
|
-
autoComplete: {},
|
|
52
|
-
iconProps: {},
|
|
53
|
-
name: {},
|
|
54
|
-
id: {},
|
|
55
|
-
'aria-autocomplete': {
|
|
56
|
-
table: ariaAttributeBaseDocSettings.table
|
|
57
|
-
},
|
|
58
|
-
value: {
|
|
59
|
-
control: false
|
|
60
|
-
}
|
|
61
|
-
}, ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
|
36
|
+
argTypes: _objectSpread({}, searchFieldArgTypes),
|
|
62
37
|
args: {
|
|
63
38
|
placeholder: 'Search',
|
|
64
39
|
'aria-label': 'Search Field'
|
|
@@ -0,0 +1,38 @@
|
|
|
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, ariaAttributeBaseDocSettings } from '../../utils/docUtils/ariaAttributes';
|
|
13
|
+
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
|
14
|
+
export var searchFieldArgTypes = _objectSpread(_objectSpread({
|
|
15
|
+
label: {
|
|
16
|
+
control: {
|
|
17
|
+
type: 'text'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
placeholder: {},
|
|
21
|
+
defaultValue: {},
|
|
22
|
+
icon: {
|
|
23
|
+
control: false
|
|
24
|
+
},
|
|
25
|
+
isDisabled: {},
|
|
26
|
+
hasAutoFocus: {},
|
|
27
|
+
hasNoClearButton: {},
|
|
28
|
+
autoComplete: {},
|
|
29
|
+
iconProps: {},
|
|
30
|
+
name: {},
|
|
31
|
+
id: {},
|
|
32
|
+
'aria-autocomplete': {
|
|
33
|
+
table: ariaAttributeBaseDocSettings.table
|
|
34
|
+
},
|
|
35
|
+
value: {
|
|
36
|
+
control: false
|
|
37
|
+
}
|
|
38
|
+
}, ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes);
|
|
@@ -43,10 +43,8 @@ import { getAllUsers } from '../../api/users';
|
|
|
43
43
|
import { Icon, Item, Section, SelectField } from '../../index';
|
|
44
44
|
import { LIMIT } from '../../mocks/constants';
|
|
45
45
|
import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
|
|
46
|
-
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
47
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
|
48
|
-
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
|
49
46
|
import SelectFieldReadme from './SelectField.mdx';
|
|
47
|
+
import { selectFieldArgTypes } from './selectFieldAttributes';
|
|
50
48
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
51
49
|
var animals = [{
|
|
52
50
|
name: 'Aardvark',
|
|
@@ -135,44 +133,7 @@ export default {
|
|
|
135
133
|
}
|
|
136
134
|
}
|
|
137
135
|
},
|
|
138
|
-
argTypes: _objectSpread(
|
|
139
|
-
label: {
|
|
140
|
-
control: {
|
|
141
|
-
type: 'text'
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
placeholder: {},
|
|
145
|
-
defaultText: {},
|
|
146
|
-
helperText: {
|
|
147
|
-
control: {
|
|
148
|
-
type: 'text'
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
hintText: {
|
|
152
|
-
control: {
|
|
153
|
-
type: 'text'
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
labelMode: {
|
|
157
|
-
control: {
|
|
158
|
-
type: 'select',
|
|
159
|
-
options: _Object$values(labelModes)
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
defaultSelectedKey: {},
|
|
163
|
-
disabledKeys: {},
|
|
164
|
-
name: {},
|
|
165
|
-
align: {},
|
|
166
|
-
direction: {},
|
|
167
|
-
hasNoEmptySelection: {},
|
|
168
|
-
isDefaultOpen: {},
|
|
169
|
-
isDisabled: {},
|
|
170
|
-
isOpen: {},
|
|
171
|
-
isRequired: {},
|
|
172
|
-
selectedKey: {
|
|
173
|
-
control: false
|
|
174
|
-
}
|
|
175
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
|
136
|
+
argTypes: _objectSpread({}, selectFieldArgTypes),
|
|
176
137
|
args: {
|
|
177
138
|
label: 'Example Label',
|
|
178
139
|
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 selectFieldArgTypes = _objectSpread(_objectSpread(_objectSpread({
|
|
18
|
+
label: {
|
|
19
|
+
control: {
|
|
20
|
+
type: 'text'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
placeholder: {},
|
|
24
|
+
defaultText: {},
|
|
25
|
+
helperText: {
|
|
26
|
+
control: {
|
|
27
|
+
type: 'text'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
hintText: {
|
|
31
|
+
control: {
|
|
32
|
+
type: 'text'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
labelMode: {
|
|
36
|
+
control: {
|
|
37
|
+
type: 'select',
|
|
38
|
+
options: _Object$values(labelModes)
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultSelectedKey: {},
|
|
42
|
+
disabledKeys: {},
|
|
43
|
+
name: {},
|
|
44
|
+
align: {},
|
|
45
|
+
direction: {},
|
|
46
|
+
hasNoEmptySelection: {},
|
|
47
|
+
isDefaultOpen: {},
|
|
48
|
+
isDisabled: {},
|
|
49
|
+
isOpen: {},
|
|
50
|
+
isRequired: {},
|
|
51
|
+
selectedKey: {
|
|
52
|
+
control: false
|
|
53
|
+
}
|
|
54
|
+
}, 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 _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
|
|
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 { Box, Separator } from '../../index';
|
|
6
17
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
18
|
+
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
7
19
|
import SeparatorReadme from './Separator.mdx';
|
|
8
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
9
21
|
export default {
|
|
@@ -15,7 +27,16 @@ export default {
|
|
|
15
27
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(SeparatorReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
16
28
|
}
|
|
17
29
|
}
|
|
18
|
-
}
|
|
30
|
+
},
|
|
31
|
+
argTypes: _objectSpread({
|
|
32
|
+
orientation: {
|
|
33
|
+
control: {
|
|
34
|
+
type: 'select',
|
|
35
|
+
description: 'Sets the orientation of the separator line.'
|
|
36
|
+
},
|
|
37
|
+
options: ['horizontal', 'vertical']
|
|
38
|
+
}
|
|
39
|
+
}, ariaAttributeBaseArgTypes)
|
|
19
40
|
};
|
|
20
41
|
export var Default = function Default(_ref) {
|
|
21
42
|
var args = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
@@ -6,6 +6,7 @@ import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
|
6
6
|
import { Box, Button, ServerErrorBoundary, Text } from '../../index';
|
|
7
7
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
8
8
|
import ServerErrorBoundaryReadme from './ServerErrorBoundary.mdx';
|
|
9
|
+
import { serverErrorBoundaryArgTypes } from './serverErrorBoundaryAttributes';
|
|
9
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
11
|
export default {
|
|
11
12
|
title: 'Components/ServerErrorBoundary',
|
|
@@ -17,6 +18,7 @@ export default {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
},
|
|
21
|
+
argTypes: serverErrorBoundaryArgTypes,
|
|
20
22
|
args: {
|
|
21
23
|
hasServerError: true
|
|
22
24
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 } from '../../utils/docUtils/docArgTypes';
|
|
13
|
+
export var serverErrorBoundaryArgTypes = {
|
|
14
|
+
hasServerError: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
15
|
+
description: 'When true, the error boundary renders the error UI instead of its children.'
|
|
16
|
+
}),
|
|
17
|
+
text: {
|
|
18
|
+
control: {
|
|
19
|
+
type: 'text'
|
|
20
|
+
},
|
|
21
|
+
description: 'Custom text message to display in the error UI.'
|
|
22
|
+
},
|
|
23
|
+
iconProps: {
|
|
24
|
+
control: {
|
|
25
|
+
type: null
|
|
26
|
+
},
|
|
27
|
+
description: 'Props passed to the error icon.'
|
|
28
|
+
},
|
|
29
|
+
buttonProps: {
|
|
30
|
+
control: {
|
|
31
|
+
type: null
|
|
32
|
+
},
|
|
33
|
+
description: 'Props passed to the action button displayed in the error UI.'
|
|
34
|
+
},
|
|
35
|
+
renderElement: {
|
|
36
|
+
control: {
|
|
37
|
+
type: null
|
|
38
|
+
},
|
|
39
|
+
description: 'Custom element to render in place of the default error UI.'
|
|
40
|
+
},
|
|
41
|
+
children: {
|
|
42
|
+
control: {
|
|
43
|
+
type: null
|
|
44
|
+
},
|
|
45
|
+
description: 'Content rendered when there is no server error.'
|
|
46
|
+
}
|
|
47
|
+
};
|
|
@@ -5,6 +5,7 @@ import React, { useState } from 'react';
|
|
|
5
5
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
6
6
|
import { Label, SliderField } from '../../index';
|
|
7
7
|
import SliderFieldReadme from './SliderField.mdx';
|
|
8
|
+
import { sliderFieldArgTypes } from './sliderFieldAttributes';
|
|
8
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
9
10
|
export default {
|
|
10
11
|
title: 'Form/SliderField',
|
|
@@ -16,44 +17,7 @@ export default {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
|
-
argTypes:
|
|
20
|
-
defaultValue: {
|
|
21
|
-
control: {
|
|
22
|
-
type: 'number'
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
orientation: {
|
|
26
|
-
control: {
|
|
27
|
-
type: 'select',
|
|
28
|
-
options: ['vertical', 'horizontal']
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
step: {
|
|
32
|
-
control: {
|
|
33
|
-
type: 'number'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
minValue: {
|
|
37
|
-
control: {
|
|
38
|
-
type: 'number'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
maxValue: {
|
|
42
|
-
control: {
|
|
43
|
-
type: 'number'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
helperText: {
|
|
47
|
-
control: {
|
|
48
|
-
type: 'text'
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
label: {
|
|
52
|
-
control: {
|
|
53
|
-
type: 'text'
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
20
|
+
argTypes: sliderFieldArgTypes,
|
|
57
21
|
args: {
|
|
58
22
|
defaultValue: 40,
|
|
59
23
|
step: 10,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export var sliderFieldArgTypes = {
|
|
2
|
+
defaultValue: {
|
|
3
|
+
control: {
|
|
4
|
+
type: 'number'
|
|
5
|
+
}
|
|
6
|
+
},
|
|
7
|
+
orientation: {
|
|
8
|
+
control: {
|
|
9
|
+
type: 'select',
|
|
10
|
+
options: ['vertical', 'horizontal']
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
step: {
|
|
14
|
+
control: {
|
|
15
|
+
type: 'number'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
minValue: {
|
|
19
|
+
control: {
|
|
20
|
+
type: 'number'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
maxValue: {
|
|
24
|
+
control: {
|
|
25
|
+
type: 'number'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
helperText: {
|
|
29
|
+
control: {
|
|
30
|
+
type: 'text'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
label: {
|
|
34
|
+
control: {
|
|
35
|
+
type: 'text'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
@@ -1,10 +1,23 @@
|
|
|
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 _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
|
|
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; }
|
|
14
|
+
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
|
3
15
|
import React from 'react';
|
|
4
16
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
5
17
|
import { Box, RockerButton, RockerButtonGroup, StatusIcon, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../..';
|
|
6
18
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
7
19
|
import { statusIcon } from '../../utils/devUtils/constants/statuses';
|
|
20
|
+
import { booleanArg } from '../../utils/docUtils/docArgTypes';
|
|
8
21
|
import StatusIconReadme from './StatusIcon.mdx';
|
|
9
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
23
|
export default {
|
|
@@ -16,6 +29,24 @@ export default {
|
|
|
16
29
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(StatusIconReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
17
30
|
}
|
|
18
31
|
}
|
|
32
|
+
},
|
|
33
|
+
argTypes: {
|
|
34
|
+
status: {
|
|
35
|
+
description: 'The severity status that determines which icon and color are rendered.',
|
|
36
|
+
control: {
|
|
37
|
+
type: 'select'
|
|
38
|
+
},
|
|
39
|
+
options: _Object$values(statusIcon)
|
|
40
|
+
},
|
|
41
|
+
isSelected: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
42
|
+
description: 'Whether the icon is rendered in its selected (inverted) visual state.'
|
|
43
|
+
}),
|
|
44
|
+
iconProps: {
|
|
45
|
+
description: 'Props passed to the underlying icon element.',
|
|
46
|
+
control: {
|
|
47
|
+
disable: true
|
|
48
|
+
}
|
|
49
|
+
}
|
|
19
50
|
}
|
|
20
51
|
};
|
|
21
52
|
var sx = {
|
|
@@ -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";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
1
10
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
2
11
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
|
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 _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, 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 { Card, Table, TableBody, TableCaption, TableCell, TableHead, TableRow } from '../../index';
|
|
17
|
+
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
6
18
|
import TableReadme from './Table.mdx';
|
|
7
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
8
20
|
export default {
|
|
@@ -13,14 +25,19 @@ export default {
|
|
|
13
25
|
page: function page() {
|
|
14
26
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TableReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
15
27
|
}
|
|
16
|
-
},
|
|
17
|
-
controls: {
|
|
18
|
-
include: ['id']
|
|
19
28
|
}
|
|
20
29
|
},
|
|
21
30
|
args: {
|
|
22
31
|
id: 'table'
|
|
23
|
-
}
|
|
32
|
+
},
|
|
33
|
+
argTypes: _objectSpread({
|
|
34
|
+
id: {
|
|
35
|
+
description: 'Unique HTML id attribute applied to the table element.',
|
|
36
|
+
control: {
|
|
37
|
+
type: 'text'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, ariaAttributeBaseArgTypes)
|
|
24
41
|
};
|
|
25
42
|
var caption = 'Lorem Ipsum';
|
|
26
43
|
var headers = ['Type', 'Date', 'Additional Grant', 'Total Grant'];
|
|
@@ -34,6 +34,7 @@ import { Badge, Box, Card, Cell, Column, Pagination, PaginationProvider, Row, Ta
|
|
|
34
34
|
import { usePaginationState } from '../../hooks';
|
|
35
35
|
import { items as listData } from '../../utils/devUtils/constants/items';
|
|
36
36
|
import TableReadme from './TableBase.mdx';
|
|
37
|
+
import { tableBaseArgTypes } from './tableBaseAttributes';
|
|
37
38
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
38
39
|
export default {
|
|
39
40
|
title: 'Components/TableBase',
|
|
@@ -44,7 +45,8 @@ export default {
|
|
|
44
45
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TableReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
}
|
|
48
|
+
},
|
|
49
|
+
argTypes: tableBaseArgTypes
|
|
48
50
|
};
|
|
49
51
|
var headers = [{
|
|
50
52
|
key: 'type',
|
|
@@ -0,0 +1,55 @@
|
|
|
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 tableBaseArgTypes = {
|
|
14
|
+
selectionMode: {
|
|
15
|
+
description: 'The type of selection allowed in the table.',
|
|
16
|
+
control: {
|
|
17
|
+
type: 'select'
|
|
18
|
+
},
|
|
19
|
+
options: ['none', 'single', 'multiple']
|
|
20
|
+
},
|
|
21
|
+
selectionBehavior: {
|
|
22
|
+
description: 'How selection behaves when clicking rows — replace the current selection or toggle individual rows.',
|
|
23
|
+
control: {
|
|
24
|
+
type: 'select'
|
|
25
|
+
},
|
|
26
|
+
options: ['replace', 'toggle']
|
|
27
|
+
},
|
|
28
|
+
hasSelectionCheckboxes: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
29
|
+
description: 'Whether selection checkboxes are shown in each row and the header.'
|
|
30
|
+
}),
|
|
31
|
+
isStickyHeader: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
32
|
+
description: 'Whether the table header remains fixed when the table body scrolls.'
|
|
33
|
+
}),
|
|
34
|
+
isLastColumnSticky: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
35
|
+
description: 'Whether the last column is sticky and remains visible during horizontal scroll.'
|
|
36
|
+
}),
|
|
37
|
+
caption: {
|
|
38
|
+
description: 'An accessible caption or label for the table.',
|
|
39
|
+
control: {
|
|
40
|
+
type: 'text'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
'aria-label': {
|
|
44
|
+
description: 'Defines an accessible label for the table element.',
|
|
45
|
+
control: {
|
|
46
|
+
type: 'text'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
onSortChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
50
|
+
description: 'Callback invoked when the sort descriptor changes.'
|
|
51
|
+
}),
|
|
52
|
+
onSelectionChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
53
|
+
description: 'Callback invoked when the selection state changes.'
|
|
54
|
+
})
|
|
55
|
+
};
|
|
@@ -7,28 +7,12 @@ import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
|
7
7
|
import { useGetTheme } from '../../hooks';
|
|
8
8
|
import { Badge, Box, Icon, Tab, Tabs, Text } from '../../index';
|
|
9
9
|
import TabsReadme from './Tabs.mdx';
|
|
10
|
+
import { tabsArgTypes } from './tabsAttributes';
|
|
10
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
12
|
export default {
|
|
12
13
|
title: 'Components/Tabs',
|
|
13
14
|
component: Tabs,
|
|
14
|
-
argTypes:
|
|
15
|
-
isDisabled: {},
|
|
16
|
-
orientation: {},
|
|
17
|
-
mode: {},
|
|
18
|
-
defaultSelectedKey: {},
|
|
19
|
-
selectedKey: {
|
|
20
|
-
control: false
|
|
21
|
-
},
|
|
22
|
-
tabListProps: {
|
|
23
|
-
control: false
|
|
24
|
-
},
|
|
25
|
-
tabPanelProps: {
|
|
26
|
-
control: false
|
|
27
|
-
},
|
|
28
|
-
items: {
|
|
29
|
-
control: false
|
|
30
|
-
}
|
|
31
|
-
},
|
|
15
|
+
argTypes: tabsArgTypes,
|
|
32
16
|
parameters: {
|
|
33
17
|
actions: {
|
|
34
18
|
argTypesRegex: null
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var tabsArgTypes = {
|
|
2
|
+
isDisabled: {},
|
|
3
|
+
orientation: {},
|
|
4
|
+
mode: {},
|
|
5
|
+
defaultSelectedKey: {},
|
|
6
|
+
selectedKey: {
|
|
7
|
+
control: false
|
|
8
|
+
},
|
|
9
|
+
tabListProps: {
|
|
10
|
+
control: false
|
|
11
|
+
},
|
|
12
|
+
tabPanelProps: {
|
|
13
|
+
control: false
|
|
14
|
+
},
|
|
15
|
+
items: {
|
|
16
|
+
control: false
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
7
7
|
import { Box, Separator, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../../index';
|
|
8
8
|
import TextReadme from './Text.mdx';
|
|
9
|
+
import { textArgTypes } from './textAttributes';
|
|
9
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
11
|
export default {
|
|
11
12
|
title: 'Components/Text',
|
|
@@ -17,32 +18,7 @@ export default {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
argTypes:
|
|
21
|
-
as: {
|
|
22
|
-
control: false
|
|
23
|
-
},
|
|
24
|
-
role: {
|
|
25
|
-
control: false
|
|
26
|
-
},
|
|
27
|
-
variant: {
|
|
28
|
-
control: false,
|
|
29
|
-
description: 'Text variant.'
|
|
30
|
-
},
|
|
31
|
-
children: {
|
|
32
|
-
control: false,
|
|
33
|
-
description: 'Text value.'
|
|
34
|
-
},
|
|
35
|
-
color: {
|
|
36
|
-
control: {
|
|
37
|
-
type: 'text'
|
|
38
|
-
},
|
|
39
|
-
description: 'Text color.'
|
|
40
|
-
},
|
|
41
|
-
bg: {
|
|
42
|
-
control: false,
|
|
43
|
-
description: 'Background color.'
|
|
44
|
-
}
|
|
45
|
-
}
|
|
21
|
+
argTypes: textArgTypes
|
|
46
22
|
};
|
|
47
23
|
var sx = {
|
|
48
24
|
cell: {
|