@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
@@ -29,9 +29,6 @@ export default {
|
|
29
29
|
docs: {
|
30
30
|
page: function page() {
|
31
31
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextAreaFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
32
|
-
},
|
33
|
-
source: {
|
34
|
-
type: 'code'
|
35
32
|
}
|
36
33
|
},
|
37
34
|
a11y: {
|
@@ -99,7 +96,7 @@ var IconSlot = ___EmotionJSX(Box, {
|
|
99
96
|
export var Default = function Default(args) {
|
100
97
|
return ___EmotionJSX(TextAreaField, args);
|
101
98
|
};
|
102
|
-
export var WithSlots = function WithSlots(
|
99
|
+
export var WithSlots = function WithSlots() {
|
103
100
|
return (
|
104
101
|
// This is an example of a slot that can be passed into the component
|
105
102
|
// const IconSlot = (
|
@@ -109,18 +106,18 @@ export var WithSlots = function WithSlots(args) {
|
|
109
106
|
// />
|
110
107
|
// </Box>
|
111
108
|
// );
|
112
|
-
___EmotionJSX(TextAreaField,
|
109
|
+
___EmotionJSX(TextAreaField, {
|
113
110
|
slots: {
|
114
111
|
inContainer: IconSlot
|
115
112
|
}
|
116
|
-
})
|
113
|
+
})
|
117
114
|
);
|
118
115
|
};
|
119
|
-
export var FloatLabel = function FloatLabel() {
|
120
|
-
return ___EmotionJSX(TextAreaField, {
|
116
|
+
export var FloatLabel = function FloatLabel(args) {
|
117
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
121
118
|
label: "Example label",
|
122
119
|
labelMode: "float"
|
123
|
-
});
|
120
|
+
}));
|
124
121
|
};
|
125
122
|
export var Controlled = function Controlled() {
|
126
123
|
var _useState = useState(),
|
@@ -135,54 +132,54 @@ export var Controlled = function Controlled() {
|
|
135
132
|
value: value
|
136
133
|
});
|
137
134
|
};
|
138
|
-
export var Disabled = function Disabled() {
|
139
|
-
return ___EmotionJSX(TextAreaField, {
|
135
|
+
export var Disabled = function Disabled(args) {
|
136
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
140
137
|
isDisabled: true,
|
141
138
|
label: "Example Label",
|
142
139
|
value: "This is disabled"
|
143
|
-
});
|
140
|
+
}));
|
144
141
|
};
|
145
|
-
export var ReadOnly = function ReadOnly() {
|
146
|
-
return ___EmotionJSX(TextAreaField, {
|
142
|
+
export var ReadOnly = function ReadOnly(args) {
|
143
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
147
144
|
isReadOnly: true,
|
148
145
|
label: "Example Label",
|
149
146
|
value: "This is read only"
|
150
|
-
});
|
147
|
+
}));
|
151
148
|
};
|
152
|
-
export var Required = function Required() {
|
153
|
-
return ___EmotionJSX(TextAreaField, {
|
149
|
+
export var Required = function Required(args) {
|
150
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
154
151
|
isRequired: true,
|
155
152
|
label: "Example Label"
|
156
|
-
});
|
153
|
+
}));
|
157
154
|
};
|
158
|
-
export var Rows = function Rows() {
|
159
|
-
return ___EmotionJSX(TextAreaField, {
|
155
|
+
export var Rows = function Rows(args) {
|
156
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
160
157
|
label: "Example label",
|
161
158
|
rows: 5
|
162
|
-
});
|
159
|
+
}));
|
163
160
|
};
|
164
|
-
export var Unresizable = function Unresizable() {
|
165
|
-
return ___EmotionJSX(TextAreaField, {
|
161
|
+
export var Unresizable = function Unresizable(args) {
|
162
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
166
163
|
isUnresizable: true,
|
167
164
|
label: "Example label"
|
168
|
-
});
|
165
|
+
}));
|
169
166
|
};
|
170
|
-
export var Error = function Error() {
|
171
|
-
return ___EmotionJSX(TextAreaField, {
|
167
|
+
export var Error = function Error(args) {
|
168
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
172
169
|
helperText: "Here is some helpful text...",
|
173
170
|
label: "Example Label",
|
174
171
|
status: "error"
|
175
|
-
});
|
172
|
+
}));
|
176
173
|
};
|
177
|
-
export var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
178
|
-
return ___EmotionJSX(TextAreaField, {
|
174
|
+
export var WithoutStatusIndicator = function WithoutStatusIndicator(args) {
|
175
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
179
176
|
label: "Example Label",
|
180
177
|
hasNoStatusIndicator: true
|
181
|
-
});
|
178
|
+
}));
|
182
179
|
};
|
183
|
-
export var MaxLength = function MaxLength() {
|
184
|
-
return ___EmotionJSX(TextAreaField, {
|
180
|
+
export var MaxLength = function MaxLength(args) {
|
181
|
+
return ___EmotionJSX(TextAreaField, _extends({}, args, {
|
185
182
|
label: "Example label",
|
186
183
|
maxLength: 9
|
187
|
-
});
|
184
|
+
}));
|
188
185
|
};
|
@@ -33,9 +33,6 @@ export default {
|
|
33
33
|
docs: {
|
34
34
|
page: function page() {
|
35
35
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
36
|
-
},
|
37
|
-
source: {
|
38
|
-
type: 'code'
|
39
36
|
}
|
40
37
|
}
|
41
38
|
},
|
@@ -74,21 +71,21 @@ export var Default = function Default(_ref) {
|
|
74
71
|
}
|
75
72
|
}, args));
|
76
73
|
};
|
77
|
-
export var SmallVariant = function SmallVariant() {
|
78
|
-
return ___EmotionJSX(TextField, {
|
74
|
+
export var SmallVariant = function SmallVariant(args) {
|
75
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
79
76
|
id: "small-variant-id",
|
80
77
|
name: "custom-name",
|
81
78
|
label: "Example Label",
|
82
79
|
controlProps: {
|
83
80
|
variant: 'input.small'
|
84
81
|
}
|
85
|
-
});
|
82
|
+
}));
|
86
83
|
};
|
87
|
-
export var FloatLabel = function FloatLabel() {
|
88
|
-
return ___EmotionJSX(TextField, {
|
84
|
+
export var FloatLabel = function FloatLabel(args) {
|
85
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
89
86
|
label: "Example Label",
|
90
87
|
labelMode: "float"
|
91
|
-
});
|
88
|
+
}));
|
92
89
|
};
|
93
90
|
|
94
91
|
// Added to bypass color contrast issue
|
@@ -102,18 +99,18 @@ FloatLabel.parameters = {
|
|
102
99
|
}
|
103
100
|
}
|
104
101
|
};
|
105
|
-
export var LeftLabel = function LeftLabel() {
|
102
|
+
export var LeftLabel = function LeftLabel(args) {
|
106
103
|
return ___EmotionJSX(Box, {
|
107
104
|
gap: "xl",
|
108
105
|
width: "100%"
|
109
|
-
}, ___EmotionJSX(TextField, {
|
106
|
+
}, ___EmotionJSX(TextField, _extends({}, args, {
|
110
107
|
helperText: "Here is some helpful text...",
|
111
108
|
label: "Example Label",
|
112
109
|
labelMode: "left"
|
113
|
-
}), ___EmotionJSX(TextField, {
|
110
|
+
})), ___EmotionJSX(TextField, _extends({}, args, {
|
114
111
|
label: "Example Label that is much longer than the previous one",
|
115
112
|
labelMode: "left"
|
116
|
-
}), ___EmotionJSX(TextField, {
|
113
|
+
})), ___EmotionJSX(TextField, _extends({}, args, {
|
117
114
|
label: "Example label with set width",
|
118
115
|
labelMode: "left",
|
119
116
|
containerProps: {
|
@@ -121,7 +118,7 @@ export var LeftLabel = function LeftLabel() {
|
|
121
118
|
gridTemplateColumns: '120px auto'
|
122
119
|
}
|
123
120
|
}
|
124
|
-
}));
|
121
|
+
})));
|
125
122
|
};
|
126
123
|
LeftLabel.parameters = {
|
127
124
|
docs: {
|
@@ -143,30 +140,30 @@ export var Controlled = function Controlled() {
|
|
143
140
|
value: value
|
144
141
|
});
|
145
142
|
};
|
146
|
-
export var Password = function Password() {
|
147
|
-
return ___EmotionJSX(TextField, {
|
143
|
+
export var Password = function Password(args) {
|
144
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
148
145
|
label: "Example Label",
|
149
146
|
type: "password"
|
150
|
-
});
|
147
|
+
}));
|
151
148
|
};
|
152
|
-
export var Disabled = function Disabled() {
|
153
|
-
return ___EmotionJSX(TextField, {
|
149
|
+
export var Disabled = function Disabled(args) {
|
150
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
154
151
|
isDisabled: true,
|
155
152
|
label: "Example Label"
|
156
|
-
});
|
153
|
+
}));
|
157
154
|
};
|
158
|
-
export var ReadOnly = function ReadOnly() {
|
159
|
-
return ___EmotionJSX(TextField, {
|
155
|
+
export var ReadOnly = function ReadOnly(args) {
|
156
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
160
157
|
isReadOnly: true,
|
161
158
|
label: "Example Label",
|
162
159
|
value: "This is read only"
|
163
|
-
});
|
160
|
+
}));
|
164
161
|
};
|
165
|
-
export var Required = function Required() {
|
166
|
-
return ___EmotionJSX(TextField, {
|
162
|
+
export var Required = function Required(args) {
|
163
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
167
164
|
isRequired: true,
|
168
165
|
label: "Example Label"
|
169
|
-
});
|
166
|
+
}));
|
170
167
|
};
|
171
168
|
export var DynamicRequired = function DynamicRequired() {
|
172
169
|
var _useState3 = useState(''),
|
@@ -182,37 +179,37 @@ export var DynamicRequired = function DynamicRequired() {
|
|
182
179
|
}
|
183
180
|
});
|
184
181
|
};
|
185
|
-
export var Error = function Error() {
|
186
|
-
return ___EmotionJSX(TextField, {
|
182
|
+
export var Error = function Error(args) {
|
183
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
187
184
|
helperText: "Here is some helpful text...",
|
188
185
|
label: "Example Label",
|
189
186
|
status: "error"
|
190
|
-
});
|
187
|
+
}));
|
191
188
|
};
|
192
|
-
export var Success = function Success() {
|
193
|
-
return ___EmotionJSX(TextField, {
|
189
|
+
export var Success = function Success(args) {
|
190
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
194
191
|
helperText: "Here is some helpful text...",
|
195
192
|
label: "Example Label",
|
196
193
|
status: "success"
|
197
|
-
});
|
194
|
+
}));
|
198
195
|
};
|
199
|
-
export var Warning = function Warning() {
|
200
|
-
return ___EmotionJSX(TextField, {
|
196
|
+
export var Warning = function Warning(args) {
|
197
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
201
198
|
helperText: "Here is some helpful text...",
|
202
199
|
label: "Example Label",
|
203
200
|
status: "warning"
|
204
|
-
});
|
201
|
+
}));
|
205
202
|
};
|
206
|
-
export var WithHelpHint = function WithHelpHint() {
|
207
|
-
return ___EmotionJSX(TextField, {
|
203
|
+
export var WithHelpHint = function WithHelpHint(args) {
|
204
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
208
205
|
id: "with-help-hint-id",
|
209
206
|
name: "custom-name",
|
210
207
|
hintText: "Example Hint",
|
211
208
|
label: "Example Label"
|
212
|
-
});
|
209
|
+
}));
|
213
210
|
};
|
214
|
-
export var WithHelpHintCustomWidth = function WithHelpHintCustomWidth() {
|
215
|
-
return ___EmotionJSX(TextField, {
|
211
|
+
export var WithHelpHintCustomWidth = function WithHelpHintCustomWidth(args) {
|
212
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
216
213
|
id: "with-help-hint-id",
|
217
214
|
name: "custom-name",
|
218
215
|
hintText: "Example Hint",
|
@@ -220,7 +217,7 @@ export var WithHelpHintCustomWidth = function WithHelpHintCustomWidth() {
|
|
220
217
|
helpHintProps: {
|
221
218
|
width: '300px'
|
222
219
|
}
|
223
|
-
});
|
220
|
+
}));
|
224
221
|
};
|
225
222
|
|
226
223
|
// Added to bypass color contrast issue
|
@@ -234,17 +231,17 @@ WithHelpHintCustomWidth.parameters = {
|
|
234
231
|
}
|
235
232
|
}
|
236
233
|
};
|
237
|
-
export var WithoutStatusIndicator = function WithoutStatusIndicator() {
|
238
|
-
return ___EmotionJSX(TextField, {
|
234
|
+
export var WithoutStatusIndicator = function WithoutStatusIndicator(args) {
|
235
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
239
236
|
label: "Example Label",
|
240
237
|
hasNoStatusIndicator: true
|
241
|
-
});
|
238
|
+
}));
|
242
239
|
};
|
243
|
-
export var MaxLength = function MaxLength() {
|
244
|
-
return ___EmotionJSX(TextField, {
|
240
|
+
export var MaxLength = function MaxLength(args) {
|
241
|
+
return ___EmotionJSX(TextField, _extends({}, args, {
|
245
242
|
label: "Example label",
|
246
243
|
maxLength: 9
|
247
|
-
});
|
244
|
+
}));
|
248
245
|
};
|
249
246
|
export var WithSlots = function WithSlots() {
|
250
247
|
var _useState5 = useState("[{ 'type': 'work', 'streetAddress': 'San Antonio MI 47096' },{ 'type': 'home', 'streetAddress': 'Santa Rosa MN 98804' }]"),
|
@@ -13,9 +13,6 @@ export default {
|
|
13
13
|
argTypesRegex: '^on.*'
|
14
14
|
},
|
15
15
|
docs: {
|
16
|
-
source: {
|
17
|
-
type: 'code'
|
18
|
-
},
|
19
16
|
page: function page() {
|
20
17
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TimeFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
21
18
|
}
|
@@ -42,7 +39,7 @@ export var DefaultValue = function DefaultValue(args) {
|
|
42
39
|
defaultValue: "12:30"
|
43
40
|
}));
|
44
41
|
};
|
45
|
-
export var Controlled = function Controlled(
|
42
|
+
export var Controlled = function Controlled() {
|
46
43
|
var _useState = useState('12:30'),
|
47
44
|
_useState2 = _slicedToArray(_useState, 2),
|
48
45
|
time = _useState2[0],
|
@@ -50,11 +47,11 @@ export var Controlled = function Controlled(args) {
|
|
50
47
|
var onChangeHandler = function onChangeHandler(value) {
|
51
48
|
return setTime(value.toString());
|
52
49
|
};
|
53
|
-
return ___EmotionJSX(TimeField,
|
50
|
+
return ___EmotionJSX(TimeField, {
|
54
51
|
"aria-label": "timefield-default",
|
55
52
|
value: time,
|
56
53
|
onChange: onChangeHandler
|
57
|
-
})
|
54
|
+
});
|
58
55
|
};
|
59
56
|
export var Disabled = function Disabled(args) {
|
60
57
|
return ___EmotionJSX(TimeField, _extends({}, args, {
|
@@ -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 { TimeZonePicker } from '../../index';
|
@@ -14,17 +15,17 @@ export default {
|
|
14
15
|
}
|
15
16
|
}
|
16
17
|
};
|
17
|
-
export var Default = function Default() {
|
18
|
-
return ___EmotionJSX(TimeZonePicker, {
|
18
|
+
export var Default = function Default(args) {
|
19
|
+
return ___EmotionJSX(TimeZonePicker, _extends({}, args, {
|
19
20
|
label: "Default Example"
|
20
|
-
});
|
21
|
+
}));
|
21
22
|
};
|
22
|
-
export var WithCustomTimeZone = function WithCustomTimeZone() {
|
23
|
+
export var WithCustomTimeZone = function WithCustomTimeZone(args) {
|
23
24
|
var customTimeZone = {
|
24
25
|
'(GMT+02:00) Africa/Juba': 'Africa/Juba'
|
25
26
|
};
|
26
|
-
return ___EmotionJSX(TimeZonePicker, {
|
27
|
+
return ___EmotionJSX(TimeZonePicker, _extends({}, args, {
|
27
28
|
additionalTimeZones: customTimeZone,
|
28
29
|
label: "With Custom Time Zone (Africa/Juba)"
|
29
|
-
});
|
30
|
+
}));
|
30
31
|
};
|
@@ -25,7 +25,9 @@ var TooltipTrigger = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
25
25
|
isDarkMode = props.isDarkMode,
|
26
26
|
hasNoArrow = props.hasNoArrow,
|
27
27
|
targetRef = props.targetRef,
|
28
|
-
width = props.width
|
28
|
+
width = props.width,
|
29
|
+
_props$shouldAnimate = props.shouldAnimate,
|
30
|
+
shouldAnimate = _props$shouldAnimate === void 0 ? true : _props$shouldAnimate;
|
29
31
|
var _React$Children$toArr = React.Children.toArray(children),
|
30
32
|
_React$Children$toArr2 = _slicedToArray(_React$Children$toArr, 2),
|
31
33
|
trigger = _React$Children$toArr2[0],
|
@@ -48,7 +50,7 @@ var TooltipTrigger = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
48
50
|
var _useGetTheme = useGetTheme(),
|
49
51
|
themeState = _useGetTheme.themeState;
|
50
52
|
var isTransitioning = useMountTransition(state.isOpen, 200);
|
51
|
-
var isOpen = state.isOpen || themeState.isOnyx && isTransitioning;
|
53
|
+
var isOpen = state.isOpen || themeState.isOnyx && shouldAnimate && isTransitioning;
|
52
54
|
var _useOverlayPosition = useOverlayPosition({
|
53
55
|
placement: _concatInstanceProperty(_context = "".concat(direction, " ")).call(_context, align),
|
54
56
|
targetRef: tooltipRef,
|
@@ -62,7 +64,7 @@ var TooltipTrigger = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
62
64
|
positionProps = _useOverlayPosition.overlayProps,
|
63
65
|
arrowProps = _useOverlayPosition.arrowProps,
|
64
66
|
placement = _useOverlayPosition.placement;
|
65
|
-
var _useStatusClasses = useStatusClasses(className, (_useStatusClasses2 = {}, _defineProperty(_useStatusClasses2, "is-".concat(direction), direction), _defineProperty(_useStatusClasses2, "isDarkMode", isDarkMode), _defineProperty(_useStatusClasses2, "isTransitioning", isTransitioning), _defineProperty(_useStatusClasses2, "isMounted", state.isOpen), _useStatusClasses2)),
|
67
|
+
var _useStatusClasses = useStatusClasses(className, (_useStatusClasses2 = {}, _defineProperty(_useStatusClasses2, "is-".concat(direction), direction), _defineProperty(_useStatusClasses2, "isDarkMode", isDarkMode), _defineProperty(_useStatusClasses2, "animate", shouldAnimate), _defineProperty(_useStatusClasses2, "isTransitioning", isTransitioning), _defineProperty(_useStatusClasses2, "isMounted", state.isOpen), _useStatusClasses2)),
|
66
68
|
classNames = _useStatusClasses.classNames;
|
67
69
|
var overlay = ___EmotionJSX(PopoverContainer, _extends({
|
68
70
|
isOpen: isOpen,
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
1
2
|
import React from 'react';
|
2
3
|
import AccountIcon from '@pingux/mdi-react/AccountIcon';
|
3
4
|
import Earth from '@pingux/mdi-react/EarthIcon';
|
@@ -14,37 +15,43 @@ export default {
|
|
14
15
|
page: function page() {
|
15
16
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TooltipTriggerReadme, null), ___EmotionJSX(DocsLayout, null));
|
16
17
|
}
|
18
|
+
},
|
19
|
+
codesandbox: {
|
20
|
+
mapComponent: {
|
21
|
+
'@pingux/astro': ['Box', 'Button', 'Icon', 'IconButton', 'Text', 'Tooltip', 'TooltipTrigger'],
|
22
|
+
'@pingux/mdi-react/AccountIcon': 'AccountIcon'
|
23
|
+
}
|
17
24
|
}
|
18
25
|
}
|
19
26
|
};
|
20
27
|
export var Default = function Default(args) {
|
21
28
|
return ___EmotionJSX(TooltipTrigger, args, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Tooltip Content"));
|
22
29
|
};
|
23
|
-
export var withAlignProp = function withAlignProp() {
|
24
|
-
return ___EmotionJSX(TooltipTrigger, {
|
30
|
+
export var withAlignProp = function withAlignProp(args) {
|
31
|
+
return ___EmotionJSX(TooltipTrigger, _extends({}, args, {
|
25
32
|
align: "end"
|
26
|
-
}, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "End aligned"));
|
33
|
+
}), ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "End aligned"));
|
27
34
|
};
|
28
|
-
export var withDirectionProp = function withDirectionProp() {
|
29
|
-
return ___EmotionJSX(TooltipTrigger, {
|
35
|
+
export var withDirectionProp = function withDirectionProp(args) {
|
36
|
+
return ___EmotionJSX(TooltipTrigger, _extends({}, args, {
|
30
37
|
direction: "right"
|
31
|
-
}, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Display on the right"));
|
38
|
+
}), ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Display on the right"));
|
32
39
|
};
|
33
|
-
export var withArrowCrossOffsetProp = function withArrowCrossOffsetProp() {
|
34
|
-
return ___EmotionJSX(TooltipTrigger, {
|
40
|
+
export var withArrowCrossOffsetProp = function withArrowCrossOffsetProp(args) {
|
41
|
+
return ___EmotionJSX(TooltipTrigger, _extends({}, args, {
|
35
42
|
arrowCrossOffset: "30px",
|
36
43
|
isOpen: true
|
37
|
-
}, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "With arrowCrossOffset=\"30px\""));
|
44
|
+
}), ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "With arrowCrossOffset=\"30px\""));
|
38
45
|
};
|
39
|
-
export var isOpen = function isOpen() {
|
40
|
-
return ___EmotionJSX(TooltipTrigger, {
|
46
|
+
export var isOpen = function isOpen(args) {
|
47
|
+
return ___EmotionJSX(TooltipTrigger, _extends({}, args, {
|
41
48
|
isOpen: true
|
42
|
-
}, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Display by default"));
|
49
|
+
}), ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Display by default"));
|
43
50
|
};
|
44
|
-
export var IconWithTooltip = function IconWithTooltip() {
|
51
|
+
export var IconWithTooltip = function IconWithTooltip(args) {
|
45
52
|
return ___EmotionJSX(Box, {
|
46
53
|
pl: 50
|
47
|
-
}, ___EmotionJSX(TooltipTrigger,
|
54
|
+
}, ___EmotionJSX(TooltipTrigger, args, ___EmotionJSX(IconButton, {
|
48
55
|
variant: "tooltip.button"
|
49
56
|
}, ___EmotionJSX(Icon, {
|
50
57
|
icon: AccountIcon,
|
@@ -53,10 +60,10 @@ export var IconWithTooltip = function IconWithTooltip() {
|
|
53
60
|
}
|
54
61
|
})), ___EmotionJSX(Tooltip, null, "Useful tooltip")));
|
55
62
|
};
|
56
|
-
export var BadgeWithTooltip = function BadgeWithTooltip() {
|
63
|
+
export var BadgeWithTooltip = function BadgeWithTooltip(args) {
|
57
64
|
return ___EmotionJSX(Box, {
|
58
65
|
pl: 50
|
59
|
-
}, ___EmotionJSX(TooltipTrigger,
|
66
|
+
}, ___EmotionJSX(TooltipTrigger, args, ___EmotionJSX(Button, {
|
60
67
|
variant: "variants.tooltip.badge",
|
61
68
|
bg: "neutral.10"
|
62
69
|
}, ___EmotionJSX(Text, {
|
@@ -75,18 +82,18 @@ BadgeWithTooltip.parameters = {
|
|
75
82
|
url: FIGMA_LINKS.tooltipTrigger.badgeWithTooltip
|
76
83
|
}
|
77
84
|
};
|
78
|
-
export var TextWithTooltip = function TextWithTooltip() {
|
85
|
+
export var TextWithTooltip = function TextWithTooltip(args) {
|
79
86
|
return ___EmotionJSX(Box, {
|
80
87
|
pl: 50
|
81
|
-
}, ___EmotionJSX(TooltipTrigger,
|
88
|
+
}, ___EmotionJSX(TooltipTrigger, args, ___EmotionJSX(Button, {
|
82
89
|
variant: "variants.tooltip.inline"
|
83
90
|
}, "Some text"), ___EmotionJSX(Tooltip, null, "Useful tooltip")));
|
84
91
|
};
|
85
|
-
export var Disabled = function Disabled() {
|
86
|
-
return ___EmotionJSX(TooltipTrigger, {
|
92
|
+
export var Disabled = function Disabled(args) {
|
93
|
+
return ___EmotionJSX(TooltipTrigger, _extends({}, args, {
|
87
94
|
delay: 0,
|
88
95
|
isDisabled: true
|
89
|
-
}, ___EmotionJSX(IconButton, {
|
96
|
+
}), ___EmotionJSX(IconButton, {
|
90
97
|
"aria-label": "Earth Icon"
|
91
98
|
}, ___EmotionJSX(Icon, {
|
92
99
|
icon: Earth,
|
@@ -102,13 +109,13 @@ Disabled.parameters = {
|
|
102
109
|
}
|
103
110
|
}
|
104
111
|
};
|
105
|
-
export var withDelayProp = function withDelayProp() {
|
106
|
-
return ___EmotionJSX(TooltipTrigger, {
|
112
|
+
export var withDelayProp = function withDelayProp(args) {
|
113
|
+
return ___EmotionJSX(TooltipTrigger, _extends({}, args, {
|
107
114
|
delay: 700
|
108
|
-
}, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Display with a delay"));
|
115
|
+
}), ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Display with a delay"));
|
109
116
|
};
|
110
|
-
export var customWidth = function customWidth() {
|
111
|
-
return ___EmotionJSX(TooltipTrigger, {
|
117
|
+
export var customWidth = function customWidth(args) {
|
118
|
+
return ___EmotionJSX(TooltipTrigger, _extends({}, args, {
|
112
119
|
width: "200px"
|
113
|
-
}, ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Custom width display"));
|
120
|
+
}), ___EmotionJSX(Button, null, "Hover Over Me!"), ___EmotionJSX(Tooltip, null, "Custom width display"));
|
114
121
|
};
|
@@ -29,9 +29,6 @@ export default {
|
|
29
29
|
docs: {
|
30
30
|
page: function page() {
|
31
31
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TreeViewReadMe, null), ___EmotionJSX(DocsLayout, null));
|
32
|
-
},
|
33
|
-
source: {
|
34
|
-
type: 'code'
|
35
32
|
}
|
36
33
|
},
|
37
34
|
a11y: {
|
@@ -47,7 +44,8 @@ export default {
|
|
47
44
|
enabled: false
|
48
45
|
}]
|
49
46
|
}
|
50
|
-
}
|
47
|
+
},
|
48
|
+
codesandbox: false
|
51
49
|
}
|
52
50
|
};
|
53
51
|
var data = [{
|
@@ -21,7 +21,10 @@ import InviteTeamMembers from '../utils/devUtils/assets/accordionRecepi/InviteTe
|
|
21
21
|
import LaunchStartedExperience from '../utils/devUtils/assets/accordionRecepi/LaunchStartedExperience.svg';
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
23
23
|
export default {
|
24
|
-
title: 'Recipes/AccordionCard'
|
24
|
+
title: 'Recipes/AccordionCard',
|
25
|
+
parameters: {
|
26
|
+
codesandbox: false
|
27
|
+
}
|
25
28
|
};
|
26
29
|
var accordionItemSX = {
|
27
30
|
itemContainer: {
|
@@ -13,7 +13,10 @@ import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.ts';
|
|
13
13
|
import statuses from '../utils/devUtils/constants/statuses';
|
14
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
15
15
|
export default {
|
16
|
-
title: 'Recipes/Attribute Mappings'
|
16
|
+
title: 'Recipes/Attribute Mappings',
|
17
|
+
parameters: {
|
18
|
+
codesandbox: false
|
19
|
+
}
|
17
20
|
};
|
18
21
|
var sx = {
|
19
22
|
alertCircleIcon: {
|
@@ -24,7 +24,10 @@ import { useFilter } from '@react-aria/i18n';
|
|
24
24
|
import { Badge, Box, Breadcrumbs, CheckboxField, CollapsiblePanel, CollapsiblePanelItem, Icon, IconButton, Item, ListView, ListViewItem, SearchField, Text } from '../index';
|
25
25
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
26
26
|
export default {
|
27
|
-
title: 'Recipes/CollapsiblePanel with List'
|
27
|
+
title: 'Recipes/CollapsiblePanel with List',
|
28
|
+
parameters: {
|
29
|
+
codesandbox: false
|
30
|
+
}
|
28
31
|
};
|
29
32
|
var data = [{
|
30
33
|
id: '1',
|
@@ -3,7 +3,10 @@ import useCopyToClipboard from '../hooks/useCopyToClipboard';
|
|
3
3
|
import { Box, Button, Text } from '../index';
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
5
|
export default {
|
6
|
-
title: 'Recipes/Copy to Clipboard'
|
6
|
+
title: 'Recipes/Copy to Clipboard',
|
7
|
+
parameters: {
|
8
|
+
codesandbox: false
|
9
|
+
}
|
7
10
|
};
|
8
11
|
export var Default = function Default() {
|
9
12
|
var textToCopy = 'eyJraWQiOiI4YTg5MmY3ZS1iNTk1LTRkYWQtODBlNC0yMzA4ODkyZTczZDQiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwczovL2FwaS5waW5nb25lLmNvbSIsImF1dGhVcmwiOiJodHRwczovL2F1dGgucGluZ29uZS5jb20iLCJjb25zb2xlVXJsIjoiaHR0cHM6Ly9jb25zb2xlLnBpbmdvbmUuY29tIiwiZW52aXJvbm1lbnROYW1lIjoiTW9udGFuYSIsImVudmlyb25tZW50SWQiOiJhYzc2NWQ0Ny1kMDM2LTQ1MGUtODFjMS1mYjQ1NDMxMjM1NjYiLCJvcmdhbml6YXRpb25OYW1lIjoiaW50ZXJuYWxfZXJpa2FhbGRlYm9yZ2hfMjUyMDc1MDMxIiwib3JnYW5pemF0aW9uSWQiOiJkMDYzMmYwZi03YjQ2LTQ5ZjUtYjgyYS1kZWU5MWQ3MDY3ODYiLCJnYXRld2F5TmFtZSI6ImRzZHMiLCJnYXRld2F5SWQiOiJiMDVmNGU5Yy1jMzRiLTRlZTMtYTYyNS01ZGFiNjlkYTE1YTEiLCJnYXRld2F5VHlwZSI6IlBJTkdfRkVERVJBVEUiLCJ0YXJnZXRDbHVzdGVyRW52aXJvbm1lbnQiOiJQUk9EIiwidGFyZ2V0R2VvZ3JhcGh5IjoiTkEiLCJyZWdpb24iOiJOb3J0aCBBbWVyaWNhIiwianRpIjoiMTUwYTQ0OTktZjIyYi00YWVhLWIzY2UtYWM2YWY1NjVjNjk5IiwiaXNzIjoid3NzOi8vZ2F0ZXdheXMucGluZ29uZS5jb20iLCJpYXQiOjE2MjYyODEyMTZ9.JJ9wwqTxQWUwz2vmU0yE54xuYff51xbirzZuEUxd8GDzV45bnpbmx460CY8g9ccdmOjvfVF4RPPsawpKuMZH271tDlLZl67iknxDVWBZSih9K6v0RAmsmNriR4OyOFOkGrULCIz3ISyPWeItp1AVuue_8guWR63KzYg32aPC4SgmOrc2myq9N6XNU2H1KybETbG_s5-VU_cUqaXn7GUzhL2_W6CSVrrlE1cYfjC7pxMKFm4vvIw_KcNYVGO1K6oYgzRZ4A8toQHIdlGB8L-wkCt442LdC93OjoQdkLuGzmXnO8BUohWea-Dn35gGHoH-H1BRQTya_H9AKyWMxCw-vg';
|
@@ -11,7 +11,10 @@ import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks';
|
|
11
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
12
12
|
export default {
|
13
13
|
title: 'Recipes/Country Picker',
|
14
|
-
decorators: [withDesign]
|
14
|
+
decorators: [withDesign],
|
15
|
+
parameters: {
|
16
|
+
codesandbox: false
|
17
|
+
}
|
15
18
|
};
|
16
19
|
var validatePhoneNumber = function validatePhoneNumber(str) {
|
17
20
|
var reg = /^$|^[\d\-(\d)\s.]+$|^\+/g;
|
@@ -25,7 +25,10 @@ import { Box, Button, CheckboxField, DataTable, DataTableBody, DataTableCell, Da
|
|
25
25
|
import { placeholder } from '../utils/devUtils/constants/images';
|
26
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
27
27
|
export default {
|
28
|
-
title: 'Recipes/Data Visualization with Filtering'
|
28
|
+
title: 'Recipes/Data Visualization with Filtering',
|
29
|
+
parameters: {
|
30
|
+
codesandbox: false
|
31
|
+
}
|
29
32
|
};
|
30
33
|
var columns = [{
|
31
34
|
name: 'Country',
|
@@ -11,7 +11,10 @@ import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks';
|
|
11
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
12
12
|
export default {
|
13
13
|
title: 'Recipes/DateTimeRangePicker',
|
14
|
-
decorators: [withDesign]
|
14
|
+
decorators: [withDesign],
|
15
|
+
parameters: {
|
16
|
+
codesandbox: false
|
17
|
+
}
|
15
18
|
};
|
16
19
|
var dropdownItems = [{
|
17
20
|
key: 'Today',
|
@@ -23,7 +23,10 @@ import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks';
|
|
23
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
24
24
|
export default {
|
25
25
|
title: 'Recipes/Inline Editing',
|
26
|
-
decorators: [withDesign]
|
26
|
+
decorators: [withDesign],
|
27
|
+
parameters: {
|
28
|
+
codesandbox: false
|
29
|
+
}
|
27
30
|
};
|
28
31
|
var EditableAreaContext = /*#__PURE__*/createContext();
|
29
32
|
var EditableAreaProvider = EditableAreaContext.Provider;
|