@pingux/astro 2.208.3 → 2.208.4-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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/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/package.json +1 -1
|
@@ -15,9 +15,8 @@ import React, { useState } from 'react';
|
|
|
15
15
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
16
16
|
import { RadioField, RadioGroupField } from '../../index';
|
|
17
17
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
18
|
-
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
19
|
-
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
|
20
18
|
import RadioGroupFieldReadme from './RadioGroupField.mdx';
|
|
19
|
+
import { radioGroupFieldArgTypes } from './radioGroupFieldAttributes';
|
|
21
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
22
21
|
export default {
|
|
23
22
|
title: 'Form/RadioGroupField',
|
|
@@ -29,32 +28,7 @@ export default {
|
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
},
|
|
32
|
-
argTypes: _objectSpread(
|
|
33
|
-
label: {
|
|
34
|
-
control: {
|
|
35
|
-
type: 'text'
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
helperText: {
|
|
39
|
-
control: {
|
|
40
|
-
type: 'text'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
hintText: {
|
|
44
|
-
control: {
|
|
45
|
-
type: 'text'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
defaultValue: {},
|
|
49
|
-
orientation: {},
|
|
50
|
-
isDisabled: {},
|
|
51
|
-
isRequired: {},
|
|
52
|
-
name: {},
|
|
53
|
-
id: {},
|
|
54
|
-
value: {
|
|
55
|
-
control: false
|
|
56
|
-
}
|
|
57
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes),
|
|
31
|
+
argTypes: _objectSpread({}, radioGroupFieldArgTypes),
|
|
58
32
|
args: {
|
|
59
33
|
label: 'Pick one',
|
|
60
34
|
defaultValue: 'A'
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { statusArgTypes } from '../../utils/docUtils/statusProp';
|
|
14
|
+
export var radioGroupFieldArgTypes = _objectSpread(_objectSpread({
|
|
15
|
+
label: {
|
|
16
|
+
control: {
|
|
17
|
+
type: 'text'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
helperText: {
|
|
21
|
+
control: {
|
|
22
|
+
type: 'text'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
hintText: {
|
|
26
|
+
control: {
|
|
27
|
+
type: 'text'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultValue: {},
|
|
31
|
+
orientation: {},
|
|
32
|
+
isDisabled: {},
|
|
33
|
+
isRequired: {},
|
|
34
|
+
name: {},
|
|
35
|
+
id: {},
|
|
36
|
+
value: {
|
|
37
|
+
control: false
|
|
38
|
+
}
|
|
39
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes);
|
|
@@ -1,23 +1,12 @@
|
|
|
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
1
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
10
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
11
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
12
3
|
import _someInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/some";
|
|
13
|
-
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; }
|
|
14
|
-
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; }
|
|
15
4
|
import React, { useState } from 'react';
|
|
16
5
|
import { parseDate } from '@internationalized/date';
|
|
17
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
18
7
|
import { RangeCalendar } from '../../index';
|
|
19
|
-
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
20
8
|
import RangeCalendarReadme from './RangeCalendar.mdx';
|
|
9
|
+
import { rangeCalendarArgTypes } from './rangeCalendarAttributes';
|
|
21
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
22
11
|
export default {
|
|
23
12
|
title: 'Experimental/RangeCalendar',
|
|
@@ -32,7 +21,7 @@ export default {
|
|
|
32
21
|
}
|
|
33
22
|
}
|
|
34
23
|
},
|
|
35
|
-
argTypes:
|
|
24
|
+
argTypes: rangeCalendarArgTypes,
|
|
36
25
|
args: {
|
|
37
26
|
defaultFocusedValue: '2030-01-15'
|
|
38
27
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
13
|
+
import { booleanArg, funcArg } from '../../utils/docUtils/docArgTypes';
|
|
14
|
+
export var rangeCalendarArgTypes = _objectSpread(_objectSpread({}, ariaAttributeBaseArgTypes), {}, {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
control: {
|
|
17
|
+
type: null
|
|
18
|
+
},
|
|
19
|
+
description: 'The default selected date range (uncontrolled).'
|
|
20
|
+
},
|
|
21
|
+
value: {
|
|
22
|
+
control: {
|
|
23
|
+
type: null
|
|
24
|
+
},
|
|
25
|
+
description: 'The currently selected date range (controlled).'
|
|
26
|
+
},
|
|
27
|
+
customWeekDays: {
|
|
28
|
+
control: {
|
|
29
|
+
type: null
|
|
30
|
+
},
|
|
31
|
+
description: 'Custom week day labels for use with non-Gregorian calendars.'
|
|
32
|
+
},
|
|
33
|
+
defaultFocusedValue: {
|
|
34
|
+
control: {
|
|
35
|
+
type: 'text'
|
|
36
|
+
},
|
|
37
|
+
description: 'The default focused date when the calendar first mounts (uncontrolled).'
|
|
38
|
+
},
|
|
39
|
+
minValue: {
|
|
40
|
+
control: {
|
|
41
|
+
type: 'text'
|
|
42
|
+
},
|
|
43
|
+
description: 'The minimum allowed date that a user may select.'
|
|
44
|
+
},
|
|
45
|
+
maxValue: {
|
|
46
|
+
control: {
|
|
47
|
+
type: 'text'
|
|
48
|
+
},
|
|
49
|
+
description: 'The maximum allowed date that a user may select.'
|
|
50
|
+
},
|
|
51
|
+
isDisabled: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
52
|
+
description: 'Whether the calendar is disabled.'
|
|
53
|
+
}),
|
|
54
|
+
isReadOnly: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
55
|
+
description: 'Whether the calendar dates are only focusable (not selectable).'
|
|
56
|
+
}),
|
|
57
|
+
isRequired: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
58
|
+
description: 'Whether user input is required on the calendar before form submission.'
|
|
59
|
+
}),
|
|
60
|
+
hasAutoFocus: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
61
|
+
description: 'Whether the element should receive focus on render.'
|
|
62
|
+
}),
|
|
63
|
+
onChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
64
|
+
description: 'Handler that is called when the selected date range changes.'
|
|
65
|
+
}),
|
|
66
|
+
isDateUnavailable: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
67
|
+
description: 'Callback that is called for each date. If it returns true, the date is unavailable.'
|
|
68
|
+
}),
|
|
69
|
+
onBlur: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
70
|
+
description: 'Handler that is called when the element loses focus.'
|
|
71
|
+
}),
|
|
72
|
+
onFocus: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
73
|
+
description: 'Handler that is called when the element receives focus.'
|
|
74
|
+
}),
|
|
75
|
+
onFocusChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
76
|
+
description: "Handler that is called when the element's focus status changes."
|
|
77
|
+
}),
|
|
78
|
+
onKeyDown: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
79
|
+
description: 'Handler that is called when a key is pressed.'
|
|
80
|
+
}),
|
|
81
|
+
onKeyUp: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
82
|
+
description: 'Handler that is called when a key is released.'
|
|
83
|
+
})
|
|
84
|
+
});
|
|
@@ -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 = {
|