@zidsa/zidmui 2.1.8 → 2.3.0-beta.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/dist/illustrations/404.svg +39 -0
- package/dist/illustrations/abandoned-cart.svg +23 -0
- package/dist/illustrations/add-ons.svg +15 -0
- package/dist/illustrations/announcement.svg +31 -0
- package/dist/illustrations/barcode-with-code.svg +49 -0
- package/dist/illustrations/barcode-with-sku.svg +26 -0
- package/dist/illustrations/barcode.svg +43 -0
- package/dist/illustrations/cards-stack-notification.svg +43 -0
- package/dist/illustrations/chat-bubble-plus.svg +30 -0
- package/dist/illustrations/coins-stack-shopping-cart.svg +22 -0
- package/dist/illustrations/coins-stack.svg +20 -0
- package/dist/illustrations/congrats.svg +108 -0
- package/dist/illustrations/congratulations-rocket.svg +36 -0
- package/dist/illustrations/country-bahrain.svg +78 -0
- package/dist/illustrations/country-egypt.svg +78 -0
- package/dist/illustrations/country-iraq.svg +78 -0
- package/dist/illustrations/country-kuwait.svg +78 -0
- package/dist/illustrations/country-oman.svg +78 -0
- package/dist/illustrations/country-qatar.svg +78 -0
- package/dist/illustrations/country-saudi-arabia.svg +78 -0
- package/dist/illustrations/country-saudi-regions.svg +17 -0
- package/dist/illustrations/country-uae.svg +78 -0
- package/dist/illustrations/custom-themes.svg +95 -0
- package/dist/illustrations/customers-empty-state.svg +38 -0
- package/dist/illustrations/customers-groups-add.svg +13 -0
- package/dist/illustrations/customers-groups.svg +23 -0
- package/dist/illustrations/draft-empty.svg +48 -0
- package/dist/illustrations/empty-draft-orders.svg +55 -0
- package/dist/illustrations/empty-order.svg +58 -0
- package/dist/illustrations/empty-state-discount-coupon.svg +27 -0
- package/dist/illustrations/empty-state-page-tag.svg +15 -0
- package/dist/illustrations/empty-state-page-url.svg +10 -0
- package/dist/illustrations/empty-state-page.svg +20 -0
- package/dist/illustrations/empty-state-payout.svg +35 -0
- package/dist/illustrations/empty-state-review.svg +29 -0
- package/dist/illustrations/empty-state-trash-bin.svg +60 -0
- package/dist/illustrations/faq-no-results.svg +43 -0
- package/dist/illustrations/fire-badge.svg +14 -0
- package/dist/illustrations/inactive-shop.svg +98 -0
- package/dist/illustrations/inventory-empty-state.svg +38 -0
- package/dist/illustrations/item-list.svg +40 -0
- package/dist/illustrations/items-add.svg +38 -0
- package/dist/illustrations/opened-box-empty.svg +33 -0
- package/dist/illustrations/opened-box-zid-location.svg +64 -0
- package/dist/illustrations/page-error.svg +34 -0
- package/dist/illustrations/payment-card-add-2.svg +14 -0
- package/dist/illustrations/payment-card-add.svg +14 -0
- package/dist/illustrations/payment-card.svg +12 -0
- package/dist/illustrations/payments-links-empty-state.svg +43 -0
- package/dist/illustrations/plan-activation.svg +29 -0
- package/dist/illustrations/plan-changed.svg +32 -0
- package/dist/illustrations/plan-downgrade.svg +28 -0
- package/dist/illustrations/product-card-options.svg +55 -0
- package/dist/illustrations/product-stacked-cards.svg +46 -0
- package/dist/illustrations/raising-start.svg +14 -0
- package/dist/illustrations/raising-starter.svg +14 -0
- package/dist/illustrations/sad-icon.svg +100 -0
- package/dist/illustrations/stacked-messages-sms.svg +41 -0
- package/dist/illustrations/stacked-messages-whatsapp.svg +42 -0
- package/dist/illustrations/step-diamond-01.svg +39 -0
- package/dist/illustrations/step-heptagon-02.svg +44 -0
- package/dist/illustrations/step-heptagon-04.svg +49 -0
- package/dist/illustrations/step-heptagon-06.svg +44 -0
- package/dist/illustrations/step-heptagon-red-04.svg +44 -0
- package/dist/illustrations/step-hexagon-02.svg +44 -0
- package/dist/illustrations/step-pentagon-03.svg +39 -0
- package/dist/illustrations/step-pentagon-05.svg +39 -0
- package/dist/illustrations/step-shield-like-03.svg +44 -0
- package/dist/illustrations/vehicle.svg +80 -0
- package/dist/illustrations/whatsapp-tier1.svg +80 -0
- package/dist/illustrations/whatsapp-tier2.svg +80 -0
- package/dist/illustrations/whatsapp-tier3.svg +89 -0
- package/dist/illustrations/whatsapp-tier4.svg +80 -0
- package/dist/illustrations/whatsapp-tier5.svg +174 -0
- package/dist/illustrations/wishlist-empty.svg +48 -0
- package/dist/illustrations/zid-logo-glass-reversed.svg +26 -0
- package/dist/illustrations/zid-logo-glass.svg +26 -0
- package/dist/illustrations/zid-logo-star.svg +4 -0
- package/dist/logos/delivery/aramex.svg +14 -0
- package/dist/logos/delivery/barq.svg +14 -0
- package/dist/logos/delivery/careem.svg +14 -0
- package/dist/logos/delivery/dhl.svg +14 -0
- package/dist/logos/delivery/fedex.svg +20 -0
- package/dist/logos/delivery/imile.svg +14 -0
- package/dist/logos/delivery/parcelat.svg +14 -0
- package/dist/logos/delivery/redbox.svg +14 -0
- package/dist/logos/delivery/smsa.svg +14 -0
- package/dist/logos/delivery/spl.svg +19 -0
- package/dist/logos/delivery/zid.svg +14 -0
- package/dist/logos/payments/amex.svg +12 -0
- package/dist/logos/payments/apple-pay.svg +7 -0
- package/dist/logos/payments/google-pay.svg +7 -0
- package/dist/logos/payments/knet.svg +5 -0
- package/dist/logos/payments/mada.svg +5 -0
- package/dist/logos/payments/mastercard.svg +5 -0
- package/dist/logos/payments/mispay.svg +10 -0
- package/dist/logos/payments/samsung-pay-icon.svg +13 -0
- package/dist/logos/payments/samsung-pay-text.svg +19 -0
- package/dist/logos/payments/stc-pay.svg +6 -0
- package/dist/logos/payments/tabby.svg +12 -0
- package/dist/logos/payments/tamara-secondary.svg +10 -0
- package/dist/logos/payments/tamara.svg +63 -0
- package/dist/logos/payments/visa.svg +3 -0
- package/dist/react/cjs/components/app-dialog.js +3 -2
- package/dist/react/cjs/components/app-dialog.js.map +1 -1
- package/dist/react/cjs/components/app-list-item.js +3 -0
- package/dist/react/cjs/components/app-list-item.js.map +1 -1
- package/dist/react/cjs/theme/components/alert.js +16 -16
- package/dist/react/cjs/theme/components/alert.js.map +1 -1
- package/dist/react/cjs/theme/components/app-bar.js +3 -5
- package/dist/react/cjs/theme/components/app-bar.js.map +1 -1
- package/dist/react/cjs/theme/components/card.js +3 -3
- package/dist/react/cjs/theme/components/card.js.map +1 -1
- package/dist/react/cjs/theme/components/paper.js +3 -3
- package/dist/react/cjs/theme/components/paper.js.map +1 -1
- package/dist/react/cjs/theme/components/table.js +2 -2
- package/dist/react/cjs/theme/components/table.js.map +1 -1
- package/dist/react/cjs/theme/palette.dark.js +343 -0
- package/dist/react/cjs/theme/palette.dark.js.map +1 -0
- package/dist/react/cjs/theme/palette.js +11 -5
- package/dist/react/cjs/theme/palette.js.map +1 -1
- package/dist/react/cjs/theme/shadows.dark.js +32 -0
- package/dist/react/cjs/theme/shadows.dark.js.map +1 -0
- package/dist/react/cjs/theme/theme.dark.js +19 -0
- package/dist/react/cjs/theme/theme.dark.js.map +1 -0
- package/dist/react/es/components/app-dialog.js +3 -2
- package/dist/react/es/components/app-dialog.js.map +1 -1
- package/dist/react/es/components/app-list-item.js +3 -0
- package/dist/react/es/components/app-list-item.js.map +1 -1
- package/dist/react/es/theme/components/alert.js +16 -16
- package/dist/react/es/theme/components/alert.js.map +1 -1
- package/dist/react/es/theme/components/app-bar.js +3 -5
- package/dist/react/es/theme/components/app-bar.js.map +1 -1
- package/dist/react/es/theme/components/card.js +3 -3
- package/dist/react/es/theme/components/card.js.map +1 -1
- package/dist/react/es/theme/components/paper.js +3 -3
- package/dist/react/es/theme/components/paper.js.map +1 -1
- package/dist/react/es/theme/components/table.js +2 -2
- package/dist/react/es/theme/components/table.js.map +1 -1
- package/dist/react/es/theme/palette.dark.js +343 -0
- package/dist/react/es/theme/palette.dark.js.map +1 -0
- package/dist/react/es/theme/palette.js +11 -5
- package/dist/react/es/theme/palette.js.map +1 -1
- package/dist/react/es/theme/shadows.dark.js +32 -0
- package/dist/react/es/theme/shadows.dark.js.map +1 -0
- package/dist/react/es/theme/theme.dark.js +19 -0
- package/dist/react/es/theme/theme.dark.js.map +1 -0
- package/dist/react/types/stories/design/DeliveryLogos.stories.d.ts +12 -0
- package/dist/react/types/stories/design/Illustrations.stories.d.ts +12 -0
- package/dist/react/types/stories/design/PaymentLogos.stories.d.ts +12 -0
- package/dist/react/types/theme/palette.dark.d.ts +2 -0
- package/dist/react/types/theme/shadows.dark.d.ts +2 -0
- package/dist/react/types/theme/theme.dark.d.ts +1 -0
- package/dist/react/types/theme/types.d.ts +8 -2
- package/dist/styles/colors.css +33 -0
- package/dist/styles/root.css +10 -0
- package/dist/styles/states.css +47 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
- package/dist/react/cjs/stories/css/Alert.stories.js +0 -69
- package/dist/react/cjs/stories/css/Alert.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Button.stories.js +0 -133
- package/dist/react/cjs/stories/css/Button.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Card.stories.js +0 -145
- package/dist/react/cjs/stories/css/Card.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Checkbox.stories.js +0 -138
- package/dist/react/cjs/stories/css/Checkbox.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/ComponentReference.stories.js +0 -139
- package/dist/react/cjs/stories/css/ComponentReference.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Input.stories.js +0 -162
- package/dist/react/cjs/stories/css/Input.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/ListItem.stories.js +0 -166
- package/dist/react/cjs/stories/css/ListItem.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Modal.stories.js +0 -121
- package/dist/react/cjs/stories/css/Modal.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Radio.stories.js +0 -118
- package/dist/react/cjs/stories/css/Radio.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Select.stories.js +0 -187
- package/dist/react/cjs/stories/css/Select.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Status.stories.js +0 -59
- package/dist/react/cjs/stories/css/Status.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Switch.stories.js +0 -136
- package/dist/react/cjs/stories/css/Switch.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Table.stories.js +0 -171
- package/dist/react/cjs/stories/css/Table.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Tooltip.stories.js +0 -99
- package/dist/react/cjs/stories/css/Tooltip.stories.js.map +0 -1
- package/dist/react/cjs/stories/css/Utilities.stories.js +0 -136
- package/dist/react/cjs/stories/css/Utilities.stories.js.map +0 -1
- package/dist/react/cjs/stories/design/Colors.stories.js +0 -142
- package/dist/react/cjs/stories/design/Colors.stories.js.map +0 -1
- package/dist/react/cjs/stories/design/Typography.stories.js +0 -116
- package/dist/react/cjs/stories/design/Typography.stories.js.map +0 -1
- package/dist/react/cjs/stories/design/spacing/CSS.stories.js +0 -61
- package/dist/react/cjs/stories/design/spacing/CSS.stories.js.map +0 -1
- package/dist/react/cjs/stories/design/spacing/React.stories.js +0 -102
- package/dist/react/cjs/stories/design/spacing/React.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppAlert.stories.js +0 -149
- package/dist/react/cjs/stories/react/AppAlert.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppButton.stories.js +0 -93
- package/dist/react/cjs/stories/react/AppButton.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppCheckbox.stories.js +0 -67
- package/dist/react/cjs/stories/react/AppCheckbox.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppDialog.stories.js +0 -129
- package/dist/react/cjs/stories/react/AppDialog.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js +0 -127
- package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppEmptyState.stories.js +0 -157
- package/dist/react/cjs/stories/react/AppEmptyState.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppIconButton.stories.js +0 -53
- package/dist/react/cjs/stories/react/AppIconButton.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppIconWithTooltip.stories.js +0 -36
- package/dist/react/cjs/stories/react/AppIconWithTooltip.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppInputBase.stories.js +0 -158
- package/dist/react/cjs/stories/react/AppInputBase.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js +0 -87
- package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppInputRadio.stories.js +0 -262
- package/dist/react/cjs/stories/react/AppInputRadio.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js +0 -126
- package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppListItem.stories.js +0 -123
- package/dist/react/cjs/stories/react/AppListItem.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppOverflownTextWithTooltip.stories.js +0 -41
- package/dist/react/cjs/stories/react/AppOverflownTextWithTooltip.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppPagination.stories.js +0 -71
- package/dist/react/cjs/stories/react/AppPagination.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppRadioGroup.stories.js +0 -145
- package/dist/react/cjs/stories/react/AppRadioGroup.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppStatus.stories.js +0 -68
- package/dist/react/cjs/stories/react/AppStatus.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppSwitch.stories.js +0 -138
- package/dist/react/cjs/stories/react/AppSwitch.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppTabs.stories.js +0 -100
- package/dist/react/cjs/stories/react/AppTabs.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppTooltip.stories.js +0 -119
- package/dist/react/cjs/stories/react/AppTooltip.stories.js.map +0 -1
- package/dist/react/cjs/stories/react/AppTypography.stories.js +0 -172
- package/dist/react/cjs/stories/react/AppTypography.stories.js.map +0 -1
- package/dist/react/es/stories/css/Alert.stories.js +0 -69
- package/dist/react/es/stories/css/Alert.stories.js.map +0 -1
- package/dist/react/es/stories/css/Button.stories.js +0 -133
- package/dist/react/es/stories/css/Button.stories.js.map +0 -1
- package/dist/react/es/stories/css/Card.stories.js +0 -145
- package/dist/react/es/stories/css/Card.stories.js.map +0 -1
- package/dist/react/es/stories/css/Checkbox.stories.js +0 -138
- package/dist/react/es/stories/css/Checkbox.stories.js.map +0 -1
- package/dist/react/es/stories/css/ComponentReference.stories.js +0 -139
- package/dist/react/es/stories/css/ComponentReference.stories.js.map +0 -1
- package/dist/react/es/stories/css/Input.stories.js +0 -162
- package/dist/react/es/stories/css/Input.stories.js.map +0 -1
- package/dist/react/es/stories/css/ListItem.stories.js +0 -166
- package/dist/react/es/stories/css/ListItem.stories.js.map +0 -1
- package/dist/react/es/stories/css/Modal.stories.js +0 -121
- package/dist/react/es/stories/css/Modal.stories.js.map +0 -1
- package/dist/react/es/stories/css/Radio.stories.js +0 -118
- package/dist/react/es/stories/css/Radio.stories.js.map +0 -1
- package/dist/react/es/stories/css/Select.stories.js +0 -187
- package/dist/react/es/stories/css/Select.stories.js.map +0 -1
- package/dist/react/es/stories/css/Status.stories.js +0 -59
- package/dist/react/es/stories/css/Status.stories.js.map +0 -1
- package/dist/react/es/stories/css/Switch.stories.js +0 -136
- package/dist/react/es/stories/css/Switch.stories.js.map +0 -1
- package/dist/react/es/stories/css/Table.stories.js +0 -171
- package/dist/react/es/stories/css/Table.stories.js.map +0 -1
- package/dist/react/es/stories/css/Tooltip.stories.js +0 -99
- package/dist/react/es/stories/css/Tooltip.stories.js.map +0 -1
- package/dist/react/es/stories/css/Utilities.stories.js +0 -136
- package/dist/react/es/stories/css/Utilities.stories.js.map +0 -1
- package/dist/react/es/stories/design/Colors.stories.js +0 -142
- package/dist/react/es/stories/design/Colors.stories.js.map +0 -1
- package/dist/react/es/stories/design/Typography.stories.js +0 -116
- package/dist/react/es/stories/design/Typography.stories.js.map +0 -1
- package/dist/react/es/stories/design/spacing/CSS.stories.js +0 -61
- package/dist/react/es/stories/design/spacing/CSS.stories.js.map +0 -1
- package/dist/react/es/stories/design/spacing/React.stories.js +0 -102
- package/dist/react/es/stories/design/spacing/React.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppAlert.stories.js +0 -149
- package/dist/react/es/stories/react/AppAlert.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppButton.stories.js +0 -93
- package/dist/react/es/stories/react/AppButton.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppCheckbox.stories.js +0 -67
- package/dist/react/es/stories/react/AppCheckbox.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppDialog.stories.js +0 -129
- package/dist/react/es/stories/react/AppDialog.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js +0 -127
- package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppEmptyState.stories.js +0 -157
- package/dist/react/es/stories/react/AppEmptyState.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppIconButton.stories.js +0 -53
- package/dist/react/es/stories/react/AppIconButton.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppIconWithTooltip.stories.js +0 -36
- package/dist/react/es/stories/react/AppIconWithTooltip.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppInputBase.stories.js +0 -158
- package/dist/react/es/stories/react/AppInputBase.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppInputBaseSearch.stories.js +0 -87
- package/dist/react/es/stories/react/AppInputBaseSearch.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppInputRadio.stories.js +0 -262
- package/dist/react/es/stories/react/AppInputRadio.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppInputRadioCard.stories.js +0 -126
- package/dist/react/es/stories/react/AppInputRadioCard.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppListItem.stories.js +0 -123
- package/dist/react/es/stories/react/AppListItem.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppOverflownTextWithTooltip.stories.js +0 -41
- package/dist/react/es/stories/react/AppOverflownTextWithTooltip.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppPagination.stories.js +0 -71
- package/dist/react/es/stories/react/AppPagination.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppRadioGroup.stories.js +0 -145
- package/dist/react/es/stories/react/AppRadioGroup.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppStatus.stories.js +0 -68
- package/dist/react/es/stories/react/AppStatus.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppSwitch.stories.js +0 -138
- package/dist/react/es/stories/react/AppSwitch.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppTabs.stories.js +0 -100
- package/dist/react/es/stories/react/AppTabs.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppTooltip.stories.js +0 -119
- package/dist/react/es/stories/react/AppTooltip.stories.js.map +0 -1
- package/dist/react/es/stories/react/AppTypography.stories.js +0 -172
- package/dist/react/es/stories/react/AppTypography.stories.js.map +0 -1
- package/dist/react/zidmui.css +0 -3062
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const material = require("@mui/material");
|
|
5
|
-
const appButton = require("../../components/app-button.js");
|
|
6
|
-
const appTooltip = require("../../components/app-tooltip.js");
|
|
7
|
-
const appTypography = require("../../components/app-typography.js");
|
|
8
|
-
const stackColumn = require("../../components/stack-column.js");
|
|
9
|
-
const stackRow = require("../../components/stack-row.js");
|
|
10
|
-
const useToggle = require("../../hooks/use-toggle.js");
|
|
11
|
-
const meta = {
|
|
12
|
-
title: "React/App Tooltip",
|
|
13
|
-
component: appTooltip.AppTooltip,
|
|
14
|
-
parameters: {
|
|
15
|
-
layout: "centered"
|
|
16
|
-
},
|
|
17
|
-
tags: ["autodocs"],
|
|
18
|
-
argTypes: {
|
|
19
|
-
arrow: {
|
|
20
|
-
control: "boolean"
|
|
21
|
-
},
|
|
22
|
-
placement: {
|
|
23
|
-
control: "select",
|
|
24
|
-
options: [
|
|
25
|
-
"auto",
|
|
26
|
-
"auto-start",
|
|
27
|
-
"auto-end",
|
|
28
|
-
"top",
|
|
29
|
-
"bottom",
|
|
30
|
-
"left",
|
|
31
|
-
"right",
|
|
32
|
-
"top-start",
|
|
33
|
-
"top-end",
|
|
34
|
-
"bottom-start",
|
|
35
|
-
"bottom-end",
|
|
36
|
-
"right-start",
|
|
37
|
-
"right-end",
|
|
38
|
-
"left-start",
|
|
39
|
-
"left-end"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
children: {
|
|
43
|
-
control: "text"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const Variants = {
|
|
48
|
-
args: {
|
|
49
|
-
headline: "Total sales over time",
|
|
50
|
-
description: "Amount spent (subtotal, taxes, shipping, returns, discounts, fees, etc.)",
|
|
51
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}),
|
|
52
|
-
placement: "top"
|
|
53
|
-
},
|
|
54
|
-
render: (args) => /* @__PURE__ */ jsxRuntime.jsx(AppTooltips, { ...args })
|
|
55
|
-
};
|
|
56
|
-
const AppTooltips = (props) => {
|
|
57
|
-
const toggle = useToggle.useToggle();
|
|
58
|
-
const theme = material.useTheme();
|
|
59
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(stackRow.StackRow, { gap: 4, children: [
|
|
60
|
-
/* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 4, children: [
|
|
61
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTooltip.AppTooltip, { ...props, description: "", children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Default" }) }),
|
|
62
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTooltip.AppTooltip, { disableFocusListener: true, ...props, headline: "", children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Hover or touch" }) }),
|
|
63
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTooltip.AppTooltip, { disableHoverListener: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Focus or touch" }) }),
|
|
64
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTooltip.AppTooltip, { disableFocusListener: true, disableTouchListener: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Hover" }) }),
|
|
65
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway: toggle.off, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
66
|
-
appTooltip.AppTooltip,
|
|
67
|
-
{
|
|
68
|
-
onClose: toggle.off,
|
|
69
|
-
open: toggle.value,
|
|
70
|
-
disableFocusListener: true,
|
|
71
|
-
disableHoverListener: true,
|
|
72
|
-
disableTouchListener: true,
|
|
73
|
-
slotProps: {
|
|
74
|
-
popper: {
|
|
75
|
-
disablePortal: true
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
...props,
|
|
79
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", onClick: toggle.on, children: "Click" })
|
|
80
|
-
}
|
|
81
|
-
) })
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 4, children: [
|
|
84
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTooltip.AppTooltip, { ...props, headline: "This is headline only", description: "", children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Headline only" }) }),
|
|
85
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTooltip.AppTooltip, { ...props, headline: "", description: "This is description only", children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Description only" }) }),
|
|
86
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
87
|
-
appTooltip.AppTooltip,
|
|
88
|
-
{
|
|
89
|
-
...props,
|
|
90
|
-
headline: "This is headline and description",
|
|
91
|
-
description: "This is description",
|
|
92
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Headline and description" })
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTooltip.AppTooltip, { ...props, headline: "This is headline and description", children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "Headline and description" }) }),
|
|
96
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
-
appTooltip.AppTooltip,
|
|
98
|
-
{
|
|
99
|
-
...props,
|
|
100
|
-
content: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { children: [
|
|
101
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DescriptionTypography, { component: "span", color: theme.palette.colors.green[400], children: [
|
|
102
|
-
"Total sales =",
|
|
103
|
-
" "
|
|
104
|
-
] }),
|
|
105
|
-
/* @__PURE__ */ jsxRuntime.jsx(DescriptionTypography, { component: "span", color: theme.palette.colors.primary[400], children: "net sales + additonal fees + duties + shipping charges + taxes" })
|
|
106
|
-
] }),
|
|
107
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(appButton.AppButton, { variant: "outlined", children: "With custom content" })
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
] })
|
|
111
|
-
] });
|
|
112
|
-
};
|
|
113
|
-
const DescriptionTypography = material.styled(appTypography.AppTypography)(({ theme }) => ({
|
|
114
|
-
fontWeight: 400,
|
|
115
|
-
fontSize: theme.spacing(1.5)
|
|
116
|
-
}));
|
|
117
|
-
exports.Variants = Variants;
|
|
118
|
-
exports.default = meta;
|
|
119
|
-
//# sourceMappingURL=AppTooltip.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppTooltip.stories.js","sources":["../../../../../src/stories/react/AppTooltip.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Box, ClickAwayListener, styled, useTheme } from '@mui/material';\n\nimport { AppButton } from '~/components/app-button';\nimport { AppTooltip, AppTooltipProps } from '~/components/app-tooltip';\nimport { AppTypography } from '~/components/app-typography';\nimport { StackColumn } from '~/components/stack-column';\nimport { StackRow } from '~/components/stack-row';\nimport { useToggle } from '~/hooks/use-toggle';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Tooltip',\n component: AppTooltip,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n arrow: {\n control: 'boolean',\n },\n placement: {\n control: 'select',\n options: [\n 'auto',\n 'auto-start',\n 'auto-end',\n 'top',\n 'bottom',\n 'left',\n 'right',\n 'top-start',\n 'top-end',\n 'bottom-start',\n 'bottom-end',\n 'right-start',\n 'right-end',\n 'left-start',\n 'left-end',\n ],\n },\n children: {\n control: 'text',\n },\n },\n} satisfies Meta<typeof AppTooltip>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Variants: Story = {\n args: {\n headline: 'Total sales over time',\n description: 'Amount spent (subtotal, taxes, shipping, returns, discounts, fees, etc.)',\n children: <></>,\n placement: 'top',\n },\n render: args => <AppTooltips {...args} />,\n};\n\n//\n\nconst AppTooltips = (props: AppTooltipProps) => {\n const toggle = useToggle();\n const theme = useTheme();\n\n return (\n <StackRow gap={4}>\n <StackColumn gap={4}>\n <AppTooltip {...props} description=\"\">\n <AppButton variant=\"outlined\">Default</AppButton>\n </AppTooltip>\n\n <AppTooltip disableFocusListener {...props} headline=\"\">\n <AppButton variant=\"outlined\">Hover or touch</AppButton>\n </AppTooltip>\n\n <AppTooltip disableHoverListener {...props}>\n <AppButton variant=\"outlined\">Focus or touch</AppButton>\n </AppTooltip>\n\n <AppTooltip disableFocusListener disableTouchListener {...props}>\n <AppButton variant=\"outlined\">Hover</AppButton>\n </AppTooltip>\n\n <ClickAwayListener onClickAway={toggle.off}>\n <AppTooltip\n onClose={toggle.off}\n open={toggle.value}\n disableFocusListener\n disableHoverListener\n disableTouchListener\n slotProps={{\n popper: {\n disablePortal: true,\n },\n }}\n {...props}\n >\n <AppButton variant=\"outlined\" onClick={toggle.on}>\n Click\n </AppButton>\n </AppTooltip>\n </ClickAwayListener>\n </StackColumn>\n\n {/* */}\n\n <StackColumn gap={4}>\n <AppTooltip {...props} headline=\"This is headline only\" description=\"\">\n <AppButton variant=\"outlined\">Headline only</AppButton>\n </AppTooltip>\n\n <AppTooltip {...props} headline=\"\" description=\"This is description only\">\n <AppButton variant=\"outlined\">Description only</AppButton>\n </AppTooltip>\n\n <AppTooltip\n {...props}\n headline=\"This is headline and description\"\n description=\"This is description\"\n >\n <AppButton variant=\"outlined\">Headline and description</AppButton>\n </AppTooltip>\n\n <AppTooltip {...props} headline=\"This is headline and description\">\n <AppButton variant=\"outlined\">Headline and description</AppButton>\n </AppTooltip>\n\n <AppTooltip\n {...props}\n content={\n <Box>\n <DescriptionTypography component=\"span\" color={theme.palette.colors.green[400]}>\n Total sales ={' '}\n </DescriptionTypography>\n <DescriptionTypography component=\"span\" color={theme.palette.colors.primary[400]}>\n net sales + additonal fees + duties + shipping charges + taxes\n </DescriptionTypography>\n </Box>\n }\n >\n <AppButton variant=\"outlined\">With custom content</AppButton>\n </AppTooltip>\n </StackColumn>\n </StackRow>\n );\n};\n\n//\n\nconst DescriptionTypography = styled(AppTypography)(({ theme }) => ({\n fontWeight: 400,\n fontSize: theme.spacing(1.5),\n}));\n"],"names":["AppTooltip","jsx","Fragment","useToggle","useTheme","jsxs","StackRow","StackColumn","AppButton","ClickAwayListener","Box","styled","AppTypography"],"mappings":";;;;;;;;;;AAeA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAWA,WAAAA;AAAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AAAA,EACjB,UAAU;AAAA,IACR,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,WAAW;AAAA,MACT,SAA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2BAAAA,IAACO,UAAAA,WAAA,EAAU,SAAQ,YAAW,UAAA,2BAAA,CAAwB,GACxD;AAAA,MAEAP,2BAAAA;AAAAA,QAACD,WAAAA;AAAAA,QAAA;AAAA,UACE,GAAG;AAAA,UACJ,yCACGU,cAAA,EACC,UAAA;AAAA,YAAAL,2BAAAA,KAAC,uBAAA,EAAsB,WAAU,QAAO,OAAO,MAAM,QAAQ,OAAO,MAAM,GAAG,GAAG,UAAA;AAAA,cAAA;AAAA,cAChE;AAAA,YAAA,GAChB;AAAA,YACAJ,2BAAAA,IAAC,uBAAA,EAAsB,WAAU,QAAO,OAAO,MAAM,QAAQ,OAAO,QAAQ,GAAG,GAAG,UAAA,iEAAA,CAElF;AAAA,UAAA,GACF;AAAA,UAGF,UAAAA,2BAAAA,IAACO,qBAAA,EAAU,SAAQ,YAAW,UAAA,sBAAA,CAAmB;AAAA,QAAA;AAAA,MAAA;AAAA,IACnD,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;AAIA,MAAM,wBAAwBG,SAAAA,OAAOC,cAAAA,aAAa,EAAE,CAAC,EAAE,aAAa;AAAA,EAClE,YAAY;AAAA,EACZ,UAAU,MAAM,QAAQ,GAAG;AAC7B,EAAE;;;"}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const appTypography = require("../../components/app-typography.js");
|
|
5
|
-
const stackColumn = require("../../components/stack-column.js");
|
|
6
|
-
const meta = {
|
|
7
|
-
title: "React/App Typography",
|
|
8
|
-
component: appTypography.AppTypography,
|
|
9
|
-
parameters: {
|
|
10
|
-
layout: "centered"
|
|
11
|
-
},
|
|
12
|
-
tags: ["autodocs"],
|
|
13
|
-
argTypes: {
|
|
14
|
-
variant: {
|
|
15
|
-
control: "select",
|
|
16
|
-
options: [
|
|
17
|
-
"h1",
|
|
18
|
-
"h2",
|
|
19
|
-
"h3",
|
|
20
|
-
"h4",
|
|
21
|
-
"h5",
|
|
22
|
-
"h6",
|
|
23
|
-
"subtitle1",
|
|
24
|
-
"subtitle2",
|
|
25
|
-
"body1",
|
|
26
|
-
"body2",
|
|
27
|
-
"caption",
|
|
28
|
-
"overline"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
color: {
|
|
32
|
-
control: "select",
|
|
33
|
-
options: ["primary", "secondary", "textPrimary", "textSecondary", "error"]
|
|
34
|
-
},
|
|
35
|
-
align: {
|
|
36
|
-
control: "select",
|
|
37
|
-
options: ["left", "center", "right", "justify"]
|
|
38
|
-
},
|
|
39
|
-
tooltip: {
|
|
40
|
-
control: "text"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const Default = {
|
|
45
|
-
args: {
|
|
46
|
-
children: "Default typography text"
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const Headings = {
|
|
50
|
-
args: {
|
|
51
|
-
children: null
|
|
52
|
-
},
|
|
53
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 2, children: [
|
|
54
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h1", children: "Heading 1" }),
|
|
55
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h2", children: "Heading 2" }),
|
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h3", children: "Heading 3" }),
|
|
57
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h4", children: "Heading 4" }),
|
|
58
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h5", children: "Heading 5" }),
|
|
59
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h6", children: "Heading 6" })
|
|
60
|
-
] })
|
|
61
|
-
};
|
|
62
|
-
const BodyText = {
|
|
63
|
-
args: {
|
|
64
|
-
children: null
|
|
65
|
-
},
|
|
66
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 2, children: [
|
|
67
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body1", children: "Body 1 - Regular body text" }),
|
|
68
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body2", children: "Body 2 - Smaller body text" }),
|
|
69
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "subtitle1", children: "Subtitle 1" }),
|
|
70
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "subtitle2", children: "Subtitle 2" }),
|
|
71
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "caption", children: "Caption text" }),
|
|
72
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "overline", children: "Overline text" })
|
|
73
|
-
] })
|
|
74
|
-
};
|
|
75
|
-
const WithTooltip = {
|
|
76
|
-
args: {
|
|
77
|
-
children: "Hover over me to see the tooltip",
|
|
78
|
-
tooltip: "This is a helpful tooltip message"
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
const Colors = {
|
|
82
|
-
args: {
|
|
83
|
-
children: null
|
|
84
|
-
},
|
|
85
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 2, children: [
|
|
86
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { color: "primary", children: "Primary color" }),
|
|
87
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { color: "secondary", children: "Secondary color" }),
|
|
88
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { color: "textPrimary", children: "Text Primary" }),
|
|
89
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { color: "textSecondary", children: "Text Secondary" }),
|
|
90
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { color: "error", children: "Error color" })
|
|
91
|
-
] })
|
|
92
|
-
};
|
|
93
|
-
const Alignment = {
|
|
94
|
-
args: {
|
|
95
|
-
children: null
|
|
96
|
-
},
|
|
97
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 2, sx: { width: 300 }, children: [
|
|
98
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { align: "left", children: "Left aligned text" }),
|
|
99
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { align: "center", children: "Center aligned text" }),
|
|
100
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { align: "right", children: "Right aligned text" })
|
|
101
|
-
] })
|
|
102
|
-
};
|
|
103
|
-
const ArabicHeadings = {
|
|
104
|
-
args: {
|
|
105
|
-
children: null
|
|
106
|
-
},
|
|
107
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 2, dir: "rtl", children: [
|
|
108
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h1", children: "العنوان الأول" }),
|
|
109
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h2", children: "العنوان الثاني" }),
|
|
110
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h3", children: "العنوان الثالث" }),
|
|
111
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h4", children: "العنوان الرابع" }),
|
|
112
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h5", children: "العنوان الخامس" }),
|
|
113
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h6", children: "العنوان السادس" })
|
|
114
|
-
] })
|
|
115
|
-
};
|
|
116
|
-
const ArabicBodyText = {
|
|
117
|
-
args: {
|
|
118
|
-
children: null
|
|
119
|
-
},
|
|
120
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 2, dir: "rtl", children: [
|
|
121
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body1", children: "النص الأساسي - هذا مثال على النص العربي" }),
|
|
122
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body2", children: "النص الثانوي - نص أصغر حجماً" }),
|
|
123
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "subtitle1", children: "العنوان الفرعي الأول" }),
|
|
124
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "subtitle2", children: "العنوان الفرعي الثاني" }),
|
|
125
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "caption", children: "نص توضيحي صغير" }),
|
|
126
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "overline", children: "نص علوي" })
|
|
127
|
-
] })
|
|
128
|
-
};
|
|
129
|
-
const ArabicWithTooltip = {
|
|
130
|
-
args: {
|
|
131
|
-
children: "مرر الماوس هنا لرؤية التلميح",
|
|
132
|
-
tooltip: "هذه رسالة تلميح مفيدة"
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const ArabicParagraph = {
|
|
136
|
-
args: {
|
|
137
|
-
children: null
|
|
138
|
-
},
|
|
139
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 2, dir: "rtl", sx: { maxWidth: 500 }, children: [
|
|
140
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h4", children: "مرحباً بك في منصتنا" }),
|
|
141
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body1", children: "نحن نقدم لك أفضل الحلول التقنية لإدارة متجرك الإلكتروني. ابدأ رحلتك معنا اليوم واكتشف كيف يمكننا مساعدتك في تحقيق أهدافك التجارية." }),
|
|
142
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body2", color: "textSecondary", children: "للمزيد من المعلومات، تواصل مع فريق الدعم الفني." })
|
|
143
|
-
] })
|
|
144
|
-
};
|
|
145
|
-
const MixedContent = {
|
|
146
|
-
args: {
|
|
147
|
-
children: null
|
|
148
|
-
},
|
|
149
|
-
render: () => /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 3, children: [
|
|
150
|
-
/* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 1, children: [
|
|
151
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h5", children: "English Title" }),
|
|
152
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body1", children: "This is English content for comparison." })
|
|
153
|
-
] }),
|
|
154
|
-
/* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 1, dir: "rtl", children: [
|
|
155
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "h5", children: "عنوان عربي" }),
|
|
156
|
-
/* @__PURE__ */ jsxRuntime.jsx(appTypography.AppTypography, { variant: "body1", children: "هذا محتوى عربي للمقارنة." })
|
|
157
|
-
] })
|
|
158
|
-
] })
|
|
159
|
-
};
|
|
160
|
-
exports.Alignment = Alignment;
|
|
161
|
-
exports.ArabicBodyText = ArabicBodyText;
|
|
162
|
-
exports.ArabicHeadings = ArabicHeadings;
|
|
163
|
-
exports.ArabicParagraph = ArabicParagraph;
|
|
164
|
-
exports.ArabicWithTooltip = ArabicWithTooltip;
|
|
165
|
-
exports.BodyText = BodyText;
|
|
166
|
-
exports.Colors = Colors;
|
|
167
|
-
exports.Default = Default;
|
|
168
|
-
exports.Headings = Headings;
|
|
169
|
-
exports.MixedContent = MixedContent;
|
|
170
|
-
exports.WithTooltip = WithTooltip;
|
|
171
|
-
exports.default = meta;
|
|
172
|
-
//# sourceMappingURL=AppTypography.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppTypography.stories.js","sources":["../../../../../src/stories/react/AppTypography.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { AppTypography } from '~/components/app-typography';\nimport { StackColumn } from '~/components/stack-column';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Typography',\n component: AppTypography,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n variant: {\n control: 'select',\n options: [\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'subtitle1',\n 'subtitle2',\n 'body1',\n 'body2',\n 'caption',\n 'overline',\n ],\n },\n color: {\n control: 'select',\n options: ['primary', 'secondary', 'textPrimary', 'textSecondary', 'error'],\n },\n align: {\n control: 'select',\n options: ['left', 'center', 'right', 'justify'],\n },\n tooltip: {\n control: 'text',\n },\n },\n} satisfies Meta<typeof AppTypography>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Default: Story = {\n args: {\n children: 'Default typography text',\n },\n};\n\n//\n\nexport const Headings: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={2}>\n <AppTypography variant=\"h1\">Heading 1</AppTypography>\n <AppTypography variant=\"h2\">Heading 2</AppTypography>\n <AppTypography variant=\"h3\">Heading 3</AppTypography>\n <AppTypography variant=\"h4\">Heading 4</AppTypography>\n <AppTypography variant=\"h5\">Heading 5</AppTypography>\n <AppTypography variant=\"h6\">Heading 6</AppTypography>\n </StackColumn>\n ),\n};\n\n//\n\nexport const BodyText: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={2}>\n <AppTypography variant=\"body1\">Body 1 - Regular body text</AppTypography>\n <AppTypography variant=\"body2\">Body 2 - Smaller body text</AppTypography>\n <AppTypography variant=\"subtitle1\">Subtitle 1</AppTypography>\n <AppTypography variant=\"subtitle2\">Subtitle 2</AppTypography>\n <AppTypography variant=\"caption\">Caption text</AppTypography>\n <AppTypography variant=\"overline\">Overline text</AppTypography>\n </StackColumn>\n ),\n};\n\n//\n\nexport const WithTooltip: Story = {\n args: {\n children: 'Hover over me to see the tooltip',\n tooltip: 'This is a helpful tooltip message',\n },\n};\n\n//\n\nexport const Colors: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={2}>\n <AppTypography color=\"primary\">Primary color</AppTypography>\n <AppTypography color=\"secondary\">Secondary color</AppTypography>\n <AppTypography color=\"textPrimary\">Text Primary</AppTypography>\n <AppTypography color=\"textSecondary\">Text Secondary</AppTypography>\n <AppTypography color=\"error\">Error color</AppTypography>\n </StackColumn>\n ),\n};\n\n//\n\nexport const Alignment: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={2} sx={{ width: 300 }}>\n <AppTypography align=\"left\">Left aligned text</AppTypography>\n <AppTypography align=\"center\">Center aligned text</AppTypography>\n <AppTypography align=\"right\">Right aligned text</AppTypography>\n </StackColumn>\n ),\n};\n\n//\n\nexport const ArabicHeadings: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={2} dir=\"rtl\">\n <AppTypography variant=\"h1\">العنوان الأول</AppTypography>\n <AppTypography variant=\"h2\">العنوان الثاني</AppTypography>\n <AppTypography variant=\"h3\">العنوان الثالث</AppTypography>\n <AppTypography variant=\"h4\">العنوان الرابع</AppTypography>\n <AppTypography variant=\"h5\">العنوان الخامس</AppTypography>\n <AppTypography variant=\"h6\">العنوان السادس</AppTypography>\n </StackColumn>\n ),\n};\n\n//\n\nexport const ArabicBodyText: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={2} dir=\"rtl\">\n <AppTypography variant=\"body1\">النص الأساسي - هذا مثال على النص العربي</AppTypography>\n <AppTypography variant=\"body2\">النص الثانوي - نص أصغر حجماً</AppTypography>\n <AppTypography variant=\"subtitle1\">العنوان الفرعي الأول</AppTypography>\n <AppTypography variant=\"subtitle2\">العنوان الفرعي الثاني</AppTypography>\n <AppTypography variant=\"caption\">نص توضيحي صغير</AppTypography>\n <AppTypography variant=\"overline\">نص علوي</AppTypography>\n </StackColumn>\n ),\n};\n\n//\n\nexport const ArabicWithTooltip: Story = {\n args: {\n children: 'مرر الماوس هنا لرؤية التلميح',\n tooltip: 'هذه رسالة تلميح مفيدة',\n },\n};\n\n//\n\nexport const ArabicParagraph: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={2} dir=\"rtl\" sx={{ maxWidth: 500 }}>\n <AppTypography variant=\"h4\">مرحباً بك في منصتنا</AppTypography>\n <AppTypography variant=\"body1\">\n نحن نقدم لك أفضل الحلول التقنية لإدارة متجرك الإلكتروني. ابدأ رحلتك معنا اليوم واكتشف كيف\n يمكننا مساعدتك في تحقيق أهدافك التجارية.\n </AppTypography>\n <AppTypography variant=\"body2\" color=\"textSecondary\">\n للمزيد من المعلومات، تواصل مع فريق الدعم الفني.\n </AppTypography>\n </StackColumn>\n ),\n};\n\n//\n\nexport const MixedContent: Story = {\n args: {\n children: null,\n },\n render: () => (\n <StackColumn gap={3}>\n <StackColumn gap={1}>\n <AppTypography variant=\"h5\">English Title</AppTypography>\n <AppTypography variant=\"body1\">This is English content for comparison.</AppTypography>\n </StackColumn>\n <StackColumn gap={1} dir=\"rtl\">\n <AppTypography variant=\"h5\">عنوان عربي</AppTypography>\n <AppTypography variant=\"body1\">هذا محتوى عربي للمقارنة.</AppTypography>\n </StackColumn>\n </StackColumn>\n ),\n};\n"],"names":["AppTypography","jsxs","StackColumn","jsx"],"mappings":";;;;;AASA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAWA,cAAAA;AAAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AAAA,EACjB,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,QACP;AAAA,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EAAc,SAAQ,SAAQ,UAAA,0CAAA,CAAuC;AAAA,IAAA,GACxE;AAAA,IACAC,2BAAAA,KAACC,YAAAA,aAAA,EAAY,KAAK,GAAG,KAAI,OACvB,UAAA;AAAA,MAAAC,2BAAAA,IAACH,cAAAA,eAAA,EAAc,SAAQ,MAAK,UAAA,cAAU;AAAA,MACtCG,2BAAAA,IAACH,cAAAA,eAAA,EAAc,SAAQ,SAAQ,UAAA,2BAAA,CAAwB;AAAA,IAAA,EAAA,CACzD;AAAA,EAAA,EAAA,CACF;AAEJ;;;;;;;;;;;;;"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { IconCloseLine } from "../../icons/system/close-line.js";
|
|
4
|
-
const icons = {
|
|
5
|
-
success: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) }),
|
|
6
|
-
info: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) }),
|
|
7
|
-
warning: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" }) }),
|
|
8
|
-
error: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) })
|
|
9
|
-
};
|
|
10
|
-
const meta = {
|
|
11
|
-
title: "CSS Styles/Components/Alert",
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: "centered"
|
|
14
|
-
},
|
|
15
|
-
tags: ["autodocs"]
|
|
16
|
-
};
|
|
17
|
-
const WithTitle = {
|
|
18
|
-
render: () => {
|
|
19
|
-
return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: [
|
|
20
|
-
/* @__PURE__ */ jsx(
|
|
21
|
-
"h3",
|
|
22
|
-
{
|
|
23
|
-
style: {
|
|
24
|
-
marginBottom: "8px",
|
|
25
|
-
fontFamily: "var(--zid-font-family)"
|
|
26
|
-
},
|
|
27
|
-
children: "Alerts with Title"
|
|
28
|
-
}
|
|
29
|
-
),
|
|
30
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert zid-alert--success", children: [
|
|
31
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__icon", children: icons.success }),
|
|
32
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert__content", children: [
|
|
33
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__title", children: "Success" }),
|
|
34
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__message", children: "Your order has been placed successfully." })
|
|
35
|
-
] }),
|
|
36
|
-
/* @__PURE__ */ jsx("button", { className: "zid-alert__close", "aria-label": "Close", children: /* @__PURE__ */ jsx(IconCloseLine, {}) })
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert zid-alert--info", children: [
|
|
39
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__icon", children: icons.info }),
|
|
40
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert__content", children: [
|
|
41
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__title", children: "Information" }),
|
|
42
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__message", children: "This alert has a title and a message for more context." })
|
|
43
|
-
] }),
|
|
44
|
-
/* @__PURE__ */ jsx("button", { className: "zid-alert__close", "aria-label": "Close", children: /* @__PURE__ */ jsx(IconCloseLine, {}) })
|
|
45
|
-
] }),
|
|
46
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert zid-alert--warning", children: [
|
|
47
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__icon", children: icons.warning }),
|
|
48
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert__content", children: [
|
|
49
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__title", children: "Warning" }),
|
|
50
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__message", children: "Your session will expire in 5 minutes." })
|
|
51
|
-
] }),
|
|
52
|
-
/* @__PURE__ */ jsx("button", { className: "zid-alert__close", "aria-label": "Close", children: /* @__PURE__ */ jsx(IconCloseLine, {}) })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert zid-alert--error", children: [
|
|
55
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__icon", children: icons.error }),
|
|
56
|
-
/* @__PURE__ */ jsxs("div", { className: "zid-alert__content", children: [
|
|
57
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__title", children: "Error" }),
|
|
58
|
-
/* @__PURE__ */ jsx("div", { className: "zid-alert__message", children: "Failed to save changes. Please try again." })
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ jsx("button", { className: "zid-alert__close", "aria-label": "Close", children: /* @__PURE__ */ jsx(IconCloseLine, {}) })
|
|
61
|
-
] })
|
|
62
|
-
] });
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
WithTitle,
|
|
67
|
-
meta as default
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=Alert.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.stories.js","sources":["../../../../../src/stories/css/Alert.stories.tsx"],"sourcesContent":["import type { StoryObj } from '@storybook/react-vite';\nimport '../../css/index.css';\nimport { IconCloseLine } from '~/icons/system/close-line';\n\n//\n//\n\nconst icons = {\n success: (\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\" />\n </svg>\n ),\n info: (\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z\" />\n </svg>\n ),\n warning: (\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\" />\n </svg>\n ),\n error: (\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" />\n </svg>\n ),\n};\n\n// Meta\nconst meta = {\n title: 'CSS Styles/Components/Alert',\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n};\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const WithTitle: Story = {\n render: () => {\n return (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '24px' }}>\n <h3\n style={{\n marginBottom: '8px',\n fontFamily: 'var(--zid-font-family)',\n }}\n >\n Alerts with Title\n </h3>\n\n <div className=\"zid-alert zid-alert--success\">\n <div className=\"zid-alert__icon\">{icons.success}</div>\n <div className=\"zid-alert__content\">\n <div className=\"zid-alert__title\">Success</div>\n <div className=\"zid-alert__message\">Your order has been placed successfully.</div>\n </div>\n <button className=\"zid-alert__close\" aria-label=\"Close\">\n <IconCloseLine />\n </button>\n </div>\n\n <div className=\"zid-alert zid-alert--info\">\n <div className=\"zid-alert__icon\">{icons.info}</div>\n <div className=\"zid-alert__content\">\n <div className=\"zid-alert__title\">Information</div>\n <div className=\"zid-alert__message\">\n This alert has a title and a message for more context.\n </div>\n </div>\n <button className=\"zid-alert__close\" aria-label=\"Close\">\n <IconCloseLine />\n </button>\n </div>\n\n <div className=\"zid-alert zid-alert--warning\">\n <div className=\"zid-alert__icon\">{icons.warning}</div>\n <div className=\"zid-alert__content\">\n <div className=\"zid-alert__title\">Warning</div>\n <div className=\"zid-alert__message\">Your session will expire in 5 minutes.</div>\n </div>\n <button className=\"zid-alert__close\" aria-label=\"Close\">\n <IconCloseLine />\n </button>\n </div>\n\n <div className=\"zid-alert zid-alert--error\">\n <div className=\"zid-alert__icon\">{icons.error}</div>\n <div className=\"zid-alert__content\">\n <div className=\"zid-alert__title\">Error</div>\n <div className=\"zid-alert__message\">Failed to save changes. Please try again.</div>\n </div>\n <button className=\"zid-alert__close\" aria-label=\"Close\">\n <IconCloseLine />\n </button>\n </div>\n </div>\n );\n },\n};\n"],"names":[],"mappings":";;;AAOA,MAAM,QAAQ;AAAA,EACZ,SACE,oBAAC,OAAA,EAAI,SAAQ,aAAY,MAAK,gBAC5B,UAAA,oBAAC,QAAA,EAAK,GAAE,wHAAA,CAAwH,EAAA,CAClI;AAAA,EAEF,MACE,oBAAC,OAAA,EAAI,SAAQ,aAAY,MAAK,gBAC5B,UAAA,oBAAC,QAAA,EAAK,GAAE,mGAAA,CAAmG,EAAA,CAC7G;AAAA,EAEF,SACE,oBAAC,OAAA,EAAI,SAAQ,aAAY,MAAK,gBAC5B,UAAA,oBAAC,QAAA,EAAK,GAAE,qDAAA,CAAqD,EAAA,CAC/D;AAAA,EAEF,OACE,oBAAC,OAAA,EAAI,SAAQ,aAAY,MAAK,gBAC5B,UAAA,oBAAC,QAAA,EAAK,GAAE,mGAAA,CAAmG,EAAA,CAC7G;AAEJ;AAGA,MAA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WAAU,gCACb,UAAA;AAAA,QAAA,oBAAC,OAAA,EAAI,WAAU,mBAAmB,UAAA,MAAM,SAAQ;AAAA,QAChD,qBAAC,OAAA,EAAI,WAAU,sBACb,UAAA;AAAA,UAAA,oBAAC,OAAA,EAAI,WAAU,oBAAmB,UAAA,WAAO;AAAA,UACzC,oBAAC,OAAA,EAAI,WAAU,sBAAqB,UAAA,yCAAA,CAAsC;AAAA,QAAA,GAC5E;AAAA,QACA,oBAAC,YAAO,WAAU,oBAAmB,cAAW,SAC9C,UAAA,oBAAC,iBAAc,EAAA,CACjB;AAAA,MAAA,GACF;AAAA,MAEA,qBAAC,OAAA,EAAI,WAAU,8BACb,UAAA;AAAA,QAAA,oBAAC,OAAA,EAAI,WAAU,mBAAmB,UAAA,MAAM,OAAM;AAAA,QAC9C,qBAAC,OAAA,EAAI,WAAU,sBACb,UAAA;AAAA,UAAA,oBAAC,OAAA,EAAI,WAAU,oBAAmB,UAAA,SAAK;AAAA,UACvC,oBAAC,OAAA,EAAI,WAAU,sBAAqB,UAAA,4CAAA,CAAyC;AAAA,QAAA,GAC/E;AAAA,QACA,oBAAC,YAAO,WAAU,oBAAmB,cAAW,SAC9C,UAAA,oBAAC,iBAAc,EAAA,CACjB;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,GACF;AAAA,EAEJ;AACF;"}
|
|
@@ -1,133 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAEV,MAAM,CAAC,UAAU;AACnB;AAKO,MAAM,WAAkB;AAAA,EAC7B,QAAQ,MACN,qBAAC,OAAA,EAAI,OAAO,EAAE,SAAS,QAAQ,eAAe,UAAU,KAAK,OAAA,GAC3D,UAAA;AAAA,IAAA,qBAAC,OAAA,EACC,UAAA;AAAA,MAAA,oBAAC,MAAA,EAAG,OAAO,EAAE,cAAc,QAAQ,YAAY,yBAAA,GAA4B,UAAA,YAAA,CAAS;AAAA,MACpF,qBAAC,OAAA,EAAI,OAAO,EAAE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