@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
@@ -55,12 +55,14 @@ export default {
|
|
55
55
|
},
|
56
56
|
parameters: {
|
57
57
|
docs: {
|
58
|
-
source: {
|
59
|
-
type: 'code'
|
60
|
-
},
|
61
58
|
page: function page() {
|
62
59
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BadgeReadme, null), ___EmotionJSX(DocsLayout, null));
|
63
60
|
}
|
61
|
+
},
|
62
|
+
codesandbox: {
|
63
|
+
mapComponent: {
|
64
|
+
'@pingux/astro': ['Badge', 'Box', 'Icon', 'IconButton']
|
65
|
+
}
|
64
66
|
}
|
65
67
|
}
|
66
68
|
};
|
@@ -105,17 +107,17 @@ Default.parameters = {
|
|
105
107
|
url: FIGMA_LINKS.badge["default"]
|
106
108
|
}
|
107
109
|
};
|
108
|
-
export var CountBadge = function CountBadge() {
|
110
|
+
export var CountBadge = function CountBadge(args) {
|
109
111
|
return ___EmotionJSX(Box, {
|
110
112
|
isRow: true,
|
111
113
|
gap: "xs"
|
112
|
-
}, ___EmotionJSX(Badge, {
|
114
|
+
}, ___EmotionJSX(Badge, _extends({}, args, {
|
113
115
|
label: "4",
|
114
116
|
variant: "countBadge"
|
115
|
-
}), ___EmotionJSX(Badge, {
|
117
|
+
})), ___EmotionJSX(Badge, _extends({}, args, {
|
116
118
|
label: "4",
|
117
119
|
variant: "countNeutral"
|
118
|
-
}));
|
120
|
+
})));
|
119
121
|
};
|
120
122
|
CountBadge.parameters = {
|
121
123
|
design: {
|
@@ -123,12 +125,12 @@ CountBadge.parameters = {
|
|
123
125
|
url: FIGMA_LINKS.badge.countBadge
|
124
126
|
}
|
125
127
|
};
|
126
|
-
export var BadgeWithCustomColors = function BadgeWithCustomColors() {
|
127
|
-
return ___EmotionJSX(Badge, {
|
128
|
+
export var BadgeWithCustomColors = function BadgeWithCustomColors(args) {
|
129
|
+
return ___EmotionJSX(Badge, _extends({}, args, {
|
128
130
|
label: "Custom Colors",
|
129
131
|
bg: "green",
|
130
132
|
textColor: "#ffffff"
|
131
|
-
});
|
133
|
+
}));
|
132
134
|
};
|
133
135
|
export var BadgeWithIcon = function BadgeWithIcon() {
|
134
136
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Badge, {
|
@@ -179,6 +181,9 @@ export var BadgeWithIcon = function BadgeWithIcon() {
|
|
179
181
|
}
|
180
182
|
})));
|
181
183
|
};
|
184
|
+
BadgeWithIcon.parameters = {
|
185
|
+
codesandbox: false
|
186
|
+
};
|
182
187
|
export var BadgeWithLeftSlotAndIcon = function BadgeWithLeftSlotAndIcon() {
|
183
188
|
return ___EmotionJSX(Badge, {
|
184
189
|
label: "Badge with Icon Button and Left Slot",
|
@@ -201,26 +206,25 @@ export var BadgeWithLeftSlotAndIcon = function BadgeWithLeftSlotAndIcon() {
|
|
201
206
|
}
|
202
207
|
})));
|
203
208
|
};
|
209
|
+
BadgeWithLeftSlotAndIcon.parameters = {
|
210
|
+
codesandbox: false
|
211
|
+
};
|
204
212
|
export var StatusBadgeVariants = function StatusBadgeVariants(_ref6) {
|
205
213
|
var args = _extends({}, (_objectDestructuringEmpty(_ref6), _ref6));
|
206
|
-
return ___EmotionJSX(Box, null, ___EmotionJSX(Badge, _extends({
|
207
|
-
variant: "criticalStatusBadge"
|
208
|
-
}, args, {
|
214
|
+
return ___EmotionJSX(Box, null, ___EmotionJSX(Badge, _extends({}, args, {
|
215
|
+
variant: "criticalStatusBadge",
|
209
216
|
label: "Critical",
|
210
217
|
mb: "lg"
|
211
|
-
})), ___EmotionJSX(Badge, _extends({
|
212
|
-
variant: "warningStatusBadge"
|
213
|
-
}, args, {
|
218
|
+
})), ___EmotionJSX(Badge, _extends({}, args, {
|
219
|
+
variant: "warningStatusBadge",
|
214
220
|
label: "Warning",
|
215
221
|
mb: "lg"
|
216
|
-
})), ___EmotionJSX(Badge, _extends({
|
217
|
-
variant: "healthyStatusBadge"
|
218
|
-
}, args, {
|
222
|
+
})), ___EmotionJSX(Badge, _extends({}, args, {
|
223
|
+
variant: "healthyStatusBadge",
|
219
224
|
label: "Healthy",
|
220
225
|
mb: "lg"
|
221
|
-
})), ___EmotionJSX(Badge, _extends({
|
222
|
-
variant: "activeStatusBadge"
|
223
|
-
}, args, {
|
226
|
+
})), ___EmotionJSX(Badge, _extends({}, args, {
|
227
|
+
variant: "activeStatusBadge",
|
224
228
|
label: "Active"
|
225
229
|
})));
|
226
230
|
};
|
@@ -17,9 +17,11 @@ export default {
|
|
17
17
|
docs: {
|
18
18
|
page: function page() {
|
19
19
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BoxReadme, null), ___EmotionJSX(DocsLayout, null));
|
20
|
-
}
|
21
|
-
|
22
|
-
|
20
|
+
}
|
21
|
+
},
|
22
|
+
codesandbox: {
|
23
|
+
mapComponent: {
|
24
|
+
'@pingux/astro': ['Box', 'Image', 'Text']
|
23
25
|
}
|
24
26
|
}
|
25
27
|
},
|
@@ -263,4 +265,7 @@ export var BoxesWithGaps = function BoxesWithGaps() {
|
|
263
265
|
height: 50,
|
264
266
|
bg: "decorativeDark.10"
|
265
267
|
})));
|
268
|
+
};
|
269
|
+
BoxesWithGaps.parameters = {
|
270
|
+
codesandbox: false
|
266
271
|
};
|
@@ -9,20 +9,47 @@ export default {
|
|
9
9
|
component: Bracket,
|
10
10
|
parameters: {
|
11
11
|
docs: {
|
12
|
-
source: {
|
13
|
-
type: 'code'
|
14
|
-
},
|
15
12
|
page: function page() {
|
16
13
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BracketReadme, null), ___EmotionJSX(DocsLayout, null));
|
17
14
|
}
|
15
|
+
},
|
16
|
+
codesandbox: {
|
17
|
+
mapComponent: {
|
18
|
+
'@pingux/astro': ['Box', 'Bracket']
|
19
|
+
}
|
20
|
+
}
|
21
|
+
},
|
22
|
+
argTypes: {
|
23
|
+
isLast: {
|
24
|
+
control: {
|
25
|
+
type: 'boolean'
|
26
|
+
},
|
27
|
+
description: 'If true, the bracket will be displayed as the last one.'
|
28
|
+
},
|
29
|
+
color: {
|
30
|
+
control: {
|
31
|
+
type: 'text'
|
32
|
+
}
|
33
|
+
},
|
34
|
+
variant: {
|
35
|
+
control: false
|
36
|
+
},
|
37
|
+
as: {
|
38
|
+
control: false
|
39
|
+
},
|
40
|
+
role: {
|
41
|
+
control: false
|
42
|
+
},
|
43
|
+
'data-testid': {
|
44
|
+
control: false
|
18
45
|
}
|
19
46
|
}
|
20
47
|
};
|
21
|
-
export var Default = function Default() {
|
48
|
+
export var Default = function Default(args) {
|
22
49
|
return ___EmotionJSX(Box, {
|
23
50
|
p: "md",
|
24
51
|
ml: "sm"
|
25
|
-
}, ___EmotionJSX(Bracket,
|
52
|
+
}, ___EmotionJSX(Bracket, args));
|
26
53
|
};
|
27
54
|
Default.parameters = {
|
28
55
|
design: {
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React from 'react';
|
3
|
-
import { Item } from 'react-stately';
|
4
3
|
import ChevronRightIcon from '@pingux/mdi-react/ChevronRightIcon';
|
5
4
|
import { action } from '@storybook/addon-actions';
|
6
5
|
import { withDesign } from 'storybook-addon-designs';
|
7
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
8
|
-
import { Box, Breadcrumbs } from '../../index';
|
7
|
+
import { Box, Breadcrumbs, Item } from '../../index';
|
9
8
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
10
9
|
import BreadcrumbsReadme from './Breadcrumbs.mdx';
|
11
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -15,12 +14,15 @@ export default {
|
|
15
14
|
decorators: [withDesign],
|
16
15
|
parameters: {
|
17
16
|
docs: {
|
18
|
-
source: {
|
19
|
-
type: 'code'
|
20
|
-
},
|
21
17
|
page: function page() {
|
22
18
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BreadcrumbsReadme, null), ___EmotionJSX(DocsLayout, null));
|
23
19
|
}
|
20
|
+
},
|
21
|
+
codesandbox: {
|
22
|
+
mapComponent: {
|
23
|
+
'@pingux/astro': ['Box', 'Breadcrumbs', 'Item'],
|
24
|
+
'@pingux/mdi-react/ChevronRightIcon': 'ChevronRightIcon'
|
25
|
+
}
|
24
26
|
}
|
25
27
|
},
|
26
28
|
argTypes: {
|
@@ -109,5 +111,6 @@ Overflowing.parameters = {
|
|
109
111
|
enabled: false
|
110
112
|
}]
|
111
113
|
}
|
112
|
-
}
|
114
|
+
},
|
115
|
+
codesandbox: false
|
113
116
|
};
|
@@ -6,8 +6,8 @@ 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";
|
10
9
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
10
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
11
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
12
12
|
var _excluded = ["isConfigured"];
|
13
13
|
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; }
|
@@ -33,12 +33,16 @@ export default {
|
|
33
33
|
},
|
34
34
|
parameters: {
|
35
35
|
docs: {
|
36
|
-
source: {
|
37
|
-
type: 'code'
|
38
|
-
},
|
39
36
|
page: function page() {
|
40
37
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ButtonReadme, null), ___EmotionJSX(DocsLayout, null));
|
41
38
|
}
|
39
|
+
},
|
40
|
+
codesandbox: {
|
41
|
+
mapComponent: {
|
42
|
+
'@pingux/astro': ['Box', 'Button', 'Icon', 'Text'],
|
43
|
+
'@pingux/mdi-react/PlusIcon': 'PlusIcon',
|
44
|
+
'@pingux/mdi-react/CreateIcon': 'CreateIcon'
|
45
|
+
}
|
42
46
|
}
|
43
47
|
}
|
44
48
|
};
|
@@ -51,10 +55,10 @@ Default.parameters = {
|
|
51
55
|
url: FIGMA_LINKS.button["default"]
|
52
56
|
}
|
53
57
|
};
|
54
|
-
export var Primary = function Primary() {
|
55
|
-
return ___EmotionJSX(Button, {
|
58
|
+
export var Primary = function Primary(args) {
|
59
|
+
return ___EmotionJSX(Button, _extends({}, args, {
|
56
60
|
variant: "primary"
|
57
|
-
}, "Button Text");
|
61
|
+
}), "Button Text");
|
58
62
|
};
|
59
63
|
Primary.parameters = {
|
60
64
|
design: {
|
@@ -62,10 +66,10 @@ Primary.parameters = {
|
|
62
66
|
url: FIGMA_LINKS.button.primary
|
63
67
|
}
|
64
68
|
};
|
65
|
-
export var Critical = function Critical() {
|
66
|
-
return ___EmotionJSX(Button, {
|
69
|
+
export var Critical = function Critical(args) {
|
70
|
+
return ___EmotionJSX(Button, _extends({}, args, {
|
67
71
|
variant: "critical"
|
68
|
-
}, "Button Text");
|
72
|
+
}), "Button Text");
|
69
73
|
};
|
70
74
|
Critical.parameters = {
|
71
75
|
design: {
|
@@ -73,16 +77,16 @@ Critical.parameters = {
|
|
73
77
|
url: FIGMA_LINKS.button.critical
|
74
78
|
}
|
75
79
|
};
|
76
|
-
export var InlineButton = function InlineButton() {
|
77
|
-
return ___EmotionJSX(Box, null, ___EmotionJSX(Button, {
|
80
|
+
export var InlineButton = function InlineButton(args) {
|
81
|
+
return ___EmotionJSX(Box, null, ___EmotionJSX(Button, _extends({}, args, {
|
78
82
|
mb: "sm",
|
79
83
|
mr: "auto",
|
80
84
|
variant: "inline"
|
81
|
-
}, "Button Text"), ___EmotionJSX(Button, {
|
85
|
+
}), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
|
82
86
|
mb: "sm",
|
83
87
|
mr: "auto",
|
84
88
|
variant: "inlinePrimary"
|
85
|
-
}, "Button Text"));
|
89
|
+
}), "Button Text"));
|
86
90
|
};
|
87
91
|
InlineButton.parameters = {
|
88
92
|
design: {
|
@@ -90,13 +94,13 @@ InlineButton.parameters = {
|
|
90
94
|
url: FIGMA_LINKS.button.inlineButton
|
91
95
|
}
|
92
96
|
};
|
93
|
-
export var TextIconButton = function TextIconButton() {
|
97
|
+
export var TextIconButton = function TextIconButton(args) {
|
94
98
|
return ___EmotionJSX(Box, {
|
95
99
|
width: 20
|
96
|
-
}, ___EmotionJSX(Button, {
|
100
|
+
}, ___EmotionJSX(Button, _extends({}, args, {
|
97
101
|
mb: "sm",
|
98
102
|
variant: "withIcon"
|
99
|
-
}, ___EmotionJSX(Icon, {
|
103
|
+
}), ___EmotionJSX(Icon, {
|
100
104
|
icon: PlusIcon,
|
101
105
|
mr: "xs",
|
102
106
|
color: "accent.30",
|
@@ -104,10 +108,10 @@ export var TextIconButton = function TextIconButton() {
|
|
104
108
|
title: {
|
105
109
|
name: 'Add Circle Icon'
|
106
110
|
}
|
107
|
-
}), "Button Text"), ___EmotionJSX(Button, {
|
111
|
+
}), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
|
108
112
|
mb: "sm",
|
109
113
|
variant: "primaryWithIcon"
|
110
|
-
}, ___EmotionJSX(Icon, {
|
114
|
+
}), ___EmotionJSX(Icon, {
|
111
115
|
mr: "xs",
|
112
116
|
icon: PlusIcon,
|
113
117
|
color: "white",
|
@@ -115,11 +119,11 @@ export var TextIconButton = function TextIconButton() {
|
|
115
119
|
title: {
|
116
120
|
name: 'Add Circle Icon'
|
117
121
|
}
|
118
|
-
}), "Button Text"), ___EmotionJSX(Button, {
|
122
|
+
}), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
|
119
123
|
mb: "sm",
|
120
124
|
mr: "auto",
|
121
125
|
variant: "inlineWithIcon"
|
122
|
-
}, ___EmotionJSX(Icon, {
|
126
|
+
}), ___EmotionJSX(Icon, {
|
123
127
|
icon: PlusIcon,
|
124
128
|
mr: "xs",
|
125
129
|
color: "accent.30",
|
@@ -127,11 +131,11 @@ export var TextIconButton = function TextIconButton() {
|
|
127
131
|
title: {
|
128
132
|
name: 'Add Circle Icon'
|
129
133
|
}
|
130
|
-
}), "Button Text"), ___EmotionJSX(Button, {
|
134
|
+
}), "Button Text"), ___EmotionJSX(Button, _extends({}, args, {
|
131
135
|
mb: "sm",
|
132
136
|
mr: "auto",
|
133
137
|
variant: "inlinePrimaryWithIcon"
|
134
|
-
}, ___EmotionJSX(Icon, {
|
138
|
+
}), ___EmotionJSX(Icon, {
|
135
139
|
icon: PlusIcon,
|
136
140
|
mr: "xs",
|
137
141
|
color: "accent.30",
|
@@ -147,10 +151,10 @@ TextIconButton.parameters = {
|
|
147
151
|
url: FIGMA_LINKS.button.textIconButton
|
148
152
|
}
|
149
153
|
};
|
150
|
-
export var Disabled = function Disabled() {
|
151
|
-
return ___EmotionJSX(Button, {
|
154
|
+
export var Disabled = function Disabled(args) {
|
155
|
+
return ___EmotionJSX(Button, _extends({}, args, {
|
152
156
|
isDisabled: true
|
153
|
-
}, "Button Text");
|
157
|
+
}), "Button Text");
|
154
158
|
};
|
155
159
|
Disabled.parameters = {
|
156
160
|
design: {
|
@@ -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 { Button, ButtonBar } from '../../index';
|
@@ -9,12 +10,14 @@ export default {
|
|
9
10
|
component: ButtonBar,
|
10
11
|
parameters: {
|
11
12
|
docs: {
|
12
|
-
source: {
|
13
|
-
type: 'code'
|
14
|
-
},
|
15
13
|
page: function page() {
|
16
14
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ButtonBarReadme, null), ___EmotionJSX(DocsLayout, null));
|
17
15
|
}
|
16
|
+
},
|
17
|
+
codesandbox: {
|
18
|
+
mapComponent: {
|
19
|
+
'@pingux/astro': ['Button', 'ButtonBar']
|
20
|
+
}
|
18
21
|
}
|
19
22
|
},
|
20
23
|
argTypes: {
|
@@ -46,10 +49,10 @@ Default.parameters = {
|
|
46
49
|
url: FIGMA_LINKS.buttonBar["default"]
|
47
50
|
}
|
48
51
|
};
|
49
|
-
export var RightAligned = function RightAligned() {
|
50
|
-
return ___EmotionJSX(ButtonBar, {
|
52
|
+
export var RightAligned = function RightAligned(args) {
|
53
|
+
return ___EmotionJSX(ButtonBar, _extends({}, args, {
|
51
54
|
align: "right"
|
52
|
-
}, ___EmotionJSX(Button, {
|
55
|
+
}), ___EmotionJSX(Button, {
|
53
56
|
variant: "link",
|
54
57
|
"data-id": "cancel-button",
|
55
58
|
onPress: function onPress() {
|
@@ -69,8 +72,8 @@ RightAligned.parameters = {
|
|
69
72
|
url: FIGMA_LINKS.buttonBar.rightAligned
|
70
73
|
}
|
71
74
|
};
|
72
|
-
export var Secondary = function Secondary() {
|
73
|
-
return ___EmotionJSX(ButtonBar,
|
75
|
+
export var Secondary = function Secondary(args) {
|
76
|
+
return ___EmotionJSX(ButtonBar, args, ___EmotionJSX(Button, {
|
74
77
|
variant: "primary",
|
75
78
|
"data-id": "save-button",
|
76
79
|
onPress: function onPress() {
|
@@ -95,10 +98,10 @@ Secondary.parameters = {
|
|
95
98
|
url: FIGMA_LINKS.buttonBar.secondary
|
96
99
|
}
|
97
100
|
};
|
98
|
-
export var SecondaryRightAligned = function SecondaryRightAligned() {
|
99
|
-
return ___EmotionJSX(ButtonBar, {
|
101
|
+
export var SecondaryRightAligned = function SecondaryRightAligned(args) {
|
102
|
+
return ___EmotionJSX(ButtonBar, _extends({
|
100
103
|
align: "right"
|
101
|
-
}, ___EmotionJSX(Button, {
|
104
|
+
}, args), ___EmotionJSX(Button, {
|
102
105
|
variant: "link",
|
103
106
|
"data-id": "cancel-button",
|
104
107
|
onPress: function onPress() {
|
@@ -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; }
|
@@ -26,12 +27,14 @@ export default {
|
|
26
27
|
argTypes: _objectSpread({}, statusArgTypes),
|
27
28
|
parameters: {
|
28
29
|
docs: {
|
29
|
-
source: {
|
30
|
-
type: 'code'
|
31
|
-
},
|
32
30
|
page: function page() {
|
33
31
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CalloutReadme, null), ___EmotionJSX(DocsLayout, null));
|
34
32
|
}
|
33
|
+
},
|
34
|
+
codesandbox: {
|
35
|
+
mapComponent: {
|
36
|
+
'@pingux/astro': ['Callout', 'Link', 'Text']
|
37
|
+
}
|
35
38
|
}
|
36
39
|
}
|
37
40
|
};
|
@@ -46,10 +49,10 @@ Default.parameters = {
|
|
46
49
|
url: FIGMA_LINKS.callout["default"]
|
47
50
|
}
|
48
51
|
};
|
49
|
-
export var ErrorStatus = function ErrorStatus() {
|
50
|
-
return ___EmotionJSX(Callout, {
|
52
|
+
export var ErrorStatus = function ErrorStatus(args) {
|
53
|
+
return ___EmotionJSX(Callout, _extends({
|
51
54
|
status: statuses.ERROR
|
52
|
-
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat. Etiam at urna erat."));
|
55
|
+
}, args), ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat. Etiam at urna erat."));
|
53
56
|
};
|
54
57
|
ErrorStatus.parameters = {
|
55
58
|
design: {
|
@@ -60,10 +63,10 @@ ErrorStatus.parameters = {
|
|
60
63
|
|
61
64
|
// Avoiding using Error as the function name due to it being a JS built-in method
|
62
65
|
ErrorStatus.storyName = 'Error';
|
63
|
-
export var Success = function Success() {
|
64
|
-
return ___EmotionJSX(Callout, {
|
66
|
+
export var Success = function Success(args) {
|
67
|
+
return ___EmotionJSX(Callout, _extends({
|
65
68
|
status: statuses.SUCCESS
|
66
|
-
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
|
69
|
+
}, args), ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
|
67
70
|
};
|
68
71
|
Success.parameters = {
|
69
72
|
design: {
|
@@ -85,10 +88,10 @@ WithLink.parameters = {
|
|
85
88
|
url: FIGMA_LINKS.callout.withLink
|
86
89
|
}
|
87
90
|
};
|
88
|
-
export var Warning = function Warning() {
|
89
|
-
return ___EmotionJSX(Callout, {
|
91
|
+
export var Warning = function Warning(args) {
|
92
|
+
return ___EmotionJSX(Callout, _extends({
|
90
93
|
status: statuses.WARNING
|
91
|
-
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
|
94
|
+
}, args), ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
|
92
95
|
};
|
93
96
|
Warning.parameters = {
|
94
97
|
design: {
|
@@ -28,6 +28,11 @@ export default {
|
|
28
28
|
page: function page() {
|
29
29
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CardReadme, null), ___EmotionJSX(DocsLayout, null));
|
30
30
|
}
|
31
|
+
},
|
32
|
+
codesandbox: {
|
33
|
+
mapComponent: {
|
34
|
+
'@pingux/astro': ['Box', 'Button', 'Card', 'Text', 'TextField']
|
35
|
+
}
|
31
36
|
}
|
32
37
|
},
|
33
38
|
argTypes: _objectSpread({}, cardArgTypes),
|
@@ -38,6 +43,12 @@ export default {
|
|
38
43
|
export var Default = function Default(args) {
|
39
44
|
return ___EmotionJSX(Card, args);
|
40
45
|
};
|
46
|
+
Default.parameters = {
|
47
|
+
design: {
|
48
|
+
type: 'figma',
|
49
|
+
url: FIGMA_LINKS.card["default"]
|
50
|
+
}
|
51
|
+
};
|
41
52
|
export var HeaderAndFooter = function HeaderAndFooter(args) {
|
42
53
|
var textStyling = {
|
43
54
|
fontSize: 'md',
|
@@ -89,12 +100,6 @@ CardWidth.parameters = {
|
|
89
100
|
url: FIGMA_LINKS.card.cardWidth
|
90
101
|
}
|
91
102
|
};
|
92
|
-
Default.parameters = {
|
93
|
-
design: {
|
94
|
-
type: 'figma',
|
95
|
-
url: FIGMA_LINKS.card["default"]
|
96
|
-
}
|
97
|
-
};
|
98
103
|
export var CardRow = function CardRow(args) {
|
99
104
|
var sx = {
|
100
105
|
li: {
|
@@ -134,7 +139,7 @@ CardRow.parameters = {
|
|
134
139
|
url: FIGMA_LINKS.card.cardRow
|
135
140
|
}
|
136
141
|
};
|
137
|
-
export var InteractiveCard = function InteractiveCard() {
|
142
|
+
export var InteractiveCard = function InteractiveCard(args) {
|
138
143
|
var sx = {
|
139
144
|
alignContent: 'center',
|
140
145
|
height: '221px',
|
@@ -142,7 +147,7 @@ export var InteractiveCard = function InteractiveCard() {
|
|
142
147
|
textAlign: 'center',
|
143
148
|
maxWidth: '233px'
|
144
149
|
};
|
145
|
-
return ___EmotionJSX(Card, {
|
150
|
+
return ___EmotionJSX(Card, _extends({}, args, {
|
146
151
|
onPress: function onPress() {
|
147
152
|
return console.log('card pressed');
|
148
153
|
},
|
@@ -152,7 +157,7 @@ export var InteractiveCard = function InteractiveCard() {
|
|
152
157
|
tabIndex: "0",
|
153
158
|
variant: "cards.interactive",
|
154
159
|
sx: sx
|
155
|
-
}, "Interactive Card");
|
160
|
+
}), "Interactive Card");
|
156
161
|
};
|
157
162
|
InteractiveCard.parameters = {
|
158
163
|
design: {
|
@@ -160,16 +165,16 @@ InteractiveCard.parameters = {
|
|
160
165
|
url: FIGMA_LINKS.card.interactiveCard
|
161
166
|
}
|
162
167
|
};
|
163
|
-
export var WithInteractiveContent = function WithInteractiveContent() {
|
164
|
-
return ___EmotionJSX(Card, {
|
168
|
+
export var WithInteractiveContent = function WithInteractiveContent(args) {
|
169
|
+
return ___EmotionJSX(Card, _extends({
|
165
170
|
isInteractiveWithin: true
|
166
|
-
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga sed ratione, recusandae ipsam explicabo, quasi vel maxime sint harum qui rerum perferendis. Voluptatem nisi eaque, distinctio accusamus nobis voluptas nemo."), ___EmotionJSX(TextField, {
|
171
|
+
}, args), ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga sed ratione, recusandae ipsam explicabo, quasi vel maxime sint harum qui rerum perferendis. Voluptatem nisi eaque, distinctio accusamus nobis voluptas nemo."), ___EmotionJSX(TextField, {
|
167
172
|
label: "Interactive TextField",
|
168
173
|
mt: "md",
|
169
174
|
width: "300px"
|
170
175
|
}));
|
171
176
|
};
|
172
|
-
export var ActiveCard = function ActiveCard() {
|
177
|
+
export var ActiveCard = function ActiveCard(args) {
|
173
178
|
var sx = {
|
174
179
|
alignContent: 'center',
|
175
180
|
height: '221px',
|
@@ -181,7 +186,7 @@ export var ActiveCard = function ActiveCard() {
|
|
181
186
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
182
187
|
isSelected = _React$useState2[0],
|
183
188
|
setIsSelected = _React$useState2[1];
|
184
|
-
return ___EmotionJSX(Card, {
|
189
|
+
return ___EmotionJSX(Card, _extends({}, args, {
|
185
190
|
tabIndex: "0",
|
186
191
|
variant: "cards.activeCard",
|
187
192
|
sx: sx,
|
@@ -189,5 +194,5 @@ export var ActiveCard = function ActiveCard() {
|
|
189
194
|
onPress: function onPress() {
|
190
195
|
return setIsSelected(!isSelected);
|
191
196
|
}
|
192
|
-
}, "Active Card");
|
197
|
+
}), "Active Card");
|
193
198
|
};
|