@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
@@ -122,9 +122,11 @@ export default {
|
|
122
122
|
docs: {
|
123
123
|
page: function page() {
|
124
124
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(SelectFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
125
|
-
}
|
126
|
-
|
127
|
-
|
125
|
+
}
|
126
|
+
},
|
127
|
+
codesandbox: {
|
128
|
+
mapComponent: {
|
129
|
+
'@pingux/astro': ['OverlayProvider', 'Icon', 'Item', 'Section', 'SelectField']
|
128
130
|
}
|
129
131
|
}
|
130
132
|
},
|
@@ -216,11 +218,11 @@ export var WithCustomHeight = function WithCustomHeight(args) {
|
|
216
218
|
}, item.name);
|
217
219
|
}));
|
218
220
|
};
|
219
|
-
export var FloatLabel = function FloatLabel() {
|
220
|
-
return ___EmotionJSX(SelectField, {
|
221
|
+
export var FloatLabel = function FloatLabel(args) {
|
222
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
221
223
|
label: "What's your favorite color?",
|
222
224
|
labelMode: "float"
|
223
|
-
}, ___EmotionJSX(Item, {
|
225
|
+
}), ___EmotionJSX(Item, {
|
224
226
|
key: "red"
|
225
227
|
}, "Red"), ___EmotionJSX(Item, {
|
226
228
|
key: "blue"
|
@@ -228,6 +230,16 @@ export var FloatLabel = function FloatLabel() {
|
|
228
230
|
key: "yellow"
|
229
231
|
}, "Yellow"));
|
230
232
|
};
|
233
|
+
FloatLabel.parameters = {
|
234
|
+
a11y: {
|
235
|
+
config: {
|
236
|
+
rules: [{
|
237
|
+
id: 'color-contrast',
|
238
|
+
enabled: false
|
239
|
+
}]
|
240
|
+
}
|
241
|
+
}
|
242
|
+
};
|
231
243
|
export var Controlled = function Controlled() {
|
232
244
|
var _useState = useState('yellow'),
|
233
245
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -248,10 +260,10 @@ export var Controlled = function Controlled() {
|
|
248
260
|
key: "yellow"
|
249
261
|
}, "Yellow"));
|
250
262
|
};
|
251
|
-
export var WithNoneOption = function WithNoneOption() {
|
252
|
-
return ___EmotionJSX(SelectField, {
|
263
|
+
export var WithNoneOption = function WithNoneOption(args) {
|
264
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
253
265
|
label: "What's your favorite color?"
|
254
|
-
}, ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
|
266
|
+
}), ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
|
255
267
|
key: "none"
|
256
268
|
}, "None")), ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
|
257
269
|
key: "red"
|
@@ -289,11 +301,11 @@ export var WithSlots = function WithSlots() {
|
|
289
301
|
key: "customRange"
|
290
302
|
}, "Custom Range"));
|
291
303
|
};
|
292
|
-
export var DisabledField = function DisabledField() {
|
293
|
-
return ___EmotionJSX(SelectField, {
|
304
|
+
export var DisabledField = function DisabledField(args) {
|
305
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
294
306
|
label: "What's your favorite color?",
|
295
307
|
isDisabled: true
|
296
|
-
}, ___EmotionJSX(Item, {
|
308
|
+
}), ___EmotionJSX(Item, {
|
297
309
|
key: "red"
|
298
310
|
}, "Red"), ___EmotionJSX(Item, {
|
299
311
|
key: "blue"
|
@@ -301,11 +313,11 @@ export var DisabledField = function DisabledField() {
|
|
301
313
|
key: "yellow"
|
302
314
|
}, "Yellow"));
|
303
315
|
};
|
304
|
-
export var DisabledOptions = function DisabledOptions() {
|
305
|
-
return ___EmotionJSX(SelectField, {
|
316
|
+
export var DisabledOptions = function DisabledOptions(args) {
|
317
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
306
318
|
label: "What's your favorite color?",
|
307
319
|
disabledKeys: ['blue']
|
308
|
-
}, ___EmotionJSX(Item, {
|
320
|
+
}), ___EmotionJSX(Item, {
|
309
321
|
key: "red"
|
310
322
|
}, "Red"), ___EmotionJSX(Item, {
|
311
323
|
key: "blue"
|
@@ -313,18 +325,18 @@ export var DisabledOptions = function DisabledOptions() {
|
|
313
325
|
key: "yellow"
|
314
326
|
}, "Yellow"));
|
315
327
|
};
|
316
|
-
export var NoOptionsAvailable = function NoOptionsAvailable() {
|
317
|
-
return ___EmotionJSX(SelectField, {
|
328
|
+
export var NoOptionsAvailable = function NoOptionsAvailable(args) {
|
329
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
318
330
|
label: "Select an option...",
|
319
331
|
placeholder: "No options available"
|
320
|
-
});
|
332
|
+
}));
|
321
333
|
};
|
322
|
-
export var HelperText = function HelperText() {
|
323
|
-
return ___EmotionJSX(SelectField, {
|
334
|
+
export var HelperText = function HelperText(args) {
|
335
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
324
336
|
status: "error",
|
325
337
|
helperText: "Here is some helpful text...",
|
326
338
|
label: "What's your favorite color?"
|
327
|
-
}, ___EmotionJSX(Item, {
|
339
|
+
}), ___EmotionJSX(Item, {
|
328
340
|
key: "red"
|
329
341
|
}, "Red"), ___EmotionJSX(Item, {
|
330
342
|
key: "blue"
|
@@ -332,6 +344,16 @@ export var HelperText = function HelperText() {
|
|
332
344
|
key: "yellow"
|
333
345
|
}, "Yellow"));
|
334
346
|
};
|
347
|
+
HelperText.parameters = {
|
348
|
+
a11y: {
|
349
|
+
config: {
|
350
|
+
rules: [{
|
351
|
+
id: 'color-contrast',
|
352
|
+
enabled: false
|
353
|
+
}]
|
354
|
+
}
|
355
|
+
}
|
356
|
+
};
|
335
357
|
var options = _mapInstanceProperty(_context = _fillInstanceProperty(_context2 = new Array(400)).call(_context2, {
|
336
358
|
key: 'string',
|
337
359
|
name: 'string'
|
@@ -408,11 +430,11 @@ export var AsyncLoading = function AsyncLoading() {
|
|
408
430
|
}, item.name);
|
409
431
|
}));
|
410
432
|
};
|
411
|
-
export var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
412
|
-
return ___EmotionJSX(SelectField, {
|
433
|
+
export var WithoutStatusIndicator = function WithoutStatusIndicator(args) {
|
434
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
413
435
|
label: "What's your favorite color?",
|
414
436
|
hasNoStatusIndicator: true
|
415
|
-
}, ___EmotionJSX(Item, {
|
437
|
+
}), ___EmotionJSX(Item, {
|
416
438
|
key: "none"
|
417
439
|
}, "None"), ___EmotionJSX(Item, {
|
418
440
|
key: "red"
|
@@ -422,12 +444,12 @@ export var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
|
422
444
|
key: "yellow"
|
423
445
|
}, "Yellow"));
|
424
446
|
};
|
425
|
-
export var WithHelpHint = function WithHelpHint() {
|
426
|
-
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(SelectField, {
|
447
|
+
export var WithHelpHint = function WithHelpHint(args) {
|
448
|
+
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(SelectField, _extends({}, args, {
|
427
449
|
width: "100%",
|
428
450
|
hintText: "Example Hint",
|
429
451
|
label: "What's your favorite color?"
|
430
|
-
}, ___EmotionJSX(Item, {
|
452
|
+
}), ___EmotionJSX(Item, {
|
431
453
|
key: "red"
|
432
454
|
}, "Red"), ___EmotionJSX(Item, {
|
433
455
|
key: "blue"
|
@@ -35,20 +35,21 @@ Default.parameters = {
|
|
35
35
|
url: FIGMA_LINKS.separator["default"]
|
36
36
|
}
|
37
37
|
};
|
38
|
-
export var verticalSeparator = function verticalSeparator() {
|
38
|
+
export var verticalSeparator = function verticalSeparator(_ref2) {
|
39
|
+
var args = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2));
|
39
40
|
return ___EmotionJSX(Box, {
|
40
41
|
height: "50px",
|
41
42
|
flexDirection: "row",
|
42
43
|
alignItems: "center"
|
43
|
-
}, "Lorem ipsum", ___EmotionJSX(Separator, {
|
44
|
+
}, "Lorem ipsum", ___EmotionJSX(Separator, _extends({}, args, {
|
44
45
|
orientation: "vertical",
|
45
46
|
sx: {
|
46
47
|
mx: '15px !important'
|
47
48
|
}
|
48
|
-
}), "Lorem ipsum", ___EmotionJSX(Separator, {
|
49
|
+
})), "Lorem ipsum", ___EmotionJSX(Separator, _extends({}, args, {
|
49
50
|
orientation: "vertical",
|
50
51
|
sx: {
|
51
52
|
mx: '15px !important'
|
52
53
|
}
|
53
|
-
}), "Lorem ipsum");
|
54
|
+
})), "Lorem ipsum");
|
54
55
|
};
|
@@ -16,6 +16,11 @@ export default {
|
|
16
16
|
page: function page() {
|
17
17
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(SkeletonReadme, null), ___EmotionJSX(DocsLayout, null));
|
18
18
|
}
|
19
|
+
},
|
20
|
+
codesandbox: {
|
21
|
+
mapComponent: {
|
22
|
+
'@pingux/astro': ['Avatar', 'Box', 'Skeleton', 'Text']
|
23
|
+
}
|
19
24
|
}
|
20
25
|
},
|
21
26
|
argTypes: {
|
@@ -45,8 +50,8 @@ export var Default = function Default(_ref) {
|
|
45
50
|
mt: "sm"
|
46
51
|
}, args)));
|
47
52
|
};
|
48
|
-
export var inferringDimensions = function inferringDimensions() {
|
49
|
-
var
|
53
|
+
export var inferringDimensions = function inferringDimensions(args) {
|
54
|
+
var isLoading = true;
|
50
55
|
return ___EmotionJSX(Box, {
|
51
56
|
width: "200px"
|
52
57
|
}, ___EmotionJSX(Box, {
|
@@ -54,21 +59,21 @@ export var inferringDimensions = function inferringDimensions() {
|
|
54
59
|
isRow: true,
|
55
60
|
alignItems: "center",
|
56
61
|
gap: "md"
|
57
|
-
},
|
62
|
+
}, isLoading && ___EmotionJSX(Skeleton, _extends({}, args, {
|
58
63
|
variant: "circular"
|
59
|
-
}, ___EmotionJSX(Avatar, {
|
64
|
+
}), ___EmotionJSX(Avatar, {
|
60
65
|
src: pingImg
|
61
66
|
})), ___EmotionJSX(Box, {
|
62
67
|
flex: "1 1 0"
|
63
|
-
}, ___EmotionJSX(Skeleton, {
|
68
|
+
}, ___EmotionJSX(Skeleton, _extends({}, args, {
|
64
69
|
variant: "text"
|
65
|
-
},
|
70
|
+
}), isLoading && ___EmotionJSX(Text, {
|
66
71
|
variant: "h1"
|
67
72
|
}, ".")))), ___EmotionJSX(Box, {
|
68
73
|
mb: "sm"
|
69
|
-
}, ___EmotionJSX(Skeleton, {
|
74
|
+
}, ___EmotionJSX(Skeleton, _extends({}, args, {
|
70
75
|
variant: "rounded"
|
71
|
-
},
|
76
|
+
}), isLoading && ___EmotionJSX(Box, {
|
72
77
|
height: 100
|
73
78
|
}))));
|
74
79
|
};
|
@@ -83,21 +83,21 @@ export var Controlled = function Controlled(_ref2) {
|
|
83
83
|
label: loremText
|
84
84
|
}));
|
85
85
|
};
|
86
|
-
export var Vertical = function Vertical() {
|
87
|
-
return ___EmotionJSX(SliderField, {
|
86
|
+
export var Vertical = function Vertical(args) {
|
87
|
+
return ___EmotionJSX(SliderField, _extends({}, args, {
|
88
88
|
label: loremText,
|
89
89
|
orientation: "vertical",
|
90
90
|
size: "150px"
|
91
|
-
});
|
91
|
+
}));
|
92
92
|
};
|
93
|
-
export var MultiThumb = function MultiThumb() {
|
94
|
-
return ___EmotionJSX(SliderField, {
|
93
|
+
export var MultiThumb = function MultiThumb(args) {
|
94
|
+
return ___EmotionJSX(SliderField, _extends({}, args, {
|
95
95
|
label: loremText,
|
96
96
|
isMultiThumb: true,
|
97
97
|
defaultValue: [100, 180],
|
98
98
|
maxValue: 540,
|
99
99
|
minValue: 40
|
100
|
-
});
|
100
|
+
}));
|
101
101
|
};
|
102
102
|
export var ControlledMultiThumb = function ControlledMultiThumb() {
|
103
103
|
var _useState3 = useState([0, 50]),
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
2
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
3
3
|
import React, { useRef, useState } from 'react';
|
4
|
-
import { Item } from 'react-stately';
|
5
4
|
import CreationOutlineIcon from '@pingux/mdi-react/CreationOutlineIcon';
|
6
5
|
import { withDesign } from 'storybook-addon-designs';
|
7
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
8
7
|
import { useOverlayPanelState } from '../../hooks';
|
9
|
-
import { Box, Button, OverlayPanel, OverlayProvider, PanelHeader, PanelHeaderCloseButton, Stepper, Text } from '../../index';
|
8
|
+
import { Box, Button, Item, OverlayPanel, OverlayProvider, PanelHeader, PanelHeaderCloseButton, Stepper, Text } from '../../index';
|
10
9
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
11
10
|
import StepperReadme from './Stepper.mdx';
|
12
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -51,9 +50,12 @@ export default {
|
|
51
50
|
docs: {
|
52
51
|
page: function page() {
|
53
52
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(StepperReadme, null), ___EmotionJSX(DocsLayout, null));
|
54
|
-
}
|
55
|
-
|
56
|
-
|
53
|
+
}
|
54
|
+
},
|
55
|
+
codesandbox: {
|
56
|
+
mapComponent: {
|
57
|
+
'@pingux/astro': ['Box', 'Button', 'OverlayPanel', 'OverlayProvider', 'PanelHeader', 'PanelHeaderCloseButton', 'Stepper', 'Text', 'Item'],
|
58
|
+
'@pingux/mdi-react/CreationOutlineIcon': 'CreationOutlineIcon'
|
57
59
|
}
|
58
60
|
}
|
59
61
|
}
|
@@ -226,6 +228,9 @@ export var ControlledStepper = function ControlledStepper() {
|
|
226
228
|
}, item.children)));
|
227
229
|
});
|
228
230
|
};
|
231
|
+
ControlledStepper.parameters = {
|
232
|
+
codesandbox: false
|
233
|
+
};
|
229
234
|
export var Panel = function Panel() {
|
230
235
|
var _useState3 = useState(1),
|
231
236
|
_useState4 = _slicedToArray(_useState3, 2),
|
@@ -278,4 +283,7 @@ export var Panel = function Panel() {
|
|
278
283
|
}, item.children)));
|
279
284
|
})))
|
280
285
|
);
|
286
|
+
};
|
287
|
+
Panel.parameters = {
|
288
|
+
codesandbox: false
|
281
289
|
};
|
@@ -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 _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
10
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
11
12
|
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; }
|
@@ -27,9 +28,6 @@ export default {
|
|
27
28
|
docs: {
|
28
29
|
page: function page() {
|
29
30
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(SwitchFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
30
|
-
},
|
31
|
-
source: {
|
32
|
-
type: 'code'
|
33
31
|
}
|
34
32
|
}
|
35
33
|
},
|
@@ -53,32 +51,32 @@ export var Controlled = function Controlled() {
|
|
53
51
|
value: "my-switch"
|
54
52
|
});
|
55
53
|
};
|
56
|
-
export var DefaultSelected = function DefaultSelected() {
|
57
|
-
return ___EmotionJSX(SwitchField, {
|
54
|
+
export var DefaultSelected = function DefaultSelected(args) {
|
55
|
+
return ___EmotionJSX(SwitchField, _extends({}, args, {
|
58
56
|
isDefaultSelected: true,
|
59
57
|
label: "Default selected",
|
60
58
|
value: "my-switch"
|
61
|
-
});
|
59
|
+
}));
|
62
60
|
};
|
63
|
-
export var Disabled = function Disabled() {
|
64
|
-
return ___EmotionJSX(SwitchField, {
|
61
|
+
export var Disabled = function Disabled(args) {
|
62
|
+
return ___EmotionJSX(SwitchField, _extends({}, args, {
|
65
63
|
isDisabled: true,
|
66
64
|
label: "Disabled",
|
67
65
|
value: "my-switch"
|
68
|
-
});
|
66
|
+
}));
|
69
67
|
};
|
70
|
-
export var NoVisibleLabel = function NoVisibleLabel() {
|
71
|
-
return ___EmotionJSX(SwitchField, {
|
68
|
+
export var NoVisibleLabel = function NoVisibleLabel(args) {
|
69
|
+
return ___EmotionJSX(SwitchField, _extends({}, args, {
|
72
70
|
"aria-label": "my-label",
|
73
71
|
value: "my-switch"
|
74
|
-
});
|
72
|
+
}));
|
75
73
|
};
|
76
|
-
export var Required = function Required() {
|
77
|
-
return ___EmotionJSX(SwitchField, {
|
74
|
+
export var Required = function Required(args) {
|
75
|
+
return ___EmotionJSX(SwitchField, _extends({}, args, {
|
78
76
|
isRequired: true,
|
79
77
|
label: "Required",
|
80
78
|
value: "my-switch"
|
81
|
-
});
|
79
|
+
}));
|
82
80
|
};
|
83
81
|
export var WithTooltip = function WithTooltip() {
|
84
82
|
var tooltipTrigger = useRef(null);
|
@@ -13,7 +13,18 @@ export default {
|
|
13
13
|
page: function page() {
|
14
14
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TableReadme, null), ___EmotionJSX(DocsLayout, null));
|
15
15
|
}
|
16
|
+
},
|
17
|
+
codesandbox: {
|
18
|
+
mapComponent: {
|
19
|
+
'@pingux/astro': ['Table', 'TableBody', 'TableCaption', 'TableCell', 'TableHead', 'TableRow', 'Text']
|
20
|
+
}
|
21
|
+
},
|
22
|
+
controls: {
|
23
|
+
include: ['id']
|
16
24
|
}
|
25
|
+
},
|
26
|
+
args: {
|
27
|
+
id: 'table'
|
17
28
|
}
|
18
29
|
};
|
19
30
|
var caption = 'Lorem Ipsum';
|
@@ -34,8 +45,8 @@ var objects = [{
|
|
34
45
|
additional_grant: '+25,000',
|
35
46
|
total_grant: '75,000'
|
36
47
|
}];
|
37
|
-
export var Default = function Default() {
|
38
|
-
return ___EmotionJSX(Table,
|
48
|
+
export var Default = function Default(args) {
|
49
|
+
return ___EmotionJSX(Table, args, ___EmotionJSX(TableCaption, null, ___EmotionJSX(Text, {
|
39
50
|
fontWeight: 3,
|
40
51
|
fontSize: "lg"
|
41
52
|
}, caption)), ___EmotionJSX(TableHead, null, ___EmotionJSX(TableRow, {
|
@@ -40,9 +40,11 @@ export default {
|
|
40
40
|
docs: {
|
41
41
|
page: function page() {
|
42
42
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TabsReadme, null), ___EmotionJSX(DocsLayout, null));
|
43
|
-
}
|
44
|
-
|
45
|
-
|
43
|
+
}
|
44
|
+
},
|
45
|
+
codesandbox: {
|
46
|
+
mapComponent: {
|
47
|
+
'@pingux/astro': ['Badge', 'Box', 'Icon', 'Tab', 'Tabs', 'Text']
|
46
48
|
}
|
47
49
|
}
|
48
50
|
}
|
@@ -85,6 +87,9 @@ export var Controlled = function Controlled() {
|
|
85
87
|
}, item.children);
|
86
88
|
});
|
87
89
|
};
|
90
|
+
Controlled.parameters = {
|
91
|
+
codesandbox: false
|
92
|
+
};
|
88
93
|
export var Centered = function Centered() {
|
89
94
|
return ___EmotionJSX(Tabs, {
|
90
95
|
tabListProps: {
|
@@ -98,6 +103,9 @@ export var Centered = function Centered() {
|
|
98
103
|
}, item.children);
|
99
104
|
});
|
100
105
|
};
|
106
|
+
Centered.parameters = {
|
107
|
+
codesandbox: false
|
108
|
+
};
|
101
109
|
export var DisabledSingleTab = function DisabledSingleTab() {
|
102
110
|
return ___EmotionJSX(Tabs, {
|
103
111
|
items: tabs,
|
@@ -109,6 +117,9 @@ export var DisabledSingleTab = function DisabledSingleTab() {
|
|
109
117
|
}, item.children);
|
110
118
|
});
|
111
119
|
};
|
120
|
+
DisabledSingleTab.parameters = {
|
121
|
+
codesandbox: false
|
122
|
+
};
|
112
123
|
export var DisabledAllTabs = function DisabledAllTabs() {
|
113
124
|
return ___EmotionJSX(Tabs, {
|
114
125
|
isDisabled: true,
|
@@ -120,6 +131,9 @@ export var DisabledAllTabs = function DisabledAllTabs() {
|
|
120
131
|
}, item.children);
|
121
132
|
});
|
122
133
|
};
|
134
|
+
DisabledAllTabs.parameters = {
|
135
|
+
codesandbox: false
|
136
|
+
};
|
123
137
|
export var ContentSlots = function ContentSlots() {
|
124
138
|
var beforeTabNode = ___EmotionJSX(Icon, {
|
125
139
|
icon: LockIcon,
|
@@ -165,6 +179,9 @@ export var ContentSlots = function ContentSlots() {
|
|
165
179
|
}
|
166
180
|
}, ___EmotionJSX(Text, null, "Users Matched"))));
|
167
181
|
};
|
182
|
+
ContentSlots.parameters = {
|
183
|
+
codesandbox: false
|
184
|
+
};
|
168
185
|
export var WithList = function WithList() {
|
169
186
|
var _context;
|
170
187
|
var allTabs = _concatInstanceProperty(_context = []).call(_context, tabs, [{
|
@@ -193,6 +210,9 @@ export var WithList = function WithList() {
|
|
193
210
|
}, item), item.children);
|
194
211
|
});
|
195
212
|
};
|
213
|
+
WithList.parameters = {
|
214
|
+
codesandbox: false
|
215
|
+
};
|
196
216
|
export var CustomTabLine = function CustomTabLine() {
|
197
217
|
return ___EmotionJSX(Tabs, {
|
198
218
|
items: tabs
|
@@ -206,6 +226,9 @@ export var CustomTabLine = function CustomTabLine() {
|
|
206
226
|
}, item.children);
|
207
227
|
});
|
208
228
|
};
|
229
|
+
CustomTabLine.parameters = {
|
230
|
+
codesandbox: false
|
231
|
+
};
|
209
232
|
export var CustomPanelProps = function CustomPanelProps() {
|
210
233
|
return ___EmotionJSX(Tabs, {
|
211
234
|
tabPanelProps: {
|
@@ -220,4 +243,7 @@ export var CustomPanelProps = function CustomPanelProps() {
|
|
220
243
|
"data-testid": "testing-".concat(item.name)
|
221
244
|
}, item.children);
|
222
245
|
});
|
246
|
+
};
|
247
|
+
CustomPanelProps.parameters = {
|
248
|
+
codesandbox: false
|
223
249
|
};
|
@@ -1,7 +1,9 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
1
2
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
2
3
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
3
4
|
import _Object$entries from "@babel/runtime-corejs3/core-js-stable/object/entries";
|
4
5
|
import React from 'react';
|
6
|
+
import { withDesign } from 'storybook-addon-designs';
|
5
7
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
6
8
|
import { Box, Separator, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../../index';
|
7
9
|
import TextReadme from './Text.mdx';
|
@@ -9,36 +11,42 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
9
11
|
export default {
|
10
12
|
title: 'Components/Text',
|
11
13
|
component: Text,
|
14
|
+
decorators: [withDesign],
|
12
15
|
parameters: {
|
13
16
|
docs: {
|
14
17
|
page: function page() {
|
15
18
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextReadme, null), ___EmotionJSX(DocsLayout, null));
|
16
19
|
}
|
20
|
+
},
|
21
|
+
codesandbox: {
|
22
|
+
mapComponent: {
|
23
|
+
'@pingux/astro': ['Box', 'Text', 'Separator']
|
24
|
+
}
|
17
25
|
}
|
18
26
|
},
|
19
27
|
argTypes: {
|
28
|
+
as: {
|
29
|
+
control: false
|
30
|
+
},
|
31
|
+
role: {
|
32
|
+
control: false
|
33
|
+
},
|
20
34
|
variant: {
|
21
|
-
control:
|
22
|
-
type: 'none'
|
23
|
-
},
|
35
|
+
control: false,
|
24
36
|
description: 'Text variant.'
|
25
37
|
},
|
26
38
|
children: {
|
27
|
-
control:
|
28
|
-
type: 'none'
|
29
|
-
},
|
39
|
+
control: false,
|
30
40
|
description: 'Text value.'
|
31
41
|
},
|
32
42
|
color: {
|
33
43
|
control: {
|
34
|
-
type: '
|
44
|
+
type: 'text'
|
35
45
|
},
|
36
46
|
description: 'Text color.'
|
37
47
|
},
|
38
48
|
bg: {
|
39
|
-
control:
|
40
|
-
type: 'none'
|
41
|
-
},
|
49
|
+
control: false,
|
42
50
|
description: 'Background color.'
|
43
51
|
}
|
44
52
|
}
|
@@ -416,14 +424,17 @@ export var Default = function Default() {
|
|
416
424
|
});
|
417
425
|
}))));
|
418
426
|
};
|
419
|
-
|
427
|
+
Default.parameters = {
|
428
|
+
codesandbox: false
|
429
|
+
};
|
430
|
+
export var CustomWidth = function CustomWidth(args) {
|
420
431
|
return ___EmotionJSX(Box, {
|
421
432
|
width: 200
|
422
|
-
}, ___EmotionJSX(Text, {
|
433
|
+
}, ___EmotionJSX(Text, _extends({
|
423
434
|
p: "xl"
|
424
|
-
}, "superlongtextinonelinewithnowhitespacessoitcanbelongerthatanywidth"));
|
435
|
+
}, args), "superlongtextinonelinewithnowhitespacessoitcanbelongerthatanywidth"));
|
425
436
|
};
|
426
|
-
export var CustomStyle = function CustomStyle() {
|
437
|
+
export var CustomStyle = function CustomStyle(args) {
|
427
438
|
var textProps = {
|
428
439
|
fontFamily: 'times',
|
429
440
|
fontSize: 'md',
|
@@ -437,11 +448,11 @@ export var CustomStyle = function CustomStyle() {
|
|
437
448
|
return ___EmotionJSX(Box, {
|
438
449
|
p: "xx",
|
439
450
|
gap: "md"
|
440
|
-
}, ___EmotionJSX(Text, {
|
451
|
+
}, ___EmotionJSX(Text, _extends({}, args, {
|
441
452
|
variant: "title"
|
442
|
-
}, "The Text component allows typography style props to be passed in directly."), ___EmotionJSX(Text, textProps, loremText), ___EmotionJSX(Separator, null), ___EmotionJSX(Text, {
|
453
|
+
}), "The Text component allows typography style props to be passed in directly."), ___EmotionJSX(Text, textProps, loremText), ___EmotionJSX(Separator, null), ___EmotionJSX(Text, _extends({}, args, {
|
443
454
|
variant: "title"
|
444
|
-
}, "Typography styles can also be passed in through the sx prop for the same result."), ___EmotionJSX(Text, {
|
455
|
+
}), "Typography styles can also be passed in through the sx prop for the same result."), ___EmotionJSX(Text, {
|
445
456
|
sx: textProps
|
446
457
|
}, loremText));
|
447
458
|
};
|