@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
@@ -7,6 +7,7 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
|
|
7
7
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
8
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
9
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
10
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
10
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
11
12
|
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; }
|
12
13
|
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; }
|
@@ -25,9 +26,6 @@ export default {
|
|
25
26
|
docs: {
|
26
27
|
page: function page() {
|
27
28
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(NumberFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
28
|
-
},
|
29
|
-
source: {
|
30
|
-
type: 'code'
|
31
29
|
}
|
32
30
|
}
|
33
31
|
},
|
@@ -104,8 +102,8 @@ export default {
|
|
104
102
|
export var Default = function Default(args) {
|
105
103
|
return ___EmotionJSX(NumberField, args);
|
106
104
|
};
|
107
|
-
export var Decimals = function Decimals() {
|
108
|
-
return ___EmotionJSX(NumberField, {
|
105
|
+
export var Decimals = function Decimals(args) {
|
106
|
+
return ___EmotionJSX(NumberField, _extends({}, args, {
|
109
107
|
label: "Adjust exposure",
|
110
108
|
defaultValue: 0,
|
111
109
|
formatOptions: {
|
@@ -113,7 +111,7 @@ export var Decimals = function Decimals() {
|
|
113
111
|
minimumFractionDigits: 1,
|
114
112
|
maximumFractionDigits: 2
|
115
113
|
}
|
116
|
-
});
|
114
|
+
}));
|
117
115
|
};
|
118
116
|
export var ControlledState = function ControlledState() {
|
119
117
|
var _useState = useState(12),
|
@@ -126,8 +124,8 @@ export var ControlledState = function ControlledState() {
|
|
126
124
|
onChange: setValue
|
127
125
|
});
|
128
126
|
};
|
129
|
-
export var CurrencyValues = function CurrencyValues() {
|
130
|
-
return ___EmotionJSX(NumberField, {
|
127
|
+
export var CurrencyValues = function CurrencyValues(args) {
|
128
|
+
return ___EmotionJSX(NumberField, _extends({}, args, {
|
131
129
|
label: "Transaction amount",
|
132
130
|
defaultValue: 45,
|
133
131
|
formatOptions: {
|
@@ -136,14 +134,14 @@ export var CurrencyValues = function CurrencyValues() {
|
|
136
134
|
currencyDisplay: 'code',
|
137
135
|
currencySign: 'accounting'
|
138
136
|
}
|
139
|
-
});
|
137
|
+
}));
|
140
138
|
};
|
141
|
-
export var DisabledAndReadOnly = function DisabledAndReadOnly() {
|
142
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(NumberField, {
|
139
|
+
export var DisabledAndReadOnly = function DisabledAndReadOnly(args) {
|
140
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(NumberField, _extends({}, args, {
|
143
141
|
label: "Disabled",
|
144
142
|
isDisabled: true,
|
145
143
|
value: 25
|
146
|
-
}), ___EmotionJSX(NumberField, {
|
144
|
+
})), ___EmotionJSX(NumberField, _extends({}, args, {
|
147
145
|
label: "Read only",
|
148
146
|
isReadOnly: true,
|
149
147
|
value: 32,
|
@@ -152,19 +150,19 @@ export var DisabledAndReadOnly = function DisabledAndReadOnly() {
|
|
152
150
|
marginTop: '15px'
|
153
151
|
}
|
154
152
|
}
|
155
|
-
}));
|
153
|
+
})));
|
156
154
|
};
|
157
|
-
export var MinimumAndMaximumValues = function MinimumAndMaximumValues() {
|
158
|
-
return ___EmotionJSX(NumberField, {
|
155
|
+
export var MinimumAndMaximumValues = function MinimumAndMaximumValues(args) {
|
156
|
+
return ___EmotionJSX(NumberField, _extends({}, args, {
|
159
157
|
label: "Enter your age",
|
160
158
|
minValue: 0
|
161
|
-
});
|
159
|
+
}));
|
162
160
|
};
|
163
|
-
export var StepValues = function StepValues() {
|
164
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(NumberField, {
|
161
|
+
export var StepValues = function StepValues(args) {
|
162
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(NumberField, _extends({}, args, {
|
165
163
|
label: "Step",
|
166
164
|
step: 10
|
167
|
-
}), ___EmotionJSX(NumberField, {
|
165
|
+
})), ___EmotionJSX(NumberField, _extends({}, args, {
|
168
166
|
label: "Step + minValue",
|
169
167
|
minValue: 2,
|
170
168
|
step: 3,
|
@@ -173,7 +171,7 @@ export var StepValues = function StepValues() {
|
|
173
171
|
marginTop: '15px'
|
174
172
|
}
|
175
173
|
}
|
176
|
-
}), ___EmotionJSX(NumberField, {
|
174
|
+
})), ___EmotionJSX(NumberField, _extends({}, args, {
|
177
175
|
label: "Step + minValue + maxValue",
|
178
176
|
minValue: 2,
|
179
177
|
maxValue: 21,
|
@@ -186,17 +184,17 @@ export var StepValues = function StepValues() {
|
|
186
184
|
marginTop: '15px'
|
187
185
|
}
|
188
186
|
}
|
189
|
-
}));
|
187
|
+
})));
|
190
188
|
};
|
191
|
-
export var WithHelperText = function WithHelperText() {
|
192
|
-
return ___EmotionJSX(NumberField, {
|
189
|
+
export var WithHelperText = function WithHelperText(args) {
|
190
|
+
return ___EmotionJSX(NumberField, _extends({}, args, {
|
193
191
|
label: "Helper Text",
|
194
192
|
defaultValue: 88,
|
195
193
|
helperText: "Useful Text"
|
196
|
-
});
|
194
|
+
}));
|
197
195
|
};
|
198
|
-
export var Units = function Units() {
|
199
|
-
return ___EmotionJSX(NumberField, {
|
196
|
+
export var Units = function Units(args) {
|
197
|
+
return ___EmotionJSX(NumberField, _extends({}, args, {
|
200
198
|
label: "Package width",
|
201
199
|
defaultValue: 4,
|
202
200
|
formatOptions: {
|
@@ -204,5 +202,5 @@ export var Units = function Units() {
|
|
204
202
|
unit: 'inch',
|
205
203
|
unitDisplay: 'long'
|
206
204
|
}
|
207
|
-
});
|
205
|
+
}));
|
208
206
|
};
|
@@ -37,11 +37,9 @@ export default {
|
|
37
37
|
docs: {
|
38
38
|
page: function page() {
|
39
39
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(OverlayPanelReadme, null), ___EmotionJSX(DocsLayout, null));
|
40
|
-
},
|
41
|
-
source: {
|
42
|
-
type: 'code'
|
43
40
|
}
|
44
|
-
}
|
41
|
+
},
|
42
|
+
codesandbox: false
|
45
43
|
}
|
46
44
|
};
|
47
45
|
export var Default = function Default(_ref) {
|
@@ -12,9 +12,11 @@ export default {
|
|
12
12
|
docs: {
|
13
13
|
page: function page() {
|
14
14
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(PageHeaderReadMe, null), ___EmotionJSX(DocsLayout, null));
|
15
|
-
}
|
16
|
-
|
17
|
-
|
15
|
+
}
|
16
|
+
},
|
17
|
+
codesandbox: {
|
18
|
+
mapComponent: {
|
19
|
+
'@pingux/astro': ['Link', 'PageHeader']
|
18
20
|
}
|
19
21
|
}
|
20
22
|
},
|
@@ -43,10 +45,10 @@ Default.parameters = {
|
|
43
45
|
url: FIGMA_LINKS.pageHeader["default"]
|
44
46
|
}
|
45
47
|
};
|
46
|
-
export var WithoutButton = function WithoutButton() {
|
47
|
-
return ___EmotionJSX(PageHeader, {
|
48
|
+
export var WithoutButton = function WithoutButton(args) {
|
49
|
+
return ___EmotionJSX(PageHeader, _extends({
|
48
50
|
title: "Lorem ipsum"
|
49
|
-
}, description, ___EmotionJSX(Link, {
|
51
|
+
}, args), description, ___EmotionJSX(Link, {
|
50
52
|
href: "https://uilibrary.ping-eng.com/"
|
51
53
|
}, "Learn more"));
|
52
54
|
};
|
@@ -56,13 +58,13 @@ WithoutButton.parameters = {
|
|
56
58
|
url: FIGMA_LINKS.pageHeader.withoutButton
|
57
59
|
}
|
58
60
|
};
|
59
|
-
export var WithoutLink = function WithoutLink() {
|
60
|
-
return ___EmotionJSX(PageHeader, {
|
61
|
+
export var WithoutLink = function WithoutLink(args) {
|
62
|
+
return ___EmotionJSX(PageHeader, _extends({
|
61
63
|
buttonProps: {
|
62
64
|
onPress: function onPress() {}
|
63
65
|
},
|
64
66
|
title: "Lorem ipsum"
|
65
|
-
}, description);
|
67
|
+
}, args), description);
|
66
68
|
};
|
67
69
|
WithoutLink.parameters = {
|
68
70
|
design: {
|
@@ -70,13 +72,13 @@ WithoutLink.parameters = {
|
|
70
72
|
url: FIGMA_LINKS.pageHeader.withoutLink
|
71
73
|
}
|
72
74
|
};
|
73
|
-
export var Customization = function Customization() {
|
74
|
-
return ___EmotionJSX(PageHeader, {
|
75
|
+
export var Customization = function Customization(args) {
|
76
|
+
return ___EmotionJSX(PageHeader, _extends({
|
75
77
|
buttonProps: {
|
76
78
|
bg: 'critical.bright'
|
77
79
|
},
|
78
80
|
title: "Lorem ipsum"
|
79
|
-
}, description, ___EmotionJSX(Link, {
|
81
|
+
}, args), description, ___EmotionJSX(Link, {
|
80
82
|
href: "https://uilibrary.ping-eng.com/"
|
81
83
|
}, "Learn more"));
|
82
84
|
};
|
@@ -17,9 +17,13 @@ export default {
|
|
17
17
|
docs: {
|
18
18
|
page: function page() {
|
19
19
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(PanelHeaderReadMe, null), ___EmotionJSX(DocsLayout, null));
|
20
|
-
}
|
21
|
-
|
22
|
-
|
20
|
+
}
|
21
|
+
},
|
22
|
+
codesandbox: {
|
23
|
+
mapComponent: {
|
24
|
+
'@pingux/astro': ['Box', 'Breadcrumbs', 'Item', 'PanelHeader', 'PanelHeaderCloseButton', 'PanelHeaderMenu', 'PanelHeaderSwitchField'],
|
25
|
+
'@pingux/mdi-react/ChevronRightIcon': 'ChevronRightIcon',
|
26
|
+
'@pingux/mdi-react/AccountIcon': 'AccountIcon'
|
23
27
|
}
|
24
28
|
}
|
25
29
|
},
|
@@ -78,8 +82,8 @@ WithControls.parameters = {
|
|
78
82
|
url: FIGMA_LINKS.panelHeader.withControls
|
79
83
|
}
|
80
84
|
};
|
81
|
-
export var WithImage = function WithImage() {
|
82
|
-
return ___EmotionJSX(PanelHeader, {
|
85
|
+
export var WithImage = function WithImage(args) {
|
86
|
+
return ___EmotionJSX(PanelHeader, _extends({}, args, {
|
83
87
|
data: {
|
84
88
|
image: {
|
85
89
|
src: pingImg,
|
@@ -88,7 +92,7 @@ export var WithImage = function WithImage() {
|
|
88
92
|
},
|
89
93
|
text: 'Fons Vernall'
|
90
94
|
}
|
91
|
-
});
|
95
|
+
}));
|
92
96
|
};
|
93
97
|
WithImage.parameters = {
|
94
98
|
design: {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
2
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
3
|
import React, { useState } from 'react';
|
3
4
|
import DotsVerticalIcon from '@pingux/mdi-react/DotsVerticalIcon';
|
4
5
|
import { action } from '@storybook/addon-actions';
|
@@ -16,9 +17,12 @@ export default {
|
|
16
17
|
docs: {
|
17
18
|
page: function page() {
|
18
19
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(PopoverMenuReadme, null), ___EmotionJSX(DocsLayout, null));
|
19
|
-
}
|
20
|
-
|
21
|
-
|
20
|
+
}
|
21
|
+
},
|
22
|
+
codesandbox: {
|
23
|
+
mapComponent: {
|
24
|
+
'@pingux/astro': ['Icon', 'IconButton', 'Item', 'Menu', 'OverlayProvider', 'PopoverMenu', 'Section', 'Text'],
|
25
|
+
'@pingux/mdi-react/DotsVerticalIcon': 'DotsVerticalIcon'
|
22
26
|
}
|
23
27
|
}
|
24
28
|
},
|
@@ -71,13 +75,13 @@ Default.parameters = {
|
|
71
75
|
url: FIGMA_LINKS.popoverMenu["default"]
|
72
76
|
}
|
73
77
|
};
|
74
|
-
export var DefaultOpen = function DefaultOpen() {
|
78
|
+
export var DefaultOpen = function DefaultOpen(args) {
|
75
79
|
return (
|
76
80
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
77
81
|
// readers when an overlay opens.
|
78
|
-
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, {
|
82
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, _extends({}, args, {
|
79
83
|
isDefaultOpen: true
|
80
|
-
}, ___EmotionJSX(IconButton, {
|
84
|
+
}), ___EmotionJSX(IconButton, {
|
81
85
|
"aria-label": "more options",
|
82
86
|
variant: "inverted"
|
83
87
|
}, ___EmotionJSX(Icon, {
|
@@ -135,13 +139,16 @@ export var Controlled = function Controlled() {
|
|
135
139
|
}, "Delete")))))
|
136
140
|
);
|
137
141
|
};
|
138
|
-
|
142
|
+
Controlled.parameters = {
|
143
|
+
codesandbox: false
|
144
|
+
};
|
145
|
+
export var Placement = function Placement(args) {
|
139
146
|
return (
|
140
147
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
141
148
|
// readers when an overlay opens.
|
142
|
-
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, {
|
149
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, _extends({}, args, {
|
143
150
|
direction: "left"
|
144
|
-
}, ___EmotionJSX(IconButton, {
|
151
|
+
}), ___EmotionJSX(IconButton, {
|
145
152
|
"aria-label": "more options",
|
146
153
|
variant: "inverted"
|
147
154
|
}, ___EmotionJSX(Icon, {
|
@@ -164,14 +171,14 @@ export var Placement = function Placement() {
|
|
164
171
|
}, "Delete")))))
|
165
172
|
);
|
166
173
|
};
|
167
|
-
export var NotFlippable = function NotFlippable() {
|
174
|
+
export var NotFlippable = function NotFlippable(args) {
|
168
175
|
return (
|
169
176
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
170
177
|
// readers when an overlay opens.
|
171
|
-
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, {
|
178
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, _extends({}, args, {
|
172
179
|
direction: "left",
|
173
180
|
isNotFlippable: true
|
174
|
-
}, ___EmotionJSX(IconButton, {
|
181
|
+
}), ___EmotionJSX(IconButton, {
|
175
182
|
"aria-label": "more options",
|
176
183
|
variant: "inverted"
|
177
184
|
}, ___EmotionJSX(Icon, {
|
@@ -194,13 +201,13 @@ export var NotFlippable = function NotFlippable() {
|
|
194
201
|
}, "Delete")))))
|
195
202
|
);
|
196
203
|
};
|
197
|
-
export var NotClosedOnSelect = function NotClosedOnSelect() {
|
204
|
+
export var NotClosedOnSelect = function NotClosedOnSelect(args) {
|
198
205
|
return (
|
199
206
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
200
207
|
// readers when an overlay opens.
|
201
|
-
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, {
|
208
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, _extends({}, args, {
|
202
209
|
isNotClosedOnSelect: true
|
203
|
-
}, ___EmotionJSX(IconButton, {
|
210
|
+
}), ___EmotionJSX(IconButton, {
|
204
211
|
"aria-label": "more options",
|
205
212
|
variant: "inverted"
|
206
213
|
}, ___EmotionJSX(Icon, {
|
@@ -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() {
|