@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
|
@@ -19,6 +19,12 @@ export default {
|
|
|
19
19
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(FooterReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
},
|
|
23
|
+
argTypes: {
|
|
24
|
+
children: {
|
|
25
|
+
control: undefined,
|
|
26
|
+
description: 'Content rendered inside the footer.'
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
};
|
|
24
30
|
var legalLinks = [{
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
4
4
|
import { Box, Grid, Text } from '../../index';
|
|
5
5
|
import GridReadme from './Grid.mdx';
|
|
6
|
+
import { gridArgTypes } from './gridAttributes';
|
|
6
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
8
|
export default {
|
|
8
9
|
title: 'Components/Grid',
|
|
@@ -14,25 +15,7 @@ export default {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
|
-
argTypes:
|
|
18
|
-
repeat: {
|
|
19
|
-
options: ['fit', 'fill'],
|
|
20
|
-
control: {
|
|
21
|
-
type: 'select'
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
gap: {
|
|
25
|
-
control: {
|
|
26
|
-
type: 'number'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
width: {
|
|
30
|
-
control: false
|
|
31
|
-
},
|
|
32
|
-
columns: {
|
|
33
|
-
control: false
|
|
34
|
-
}
|
|
35
|
-
}
|
|
18
|
+
argTypes: gridArgTypes
|
|
36
19
|
};
|
|
37
20
|
export var Default = function Default(args) {
|
|
38
21
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Text, {
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
1
9
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
10
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
11
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
13
|
import React from 'react';
|
|
3
14
|
import GroupIcon from '@pingux/mdi-react/AccountGroupIcon';
|
|
4
15
|
import ArrowIcon from '@pingux/mdi-react/ArrowTopRightThickIcon';
|
|
@@ -6,6 +17,7 @@ import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
|
6
17
|
import { useGetTheme } from '../../hooks';
|
|
7
18
|
import { Box, Icon, IconBadge } from '../../index';
|
|
8
19
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
20
|
+
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
9
21
|
import IconBadgeReadme from './IconBadge.mdx';
|
|
10
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
23
|
export default {
|
|
@@ -17,7 +29,27 @@ export default {
|
|
|
17
29
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconBadgeReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
18
30
|
}
|
|
19
31
|
}
|
|
20
|
-
}
|
|
32
|
+
},
|
|
33
|
+
argTypes: _objectSpread({
|
|
34
|
+
baseSize: {
|
|
35
|
+
description: 'The size of the base icon; number values are converted to pixels.',
|
|
36
|
+
control: {
|
|
37
|
+
type: 'text'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
circleColor: {
|
|
41
|
+
description: 'Color applied to the circular background; defaults to white.',
|
|
42
|
+
control: {
|
|
43
|
+
type: 'text'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
circleSize: {
|
|
47
|
+
description: 'The size of the icon rendered inside the circle; number values are converted to pixels.',
|
|
48
|
+
control: {
|
|
49
|
+
type: 'number'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, ariaAttributeBaseArgTypes)
|
|
21
53
|
};
|
|
22
54
|
export var Default = function Default(args) {
|
|
23
55
|
var _useGetTheme = useGetTheme(),
|
|
@@ -6,6 +6,7 @@ import EyeIcon from '@pingux/mdi-react/EyeOutlineIcon';
|
|
|
6
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
7
7
|
import { IconButtonToggle } from '../../index';
|
|
8
8
|
import IconButtonToggleReadme from './IconButtonToggle.mdx';
|
|
9
|
+
import { iconButtonToggleArgTypes } from './iconButtonToggleAttributes';
|
|
9
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
11
|
export default {
|
|
11
12
|
title: 'Components/IconButtonToggle',
|
|
@@ -16,7 +17,8 @@ export default {
|
|
|
16
17
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconButtonToggleReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
}
|
|
20
|
+
},
|
|
21
|
+
argTypes: iconButtonToggleArgTypes
|
|
20
22
|
};
|
|
21
23
|
export var Default = function Default(args) {
|
|
22
24
|
return ___EmotionJSX(IconButtonToggle, _extends({}, args, {
|
|
@@ -0,0 +1,56 @@
|
|
|
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 iconButtonToggleArgTypes = {
|
|
14
|
+
isToggled: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
15
|
+
description: 'Whether the icon is in the toggled state (use only in controlled mode).'
|
|
16
|
+
}),
|
|
17
|
+
onToggle: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
18
|
+
description: 'Callback invoked when the toggle button is pressed.'
|
|
19
|
+
}),
|
|
20
|
+
title: {
|
|
21
|
+
description: 'Text content displayed in a tooltip on hover or focus.',
|
|
22
|
+
control: {
|
|
23
|
+
type: 'text'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
variant: {
|
|
27
|
+
description: 'The styling variation of the button element.',
|
|
28
|
+
control: {
|
|
29
|
+
type: 'text'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultIcon: {
|
|
33
|
+
description: 'Icon component rendered in the default (untoggled) state.',
|
|
34
|
+
control: {
|
|
35
|
+
type: null
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
toggledIcon: {
|
|
39
|
+
description: 'Icon component rendered in the toggled state.',
|
|
40
|
+
control: {
|
|
41
|
+
type: null
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
iconProps: {
|
|
45
|
+
description: 'Props passed to the underlying icon element.',
|
|
46
|
+
control: {
|
|
47
|
+
type: null
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
buttonProps: {
|
|
51
|
+
description: 'Props passed to the underlying button element.',
|
|
52
|
+
control: {
|
|
53
|
+
type: null
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -5,9 +5,9 @@ import React, { useState } from 'react';
|
|
|
5
5
|
import isChromatic from 'chromatic/isChromatic';
|
|
6
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
7
7
|
import { Box, Button, Image } from '../../index';
|
|
8
|
-
import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
|
|
9
8
|
import { chiefIdentityChampions, fallbackImg, pingImg } from '../../utils/devUtils/constants/images';
|
|
10
9
|
import ImageReadme from './Image.mdx';
|
|
10
|
+
import { imageArgTypes } from './imageAttributes';
|
|
11
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
12
12
|
export default {
|
|
13
13
|
title: 'Components/Image',
|
|
@@ -19,21 +19,7 @@ export default {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
argTypes:
|
|
23
|
-
isDisabled: {},
|
|
24
|
-
variant: {
|
|
25
|
-
control: false
|
|
26
|
-
},
|
|
27
|
-
as: {
|
|
28
|
-
control: {
|
|
29
|
-
type: 'select'
|
|
30
|
-
},
|
|
31
|
-
options: htmlElements
|
|
32
|
-
},
|
|
33
|
-
src: {
|
|
34
|
-
control: false
|
|
35
|
-
}
|
|
36
|
-
},
|
|
22
|
+
argTypes: imageArgTypes,
|
|
37
23
|
args: {
|
|
38
24
|
as: 'img',
|
|
39
25
|
src: pingImg
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
|
|
2
|
+
export var imageArgTypes = {
|
|
3
|
+
isDisabled: {},
|
|
4
|
+
variant: {
|
|
5
|
+
control: false
|
|
6
|
+
},
|
|
7
|
+
as: {
|
|
8
|
+
control: {
|
|
9
|
+
type: 'select'
|
|
10
|
+
},
|
|
11
|
+
options: htmlElements
|
|
12
|
+
},
|
|
13
|
+
src: {
|
|
14
|
+
control: false
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -1,16 +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 _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
10
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
11
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
13
|
import React from 'react';
|
|
3
14
|
import { Input } from '../../index';
|
|
15
|
+
import { inputArgTypes } from './inputAttributes';
|
|
4
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
17
|
export default {
|
|
6
18
|
title: 'Form/Base Components/Input',
|
|
7
19
|
component: Input,
|
|
8
|
-
argTypes: {
|
|
9
|
-
placeholder: {},
|
|
10
|
-
type: {},
|
|
11
|
-
name: {},
|
|
12
|
-
id: {}
|
|
13
|
-
},
|
|
20
|
+
argTypes: _objectSpread({}, inputArgTypes),
|
|
14
21
|
args: {
|
|
15
22
|
placeholder: 'This is a basic input'
|
|
16
23
|
}
|
|
@@ -2,23 +2,12 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Label } from '../../index';
|
|
4
4
|
import { modes } from '../../utils/devUtils/constants/labelModes';
|
|
5
|
+
import { labelArgTypes } from './labelAttributes';
|
|
5
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
6
7
|
export default {
|
|
7
8
|
title: 'Form/Base Components/Label',
|
|
8
9
|
component: Label,
|
|
9
|
-
argTypes:
|
|
10
|
-
mode: {
|
|
11
|
-
control: {
|
|
12
|
-
type: 'select',
|
|
13
|
-
options: modes
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
isDisabled: {},
|
|
17
|
-
isRequired: {},
|
|
18
|
-
requiredIndicator: {
|
|
19
|
-
control: 'none'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
10
|
+
argTypes: labelArgTypes,
|
|
22
11
|
args: {
|
|
23
12
|
mode: modes.DEFAULT
|
|
24
13
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { modes } from '../../utils/devUtils/constants/labelModes';
|
|
2
|
+
export var labelArgTypes = {
|
|
3
|
+
mode: {
|
|
4
|
+
control: {
|
|
5
|
+
type: 'select',
|
|
6
|
+
options: modes
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
isDisabled: {},
|
|
10
|
+
isRequired: {},
|
|
11
|
+
requiredIndicator: {
|
|
12
|
+
control: 'none'
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
|
|
2
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
3
|
-
var _context;
|
|
4
|
-
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
5
|
-
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
6
3
|
import React from 'react';
|
|
7
4
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
8
5
|
import { Box, Link, Text } from '../../index';
|
|
9
6
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
10
|
-
import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
|
|
11
7
|
import LinkReadme from './Link.mdx';
|
|
12
|
-
import
|
|
8
|
+
import { linkArgTypes } from './linkAttributes';
|
|
13
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
14
10
|
export default {
|
|
15
11
|
title: 'Components/Link',
|
|
@@ -21,34 +17,7 @@ export default {
|
|
|
21
17
|
}
|
|
22
18
|
}
|
|
23
19
|
},
|
|
24
|
-
argTypes:
|
|
25
|
-
href: {
|
|
26
|
-
control: {
|
|
27
|
-
type: 'text'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
isDisabled: {},
|
|
31
|
-
isSafariCompatible: {
|
|
32
|
-
table: {
|
|
33
|
-
disable: true
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
as: {
|
|
37
|
-
control: {
|
|
38
|
-
type: 'select'
|
|
39
|
-
},
|
|
40
|
-
options: htmlElements
|
|
41
|
-
},
|
|
42
|
-
target: {
|
|
43
|
-
control: false
|
|
44
|
-
},
|
|
45
|
-
variant: {
|
|
46
|
-
control: {
|
|
47
|
-
type: 'select',
|
|
48
|
-
options: _concatInstanceProperty(_context = []).call(_context, _Object$keys(variants), ['button'])
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
20
|
+
argTypes: linkArgTypes,
|
|
52
21
|
args: {
|
|
53
22
|
href: 'https://uilibrary.ping-eng.com/',
|
|
54
23
|
as: 'a',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var _context;
|
|
2
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
3
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
4
|
+
import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
|
|
5
|
+
import variants from './Link.styles';
|
|
6
|
+
export var linkArgTypes = {
|
|
7
|
+
href: {
|
|
8
|
+
control: {
|
|
9
|
+
type: 'text'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
isDisabled: {},
|
|
13
|
+
isSafariCompatible: {
|
|
14
|
+
table: {
|
|
15
|
+
disable: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
as: {
|
|
19
|
+
control: {
|
|
20
|
+
type: 'select'
|
|
21
|
+
},
|
|
22
|
+
options: htmlElements
|
|
23
|
+
},
|
|
24
|
+
target: {
|
|
25
|
+
control: false
|
|
26
|
+
},
|
|
27
|
+
variant: {
|
|
28
|
+
control: {
|
|
29
|
+
type: 'select',
|
|
30
|
+
options: _concatInstanceProperty(_context = []).call(_context, _Object$keys(variants), ['button'])
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -1,9 +1,60 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
12
|
import React from 'react';
|
|
2
13
|
import { AstroProvider, NextGenDarkTheme } from '../../..';
|
|
14
|
+
import { booleanArg, funcArg } from '../../../utils/docUtils/docArgTypes';
|
|
3
15
|
import { ListViewNextGen } from './ListViewNextGenComponent';
|
|
4
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
17
|
export default {
|
|
6
|
-
title: 'Onyx Dark ListView'
|
|
18
|
+
title: 'Onyx Dark ListView',
|
|
19
|
+
argTypes: {
|
|
20
|
+
selectionMode: {
|
|
21
|
+
control: {
|
|
22
|
+
type: 'select'
|
|
23
|
+
},
|
|
24
|
+
options: ['expansion', 'single', 'multiple', 'none'],
|
|
25
|
+
description: 'The type of selection that is allowed in the list view.'
|
|
26
|
+
},
|
|
27
|
+
isHoverable: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
28
|
+
description: 'Whether list items display a hover state.'
|
|
29
|
+
}),
|
|
30
|
+
loadingState: {
|
|
31
|
+
control: {
|
|
32
|
+
type: 'text'
|
|
33
|
+
},
|
|
34
|
+
description: 'The current loading state of the list view (e.g. loading, loadingMore, filtering).'
|
|
35
|
+
},
|
|
36
|
+
'aria-label': {
|
|
37
|
+
control: {
|
|
38
|
+
type: 'text'
|
|
39
|
+
},
|
|
40
|
+
description: 'Defines a string value that labels the list view for accessibility.'
|
|
41
|
+
},
|
|
42
|
+
onFocus: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
43
|
+
description: 'Handler that is called when the list view receives focus.'
|
|
44
|
+
}),
|
|
45
|
+
onLoadMore: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
46
|
+
description: 'Handler that is called when more items should be loaded from the data source.'
|
|
47
|
+
}),
|
|
48
|
+
onLoadPrev: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
49
|
+
description: 'Handler that is called when previous items should be loaded from the data source.'
|
|
50
|
+
}),
|
|
51
|
+
containerProps: {
|
|
52
|
+
control: {
|
|
53
|
+
type: null
|
|
54
|
+
},
|
|
55
|
+
description: 'Props to pass to the outer container element of the list view.'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
7
58
|
};
|
|
8
59
|
export var Default = function Default() {
|
|
9
60
|
return ___EmotionJSX(AstroProvider, {
|
|
@@ -0,0 +1,51 @@
|
|
|
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 listViewOnyxDarkArgTypes = {
|
|
14
|
+
selectionMode: {
|
|
15
|
+
control: {
|
|
16
|
+
type: 'select'
|
|
17
|
+
},
|
|
18
|
+
options: ['expansion', 'single', 'multiple', 'none'],
|
|
19
|
+
description: 'The type of selection that is allowed in the list view.'
|
|
20
|
+
},
|
|
21
|
+
isHoverable: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
22
|
+
description: 'Whether list items display a hover state.'
|
|
23
|
+
}),
|
|
24
|
+
loadingState: {
|
|
25
|
+
control: {
|
|
26
|
+
type: 'text'
|
|
27
|
+
},
|
|
28
|
+
description: 'The current loading state of the list view (e.g. loading, loadingMore, filtering).'
|
|
29
|
+
},
|
|
30
|
+
'aria-label': {
|
|
31
|
+
control: {
|
|
32
|
+
type: 'text'
|
|
33
|
+
},
|
|
34
|
+
description: 'Defines a string value that labels the list view for accessibility.'
|
|
35
|
+
},
|
|
36
|
+
onFocus: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
37
|
+
description: 'Handler that is called when the list view receives focus.'
|
|
38
|
+
}),
|
|
39
|
+
onLoadMore: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
40
|
+
description: 'Handler that is called when more items should be loaded from the data source.'
|
|
41
|
+
}),
|
|
42
|
+
onLoadPrev: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
43
|
+
description: 'Handler that is called when previous items should be loaded from the data source.'
|
|
44
|
+
}),
|
|
45
|
+
containerProps: {
|
|
46
|
+
control: {
|
|
47
|
+
type: null
|
|
48
|
+
},
|
|
49
|
+
description: 'Props to pass to the outer container element of the list view.'
|
|
50
|
+
}
|
|
51
|
+
};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
12
|
import React from 'react';
|
|
2
13
|
import DocsLayout from '../../../../.storybook/storybookDocsLayout';
|
|
3
14
|
import { Box, ModalBody, Text } from '../../../index';
|
|
15
|
+
import { modalBodyArgTypes } from './modalBodyAttributes';
|
|
4
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
17
|
export default {
|
|
6
18
|
title: 'Components/Modal/Convenience/ModalBody',
|
|
@@ -11,7 +23,8 @@ export default {
|
|
|
11
23
|
return ___EmotionJSX(DocsLayout, null);
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
|
-
}
|
|
26
|
+
},
|
|
27
|
+
argTypes: _objectSpread({}, modalBodyArgTypes)
|
|
15
28
|
};
|
|
16
29
|
export var Default = function Default() {
|
|
17
30
|
return ___EmotionJSX(ModalBody, null, ___EmotionJSX(Box, null, ___EmotionJSX(Text, null, "Do you want to continue with this action that you\u2018re performing?")));
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
12
|
import React from 'react';
|
|
2
13
|
import DocsLayout from '../../../../.storybook/storybookDocsLayout';
|
|
3
14
|
import { useModalState } from '../../../hooks';
|
|
4
15
|
import { ModalFooter } from '../../../index';
|
|
16
|
+
import { modalFooterArgTypes } from './modalFooterAttributes';
|
|
5
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
6
18
|
export default {
|
|
7
19
|
title: 'Components/Modal/Convenience/ModalFooter',
|
|
@@ -12,7 +24,8 @@ export default {
|
|
|
12
24
|
return ___EmotionJSX(DocsLayout, null);
|
|
13
25
|
}
|
|
14
26
|
}
|
|
15
|
-
}
|
|
27
|
+
},
|
|
28
|
+
argTypes: _objectSpread({}, modalFooterArgTypes)
|
|
16
29
|
};
|
|
17
30
|
export var Default = function Default() {
|
|
18
31
|
var state = useModalState();
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
12
|
import React from 'react';
|
|
2
13
|
import DocsLayout from '../../../../.storybook/storybookDocsLayout';
|
|
3
14
|
import { useModalState } from '../../../hooks';
|
|
4
15
|
import { ModalHeader } from '../../../index';
|
|
16
|
+
import { modalHeaderArgTypes } from './modalHeaderAttributes';
|
|
5
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
6
18
|
export default {
|
|
7
19
|
title: 'Components/Modal/Convenience/ModalHeader',
|
|
@@ -12,7 +24,8 @@ export default {
|
|
|
12
24
|
return ___EmotionJSX(DocsLayout, null);
|
|
13
25
|
}
|
|
14
26
|
}
|
|
15
|
-
}
|
|
27
|
+
},
|
|
28
|
+
argTypes: _objectSpread({}, modalHeaderArgTypes)
|
|
16
29
|
};
|
|
17
30
|
export var Default = function Default() {
|
|
18
31
|
var state = useModalState();
|