@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
|
@@ -1,8 +1,20 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
1
10
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
2
11
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
|
12
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
14
|
import React from 'react';
|
|
4
15
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
5
16
|
import { Card, Table, TableBody, TableCaption, TableCell, TableHead, TableRow } from '../../index';
|
|
17
|
+
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
6
18
|
import TableReadme from './Table.mdx';
|
|
7
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
8
20
|
export default {
|
|
@@ -13,14 +25,19 @@ export default {
|
|
|
13
25
|
page: function page() {
|
|
14
26
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TableReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
15
27
|
}
|
|
16
|
-
},
|
|
17
|
-
controls: {
|
|
18
|
-
include: ['id']
|
|
19
28
|
}
|
|
20
29
|
},
|
|
21
30
|
args: {
|
|
22
31
|
id: 'table'
|
|
23
|
-
}
|
|
32
|
+
},
|
|
33
|
+
argTypes: _objectSpread({
|
|
34
|
+
id: {
|
|
35
|
+
description: 'Unique HTML id attribute applied to the table element.',
|
|
36
|
+
control: {
|
|
37
|
+
type: 'text'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, ariaAttributeBaseArgTypes)
|
|
24
41
|
};
|
|
25
42
|
var caption = 'Lorem Ipsum';
|
|
26
43
|
var headers = ['Type', 'Date', 'Additional Grant', 'Total Grant'];
|
|
@@ -34,6 +34,7 @@ import { Badge, Box, Card, Cell, Column, Pagination, PaginationProvider, Row, Ta
|
|
|
34
34
|
import { usePaginationState } from '../../hooks';
|
|
35
35
|
import { items as listData } from '../../utils/devUtils/constants/items';
|
|
36
36
|
import TableReadme from './TableBase.mdx';
|
|
37
|
+
import { tableBaseArgTypes } from './tableBaseAttributes';
|
|
37
38
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
38
39
|
export default {
|
|
39
40
|
title: 'Components/TableBase',
|
|
@@ -44,7 +45,8 @@ export default {
|
|
|
44
45
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TableReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
}
|
|
48
|
+
},
|
|
49
|
+
argTypes: tableBaseArgTypes
|
|
48
50
|
};
|
|
49
51
|
var headers = [{
|
|
50
52
|
key: 'type',
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
import { booleanArg, funcArg } from '../../utils/docUtils/docArgTypes';
|
|
13
|
+
export var tableBaseArgTypes = {
|
|
14
|
+
selectionMode: {
|
|
15
|
+
description: 'The type of selection allowed in the table.',
|
|
16
|
+
control: {
|
|
17
|
+
type: 'select'
|
|
18
|
+
},
|
|
19
|
+
options: ['none', 'single', 'multiple']
|
|
20
|
+
},
|
|
21
|
+
selectionBehavior: {
|
|
22
|
+
description: 'How selection behaves when clicking rows — replace the current selection or toggle individual rows.',
|
|
23
|
+
control: {
|
|
24
|
+
type: 'select'
|
|
25
|
+
},
|
|
26
|
+
options: ['replace', 'toggle']
|
|
27
|
+
},
|
|
28
|
+
hasSelectionCheckboxes: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
29
|
+
description: 'Whether selection checkboxes are shown in each row and the header.'
|
|
30
|
+
}),
|
|
31
|
+
isStickyHeader: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
32
|
+
description: 'Whether the table header remains fixed when the table body scrolls.'
|
|
33
|
+
}),
|
|
34
|
+
isLastColumnSticky: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
35
|
+
description: 'Whether the last column is sticky and remains visible during horizontal scroll.'
|
|
36
|
+
}),
|
|
37
|
+
caption: {
|
|
38
|
+
description: 'An accessible caption or label for the table.',
|
|
39
|
+
control: {
|
|
40
|
+
type: 'text'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
'aria-label': {
|
|
44
|
+
description: 'Defines an accessible label for the table element.',
|
|
45
|
+
control: {
|
|
46
|
+
type: 'text'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
onSortChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
50
|
+
description: 'Callback invoked when the sort descriptor changes.'
|
|
51
|
+
}),
|
|
52
|
+
onSelectionChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
53
|
+
description: 'Callback invoked when the selection state changes.'
|
|
54
|
+
})
|
|
55
|
+
};
|
|
@@ -7,28 +7,12 @@ import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
|
7
7
|
import { useGetTheme } from '../../hooks';
|
|
8
8
|
import { Badge, Box, Icon, Tab, Tabs, Text } from '../../index';
|
|
9
9
|
import TabsReadme from './Tabs.mdx';
|
|
10
|
+
import { tabsArgTypes } from './tabsAttributes';
|
|
10
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
12
|
export default {
|
|
12
13
|
title: 'Components/Tabs',
|
|
13
14
|
component: Tabs,
|
|
14
|
-
argTypes:
|
|
15
|
-
isDisabled: {},
|
|
16
|
-
orientation: {},
|
|
17
|
-
mode: {},
|
|
18
|
-
defaultSelectedKey: {},
|
|
19
|
-
selectedKey: {
|
|
20
|
-
control: false
|
|
21
|
-
},
|
|
22
|
-
tabListProps: {
|
|
23
|
-
control: false
|
|
24
|
-
},
|
|
25
|
-
tabPanelProps: {
|
|
26
|
-
control: false
|
|
27
|
-
},
|
|
28
|
-
items: {
|
|
29
|
-
control: false
|
|
30
|
-
}
|
|
31
|
-
},
|
|
15
|
+
argTypes: tabsArgTypes,
|
|
32
16
|
parameters: {
|
|
33
17
|
actions: {
|
|
34
18
|
argTypesRegex: null
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var tabsArgTypes = {
|
|
2
|
+
isDisabled: {},
|
|
3
|
+
orientation: {},
|
|
4
|
+
mode: {},
|
|
5
|
+
defaultSelectedKey: {},
|
|
6
|
+
selectedKey: {
|
|
7
|
+
control: false
|
|
8
|
+
},
|
|
9
|
+
tabListProps: {
|
|
10
|
+
control: false
|
|
11
|
+
},
|
|
12
|
+
tabPanelProps: {
|
|
13
|
+
control: false
|
|
14
|
+
},
|
|
15
|
+
items: {
|
|
16
|
+
control: false
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
7
7
|
import { Box, Separator, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../../index';
|
|
8
8
|
import TextReadme from './Text.mdx';
|
|
9
|
+
import { textArgTypes } from './textAttributes';
|
|
9
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
11
|
export default {
|
|
11
12
|
title: 'Components/Text',
|
|
@@ -17,32 +18,7 @@ export default {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
argTypes:
|
|
21
|
-
as: {
|
|
22
|
-
control: false
|
|
23
|
-
},
|
|
24
|
-
role: {
|
|
25
|
-
control: false
|
|
26
|
-
},
|
|
27
|
-
variant: {
|
|
28
|
-
control: false,
|
|
29
|
-
description: 'Text variant.'
|
|
30
|
-
},
|
|
31
|
-
children: {
|
|
32
|
-
control: false,
|
|
33
|
-
description: 'Text value.'
|
|
34
|
-
},
|
|
35
|
-
color: {
|
|
36
|
-
control: {
|
|
37
|
-
type: 'text'
|
|
38
|
-
},
|
|
39
|
-
description: 'Text color.'
|
|
40
|
-
},
|
|
41
|
-
bg: {
|
|
42
|
-
control: false,
|
|
43
|
-
description: 'Background color.'
|
|
44
|
-
}
|
|
45
|
-
}
|
|
21
|
+
argTypes: textArgTypes
|
|
46
22
|
};
|
|
47
23
|
var sx = {
|
|
48
24
|
cell: {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export var textArgTypes = {
|
|
2
|
+
as: {
|
|
3
|
+
control: false
|
|
4
|
+
},
|
|
5
|
+
role: {
|
|
6
|
+
control: false
|
|
7
|
+
},
|
|
8
|
+
variant: {
|
|
9
|
+
control: false,
|
|
10
|
+
description: 'Text variant.'
|
|
11
|
+
},
|
|
12
|
+
children: {
|
|
13
|
+
control: false,
|
|
14
|
+
description: 'Text value.'
|
|
15
|
+
},
|
|
16
|
+
color: {
|
|
17
|
+
control: {
|
|
18
|
+
type: 'text'
|
|
19
|
+
},
|
|
20
|
+
description: 'Text color.'
|
|
21
|
+
},
|
|
22
|
+
bg: {
|
|
23
|
+
control: false,
|
|
24
|
+
description: 'Background color.'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
@@ -17,10 +17,8 @@ import SearchIcon from '@pingux/mdi-react/SearchIcon';
|
|
|
17
17
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
18
18
|
import { Box, Icon, TextAreaField } from '../../index';
|
|
19
19
|
import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
|
|
20
|
-
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
21
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
|
22
|
-
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
|
23
20
|
import TextAreaFieldReadme from './TextAreaField.mdx';
|
|
21
|
+
import { textAreaFieldArgTypes } from './textAreaFieldAttributes';
|
|
24
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
25
23
|
export default {
|
|
26
24
|
title: 'Form/TextAreaField',
|
|
@@ -40,44 +38,7 @@ export default {
|
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
},
|
|
43
|
-
argTypes: _objectSpread(
|
|
44
|
-
label: {
|
|
45
|
-
control: {
|
|
46
|
-
type: 'text'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
labelMode: {
|
|
50
|
-
control: {
|
|
51
|
-
type: 'select',
|
|
52
|
-
options: _Object$values(labelModes)
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
defaultValue: {},
|
|
56
|
-
placeholder: {},
|
|
57
|
-
name: {},
|
|
58
|
-
helperText: {
|
|
59
|
-
control: {
|
|
60
|
-
type: 'text'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
hintText: {
|
|
64
|
-
control: {
|
|
65
|
-
type: 'text'
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
rows: {},
|
|
69
|
-
isDisabled: {},
|
|
70
|
-
isRequired: {},
|
|
71
|
-
isReadOnly: {},
|
|
72
|
-
hasAutoFocus: {},
|
|
73
|
-
isUnresizable: {},
|
|
74
|
-
id: {},
|
|
75
|
-
autocomplete: {},
|
|
76
|
-
className: {},
|
|
77
|
-
value: {
|
|
78
|
-
control: false
|
|
79
|
-
}
|
|
80
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
|
41
|
+
argTypes: _objectSpread({}, textAreaFieldArgTypes),
|
|
81
42
|
args: {
|
|
82
43
|
label: 'Example Label',
|
|
83
44
|
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 textAreaFieldArgTypes = _objectSpread(_objectSpread(_objectSpread({
|
|
18
|
+
label: {
|
|
19
|
+
control: {
|
|
20
|
+
type: 'text'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
labelMode: {
|
|
24
|
+
control: {
|
|
25
|
+
type: 'select',
|
|
26
|
+
options: _Object$values(labelModes)
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultValue: {},
|
|
30
|
+
placeholder: {},
|
|
31
|
+
name: {},
|
|
32
|
+
helperText: {
|
|
33
|
+
control: {
|
|
34
|
+
type: 'text'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
hintText: {
|
|
38
|
+
control: {
|
|
39
|
+
type: 'text'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
rows: {},
|
|
43
|
+
isDisabled: {},
|
|
44
|
+
isRequired: {},
|
|
45
|
+
isReadOnly: {},
|
|
46
|
+
hasAutoFocus: {},
|
|
47
|
+
isUnresizable: {},
|
|
48
|
+
id: {},
|
|
49
|
+
autocomplete: {},
|
|
50
|
+
className: {},
|
|
51
|
+
value: {
|
|
52
|
+
control: false
|
|
53
|
+
}
|
|
54
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes);
|
|
@@ -4,6 +4,7 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
5
5
|
import { TimeField } from '../../index';
|
|
6
6
|
import TimeFieldReadme from './TimeField.mdx';
|
|
7
|
+
import { timeFieldArgTypes } from './timeFieldAttributes';
|
|
7
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
8
9
|
export default {
|
|
9
10
|
title: 'Experimental/TimeField',
|
|
@@ -26,7 +27,7 @@ export default {
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
|
-
argTypes:
|
|
30
|
+
argTypes: timeFieldArgTypes
|
|
30
31
|
};
|
|
31
32
|
export var Default = function Default(args) {
|
|
32
33
|
return ___EmotionJSX(TimeField, _extends({}, args, {
|
|
@@ -0,0 +1,125 @@
|
|
|
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 timeFieldArgTypes = {
|
|
14
|
+
isDisabled: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
15
|
+
description: 'Whether the input is disabled.'
|
|
16
|
+
}),
|
|
17
|
+
isReadOnly: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
18
|
+
description: 'Whether the input can be selected but not changed by the user.'
|
|
19
|
+
}),
|
|
20
|
+
isRequired: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
21
|
+
description: 'Whether user input is required on the input before form submission.'
|
|
22
|
+
}),
|
|
23
|
+
isInvalid: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
24
|
+
description: 'Whether the input value is invalid.'
|
|
25
|
+
}),
|
|
26
|
+
autoFocus: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
27
|
+
description: 'Whether the element should receive focus on render.'
|
|
28
|
+
}),
|
|
29
|
+
shouldForceLeadingZeros: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
30
|
+
description: 'Whether to always show leading zeros in the hour field.'
|
|
31
|
+
}),
|
|
32
|
+
hourCycle: {
|
|
33
|
+
control: {
|
|
34
|
+
type: 'select'
|
|
35
|
+
},
|
|
36
|
+
options: [12, 24],
|
|
37
|
+
description: 'Whether to display the time in 12 or 24 hour format. Default is determined by the user\'s locale.'
|
|
38
|
+
},
|
|
39
|
+
granularity: {
|
|
40
|
+
control: {
|
|
41
|
+
type: 'select'
|
|
42
|
+
},
|
|
43
|
+
options: ['hour', 'minute', 'second'],
|
|
44
|
+
description: 'Determines the smallest unit that is displayed in the time picker.'
|
|
45
|
+
},
|
|
46
|
+
validationBehavior: {
|
|
47
|
+
control: {
|
|
48
|
+
type: 'select'
|
|
49
|
+
},
|
|
50
|
+
options: ['native', 'aria'],
|
|
51
|
+
description: 'Whether to use native HTML form validation or ARIA to mark the field as required or invalid.'
|
|
52
|
+
},
|
|
53
|
+
label: {
|
|
54
|
+
control: {
|
|
55
|
+
type: 'text'
|
|
56
|
+
},
|
|
57
|
+
description: 'The content to display as the label.'
|
|
58
|
+
},
|
|
59
|
+
name: {
|
|
60
|
+
control: {
|
|
61
|
+
type: 'text'
|
|
62
|
+
},
|
|
63
|
+
description: 'The name of the input element, used when submitting an HTML form.'
|
|
64
|
+
},
|
|
65
|
+
id: {
|
|
66
|
+
control: {
|
|
67
|
+
type: 'text'
|
|
68
|
+
},
|
|
69
|
+
description: 'The element\'s unique identifier.'
|
|
70
|
+
},
|
|
71
|
+
slot: {
|
|
72
|
+
control: {
|
|
73
|
+
type: 'text'
|
|
74
|
+
},
|
|
75
|
+
description: 'A slot name for the component, allowing it to receive props from a parent component.'
|
|
76
|
+
},
|
|
77
|
+
value: {
|
|
78
|
+
control: {
|
|
79
|
+
type: null
|
|
80
|
+
},
|
|
81
|
+
description: 'The current value (controlled). Accepts a TimeValue, string, or null.'
|
|
82
|
+
},
|
|
83
|
+
defaultValue: {
|
|
84
|
+
control: {
|
|
85
|
+
type: null
|
|
86
|
+
},
|
|
87
|
+
description: 'The default value (uncontrolled). Accepts a TimeValue, string, or null.'
|
|
88
|
+
},
|
|
89
|
+
placeholderValue: {
|
|
90
|
+
control: {
|
|
91
|
+
type: null
|
|
92
|
+
},
|
|
93
|
+
description: 'A placeholder time that influences the format of the placeholder shown when no value is selected.'
|
|
94
|
+
},
|
|
95
|
+
minValue: {
|
|
96
|
+
control: {
|
|
97
|
+
type: null
|
|
98
|
+
},
|
|
99
|
+
description: 'The minimum allowed time that a user may select.'
|
|
100
|
+
},
|
|
101
|
+
maxValue: {
|
|
102
|
+
control: {
|
|
103
|
+
type: null
|
|
104
|
+
},
|
|
105
|
+
description: 'The maximum allowed time that a user may select.'
|
|
106
|
+
},
|
|
107
|
+
onChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
108
|
+
description: 'Handler that is called when the value changes.'
|
|
109
|
+
}),
|
|
110
|
+
onFocus: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
111
|
+
description: 'Handler that is called when the element receives focus.'
|
|
112
|
+
}),
|
|
113
|
+
onBlur: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
114
|
+
description: 'Handler that is called when the element loses focus.'
|
|
115
|
+
}),
|
|
116
|
+
onFocusChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
117
|
+
description: 'Handler that is called when the element\'s focus status changes.'
|
|
118
|
+
}),
|
|
119
|
+
onKeyDown: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
120
|
+
description: 'Handler that is called when a key is pressed.'
|
|
121
|
+
}),
|
|
122
|
+
onKeyUp: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
123
|
+
description: 'Handler that is called when a key is released.'
|
|
124
|
+
})
|
|
125
|
+
};
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
1
9
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
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 { TimeZonePicker } from '../../index';
|
|
17
|
+
import { funcArg } from '../../utils/docUtils/docArgTypes';
|
|
6
18
|
import TimeZonePickerReadme from './TimeZonePicker.mdx';
|
|
7
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
8
20
|
export default {
|
|
@@ -14,6 +26,50 @@ export default {
|
|
|
14
26
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TimeZonePickerReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
15
27
|
}
|
|
16
28
|
}
|
|
29
|
+
},
|
|
30
|
+
argTypes: {
|
|
31
|
+
selectedKey: {
|
|
32
|
+
description: 'The key of the currently selected time zone item (controlled).',
|
|
33
|
+
control: {
|
|
34
|
+
type: 'text'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
inputValue: {
|
|
38
|
+
description: 'The current value of the search input field (controlled).',
|
|
39
|
+
control: {
|
|
40
|
+
type: 'text'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emptySearchText: {
|
|
44
|
+
description: 'Text displayed when the search query returns no results.',
|
|
45
|
+
control: {
|
|
46
|
+
type: 'text'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
locales: {
|
|
50
|
+
description: 'Locale string or array of locale strings used to format time zone display names.',
|
|
51
|
+
control: {
|
|
52
|
+
type: 'text'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
onSelectionChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
56
|
+
description: 'Callback invoked when the selected time zone changes.'
|
|
57
|
+
}),
|
|
58
|
+
onInputChange: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
59
|
+
description: 'Callback invoked when the search input value changes.'
|
|
60
|
+
}),
|
|
61
|
+
additionalTimeZones: {
|
|
62
|
+
description: 'An object mapping custom display labels to IANA time zone identifiers to include alongside the default list.',
|
|
63
|
+
control: {
|
|
64
|
+
type: null
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
localeOptions: {
|
|
68
|
+
description: 'Options object passed to Intl.DateTimeFormat for locale-sensitive time zone name formatting.',
|
|
69
|
+
control: {
|
|
70
|
+
type: null
|
|
71
|
+
}
|
|
72
|
+
}
|
|
17
73
|
}
|
|
18
74
|
};
|
|
19
75
|
export var Default = function Default(args) {
|
|
@@ -9,6 +9,7 @@ import { useGetTheme } from '../../hooks';
|
|
|
9
9
|
import { Box, Button, Icon, IconButton, Text, Tooltip, TooltipTrigger } from '../../index';
|
|
10
10
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
11
11
|
import TooltipTriggerReadme from './TooltipTrigger.mdx';
|
|
12
|
+
import { tooltipTriggerArgTypes } from './tooltipTriggerAttributes';
|
|
12
13
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
13
14
|
export default {
|
|
14
15
|
title: 'Components/TooltipTrigger',
|
|
@@ -19,7 +20,8 @@ export default {
|
|
|
19
20
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TooltipTriggerReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
}
|
|
23
|
+
},
|
|
24
|
+
argTypes: tooltipTriggerArgTypes
|
|
23
25
|
};
|
|
24
26
|
export var Default = function Default(args) {
|
|
25
27
|
return ___EmotionJSX(TooltipTrigger, args, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Tooltip Content"));
|