@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
@@ -43,9 +43,11 @@ var _default = {
|
|
43
43
|
docs: {
|
44
44
|
page: function page() {
|
45
45
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_EnvironmentBreadcrumb["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
46
|
-
}
|
47
|
-
|
48
|
-
|
46
|
+
}
|
47
|
+
},
|
48
|
+
codesandbox: {
|
49
|
+
mapComponent: {
|
50
|
+
'@pingux/astro': ['EnvironmentBreadcrumb', 'Badge', 'Box', 'Item', 'Section', 'Text']
|
49
51
|
}
|
50
52
|
}
|
51
53
|
}
|
@@ -277,10 +279,13 @@ var WithSections = function WithSections() {
|
|
277
279
|
});
|
278
280
|
};
|
279
281
|
exports.WithSections = WithSections;
|
280
|
-
|
281
|
-
|
282
|
+
WithSections.parameters = {
|
283
|
+
codesandbox: false
|
284
|
+
};
|
285
|
+
var OrgLevel = function OrgLevel(args) {
|
286
|
+
return (0, _react2.jsx)(_index.EnvironmentBreadcrumb, (0, _extends2["default"])({
|
282
287
|
name: "Organization"
|
283
|
-
});
|
288
|
+
}, args));
|
284
289
|
};
|
285
290
|
exports.OrgLevel = OrgLevel;
|
286
291
|
var DefaultOpen = function DefaultOpen() {
|
@@ -329,6 +334,9 @@ var DefaultOpen = function DefaultOpen() {
|
|
329
334
|
});
|
330
335
|
};
|
331
336
|
exports.DefaultOpen = DefaultOpen;
|
337
|
+
DefaultOpen.parameters = {
|
338
|
+
codesandbox: false
|
339
|
+
};
|
332
340
|
var ControlledMenu = function ControlledMenu() {
|
333
341
|
var _useState11 = (0, _react.useState)(false),
|
334
342
|
_useState12 = (0, _slicedToArray2["default"])(_useState11, 2),
|
@@ -379,4 +387,7 @@ var ControlledMenu = function ControlledMenu() {
|
|
379
387
|
}) : null);
|
380
388
|
});
|
381
389
|
};
|
382
|
-
exports.ControlledMenu = ControlledMenu;
|
390
|
+
exports.ControlledMenu = ControlledMenu;
|
391
|
+
ControlledMenu.parameters = {
|
392
|
+
codesandbox: false
|
393
|
+
};
|
@@ -4,6 +4,6 @@ import { FieldHelperTextProps } from '../../types';
|
|
4
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
5
5
|
export default _default;
|
6
6
|
export declare const Default: StoryFn<FieldHelperTextProps>;
|
7
|
-
export declare const Error: () => React.JSX.Element;
|
8
|
-
export declare const Success: () => React.JSX.Element;
|
9
|
-
export declare const Warning: () => React.JSX.Element;
|
7
|
+
export declare const Error: (args: any) => React.JSX.Element;
|
8
|
+
export declare const Success: (args: any) => React.JSX.Element;
|
9
|
+
export declare const Warning: (args: any) => React.JSX.Element;
|
@@ -13,6 +13,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
13
13
|
value: true
|
14
14
|
});
|
15
15
|
exports["default"] = exports.Warning = exports.Success = exports.Error = exports.Default = void 0;
|
16
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
16
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
18
|
var _react = _interopRequireDefault(require("react"));
|
18
19
|
var _index = require("../../index");
|
@@ -30,21 +31,21 @@ var Default = function Default(args) {
|
|
30
31
|
return (0, _react2.jsx)(_index.FieldHelperText, args, "Look at me!");
|
31
32
|
};
|
32
33
|
exports.Default = Default;
|
33
|
-
var Error = function Error() {
|
34
|
-
return (0, _react2.jsx)(_index.FieldHelperText, {
|
34
|
+
var Error = function Error(args) {
|
35
|
+
return (0, _react2.jsx)(_index.FieldHelperText, (0, _extends2["default"])({}, args, {
|
35
36
|
status: "error"
|
36
|
-
}, "Look at me!");
|
37
|
+
}), "Look at me!");
|
37
38
|
};
|
38
39
|
exports.Error = Error;
|
39
|
-
var Success = function Success() {
|
40
|
-
return (0, _react2.jsx)(_index.FieldHelperText, {
|
40
|
+
var Success = function Success(args) {
|
41
|
+
return (0, _react2.jsx)(_index.FieldHelperText, (0, _extends2["default"])({}, args, {
|
41
42
|
status: "success"
|
42
|
-
}, "Look at me!");
|
43
|
+
}), "Look at me!");
|
43
44
|
};
|
44
45
|
exports.Success = Success;
|
45
|
-
var Warning = function Warning() {
|
46
|
-
return (0, _react2.jsx)(_index.FieldHelperText, {
|
46
|
+
var Warning = function Warning(args) {
|
47
|
+
return (0, _react2.jsx)(_index.FieldHelperText, (0, _extends2["default"])({}, args, {
|
47
48
|
status: "warning"
|
48
|
-
}, "Look at me!");
|
49
|
+
}), "Look at me!");
|
49
50
|
};
|
50
51
|
exports.Warning = Warning;
|
@@ -40,9 +40,6 @@ var _default = {
|
|
40
40
|
docs: {
|
41
41
|
page: function page() {
|
42
42
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_FileInputField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
43
|
-
},
|
44
|
-
source: {
|
45
|
-
type: 'code'
|
46
43
|
}
|
47
44
|
}
|
48
45
|
},
|
@@ -107,15 +104,15 @@ var Default = function Default(args) {
|
|
107
104
|
}, args));
|
108
105
|
};
|
109
106
|
exports.Default = Default;
|
110
|
-
var CustomButtonText = function CustomButtonText() {
|
111
|
-
return (0, _react2.jsx)(_index.FileInputField, {
|
107
|
+
var CustomButtonText = function CustomButtonText(args) {
|
108
|
+
return (0, _react2.jsx)(_index.FileInputField, (0, _extends2["default"])({}, args, {
|
112
109
|
defaultButtonText: "Original Button Name",
|
113
110
|
label: "Custom Button Text",
|
114
111
|
sx: fitContentWidthSx
|
115
|
-
});
|
112
|
+
}));
|
116
113
|
};
|
117
114
|
exports.CustomButtonText = CustomButtonText;
|
118
|
-
var ControlledState = function ControlledState() {
|
115
|
+
var ControlledState = function ControlledState(args) {
|
119
116
|
var _useState = (0, _react.useState)([]),
|
120
117
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
121
118
|
userFiles = _useState2[0],
|
@@ -144,7 +141,7 @@ var ControlledState = function ControlledState() {
|
|
144
141
|
setUserFiles([]);
|
145
142
|
setError(null);
|
146
143
|
};
|
147
|
-
return (0, _react2.jsx)(_index.FileInputField, {
|
144
|
+
return (0, _react2.jsx)(_index.FileInputField, (0, _extends2["default"])({}, args, {
|
148
145
|
label: "Controlled State With limit on file size upload below 2 mb",
|
149
146
|
onFileSelect: handleFileSelect,
|
150
147
|
onRemove: handleFileRemove,
|
@@ -153,7 +150,7 @@ var ControlledState = function ControlledState() {
|
|
153
150
|
status: error && _statuses["default"].ERROR,
|
154
151
|
helperText: error,
|
155
152
|
isMultiple: true
|
156
|
-
});
|
153
|
+
}));
|
157
154
|
};
|
158
155
|
exports.ControlledState = ControlledState;
|
159
156
|
var DefaultFileListUncontrolled = function DefaultFileListUncontrolled() {
|
@@ -177,8 +174,8 @@ var DefaultFileListUncontrolled = function DefaultFileListUncontrolled() {
|
|
177
174
|
});
|
178
175
|
};
|
179
176
|
exports.DefaultFileListUncontrolled = DefaultFileListUncontrolled;
|
180
|
-
var ErrorStatusSingleFile = function ErrorStatusSingleFile() {
|
181
|
-
return (0, _react2.jsx)(_index.FileInputField, {
|
177
|
+
var ErrorStatusSingleFile = function ErrorStatusSingleFile(args) {
|
178
|
+
return (0, _react2.jsx)(_index.FileInputField, (0, _extends2["default"])({}, args, {
|
182
179
|
defaultFileList: [{
|
183
180
|
id: 'test-id3',
|
184
181
|
name: 'PingId Desktop (Windows)',
|
@@ -189,11 +186,11 @@ var ErrorStatusSingleFile = function ErrorStatusSingleFile() {
|
|
189
186
|
sx: fitContentWidthSx,
|
190
187
|
helperText: "There is an error",
|
191
188
|
status: _statuses["default"].ERROR
|
192
|
-
});
|
189
|
+
}));
|
193
190
|
};
|
194
191
|
exports.ErrorStatusSingleFile = ErrorStatusSingleFile;
|
195
|
-
var ErrorWithMultipleFiles = function ErrorWithMultipleFiles() {
|
196
|
-
return (0, _react2.jsx)(_index.FileInputField, {
|
192
|
+
var ErrorWithMultipleFiles = function ErrorWithMultipleFiles(args) {
|
193
|
+
return (0, _react2.jsx)(_index.FileInputField, (0, _extends2["default"])({}, args, {
|
197
194
|
defaultFileList: [{
|
198
195
|
id: 'test-id3',
|
199
196
|
name: 'PingId Desktop (Windows)',
|
@@ -208,10 +205,10 @@ var ErrorWithMultipleFiles = function ErrorWithMultipleFiles() {
|
|
208
205
|
sx: fitContentWidthSx,
|
209
206
|
helperText: "There is an error but helperText text will be default since no status passed",
|
210
207
|
isMultiple: true
|
211
|
-
});
|
208
|
+
}));
|
212
209
|
};
|
213
210
|
exports.ErrorWithMultipleFiles = ErrorWithMultipleFiles;
|
214
|
-
var WithCustomWidth = function WithCustomWidth() {
|
211
|
+
var WithCustomWidth = function WithCustomWidth(args) {
|
215
212
|
var textSx = {
|
216
213
|
textOverflow: 'ellipsis',
|
217
214
|
overflow: 'hidden',
|
@@ -219,7 +216,7 @@ var WithCustomWidth = function WithCustomWidth() {
|
|
219
216
|
};
|
220
217
|
return (0, _react2.jsx)(_index.Box, {
|
221
218
|
width: 200
|
222
|
-
}, (0, _react2.jsx)(_index.FileInputField, {
|
219
|
+
}, (0, _react2.jsx)(_index.FileInputField, (0, _extends2["default"])({}, args, {
|
223
220
|
defaultButtonText: "Long Long Button Text With A Lot of Words In It",
|
224
221
|
defaultFileList: [{
|
225
222
|
id: 'test-id1',
|
@@ -231,7 +228,7 @@ var WithCustomWidth = function WithCustomWidth() {
|
|
231
228
|
sx: textSx
|
232
229
|
},
|
233
230
|
isMultiple: true
|
234
|
-
}));
|
231
|
+
})));
|
235
232
|
};
|
236
233
|
exports.WithCustomWidth = WithCustomWidth;
|
237
234
|
var WithFileTypePdfAndImage = function WithFileTypePdfAndImage() {
|
@@ -28,7 +28,8 @@ var _default = {
|
|
28
28
|
page: function page() {
|
29
29
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Footer["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
30
30
|
}
|
31
|
-
}
|
31
|
+
},
|
32
|
+
codesandbox: false
|
32
33
|
}
|
33
34
|
};
|
34
35
|
exports["default"] = _default;
|
@@ -6,6 +6,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
7
7
|
});
|
8
8
|
exports["default"] = exports.Default = void 0;
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
9
10
|
var _react = _interopRequireDefault(require("react"));
|
10
11
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
11
12
|
var _index = require("../../index");
|
@@ -19,17 +20,41 @@ var _default = {
|
|
19
20
|
page: function page() {
|
20
21
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Grid["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
21
22
|
}
|
23
|
+
},
|
24
|
+
codesandbox: {
|
25
|
+
mapComponent: {
|
26
|
+
'@pingux/astro': ['Box', 'Grid', 'Text']
|
27
|
+
}
|
28
|
+
}
|
29
|
+
},
|
30
|
+
argTypes: {
|
31
|
+
repeat: {
|
32
|
+
options: ['fit', 'fill'],
|
33
|
+
control: {
|
34
|
+
type: 'select'
|
35
|
+
}
|
36
|
+
},
|
37
|
+
gap: {
|
38
|
+
control: {
|
39
|
+
type: 'number'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
width: {
|
43
|
+
control: false
|
44
|
+
},
|
45
|
+
columns: {
|
46
|
+
control: false
|
22
47
|
}
|
23
48
|
}
|
24
49
|
};
|
25
50
|
exports["default"] = _default;
|
26
|
-
var Default = function Default() {
|
51
|
+
var Default = function Default(args) {
|
27
52
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Text, {
|
28
53
|
mb: "sm",
|
29
54
|
fontStyle: "italic"
|
30
|
-
}, "Minimum width of child elements at responsive breakpoints"), (0, _react2.jsx)(_index.Grid, {
|
55
|
+
}, "Minimum width of child elements at responsive breakpoints"), (0, _react2.jsx)(_index.Grid, (0, _extends2["default"])({
|
31
56
|
width: [128, null, 192]
|
32
|
-
}, (0, _react2.jsx)(_index.Box, {
|
57
|
+
}, args), (0, _react2.jsx)(_index.Box, {
|
33
58
|
bg: "accent.90"
|
34
59
|
}, "Box"), (0, _react2.jsx)(_index.Box, {
|
35
60
|
bg: "neutral.80"
|
@@ -41,10 +66,10 @@ var Default = function Default() {
|
|
41
66
|
mt: "xl",
|
42
67
|
mb: "sm",
|
43
68
|
fontStyle: "italic"
|
44
|
-
}, "Defined number of equally-sized columns at responsive breakpoints"), (0, _react2.jsx)(_index.Grid, {
|
69
|
+
}, "Defined number of equally-sized columns at responsive breakpoints"), (0, _react2.jsx)(_index.Grid, (0, _extends2["default"])({
|
45
70
|
gap: 2,
|
46
71
|
columns: [2, null, 4]
|
47
|
-
}, (0, _react2.jsx)(_index.Box, {
|
72
|
+
}, args), (0, _react2.jsx)(_index.Box, {
|
48
73
|
bg: "accent.90"
|
49
74
|
}, "Box"), (0, _react2.jsx)(_index.Box, {
|
50
75
|
bg: "neutral.80"
|
@@ -56,10 +81,10 @@ var Default = function Default() {
|
|
56
81
|
mt: "xl",
|
57
82
|
mb: "sm",
|
58
83
|
fontStyle: "italic"
|
59
|
-
}, "Columns using grid syntax sizing at responsive breakpoints"), (0, _react2.jsx)(_index.Grid, {
|
84
|
+
}, "Columns using grid syntax sizing at responsive breakpoints"), (0, _react2.jsx)(_index.Grid, (0, _extends2["default"])({
|
60
85
|
gap: 2,
|
61
86
|
columns: [2, '1fr 2fr']
|
62
|
-
}, (0, _react2.jsx)(_index.Box, {
|
87
|
+
}, args), (0, _react2.jsx)(_index.Box, {
|
63
88
|
bg: "accent.90"
|
64
89
|
}, "Box"), (0, _react2.jsx)(_index.Box, {
|
65
90
|
bg: "neutral.80"
|
@@ -23,6 +23,11 @@ var _default = {
|
|
23
23
|
page: function page() {
|
24
24
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_HelpHint["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
25
25
|
}
|
26
|
+
},
|
27
|
+
codesandbox: {
|
28
|
+
mapComponent: {
|
29
|
+
'@pingux/astro': ['Box', 'HelpHint', 'Link', 'Text']
|
30
|
+
}
|
26
31
|
}
|
27
32
|
},
|
28
33
|
argTypes: {
|
@@ -50,10 +55,10 @@ Default.parameters = {
|
|
50
55
|
url: _figmaLinks.FIGMA_LINKS.helpHint["default"]
|
51
56
|
}
|
52
57
|
};
|
53
|
-
var WithPopoverAndIconButtonProps = function WithPopoverAndIconButtonProps() {
|
58
|
+
var WithPopoverAndIconButtonProps = function WithPopoverAndIconButtonProps(args) {
|
54
59
|
return (0, _react2.jsx)(_index.Box, {
|
55
60
|
p: 100
|
56
|
-
}, (0, _react2.jsx)(_index.HelpHint, {
|
61
|
+
}, (0, _react2.jsx)(_index.HelpHint, (0, _extends2["default"])({}, args, {
|
57
62
|
popoverProps: {
|
58
63
|
'data-testid': 'popover-container'
|
59
64
|
},
|
@@ -61,13 +66,13 @@ var WithPopoverAndIconButtonProps = function WithPopoverAndIconButtonProps() {
|
|
61
66
|
'aria-label': 'Help hint'
|
62
67
|
},
|
63
68
|
direction: "bottom"
|
64
|
-
}, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"));
|
69
|
+
}), "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"));
|
65
70
|
};
|
66
71
|
exports.WithPopoverAndIconButtonProps = WithPopoverAndIconButtonProps;
|
67
|
-
var ContentWithLink = function ContentWithLink() {
|
72
|
+
var ContentWithLink = function ContentWithLink(args) {
|
68
73
|
return (0, _react2.jsx)(_index.Box, {
|
69
74
|
p: 100
|
70
|
-
}, (0, _react2.jsx)(_index.HelpHint,
|
75
|
+
}, (0, _react2.jsx)(_index.HelpHint, args, (0, _react2.jsx)(_index.Text, {
|
71
76
|
variant: "popover"
|
72
77
|
}, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"), (0, _react2.jsx)(_index.Link, {
|
73
78
|
variant: "popover",
|
@@ -90,11 +95,11 @@ var WithDelay = function WithDelay(args) {
|
|
90
95
|
})));
|
91
96
|
};
|
92
97
|
exports.WithDelay = WithDelay;
|
93
|
-
var Customization = function Customization() {
|
98
|
+
var Customization = function Customization(args) {
|
94
99
|
return (0, _react2.jsx)(_index.Box, {
|
95
100
|
p: 100
|
96
|
-
}, (0, _react2.jsx)(_index.HelpHint, {
|
101
|
+
}, (0, _react2.jsx)(_index.HelpHint, (0, _extends2["default"])({}, args, {
|
97
102
|
direction: "bottom"
|
98
|
-
}, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"));
|
103
|
+
}), "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"));
|
99
104
|
};
|
100
105
|
exports.Customization = Customization;
|
@@ -57,7 +57,8 @@ exports.hintButton = hintButton;
|
|
57
57
|
var popoverContainer = _objectSpread(_objectSpread({}, _TooltipStyles.container), {}, {
|
58
58
|
p: '10px',
|
59
59
|
fontSize: 'sm',
|
60
|
-
fontWeight: 1
|
60
|
+
fontWeight: 1,
|
61
|
+
fontFamily: 'standard'
|
61
62
|
});
|
62
63
|
var _default = {
|
63
64
|
hintButton: hintButton,
|
@@ -42,9 +42,15 @@ var _default = {
|
|
42
42
|
docs: {
|
43
43
|
page: function page() {
|
44
44
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Icon["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
45
|
-
}
|
46
|
-
|
47
|
-
|
45
|
+
}
|
46
|
+
},
|
47
|
+
codesandbox: {
|
48
|
+
mapComponent: {
|
49
|
+
'@pingux/mdi-react/AccountGroupIcon': 'AccountGroupIcon',
|
50
|
+
'@pingux/mdi-react/AccountIcon': 'AccountIcon',
|
51
|
+
'@pingux/mdi-react/LockIcon': 'LockIcon',
|
52
|
+
'@pingux/mdi-react/SearchIcon': 'SearchIcon',
|
53
|
+
'@pingux/mdi-react/TagIcon': 'TagIcon'
|
48
54
|
}
|
49
55
|
}
|
50
56
|
},
|
@@ -88,7 +94,7 @@ Default.parameters = {
|
|
88
94
|
url: _figmaLinks.FIGMA_LINKS.icon["default"]
|
89
95
|
}
|
90
96
|
};
|
91
|
-
var SVGIcons = function SVGIcons() {
|
97
|
+
var SVGIcons = function SVGIcons(args) {
|
92
98
|
// SVGR can used to convert .svg files to components instead of doing this manually
|
93
99
|
var SVGComponent = function SVGComponent(props) {
|
94
100
|
var id = (0, _uuid.v4)();
|
@@ -104,11 +110,11 @@ var SVGIcons = function SVGIcons() {
|
|
104
110
|
d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"
|
105
111
|
}));
|
106
112
|
};
|
107
|
-
return (0, _react2.jsx)(_index.Icon, {
|
113
|
+
return (0, _react2.jsx)(_index.Icon, (0, _extends2["default"])({}, args, {
|
108
114
|
icon: SVGComponent,
|
109
115
|
color: "active",
|
110
116
|
size: "sm"
|
111
|
-
});
|
117
|
+
}));
|
112
118
|
};
|
113
119
|
exports.SVGIcons = SVGIcons;
|
114
120
|
var rowHeadings = ['SVG Size', 'Code Example', 'Icon Example'];
|
@@ -171,6 +177,9 @@ var Sizes = function Sizes() {
|
|
171
177
|
})))));
|
172
178
|
};
|
173
179
|
exports.Sizes = Sizes;
|
180
|
+
Sizes.parameters = {
|
181
|
+
codesandbox: false
|
182
|
+
};
|
174
183
|
var CommonlyUsed = function CommonlyUsed() {
|
175
184
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Box, {
|
176
185
|
isRow: true,
|
@@ -239,4 +248,7 @@ var CommonlyUsed = function CommonlyUsed() {
|
|
239
248
|
fontFamily: "monospace"
|
240
249
|
}, "import TagIcon from '@pingux/mdi-react/TagIcon'; ")));
|
241
250
|
};
|
242
|
-
exports.CommonlyUsed = CommonlyUsed;
|
251
|
+
exports.CommonlyUsed = CommonlyUsed;
|
252
|
+
CommonlyUsed.parameters = {
|
253
|
+
codesandbox: false
|
254
|
+
};
|
@@ -24,9 +24,13 @@ var _default = {
|
|
24
24
|
docs: {
|
25
25
|
page: function page() {
|
26
26
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_IconBadge["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
27
|
-
}
|
28
|
-
|
29
|
-
|
27
|
+
}
|
28
|
+
},
|
29
|
+
codesandbox: {
|
30
|
+
mapComponent: {
|
31
|
+
'@pingux/mdi-react/AccountGroupIcon': 'GroupIcon',
|
32
|
+
'@pingux/mdi-react/ArrowTopRightThickIcon': 'ArrowIcon',
|
33
|
+
'@pingux/astro': ['Box', 'Icon', 'IconBadge']
|
30
34
|
}
|
31
35
|
}
|
32
36
|
}
|
@@ -6,7 +6,7 @@ export default _default;
|
|
6
6
|
export declare const Default: StoryFn<IconButtonProps>;
|
7
7
|
export declare const Inverted: StoryFn<IconButtonProps>;
|
8
8
|
export declare const WithTooltip: {
|
9
|
-
(): React.JSX.Element;
|
9
|
+
(args: any): React.JSX.Element;
|
10
10
|
parameters: {
|
11
11
|
design: {
|
12
12
|
type: string;
|
@@ -30,6 +30,7 @@ export declare const Sizes: {
|
|
30
30
|
type: string;
|
31
31
|
url: string;
|
32
32
|
};
|
33
|
+
codesandbox: boolean;
|
33
34
|
};
|
34
35
|
};
|
35
36
|
export declare const CommonlyUsed: {
|
@@ -39,5 +40,6 @@ export declare const CommonlyUsed: {
|
|
39
40
|
type: string;
|
40
41
|
url: string;
|
41
42
|
};
|
43
|
+
codesandbox: boolean;
|
42
44
|
};
|
43
45
|
};
|
@@ -28,9 +28,16 @@ var _default = {
|
|
28
28
|
docs: {
|
29
29
|
page: function page() {
|
30
30
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_IconButton["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
31
|
-
}
|
32
|
-
|
33
|
-
|
31
|
+
}
|
32
|
+
},
|
33
|
+
codesandbox: {
|
34
|
+
mapComponent: {
|
35
|
+
'@pingux/astro': ['Box', 'Icon', 'IconButton', 'Text'],
|
36
|
+
'@pingux/mdi-react/CreateIcon': 'CreateIcon',
|
37
|
+
'@pingux/mdi-react/DeleteIcon': 'DeleteIcon',
|
38
|
+
'@pingux/mdi-react/DotsVerticalIcon': 'DotsVerticalIcon',
|
39
|
+
'@pingux/mdi-react/PencilIcon': 'PencilIcon',
|
40
|
+
'@pingux/mdi-react/PlusIcon': 'PlusIcon'
|
34
41
|
}
|
35
42
|
}
|
36
43
|
},
|
@@ -74,11 +81,11 @@ Inverted.parameters = {
|
|
74
81
|
url: _figmaLinks.FIGMA_LINKS.iconButton.inverted
|
75
82
|
}
|
76
83
|
};
|
77
|
-
var WithTooltip = function WithTooltip() {
|
78
|
-
return (0, _react2.jsx)(_index.IconButton, {
|
84
|
+
var WithTooltip = function WithTooltip(args) {
|
85
|
+
return (0, _react2.jsx)(_index.IconButton, (0, _extends2["default"])({
|
79
86
|
"aria-label": "icon button with tooltip",
|
80
87
|
title: "Edit"
|
81
|
-
}, (0, _react2.jsx)(_index.Icon, {
|
88
|
+
}, args), (0, _react2.jsx)(_index.Icon, {
|
82
89
|
icon: _CreateIcon["default"],
|
83
90
|
size: "sm",
|
84
91
|
title: {
|
@@ -220,7 +227,8 @@ Sizes.parameters = {
|
|
220
227
|
design: {
|
221
228
|
type: 'figma',
|
222
229
|
url: _figmaLinks.FIGMA_LINKS.iconButton.sizes
|
223
|
-
}
|
230
|
+
},
|
231
|
+
codesandbox: false
|
224
232
|
};
|
225
233
|
var CommonlyUsed = function CommonlyUsed() {
|
226
234
|
return (
|
@@ -549,5 +557,6 @@ CommonlyUsed.parameters = {
|
|
549
557
|
design: {
|
550
558
|
type: 'figma',
|
551
559
|
url: _figmaLinks.FIGMA_LINKS.iconButton.commonlyUsed
|
552
|
-
}
|
560
|
+
},
|
561
|
+
codesandbox: false
|
553
562
|
};
|
@@ -28,6 +28,13 @@ var _default = {
|
|
28
28
|
page: function page() {
|
29
29
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_IconButtonToggle["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
30
30
|
}
|
31
|
+
},
|
32
|
+
codesandbox: {
|
33
|
+
mapComponent: {
|
34
|
+
'@pingux/astro': ['IconButtonToggle'],
|
35
|
+
'@pingux/mdi-react/EyeOffOutlineIcon': 'EyeOffIcon',
|
36
|
+
'@pingux/mdi-react/EyeOutlineIcon': 'EyeIcon'
|
37
|
+
}
|
31
38
|
}
|
32
39
|
}
|
33
40
|
};
|
@@ -30,9 +30,12 @@ var _default = {
|
|
30
30
|
docs: {
|
31
31
|
page: function page() {
|
32
32
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_IconWrapper["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
33
|
-
}
|
34
|
-
|
35
|
-
|
33
|
+
}
|
34
|
+
},
|
35
|
+
codesandbox: {
|
36
|
+
mapComponent: {
|
37
|
+
'@pingux/astro': ['IconWrapper'],
|
38
|
+
'@pingux/mdi-react/DeleteIcon': 'DeleteIcon'
|
36
39
|
}
|
37
40
|
}
|
38
41
|
},
|
@@ -1,37 +1,5 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { StoryFn } from '@storybook/react';
|
3
|
-
declare const _default:
|
4
|
-
title: string;
|
5
|
-
component: React.ForwardRefExoticComponent<Omit<import("../../types/image").ImageProps, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
6
|
-
parameters: {
|
7
|
-
docs: {
|
8
|
-
page: () => React.JSX.Element;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
argTypes: {
|
12
|
-
isDisabled: {};
|
13
|
-
variant: {
|
14
|
-
control: {
|
15
|
-
type: string;
|
16
|
-
};
|
17
|
-
};
|
18
|
-
as: {
|
19
|
-
control: {
|
20
|
-
type: string;
|
21
|
-
options: any;
|
22
|
-
};
|
23
|
-
};
|
24
|
-
src: {
|
25
|
-
control: {
|
26
|
-
type: string;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
};
|
30
|
-
args: {
|
31
|
-
as: string;
|
32
|
-
src: string;
|
33
|
-
};
|
34
|
-
};
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
35
3
|
export default _default;
|
36
4
|
export declare const Default: StoryFn;
|
37
5
|
export declare const Avatar: StoryFn;
|