@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
@@ -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; }
|
@@ -26,6 +27,11 @@ export default {
|
|
26
27
|
page: function page() {
|
27
28
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(RadioGroupFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
28
29
|
}
|
30
|
+
},
|
31
|
+
codesandbox: {
|
32
|
+
mapComponent: {
|
33
|
+
'@pingux/astro': ['RadioField', 'RadioGroupField']
|
34
|
+
}
|
29
35
|
}
|
30
36
|
},
|
31
37
|
argTypes: _objectSpread(_objectSpread({
|
@@ -101,11 +107,11 @@ export var Controlled = function Controlled() {
|
|
101
107
|
label: "C"
|
102
108
|
}));
|
103
109
|
};
|
104
|
-
export var Required = function Required() {
|
105
|
-
return ___EmotionJSX(RadioGroupField, {
|
110
|
+
export var Required = function Required(args) {
|
111
|
+
return ___EmotionJSX(RadioGroupField, _extends({}, args, {
|
106
112
|
label: "Pick one",
|
107
113
|
isRequired: true
|
108
|
-
}, ___EmotionJSX(RadioField, {
|
114
|
+
}), ___EmotionJSX(RadioField, {
|
109
115
|
value: "A",
|
110
116
|
label: "A"
|
111
117
|
}), ___EmotionJSX(RadioField, {
|
@@ -116,10 +122,10 @@ export var Required = function Required() {
|
|
116
122
|
label: "C"
|
117
123
|
}));
|
118
124
|
};
|
119
|
-
export var CheckedContent = function CheckedContent() {
|
120
|
-
return ___EmotionJSX(RadioGroupField, {
|
125
|
+
export var CheckedContent = function CheckedContent(args) {
|
126
|
+
return ___EmotionJSX(RadioGroupField, _extends({}, args, {
|
121
127
|
label: "Pick one"
|
122
|
-
}, ___EmotionJSX(RadioField, {
|
128
|
+
}), ___EmotionJSX(RadioField, {
|
123
129
|
value: "A",
|
124
130
|
label: "A",
|
125
131
|
checkedContent: "You chose A..."
|
@@ -133,12 +139,12 @@ export var CheckedContent = function CheckedContent() {
|
|
133
139
|
checkedContent: "You chose C..."
|
134
140
|
}));
|
135
141
|
};
|
136
|
-
export var HelperText = function HelperText() {
|
137
|
-
return ___EmotionJSX(RadioGroupField, {
|
142
|
+
export var HelperText = function HelperText(args) {
|
143
|
+
return ___EmotionJSX(RadioGroupField, _extends({}, args, {
|
138
144
|
label: "Pick one",
|
139
145
|
helperText: "Here is some helpful text...",
|
140
146
|
status: "error"
|
141
|
-
}, ___EmotionJSX(RadioField, {
|
147
|
+
}), ___EmotionJSX(RadioField, {
|
142
148
|
value: "A",
|
143
149
|
label: "A"
|
144
150
|
}), ___EmotionJSX(RadioField, {
|
@@ -161,11 +167,11 @@ HelperText.parameters = {
|
|
161
167
|
}
|
162
168
|
}
|
163
169
|
};
|
164
|
-
export var HorizontalOrientation = function HorizontalOrientation() {
|
165
|
-
return ___EmotionJSX(RadioGroupField, {
|
170
|
+
export var HorizontalOrientation = function HorizontalOrientation(args) {
|
171
|
+
return ___EmotionJSX(RadioGroupField, _extends({}, args, {
|
166
172
|
label: "Pick one",
|
167
173
|
orientation: "horizontal"
|
168
|
-
}, ___EmotionJSX(RadioField, {
|
174
|
+
}), ___EmotionJSX(RadioField, {
|
169
175
|
value: "A",
|
170
176
|
label: "Option A"
|
171
177
|
}), ___EmotionJSX(RadioField, {
|
@@ -26,9 +26,6 @@ export default {
|
|
26
26
|
actions: {
|
27
27
|
argTypesRegex: '^on.*'
|
28
28
|
},
|
29
|
-
source: {
|
30
|
-
type: 'code'
|
31
|
-
},
|
32
29
|
docs: {
|
33
30
|
page: function page() {
|
34
31
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(RangeCalendarReadme, null), ___EmotionJSX(DocsLayout, null));
|
@@ -45,14 +42,14 @@ export var Default = function Default(args) {
|
|
45
42
|
"aria-label": "range-calendar"
|
46
43
|
}));
|
47
44
|
};
|
48
|
-
export var DefaultValue = function DefaultValue() {
|
49
|
-
return ___EmotionJSX(RangeCalendar, {
|
45
|
+
export var DefaultValue = function DefaultValue(args) {
|
46
|
+
return ___EmotionJSX(RangeCalendar, _extends({}, args, {
|
50
47
|
"aria-label": "calendar-with-default-vaue",
|
51
48
|
defaultValue: {
|
52
49
|
start: '2030-01-15',
|
53
50
|
end: '2030-01-22'
|
54
51
|
}
|
55
|
-
});
|
52
|
+
}));
|
56
53
|
};
|
57
54
|
export var Disabled = function Disabled(args) {
|
58
55
|
return ___EmotionJSX(RangeCalendar, _extends({}, args, {
|
@@ -76,25 +73,25 @@ export var UnavailableDates = function UnavailableDates() {
|
|
76
73
|
isDateUnavailable: isDateUnavailable
|
77
74
|
});
|
78
75
|
};
|
79
|
-
export var MinimumDate = function MinimumDate() {
|
80
|
-
return ___EmotionJSX(RangeCalendar, {
|
76
|
+
export var MinimumDate = function MinimumDate(args) {
|
77
|
+
return ___EmotionJSX(RangeCalendar, _extends({}, args, {
|
81
78
|
"aria-label": "range-calendar-component-min-date",
|
82
79
|
minValue: "2030-01-15",
|
83
80
|
defaultValue: {
|
84
81
|
start: '2030-01-15',
|
85
82
|
end: '2030-01-20'
|
86
83
|
}
|
87
|
-
});
|
84
|
+
}));
|
88
85
|
};
|
89
|
-
export var MaximumDate = function MaximumDate() {
|
90
|
-
return ___EmotionJSX(RangeCalendar, {
|
86
|
+
export var MaximumDate = function MaximumDate(args) {
|
87
|
+
return ___EmotionJSX(RangeCalendar, _extends({}, args, {
|
91
88
|
"aria-label": "range-calendar-component-max-date",
|
92
89
|
defaultValue: {
|
93
90
|
start: '2030-01-12',
|
94
91
|
end: '2030-01-15'
|
95
92
|
},
|
96
93
|
maxValue: "2030-01-17"
|
97
|
-
});
|
94
|
+
}));
|
98
95
|
};
|
99
96
|
export var Controlled = function Controlled(args) {
|
100
97
|
var _useState = useState({
|
@@ -14,6 +14,11 @@ export default {
|
|
14
14
|
page: function page() {
|
15
15
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(RequirementsListReadme, null), ___EmotionJSX(DocsLayout, null));
|
16
16
|
}
|
17
|
+
},
|
18
|
+
codesandbox: {
|
19
|
+
mapComponent: {
|
20
|
+
'@pingux/astro': ['RequirementsList']
|
21
|
+
}
|
17
22
|
}
|
18
23
|
},
|
19
24
|
argTypes: {
|
@@ -13,9 +13,11 @@ export default {
|
|
13
13
|
docs: {
|
14
14
|
page: function page() {
|
15
15
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(RockerButtonGroupReadme, null), ___EmotionJSX(DocsLayout, null));
|
16
|
-
}
|
17
|
-
|
18
|
-
|
16
|
+
}
|
17
|
+
},
|
18
|
+
codesandbox: {
|
19
|
+
mapComponent: {
|
20
|
+
'@pingux/astro': ['RockerButton', 'RockerButtonGroup']
|
19
21
|
}
|
20
22
|
}
|
21
23
|
},
|
@@ -57,6 +59,9 @@ export var Uncontrolled = function Uncontrolled() {
|
|
57
59
|
key: "maybe"
|
58
60
|
}, "Maybe"));
|
59
61
|
};
|
62
|
+
Uncontrolled.parameters = {
|
63
|
+
codesandbox: false
|
64
|
+
};
|
60
65
|
export var Controlled = function Controlled() {
|
61
66
|
var _useState = useState('and'),
|
62
67
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -76,6 +81,9 @@ export var Controlled = function Controlled() {
|
|
76
81
|
key: "maybe"
|
77
82
|
}, "Maybe"));
|
78
83
|
};
|
84
|
+
Controlled.parameters = {
|
85
|
+
codesandbox: false
|
86
|
+
};
|
79
87
|
export var DisabledSingleButton = function DisabledSingleButton() {
|
80
88
|
return ___EmotionJSX(RockerButtonGroup, {
|
81
89
|
defaultSelectedKey: "or",
|
@@ -91,6 +99,9 @@ export var DisabledSingleButton = function DisabledSingleButton() {
|
|
91
99
|
key: "maybe"
|
92
100
|
}, "Maybe"));
|
93
101
|
};
|
102
|
+
DisabledSingleButton.parameters = {
|
103
|
+
codesandbox: false
|
104
|
+
};
|
94
105
|
export var customColors = function customColors() {
|
95
106
|
return ___EmotionJSX(RockerButtonGroup, null, ___EmotionJSX(RockerButton, {
|
96
107
|
name: "and",
|
@@ -111,4 +122,7 @@ export var customColors = function customColors() {
|
|
111
122
|
bg: '#e30080 !important'
|
112
123
|
}
|
113
124
|
}, "Maybe"));
|
125
|
+
};
|
126
|
+
customColors.parameters = {
|
127
|
+
codesandbox: false
|
114
128
|
};
|
@@ -31,9 +31,11 @@ export default {
|
|
31
31
|
docs: {
|
32
32
|
page: function page() {
|
33
33
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(SearchFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
34
|
-
}
|
35
|
-
|
36
|
-
|
34
|
+
}
|
35
|
+
},
|
36
|
+
codesandbox: {
|
37
|
+
mapComponent: {
|
38
|
+
'@pingux/astro': ['SearchField', 'Button', 'Icon', 'Box', 'Text']
|
37
39
|
}
|
38
40
|
}
|
39
41
|
},
|
@@ -114,15 +116,15 @@ export var CustomIcon = function CustomIcon() {
|
|
114
116
|
});
|
115
117
|
};
|
116
118
|
|
117
|
-
export var NoClearButton = function NoClearButton() {
|
118
|
-
return ___EmotionJSX(SearchField, {
|
119
|
+
export var NoClearButton = function NoClearButton(args) {
|
120
|
+
return ___EmotionJSX(SearchField, _extends({}, args, {
|
119
121
|
hasNoClearButton: true,
|
120
122
|
"aria-label": "Search Users",
|
121
123
|
placeholder: "Search Users",
|
122
124
|
onSubmit: function onSubmit(text) {
|
123
125
|
return alert(text);
|
124
126
|
} // eslint-disable-line no-alert
|
125
|
-
});
|
127
|
+
}));
|
126
128
|
};
|
127
129
|
|
128
130
|
export var ControlledWithDebouncedInput = function ControlledWithDebouncedInput() {
|
@@ -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"
|
@@ -258,10 +260,10 @@ export var Controlled = function Controlled() {
|
|
258
260
|
key: "yellow"
|
259
261
|
}, "Yellow"));
|
260
262
|
};
|
261
|
-
export var WithNoneOption = function WithNoneOption() {
|
262
|
-
return ___EmotionJSX(SelectField, {
|
263
|
+
export var WithNoneOption = function WithNoneOption(args) {
|
264
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
263
265
|
label: "What's your favorite color?"
|
264
|
-
}, ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
|
266
|
+
}), ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
|
265
267
|
key: "none"
|
266
268
|
}, "None")), ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
|
267
269
|
key: "red"
|
@@ -299,11 +301,11 @@ export var WithSlots = function WithSlots() {
|
|
299
301
|
key: "customRange"
|
300
302
|
}, "Custom Range"));
|
301
303
|
};
|
302
|
-
export var DisabledField = function DisabledField() {
|
303
|
-
return ___EmotionJSX(SelectField, {
|
304
|
+
export var DisabledField = function DisabledField(args) {
|
305
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
304
306
|
label: "What's your favorite color?",
|
305
307
|
isDisabled: true
|
306
|
-
}, ___EmotionJSX(Item, {
|
308
|
+
}), ___EmotionJSX(Item, {
|
307
309
|
key: "red"
|
308
310
|
}, "Red"), ___EmotionJSX(Item, {
|
309
311
|
key: "blue"
|
@@ -311,11 +313,11 @@ export var DisabledField = function DisabledField() {
|
|
311
313
|
key: "yellow"
|
312
314
|
}, "Yellow"));
|
313
315
|
};
|
314
|
-
export var DisabledOptions = function DisabledOptions() {
|
315
|
-
return ___EmotionJSX(SelectField, {
|
316
|
+
export var DisabledOptions = function DisabledOptions(args) {
|
317
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
316
318
|
label: "What's your favorite color?",
|
317
319
|
disabledKeys: ['blue']
|
318
|
-
}, ___EmotionJSX(Item, {
|
320
|
+
}), ___EmotionJSX(Item, {
|
319
321
|
key: "red"
|
320
322
|
}, "Red"), ___EmotionJSX(Item, {
|
321
323
|
key: "blue"
|
@@ -323,18 +325,18 @@ export var DisabledOptions = function DisabledOptions() {
|
|
323
325
|
key: "yellow"
|
324
326
|
}, "Yellow"));
|
325
327
|
};
|
326
|
-
export var NoOptionsAvailable = function NoOptionsAvailable() {
|
327
|
-
return ___EmotionJSX(SelectField, {
|
328
|
+
export var NoOptionsAvailable = function NoOptionsAvailable(args) {
|
329
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
328
330
|
label: "Select an option...",
|
329
331
|
placeholder: "No options available"
|
330
|
-
});
|
332
|
+
}));
|
331
333
|
};
|
332
|
-
export var HelperText = function HelperText() {
|
333
|
-
return ___EmotionJSX(SelectField, {
|
334
|
+
export var HelperText = function HelperText(args) {
|
335
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
334
336
|
status: "error",
|
335
337
|
helperText: "Here is some helpful text...",
|
336
338
|
label: "What's your favorite color?"
|
337
|
-
}, ___EmotionJSX(Item, {
|
339
|
+
}), ___EmotionJSX(Item, {
|
338
340
|
key: "red"
|
339
341
|
}, "Red"), ___EmotionJSX(Item, {
|
340
342
|
key: "blue"
|
@@ -428,11 +430,11 @@ export var AsyncLoading = function AsyncLoading() {
|
|
428
430
|
}, item.name);
|
429
431
|
}));
|
430
432
|
};
|
431
|
-
export var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
432
|
-
return ___EmotionJSX(SelectField, {
|
433
|
+
export var WithoutStatusIndicator = function WithoutStatusIndicator(args) {
|
434
|
+
return ___EmotionJSX(SelectField, _extends({}, args, {
|
433
435
|
label: "What's your favorite color?",
|
434
436
|
hasNoStatusIndicator: true
|
435
|
-
}, ___EmotionJSX(Item, {
|
437
|
+
}), ___EmotionJSX(Item, {
|
436
438
|
key: "none"
|
437
439
|
}, "None"), ___EmotionJSX(Item, {
|
438
440
|
key: "red"
|
@@ -442,12 +444,12 @@ export var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
|
442
444
|
key: "yellow"
|
443
445
|
}, "Yellow"));
|
444
446
|
};
|
445
|
-
export var WithHelpHint = function WithHelpHint() {
|
446
|
-
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(SelectField, {
|
447
|
+
export var WithHelpHint = function WithHelpHint(args) {
|
448
|
+
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(SelectField, _extends({}, args, {
|
447
449
|
width: "100%",
|
448
450
|
hintText: "Example Hint",
|
449
451
|
label: "What's your favorite color?"
|
450
|
-
}, ___EmotionJSX(Item, {
|
452
|
+
}), ___EmotionJSX(Item, {
|
451
453
|
key: "red"
|
452
454
|
}, "Red"), ___EmotionJSX(Item, {
|
453
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, {
|