@zidsa/zidmui 2.0.3 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/react/cjs/components/app-checkbox.js +43 -0
- package/dist/react/cjs/components/app-checkbox.js.map +1 -0
- package/dist/react/cjs/components/app-dialog-with-features.js +85 -0
- package/dist/react/cjs/components/app-dialog-with-features.js.map +1 -0
- package/dist/react/cjs/components/app-dialog.js +52 -0
- package/dist/react/cjs/components/app-dialog.js.map +1 -0
- package/dist/react/cjs/components/app-empty-state.js +106 -0
- package/dist/react/cjs/components/app-empty-state.js.map +1 -0
- package/dist/react/cjs/components/app-icon-button.js +30 -0
- package/dist/react/cjs/components/app-icon-button.js.map +1 -0
- package/dist/react/cjs/components/app-input-radio-card.js +86 -0
- package/dist/react/cjs/components/app-input-radio-card.js.map +1 -0
- package/dist/react/cjs/components/app-input-radio.js +69 -0
- package/dist/react/cjs/components/app-input-radio.js.map +1 -0
- package/dist/react/cjs/components/app-pagination.js +19 -0
- package/dist/react/cjs/components/app-pagination.js.map +1 -0
- package/dist/react/cjs/components/app-radio-group.js +46 -0
- package/dist/react/cjs/components/app-radio-group.js.map +1 -0
- package/dist/react/cjs/components/app-status.js +4 -0
- package/dist/react/cjs/components/app-status.js.map +1 -1
- package/dist/react/cjs/components/app-switch-group.js +34 -0
- package/dist/react/cjs/components/app-switch-group.js.map +1 -0
- package/dist/react/cjs/components/app-switch.js +25 -0
- package/dist/react/cjs/components/app-switch.js.map +1 -0
- package/dist/react/cjs/components/app-tabs.js +51 -0
- package/dist/react/cjs/components/app-tabs.js.map +1 -0
- package/dist/react/cjs/stories/css/Button.stories.js +133 -0
- package/dist/react/cjs/stories/css/Button.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Card.stories.js +145 -0
- package/dist/react/cjs/stories/css/Card.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Checkbox.stories.js +138 -0
- package/dist/react/cjs/stories/css/Checkbox.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/ComponentReference.stories.js +139 -0
- package/dist/react/cjs/stories/css/ComponentReference.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Input.stories.js +162 -0
- package/dist/react/cjs/stories/css/Input.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/ListItem.stories.js +166 -0
- package/dist/react/cjs/stories/css/ListItem.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Modal.stories.js +121 -0
- package/dist/react/cjs/stories/css/Modal.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Radio.stories.js +118 -0
- package/dist/react/cjs/stories/css/Radio.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Select.stories.js +187 -0
- package/dist/react/cjs/stories/css/Select.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Status.stories.js +59 -0
- package/dist/react/cjs/stories/css/Status.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Switch.stories.js +136 -0
- package/dist/react/cjs/stories/css/Switch.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Table.stories.js +171 -0
- package/dist/react/cjs/stories/css/Table.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Tooltip.stories.js +99 -0
- package/dist/react/cjs/stories/css/Tooltip.stories.js.map +1 -0
- package/dist/react/cjs/stories/css/Utilities.stories.js +136 -0
- package/dist/react/cjs/stories/css/Utilities.stories.js.map +1 -0
- package/dist/react/cjs/stories/design/Colors.stories.js +8 -2
- package/dist/react/cjs/stories/design/Colors.stories.js.map +1 -1
- package/dist/react/cjs/stories/design/Typography.stories.js +116 -0
- package/dist/react/cjs/stories/design/Typography.stories.js.map +1 -0
- package/dist/react/cjs/stories/design/spacing/CSS.stories.js +61 -0
- package/dist/react/cjs/stories/design/spacing/CSS.stories.js.map +1 -0
- package/dist/react/cjs/stories/design/{Spacing.stories.js → spacing/React.stories.js} +8 -8
- package/dist/react/cjs/stories/design/spacing/React.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppCheckbox.stories.js +67 -0
- package/dist/react/cjs/stories/react/AppCheckbox.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppDialog.stories.js +129 -0
- package/dist/react/cjs/stories/react/AppDialog.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js +127 -0
- package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppEmptyState.stories.js +157 -0
- package/dist/react/cjs/stories/react/AppEmptyState.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppIconButton.stories.js +53 -0
- package/dist/react/cjs/stories/react/AppIconButton.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppInputBase.stories.js +91 -72
- package/dist/react/cjs/stories/react/AppInputBase.stories.js.map +1 -1
- package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js +34 -26
- package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js.map +1 -1
- package/dist/react/cjs/stories/react/AppInputRadio.stories.js +262 -0
- package/dist/react/cjs/stories/react/AppInputRadio.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js +126 -0
- package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppPagination.stories.js +71 -0
- package/dist/react/cjs/stories/react/AppPagination.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppRadioGroup.stories.js +145 -0
- package/dist/react/cjs/stories/react/AppRadioGroup.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppSwitch.stories.js +138 -0
- package/dist/react/cjs/stories/react/AppSwitch.stories.js.map +1 -0
- package/dist/react/cjs/stories/react/AppTabs.stories.js +100 -0
- package/dist/react/cjs/stories/react/AppTabs.stories.js.map +1 -0
- package/dist/react/cjs/theme/components/checkbox.js +18 -0
- package/dist/react/cjs/theme/components/checkbox.js.map +1 -0
- package/dist/react/cjs/theme/components/dialog.js +46 -0
- package/dist/react/cjs/theme/components/dialog.js.map +1 -0
- package/dist/react/cjs/theme/components/divider.js +11 -0
- package/dist/react/cjs/theme/components/divider.js.map +1 -0
- package/dist/react/cjs/theme/components/form-group.js +11 -0
- package/dist/react/cjs/theme/components/form-group.js.map +1 -0
- package/dist/react/cjs/theme/components/icon-button.js +137 -0
- package/dist/react/cjs/theme/components/icon-button.js.map +1 -0
- package/dist/react/cjs/theme/components/pagination.js +53 -0
- package/dist/react/cjs/theme/components/pagination.js.map +1 -0
- package/dist/react/cjs/theme/components/radio.js +88 -0
- package/dist/react/cjs/theme/components/radio.js.map +1 -0
- package/dist/react/cjs/theme/components/skeleton.js +9 -0
- package/dist/react/cjs/theme/components/skeleton.js.map +1 -0
- package/dist/react/cjs/theme/components/switch.js +145 -0
- package/dist/react/cjs/theme/components/switch.js.map +1 -0
- package/dist/react/cjs/theme/components/tab.js +11 -0
- package/dist/react/cjs/theme/components/tab.js.map +1 -0
- package/dist/react/cjs/theme/components/tabs.js +98 -0
- package/dist/react/cjs/theme/components/tabs.js.map +1 -0
- package/dist/react/cjs/theme/components.js +34 -5
- package/dist/react/cjs/theme/components.js.map +1 -1
- package/dist/react/cjs/theme/palette.js +30 -30
- package/dist/react/cjs/theme/palette.js.map +1 -1
- package/dist/react/es/components/app-checkbox.js +43 -0
- package/dist/react/es/components/app-checkbox.js.map +1 -0
- package/dist/react/es/components/app-dialog-with-features.js +85 -0
- package/dist/react/es/components/app-dialog-with-features.js.map +1 -0
- package/dist/react/es/components/app-dialog.js +52 -0
- package/dist/react/es/components/app-dialog.js.map +1 -0
- package/dist/react/es/components/app-empty-state.js +106 -0
- package/dist/react/es/components/app-empty-state.js.map +1 -0
- package/dist/react/es/components/app-icon-button.js +30 -0
- package/dist/react/es/components/app-icon-button.js.map +1 -0
- package/dist/react/es/components/app-input-radio-card.js +86 -0
- package/dist/react/es/components/app-input-radio-card.js.map +1 -0
- package/dist/react/es/components/app-input-radio.js +69 -0
- package/dist/react/es/components/app-input-radio.js.map +1 -0
- package/dist/react/es/components/app-pagination.js +19 -0
- package/dist/react/es/components/app-pagination.js.map +1 -0
- package/dist/react/es/components/app-radio-group.js +46 -0
- package/dist/react/es/components/app-radio-group.js.map +1 -0
- package/dist/react/es/components/app-status.js +4 -0
- package/dist/react/es/components/app-status.js.map +1 -1
- package/dist/react/es/components/app-switch-group.js +34 -0
- package/dist/react/es/components/app-switch-group.js.map +1 -0
- package/dist/react/es/components/app-switch.js +25 -0
- package/dist/react/es/components/app-switch.js.map +1 -0
- package/dist/react/es/components/app-tabs.js +51 -0
- package/dist/react/es/components/app-tabs.js.map +1 -0
- package/dist/react/es/stories/css/Button.stories.js +133 -0
- package/dist/react/es/stories/css/Button.stories.js.map +1 -0
- package/dist/react/es/stories/css/Card.stories.js +145 -0
- package/dist/react/es/stories/css/Card.stories.js.map +1 -0
- package/dist/react/es/stories/css/Checkbox.stories.js +138 -0
- package/dist/react/es/stories/css/Checkbox.stories.js.map +1 -0
- package/dist/react/es/stories/css/ComponentReference.stories.js +139 -0
- package/dist/react/es/stories/css/ComponentReference.stories.js.map +1 -0
- package/dist/react/es/stories/css/Input.stories.js +162 -0
- package/dist/react/es/stories/css/Input.stories.js.map +1 -0
- package/dist/react/es/stories/css/ListItem.stories.js +166 -0
- package/dist/react/es/stories/css/ListItem.stories.js.map +1 -0
- package/dist/react/es/stories/css/Modal.stories.js +121 -0
- package/dist/react/es/stories/css/Modal.stories.js.map +1 -0
- package/dist/react/es/stories/css/Radio.stories.js +118 -0
- package/dist/react/es/stories/css/Radio.stories.js.map +1 -0
- package/dist/react/es/stories/css/Select.stories.js +187 -0
- package/dist/react/es/stories/css/Select.stories.js.map +1 -0
- package/dist/react/es/stories/css/Status.stories.js +59 -0
- package/dist/react/es/stories/css/Status.stories.js.map +1 -0
- package/dist/react/es/stories/css/Switch.stories.js +136 -0
- package/dist/react/es/stories/css/Switch.stories.js.map +1 -0
- package/dist/react/es/stories/css/Table.stories.js +171 -0
- package/dist/react/es/stories/css/Table.stories.js.map +1 -0
- package/dist/react/es/stories/css/Tooltip.stories.js +99 -0
- package/dist/react/es/stories/css/Tooltip.stories.js.map +1 -0
- package/dist/react/es/stories/css/Utilities.stories.js +136 -0
- package/dist/react/es/stories/css/Utilities.stories.js.map +1 -0
- package/dist/react/es/stories/design/Colors.stories.js +8 -2
- package/dist/react/es/stories/design/Colors.stories.js.map +1 -1
- package/dist/react/es/stories/design/Typography.stories.js +116 -0
- package/dist/react/es/stories/design/Typography.stories.js.map +1 -0
- package/dist/react/es/stories/design/spacing/CSS.stories.js +61 -0
- package/dist/react/es/stories/design/spacing/CSS.stories.js.map +1 -0
- package/dist/react/es/stories/design/{Spacing.stories.js → spacing/React.stories.js} +8 -8
- package/dist/react/es/stories/design/spacing/React.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppCheckbox.stories.js +67 -0
- package/dist/react/es/stories/react/AppCheckbox.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppDialog.stories.js +129 -0
- package/dist/react/es/stories/react/AppDialog.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js +127 -0
- package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppEmptyState.stories.js +157 -0
- package/dist/react/es/stories/react/AppEmptyState.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppIconButton.stories.js +53 -0
- package/dist/react/es/stories/react/AppIconButton.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppInputBase.stories.js +91 -72
- package/dist/react/es/stories/react/AppInputBase.stories.js.map +1 -1
- package/dist/react/es/stories/react/AppInputBaseSearch.stories.js +34 -26
- package/dist/react/es/stories/react/AppInputBaseSearch.stories.js.map +1 -1
- package/dist/react/es/stories/react/AppInputRadio.stories.js +262 -0
- package/dist/react/es/stories/react/AppInputRadio.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppInputRadioCard.stories.js +126 -0
- package/dist/react/es/stories/react/AppInputRadioCard.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppPagination.stories.js +71 -0
- package/dist/react/es/stories/react/AppPagination.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppRadioGroup.stories.js +145 -0
- package/dist/react/es/stories/react/AppRadioGroup.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppSwitch.stories.js +138 -0
- package/dist/react/es/stories/react/AppSwitch.stories.js.map +1 -0
- package/dist/react/es/stories/react/AppTabs.stories.js +100 -0
- package/dist/react/es/stories/react/AppTabs.stories.js.map +1 -0
- package/dist/react/es/theme/components/checkbox.js +18 -0
- package/dist/react/es/theme/components/checkbox.js.map +1 -0
- package/dist/react/es/theme/components/dialog.js +46 -0
- package/dist/react/es/theme/components/dialog.js.map +1 -0
- package/dist/react/es/theme/components/divider.js +11 -0
- package/dist/react/es/theme/components/divider.js.map +1 -0
- package/dist/react/es/theme/components/form-group.js +11 -0
- package/dist/react/es/theme/components/form-group.js.map +1 -0
- package/dist/react/es/theme/components/icon-button.js +137 -0
- package/dist/react/es/theme/components/icon-button.js.map +1 -0
- package/dist/react/es/theme/components/pagination.js +53 -0
- package/dist/react/es/theme/components/pagination.js.map +1 -0
- package/dist/react/es/theme/components/radio.js +88 -0
- package/dist/react/es/theme/components/radio.js.map +1 -0
- package/dist/react/es/theme/components/skeleton.js +9 -0
- package/dist/react/es/theme/components/skeleton.js.map +1 -0
- package/dist/react/es/theme/components/switch.js +145 -0
- package/dist/react/es/theme/components/switch.js.map +1 -0
- package/dist/react/es/theme/components/tab.js +11 -0
- package/dist/react/es/theme/components/tab.js.map +1 -0
- package/dist/react/es/theme/components/tabs.js +98 -0
- package/dist/react/es/theme/components/tabs.js.map +1 -0
- package/dist/react/es/theme/components.js +34 -5
- package/dist/react/es/theme/components.js.map +1 -1
- package/dist/react/es/theme/palette.js +20 -20
- package/dist/react/es/theme/palette.js.map +1 -1
- package/dist/react/types/components/app-checkbox.d.ts +11 -0
- package/dist/react/types/components/app-dialog-with-features.d.ts +16 -0
- package/dist/react/types/components/app-dialog.d.ts +15 -0
- package/dist/react/types/components/app-empty-state.d.ts +22 -0
- package/dist/react/types/components/app-icon-button.d.ts +14 -0
- package/dist/react/types/components/app-input-radio-card.d.ts +15 -0
- package/dist/react/types/components/app-input-radio.d.ts +24 -0
- package/dist/react/types/components/app-pagination.d.ts +5 -0
- package/dist/react/types/components/app-radio-group.d.ts +13 -0
- package/dist/react/types/components/app-status.d.ts +1 -1
- package/dist/react/types/components/app-switch-group.d.ts +13 -0
- package/dist/react/types/components/app-switch.d.ts +10 -0
- package/dist/react/types/components/app-tabs.d.ts +13 -0
- package/dist/react/types/stories/css/Button.stories.d.ts +15 -0
- package/dist/react/types/stories/css/Card.stories.d.ts +16 -0
- package/dist/react/types/stories/css/Checkbox.stories.d.ts +14 -0
- package/dist/react/types/stories/css/ComponentReference.stories.d.ts +13 -0
- package/dist/react/types/stories/css/Input.stories.d.ts +15 -0
- package/dist/react/types/stories/css/ListItem.stories.d.ts +15 -0
- package/dist/react/types/stories/css/Modal.stories.d.ts +14 -0
- package/dist/react/types/stories/css/Radio.stories.d.ts +13 -0
- package/dist/react/types/stories/css/Select.stories.d.ts +14 -0
- package/dist/react/types/stories/css/Status.stories.d.ts +11 -0
- package/dist/react/types/stories/css/Switch.stories.d.ts +14 -0
- package/dist/react/types/stories/css/Table.stories.d.ts +14 -0
- package/dist/react/types/stories/css/Tooltip.stories.d.ts +14 -0
- package/dist/react/types/stories/css/Utilities.stories.d.ts +12 -0
- package/dist/react/types/stories/design/Typography.stories.d.ts +12 -0
- package/dist/react/types/stories/design/spacing/CSS.stories.d.ts +11 -0
- package/dist/react/types/stories/react/AppCheckbox.stories.d.ts +32 -0
- package/dist/react/types/stories/react/AppDialog.stories.d.ts +31 -0
- package/dist/react/types/stories/react/AppDialogWithFeatures.stories.d.ts +22 -0
- package/dist/react/types/stories/react/AppEmptyState.stories.d.ts +39 -0
- package/dist/react/types/stories/react/AppIconButton.stories.d.ts +15 -0
- package/dist/react/types/stories/react/AppInputRadio.stories.d.ts +55 -0
- package/dist/react/types/stories/react/AppInputRadioCard.stories.d.ts +37 -0
- package/dist/react/types/stories/react/AppPagination.stories.d.ts +35 -0
- package/dist/react/types/stories/react/AppRadioGroup.stories.d.ts +44 -0
- package/dist/react/types/stories/react/AppSwitch.stories.d.ts +38 -0
- package/dist/react/types/stories/react/AppTabs.stories.d.ts +22 -0
- package/dist/react/types/theme/components/checkbox.d.ts +2 -0
- package/dist/react/types/theme/components/dialog.d.ts +5 -0
- package/dist/react/types/theme/components/divider.d.ts +2 -0
- package/dist/react/types/theme/components/form-group.d.ts +2 -0
- package/dist/react/types/theme/components/icon-button.d.ts +2 -0
- package/dist/react/types/theme/components/pagination.d.ts +2 -0
- package/dist/react/types/theme/components/radio.d.ts +2 -0
- package/dist/react/types/theme/components/skeleton.d.ts +2 -0
- package/dist/react/types/theme/components/switch.d.ts +2 -0
- package/dist/react/types/theme/components/tab.d.ts +2 -0
- package/dist/react/types/theme/components/tabs.d.ts +2 -0
- package/dist/react/types/theme/types.d.ts +347 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/react/cjs/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +0 -102
- package/dist/react/cjs/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +0 -1
- package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js +0 -6
- package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js.map +0 -1
- package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -8
- package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +0 -1
- package/dist/react/cjs/stories/design/Spacing.stories.js.map +0 -1
- package/dist/react/es/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +0 -102
- package/dist/react/es/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +0 -1
- package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js +0 -7
- package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js.map +0 -1
- package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -9
- package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +0 -1
- package/dist/react/es/stories/design/Spacing.stories.js.map +0 -1
- /package/dist/react/types/stories/design/{Spacing.stories.d.ts → spacing/React.stories.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Pagination } from "@mui/material";
|
|
3
|
+
const AppPagination = (props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
Pagination,
|
|
6
|
+
{
|
|
7
|
+
variant: "outlined",
|
|
8
|
+
size: "medium",
|
|
9
|
+
shape: "rounded",
|
|
10
|
+
showFirstButton: true,
|
|
11
|
+
showLastButton: true,
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
AppPagination
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=app-pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-pagination.js","sources":["../../../../src/components/app-pagination.tsx"],"sourcesContent":["import { Pagination, type PaginationProps } from '@mui/material';\n\n//\n//\n\nexport type AppPaginationProps = Omit<PaginationProps, 'variant' | 'color' | 'shape' | 'size'> & {\n size?: 'medium' | 'large';\n};\n\nexport const AppPagination = (props: AppPaginationProps) => {\n return (\n <Pagination\n variant=\"outlined\"\n size=\"medium\"\n shape=\"rounded\"\n showFirstButton\n showLastButton\n {...props}\n />\n );\n};\n"],"names":[],"mappings":";;AASO,MAAM,gBAAgB,CAAC,UAA8B;AAC1D,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,OAAM;AAAA,MACN,iBAAe;AAAA,MACf,gBAAc;AAAA,MACb,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { styled, FormControlLabel, FormLabel, Box, RadioGroup, Radio } from "@mui/material";
|
|
3
|
+
const AppRadioGroup = ({
|
|
4
|
+
name,
|
|
5
|
+
label,
|
|
6
|
+
options,
|
|
7
|
+
disabled = false,
|
|
8
|
+
row = true,
|
|
9
|
+
value,
|
|
10
|
+
onChange,
|
|
11
|
+
labelProps,
|
|
12
|
+
radioSize = "medium",
|
|
13
|
+
sx
|
|
14
|
+
}) => {
|
|
15
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
16
|
+
label && /* @__PURE__ */ jsx(AppRadioGroupLegend, { disabled, component: "legend", children: label }),
|
|
17
|
+
/* @__PURE__ */ jsx(RadioGroup, { row, name, onChange, sx, value, children: options.map((option, i) => /* @__PURE__ */ jsx(
|
|
18
|
+
AppRadioGroupLabel,
|
|
19
|
+
{
|
|
20
|
+
disabled,
|
|
21
|
+
...option,
|
|
22
|
+
control: /* @__PURE__ */ jsx(Radio, { disableRipple: true, size: radioSize }),
|
|
23
|
+
...labelProps
|
|
24
|
+
},
|
|
25
|
+
i
|
|
26
|
+
)) })
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
const AppRadioGroupLabel = styled(FormControlLabel)(({ theme }) => {
|
|
30
|
+
return {
|
|
31
|
+
marginInline: 0,
|
|
32
|
+
gap: theme.spacing(0.5)
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
const AppRadioGroupLegend = styled(FormLabel)(({ theme }) => {
|
|
36
|
+
return {
|
|
37
|
+
fontWeight: theme.typography.subtitle2.fontWeight,
|
|
38
|
+
fontSize: theme.typography.subtitle2.fontSize,
|
|
39
|
+
lineHeight: theme.typography.subtitle2.lineHeight,
|
|
40
|
+
marginBottom: theme.spacing(1.5)
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
AppRadioGroup
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=app-radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-radio-group.js","sources":["../../../../src/components/app-radio-group.tsx"],"sourcesContent":["import {\n RadioGroupProps,\n FormControlLabelProps,\n Box,\n RadioGroup,\n Radio,\n FormControlLabel,\n FormLabel,\n styled,\n} from '@mui/material';\n\n//\n//\n\n// For this component, the control is omitted from the options\n// to ensure that developers do not pass different controls.\nexport interface AppRadioGroupProps extends RadioGroupProps {\n name: string;\n label?: string;\n options: Omit<FormControlLabelProps, 'control'>[];\n disabled?: boolean;\n row?: boolean;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n labelProps?: Omit<FormControlLabelProps, 'control' | 'label'>;\n radioSize?: 'small' | 'medium' | 'large';\n}\n\nexport const AppRadioGroup: React.FC<AppRadioGroupProps> = ({\n name,\n label,\n options,\n disabled = false,\n row = true,\n value,\n onChange,\n labelProps,\n radioSize = 'medium',\n sx,\n}: AppRadioGroupProps) => {\n return (\n <Box>\n {label && (\n <AppRadioGroupLegend disabled={disabled} component=\"legend\">\n {label}\n </AppRadioGroupLegend>\n )}\n\n <RadioGroup row={row} name={name} onChange={onChange} sx={sx} value={value}>\n {options.map((option, i) => (\n <AppRadioGroupLabel\n key={i}\n disabled={disabled}\n {...option}\n control={<Radio disableRipple size={radioSize} />}\n {...labelProps}\n />\n ))}\n </RadioGroup>\n </Box>\n );\n};\n\n//\n\nconst AppRadioGroupLabel = styled(FormControlLabel)(({ theme }) => {\n return {\n marginInline: 0,\n gap: theme.spacing(0.5),\n };\n});\n\nconst AppRadioGroupLegend = styled(FormLabel)<{ component?: string }>(({ theme }) => {\n return {\n fontWeight: theme.typography.subtitle2.fontWeight,\n fontSize: theme.typography.subtitle2.fontSize,\n lineHeight: theme.typography.subtitle2.lineHeight,\n marginBottom: theme.spacing(1.5),\n };\n});\n"],"names":[],"mappings":";;AA4BO,MAAM,gBAA8C,CAAC;AAAA,EAC1D;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,MAAM;AAAA,EACN;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ;AACF,MAA0B;AACxB,8BACG,KAAA,EACE,UAAA;AAAA,IAAA,SACC,oBAAC,qBAAA,EAAoB,UAAoB,WAAU,UAChD,UAAA,OACH;AAAA,IAGF,oBAAC,YAAA,EAAW,KAAU,MAAY,UAAoB,IAAQ,OAC3D,UAAA,QAAQ,IAAI,CAAC,QAAQ,MACpB;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC;AAAA,QACC,GAAG;AAAA,QACJ,SAAS,oBAAC,OAAA,EAAM,eAAa,MAAC,MAAM,WAAW;AAAA,QAC9C,GAAG;AAAA,MAAA;AAAA,MAJC;AAAA,IAAA,CAMR,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;AAIA,MAAM,qBAAqB,OAAO,gBAAgB,EAAE,CAAC,EAAE,YAAY;AACjE,SAAO;AAAA,IACL,cAAc;AAAA,IACd,KAAK,MAAM,QAAQ,GAAG;AAAA,EAAA;AAE1B,CAAC;AAED,MAAM,sBAAsB,OAAO,SAAS,EAA0B,CAAC,EAAE,YAAY;AACnF,SAAO;AAAA,IACL,YAAY,MAAM,WAAW,UAAU;AAAA,IACvC,UAAU,MAAM,WAAW,UAAU;AAAA,IACrC,YAAY,MAAM,WAAW,UAAU;AAAA,IACvC,cAAc,MAAM,QAAQ,GAAG;AAAA,EAAA;AAEnC,CAAC;"}
|
|
@@ -49,6 +49,10 @@ const StatusElement = styled(Chip, {
|
|
|
49
49
|
...color2 === "blue" ? {
|
|
50
50
|
backgroundColor: theme.palette.colors.blue[300],
|
|
51
51
|
color: theme.palette.colors.blue[900]
|
|
52
|
+
} : void 0,
|
|
53
|
+
...color2 === "primary" ? {
|
|
54
|
+
backgroundColor: theme.palette.colors.primary[300],
|
|
55
|
+
color: theme.palette.colors.primary[900]
|
|
52
56
|
} : void 0
|
|
53
57
|
}));
|
|
54
58
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-status.js","sources":["../../../../src/components/app-status.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled, ChipProps, Chip, TooltipProps } from '@mui/material';\n\nimport { AppTooltip } from './app-tooltip';\n\n//\n//\n\nexport type AppStatusColor =\n | 'success'\n | 'warning'\n | 'error'\n | 'neutral'\n | 'default'\n | 'disabled'\n | 'info'\n | 'orange'\n | 'blue';\n\nexport type AppStatusProps = Omit<ChipProps, 'color' | 'variant' | 'size'> & {\n size?: 'small' | 'medium';\n color?: AppStatusColor;\n tooltip?: TooltipProps['title'];\n tooltipProps?: Omit<TooltipProps, 'title' | 'children'>;\n};\n\nexport const AppStatus: React.FC<AppStatusProps> = ({\n ref,\n color = 'neutral',\n size = 'small',\n tooltip,\n tooltipProps,\n ...props\n}) => {\n if (color === 'default') color = 'neutral';\n\n const element = <StatusElement color2={color} size={size} ref={ref} {...props} />;\n\n //\n\n if (!tooltip) return element;\n\n return (\n <AppTooltip description={tooltip} {...tooltipProps}>\n {element}\n </AppTooltip>\n );\n};\n\nAppStatus.displayName = 'AppStatus';\n\n//\n\nconst StatusElement = styled(Chip, {\n shouldForwardProp: prop => prop !== 'color2',\n})<{ color2?: AppStatusProps['color'] }>(({ theme, color2 = 'neutral' }) => ({\n ...(color2 === 'success'\n ? {\n backgroundColor: theme.palette.colors.green[300],\n color: theme.palette.colors.green[900],\n }\n : undefined),\n ...(color2 === 'error'\n ? {\n backgroundColor: theme.palette.colors.red[200],\n color: theme.palette.colors.red[900],\n }\n : undefined),\n ...(color2 === 'warning'\n ? {\n backgroundColor: theme.palette.colors.yellow[300],\n color: theme.palette.colors.yellow[1000],\n }\n : undefined),\n ...(color2 === 'neutral'\n ? {\n backgroundColor: theme.palette.colors.neutral[100],\n color: theme.palette.colors.neutral[600],\n }\n : undefined),\n ...(color2 === 'disabled'\n ? {\n backgroundColor: theme.palette.colors.neutral[50],\n color: theme.palette.colors.neutral[400],\n }\n : undefined),\n ...(color2 === 'info'\n ? {\n backgroundColor: theme.palette.colors.primary[200],\n color: theme.palette.colors.primary[800],\n }\n : undefined),\n ...(color2 === 'orange'\n ? {\n backgroundColor: theme.palette.colors.orange[200],\n color: theme.palette.colors.orange[700],\n }\n : undefined),\n ...(color2 === 'blue'\n ? {\n backgroundColor: theme.palette.colors.blue[300],\n color: theme.palette.colors.blue[900],\n }\n : undefined),\n}));\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"app-status.js","sources":["../../../../src/components/app-status.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled, ChipProps, Chip, TooltipProps } from '@mui/material';\n\nimport { AppTooltip } from './app-tooltip';\n\n//\n//\n\nexport type AppStatusColor =\n | 'primary'\n | 'success'\n | 'warning'\n | 'error'\n | 'neutral'\n | 'default'\n | 'disabled'\n | 'info'\n | 'orange'\n | 'blue';\n\nexport type AppStatusProps = Omit<ChipProps, 'color' | 'variant' | 'size'> & {\n size?: 'small' | 'medium';\n color?: AppStatusColor;\n tooltip?: TooltipProps['title'];\n tooltipProps?: Omit<TooltipProps, 'title' | 'children'>;\n};\n\nexport const AppStatus: React.FC<AppStatusProps> = ({\n ref,\n color = 'neutral',\n size = 'small',\n tooltip,\n tooltipProps,\n ...props\n}) => {\n if (color === 'default') color = 'neutral';\n\n const element = <StatusElement color2={color} size={size} ref={ref} {...props} />;\n\n //\n\n if (!tooltip) return element;\n\n return (\n <AppTooltip description={tooltip} {...tooltipProps}>\n {element}\n </AppTooltip>\n );\n};\n\nAppStatus.displayName = 'AppStatus';\n\n//\n\nconst StatusElement = styled(Chip, {\n shouldForwardProp: prop => prop !== 'color2',\n})<{ color2?: AppStatusProps['color'] }>(({ theme, color2 = 'neutral' }) => ({\n ...(color2 === 'success'\n ? {\n backgroundColor: theme.palette.colors.green[300],\n color: theme.palette.colors.green[900],\n }\n : undefined),\n ...(color2 === 'error'\n ? {\n backgroundColor: theme.palette.colors.red[200],\n color: theme.palette.colors.red[900],\n }\n : undefined),\n ...(color2 === 'warning'\n ? {\n backgroundColor: theme.palette.colors.yellow[300],\n color: theme.palette.colors.yellow[1000],\n }\n : undefined),\n ...(color2 === 'neutral'\n ? {\n backgroundColor: theme.palette.colors.neutral[100],\n color: theme.palette.colors.neutral[600],\n }\n : undefined),\n ...(color2 === 'disabled'\n ? {\n backgroundColor: theme.palette.colors.neutral[50],\n color: theme.palette.colors.neutral[400],\n }\n : undefined),\n ...(color2 === 'info'\n ? {\n backgroundColor: theme.palette.colors.primary[200],\n color: theme.palette.colors.primary[800],\n }\n : undefined),\n ...(color2 === 'orange'\n ? {\n backgroundColor: theme.palette.colors.orange[200],\n color: theme.palette.colors.orange[700],\n }\n : undefined),\n ...(color2 === 'blue'\n ? {\n backgroundColor: theme.palette.colors.blue[300],\n color: theme.palette.colors.blue[900],\n }\n : undefined),\n ...(color2 === 'primary'\n ? {\n backgroundColor: theme.palette.colors.primary[300],\n color: theme.palette.colors.primary[900],\n }\n : undefined),\n}));\n"],"names":[],"mappings":";;;AA4BO,MAAM,YAAsC,CAAC;AAAA,EAClD;AAAA,EACA,QAAQ;AAAA,EACR,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,MAAI,UAAU,UAAW,SAAQ;AAEjC,QAAM,8BAAW,eAAA,EAAc,QAAQ,OAAO,MAAY,KAAW,GAAG,OAAO;AAI/E,MAAI,CAAC,QAAS,QAAO;AAErB,6BACG,YAAA,EAAW,aAAa,SAAU,GAAG,cACnC,UAAA,SACH;AAEJ;AAEA,UAAU,cAAc;AAIxB,MAAM,gBAAgB,OAAO,MAAM;AAAA,EACjC,mBAAmB,UAAQ,SAAS;AACtC,CAAC,EAAwC,CAAC,EAAE,OAAO,SAAS,iBAAiB;AAAA,EAC3E,GAAI,WAAW,YACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,MAAM,GAAG;AAAA,IAC/C,OAAO,MAAM,QAAQ,OAAO,MAAM,GAAG;AAAA,EAAA,IAEvC;AAAA,EACJ,GAAI,WAAW,UACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,IAAI,GAAG;AAAA,IAC7C,OAAO,MAAM,QAAQ,OAAO,IAAI,GAAG;AAAA,EAAA,IAErC;AAAA,EACJ,GAAI,WAAW,YACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,OAAO,GAAG;AAAA,IAChD,OAAO,MAAM,QAAQ,OAAO,OAAO,GAAI;AAAA,EAAA,IAEzC;AAAA,EACJ,GAAI,WAAW,YACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,QAAQ,GAAG;AAAA,IACjD,OAAO,MAAM,QAAQ,OAAO,QAAQ,GAAG;AAAA,EAAA,IAEzC;AAAA,EACJ,GAAI,WAAW,aACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,QAAQ,EAAE;AAAA,IAChD,OAAO,MAAM,QAAQ,OAAO,QAAQ,GAAG;AAAA,EAAA,IAEzC;AAAA,EACJ,GAAI,WAAW,SACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,QAAQ,GAAG;AAAA,IACjD,OAAO,MAAM,QAAQ,OAAO,QAAQ,GAAG;AAAA,EAAA,IAEzC;AAAA,EACJ,GAAI,WAAW,WACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,OAAO,GAAG;AAAA,IAChD,OAAO,MAAM,QAAQ,OAAO,OAAO,GAAG;AAAA,EAAA,IAExC;AAAA,EACJ,GAAI,WAAW,SACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,KAAK,GAAG;AAAA,IAC9C,OAAO,MAAM,QAAQ,OAAO,KAAK,GAAG;AAAA,EAAA,IAEtC;AAAA,EACJ,GAAI,WAAW,YACX;AAAA,IACE,iBAAiB,MAAM,QAAQ,OAAO,QAAQ,GAAG;AAAA,IACjD,OAAO,MAAM,QAAQ,OAAO,QAAQ,GAAG;AAAA,EAAA,IAEzC;AACN,EAAE;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AppSwitch } from "./app-switch.js";
|
|
3
|
+
import { FormControl, FormLabel, FormGroup, Box, FormHelperText } from "@mui/material";
|
|
4
|
+
const AppSwitchGroup = ({
|
|
5
|
+
options,
|
|
6
|
+
label,
|
|
7
|
+
helperText,
|
|
8
|
+
required,
|
|
9
|
+
color = "primary",
|
|
10
|
+
disabled,
|
|
11
|
+
error,
|
|
12
|
+
formControlProps
|
|
13
|
+
}) => {
|
|
14
|
+
const hasError = error;
|
|
15
|
+
return /* @__PURE__ */ jsxs(
|
|
16
|
+
FormControl,
|
|
17
|
+
{
|
|
18
|
+
component: "fieldset",
|
|
19
|
+
variant: "standard",
|
|
20
|
+
error,
|
|
21
|
+
disabled,
|
|
22
|
+
...formControlProps,
|
|
23
|
+
children: [
|
|
24
|
+
label && /* @__PURE__ */ jsx(FormLabel, { color: "primary", sx: { mb: 1 }, children: label }),
|
|
25
|
+
/* @__PURE__ */ jsx(FormGroup, { children: /* @__PURE__ */ jsx(Box, { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 1, children: options.map((option) => /* @__PURE__ */ jsx(AppSwitch, { required, color, ...option }, option.name)) }) }),
|
|
26
|
+
(helperText?.length || !!error) && /* @__PURE__ */ jsx(FormHelperText, { error: hasError, children: error || helperText })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
AppSwitchGroup
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=app-switch-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-switch-group.js","sources":["../../../../src/components/app-switch-group.tsx"],"sourcesContent":["import { AppSwitch, AppSwitchProps } from './app-switch';\nimport {\n FormControlProps,\n FormControl,\n FormLabel,\n FormGroup,\n Box,\n FormHelperText,\n} from '@mui/material';\n\nexport type AppSwitchGroupProps = {\n options: AppSwitchProps[];\n label?: React.ReactNode;\n helperText?: string;\n color?: 'primary' | 'error';\n disabled?: boolean;\n required?: boolean;\n error?: boolean;\n formControlProps?: FormControlProps;\n};\n\nexport const AppSwitchGroup = ({\n options,\n label,\n helperText,\n required,\n color = 'primary',\n disabled,\n error,\n formControlProps,\n}: AppSwitchGroupProps) => {\n const hasError = error;\n\n return (\n <FormControl\n component=\"fieldset\"\n variant=\"standard\"\n error={error}\n disabled={disabled}\n {...formControlProps}\n >\n {label && (\n <FormLabel color=\"primary\" sx={{ mb: 1 }}>\n {label}\n </FormLabel>\n )}\n <FormGroup>\n <Box display=\"flex\" flexDirection=\"column\" alignItems=\"flex-start\" gap={1}>\n {options.map(option => (\n <AppSwitch required={required} key={option.name} color={color} {...option} />\n ))}\n </Box>\n </FormGroup>\n {(helperText?.length || !!error) && (\n <FormHelperText error={hasError}>{error || helperText}</FormHelperText>\n )}\n </FormControl>\n );\n};\n"],"names":[],"mappings":";;;AAqBO,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA;AACF,MAA2B;AACzB,QAAM,WAAW;AAEjB,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,SAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA,SACC,oBAAC,aAAU,OAAM,WAAU,IAAI,EAAE,IAAI,EAAA,GAClC,UAAA,MAAA,CACH;AAAA,QAEF,oBAAC,WAAA,EACC,UAAA,oBAAC,KAAA,EAAI,SAAQ,QAAO,eAAc,UAAS,YAAW,cAAa,KAAK,GACrE,kBAAQ,IAAI,CAAA,WACX,oBAAC,WAAA,EAAU,UAAsC,OAAe,GAAG,OAAA,GAA/B,OAAO,IAAgC,CAC5E,EAAA,CACH,EAAA,CACF;AAAA,SACE,YAAY,UAAU,CAAC,CAAC,8BACvB,gBAAA,EAAe,OAAO,UAAW,UAAA,SAAS,WAAA,CAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAI9D;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Switch, FormControlLabel } from "@mui/material";
|
|
3
|
+
const AppSwitch = ({
|
|
4
|
+
name,
|
|
5
|
+
label,
|
|
6
|
+
color = "primary",
|
|
7
|
+
switchProps,
|
|
8
|
+
labelProps,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
if (!label) return /* @__PURE__ */ jsx(Switch, { name, color, ...switchProps });
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
FormControlLabel,
|
|
14
|
+
{
|
|
15
|
+
label,
|
|
16
|
+
control: /* @__PURE__ */ jsx(Switch, { name, color, ...switchProps }),
|
|
17
|
+
slotProps: { typography: { ...labelProps } },
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
AppSwitch
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=app-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-switch.js","sources":["../../../../src/components/app-switch.tsx"],"sourcesContent":["import { FC } from 'react';\n\nimport {\n FormControlLabel,\n type FormControlLabelProps,\n Switch,\n type SwitchProps,\n type TypographyProps,\n} from '@mui/material';\n\n//\n//\n\nexport type AppSwitchProps = {\n name: string;\n color?: 'primary' | 'error';\n label?: React.ReactNode;\n labelProps?: TypographyProps;\n switchProps?: SwitchProps;\n} & Omit<FormControlLabelProps, 'size' | 'control' | 'label'>;\n\nexport const AppSwitch: FC<AppSwitchProps> = ({\n name,\n label,\n color = 'primary',\n switchProps,\n labelProps,\n ...props\n}) => {\n if (!label) return <Switch name={name} color={color} {...switchProps} />;\n\n return (\n <FormControlLabel\n label={label}\n control={<Switch name={name} color={color} {...switchProps} />}\n slotProps={{ typography: { ...labelProps } }}\n {...props}\n />\n );\n};\n\n//\n"],"names":[],"mappings":";;AAqBO,MAAM,YAAgC,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,MAAI,CAAC,MAAO,QAAO,oBAAC,UAAO,MAAY,OAAe,GAAG,aAAa;AAEtE,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,SAAS,oBAAC,QAAA,EAAO,MAAY,OAAe,GAAG,aAAa;AAAA,MAC5D,WAAW,EAAE,YAAY,EAAE,GAAG,aAAW;AAAA,MACxC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement, cloneElement } from "react";
|
|
3
|
+
import { Tabs, Tab } from "@mui/material";
|
|
4
|
+
import { AppStatus } from "./app-status.js";
|
|
5
|
+
import { StackRow } from "./stack-row.js";
|
|
6
|
+
const AppTabs = ({ tabs, children, ...props }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs(
|
|
8
|
+
Tabs,
|
|
9
|
+
{
|
|
10
|
+
variant: "scrollable",
|
|
11
|
+
textColor: "secondary",
|
|
12
|
+
slotProps: { indicator: { hidden: true } },
|
|
13
|
+
...props,
|
|
14
|
+
children: [
|
|
15
|
+
tabs?.map(({ key, ...tabProps }) => /* @__PURE__ */ jsx(AppTab, { ...tabProps }, key)),
|
|
16
|
+
children
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
const AppTab = ({ label, chip, icon, ...props }) => {
|
|
22
|
+
const iconWithDefaults = isValidElement(icon) ? (
|
|
23
|
+
// @ts-expect-error: type
|
|
24
|
+
cloneElement(icon, { fontSize: "small", color: "action", ...icon.props ?? {} })
|
|
25
|
+
) : icon;
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
Tab,
|
|
28
|
+
{
|
|
29
|
+
label: /* @__PURE__ */ jsxs(StackRow, { children: [
|
|
30
|
+
iconWithDefaults ? iconWithDefaults : null,
|
|
31
|
+
label,
|
|
32
|
+
chip && /* @__PURE__ */ jsx(AppStatus, { color: "primary", size: "small", sx: { minWidth: 24 }, ...chip })
|
|
33
|
+
] }),
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
const formatNumber = (amount) => {
|
|
39
|
+
const formatter = new Intl.NumberFormat(void 0, {
|
|
40
|
+
style: "decimal",
|
|
41
|
+
minimumFractionDigits: 0,
|
|
42
|
+
maximumFractionDigits: 2
|
|
43
|
+
});
|
|
44
|
+
return formatter.format(amount);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
AppTab,
|
|
48
|
+
AppTabs,
|
|
49
|
+
formatNumber
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=app-tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-tabs.js","sources":["../../../../src/components/app-tabs.tsx"],"sourcesContent":["import { cloneElement, isValidElement } from 'react';\n\nimport { Tab, TabProps, Tabs, TabsProps } from '@mui/material';\nimport { AppStatus, AppStatusProps } from './app-status';\nimport { StackRow } from './stack-row';\n\n//\n//\n\nexport type AppTabsProps = Omit<TabsProps, 'textColor'> & { tabs?: AppTabProps[] };\n\nexport const AppTabs = ({ tabs, children, ...props }: AppTabsProps) => {\n return (\n <Tabs\n variant=\"scrollable\"\n textColor=\"secondary\"\n slotProps={{ indicator: { hidden: true } }}\n {...props}\n >\n {tabs?.map(({ key, ...tabProps }) => (\n <AppTab key={key} {...tabProps} />\n ))}\n {children}\n </Tabs>\n );\n};\n\n//\n\nexport type AppTabProps = TabProps & {\n count?: number;\n icon?: React.ReactNode;\n chip?: AppStatusProps;\n};\n\nexport const AppTab = ({ label, chip, icon, ...props }: AppTabProps) => {\n const iconWithDefaults = isValidElement(icon)\n ? // @ts-expect-error: type\n cloneElement(icon, { fontSize: 'small', color: 'action', ...(icon.props ?? {}) })\n : icon;\n\n return (\n <Tab\n label={\n <StackRow>\n {iconWithDefaults ? iconWithDefaults : null}\n\n {label}\n\n {chip && <AppStatus color=\"primary\" size=\"small\" sx={{ minWidth: 24 }} {...chip} />}\n </StackRow>\n }\n {...props}\n />\n );\n};\n\nexport const formatNumber = (amount: number) => {\n const formatter = new Intl.NumberFormat(undefined, {\n style: 'decimal',\n minimumFractionDigits: 0,\n maximumFractionDigits: 2,\n });\n\n return formatter.format(amount);\n};\n"],"names":[],"mappings":";;;;;AAWO,MAAM,UAAU,CAAC,EAAE,MAAM,UAAU,GAAG,YAA0B;AACrE,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAU;AAAA,MACV,WAAW,EAAE,WAAW,EAAE,QAAQ,OAAK;AAAA,MACtC,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA,MAAM,IAAI,CAAC,EAAE,KAAK,GAAG,SAAA,MACpB,oBAAC,QAAA,EAAkB,GAAG,SAAA,GAAT,GAAmB,CACjC;AAAA,QACA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;AAUO,MAAM,SAAS,CAAC,EAAE,OAAO,MAAM,MAAM,GAAG,YAAyB;AACtE,QAAM,mBAAmB,eAAe,IAAI;AAAA;AAAA,IAExC,aAAa,MAAM,EAAE,UAAU,SAAS,OAAO,UAAU,GAAI,KAAK,SAAS,GAAC,CAAI;AAAA,MAChF;AAEJ,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,4BACG,UAAA,EACE,UAAA;AAAA,QAAA,mBAAmB,mBAAmB;AAAA,QAEtC;AAAA,QAEA,QAAQ,oBAAC,WAAA,EAAU,OAAM,WAAU,MAAK,SAAQ,IAAI,EAAE,UAAU,GAAA,GAAO,GAAG,KAAA,CAAM;AAAA,MAAA,GACnF;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,MAAM,eAAe,CAAC,WAAmB;AAC9C,QAAM,YAAY,IAAI,KAAK,aAAa,QAAW;AAAA,IACjD,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,EAAA,CACxB;AAED,SAAO,UAAU,OAAO,MAAM;AAChC;"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "CSS Styles/Components/Button",
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: "centered"
|
|
7
|
+
},
|
|
8
|
+
tags: ["autodocs"]
|
|
9
|
+
};
|
|
10
|
+
const Variants = {
|
|
11
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px" }, children: [
|
|
12
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
13
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Contained" }),
|
|
14
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
15
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md", children: "Primary" }),
|
|
16
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--secondary zid-button--md", children: "Secondary" }),
|
|
17
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--error zid-button--md", children: "Error" }),
|
|
18
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md", disabled: true, children: "Disabled" })
|
|
19
|
+
] })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
22
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Outlined" }),
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
24
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--primary zid-button--md", children: "Primary" }),
|
|
25
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Secondary" }),
|
|
26
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--error zid-button--md", children: "Error" }),
|
|
27
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--primary zid-button--md", disabled: true, children: "Disabled" })
|
|
28
|
+
] })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
31
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Text" }),
|
|
32
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
33
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--primary zid-button--md", children: "Primary" }),
|
|
34
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--secondary zid-button--md", children: "Secondary" }),
|
|
35
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--error zid-button--md", children: "Error" }),
|
|
36
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--primary zid-button--md", disabled: true, children: "Disabled" })
|
|
37
|
+
] })
|
|
38
|
+
] })
|
|
39
|
+
] })
|
|
40
|
+
};
|
|
41
|
+
const Sizes = {
|
|
42
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px" }, children: [
|
|
43
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
44
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Contained Sizes" }),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", alignItems: "center", flexWrap: "wrap" }, children: [
|
|
46
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--sm", children: "Small" }),
|
|
47
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md", children: "Medium" }),
|
|
48
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--lg", children: "Large" })
|
|
49
|
+
] })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
52
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Outlined Sizes" }),
|
|
53
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", alignItems: "center", flexWrap: "wrap" }, children: [
|
|
54
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--primary zid-button--sm", children: "Small" }),
|
|
55
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--primary zid-button--md", children: "Medium" }),
|
|
56
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--primary zid-button--lg", children: "Large" })
|
|
57
|
+
] })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
60
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Text Sizes" }),
|
|
61
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", alignItems: "center", flexWrap: "wrap" }, children: [
|
|
62
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--primary zid-button--sm", children: "Small" }),
|
|
63
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--primary zid-button--md", children: "Medium" }),
|
|
64
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--primary zid-button--lg", children: "Large" })
|
|
65
|
+
] })
|
|
66
|
+
] })
|
|
67
|
+
] })
|
|
68
|
+
};
|
|
69
|
+
const States = {
|
|
70
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px" }, children: [
|
|
71
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
72
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Interactive States (hover to see)" }),
|
|
73
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
74
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md", children: "Default" }),
|
|
75
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md", disabled: true, children: "Disabled" })
|
|
76
|
+
] })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
79
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "All Colors - Disabled State" }),
|
|
80
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
81
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md", disabled: true, children: "Primary" }),
|
|
82
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", disabled: true, children: "Secondary" }),
|
|
83
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--error zid-button--md", disabled: true, children: "Error" })
|
|
84
|
+
] })
|
|
85
|
+
] })
|
|
86
|
+
] })
|
|
87
|
+
};
|
|
88
|
+
const FullWidth = {
|
|
89
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "16px", width: "400px" }, children: [
|
|
90
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "Full Width Buttons" }),
|
|
91
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md zid-button--full-width", children: "Full Width Primary" }),
|
|
92
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md zid-button--full-width", children: "Full Width Secondary" }),
|
|
93
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--error zid-button--md zid-button--full-width", children: "Full Width Error" })
|
|
94
|
+
] })
|
|
95
|
+
};
|
|
96
|
+
const IconButton = {
|
|
97
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px" }, children: [
|
|
98
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
99
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Icon Only Buttons" }),
|
|
100
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", alignItems: "center", flexWrap: "wrap" }, children: [
|
|
101
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--sm zid-button--icon-only", children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }) }),
|
|
102
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md zid-button--icon-only", children: /* @__PURE__ */ jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }) }),
|
|
103
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--lg zid-button--icon-only", children: /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }) })
|
|
104
|
+
] })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
107
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Buttons with Icons" }),
|
|
108
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
109
|
+
/* @__PURE__ */ jsxs("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--md", children: [
|
|
110
|
+
/* @__PURE__ */ jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }),
|
|
111
|
+
"Add Item"
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsxs("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: [
|
|
114
|
+
/* @__PURE__ */ jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" }) }),
|
|
115
|
+
"Edit"
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ jsxs("button", { className: "zid-button zid-button--text zid-button--error zid-button--md", children: [
|
|
118
|
+
/* @__PURE__ */ jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" }) }),
|
|
119
|
+
"Delete"
|
|
120
|
+
] })
|
|
121
|
+
] })
|
|
122
|
+
] })
|
|
123
|
+
] })
|
|
124
|
+
};
|
|
125
|
+
export {
|
|
126
|
+
FullWidth,
|
|
127
|
+
IconButton,
|
|
128
|
+
Sizes,
|
|
129
|
+
States,
|
|
130
|
+
Variants,
|
|
131
|
+
meta as default
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=Button.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.stories.js","sources":["../../../../../src/stories/css/Button.stories.tsx"],"sourcesContent":["import type { StoryObj } from '@storybook/react-vite';\nimport '../../css/index.css';\n\nconst meta = {\n title: 'CSS Styles/Components/Button',\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n};\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Variants: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '32px' }}>\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Contained</h3>\n <div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md\">Primary</button>\n <button className=\"zid-button zid-button--contained zid-button--secondary zid-button--md\">Secondary</button>\n <button className=\"zid-button zid-button--contained zid-button--error zid-button--md\">Error</button>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md\" disabled>Disabled</button>\n </div>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Outlined</h3>\n <div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--outlined zid-button--primary zid-button--md\">Primary</button>\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Secondary</button>\n <button className=\"zid-button zid-button--outlined zid-button--error zid-button--md\">Error</button>\n <button className=\"zid-button zid-button--outlined zid-button--primary zid-button--md\" disabled>Disabled</button>\n </div>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Text</h3>\n <div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--text zid-button--primary zid-button--md\">Primary</button>\n <button className=\"zid-button zid-button--text zid-button--secondary zid-button--md\">Secondary</button>\n <button className=\"zid-button zid-button--text zid-button--error zid-button--md\">Error</button>\n <button className=\"zid-button zid-button--text zid-button--primary zid-button--md\" disabled>Disabled</button>\n </div>\n </div>\n </div>\n ),\n};\n\nexport const Sizes: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '32px' }}>\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Contained Sizes</h3>\n <div style={{ display: 'flex', gap: '16px', alignItems: 'center', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--sm\">Small</button>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md\">Medium</button>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--lg\">Large</button>\n </div>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Outlined Sizes</h3>\n <div style={{ display: 'flex', gap: '16px', alignItems: 'center', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--outlined zid-button--primary zid-button--sm\">Small</button>\n <button className=\"zid-button zid-button--outlined zid-button--primary zid-button--md\">Medium</button>\n <button className=\"zid-button zid-button--outlined zid-button--primary zid-button--lg\">Large</button>\n </div>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Text Sizes</h3>\n <div style={{ display: 'flex', gap: '16px', alignItems: 'center', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--text zid-button--primary zid-button--sm\">Small</button>\n <button className=\"zid-button zid-button--text zid-button--primary zid-button--md\">Medium</button>\n <button className=\"zid-button zid-button--text zid-button--primary zid-button--lg\">Large</button>\n </div>\n </div>\n </div>\n ),\n};\n\n\nexport const States: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '32px' }}>\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Interactive States (hover to see)</h3>\n <div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md\">Default</button>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md\" disabled>Disabled</button>\n </div>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>All Colors - Disabled State</h3>\n <div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md\" disabled>Primary</button>\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\" disabled>Secondary</button>\n <button className=\"zid-button zid-button--text zid-button--error zid-button--md\" disabled>Error</button>\n </div>\n </div>\n </div>\n ),\n};\n\nexport const FullWidth: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '16px', width: '400px' }}>\n <h3 style={{ marginBottom: '8px', fontFamily: 'var(--zid-font-family)' }}>Full Width Buttons</h3>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md zid-button--full-width\">\n Full Width Primary\n </button>\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md zid-button--full-width\">\n Full Width Secondary\n </button>\n <button className=\"zid-button zid-button--text zid-button--error zid-button--md zid-button--full-width\">\n Full Width Error\n </button>\n </div>\n ),\n};\n\nexport const IconButton: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '32px' }}>\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Icon Only Buttons</h3>\n <div style={{ display: 'flex', gap: '16px', alignItems: 'center', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--sm zid-button--icon-only\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"/>\n </svg>\n </button>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md zid-button--icon-only\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"/>\n </svg>\n </button>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--lg zid-button--icon-only\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"/>\n </svg>\n </button>\n </div>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Buttons with Icons</h3>\n <div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>\n <button className=\"zid-button zid-button--contained zid-button--primary zid-button--md\">\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"/>\n </svg>\n Add Item\n </button>\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z\"/>\n </svg>\n Edit\n </button>\n <button className=\"zid-button zid-button--text zid-button--error zid-button--md\">\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z\"/>\n </svg>\n Delete\n </button>\n </div>\n </div>\n </div>\n ),\n};\n"],"names":[],"mappings":";;AAGA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAE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AK,QAAO,MAAK,SAAQ,aAAY,MAAK,gBACnD,UAAA,oBAAC,QAAA,EAAK,GAAE,yJAAuJ,GACjK;AAAA,UAAM;AAAA,QAAA,GAER;AAAA,QACA,qBAAC,UAAA,EAAO,WAAU,gEAChB,UAAA;AAAA,UAAA,oBAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,gBACnD,UAAA,oBAAC,QAAA,EAAK,GAAE,iFAA+E,GACzF;AAAA,UAAM;AAAA,QAAA,EAAA,CAER;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF;AAEJ;"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "CSS Styles/Components/Card",
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: "centered"
|
|
7
|
+
},
|
|
8
|
+
tags: ["autodocs"]
|
|
9
|
+
};
|
|
10
|
+
const Elevation = {
|
|
11
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px" }, children: [
|
|
12
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Elevation Levels" }),
|
|
13
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
14
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--elevation-0", style: { width: "150px" }, children: /* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Elevation 0" }) }),
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--elevation-1", style: { width: "150px" }, children: /* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Elevation 1" }) }),
|
|
16
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--elevation-2", style: { width: "150px" }, children: /* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Elevation 2" }) }),
|
|
17
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--elevation-4", style: { width: "150px" }, children: /* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Elevation 4" }) }),
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--elevation-8", style: { width: "150px" }, children: /* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Elevation 8" }) }),
|
|
19
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--elevation-16", style: { width: "150px" }, children: /* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Elevation 16" }) }),
|
|
20
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--elevation-24", style: { width: "150px" }, children: /* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Elevation 24" }) })
|
|
21
|
+
] })
|
|
22
|
+
] })
|
|
23
|
+
};
|
|
24
|
+
const Variants = {
|
|
25
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px" }, children: [
|
|
26
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Card Variants" }),
|
|
27
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--elevation-1", style: { width: "200px" }, children: [
|
|
29
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__header", children: /* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Default" }) }),
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Standard card with shadow" })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--outlined", style: { width: "200px" }, children: [
|
|
33
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__header", children: /* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Outlined" }) }),
|
|
34
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Card with border, no shadow" })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--selected", style: { width: "200px" }, children: [
|
|
37
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__header", children: /* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Selected" }) }),
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Selected state card" })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--clickable zid-card--elevation-1", style: { width: "200px" }, children: [
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__header", children: /* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Clickable" }) }),
|
|
42
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Hover to see effect" })
|
|
43
|
+
] })
|
|
44
|
+
] })
|
|
45
|
+
] })
|
|
46
|
+
};
|
|
47
|
+
const WithSubtitle = {
|
|
48
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
|
|
49
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "With Subtitle" }),
|
|
50
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--elevation-1", style: { width: "300px" }, children: [
|
|
51
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__header", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
52
|
+
/* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Card Title" }),
|
|
53
|
+
/* @__PURE__ */ jsx("p", { className: "zid-card__subtitle", children: "Subtitle or description text" })
|
|
54
|
+
] }) }),
|
|
55
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "This card has both a title and subtitle in the header." })
|
|
56
|
+
] })
|
|
57
|
+
] })
|
|
58
|
+
};
|
|
59
|
+
const WithActions = {
|
|
60
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px" }, children: [
|
|
61
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "With Action Buttons" }),
|
|
62
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
63
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--elevation-1", style: { width: "300px" }, children: [
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__header", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
65
|
+
/* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Card with Actions" }),
|
|
66
|
+
/* @__PURE__ */ jsx("p", { className: "zid-card__subtitle", children: "Subtitle text here" })
|
|
67
|
+
] }) }),
|
|
68
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "This card has a footer with action buttons." }),
|
|
69
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card__actions", children: [
|
|
70
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--text zid-button--secondary zid-button--sm", children: "Cancel" }),
|
|
71
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--sm", children: "Save" })
|
|
72
|
+
] })
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--elevation-1", style: { width: "300px" }, children: [
|
|
75
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__header", children: /* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Confirm Action" }) }),
|
|
76
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Are you sure you want to delete this item? This action cannot be undone." }),
|
|
77
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card__actions", children: [
|
|
78
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--sm", children: "Cancel" }),
|
|
79
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--error zid-button--sm", children: "Delete" })
|
|
80
|
+
] })
|
|
81
|
+
] })
|
|
82
|
+
] })
|
|
83
|
+
] })
|
|
84
|
+
};
|
|
85
|
+
const WithMedia = {
|
|
86
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
|
|
87
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "With Media" }),
|
|
88
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--elevation-1", style: { width: "280px" }, children: [
|
|
90
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__media", style: { height: "140px", background: "linear-gradient(135deg, var(--zid-color-primary-400), var(--zid-color-primary-700))" } }),
|
|
91
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card__header", children: [
|
|
92
|
+
/* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Product Name" }),
|
|
93
|
+
/* @__PURE__ */ jsx("p", { className: "zid-card__subtitle", children: "$99.99" })
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "A brief description of the product goes here." }),
|
|
96
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__actions", children: /* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--sm", children: "Add to Cart" }) })
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card zid-card--elevation-1", style: { width: "280px" }, children: [
|
|
99
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__media", style: { height: "140px", background: "linear-gradient(135deg, var(--zid-color-green-400), var(--zid-color-green-700))" } }),
|
|
100
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card__header", children: [
|
|
101
|
+
/* @__PURE__ */ jsx("h3", { className: "zid-card__title", children: "Another Product" }),
|
|
102
|
+
/* @__PURE__ */ jsx("p", { className: "zid-card__subtitle", children: "$149.99" })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card__content", children: "Another product description with more details." }),
|
|
105
|
+
/* @__PURE__ */ jsxs("div", { className: "zid-card__actions", children: [
|
|
106
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--sm", children: "Learn More" }),
|
|
107
|
+
/* @__PURE__ */ jsx("button", { className: "zid-button zid-button--contained zid-button--primary zid-button--sm", children: "Buy Now" })
|
|
108
|
+
] })
|
|
109
|
+
] })
|
|
110
|
+
] })
|
|
111
|
+
] })
|
|
112
|
+
};
|
|
113
|
+
const SelectableCards = {
|
|
114
|
+
render: () => /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
|
|
115
|
+
/* @__PURE__ */ jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "Selectable Cards" }),
|
|
116
|
+
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)", color: "var(--zid-text-secondary)" }, children: "Click to select (visual demo)" }),
|
|
117
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
|
|
118
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--clickable zid-card--elevation-1", style: { width: "180px" }, children: /* @__PURE__ */ jsxs("div", { className: "zid-card__content", style: { textAlign: "center" }, children: [
|
|
119
|
+
/* @__PURE__ */ jsx("div", { style: { fontSize: "32px", marginBottom: "8px" }, children: "📦" }),
|
|
120
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: 500 }, children: "Standard" }),
|
|
121
|
+
/* @__PURE__ */ jsx("div", { style: { color: "var(--zid-text-secondary)", fontSize: "14px" }, children: "Free shipping" })
|
|
122
|
+
] }) }),
|
|
123
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--clickable zid-card--selected", style: { width: "180px" }, children: /* @__PURE__ */ jsxs("div", { className: "zid-card__content", style: { textAlign: "center" }, children: [
|
|
124
|
+
/* @__PURE__ */ jsx("div", { style: { fontSize: "32px", marginBottom: "8px" }, children: "🚀" }),
|
|
125
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: 500 }, children: "Express" }),
|
|
126
|
+
/* @__PURE__ */ jsx("div", { style: { color: "var(--zid-text-secondary)", fontSize: "14px" }, children: "2-day delivery" })
|
|
127
|
+
] }) }),
|
|
128
|
+
/* @__PURE__ */ jsx("div", { className: "zid-card zid-card--clickable zid-card--elevation-1", style: { width: "180px" }, children: /* @__PURE__ */ jsxs("div", { className: "zid-card__content", style: { textAlign: "center" }, children: [
|
|
129
|
+
/* @__PURE__ */ jsx("div", { style: { fontSize: "32px", marginBottom: "8px" }, children: "⚡" }),
|
|
130
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: 500 }, children: "Priority" }),
|
|
131
|
+
/* @__PURE__ */ jsx("div", { style: { color: "var(--zid-text-secondary)", fontSize: "14px" }, children: "Next-day delivery" })
|
|
132
|
+
] }) })
|
|
133
|
+
] })
|
|
134
|
+
] })
|
|
135
|
+
};
|
|
136
|
+
export {
|
|
137
|
+
Elevation,
|
|
138
|
+
SelectableCards,
|
|
139
|
+
Variants,
|
|
140
|
+
WithActions,
|
|
141
|
+
WithMedia,
|
|
142
|
+
WithSubtitle,
|
|
143
|
+
meta as default
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=Card.stories.js.map
|