@pingux/astro 2.128.0 → 2.129.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.d.ts +1 -4
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.js +4 -1
- package/lib/cjs/components/AIComponents/Prompt/Prompt.stories.js +4 -1
- package/lib/cjs/components/AIComponents/PromptInput/PromptInput.stories.d.ts +1 -16
- package/lib/cjs/components/AIComponents/PromptInput/PromptInput.stories.js +2 -4
- package/lib/cjs/components/AIComponents/Response/Response.stories.d.ts +2 -13
- package/lib/cjs/components/AIComponents/Response/Response.stories.js +3 -5
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.d.ts +1 -4
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.js +2 -1
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.d.ts +22 -3
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +35 -21
- package/lib/cjs/components/ArrayField/ArrayField.stories.d.ts +2 -6
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +28 -21
- package/lib/cjs/components/AstroProvider/AstroProvider.stories.js +2 -1
- package/lib/cjs/components/Avatar/Avatar.stories.js +20 -3
- package/lib/cjs/components/Badge/Badge.stories.js +26 -22
- package/lib/cjs/components/Box/Box.stories.d.ts +43 -0
- package/lib/cjs/components/Box/Box.stories.js +9 -4
- package/lib/cjs/components/Bracket/Bracket.stories.js +32 -5
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +15 -12
- package/lib/cjs/components/Button/Button.stories.d.ts +6 -23
- package/lib/cjs/components/Button/Button.stories.js +30 -26
- package/lib/cjs/components/ButtonBar/ButtonBar.stories.js +14 -11
- package/lib/cjs/components/Callout/Callout.stories.js +15 -12
- package/lib/cjs/components/Card/Card.stories.d.ts +3 -3
- package/lib/cjs/components/Card/Card.stories.js +20 -15
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +28 -18
- package/lib/cjs/components/CodeEditor/CodeEditor.stories.d.ts +0 -3
- package/lib/cjs/components/CodeEditor/CodeEditor.stories.js +10 -12
- package/lib/cjs/components/CodeView/CodeView.stories.js +22 -15
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -3
- package/lib/cjs/components/ColorField/ColorField.stories.js +5 -3
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +4 -4
- package/lib/cjs/components/CopyText/CopyText.stories.d.ts +1 -1
- package/lib/cjs/components/CopyText/CopyText.stories.js +5 -0
- package/lib/cjs/components/DataTable/DataTable.stories.d.ts +3 -180
- package/lib/cjs/components/DataTable/DataTable.stories.js +10 -11
- package/lib/cjs/components/DatePicker/DatePicker.stories.js +3 -5
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.d.ts +19 -4
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +18 -7
- package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.d.ts +3 -3
- package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.js +10 -9
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +15 -18
- package/lib/cjs/components/Footer/Footer.stories.js +2 -1
- package/lib/cjs/components/Grid/Grid.stories.js +32 -7
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +13 -8
- package/lib/cjs/components/HelpHint/HelpHint.styles.js +2 -1
- package/lib/cjs/components/Icon/Icon.stories.js +19 -7
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +7 -3
- package/lib/cjs/components/IconButton/IconButton.stories.d.ts +3 -1
- package/lib/cjs/components/IconButton/IconButton.stories.js +17 -8
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +7 -0
- package/lib/cjs/components/IconWrapper/IconWrapper.stories.js +6 -3
- package/lib/cjs/components/Image/Image.stories.d.ts +1 -33
- package/lib/cjs/components/Image/Image.stories.js +28 -13
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +10 -13
- package/lib/cjs/components/Input/Input.stories.d.ts +1 -14
- package/lib/cjs/components/Input/Input.styles.js +1 -1
- package/lib/cjs/components/Label/Label.stories.js +3 -3
- package/lib/cjs/components/Link/Link.stories.js +5 -0
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +23 -17
- package/lib/cjs/components/ListView/ListView.stories.d.ts +1 -132
- package/lib/cjs/components/ListView/ListView.stories.js +11 -13
- package/lib/cjs/components/ListViewItem/ListViewItem.stories.js +2 -1
- package/lib/cjs/components/Loader/Loader.stories.js +8 -3
- package/lib/cjs/components/Messages/Messages.stories.d.ts +10 -29
- package/lib/cjs/components/Messages/Messages.stories.js +40 -32
- package/lib/cjs/components/Modal/Modal.stories.js +2 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +2 -4
- package/lib/cjs/components/NavBar/NavBar.stories.js +2 -1
- package/lib/cjs/components/NavSideBar/NavSideBar.stories.js +2 -1
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +2 -4
- package/lib/cjs/components/NumberField/NumberField.stories.js +25 -27
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +2 -4
- package/lib/cjs/components/PageHeader/PageHeader.stories.js +14 -12
- package/lib/cjs/components/Pagination/Pagination.stories.d.ts +1 -33
- package/lib/cjs/components/Pagination/Pagination.stories.js +2 -1
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +10 -6
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderCloseButton.stories.js +2 -1
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderMenu.stories.js +2 -1
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderSwitchField.stories.js +2 -1
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +0 -3
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +22 -15
- package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +0 -3
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.d.ts +5 -18
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +18 -12
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.d.ts +1 -93
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +9 -12
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +5 -0
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +18 -4
- package/lib/cjs/components/SearchField/SearchField.stories.js +8 -6
- package/lib/cjs/components/SelectField/Select.styles.js +1 -0
- package/lib/cjs/components/SelectField/SelectField.stories.d.ts +32 -24
- package/lib/cjs/components/SelectField/SelectField.stories.js +49 -27
- package/lib/cjs/components/Separator/Separator.stories.d.ts +3 -1
- package/lib/cjs/components/Separator/Separator.stories.js +5 -4
- package/lib/cjs/components/Skeleton/Skeleton.stories.d.ts +1 -1
- package/lib/cjs/components/Skeleton/Skeleton.stories.js +13 -8
- package/lib/cjs/components/SliderField/SliderField.stories.d.ts +2 -2
- package/lib/cjs/components/SliderField/SliderField.stories.js +6 -6
- package/lib/cjs/components/Stepper/Stepper.stories.js +24 -16
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +13 -15
- package/lib/cjs/components/Table/Table.stories.js +13 -2
- package/lib/cjs/components/Tabs/Tabs.stories.js +30 -4
- package/lib/cjs/components/Text/Text.stories.d.ts +2 -1
- package/lib/cjs/components/Text/Text.stories.js +28 -17
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.d.ts +11 -35
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +30 -33
- package/lib/cjs/components/TextField/TextField.stories.js +44 -47
- package/lib/cjs/components/TimeField/TimeField.stories.d.ts +1 -25
- package/lib/cjs/components/TimeField/TimeField.stories.js +3 -6
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +7 -6
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +5 -3
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +34 -27
- package/lib/cjs/components/TreeView/TreeView.stories.js +2 -4
- package/lib/cjs/recipes/AccordionCard.stories.js +4 -1
- package/lib/cjs/recipes/AttributeMapping.stories.js +4 -1
- package/lib/cjs/recipes/CollapsiblePanel.stories.js +4 -1
- package/lib/cjs/recipes/ConditionFilter.stories.js +2 -1
- package/lib/cjs/recipes/CopyToClipboard.stories.js +4 -1
- package/lib/cjs/recipes/CountryPicker.stories.js +4 -1
- package/lib/cjs/recipes/DataVisualization.stories.js +4 -1
- package/lib/cjs/recipes/DateTimeRangePicker.stories.js +4 -1
- package/lib/cjs/recipes/InlineEditing.stories.js +4 -1
- package/lib/cjs/recipes/ListAndPanel.stories.js +2 -1
- package/lib/cjs/recipes/LogoTabs.stories.js +4 -1
- package/lib/cjs/recipes/MaskedValue.stories.js +2 -1
- package/lib/cjs/recipes/MultipagePopup.stories.js +2 -1
- package/lib/cjs/recipes/NoAccess.stories.d.ts +1 -4
- package/lib/cjs/recipes/NoAccess.stories.js +4 -1
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +4 -1
- package/lib/cjs/recipes/PanelContent.stories.js +2 -1
- package/lib/cjs/recipes/ScrollableListView.stories.js +4 -1
- package/lib/cjs/recipes/Slider.stories.js +4 -1
- package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +4 -1
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +4 -1
- package/lib/cjs/styles/templates/Nav/Nav.stories.js +2 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +8 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +8 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +11 -2
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +7 -1
- package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.d.ts +4 -2
- package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.js +4 -2
- package/lib/cjs/styles/themes/next-gen/variants/tooltip.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/tooltip.js +3 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +5 -2
- package/lib/cjs/types/tooltipTrigger.d.ts +1 -0
- package/lib/components/AIComponents/AIPanel/AIPanel.stories.js +4 -1
- package/lib/components/AIComponents/Prompt/Prompt.stories.js +4 -1
- package/lib/components/AIComponents/PromptInput/PromptInput.stories.js +2 -4
- package/lib/components/AIComponents/Response/Response.stories.js +3 -5
- package/lib/components/AIComponents/Suggestions/Suggestions.stories.js +2 -1
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +26 -12
- package/lib/components/ArrayField/ArrayField.stories.js +28 -21
- package/lib/components/AstroProvider/AstroProvider.stories.js +2 -1
- package/lib/components/Avatar/Avatar.stories.js +20 -3
- package/lib/components/Badge/Badge.stories.js +26 -22
- package/lib/components/Box/Box.stories.js +8 -3
- package/lib/components/Bracket/Bracket.stories.js +32 -5
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +9 -6
- package/lib/components/Button/Button.stories.js +30 -26
- package/lib/components/ButtonBar/ButtonBar.stories.js +14 -11
- package/lib/components/Callout/Callout.stories.js +15 -12
- package/lib/components/Card/Card.stories.js +20 -15
- package/lib/components/CheckboxField/CheckboxField.stories.js +28 -18
- package/lib/components/CodeEditor/CodeEditor.stories.js +10 -12
- package/lib/components/CodeView/CodeView.stories.js +22 -15
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -3
- package/lib/components/ColorField/ColorField.stories.js +5 -3
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +4 -4
- package/lib/components/CopyText/CopyText.stories.js +5 -0
- package/lib/components/DataTable/DataTable.stories.js +10 -11
- package/lib/components/DatePicker/DatePicker.stories.js +3 -5
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +17 -6
- package/lib/components/FieldHelperText/FieldHelperText.stories.js +10 -9
- package/lib/components/FileInputField/FileInputField.stories.js +15 -18
- package/lib/components/Footer/Footer.stories.js +2 -1
- package/lib/components/Grid/Grid.stories.js +32 -7
- package/lib/components/HelpHint/HelpHint.stories.js +13 -8
- package/lib/components/HelpHint/HelpHint.styles.js +2 -1
- package/lib/components/Icon/Icon.stories.js +18 -6
- package/lib/components/IconBadge/IconBadge.stories.js +7 -3
- package/lib/components/IconButton/IconButton.stories.js +17 -8
- package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +7 -0
- package/lib/components/IconWrapper/IconWrapper.stories.js +6 -3
- package/lib/components/Image/Image.stories.js +27 -12
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +10 -13
- package/lib/components/Input/Input.styles.js +1 -1
- package/lib/components/Label/Label.stories.js +3 -3
- package/lib/components/Link/Link.stories.js +5 -0
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +22 -16
- package/lib/components/ListView/ListView.stories.js +4 -6
- package/lib/components/ListViewItem/ListViewItem.stories.js +2 -1
- package/lib/components/Loader/Loader.stories.js +8 -3
- package/lib/components/Messages/Messages.stories.js +28 -20
- package/lib/components/Modal/Modal.stories.js +2 -1
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +2 -4
- package/lib/components/NavBar/NavBar.stories.js +2 -1
- package/lib/components/NavSideBar/NavSideBar.stories.js +2 -1
- package/lib/components/NavigationHeader/NavigationHeader.stories.js +2 -4
- package/lib/components/NumberField/NumberField.stories.js +25 -27
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +2 -4
- package/lib/components/PageHeader/PageHeader.stories.js +14 -12
- package/lib/components/Pagination/Pagination.stories.js +2 -1
- package/lib/components/PanelHeader/PanelHeader.stories.js +10 -6
- package/lib/components/PanelHeader/controls/PanelHeaderCloseButton.stories.js +2 -1
- package/lib/components/PanelHeader/controls/PanelHeaderMenu.stories.js +2 -1
- package/lib/components/PanelHeader/controls/PanelHeaderSwitchField.stories.js +2 -1
- package/lib/components/PasswordField/PasswordField.stories.js +0 -3
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +22 -15
- package/lib/components/ProgressBar/ProgressBar.stories.js +0 -3
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +18 -12
- package/lib/components/RangeCalendar/RangeCalendar.stories.js +9 -12
- package/lib/components/RequirementsList/RequirementsList.stories.js +5 -0
- package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +17 -3
- package/lib/components/SearchField/SearchField.stories.js +8 -6
- package/lib/components/SelectField/Select.styles.js +1 -0
- package/lib/components/SelectField/SelectField.stories.js +49 -27
- package/lib/components/Separator/Separator.stories.js +5 -4
- package/lib/components/Skeleton/Skeleton.stories.js +13 -8
- package/lib/components/SliderField/SliderField.stories.js +6 -6
- package/lib/components/Stepper/Stepper.stories.js +13 -5
- package/lib/components/SwitchField/SwitchField.stories.js +13 -15
- package/lib/components/Table/Table.stories.js +13 -2
- package/lib/components/Tabs/Tabs.stories.js +29 -3
- package/lib/components/Text/Text.stories.js +28 -17
- package/lib/components/TextAreaField/TextAreaField.stories.js +30 -33
- package/lib/components/TextField/TextField.stories.js +44 -47
- package/lib/components/TimeField/TimeField.stories.js +3 -6
- package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +7 -6
- package/lib/components/TooltipTrigger/TooltipTrigger.js +5 -3
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +34 -27
- package/lib/components/TreeView/TreeView.stories.js +2 -4
- package/lib/recipes/AccordionCard.stories.js +4 -1
- package/lib/recipes/AttributeMapping.stories.js +4 -1
- package/lib/recipes/CollapsiblePanel.stories.js +4 -1
- package/lib/recipes/ConditionFilter.stories.js +2 -1
- package/lib/recipes/CopyToClipboard.stories.js +4 -1
- package/lib/recipes/CountryPicker.stories.js +4 -1
- package/lib/recipes/DataVisualization.stories.js +4 -1
- package/lib/recipes/DateTimeRangePicker.stories.js +4 -1
- package/lib/recipes/InlineEditing.stories.js +4 -1
- package/lib/recipes/ListAndPanel.stories.js +2 -1
- package/lib/recipes/LogoTabs.stories.js +4 -1
- package/lib/recipes/MaskedValue.stories.js +2 -1
- package/lib/recipes/MultipagePopup.stories.js +2 -1
- package/lib/recipes/NoAccess.stories.js +4 -1
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +4 -1
- package/lib/recipes/PanelContent.stories.js +2 -1
- package/lib/recipes/ScrollableListView.stories.js +4 -1
- package/lib/recipes/Slider.stories.js +4 -1
- package/lib/recipes/TrialExperienceIndustryButtons.stories.js +4 -1
- package/lib/recipes/TrialExperienceStatusBar.stories.js +4 -1
- package/lib/styles/templates/Nav/Nav.stories.js +2 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +8 -0
- package/lib/styles/themes/next-gen/colors/colors.js +1 -1
- package/lib/styles/themes/next-gen/variants/button.js +7 -1
- package/lib/styles/themes/next-gen/variants/popoverMenu.js +4 -2
- package/lib/styles/themes/next-gen/variants/tooltip.js +3 -2
- package/package.json +2 -1
@@ -6,10 +6,12 @@ _Object$defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
7
7
|
});
|
8
8
|
exports["default"] = exports.Default = exports.CustomWidth = exports.CustomStyle = void 0;
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
9
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
10
11
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
11
12
|
var _entries = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/entries"));
|
12
13
|
var _react = _interopRequireDefault(require("react"));
|
14
|
+
var _storybookAddonDesigns = require("storybook-addon-designs");
|
13
15
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
14
16
|
var _index = require("../../index");
|
15
17
|
var _Text = _interopRequireDefault(require("./Text.mdx"));
|
@@ -17,36 +19,42 @@ var _react2 = require("@emotion/react");
|
|
17
19
|
var _default = {
|
18
20
|
title: 'Components/Text',
|
19
21
|
component: _index.Text,
|
22
|
+
decorators: [_storybookAddonDesigns.withDesign],
|
20
23
|
parameters: {
|
21
24
|
docs: {
|
22
25
|
page: function page() {
|
23
26
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Text["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
24
27
|
}
|
28
|
+
},
|
29
|
+
codesandbox: {
|
30
|
+
mapComponent: {
|
31
|
+
'@pingux/astro': ['Box', 'Text', 'Separator']
|
32
|
+
}
|
25
33
|
}
|
26
34
|
},
|
27
35
|
argTypes: {
|
36
|
+
as: {
|
37
|
+
control: false
|
38
|
+
},
|
39
|
+
role: {
|
40
|
+
control: false
|
41
|
+
},
|
28
42
|
variant: {
|
29
|
-
control:
|
30
|
-
type: 'none'
|
31
|
-
},
|
43
|
+
control: false,
|
32
44
|
description: 'Text variant.'
|
33
45
|
},
|
34
46
|
children: {
|
35
|
-
control:
|
36
|
-
type: 'none'
|
37
|
-
},
|
47
|
+
control: false,
|
38
48
|
description: 'Text value.'
|
39
49
|
},
|
40
50
|
color: {
|
41
51
|
control: {
|
42
|
-
type: '
|
52
|
+
type: 'text'
|
43
53
|
},
|
44
54
|
description: 'Text color.'
|
45
55
|
},
|
46
56
|
bg: {
|
47
|
-
control:
|
48
|
-
type: 'none'
|
49
|
-
},
|
57
|
+
control: false,
|
50
58
|
description: 'Background color.'
|
51
59
|
}
|
52
60
|
}
|
@@ -426,15 +434,18 @@ var Default = function Default() {
|
|
426
434
|
}))));
|
427
435
|
};
|
428
436
|
exports.Default = Default;
|
429
|
-
|
437
|
+
Default.parameters = {
|
438
|
+
codesandbox: false
|
439
|
+
};
|
440
|
+
var CustomWidth = function CustomWidth(args) {
|
430
441
|
return (0, _react2.jsx)(_index.Box, {
|
431
442
|
width: 200
|
432
|
-
}, (0, _react2.jsx)(_index.Text, {
|
443
|
+
}, (0, _react2.jsx)(_index.Text, (0, _extends2["default"])({
|
433
444
|
p: "xl"
|
434
|
-
}, "superlongtextinonelinewithnowhitespacessoitcanbelongerthatanywidth"));
|
445
|
+
}, args), "superlongtextinonelinewithnowhitespacessoitcanbelongerthatanywidth"));
|
435
446
|
};
|
436
447
|
exports.CustomWidth = CustomWidth;
|
437
|
-
var CustomStyle = function CustomStyle() {
|
448
|
+
var CustomStyle = function CustomStyle(args) {
|
438
449
|
var textProps = {
|
439
450
|
fontFamily: 'times',
|
440
451
|
fontSize: 'md',
|
@@ -448,11 +459,11 @@ var CustomStyle = function CustomStyle() {
|
|
448
459
|
return (0, _react2.jsx)(_index.Box, {
|
449
460
|
p: "xx",
|
450
461
|
gap: "md"
|
451
|
-
}, (0, _react2.jsx)(_index.Text, {
|
462
|
+
}, (0, _react2.jsx)(_index.Text, (0, _extends2["default"])({}, args, {
|
452
463
|
variant: "title"
|
453
|
-
}, "The Text component allows typography style props to be passed in directly."), (0, _react2.jsx)(_index.Text, textProps, loremText), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(_index.Text, {
|
464
|
+
}), "The Text component allows typography style props to be passed in directly."), (0, _react2.jsx)(_index.Text, textProps, loremText), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(_index.Text, (0, _extends2["default"])({}, args, {
|
454
465
|
variant: "title"
|
455
|
-
}, "Typography styles can also be passed in through the sx prop for the same result."), (0, _react2.jsx)(_index.Text, {
|
466
|
+
}), "Typography styles can also be passed in through the sx prop for the same result."), (0, _react2.jsx)(_index.Text, {
|
456
467
|
sx: textProps
|
457
468
|
}, loremText));
|
458
469
|
};
|
@@ -1,39 +1,15 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
declare const _default:
|
3
|
-
title: string;
|
4
|
-
component: React.ForwardRefExoticComponent<import("../../types/TextAreaField").TextAreaFieldProps & React.RefAttributes<HTMLInputElement>>;
|
5
|
-
parameters: {
|
6
|
-
docs: {
|
7
|
-
page: () => React.JSX.Element;
|
8
|
-
source: {
|
9
|
-
type: string;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
a11y: {
|
13
|
-
config: {
|
14
|
-
rules: {
|
15
|
-
id: string;
|
16
|
-
enabled: boolean;
|
17
|
-
}[];
|
18
|
-
};
|
19
|
-
};
|
20
|
-
};
|
21
|
-
argTypes: any;
|
22
|
-
args: {
|
23
|
-
label: string;
|
24
|
-
labelMode: string;
|
25
|
-
};
|
26
|
-
};
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
27
3
|
export default _default;
|
28
4
|
export declare const Default: (args: any) => React.JSX.Element;
|
29
|
-
export declare const WithSlots: (
|
30
|
-
export declare const FloatLabel: () => React.JSX.Element;
|
5
|
+
export declare const WithSlots: () => React.JSX.Element;
|
6
|
+
export declare const FloatLabel: (args: any) => React.JSX.Element;
|
31
7
|
export declare const Controlled: () => React.JSX.Element;
|
32
|
-
export declare const Disabled: () => React.JSX.Element;
|
33
|
-
export declare const ReadOnly: () => React.JSX.Element;
|
34
|
-
export declare const Required: () => React.JSX.Element;
|
35
|
-
export declare const Rows: () => React.JSX.Element;
|
36
|
-
export declare const Unresizable: () => React.JSX.Element;
|
37
|
-
export declare const Error: () => React.JSX.Element;
|
38
|
-
export declare const WithoutStatusIndicator: () => React.JSX.Element;
|
39
|
-
export declare const MaxLength: () => React.JSX.Element;
|
8
|
+
export declare const Disabled: (args: any) => React.JSX.Element;
|
9
|
+
export declare const ReadOnly: (args: any) => React.JSX.Element;
|
10
|
+
export declare const Required: (args: any) => React.JSX.Element;
|
11
|
+
export declare const Rows: (args: any) => React.JSX.Element;
|
12
|
+
export declare const Unresizable: (args: any) => React.JSX.Element;
|
13
|
+
export declare const Error: (args: any) => React.JSX.Element;
|
14
|
+
export declare const WithoutStatusIndicator: (args: any) => React.JSX.Element;
|
15
|
+
export declare const MaxLength: (args: any) => React.JSX.Element;
|
@@ -40,9 +40,6 @@ var _default = {
|
|
40
40
|
docs: {
|
41
41
|
page: function page() {
|
42
42
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_TextAreaField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
43
|
-
},
|
44
|
-
source: {
|
45
|
-
type: 'code'
|
46
43
|
}
|
47
44
|
},
|
48
45
|
a11y: {
|
@@ -112,7 +109,7 @@ var Default = function Default(args) {
|
|
112
109
|
return (0, _react2.jsx)(_index.TextAreaField, args);
|
113
110
|
};
|
114
111
|
exports.Default = Default;
|
115
|
-
var WithSlots = function WithSlots(
|
112
|
+
var WithSlots = function WithSlots() {
|
116
113
|
return (
|
117
114
|
// This is an example of a slot that can be passed into the component
|
118
115
|
// const IconSlot = (
|
@@ -122,19 +119,19 @@ var WithSlots = function WithSlots(args) {
|
|
122
119
|
// />
|
123
120
|
// </Box>
|
124
121
|
// );
|
125
|
-
(0, _react2.jsx)(_index.TextAreaField,
|
122
|
+
(0, _react2.jsx)(_index.TextAreaField, {
|
126
123
|
slots: {
|
127
124
|
inContainer: IconSlot
|
128
125
|
}
|
129
|
-
})
|
126
|
+
})
|
130
127
|
);
|
131
128
|
};
|
132
129
|
exports.WithSlots = WithSlots;
|
133
|
-
var FloatLabel = function FloatLabel() {
|
134
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
130
|
+
var FloatLabel = function FloatLabel(args) {
|
131
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
135
132
|
label: "Example label",
|
136
133
|
labelMode: "float"
|
137
|
-
});
|
134
|
+
}));
|
138
135
|
};
|
139
136
|
exports.FloatLabel = FloatLabel;
|
140
137
|
var Controlled = function Controlled() {
|
@@ -151,62 +148,62 @@ var Controlled = function Controlled() {
|
|
151
148
|
});
|
152
149
|
};
|
153
150
|
exports.Controlled = Controlled;
|
154
|
-
var Disabled = function Disabled() {
|
155
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
151
|
+
var Disabled = function Disabled(args) {
|
152
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
156
153
|
isDisabled: true,
|
157
154
|
label: "Example Label",
|
158
155
|
value: "This is disabled"
|
159
|
-
});
|
156
|
+
}));
|
160
157
|
};
|
161
158
|
exports.Disabled = Disabled;
|
162
|
-
var ReadOnly = function ReadOnly() {
|
163
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
159
|
+
var ReadOnly = function ReadOnly(args) {
|
160
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
164
161
|
isReadOnly: true,
|
165
162
|
label: "Example Label",
|
166
163
|
value: "This is read only"
|
167
|
-
});
|
164
|
+
}));
|
168
165
|
};
|
169
166
|
exports.ReadOnly = ReadOnly;
|
170
|
-
var Required = function Required() {
|
171
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
167
|
+
var Required = function Required(args) {
|
168
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
172
169
|
isRequired: true,
|
173
170
|
label: "Example Label"
|
174
|
-
});
|
171
|
+
}));
|
175
172
|
};
|
176
173
|
exports.Required = Required;
|
177
|
-
var Rows = function Rows() {
|
178
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
174
|
+
var Rows = function Rows(args) {
|
175
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
179
176
|
label: "Example label",
|
180
177
|
rows: 5
|
181
|
-
});
|
178
|
+
}));
|
182
179
|
};
|
183
180
|
exports.Rows = Rows;
|
184
|
-
var Unresizable = function Unresizable() {
|
185
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
181
|
+
var Unresizable = function Unresizable(args) {
|
182
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
186
183
|
isUnresizable: true,
|
187
184
|
label: "Example label"
|
188
|
-
});
|
185
|
+
}));
|
189
186
|
};
|
190
187
|
exports.Unresizable = Unresizable;
|
191
|
-
var Error = function Error() {
|
192
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
188
|
+
var Error = function Error(args) {
|
189
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
193
190
|
helperText: "Here is some helpful text...",
|
194
191
|
label: "Example Label",
|
195
192
|
status: "error"
|
196
|
-
});
|
193
|
+
}));
|
197
194
|
};
|
198
195
|
exports.Error = Error;
|
199
|
-
var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
200
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
196
|
+
var WithoutStatusIndicator = function WithoutStatusIndicator(args) {
|
197
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
201
198
|
label: "Example Label",
|
202
199
|
hasNoStatusIndicator: true
|
203
|
-
});
|
200
|
+
}));
|
204
201
|
};
|
205
202
|
exports.WithoutStatusIndicator = WithoutStatusIndicator;
|
206
|
-
var MaxLength = function MaxLength() {
|
207
|
-
return (0, _react2.jsx)(_index.TextAreaField, {
|
203
|
+
var MaxLength = function MaxLength(args) {
|
204
|
+
return (0, _react2.jsx)(_index.TextAreaField, (0, _extends2["default"])({}, args, {
|
208
205
|
label: "Example label",
|
209
206
|
maxLength: 9
|
210
|
-
});
|
207
|
+
}));
|
211
208
|
};
|
212
209
|
exports.MaxLength = MaxLength;
|
@@ -44,9 +44,6 @@ var _default = {
|
|
44
44
|
docs: {
|
45
45
|
page: function page() {
|
46
46
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_TextField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
47
|
-
},
|
48
|
-
source: {
|
49
|
-
type: 'code'
|
50
47
|
}
|
51
48
|
}
|
52
49
|
},
|
@@ -87,22 +84,22 @@ var Default = function Default(_ref) {
|
|
87
84
|
}, args));
|
88
85
|
};
|
89
86
|
exports.Default = Default;
|
90
|
-
var SmallVariant = function SmallVariant() {
|
91
|
-
return (0, _react2.jsx)(_index.TextField, {
|
87
|
+
var SmallVariant = function SmallVariant(args) {
|
88
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
92
89
|
id: "small-variant-id",
|
93
90
|
name: "custom-name",
|
94
91
|
label: "Example Label",
|
95
92
|
controlProps: {
|
96
93
|
variant: 'input.small'
|
97
94
|
}
|
98
|
-
});
|
95
|
+
}));
|
99
96
|
};
|
100
97
|
exports.SmallVariant = SmallVariant;
|
101
|
-
var FloatLabel = function FloatLabel() {
|
102
|
-
return (0, _react2.jsx)(_index.TextField, {
|
98
|
+
var FloatLabel = function FloatLabel(args) {
|
99
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
103
100
|
label: "Example Label",
|
104
101
|
labelMode: "float"
|
105
|
-
});
|
102
|
+
}));
|
106
103
|
};
|
107
104
|
|
108
105
|
// Added to bypass color contrast issue
|
@@ -117,18 +114,18 @@ FloatLabel.parameters = {
|
|
117
114
|
}
|
118
115
|
}
|
119
116
|
};
|
120
|
-
var LeftLabel = function LeftLabel() {
|
117
|
+
var LeftLabel = function LeftLabel(args) {
|
121
118
|
return (0, _react2.jsx)(_index.Box, {
|
122
119
|
gap: "xl",
|
123
120
|
width: "100%"
|
124
|
-
}, (0, _react2.jsx)(_index.TextField, {
|
121
|
+
}, (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
125
122
|
helperText: "Here is some helpful text...",
|
126
123
|
label: "Example Label",
|
127
124
|
labelMode: "left"
|
128
|
-
}), (0, _react2.jsx)(_index.TextField, {
|
125
|
+
})), (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
129
126
|
label: "Example Label that is much longer than the previous one",
|
130
127
|
labelMode: "left"
|
131
|
-
}), (0, _react2.jsx)(_index.TextField, {
|
128
|
+
})), (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
132
129
|
label: "Example label with set width",
|
133
130
|
labelMode: "left",
|
134
131
|
containerProps: {
|
@@ -136,7 +133,7 @@ var LeftLabel = function LeftLabel() {
|
|
136
133
|
gridTemplateColumns: '120px auto'
|
137
134
|
}
|
138
135
|
}
|
139
|
-
}));
|
136
|
+
})));
|
140
137
|
};
|
141
138
|
exports.LeftLabel = LeftLabel;
|
142
139
|
LeftLabel.parameters = {
|
@@ -160,33 +157,33 @@ var Controlled = function Controlled() {
|
|
160
157
|
});
|
161
158
|
};
|
162
159
|
exports.Controlled = Controlled;
|
163
|
-
var Password = function Password() {
|
164
|
-
return (0, _react2.jsx)(_index.TextField, {
|
160
|
+
var Password = function Password(args) {
|
161
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
165
162
|
label: "Example Label",
|
166
163
|
type: "password"
|
167
|
-
});
|
164
|
+
}));
|
168
165
|
};
|
169
166
|
exports.Password = Password;
|
170
|
-
var Disabled = function Disabled() {
|
171
|
-
return (0, _react2.jsx)(_index.TextField, {
|
167
|
+
var Disabled = function Disabled(args) {
|
168
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
172
169
|
isDisabled: true,
|
173
170
|
label: "Example Label"
|
174
|
-
});
|
171
|
+
}));
|
175
172
|
};
|
176
173
|
exports.Disabled = Disabled;
|
177
|
-
var ReadOnly = function ReadOnly() {
|
178
|
-
return (0, _react2.jsx)(_index.TextField, {
|
174
|
+
var ReadOnly = function ReadOnly(args) {
|
175
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
179
176
|
isReadOnly: true,
|
180
177
|
label: "Example Label",
|
181
178
|
value: "This is read only"
|
182
|
-
});
|
179
|
+
}));
|
183
180
|
};
|
184
181
|
exports.ReadOnly = ReadOnly;
|
185
|
-
var Required = function Required() {
|
186
|
-
return (0, _react2.jsx)(_index.TextField, {
|
182
|
+
var Required = function Required(args) {
|
183
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
187
184
|
isRequired: true,
|
188
185
|
label: "Example Label"
|
189
|
-
});
|
186
|
+
}));
|
190
187
|
};
|
191
188
|
exports.Required = Required;
|
192
189
|
var DynamicRequired = function DynamicRequired() {
|
@@ -204,41 +201,41 @@ var DynamicRequired = function DynamicRequired() {
|
|
204
201
|
});
|
205
202
|
};
|
206
203
|
exports.DynamicRequired = DynamicRequired;
|
207
|
-
var Error = function Error() {
|
208
|
-
return (0, _react2.jsx)(_index.TextField, {
|
204
|
+
var Error = function Error(args) {
|
205
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
209
206
|
helperText: "Here is some helpful text...",
|
210
207
|
label: "Example Label",
|
211
208
|
status: "error"
|
212
|
-
});
|
209
|
+
}));
|
213
210
|
};
|
214
211
|
exports.Error = Error;
|
215
|
-
var Success = function Success() {
|
216
|
-
return (0, _react2.jsx)(_index.TextField, {
|
212
|
+
var Success = function Success(args) {
|
213
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
217
214
|
helperText: "Here is some helpful text...",
|
218
215
|
label: "Example Label",
|
219
216
|
status: "success"
|
220
|
-
});
|
217
|
+
}));
|
221
218
|
};
|
222
219
|
exports.Success = Success;
|
223
|
-
var Warning = function Warning() {
|
224
|
-
return (0, _react2.jsx)(_index.TextField, {
|
220
|
+
var Warning = function Warning(args) {
|
221
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
225
222
|
helperText: "Here is some helpful text...",
|
226
223
|
label: "Example Label",
|
227
224
|
status: "warning"
|
228
|
-
});
|
225
|
+
}));
|
229
226
|
};
|
230
227
|
exports.Warning = Warning;
|
231
|
-
var WithHelpHint = function WithHelpHint() {
|
232
|
-
return (0, _react2.jsx)(_index.TextField, {
|
228
|
+
var WithHelpHint = function WithHelpHint(args) {
|
229
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
233
230
|
id: "with-help-hint-id",
|
234
231
|
name: "custom-name",
|
235
232
|
hintText: "Example Hint",
|
236
233
|
label: "Example Label"
|
237
|
-
});
|
234
|
+
}));
|
238
235
|
};
|
239
236
|
exports.WithHelpHint = WithHelpHint;
|
240
|
-
var WithHelpHintCustomWidth = function WithHelpHintCustomWidth() {
|
241
|
-
return (0, _react2.jsx)(_index.TextField, {
|
237
|
+
var WithHelpHintCustomWidth = function WithHelpHintCustomWidth(args) {
|
238
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
242
239
|
id: "with-help-hint-id",
|
243
240
|
name: "custom-name",
|
244
241
|
hintText: "Example Hint",
|
@@ -246,7 +243,7 @@ var WithHelpHintCustomWidth = function WithHelpHintCustomWidth() {
|
|
246
243
|
helpHintProps: {
|
247
244
|
width: '300px'
|
248
245
|
}
|
249
|
-
});
|
246
|
+
}));
|
250
247
|
};
|
251
248
|
|
252
249
|
// Added to bypass color contrast issue
|
@@ -261,18 +258,18 @@ WithHelpHintCustomWidth.parameters = {
|
|
261
258
|
}
|
262
259
|
}
|
263
260
|
};
|
264
|
-
var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
265
|
-
return (0, _react2.jsx)(_index.TextField, {
|
261
|
+
var WithoutStatusIndicator = function WithoutStatusIndicator(args) {
|
262
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
266
263
|
label: "Example Label",
|
267
264
|
hasNoStatusIndicator: true
|
268
|
-
});
|
265
|
+
}));
|
269
266
|
};
|
270
267
|
exports.WithoutStatusIndicator = WithoutStatusIndicator;
|
271
|
-
var MaxLength = function MaxLength() {
|
272
|
-
return (0, _react2.jsx)(_index.TextField, {
|
268
|
+
var MaxLength = function MaxLength(args) {
|
269
|
+
return (0, _react2.jsx)(_index.TextField, (0, _extends2["default"])({}, args, {
|
273
270
|
label: "Example label",
|
274
271
|
maxLength: 9
|
275
|
-
});
|
272
|
+
}));
|
276
273
|
};
|
277
274
|
exports.MaxLength = MaxLength;
|
278
275
|
var WithSlots = function WithSlots() {
|
@@ -1,30 +1,6 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { StoryFn } from '@storybook/react';
|
3
2
|
import { TimeFieldProps } from '../../types';
|
4
|
-
declare const _default:
|
5
|
-
title: string;
|
6
|
-
component: React.ForwardRefExoticComponent<TimeFieldProps & React.RefAttributes<HTMLDivElement>>;
|
7
|
-
parameters: {
|
8
|
-
actions: {
|
9
|
-
argTypesRegex: string;
|
10
|
-
};
|
11
|
-
docs: {
|
12
|
-
source: {
|
13
|
-
type: string;
|
14
|
-
};
|
15
|
-
page: () => React.JSX.Element;
|
16
|
-
};
|
17
|
-
a11y: {
|
18
|
-
config: {
|
19
|
-
rules: {
|
20
|
-
id: string;
|
21
|
-
enabled: boolean;
|
22
|
-
}[];
|
23
|
-
};
|
24
|
-
};
|
25
|
-
};
|
26
|
-
argTypes: {};
|
27
|
-
};
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
28
4
|
export default _default;
|
29
5
|
export declare const Default: StoryFn<TimeFieldProps>;
|
30
6
|
export declare const DefaultValue: StoryFn<TimeFieldProps>;
|
@@ -26,9 +26,6 @@ var _default = {
|
|
26
26
|
argTypesRegex: '^on.*'
|
27
27
|
},
|
28
28
|
docs: {
|
29
|
-
source: {
|
30
|
-
type: 'code'
|
31
|
-
},
|
32
29
|
page: function page() {
|
33
30
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_TimeField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
34
31
|
}
|
@@ -58,7 +55,7 @@ var DefaultValue = function DefaultValue(args) {
|
|
58
55
|
}));
|
59
56
|
};
|
60
57
|
exports.DefaultValue = DefaultValue;
|
61
|
-
var Controlled = function Controlled(
|
58
|
+
var Controlled = function Controlled() {
|
62
59
|
var _useState = (0, _react.useState)('12:30'),
|
63
60
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
64
61
|
time = _useState2[0],
|
@@ -66,11 +63,11 @@ var Controlled = function Controlled(args) {
|
|
66
63
|
var onChangeHandler = function onChangeHandler(value) {
|
67
64
|
return setTime(value.toString());
|
68
65
|
};
|
69
|
-
return (0, _react2.jsx)(_index.TimeField,
|
66
|
+
return (0, _react2.jsx)(_index.TimeField, {
|
70
67
|
"aria-label": "timefield-default",
|
71
68
|
value: time,
|
72
69
|
onChange: onChangeHandler
|
73
|
-
})
|
70
|
+
});
|
74
71
|
};
|
75
72
|
exports.Controlled = Controlled;
|
76
73
|
var Disabled = function Disabled(args) {
|
@@ -6,6 +6,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
7
7
|
});
|
8
8
|
exports["default"] = exports.WithCustomTimeZone = exports.Default = void 0;
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
9
10
|
var _react = _interopRequireDefault(require("react"));
|
10
11
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
11
12
|
var _index = require("../../index");
|
@@ -23,19 +24,19 @@ var _default = {
|
|
23
24
|
}
|
24
25
|
};
|
25
26
|
exports["default"] = _default;
|
26
|
-
var Default = function Default() {
|
27
|
-
return (0, _react2.jsx)(_index.TimeZonePicker, {
|
27
|
+
var Default = function Default(args) {
|
28
|
+
return (0, _react2.jsx)(_index.TimeZonePicker, (0, _extends2["default"])({}, args, {
|
28
29
|
label: "Default Example"
|
29
|
-
});
|
30
|
+
}));
|
30
31
|
};
|
31
32
|
exports.Default = Default;
|
32
|
-
var WithCustomTimeZone = function WithCustomTimeZone() {
|
33
|
+
var WithCustomTimeZone = function WithCustomTimeZone(args) {
|
33
34
|
var customTimeZone = {
|
34
35
|
'(GMT+02:00) Africa/Juba': 'Africa/Juba'
|
35
36
|
};
|
36
|
-
return (0, _react2.jsx)(_index.TimeZonePicker, {
|
37
|
+
return (0, _react2.jsx)(_index.TimeZonePicker, (0, _extends2["default"])({}, args, {
|
37
38
|
additionalTimeZones: customTimeZone,
|
38
39
|
label: "With Custom Time Zone (Africa/Juba)"
|
39
|
-
});
|
40
|
+
}));
|
40
41
|
};
|
41
42
|
exports.WithCustomTimeZone = WithCustomTimeZone;
|
@@ -38,7 +38,9 @@ var TooltipTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
38
38
|
isDarkMode = props.isDarkMode,
|
39
39
|
hasNoArrow = props.hasNoArrow,
|
40
40
|
targetRef = props.targetRef,
|
41
|
-
width = props.width
|
41
|
+
width = props.width,
|
42
|
+
_props$shouldAnimate = props.shouldAnimate,
|
43
|
+
shouldAnimate = _props$shouldAnimate === void 0 ? true : _props$shouldAnimate;
|
42
44
|
var _React$Children$toArr = _react["default"].Children.toArray(children),
|
43
45
|
_React$Children$toArr2 = (0, _slicedToArray2["default"])(_React$Children$toArr, 2),
|
44
46
|
trigger = _React$Children$toArr2[0],
|
@@ -61,7 +63,7 @@ var TooltipTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
61
63
|
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
62
64
|
themeState = _useGetTheme.themeState;
|
63
65
|
var isTransitioning = (0, _hooks.useMountTransition)(state.isOpen, 200);
|
64
|
-
var isOpen = state.isOpen || themeState.isOnyx && isTransitioning;
|
66
|
+
var isOpen = state.isOpen || themeState.isOnyx && shouldAnimate && isTransitioning;
|
65
67
|
var _useOverlayPosition = (0, _reactAria.useOverlayPosition)({
|
66
68
|
placement: (0, _concat["default"])(_context = "".concat(direction, " ")).call(_context, align),
|
67
69
|
targetRef: tooltipRef,
|
@@ -75,7 +77,7 @@ var TooltipTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
75
77
|
positionProps = _useOverlayPosition.overlayProps,
|
76
78
|
arrowProps = _useOverlayPosition.arrowProps,
|
77
79
|
placement = _useOverlayPosition.placement;
|
78
|
-
var _useStatusClasses = (0, _hooks.useStatusClasses)(className, (_useStatusClasses2 = {}, (0, _defineProperty2["default"])(_useStatusClasses2, "is-".concat(direction), direction), (0, _defineProperty2["default"])(_useStatusClasses2, "isDarkMode", isDarkMode), (0, _defineProperty2["default"])(_useStatusClasses2, "isTransitioning", isTransitioning), (0, _defineProperty2["default"])(_useStatusClasses2, "isMounted", state.isOpen), _useStatusClasses2)),
|
80
|
+
var _useStatusClasses = (0, _hooks.useStatusClasses)(className, (_useStatusClasses2 = {}, (0, _defineProperty2["default"])(_useStatusClasses2, "is-".concat(direction), direction), (0, _defineProperty2["default"])(_useStatusClasses2, "isDarkMode", isDarkMode), (0, _defineProperty2["default"])(_useStatusClasses2, "animate", shouldAnimate), (0, _defineProperty2["default"])(_useStatusClasses2, "isTransitioning", isTransitioning), (0, _defineProperty2["default"])(_useStatusClasses2, "isMounted", state.isOpen), _useStatusClasses2)),
|
79
81
|
classNames = _useStatusClasses.classNames;
|
80
82
|
var overlay = (0, _react2.jsx)(_PopoverContainer["default"], (0, _extends2["default"])({
|
81
83
|
isOpen: isOpen,
|