@pingux/astro 2.128.1-alpha.0 → 2.129.0-alpha.1
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 +3 -3
- 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/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/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/SelectField.stories.d.ts +9 -25
- package/lib/cjs/components/SelectField/SelectField.stories.js +29 -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.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/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 +3 -3
- 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/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/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/SelectField.stories.js +29 -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.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/package.json +2 -1
@@ -7,6 +7,7 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
|
|
7
7
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
8
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
9
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
10
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
10
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
11
12
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
12
13
|
import _everyInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/every";
|
@@ -30,9 +31,11 @@ export default {
|
|
30
31
|
docs: {
|
31
32
|
page: function page() {
|
32
33
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CheckboxFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
33
|
-
}
|
34
|
-
|
35
|
-
|
34
|
+
}
|
35
|
+
},
|
36
|
+
codesandbox: {
|
37
|
+
mapComponent: {
|
38
|
+
'@pingux/astro': ['Badge', 'Box', 'CheckboxField', 'IconButtonToggle', 'Link', 'SwitchField', 'Text']
|
36
39
|
}
|
37
40
|
}
|
38
41
|
},
|
@@ -74,11 +77,11 @@ export default {
|
|
74
77
|
export var Default = function Default(args) {
|
75
78
|
return ___EmotionJSX(CheckboxField, args);
|
76
79
|
};
|
77
|
-
export var DefaultSelected = function DefaultSelected() {
|
78
|
-
return ___EmotionJSX(CheckboxField, {
|
80
|
+
export var DefaultSelected = function DefaultSelected(args) {
|
81
|
+
return ___EmotionJSX(CheckboxField, _extends({}, args, {
|
79
82
|
isDefaultSelected: true,
|
80
83
|
label: "Click me"
|
81
|
-
});
|
84
|
+
}));
|
82
85
|
};
|
83
86
|
export var Controlled = function Controlled() {
|
84
87
|
var _React$useState = React.useState(false),
|
@@ -93,21 +96,24 @@ export var Controlled = function Controlled() {
|
|
93
96
|
label: "Click me"
|
94
97
|
});
|
95
98
|
};
|
96
|
-
|
97
|
-
|
99
|
+
Controlled.parameters = {
|
100
|
+
codesandbox: false
|
101
|
+
};
|
102
|
+
export var Required = function Required(args) {
|
103
|
+
return ___EmotionJSX(CheckboxField, _extends({}, args, {
|
98
104
|
isRequired: true,
|
99
105
|
label: ___EmotionJSX(Text, null, "I agree to the", ' ', ___EmotionJSX(Link, {
|
100
106
|
href: "https://pingidentity.com",
|
101
107
|
target: "_blank"
|
102
108
|
}, "Terms and Conditions"))
|
103
|
-
});
|
109
|
+
}));
|
104
110
|
};
|
105
|
-
export var HelperText = function HelperText() {
|
106
|
-
return ___EmotionJSX(CheckboxField, {
|
111
|
+
export var HelperText = function HelperText(args) {
|
112
|
+
return ___EmotionJSX(CheckboxField, _extends({}, args, {
|
107
113
|
status: statuses.ERROR,
|
108
114
|
helperText: "Here is some helpful text...",
|
109
115
|
label: "Click me"
|
110
|
-
});
|
116
|
+
}));
|
111
117
|
};
|
112
118
|
export var ExpandableAndToggleableIndeterminate = function ExpandableAndToggleableIndeterminate() {
|
113
119
|
var _useState = useState(false),
|
@@ -234,6 +240,9 @@ export var ExpandableAndToggleableIndeterminate = function ExpandableAndToggleab
|
|
234
240
|
}));
|
235
241
|
})));
|
236
242
|
};
|
243
|
+
ExpandableAndToggleableIndeterminate.parameters = {
|
244
|
+
codesandbox: false
|
245
|
+
};
|
237
246
|
export var Indeterminate = function Indeterminate() {
|
238
247
|
// Whether the parent checkbox is indeterminate (default is true for our example)
|
239
248
|
var _useState11 = useState(true),
|
@@ -320,19 +329,20 @@ Indeterminate.parameters = {
|
|
320
329
|
description: {
|
321
330
|
story: 'When a `CheckboxField` is indeterminate, it\'s necessary to control the state in order to determine how it should function when pressed. Here is an example of how to do that.'
|
322
331
|
}
|
323
|
-
}
|
332
|
+
},
|
333
|
+
codesandbox: false
|
324
334
|
};
|
325
|
-
export var Disabled = function Disabled() {
|
326
|
-
return ___EmotionJSX(Box, null, ___EmotionJSX(CheckboxField, {
|
335
|
+
export var Disabled = function Disabled(args) {
|
336
|
+
return ___EmotionJSX(Box, null, ___EmotionJSX(CheckboxField, _extends({}, args, {
|
327
337
|
isDisabled: true,
|
328
338
|
label: "Disabled"
|
329
|
-
}), ___EmotionJSX(CheckboxField, {
|
339
|
+
})), ___EmotionJSX(CheckboxField, _extends({}, args, {
|
330
340
|
isDisabled: true,
|
331
341
|
isSelected: true,
|
332
342
|
label: "Disabled"
|
333
|
-
}), ___EmotionJSX(CheckboxField, {
|
343
|
+
})), ___EmotionJSX(CheckboxField, _extends({}, args, {
|
334
344
|
isDisabled: true,
|
335
345
|
isIndeterminate: true,
|
336
346
|
label: "Disabled"
|
337
|
-
}));
|
347
|
+
})));
|
338
348
|
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
1
2
|
import React from 'react';
|
2
3
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
3
4
|
import { CodeEditor } from '../../index';
|
@@ -10,9 +11,6 @@ export default {
|
|
10
11
|
docs: {
|
11
12
|
page: function page() {
|
12
13
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeEditorReadme, null), ___EmotionJSX(DocsLayout, null));
|
13
|
-
},
|
14
|
-
source: {
|
15
|
-
type: 'code'
|
16
14
|
}
|
17
15
|
},
|
18
16
|
a11y: {
|
@@ -31,26 +29,26 @@ export default {
|
|
31
29
|
var jsonCode = "{\n \"name\": \"Luke Skywalker\", \n \"height\": \"172\", \n \"mass\": \"77\", \n \"hair_color\": \"blond\", \n \"skin_color\": \"fair\", \n \"eye_color\": \"blue\", \n \"birth_year\": \"19BBY\", \n \"gender\": \"male\", \n \"homeworld\": \"https://swapi.dev/api/planets/1/\", \n \"films\": [\n \"https://swapi.dev/api/films/1/\", \n \"https://swapi.dev/api/films/2/\", \n \"https://swapi.dev/api/films/3/\", \n \"https://swapi.dev/api/films/6/\"\n ],\n \"starships\": [\n \"https://swapi.dev/api/starships/12/\", \n \"https://swapi.dev/api/starships/22/\"\n ]\n}";
|
32
30
|
var tsCode = "const stringValue: string = 15;\n\nfunction addOne(integer: number) {\n return integer + 1;\n}\n\naddOne('I am a string');\n";
|
33
31
|
var jsCode = "\nfunction factorial(n) {\n if (n === 0 || n === 1) {\n return 1;\n } else {\n return n * factorial(n - 1);\n }\n}\n\nconsole.log(factorial(5));\n\n(a) => {};\n";
|
34
|
-
export var TypescriptEditor = function TypescriptEditor() {
|
35
|
-
return ___EmotionJSX(CodeEditor, {
|
32
|
+
export var TypescriptEditor = function TypescriptEditor(args) {
|
33
|
+
return ___EmotionJSX(CodeEditor, _extends({}, args, {
|
36
34
|
defaultValue: tsCode,
|
37
35
|
language: "typescript",
|
38
36
|
height: "200px"
|
39
|
-
});
|
37
|
+
}));
|
40
38
|
};
|
41
|
-
export var JavascriptEditor = function JavascriptEditor() {
|
42
|
-
return ___EmotionJSX(CodeEditor, {
|
39
|
+
export var JavascriptEditor = function JavascriptEditor(args) {
|
40
|
+
return ___EmotionJSX(CodeEditor, _extends({}, args, {
|
43
41
|
defaultValue: jsCode,
|
44
42
|
language: "javascript",
|
45
43
|
height: "200px"
|
46
|
-
});
|
44
|
+
}));
|
47
45
|
};
|
48
|
-
export var JsonEditor = function JsonEditor() {
|
49
|
-
return ___EmotionJSX(CodeEditor, {
|
46
|
+
export var JsonEditor = function JsonEditor(args) {
|
47
|
+
return ___EmotionJSX(CodeEditor, _extends({}, args, {
|
50
48
|
defaultValue: jsonCode,
|
51
49
|
language: "json",
|
52
50
|
height: "200px"
|
53
|
-
});
|
51
|
+
}));
|
54
52
|
};
|
55
53
|
export var ReadOnly = function ReadOnly() {
|
56
54
|
return ___EmotionJSX(CodeEditor, {
|
@@ -46,6 +46,11 @@ export default {
|
|
46
46
|
selector: '.prism-code'
|
47
47
|
}]
|
48
48
|
}
|
49
|
+
},
|
50
|
+
codesandbox: {
|
51
|
+
mapComponent: {
|
52
|
+
'@pingux/astro': ['CodeView']
|
53
|
+
}
|
49
54
|
}
|
50
55
|
}
|
51
56
|
};
|
@@ -70,10 +75,10 @@ Default.parameters = {
|
|
70
75
|
}
|
71
76
|
}
|
72
77
|
};
|
73
|
-
export var WithLineNumbers = function WithLineNumbers() {
|
74
|
-
return ___EmotionJSX(CodeView, {
|
78
|
+
export var WithLineNumbers = function WithLineNumbers(args) {
|
79
|
+
return ___EmotionJSX(CodeView, _extends({}, args, {
|
75
80
|
hasLineNumbers: true
|
76
|
-
}, code);
|
81
|
+
}), code);
|
77
82
|
};
|
78
83
|
WithLineNumbers.parameters = {
|
79
84
|
docs: {
|
@@ -88,15 +93,15 @@ WithLineNumbers.parameters = {
|
|
88
93
|
}
|
89
94
|
}
|
90
95
|
};
|
91
|
-
export var WithCustomSize = function WithCustomSize() {
|
92
|
-
return ___EmotionJSX(CodeView, {
|
96
|
+
export var WithCustomSize = function WithCustomSize(args) {
|
97
|
+
return ___EmotionJSX(CodeView, _extends({}, args, {
|
93
98
|
language: "jsx",
|
94
99
|
sx: {
|
95
100
|
width: '100%',
|
96
101
|
height: 300
|
97
102
|
},
|
98
103
|
hasNoCopyButton: true
|
99
|
-
}, "\nconst BadgeWithIcon = () => (\n <>\n <Badge label=\"Badge with Icon Button\" bg=\"navy\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Clear} ml=\"xs\" size=\"14px\" title={{ name: 'Clear Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon Button\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Earth} ml=\"xs\" size=\"14px\" title={{ name: 'Earth Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon\" bg=\"green\">\n <Icon icon={ContentCopy} ml=\"xs\" size=\"14px\" color=\"white\" title={{ name: 'Copy Icon' }} />\n </Badge>\n </>\n);\n ");
|
104
|
+
}), "\nconst BadgeWithIcon = () => (\n <>\n <Badge label=\"Badge with Icon Button\" bg=\"navy\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Clear} ml=\"xs\" size=\"14px\" title={{ name: 'Clear Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon Button\">\n <IconButton aria-label=\"Clear Badge with Icon Button\" variant=\"inverted\">\n <Icon icon={Earth} ml=\"xs\" size=\"14px\" title={{ name: 'Earth Icon' }} />\n </IconButton>\n </Badge>\n\n <div style={{ padding: '5px' }} />\n\n <Badge label=\"Badge with Icon\" bg=\"green\">\n <Icon icon={ContentCopy} ml=\"xs\" size=\"14px\" color=\"white\" title={{ name: 'Copy Icon' }} />\n </Badge>\n </>\n);\n ");
|
100
105
|
};
|
101
106
|
WithCustomSize.parameters = {
|
102
107
|
docs: {
|
@@ -111,13 +116,13 @@ WithCustomSize.parameters = {
|
|
111
116
|
}
|
112
117
|
}
|
113
118
|
};
|
114
|
-
export var WithAdditionalLanguage = function WithAdditionalLanguage() {
|
119
|
+
export var WithAdditionalLanguage = function WithAdditionalLanguage(args) {
|
115
120
|
var _context;
|
116
121
|
var cssCode = _trimInstanceProperty(_context = "\n body {\n margin: 0;\n font-family: Roboto, sans-serif;\n }\n \n h1 {\n color: red;\n margin-left: 40px;\n }\n ").call(_context);
|
117
|
-
return ___EmotionJSX(CodeView, {
|
122
|
+
return ___EmotionJSX(CodeView, _extends({}, args, {
|
118
123
|
language: "css",
|
119
124
|
Prism: Prism
|
120
|
-
}, cssCode);
|
125
|
+
}), cssCode);
|
121
126
|
};
|
122
127
|
WithAdditionalLanguage.parameters = {
|
123
128
|
docs: {
|
@@ -130,7 +135,8 @@ WithAdditionalLanguage.parameters = {
|
|
130
135
|
enabled: false
|
131
136
|
}]
|
132
137
|
}
|
133
|
-
}
|
138
|
+
},
|
139
|
+
codesandbox: false
|
134
140
|
};
|
135
141
|
export var WithChangedCopiedValue = function WithChangedCopiedValue(args) {
|
136
142
|
return ___EmotionJSX(CodeView, _extends({
|
@@ -147,17 +153,17 @@ WithChangedCopiedValue.parameters = {
|
|
147
153
|
}
|
148
154
|
}
|
149
155
|
};
|
150
|
-
export var WithCustomLanguage = function WithCustomLanguage() {
|
156
|
+
export var WithCustomLanguage = function WithCustomLanguage(args) {
|
151
157
|
var _context2, _context3;
|
152
158
|
var javaCode = _trimInstanceProperty(_context2 = "\n public class Factorial {\n public static void main(String[] args) {\n int num = 5;\n int factorial = 1;\n for (int i = 1; i <= num; i++) {\n factorial *= i;\n }\n System.out.println(\"Factorial of \" + num + \" is: \" + factorial);\n }\n}\n ").call(_context2);
|
153
159
|
var powershellCode = _trimInstanceProperty(_context3 = "\n Get-Process\n Get-Process -Name \"notepad\"\n Stop-Process -Name \"notepad\"\n Get-Service\n Start-Service -Name \"service_name\"\n Get-Date\n Get-Date -Format \"yyyy-MM-dd HH:mm:ss\"\n Get-WmiObject -Class Win32_OperatingSystem\n $env:COMPUTERNAME\n ").call(_context3);
|
154
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeView, {
|
160
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeView, _extends({}, args, {
|
155
161
|
language: "java",
|
156
162
|
Prism: Prism
|
157
|
-
}, javaCode), ___EmotionJSX(CodeView, {
|
163
|
+
}), javaCode), ___EmotionJSX(CodeView, _extends({}, args, {
|
158
164
|
language: "powershell",
|
159
165
|
Prism: Prism
|
160
|
-
}, powershellCode));
|
166
|
+
}), powershellCode));
|
161
167
|
};
|
162
168
|
WithCustomLanguage.parameters = {
|
163
169
|
a11y: {
|
@@ -167,5 +173,6 @@ WithCustomLanguage.parameters = {
|
|
167
173
|
enabled: false
|
168
174
|
}]
|
169
175
|
}
|
170
|
-
}
|
176
|
+
},
|
177
|
+
codesandbox: false
|
171
178
|
};
|
@@ -13,9 +13,11 @@ export default {
|
|
13
13
|
docs: {
|
14
14
|
page: function page() {
|
15
15
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CollapsiblePanelReadme, null), ___EmotionJSX(DocsLayout, null));
|
16
|
-
}
|
17
|
-
|
18
|
-
|
16
|
+
}
|
17
|
+
},
|
18
|
+
codesandbox: {
|
19
|
+
mapComponent: {
|
20
|
+
'@pingux/astro': ['CollapsiblePanel']
|
19
21
|
}
|
20
22
|
}
|
21
23
|
},
|
@@ -27,9 +27,11 @@ export default {
|
|
27
27
|
docs: {
|
28
28
|
page: function page() {
|
29
29
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ColorFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
30
|
-
}
|
31
|
-
|
32
|
-
|
30
|
+
}
|
31
|
+
},
|
32
|
+
codesandbox: {
|
33
|
+
mapComponent: {
|
34
|
+
'@pingux/astro': ['ColorField', 'OverlayProvider']
|
33
35
|
}
|
34
36
|
}
|
35
37
|
},
|
@@ -146,9 +146,6 @@ export default {
|
|
146
146
|
docs: {
|
147
147
|
page: function page() {
|
148
148
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ComboBoxFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
149
|
-
},
|
150
|
-
source: {
|
151
|
-
type: 'code'
|
152
149
|
}
|
153
150
|
}
|
154
151
|
},
|
@@ -231,6 +228,9 @@ export var WithSections = function WithSections(args) {
|
|
231
228
|
});
|
232
229
|
}));
|
233
230
|
};
|
231
|
+
WithSections.parameters = {
|
232
|
+
codesandbox: false
|
233
|
+
};
|
234
234
|
export var AsyncLoading = function AsyncLoading() {
|
235
235
|
// This example uses `useAsyncList` from "@react-stately/data"
|
236
236
|
var list = useAsyncList({
|
@@ -19,6 +19,11 @@ export default {
|
|
19
19
|
page: function page() {
|
20
20
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CopyTextReadme, null), ___EmotionJSX(DocsLayout, null));
|
21
21
|
}
|
22
|
+
},
|
23
|
+
codesandbox: {
|
24
|
+
mapComponent: {
|
25
|
+
'@pingux/astro': ['Box', 'CopyText', 'Text', 'Link', 'TextField']
|
26
|
+
}
|
22
27
|
}
|
23
28
|
},
|
24
29
|
argTypes: {
|
@@ -41,11 +41,9 @@ export default {
|
|
41
41
|
docs: {
|
42
42
|
page: function page() {
|
43
43
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(DataTableReadme, null), ___EmotionJSX(DocsLayout, null));
|
44
|
-
},
|
45
|
-
source: {
|
46
|
-
type: 'code'
|
47
44
|
}
|
48
|
-
}
|
45
|
+
},
|
46
|
+
codesandbox: false
|
49
47
|
},
|
50
48
|
argTypes: _objectSpread({
|
51
49
|
density: {
|
@@ -157,7 +155,7 @@ var getCellProps = function getCellProps(columnKey, align) {
|
|
157
155
|
align: align
|
158
156
|
};
|
159
157
|
};
|
160
|
-
export var Default = function Default(
|
158
|
+
export var Default = function Default() {
|
161
159
|
var date = '2023-05-03';
|
162
160
|
var time = '07:16:30 pm UTC';
|
163
161
|
var timestampCell = ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, date), ___EmotionJSX(Box, null, time));
|
@@ -237,10 +235,11 @@ export var Default = function Default(args) {
|
|
237
235
|
userIdentity: 'Vincent Diep',
|
238
236
|
menu: ___EmotionJSX(DataTableMenu, null)
|
239
237
|
}];
|
240
|
-
return ___EmotionJSX(DataTable,
|
238
|
+
return ___EmotionJSX(DataTable, {
|
241
239
|
"aria-label": "Static table",
|
242
|
-
height: "100%"
|
243
|
-
|
240
|
+
height: "100%",
|
241
|
+
density: "spacious"
|
242
|
+
}, ___EmotionJSX(DataTableHeader, {
|
244
243
|
columns: columns
|
245
244
|
}, function (column) {
|
246
245
|
return ___EmotionJSX(DataTableColumn, _extends({}, getCellProps(column.key, false), getHeaderProps(), {
|
@@ -267,7 +266,7 @@ Default.parameters = {
|
|
267
266
|
}
|
268
267
|
}
|
269
268
|
};
|
270
|
-
export var OnyxDefault = function OnyxDefault(
|
269
|
+
export var OnyxDefault = function OnyxDefault() {
|
271
270
|
var date = '2023-05-03';
|
272
271
|
var time = '07:16:30 pm UTC';
|
273
272
|
var timestampCell = ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, date), ___EmotionJSX(Box, null, time));
|
@@ -346,11 +345,11 @@ export var OnyxDefault = function OnyxDefault(args) {
|
|
346
345
|
userIdentity: 'Vincent Diep',
|
347
346
|
menu: ___EmotionJSX(DataTableMenu, null)
|
348
347
|
}];
|
349
|
-
return ___EmotionJSX(DataTable,
|
348
|
+
return ___EmotionJSX(DataTable, {
|
350
349
|
"aria-label": "Onyx table",
|
351
350
|
height: "100%",
|
352
351
|
scale: "xl"
|
353
|
-
}
|
352
|
+
}, ___EmotionJSX(DataTableHeader, {
|
354
353
|
columns: columns
|
355
354
|
}, function (column) {
|
356
355
|
return ___EmotionJSX(DataTableColumn, {
|
@@ -27,12 +27,10 @@ export default {
|
|
27
27
|
component: DatePicker,
|
28
28
|
parameters: {
|
29
29
|
docs: {
|
30
|
-
source: {
|
31
|
-
type: 'code'
|
32
|
-
},
|
33
30
|
page: function page() {
|
34
31
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(DatePickerReadme, null), ___EmotionJSX(DocsLayout, null));
|
35
|
-
}
|
32
|
+
},
|
33
|
+
codesandbox: false
|
36
34
|
},
|
37
35
|
a11y: {
|
38
36
|
config: {
|
@@ -105,7 +103,7 @@ export default {
|
|
105
103
|
isReadOnly: false,
|
106
104
|
isRequired: false,
|
107
105
|
label: 'Example Label',
|
108
|
-
onChange:
|
106
|
+
onChange: function onChange() {}
|
109
107
|
}
|
110
108
|
};
|
111
109
|
export var Default = function Default(args) {
|
@@ -31,9 +31,11 @@ export default {
|
|
31
31
|
docs: {
|
32
32
|
page: function page() {
|
33
33
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EnvironmentBreadcrumbReadme, null), ___EmotionJSX(DocsLayout, null));
|
34
|
-
}
|
35
|
-
|
36
|
-
|
34
|
+
}
|
35
|
+
},
|
36
|
+
codesandbox: {
|
37
|
+
mapComponent: {
|
38
|
+
'@pingux/astro': ['EnvironmentBreadcrumb', 'Badge', 'Box', 'Item', 'Section', 'Text']
|
37
39
|
}
|
38
40
|
}
|
39
41
|
}
|
@@ -262,10 +264,13 @@ export var WithSections = function WithSections() {
|
|
262
264
|
});
|
263
265
|
});
|
264
266
|
};
|
265
|
-
|
266
|
-
|
267
|
+
WithSections.parameters = {
|
268
|
+
codesandbox: false
|
269
|
+
};
|
270
|
+
export var OrgLevel = function OrgLevel(args) {
|
271
|
+
return ___EmotionJSX(EnvironmentBreadcrumb, _extends({
|
267
272
|
name: "Organization"
|
268
|
-
});
|
273
|
+
}, args));
|
269
274
|
};
|
270
275
|
export var DefaultOpen = function DefaultOpen() {
|
271
276
|
var _useState9 = useState(defaultEnvironments[0]),
|
@@ -312,6 +317,9 @@ export var DefaultOpen = function DefaultOpen() {
|
|
312
317
|
}) : null);
|
313
318
|
});
|
314
319
|
};
|
320
|
+
DefaultOpen.parameters = {
|
321
|
+
codesandbox: false
|
322
|
+
};
|
315
323
|
export var ControlledMenu = function ControlledMenu() {
|
316
324
|
var _useState11 = useState(false),
|
317
325
|
_useState12 = _slicedToArray(_useState11, 2),
|
@@ -361,4 +369,7 @@ export var ControlledMenu = function ControlledMenu() {
|
|
361
369
|
align: "right"
|
362
370
|
}) : null);
|
363
371
|
});
|
372
|
+
};
|
373
|
+
ControlledMenu.parameters = {
|
374
|
+
codesandbox: false
|
364
375
|
};
|
@@ -6,6 +6,7 @@ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
|
|
6
6
|
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
7
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
8
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
9
10
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
11
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
@@ -21,18 +22,18 @@ export default {
|
|
21
22
|
export var Default = function Default(args) {
|
22
23
|
return ___EmotionJSX(FieldHelperText, args, "Look at me!");
|
23
24
|
};
|
24
|
-
export var Error = function Error() {
|
25
|
-
return ___EmotionJSX(FieldHelperText, {
|
25
|
+
export var Error = function Error(args) {
|
26
|
+
return ___EmotionJSX(FieldHelperText, _extends({}, args, {
|
26
27
|
status: "error"
|
27
|
-
}, "Look at me!");
|
28
|
+
}), "Look at me!");
|
28
29
|
};
|
29
|
-
export var Success = function Success() {
|
30
|
-
return ___EmotionJSX(FieldHelperText, {
|
30
|
+
export var Success = function Success(args) {
|
31
|
+
return ___EmotionJSX(FieldHelperText, _extends({}, args, {
|
31
32
|
status: "success"
|
32
|
-
}, "Look at me!");
|
33
|
+
}), "Look at me!");
|
33
34
|
};
|
34
|
-
export var Warning = function Warning() {
|
35
|
-
return ___EmotionJSX(FieldHelperText, {
|
35
|
+
export var Warning = function Warning(args) {
|
36
|
+
return ___EmotionJSX(FieldHelperText, _extends({}, args, {
|
36
37
|
status: "warning"
|
37
|
-
}, "Look at me!");
|
38
|
+
}), "Look at me!");
|
38
39
|
};
|
@@ -29,9 +29,6 @@ export default {
|
|
29
29
|
docs: {
|
30
30
|
page: function page() {
|
31
31
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(FileInputFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
32
|
-
},
|
33
|
-
source: {
|
34
|
-
type: 'code'
|
35
32
|
}
|
36
33
|
}
|
37
34
|
},
|
@@ -94,14 +91,14 @@ export var Default = function Default(args) {
|
|
94
91
|
sx: fitContentWidthSx
|
95
92
|
}, args));
|
96
93
|
};
|
97
|
-
export var CustomButtonText = function CustomButtonText() {
|
98
|
-
return ___EmotionJSX(FileInputField, {
|
94
|
+
export var CustomButtonText = function CustomButtonText(args) {
|
95
|
+
return ___EmotionJSX(FileInputField, _extends({}, args, {
|
99
96
|
defaultButtonText: "Original Button Name",
|
100
97
|
label: "Custom Button Text",
|
101
98
|
sx: fitContentWidthSx
|
102
|
-
});
|
99
|
+
}));
|
103
100
|
};
|
104
|
-
export var ControlledState = function ControlledState() {
|
101
|
+
export var ControlledState = function ControlledState(args) {
|
105
102
|
var _useState = useState([]),
|
106
103
|
_useState2 = _slicedToArray(_useState, 2),
|
107
104
|
userFiles = _useState2[0],
|
@@ -130,7 +127,7 @@ export var ControlledState = function ControlledState() {
|
|
130
127
|
setUserFiles([]);
|
131
128
|
setError(null);
|
132
129
|
};
|
133
|
-
return ___EmotionJSX(FileInputField, {
|
130
|
+
return ___EmotionJSX(FileInputField, _extends({}, args, {
|
134
131
|
label: "Controlled State With limit on file size upload below 2 mb",
|
135
132
|
onFileSelect: handleFileSelect,
|
136
133
|
onRemove: handleFileRemove,
|
@@ -139,7 +136,7 @@ export var ControlledState = function ControlledState() {
|
|
139
136
|
status: error && statuses.ERROR,
|
140
137
|
helperText: error,
|
141
138
|
isMultiple: true
|
142
|
-
});
|
139
|
+
}));
|
143
140
|
};
|
144
141
|
export var DefaultFileListUncontrolled = function DefaultFileListUncontrolled() {
|
145
142
|
return ___EmotionJSX(FileInputField, {
|
@@ -161,8 +158,8 @@ export var DefaultFileListUncontrolled = function DefaultFileListUncontrolled()
|
|
161
158
|
sx: fitContentWidthSx
|
162
159
|
});
|
163
160
|
};
|
164
|
-
export var ErrorStatusSingleFile = function ErrorStatusSingleFile() {
|
165
|
-
return ___EmotionJSX(FileInputField, {
|
161
|
+
export var ErrorStatusSingleFile = function ErrorStatusSingleFile(args) {
|
162
|
+
return ___EmotionJSX(FileInputField, _extends({}, args, {
|
166
163
|
defaultFileList: [{
|
167
164
|
id: 'test-id3',
|
168
165
|
name: 'PingId Desktop (Windows)',
|
@@ -173,10 +170,10 @@ export var ErrorStatusSingleFile = function ErrorStatusSingleFile() {
|
|
173
170
|
sx: fitContentWidthSx,
|
174
171
|
helperText: "There is an error",
|
175
172
|
status: statuses.ERROR
|
176
|
-
});
|
173
|
+
}));
|
177
174
|
};
|
178
|
-
export var ErrorWithMultipleFiles = function ErrorWithMultipleFiles() {
|
179
|
-
return ___EmotionJSX(FileInputField, {
|
175
|
+
export var ErrorWithMultipleFiles = function ErrorWithMultipleFiles(args) {
|
176
|
+
return ___EmotionJSX(FileInputField, _extends({}, args, {
|
180
177
|
defaultFileList: [{
|
181
178
|
id: 'test-id3',
|
182
179
|
name: 'PingId Desktop (Windows)',
|
@@ -191,9 +188,9 @@ export var ErrorWithMultipleFiles = function ErrorWithMultipleFiles() {
|
|
191
188
|
sx: fitContentWidthSx,
|
192
189
|
helperText: "There is an error but helperText text will be default since no status passed",
|
193
190
|
isMultiple: true
|
194
|
-
});
|
191
|
+
}));
|
195
192
|
};
|
196
|
-
export var WithCustomWidth = function WithCustomWidth() {
|
193
|
+
export var WithCustomWidth = function WithCustomWidth(args) {
|
197
194
|
var textSx = {
|
198
195
|
textOverflow: 'ellipsis',
|
199
196
|
overflow: 'hidden',
|
@@ -201,7 +198,7 @@ export var WithCustomWidth = function WithCustomWidth() {
|
|
201
198
|
};
|
202
199
|
return ___EmotionJSX(Box, {
|
203
200
|
width: 200
|
204
|
-
}, ___EmotionJSX(FileInputField, {
|
201
|
+
}, ___EmotionJSX(FileInputField, _extends({}, args, {
|
205
202
|
defaultButtonText: "Long Long Button Text With A Lot of Words In It",
|
206
203
|
defaultFileList: [{
|
207
204
|
id: 'test-id1',
|
@@ -213,7 +210,7 @@ export var WithCustomWidth = function WithCustomWidth() {
|
|
213
210
|
sx: textSx
|
214
211
|
},
|
215
212
|
isMultiple: true
|
216
|
-
}));
|
213
|
+
})));
|
217
214
|
};
|
218
215
|
export var WithFileTypePdfAndImage = function WithFileTypePdfAndImage() {
|
219
216
|
var fileTypes = ['application/pdf', 'image/*'];
|