@adobe-commerce/elsie 1.0.0-alpha1
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/.elsie.js +12 -0
- package/.eslintrc.js +9 -0
- package/README.md +52 -0
- package/__mocks__/svg.js +1 -0
- package/bin/builders/build/index.js +20 -0
- package/bin/builders/generate/api/index.js +65 -0
- package/bin/builders/generate/api/templates/function.js +9 -0
- package/bin/builders/generate/api/templates/index.js +7 -0
- package/bin/builders/generate/api/templates/story.js +23 -0
- package/bin/builders/generate/api/templates/unit-test.js +15 -0
- package/bin/builders/generate/component/index.js +87 -0
- package/bin/builders/generate/component/templates/Component.js +43 -0
- package/bin/builders/generate/component/templates/css.js +24 -0
- package/bin/builders/generate/component/templates/index.js +8 -0
- package/bin/builders/generate/component/templates/stories.js +46 -0
- package/bin/builders/generate/component/templates/unit-test.js +19 -0
- package/bin/builders/generate/config/index.js +54 -0
- package/bin/builders/generate/config/templates/elsie.js +29 -0
- package/bin/builders/generate/container/index.js +65 -0
- package/bin/builders/generate/container/templates/Component.js +18 -0
- package/bin/builders/generate/container/templates/index.js +8 -0
- package/bin/builders/generate/container/templates/stories.js +34 -0
- package/bin/builders/generate/container/templates/unit-test.js +19 -0
- package/bin/builders/generate/index.js +283 -0
- package/bin/builders/gql/createOrClearDirectory.js +33 -0
- package/bin/builders/gql/getSchemaRef.js +25 -0
- package/bin/builders/gql/index.js +71 -0
- package/bin/builders/lint/index.js +5 -0
- package/bin/builders/serve/index.js +44 -0
- package/bin/builders/storybook/index.js +5 -0
- package/bin/builders/test/index.js +5 -0
- package/bin/index.js +26 -0
- package/bin/lib/cli.js +8 -0
- package/bin/lib/config.js +12 -0
- package/bin/lib/log-message.js +11 -0
- package/bin/lib/string.js +26 -0
- package/bin/lib/validate-typeof.js +19 -0
- package/bin/lib/write-file.js +21 -0
- package/bin/lib/write-parent-index.js +36 -0
- package/config/eslint.js +103 -0
- package/config/jest.js +81 -0
- package/config/prettier.js +7 -0
- package/config/setEnvVars.js +5 -0
- package/config/storybook/addon.js +121 -0
- package/config/storybook/components/FileTree/FileTree.jsx +183 -0
- package/config/storybook/components/FileTree/index.js +1 -0
- package/config/storybook/components/Flex/Flex.jsx +12 -0
- package/config/storybook/components/Flex/Flex.module.css +20 -0
- package/config/storybook/components/Flex/index.js +1 -0
- package/config/storybook/components/OptionsTable/OptionsTable.jsx +79 -0
- package/config/storybook/components/OptionsTable/OptionsTable.module.css +95 -0
- package/config/storybook/components/OptionsTable/index.js +1 -0
- package/config/storybook/components/Panel/Panel.module.css +47 -0
- package/config/storybook/components/Panel/Panel.tsx +37 -0
- package/config/storybook/components/Panel/index.ts +1 -0
- package/config/storybook/components/Screenshot/Screenshot.jsx +14 -0
- package/config/storybook/components/Screenshot/Screenshot.module.css +19 -0
- package/config/storybook/components/Screenshot/index.js +1 -0
- package/config/storybook/components/Steps/Steps.jsx +12 -0
- package/config/storybook/components/Steps/Steps.module.css +34 -0
- package/config/storybook/components/Steps/index.js +1 -0
- package/config/storybook/components/StoryWrapper/StoryWrapper.jsx +9 -0
- package/config/storybook/components/StoryWrapper/StoryWrapper.module.css +13 -0
- package/config/storybook/components/StoryWrapper/index.js +1 -0
- package/config/storybook/components/Summary/Summary.jsx +10 -0
- package/config/storybook/components/Summary/Summary.module.css +11 -0
- package/config/storybook/components/Summary/index.js +1 -0
- package/config/storybook/components/Variants/Variants.js +48 -0
- package/config/storybook/components/Variants/docs.css +39 -0
- package/config/storybook/components/Variants/index.js +1 -0
- package/config/storybook/components/video/index.jsx +19 -0
- package/config/storybook/manager.js +14 -0
- package/config/storybook/preview.jsx +79 -0
- package/config/storybook/theming/fonts.css +59 -0
- package/config/storybook/theming/logo.svg +19 -0
- package/config/storybook/theming/manager.css +54 -0
- package/config/storybook/theming/preview.css +84 -0
- package/config/storybook/theming/theme.js +52 -0
- package/config/tsconfig-base.json +16 -0
- package/config/tsconfig-preact.json +15 -0
- package/config/vite.mjs +297 -0
- package/dist/chunks/deviceUtils.js +14 -0
- package/dist/chunks/icons/Add.js +3 -0
- package/dist/chunks/icons/AddressBook.js +3 -0
- package/dist/chunks/icons/Bulk.js +3 -0
- package/dist/chunks/icons/Burger.js +3 -0
- package/dist/chunks/icons/Card.js +3 -0
- package/dist/chunks/icons/Cart.js +3 -0
- package/dist/chunks/icons/Check.js +3 -0
- package/dist/chunks/icons/CheckWithCircle.js +3 -0
- package/dist/chunks/icons/ChevronDown.js +3 -0
- package/dist/chunks/icons/ChevronRight.js +3 -0
- package/dist/chunks/icons/ChevronUp.js +3 -0
- package/dist/chunks/icons/Close.js +3 -0
- package/dist/chunks/icons/Coupon.js +3 -0
- package/dist/chunks/icons/Date.js +3 -0
- package/dist/chunks/icons/Delivery.js +3 -0
- package/dist/chunks/icons/EmptyBox.js +3 -0
- package/dist/chunks/icons/Eye.js +3 -0
- package/dist/chunks/icons/EyeClose.js +3 -0
- package/dist/chunks/icons/Gift.js +3 -0
- package/dist/chunks/icons/GiftCard.js +3 -0
- package/dist/chunks/icons/Heart.js +3 -0
- package/dist/chunks/icons/HeartFilled.js +3 -0
- package/dist/chunks/icons/InfoFilled.js +3 -0
- package/dist/chunks/icons/Locker.js +3 -0
- package/dist/chunks/icons/Minus.js +3 -0
- package/dist/chunks/icons/Order.js +3 -0
- package/dist/chunks/icons/OrderError.js +3 -0
- package/dist/chunks/icons/OrderSuccess.js +3 -0
- package/dist/chunks/icons/PaymentError.js +3 -0
- package/dist/chunks/icons/Placeholder.js +3 -0
- package/dist/chunks/icons/PlaceholderFilled.js +3 -0
- package/dist/chunks/icons/Search.js +3 -0
- package/dist/chunks/icons/SearchFilled.js +3 -0
- package/dist/chunks/icons/Sort.js +3 -0
- package/dist/chunks/icons/Star.js +3 -0
- package/dist/chunks/icons/Trash.js +3 -0
- package/dist/chunks/icons/User.js +3 -0
- package/dist/chunks/icons/View.js +3 -0
- package/dist/chunks/icons/Wallet.js +3 -0
- package/dist/chunks/icons/Warning.js +3 -0
- package/dist/chunks/icons/WarningFilled.js +3 -0
- package/dist/chunks/icons/WarningWithCircle.js +3 -0
- package/dist/chunks/image-params-keymap.js +3 -0
- package/dist/chunks/initializer.js +5 -0
- package/dist/components.d.ts +1 -0
- package/dist/components.js +3 -0
- package/dist/event-bus.d.ts +1 -0
- package/dist/event-bus.js +3 -0
- package/dist/fetch-graphql.d.ts +1 -0
- package/dist/fetch-graphql.js +3 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +5 -0
- package/dist/initializer.d.ts +1 -0
- package/dist/initializer.js +5 -0
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +3 -0
- package/dist/preact-compat.d.ts +1 -0
- package/dist/preact-compat.js +3 -0
- package/dist/preact-hooks.d.ts +1 -0
- package/dist/preact-hooks.js +3 -0
- package/dist/preact-jsx-runtime.d.ts +1 -0
- package/dist/preact-jsx-runtime.js +3 -0
- package/dist/preact.d.ts +1 -0
- package/dist/preact.js +3 -0
- package/dist/recaptcha.d.ts +1 -0
- package/dist/recaptcha.js +14 -0
- package/dist/signals.d.ts +1 -0
- package/dist/signals.js +3 -0
- package/dist/types/elsie/src/components/Accordion/Accordion.d.ts +27 -0
- package/dist/types/elsie/src/components/Accordion/index.d.ts +3 -0
- package/dist/types/elsie/src/components/ActionButton/ActionButton.d.ts +11 -0
- package/dist/types/elsie/src/components/ActionButton/index.d.ts +2 -0
- package/dist/types/elsie/src/components/ActionButtonGroup/ActionButtonGroup.d.ts +20 -0
- package/dist/types/elsie/src/components/ActionButtonGroup/index.d.ts +2 -0
- package/dist/types/elsie/src/components/AlertBanner/AlertBanner.d.ts +15 -0
- package/dist/types/elsie/src/components/AlertBanner/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/dist/types/elsie/src/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Button/Button.d.ts +15 -0
- package/dist/types/elsie/src/components/Button/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Card/Card.d.ts +9 -0
- package/dist/types/elsie/src/components/Card/index.d.ts +2 -0
- package/dist/types/elsie/src/components/CartItem/CartItem.d.ts +36 -0
- package/dist/types/elsie/src/components/CartItem/CartItemSkeleton.d.ts +4 -0
- package/dist/types/elsie/src/components/CartItem/index.d.ts +4 -0
- package/dist/types/elsie/src/components/CartList/CartList.d.ts +7 -0
- package/dist/types/elsie/src/components/CartList/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Checkbox/Checkbox.d.ts +13 -0
- package/dist/types/elsie/src/components/Checkbox/index.d.ts +2 -0
- package/dist/types/elsie/src/components/ColorSwatch/ColorSwatch.d.ts +20 -0
- package/dist/types/elsie/src/components/ColorSwatch/index.d.ts +3 -0
- package/dist/types/elsie/src/components/ContentGrid/ContentGrid.d.ts +10 -0
- package/dist/types/elsie/src/components/ContentGrid/index.d.ts +19 -0
- package/dist/types/elsie/src/components/Divider/Divider.d.ts +8 -0
- package/dist/types/elsie/src/components/Divider/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Field/Field.d.ts +14 -0
- package/dist/types/elsie/src/components/Field/index.d.ts +2 -0
- package/dist/types/elsie/src/components/Header/Header.d.ts +11 -0
- package/dist/types/elsie/src/components/Header/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Icon/Icon.d.ts +18 -0
- package/dist/types/elsie/src/components/Icon/index.d.ts +2 -0
- package/dist/types/elsie/src/components/IllustratedMessage/IllustratedMessage.d.ts +13 -0
- package/dist/types/elsie/src/components/IllustratedMessage/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Image/Image.d.ts +11 -0
- package/dist/types/elsie/src/components/Image/index.d.ts +2 -0
- package/dist/types/elsie/src/components/ImageSwatch/ImageSwatch.d.ts +20 -0
- package/dist/types/elsie/src/components/ImageSwatch/index.d.ts +3 -0
- package/dist/types/elsie/src/components/InLineAlert/InLineAlert.d.ts +19 -0
- package/dist/types/elsie/src/components/InLineAlert/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Incrementer/Incrementer.d.ts +17 -0
- package/dist/types/elsie/src/components/Incrementer/index.d.ts +2 -0
- package/dist/types/elsie/src/components/Input/Input.d.ts +19 -0
- package/dist/types/elsie/src/components/Input/index.d.ts +3 -0
- package/dist/types/elsie/src/components/InputDate/InputDate.d.ts +11 -0
- package/dist/types/elsie/src/components/InputDate/index.d.ts +3 -0
- package/dist/types/elsie/src/components/InputPassword/InputPassword.d.ts +19 -0
- package/dist/types/elsie/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.d.ts +18 -0
- package/dist/types/elsie/src/components/InputPassword/PasswordStatusIndicator/index.d.ts +3 -0
- package/dist/types/elsie/src/components/InputPassword/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Modal/Modal.d.ts +15 -0
- package/dist/types/elsie/src/components/Modal/index.d.ts +2 -0
- package/dist/types/elsie/src/components/Pagination/Pagination.d.ts +15 -0
- package/dist/types/elsie/src/components/Pagination/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Picker/Picker.d.ts +28 -0
- package/dist/types/elsie/src/components/Picker/index.d.ts +2 -0
- package/dist/types/elsie/src/components/Price/Price.d.ts +17 -0
- package/dist/types/elsie/src/components/Price/index.d.ts +2 -0
- package/dist/types/elsie/src/components/PriceRange/PriceRange.d.ts +17 -0
- package/dist/types/elsie/src/components/PriceRange/index.d.ts +3 -0
- package/dist/types/elsie/src/components/ProgressSpinner/ProgressSpinner.d.ts +14 -0
- package/dist/types/elsie/src/components/ProgressSpinner/index.d.ts +3 -0
- package/dist/types/elsie/src/components/RadioButton/RadioButton.d.ts +16 -0
- package/dist/types/elsie/src/components/RadioButton/index.d.ts +3 -0
- package/dist/types/elsie/src/components/Skeleton/Skeleton.d.ts +17 -0
- package/dist/types/elsie/src/components/Skeleton/index.d.ts +2 -0
- package/dist/types/elsie/src/components/Tag/Tag.d.ts +9 -0
- package/dist/types/elsie/src/components/Tag/index.d.ts +3 -0
- package/dist/types/elsie/src/components/TextArea/TextArea.d.ts +11 -0
- package/dist/types/elsie/src/components/TextArea/index.d.ts +3 -0
- package/dist/types/elsie/src/components/TextSwatch/TextSwatch.d.ts +18 -0
- package/dist/types/elsie/src/components/TextSwatch/index.d.ts +3 -0
- package/dist/types/elsie/src/components/ToggleButton/ToggleButton.d.ts +14 -0
- package/dist/types/elsie/src/components/ToggleButton/index.d.ts +3 -0
- package/dist/types/elsie/src/components/UIProvider/UIProvider.d.ts +19 -0
- package/dist/types/elsie/src/components/UIProvider/index.d.ts +2 -0
- package/dist/types/elsie/src/components/index.d.ts +41 -0
- package/dist/types/elsie/src/i18n/en_US.json.d.ts +149 -0
- package/dist/types/elsie/src/i18n/index.d.ts +443 -0
- package/dist/types/elsie/src/icons/index.d.ts +43 -0
- package/dist/types/elsie/src/lib/classes.d.ts +6 -0
- package/dist/types/elsie/src/lib/config.d.ts +7 -0
- package/dist/types/elsie/src/lib/debounce.d.ts +2 -0
- package/dist/types/elsie/src/lib/deepmerge.d.ts +5 -0
- package/dist/types/elsie/src/lib/deviceUtils.d.ts +2 -0
- package/dist/types/elsie/src/lib/form-values.d.ts +5 -0
- package/dist/types/elsie/src/lib/i18n.d.ts +8 -0
- package/dist/types/elsie/src/lib/image-params-keymap.d.ts +4 -0
- package/dist/types/elsie/src/lib/index.d.ts +16 -0
- package/dist/types/elsie/src/lib/initializer.d.ts +81 -0
- package/dist/types/elsie/src/lib/is-number.d.ts +2 -0
- package/dist/types/elsie/src/lib/render.d.ts +42 -0
- package/dist/types/elsie/src/lib/resolve-image.d.ts +10 -0
- package/dist/types/elsie/src/lib/signals.d.ts +2 -0
- package/dist/types/elsie/src/lib/slot.d.ts +45 -0
- package/dist/types/elsie/src/lib/tests.d.ts +5 -0
- package/dist/types/elsie/src/lib/types.d.ts +10 -0
- package/dist/types/elsie/src/lib/vcomponent.d.ts +9 -0
- package/package.json +114 -0
- package/src/components/Accordion/Accordion.css +79 -0
- package/src/components/Accordion/Accordion.stories.tsx +566 -0
- package/src/components/Accordion/Accordion.tsx +166 -0
- package/src/components/Accordion/index.ts +2 -0
- package/src/components/ActionButton/ActionButton.css +91 -0
- package/src/components/ActionButton/ActionButton.stories.tsx +160 -0
- package/src/components/ActionButton/ActionButton.tsx +44 -0
- package/src/components/ActionButton/index.ts +1 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.css +68 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.stories.tsx +88 -0
- package/src/components/ActionButtonGroup/ActionButtonGroup.tsx +82 -0
- package/src/components/ActionButtonGroup/index.ts +1 -0
- package/src/components/AlertBanner/AlertBanner.css +135 -0
- package/src/components/AlertBanner/AlertBanner.stories.tsx +156 -0
- package/src/components/AlertBanner/AlertBanner.tsx +81 -0
- package/src/components/AlertBanner/index.ts +2 -0
- package/src/components/Breadcrumbs/Breadcrumbs.css +51 -0
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +186 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +62 -0
- package/src/components/Breadcrumbs/index.ts +2 -0
- package/src/components/Button/Button.css +204 -0
- package/src/components/Button/Button.mdx +133 -0
- package/src/components/Button/Button.stories.tsx +389 -0
- package/src/components/Button/Button.tsx +112 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/Card/Card.css +25 -0
- package/src/components/Card/Card.stories.tsx +67 -0
- package/src/components/Card/Card.tsx +25 -0
- package/src/components/Card/index.ts +1 -0
- package/src/components/CartItem/CartItem.css +474 -0
- package/src/components/CartItem/CartItem.stories.tsx +588 -0
- package/src/components/CartItem/CartItem.tsx +444 -0
- package/src/components/CartItem/CartItemSkeleton.tsx +29 -0
- package/src/components/CartItem/index.ts +3 -0
- package/src/components/CartList/CartList.css +26 -0
- package/src/components/CartList/CartList.stories.tsx +102 -0
- package/src/components/CartList/CartList.tsx +31 -0
- package/src/components/CartList/index.ts +2 -0
- package/src/components/Checkbox/Checkbox.css +246 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +281 -0
- package/src/components/Checkbox/Checkbox.tsx +129 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/ColorSwatch/ColorSwatch.css +123 -0
- package/src/components/ColorSwatch/ColorSwatch.stories.tsx +265 -0
- package/src/components/ColorSwatch/ColorSwatch.tsx +118 -0
- package/src/components/ColorSwatch/index.ts +2 -0
- package/src/components/ContentGrid/ContentGrid.css +62 -0
- package/src/components/ContentGrid/ContentGrid.stories.tsx +145 -0
- package/src/components/ContentGrid/ContentGrid.tsx +65 -0
- package/src/components/ContentGrid/index.ts +19 -0
- package/src/components/Divider/Divider.css +13 -0
- package/src/components/Divider/Divider.stories.tsx +53 -0
- package/src/components/Divider/Divider.tsx +24 -0
- package/src/components/Divider/index.ts +2 -0
- package/src/components/Field/Field.css +74 -0
- package/src/components/Field/Field.stories.tsx +229 -0
- package/src/components/Field/Field.tsx +75 -0
- package/src/components/Field/index.ts +1 -0
- package/src/components/Header/Header.css +47 -0
- package/src/components/Header/Header.stories.tsx +128 -0
- package/src/components/Header/Header.tsx +53 -0
- package/src/components/Header/index.ts +2 -0
- package/src/components/Icon/Icon.css +17 -0
- package/src/components/Icon/Icon.stories.helpers.jsx +12 -0
- package/src/components/Icon/Icon.stories.tsx +88 -0
- package/src/components/Icon/Icon.tsx +103 -0
- package/src/components/Icon/index.ts +1 -0
- package/src/components/IllustratedMessage/IllustratedMessage.css +52 -0
- package/src/components/IllustratedMessage/IllustratedMessage.stories.tsx +117 -0
- package/src/components/IllustratedMessage/IllustratedMessage.tsx +69 -0
- package/src/components/IllustratedMessage/index.ts +2 -0
- package/src/components/Image/Image.css +43 -0
- package/src/components/Image/Image.stories.tsx +80 -0
- package/src/components/Image/Image.tsx +57 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/ImageSwatch/ImageSwatch.css +145 -0
- package/src/components/ImageSwatch/ImageSwatch.stories.tsx +252 -0
- package/src/components/ImageSwatch/ImageSwatch.tsx +111 -0
- package/src/components/ImageSwatch/index.ts +2 -0
- package/src/components/InLineAlert/InLineAlert.css +107 -0
- package/src/components/InLineAlert/InLineAlert.stories.tsx +317 -0
- package/src/components/InLineAlert/InLineAlert.tsx +119 -0
- package/src/components/InLineAlert/index.ts +2 -0
- package/src/components/Incrementer/Incrementer.css +156 -0
- package/src/components/Incrementer/Incrementer.stories.tsx +163 -0
- package/src/components/Incrementer/Incrementer.tsx +183 -0
- package/src/components/Incrementer/index.ts +1 -0
- package/src/components/Input/Input.css +295 -0
- package/src/components/Input/Input.stories.tsx +146 -0
- package/src/components/Input/Input.tsx +157 -0
- package/src/components/Input/index.ts +2 -0
- package/src/components/InputDate/InputDate.css +47 -0
- package/src/components/InputDate/InputDate.stories.tsx +108 -0
- package/src/components/InputDate/InputDate.tsx +111 -0
- package/src/components/InputDate/index.ts +2 -0
- package/src/components/InputPassword/InputPassword.css +22 -0
- package/src/components/InputPassword/InputPassword.stories.tsx +139 -0
- package/src/components/InputPassword/InputPassword.tsx +126 -0
- package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.css +22 -0
- package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.tsx +87 -0
- package/src/components/InputPassword/PasswordStatusIndicator/index.ts +2 -0
- package/src/components/InputPassword/index.ts +2 -0
- package/src/components/Modal/Modal.css +130 -0
- package/src/components/Modal/Modal.stories.tsx +255 -0
- package/src/components/Modal/Modal.tsx +162 -0
- package/src/components/Modal/index.ts +15 -0
- package/src/components/Pagination/Pagination.css +86 -0
- package/src/components/Pagination/Pagination.stories.tsx +108 -0
- package/src/components/Pagination/Pagination.tsx +140 -0
- package/src/components/Pagination/index.ts +2 -0
- package/src/components/Picker/Picker.css +211 -0
- package/src/components/Picker/Picker.stories.tsx +309 -0
- package/src/components/Picker/Picker.tsx +194 -0
- package/src/components/Picker/index.ts +1 -0
- package/src/components/Price/Price.css +48 -0
- package/src/components/Price/Price.stories.tsx +101 -0
- package/src/components/Price/Price.tsx +66 -0
- package/src/components/Price/index.ts +1 -0
- package/src/components/PriceRange/PriceRange.css +57 -0
- package/src/components/PriceRange/PriceRange.stories.tsx +231 -0
- package/src/components/PriceRange/PriceRange.tsx +239 -0
- package/src/components/PriceRange/index.ts +2 -0
- package/src/components/ProgressSpinner/ProgressSpinner.css +82 -0
- package/src/components/ProgressSpinner/ProgressSpinner.stories.tsx +291 -0
- package/src/components/ProgressSpinner/ProgressSpinner.tsx +77 -0
- package/src/components/ProgressSpinner/index.ts +2 -0
- package/src/components/RadioButton/RadioButton.css +125 -0
- package/src/components/RadioButton/RadioButton.stories.tsx +117 -0
- package/src/components/RadioButton/RadioButton.tsx +77 -0
- package/src/components/RadioButton/index.ts +2 -0
- package/src/components/Skeleton/Skeleton.css +136 -0
- package/src/components/Skeleton/Skeleton.stories.tsx +256 -0
- package/src/components/Skeleton/Skeleton.tsx +124 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Tag/Tag.css +17 -0
- package/src/components/Tag/Tag.stories.tsx +94 -0
- package/src/components/Tag/Tag.tsx +29 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/TextArea/TextArea.css +131 -0
- package/src/components/TextArea/TextArea.stories.tsx +121 -0
- package/src/components/TextArea/TextArea.tsx +80 -0
- package/src/components/TextArea/index.ts +2 -0
- package/src/components/TextSwatch/TextSwatch.css +143 -0
- package/src/components/TextSwatch/TextSwatch.stories.tsx +268 -0
- package/src/components/TextSwatch/TextSwatch.tsx +122 -0
- package/src/components/TextSwatch/index.ts +2 -0
- package/src/components/ToggleButton/ToggleButton.css +77 -0
- package/src/components/ToggleButton/ToggleButton.stories.tsx +146 -0
- package/src/components/ToggleButton/ToggleButton.tsx +67 -0
- package/src/components/ToggleButton/index.ts +2 -0
- package/src/components/UIProvider/UIProvider.css +131 -0
- package/src/components/UIProvider/UIProvider.tsx +52 -0
- package/src/components/UIProvider/debugger.css +38 -0
- package/src/components/UIProvider/index.ts +1 -0
- package/src/components/UIProvider/normalize.css +17 -0
- package/src/components/index.ts +40 -0
- package/src/docs/API/event-bus.mdx +52 -0
- package/src/docs/API/graphql.mdx +214 -0
- package/src/docs/API/initializer.mdx +110 -0
- package/src/docs/API/render.mdx +125 -0
- package/src/docs/Design/colors.mdx +202 -0
- package/src/docs/Design/designBlocks.jsx +87 -0
- package/src/docs/Design/getTokenData.ts +28 -0
- package/src/docs/Design/grid.mdx +365 -0
- package/src/docs/Design/overview.mdx +69 -0
- package/src/docs/Design/shapes.mdx +100 -0
- package/src/docs/Design/spacing.mdx +22 -0
- package/src/docs/Design/typography.mdx +126 -0
- package/src/docs/Utilities/classList.mdx +52 -0
- package/src/docs/Utilities/debounce.mdx +49 -0
- package/src/docs/Utilities/deepmerge.mdx +12 -0
- package/src/docs/Utilities/getFormErrors.mdx +41 -0
- package/src/docs/Utilities/getFormValues.mdx +38 -0
- package/src/docs/assets/Banner.png +0 -0
- package/src/docs/assets/Colors.png +0 -0
- package/src/docs/assets/DropinBanner.png +0 -0
- package/src/docs/assets/ShapeStyles.png +0 -0
- package/src/docs/assets/Spacing.png +0 -0
- package/src/docs/assets/Typography.png +0 -0
- package/src/docs/cli-usage.mdx +181 -0
- package/src/docs/components/overview.mdx +124 -0
- package/src/docs/quick-start.mdx +245 -0
- package/src/docs/slots.mdx +211 -0
- package/src/docs/welcome.mdx +52 -0
- package/src/i18n/en_US.json +146 -0
- package/src/i18n/index.ts +17 -0
- package/src/icons/Add.svg +9 -0
- package/src/icons/AddressBook.svg +3 -0
- package/src/icons/Bulk.svg +24 -0
- package/src/icons/Burger.svg +5 -0
- package/src/icons/Card.svg +7 -0
- package/src/icons/Cart.svg +11 -0
- package/src/icons/Check.svg +8 -0
- package/src/icons/CheckWithCircle.svg +4 -0
- package/src/icons/ChevronDown.svg +3 -0
- package/src/icons/ChevronRight.svg +8 -0
- package/src/icons/ChevronUp.svg +3 -0
- package/src/icons/Close.svg +4 -0
- package/src/icons/Coupon.svg +3 -0
- package/src/icons/Date.svg +4 -0
- package/src/icons/Delivery.svg +11 -0
- package/src/icons/EmptyBox.svg +3 -0
- package/src/icons/Eye.svg +3 -0
- package/src/icons/EyeClose.svg +3 -0
- package/src/icons/Gift.svg +3 -0
- package/src/icons/GiftCard.svg +3 -0
- package/src/icons/Heart.svg +3 -0
- package/src/icons/HeartFilled.svg +3 -0
- package/src/icons/InfoFilled.svg +3 -0
- package/src/icons/Locker.svg +11 -0
- package/src/icons/Minus.svg +3 -0
- package/src/icons/Order.svg +6 -0
- package/src/icons/OrderError.svg +15 -0
- package/src/icons/OrderSuccess.svg +15 -0
- package/src/icons/PaymentError.svg +16 -0
- package/src/icons/Placeholder.svg +3 -0
- package/src/icons/PlaceholderFilled.svg +4 -0
- package/src/icons/Search.svg +9 -0
- package/src/icons/SearchFilled.svg +10 -0
- package/src/icons/Sort.svg +12 -0
- package/src/icons/Star.svg +8 -0
- package/src/icons/Trash.svg +7 -0
- package/src/icons/User.svg +5 -0
- package/src/icons/View.svg +14 -0
- package/src/icons/Wallet.svg +6 -0
- package/src/icons/Warning.svg +12 -0
- package/src/icons/WarningFilled.svg +3 -0
- package/src/icons/WarningWithCircle.svg +4 -0
- package/src/icons/index.ts +42 -0
- package/src/lib/classes.ts +25 -0
- package/src/lib/config.ts +15 -0
- package/src/lib/debounce.ts +7 -0
- package/src/lib/deepmerge.ts +36 -0
- package/src/lib/deviceUtils.ts +7 -0
- package/src/lib/form-values.ts +22 -0
- package/src/lib/i18n.ts +9 -0
- package/src/lib/image-params-keymap.ts +25 -0
- package/src/lib/index.ts +15 -0
- package/src/lib/initializer.ts +122 -0
- package/src/lib/is-number.ts +3 -0
- package/src/lib/render.tsx +129 -0
- package/src/lib/resolve-image.ts +77 -0
- package/src/lib/signals.ts +2 -0
- package/src/lib/slot.tsx +425 -0
- package/src/lib/tests.tsx +38 -0
- package/src/lib/types.ts +7 -0
- package/src/lib/vcomponent.tsx +47 -0
- package/static/assets/images/Card.png +0 -0
- package/static/assets/images/example.jpg +0 -0
- package/static/assets/images/index.ts +2 -0
- package/static/dropin.png +0 -0
- package/static/favicon.svg +14 -0
- package/storybook-stories.js +12 -0
- package/tests/__mocks__/browserMocks.ts +19 -0
- package/tests/__mocks__/fileMocks.ts +3 -0
- package/tests/__mocks__/styleMock.ts +0 -0
- package/types/icons.d.ts +9 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@import './fonts.css';
|
|
2
|
+
|
|
3
|
+
.sidebar-item,
|
|
4
|
+
button.sidebar-item,
|
|
5
|
+
#storybook-explorer-tree,
|
|
6
|
+
#storybook-explorer-tree:first-child,
|
|
7
|
+
.sidebar-subheading,
|
|
8
|
+
.sidebar-subheading button,
|
|
9
|
+
#storybook-explorer-tree a {
|
|
10
|
+
font-family: adobe-clean;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sidebar-item {
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.sidebar-item[data-selected='true'],
|
|
19
|
+
.sidebar-item:hover {
|
|
20
|
+
background: #ebebeb !important;
|
|
21
|
+
color: #222222 !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sidebar-item svg,
|
|
25
|
+
#storybook-explorer-tree a.sidebar-subheading svg {
|
|
26
|
+
color: #222222 !important;
|
|
27
|
+
display: inline-block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
button.sidebar-item {
|
|
31
|
+
background: inherit !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
button.sidebar-item svg,
|
|
35
|
+
#storybook-explorer-tree a svg {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#storybook-explorer-tree,
|
|
40
|
+
#storybook-explorer-tree:first-child {
|
|
41
|
+
width: 80% !important;
|
|
42
|
+
margin: auto !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sidebar-subheading {
|
|
46
|
+
letter-spacing: normal !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sidebar-subheading button {
|
|
50
|
+
color: #000000;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
margin-left: -21px;
|
|
54
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@import './fonts.css';
|
|
2
|
+
|
|
3
|
+
.sbdocs .sbdocs-content {
|
|
4
|
+
font: normal normal 400 16px/24px adobe-clean, sans-serif;
|
|
5
|
+
max-width: 1200px !important;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sbdocs-content h1 + p:not(.dropin-design h1 + p) {
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
margin: 0 0 32px 0;
|
|
12
|
+
color: #6d6d6d;
|
|
13
|
+
font-size: 1.3rem;
|
|
14
|
+
line-height: 1.8rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sbdocs.sbdocs-content strong:not(.dropin-design strong) {
|
|
18
|
+
color: #222222;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sbdocs-content h3 + p:not(.dropin-design h3 + p) {
|
|
22
|
+
margin: 0 0 1.25rem 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.sbdocs-content h1:not(.dropin-design h1) {
|
|
26
|
+
margin: 0 0 1.25rem 0;
|
|
27
|
+
color: #222222;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sbdocs-content h2:not(.dropin-design h2) {
|
|
31
|
+
margin: 2rem 0 0.75rem 0;
|
|
32
|
+
line-height: 1;
|
|
33
|
+
border-bottom: 1px solid #d6d6d6;
|
|
34
|
+
padding-bottom: 8px;
|
|
35
|
+
color: #222222;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sbdocs-content h3:not(.dropin-design h3) {
|
|
39
|
+
margin: 2rem 0 0 0;
|
|
40
|
+
line-height: 1;
|
|
41
|
+
padding-bottom: 0.5rem;
|
|
42
|
+
color: #222222;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.docblock-source.sb-unstyled {
|
|
46
|
+
margin: 12px 0 24px 0;
|
|
47
|
+
padding: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.docblock-argstable {
|
|
51
|
+
font-family: adobe-clean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sbdocs-preview {
|
|
55
|
+
margin: 0 0 24px 0;
|
|
56
|
+
border-radius: 0 0 4px 4px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
pre .docblock-source h4 {
|
|
60
|
+
margin: 12px 0 12px 0;
|
|
61
|
+
padding: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sbdocs-a.sbdocs-a {
|
|
65
|
+
color: #0265dc;
|
|
66
|
+
}
|
|
67
|
+
.sbdocs-a.sbdocs-a:hover {
|
|
68
|
+
text-decoration: underline;
|
|
69
|
+
text-decoration-color: #0054b6;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.docblock-source.sb-unstyled {
|
|
73
|
+
margin-top: 0;
|
|
74
|
+
margin-bottom: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
pre.prismjs {
|
|
78
|
+
padding: 8px !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.sb-unstyled pre {
|
|
82
|
+
margin-top: 0;
|
|
83
|
+
margin-bottom: 0;
|
|
84
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { create } from '@storybook/theming';
|
|
2
|
+
|
|
3
|
+
import logo from './logo.svg';
|
|
4
|
+
import './fonts.css';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* For convenience, all available Storybook theme variables are listed below.
|
|
8
|
+
* Just uncomment any you need to add, replacing the type with your value.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export default create({
|
|
12
|
+
base: 'light',
|
|
13
|
+
// colorPrimary: string,
|
|
14
|
+
// colorSecondary: string,
|
|
15
|
+
|
|
16
|
+
// UI
|
|
17
|
+
appBg: '#f8f8f8',
|
|
18
|
+
appBorderRadius: 4,
|
|
19
|
+
// appContentBg: string,
|
|
20
|
+
// appBorderColor: string,
|
|
21
|
+
|
|
22
|
+
// Typography
|
|
23
|
+
fontBase: 'adobe-clean',
|
|
24
|
+
// fontCode: string,
|
|
25
|
+
|
|
26
|
+
// Text colors
|
|
27
|
+
textColor: '#2C2C2C',
|
|
28
|
+
// textInverseColor: string,
|
|
29
|
+
// textMutedColor: string,
|
|
30
|
+
|
|
31
|
+
// Toolbar default and active colors
|
|
32
|
+
barTextColor: '#2C2C2C',
|
|
33
|
+
barBg: '#f8f8f8',
|
|
34
|
+
// barSelectedColor: string,
|
|
35
|
+
|
|
36
|
+
// Form colors
|
|
37
|
+
// buttonBg: string,
|
|
38
|
+
// buttonBorder: string,
|
|
39
|
+
// booleanBg: string,
|
|
40
|
+
// booleanSelectedBg: string,
|
|
41
|
+
// inputBg: string,
|
|
42
|
+
// inputBorder: string,
|
|
43
|
+
// inputTextColor: string,
|
|
44
|
+
// inputBorderRadius: number,
|
|
45
|
+
|
|
46
|
+
brandTitle: 'Elsie SDK',
|
|
47
|
+
brandImage: logo,
|
|
48
|
+
// brandUrl: string,
|
|
49
|
+
// brandTarget: string,
|
|
50
|
+
|
|
51
|
+
// gridCellSize: number,
|
|
52
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "esnext",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"moduleResolution": "nodenext",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"noUnusedLocals": true,
|
|
14
|
+
"noUnusedParameters": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig-base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"jsxFactory": "h",
|
|
6
|
+
"jsxImportSource": "preact",
|
|
7
|
+
"jsxFragmentFactory": "Fragment",
|
|
8
|
+
"paths": {
|
|
9
|
+
"react": ["preact/compat"],
|
|
10
|
+
"react-dom/test-utils": ["preact/test-utils"],
|
|
11
|
+
"react-dom": ["preact/compat"],
|
|
12
|
+
"react/jsx-runtime": ["preact/jsx-runtime"]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/config/vite.mjs
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { glob } from 'glob';
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { loadEnv } from 'vite';
|
|
5
|
+
|
|
6
|
+
// Plugins
|
|
7
|
+
import preact from '@preact/preset-vite';
|
|
8
|
+
import { visualizer } from 'rollup-plugin-visualizer';
|
|
9
|
+
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
|
|
10
|
+
import dts from 'vite-plugin-dts';
|
|
11
|
+
import svgr from 'vite-plugin-svgr';
|
|
12
|
+
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
13
|
+
import banner from 'vite-plugin-banner';
|
|
14
|
+
|
|
15
|
+
// Load .env files
|
|
16
|
+
const env = loadEnv('', process.cwd());
|
|
17
|
+
|
|
18
|
+
// Load Elsie Config
|
|
19
|
+
const elsieConfig = await import(
|
|
20
|
+
path.resolve(process.cwd(), './.elsie.js')
|
|
21
|
+
).then((m) => m.default);
|
|
22
|
+
|
|
23
|
+
// Paths
|
|
24
|
+
const paths = {
|
|
25
|
+
api: elsieConfig.api?.root
|
|
26
|
+
? path.resolve(process.cwd(), elsieConfig.api.root)
|
|
27
|
+
: undefined,
|
|
28
|
+
|
|
29
|
+
containers: elsieConfig.containers?.root
|
|
30
|
+
? path.resolve(process.cwd(), elsieConfig.containers.root)
|
|
31
|
+
: undefined,
|
|
32
|
+
|
|
33
|
+
fragments: elsieConfig.api?.fragments
|
|
34
|
+
? path.resolve(
|
|
35
|
+
process.cwd(),
|
|
36
|
+
elsieConfig.api.root,
|
|
37
|
+
elsieConfig.api.fragments
|
|
38
|
+
)
|
|
39
|
+
: undefined,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const isProd = process.env.NODE_ENV !== 'development';
|
|
43
|
+
|
|
44
|
+
const currentYear = new Date().getFullYear();
|
|
45
|
+
const input = {
|
|
46
|
+
// render.js
|
|
47
|
+
render: path.resolve(process.cwd(), './src/render/index.ts'),
|
|
48
|
+
|
|
49
|
+
// containers/*.js
|
|
50
|
+
...(paths.containers
|
|
51
|
+
? glob
|
|
52
|
+
.sync(path.resolve(paths.containers, '**/*/index.ts'))
|
|
53
|
+
.reduce((entries, entry) => {
|
|
54
|
+
const containerRegEx = new RegExp(
|
|
55
|
+
`${paths.containers}/(.*)/index.ts`
|
|
56
|
+
);
|
|
57
|
+
const key = RegExp(containerRegEx).exec(entry)[1];
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
...entries,
|
|
61
|
+
[`containers/${key}`]: entry,
|
|
62
|
+
};
|
|
63
|
+
}, {})
|
|
64
|
+
: {}),
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
if (paths.api) {
|
|
68
|
+
input.api = path.resolve(paths.api, 'index.ts');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (paths.fragments) {
|
|
72
|
+
input.fragments = path.resolve(paths.fragments);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
preview: {
|
|
77
|
+
host: true,
|
|
78
|
+
port: env.PORT ?? 3002,
|
|
79
|
+
strictPort: true,
|
|
80
|
+
cors: {
|
|
81
|
+
origin: '*',
|
|
82
|
+
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
|
|
83
|
+
allowedHeaders: ['X-Requested-With', 'content-type', 'Authorization'],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
resolve: {
|
|
88
|
+
alias: {
|
|
89
|
+
react: 'preact/compat',
|
|
90
|
+
'react-dom/test-utils': 'preact/test-utils',
|
|
91
|
+
'react-dom': 'preact/compat', // Must be below test-utils
|
|
92
|
+
'react/jsx-runtime': 'preact/jsx-runtime',
|
|
93
|
+
'@adobe/elsie/config': '@adobe/elsie/config', // storybook
|
|
94
|
+
'@adobe/elsie': '@adobe/elsie/src',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
build: {
|
|
99
|
+
rollupOptions: {
|
|
100
|
+
preserveEntrySignatures: 'allow-extension',
|
|
101
|
+
|
|
102
|
+
input,
|
|
103
|
+
|
|
104
|
+
output: {
|
|
105
|
+
format: 'esm',
|
|
106
|
+
minifyInternalExports: true,
|
|
107
|
+
entryFileNames: '[name].js',
|
|
108
|
+
assetFileNames: '[name].[ext]',
|
|
109
|
+
chunkFileNames: 'chunks/[name].js',
|
|
110
|
+
|
|
111
|
+
manualChunks: (id) => {
|
|
112
|
+
if (id.includes(paths.fragments)) {
|
|
113
|
+
// Fragments file does not accept chunking
|
|
114
|
+
return 'no-chunk';
|
|
115
|
+
}
|
|
116
|
+
return undefined;
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
paths: {
|
|
120
|
+
// Preact
|
|
121
|
+
preact: '@dropins/tools/preact.js',
|
|
122
|
+
'preact/compat': '@dropins/tools/preact-compat.js',
|
|
123
|
+
'preact/hooks': '@dropins/tools/preact-hooks.js',
|
|
124
|
+
'preact/jsx-runtime': '@dropins/tools/preact-jsx-runtime.js',
|
|
125
|
+
'preact-i18n': '@dropins/tools/i18n.js',
|
|
126
|
+
|
|
127
|
+
// Signals
|
|
128
|
+
'@preact/signals': '@dropins/tools/signals.js',
|
|
129
|
+
|
|
130
|
+
// SDK Tools
|
|
131
|
+
'@adobe/event-bus': '@dropins/tools/event-bus.js',
|
|
132
|
+
'@adobe/fetch-graphql': '@dropins/tools/fetch-graphql.js',
|
|
133
|
+
'@adobe/recaptcha': '@dropins/tools/recaptcha.js',
|
|
134
|
+
|
|
135
|
+
// Lib
|
|
136
|
+
'@adobe/elsie/lib': '@dropins/tools/lib.js',
|
|
137
|
+
|
|
138
|
+
// Components
|
|
139
|
+
'@adobe/elsie/components': '@dropins/tools/components.js',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
external: [
|
|
144
|
+
// Preact
|
|
145
|
+
'preact',
|
|
146
|
+
'preact/compat',
|
|
147
|
+
'preact/hooks',
|
|
148
|
+
'preact/jsx-runtime',
|
|
149
|
+
'preact-i18n',
|
|
150
|
+
|
|
151
|
+
// Signals
|
|
152
|
+
'@preact/signals',
|
|
153
|
+
|
|
154
|
+
// SDK Tools
|
|
155
|
+
'@adobe/event-bus',
|
|
156
|
+
'@adobe/fetch-graphql',
|
|
157
|
+
'@adobe/recaptcha',
|
|
158
|
+
|
|
159
|
+
// Lib
|
|
160
|
+
'@adobe/elsie/lib',
|
|
161
|
+
|
|
162
|
+
// Components
|
|
163
|
+
'@adobe/elsie/components',
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
modulePreload: false,
|
|
168
|
+
commonjsOptions: { transformMixedEsModules: true },
|
|
169
|
+
minify: !!isProd,
|
|
170
|
+
sourcemap: !isProd,
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
optimizeDeps: {},
|
|
174
|
+
|
|
175
|
+
esbuild: {
|
|
176
|
+
jsx: 'automatic',
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
plugins: [
|
|
180
|
+
banner(`Copyright ${currentYear} Adobe\nAll Rights Reserved.`),
|
|
181
|
+
|
|
182
|
+
tsconfigPaths(),
|
|
183
|
+
|
|
184
|
+
cssInjectedByJsPlugin({
|
|
185
|
+
styleId: `${elsieConfig.name}`,
|
|
186
|
+
injectionCodeFormat: 'esm',
|
|
187
|
+
|
|
188
|
+
jsAssetsFilterFunction: function jsAssetsFilterFunction(asset) {
|
|
189
|
+
// include CSS injection code in the render
|
|
190
|
+
return (
|
|
191
|
+
// for dropins
|
|
192
|
+
asset.fileName.endsWith('render.js') ||
|
|
193
|
+
// for storybook
|
|
194
|
+
asset.fileName.startsWith('assets/UIProvider')
|
|
195
|
+
);
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
injectCodeFunction: function injectCodeCustomRunTimeFunction(
|
|
199
|
+
cssCode,
|
|
200
|
+
options
|
|
201
|
+
) {
|
|
202
|
+
try {
|
|
203
|
+
if (typeof document != 'undefined') {
|
|
204
|
+
const elem = document.createElement('style');
|
|
205
|
+
const name = options.styleId;
|
|
206
|
+
|
|
207
|
+
// SET ALL ATTRIBUTES
|
|
208
|
+
for (const attribute in options.attributes) {
|
|
209
|
+
elem.setAttribute(attribute, options.attributes[attribute]);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
elem.setAttribute('data-dropin', name);
|
|
213
|
+
|
|
214
|
+
elem.appendChild(document.createTextNode(cssCode));
|
|
215
|
+
|
|
216
|
+
const sdk = document.querySelector('style[data-dropin="sdk"]');
|
|
217
|
+
|
|
218
|
+
if (sdk) {
|
|
219
|
+
// add after sdk
|
|
220
|
+
sdk.after(elem);
|
|
221
|
+
} else {
|
|
222
|
+
// Inject in head before the first <link> or <style> tag.
|
|
223
|
+
const base = document.querySelector(
|
|
224
|
+
'link[rel="stylesheet"], style'
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
if (base) {
|
|
228
|
+
// add before base
|
|
229
|
+
base.before(elem);
|
|
230
|
+
} else {
|
|
231
|
+
// inject at the top of head
|
|
232
|
+
document.head.append(elem);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
} catch (e) {
|
|
237
|
+
console.error('dropin-styles (injectCodeFunction)', e);
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
}),
|
|
241
|
+
|
|
242
|
+
preact(),
|
|
243
|
+
|
|
244
|
+
svgr({ include: '**/*.svg' }),
|
|
245
|
+
|
|
246
|
+
dts({
|
|
247
|
+
logLevel: 'silent',
|
|
248
|
+
clearPureImport: true,
|
|
249
|
+
insertTypesEntry: true,
|
|
250
|
+
include: [
|
|
251
|
+
path.resolve(process.cwd(), 'src'),
|
|
252
|
+
path.resolve(process.cwd(), 'types'),
|
|
253
|
+
],
|
|
254
|
+
exclude: [
|
|
255
|
+
'**/*.stories.tsx',
|
|
256
|
+
'**/*.test.tsx',
|
|
257
|
+
'**/*.stories.ts',
|
|
258
|
+
'**/*.test.ts',
|
|
259
|
+
'node_modules',
|
|
260
|
+
],
|
|
261
|
+
|
|
262
|
+
beforeWriteFile: (filePath, content) => {
|
|
263
|
+
// Don't include d.t.s maps for prod builds.
|
|
264
|
+
if (isProd && filePath.endsWith('.d.ts.map')) return false;
|
|
265
|
+
|
|
266
|
+
// Normalize elsie imports to point to the correct paths
|
|
267
|
+
content = content.replace(
|
|
268
|
+
/'(.*@adobe\/elsie\/src\/)/g,
|
|
269
|
+
"'@dropins/tools/types/elsie/src/"
|
|
270
|
+
);
|
|
271
|
+
|
|
272
|
+
content = content.replace(
|
|
273
|
+
/'(@adobe\/elsie\/icons)'/g,
|
|
274
|
+
"'@dropins/tools/types/elsie/src/icons'"
|
|
275
|
+
);
|
|
276
|
+
|
|
277
|
+
return { filePath, content };
|
|
278
|
+
},
|
|
279
|
+
}),
|
|
280
|
+
|
|
281
|
+
process.env.ANALYZE
|
|
282
|
+
? visualizer({
|
|
283
|
+
title: `${elsieConfig.name} Dropin Bundle Analysis`,
|
|
284
|
+
filename: 'dist/stats.html',
|
|
285
|
+
open: true,
|
|
286
|
+
template: 'treemap',
|
|
287
|
+
})
|
|
288
|
+
: null,
|
|
289
|
+
],
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export function getPathFromModule(module, pathname = '.') {
|
|
293
|
+
const require = createRequire(import.meta.url);
|
|
294
|
+
const pkgJSON = require.resolve(`${module}/package.json`);
|
|
295
|
+
const pkgPath = path.dirname(pkgJSON);
|
|
296
|
+
return path.resolve(pkgPath, pathname);
|
|
297
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
|
+
All Rights Reserved. */
|
|
3
|
+
var xe=Object.defineProperty;var je=(e,t,r)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ie=(e,t,r)=>je(e,typeof t!="symbol"?t+"":t,r);import{g as Ae}from"./image-params-keymap.js";import{jsx as S}from"../preact-jsx-runtime.js";import{l as g,_ as ve,k as q,G as Me,B as se}from"./icons/Add.js";import{signal as ae}from"../signals.js";const Se=e=>e.reduce((r,n)=>{if(!n)return r;if(typeof n=="string"&&(r+=` ${n}`),Array.isArray(n)){const[s,p]=n;s&&p&&(r+=` ${s}`)}return r},"").trim();function $e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ee=function(t){return Ce(t)&&!Ne(t)};function Ce(e){return!!e&&typeof e=="object"}function Ne(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Le(e)}var Pe=typeof Symbol=="function"&&Symbol.for,Te=Pe?Symbol.for("react.element"):60103;function Le(e){return e.$$typeof===Te}function De(e){return Array.isArray(e)?[]:{}}function W(e,t){return t.clone!==!1&&t.isMergeableObject(e)?D(De(e),e,t):e}function Fe(e,t,r){return e.concat(t).map(function(n){return W(n,r)})}function Ue(e,t){if(!t.customMerge)return D;var r=t.customMerge(e);return typeof r=="function"?r:D}function ke(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function le(e){return Object.keys(e).concat(ke(e))}function ye(e,t){try{return t in e}catch{return!1}}function qe(e,t){return ye(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function We(e,t,r){var n={};return r.isMergeableObject(e)&&le(e).forEach(function(s){n[s]=W(e[s],r)}),le(t).forEach(function(s){qe(e,s)||(ye(e,s)&&r.isMergeableObject(t[s])?n[s]=Ue(s,r)(e[s],t[s],r):n[s]=W(t[s],r))}),n}function D(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Fe,r.isMergeableObject=r.isMergeableObject||Ee,r.cloneUnlessOtherwiseSpecified=W;var n=Array.isArray(t),s=Array.isArray(e),p=n===s;return p?n?r.arrayMerge(e,t,r):We(e,t,r):W(t,r)}D.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return D(n,s,r)},{})};var ze=D,Ve=ze;const nt=$e(Ve),it=(e,t)=>{let r;return function(...n){clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}},oe={medium:768,large:1024,xlarge:1366,xxlarge:1920},Ke=(e,t)=>{const[r,n]=e.split("?"),s=new URLSearchParams(n),p=Ae();let _={};return p&&Object.keys(p).length>0&&t?_=Object.entries(t).reduce((c,[y,h])=>{const w=p[y];return w&&(c[w]=h),c},{}):_={auto:"webp",quality:80,crop:!1,fit:"cover",...t},Object.entries(_).forEach(([c,y])=>{y!=null&&s.set(c,String(y))}),`${r}?${s.toString()}`},st=(e,t)=>{if(!e||!(t!=null&&t.width))return;const r=n=>Ke(e,{...n});return Object.entries(oe).map(([,n])=>{const s=t.width*n/oe.xxlarge;return`${r({...t,width:s})} ${n}w`}).join(`,
|
|
4
|
+
`)};var Ze=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,he=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,K=/[\s\n\\/='"\0<>]/,be=/^xlink:?./,Be=/["&<]/;function k(e){if(Be.test(e+="")===!1)return e;for(var t=0,r=0,n="",s="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 60:s="<";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=s,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var ue=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||" "))},ce=function(e,t,r){return String(e).length>40||String(e).indexOf(`
|
|
5
|
+
`)!==-1||String(e).indexOf("<")!==-1},fe={},Ge=/([A-Z])/g;function me(e){var t="";for(var r in e){var n=e[r];n!=null&&n!==""&&(t&&(t+=" "),t+=r[0]=="-"?r:fe[r]||(fe[r]=r.replace(Ge,"-$1").toLowerCase()),t=typeof n=="number"&&Ze.test(r)===!1?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function ee(e,t){return Array.isArray(t)?t.reduce(ee,e):t!=null&&t!==!1&&e.push(t),e}function de(){this.__d=!0}function we(e,t){return{__v:e,context:t,props:e.props,setState:de,forceUpdate:de,__d:!0,__h:[]}}function Z(e,t){var r=e.contextType,n=r&&t[r.__c];return r!=null?n?n.props.value:r.__:t}var I=[];function F(e,t,r,n,s,p){if(e==null||typeof e=="boolean")return"";if(typeof e!="object")return typeof e=="function"?"":k(e);var _=r.pretty,c=_&&typeof _=="string"?_:" ";if(Array.isArray(e)){for(var y="",h=0;h<e.length;h++)_&&h>0&&(y+=`
|
|
6
|
+
`),y+=F(e[h],t,r,n,s,p);return y}if(e.constructor!==void 0)return"";var w,f=e.type,o=e.props,x=!1;if(typeof f=="function"){if(x=!0,!r.shallow||!n&&r.renderRootComponent!==!1){if(f===q){var m=[];return ee(m,e.props.children),F(m,t,r,r.shallowHighOrder!==!1,s,p)}var v,i=e.__c=we(e,t);g.__b&&g.__b(e);var P=g.__r;if(f.prototype&&typeof f.prototype.render=="function"){var $=Z(f,t);(i=e.__c=new f(o,$)).__v=e,i._dirty=i.__d=!0,i.props=o,i.state==null&&(i.state={}),i._nextState==null&&i.__s==null&&(i._nextState=i.__s=i.state),i.context=$,f.getDerivedStateFromProps?i.state=Object.assign({},i.state,f.getDerivedStateFromProps(i.props,i.state)):i.componentWillMount&&(i.componentWillMount(),i.state=i._nextState!==i.state?i._nextState:i.__s!==i.state?i.__s:i.state),P&&P(e),v=i.render(i.props,i.state,i.context)}else for(var C=Z(f,t),T=0;i.__d&&T++<25;)i.__d=!1,P&&P(e),v=f.call(e.__c,o,C);return i.getChildContext&&(t=Object.assign({},t,i.getChildContext())),g.diffed&&g.diffed(e),F(v,t,r,r.shallowHighOrder!==!1,s,p)}f=(w=f).displayName||w!==Function&&w.name||function(J){var Q=(Function.prototype.toString.call(J).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!Q){for(var V=-1,R=I.length;R--;)if(I[R]===J){V=R;break}V<0&&(V=I.push(J)-1),Q="UnnamedComponent"+V}return Q}(w)}var j,O,d="<"+f;if(o){var b=Object.keys(o);r&&r.sortAttributes===!0&&b.sort();for(var E=0;E<b.length;E++){var a=b[E],u=o[a];if(a!=="children"){if(!K.test(a)&&(r&&r.allAttributes||a!=="key"&&a!=="ref"&&a!=="__self"&&a!=="__source")){if(a==="defaultValue")a="value";else if(a==="defaultChecked")a="checked";else if(a==="defaultSelected")a="selected";else if(a==="className"){if(o.class!==void 0)continue;a="class"}else s&&be.test(a)&&(a=a.toLowerCase().replace(/^xlink:?/,"xlink:"));if(a==="htmlFor"){if(o.for)continue;a="for"}a==="style"&&u&&typeof u=="object"&&(u=me(u)),a[0]==="a"&&a[1]==="r"&&typeof u=="boolean"&&(u=String(u));var l=r.attributeHook&&r.attributeHook(a,u,t,r,x);if(l||l==="")d+=l;else if(a==="dangerouslySetInnerHTML")O=u&&u.__html;else if(f==="textarea"&&a==="value")j=u;else if((u||u===0||u==="")&&typeof u!="function"){if(!(u!==!0&&u!==""||(u=a,r&&r.xml))){d=d+" "+a;continue}if(a==="value"){if(f==="select"){p=u;continue}f==="option"&&p==u&&o.selected===void 0&&(d+=" selected")}d=d+" "+a+'="'+k(u)+'"'}}}else j=u}}if(_){var A=d.replace(/\n\s*/," ");A===d||~A.indexOf(`
|
|
7
|
+
`)?_&&~d.indexOf(`
|
|
8
|
+
`)&&(d+=`
|
|
9
|
+
`):d=A}if(d+=">",K.test(f))throw new Error(f+" is not a valid HTML tag name in "+d);var L,Oe=he.test(f)||r.voidElements&&r.voidElements.test(f),M=[];if(O)_&&ce(O)&&(O=`
|
|
10
|
+
`+c+ue(O,c)),d+=O;else if(j!=null&&ee(L=[],j).length){for(var B=_&&~d.indexOf(`
|
|
11
|
+
`),re=!1,G=0;G<L.length;G++){var X=L[G];if(X!=null&&X!==!1){var N=F(X,t,r,!0,f==="svg"||f!=="foreignObject"&&s,p);if(_&&!B&&ce(N)&&(B=!0),N)if(_){var ne=N.length>0&&N[0]!="<";re&&ne?M[M.length-1]+=N:M.push(N),re=ne}else M.push(N)}}if(_&&B)for(var Y=M.length;Y--;)M[Y]=`
|
|
12
|
+
`+c+ue(M[Y],c)}if(M.length||O)d+=M.join("");else if(r&&r.xml)return d.substring(0,d.length-1)+" />";return!Oe||L||O?(_&&~d.indexOf(`
|
|
13
|
+
`)&&(d+=`
|
|
14
|
+
`),d=d+"</"+f+">"):d=d.replace(/>$/," />"),d}var Xe={shallow:!0};z.render=z;var Ye=function(e,t){return z(e,t,Xe)},pe=[];function z(e,t,r){t=t||{};var n=g.__s;g.__s=!0;var s,p=ve(q,null);return p.__k=[e],s=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?F(e,t,r):U(e,t,!1,void 0,p),g.__c&&g.__c(e,pe),g.__s=n,pe.length=0,s}function H(e){return e==null||typeof e=="boolean"?null:typeof e=="string"||typeof e=="number"||typeof e=="bigint"?ve(null,null,e):e}function Je(e,t){return e==="className"?"class":e==="htmlFor"?"for":e==="defaultValue"?"value":e==="defaultChecked"?"checked":e==="defaultSelected"?"selected":t&&be.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function Qe(e,t){return e==="style"&&t!=null&&typeof t=="object"?me(t):e[0]==="a"&&e[1]==="r"&&typeof t=="boolean"?String(t):t}var _e=Array.isArray,ge=Object.assign;function U(e,t,r,n,s){if(e==null||e===!0||e===!1||e==="")return"";if(typeof e!="object")return typeof e=="function"?"":k(e);if(_e(e)){var p="";s.__k=e;for(var _=0;_<e.length;_++)p+=U(e[_],t,r,n,s),e[_]=H(e[_]);return p}if(e.constructor!==void 0)return"";e.__=s,g.__b&&g.__b(e);var c=e.type,y=e.props;if(typeof c=="function"){var h;if(c===q)h=y.children;else{h=c.prototype&&typeof c.prototype.render=="function"?function(b,E){var a=b.type,u=Z(a,E),l=new a(b.props,u);b.__c=l,l.__v=b,l.__d=!0,l.props=b.props,l.state==null&&(l.state={}),l.__s==null&&(l.__s=l.state),l.context=u,a.getDerivedStateFromProps?l.state=ge({},l.state,a.getDerivedStateFromProps(l.props,l.state)):l.componentWillMount&&(l.componentWillMount(),l.state=l.__s!==l.state?l.__s:l.state);var A=g.__r;return A&&A(b),l.render(l.props,l.state,l.context)}(e,t):function(b,E){var a,u=we(b,E),l=Z(b.type,E);b.__c=u;for(var A=g.__r,L=0;u.__d&&L++<25;)u.__d=!1,A&&A(b),a=b.type.call(u,b.props,l);return a}(e,t);var w=e.__c;w.getChildContext&&(t=ge({},t,w.getChildContext()))}var f=U(h=h!=null&&h.type===q&&h.key==null?h.props.children:h,t,r,n,e);return g.diffed&&g.diffed(e),e.__=void 0,g.unmount&&g.unmount(e),f}var o,x,m="<";if(m+=c,y)for(var v in o=y.children,y){var i=y[v];if(!(v==="key"||v==="ref"||v==="__self"||v==="__source"||v==="children"||v==="className"&&"class"in y||v==="htmlFor"&&"for"in y||K.test(v))){if(i=Qe(v=Je(v,r),i),v==="dangerouslySetInnerHTML")x=i&&i.__html;else if(c==="textarea"&&v==="value")o=i;else if((i||i===0||i==="")&&typeof i!="function"){if(i===!0||i===""){i=v,m=m+" "+v;continue}if(v==="value"){if(c==="select"){n=i;continue}c!=="option"||n!=i||"selected"in y||(m+=" selected")}m=m+" "+v+'="'+k(i)+'"'}}}var P=m;if(m+=">",K.test(c))throw new Error(c+" is not a valid HTML tag name in "+m);var $="",C=!1;if(x)$+=x,C=!0;else if(typeof o=="string")$+=k(o),C=!0;else if(_e(o)){e.__k=o;for(var T=0;T<o.length;T++){var j=o[T];if(o[T]=H(j),j!=null&&j!==!1){var O=U(j,t,c==="svg"||c!=="foreignObject"&&r,n,e);O&&($+=O,C=!0)}}}else if(o!=null&&o!==!1&&o!==!0){e.__k=[H(o)];var d=U(o,t,c==="svg"||c!=="foreignObject"&&r,n,e);d&&($+=d,C=!0)}if(g.diffed&&g.diffed(e),e.__=void 0,g.unmount&&g.unmount(e),C)m+=$;else if(he.test(c))return P+" />";return m+"</"+c+">"}z.shallowRender=Ye;const Re=Me(null);class at{constructor(t){ie(this,"_provider");this._provider=t}render(t,r){return async n=>{var f;if(!t)throw new Error("Component is not defined");if(!n)throw new Error("Root element is not defined");const s=await((f=t.getInitialData)==null?void 0:f.call(t,r))??{},p=ae({...r}),_=ae(new Set),c=this._provider,y=({next:o})=>S(Re.Provider,{value:_,children:S(te,{node:c,...c.props,children:S(t,{...o.value,initialData:s})})});n.innerHTML="";const h=document.createElement("div");n.classList.add("dropin-design"),se(S(y,{next:p}),h);const w={remove:()=>{se(null,h)},setProps:o=>{const x=o(p.peek());p.value=x}};return new Promise(o=>{_.subscribe(x=>{if(x.size===0)return n.classList.add("dropin-design"),n.appendChild(h.firstChild??h),o(w)})})}}unmount(t){var r;if(!t)throw new Error("Root element is not defined");(r=t.firstChild)==null||r.remove()}async toString(t,r,n){var p;if(!t)throw new Error("Component is not defined");const s=await((p=t.getInitialData)==null?void 0:p.call(t,r))??{};return z(S(te,{node:this._provider,...this._provider.props,children:S(t,{...r,initialData:s})}),{},{...n})}}function te({node:e,...t}){return e?Array.isArray(e)?S(q,{children:e.map((r,n)=>S(te,{node:r,className:t.className,...t},n))}):(t.className=Se([e.props.className,t.className]),S(e.type,{ref:e.ref,...e.props,...t},e.key)):null}const lt=e=>typeof e=="number",ot=()=>{const e=navigator.userAgent.toLowerCase(),t=/ipad|iphone|ipod/.test(e),r=e.includes("mac")&&"ontouchend"in document;return t||r};export{at as R,Re as S,te as V,it as a,ot as b,Se as c,nt as d,st as g,lt as i};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
|
+
All Rights Reserved. */
|
|
3
|
+
var I,f,Oe,st,H,ye,Me,ne,ce,_e,re,We,M={},Ie=[],ft=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Y=Array.isArray;function x(e,t){for(var n in t)e[n]=t[n];return e}function Fe(e){var t=e.parentNode;t&&t.removeChild(e)}function k(e,t,n){var _,r,o,i={};for(o in t)o=="key"?_=t[o]:o=="ref"?r=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?I.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return O(e,i,_,r,null)}function O(e,t,n,_,r){var o={type:e,props:t,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Oe,__i:-1,__u:0};return r==null&&f.vnode!=null&&f.vnode(o),o}function pt(){return{current:null}}function E(e){return e.children}function w(e,t){this.props=e,this.context=t}function U(e,t){if(t==null)return e.__?U(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?U(e):null}function Ve(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ve(e)}}function oe(e){(!e.__d&&(e.__d=!0)&&H.push(e)&&!G.__r++||ye!==f.debounceRendering)&&((ye=f.debounceRendering)||Me)(G)}function G(){var e,t,n,_,r,o,i,l;for(H.sort(ne);e=H.shift();)e.__d&&(t=H.length,_=void 0,o=(r=(n=e).__v).__e,i=[],l=[],n.__P&&((_=x({},r)).__v=r.__v+1,f.vnode&&f.vnode(_),se(n.__P,_,r,n.__n,n.__P.namespaceURI,32&r.__u?[o]:null,i,o??U(r),!!(32&r.__u),l),_.__v=r.__v,_.__.__k[_.__i]=_,je(i,_,l),_.__e!=o&&Ve(_)),H.length>t&&H.sort(ne));G.__r=0}function Be(e,t,n,_,r,o,i,l,c,a,p){var u,d,s,g,$,b=_&&_.__k||Ie,v=t.length;for(n.__d=c,dt(n,t,b),c=n.__d,u=0;u<v;u++)(s=n.__k[u])!=null&&typeof s!="boolean"&&typeof s!="function"&&(d=s.__i===-1?M:b[s.__i]||M,s.__i=u,se(e,s,d,r,o,i,l,c,a,p),g=s.__e,s.ref&&d.ref!=s.ref&&(d.ref&&fe(d.ref,null,s),p.push(s.ref,s.__c||g,s)),$==null&&g!=null&&($=g),65536&s.__u||d.__k===s.__k?(c&&typeof s.type=="string"&&!e.contains(c)&&(c=U(d)),c=ze(s,c,e)):typeof s.type=="function"&&s.__d!==void 0?c=s.__d:g&&(c=g.nextSibling),s.__d=void 0,s.__u&=-196609);n.__d=c,n.__e=$}function dt(e,t,n){var _,r,o,i,l,c=t.length,a=n.length,p=a,u=0;for(e.__k=[],_=0;_<c;_++)i=_+u,(r=e.__k[_]=(r=t[_])==null||typeof r=="boolean"||typeof r=="function"?null:typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?O(null,r,null,null,null):Y(r)?O(E,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?O(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,l=ht(r,n,i,p),r.__i=l,o=null,l!==-1&&(p--,(o=n[l])&&(o.__u|=131072)),o==null||o.__v===null?(l==-1&&u--,typeof r.type!="function"&&(r.__u|=65536)):l!==i&&(l==i-1?u=l-i:l==i+1?u++:l>i?p>c-i?u+=l-i:u--:l<i&&u++,l!==_+u&&(r.__u|=65536))):(o=n[i])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=U(o)),ue(o,o,!1),n[i]=null,p--);if(p)for(_=0;_<a;_++)(o=n[_])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=U(o)),ue(o,o))}function ze(e,t,n){var _,r;if(typeof e.type=="function"){for(_=e.__k,r=0;_&&r<_.length;r++)_[r]&&(_[r].__=e,t=ze(_[r],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function S(e,t){return t=t||[],e==null||typeof e=="boolean"||(Y(e)?e.some(function(n){S(n,t)}):t.push(e)),t}function ht(e,t,n,_){var r=e.key,o=e.type,i=n-1,l=n+1,c=t[n];if(c===null||c&&r==c.key&&o===c.type&&!(131072&c.__u))return n;if(_>(c!=null&&!(131072&c.__u)?1:0))for(;i>=0||l<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&r==c.key&&o===c.type)return i;i--}if(l<t.length){if((c=t[l])&&!(131072&c.__u)&&r==c.key&&o===c.type)return l;l++}}return-1}function ge(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||ft.test(t)?n:n+"px"}function j(e,t,n,_,r){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof _=="string"&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||ge(e.style,t,"");if(n)for(t in n)_&&n[t]===_[t]||ge(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?_?n.u=_.u:(n.u=ce,e.addEventListener(t,o?re:_e,o)):e.removeEventListener(t,o?re:_e,o);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function be(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ce++;else if(t.t<n.u)return;return n(f.event?f.event(t):t)}}}function se(e,t,n,_,r,o,i,l,c,a){var p,u,d,s,g,$,b,v,y,R,N,V,A,me,B,X,C=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[l=t.__e=n.__e]),(p=f.__b)&&p(t);e:if(typeof C=="function")try{if(v=t.props,y="prototype"in C&&C.prototype.render,R=(p=C.contextType)&&_[p.__c],N=p?R?R.props.value:p.__:_,n.__c?b=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new C(v,N):(t.__c=u=new w(v,N),u.constructor=C,u.render=mt),R&&R.sub(u),u.props=v,u.state||(u.state={}),u.context=N,u.__n=_,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&C.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=x({},u.__s)),x(u.__s,C.getDerivedStateFromProps(v,u.__s))),s=u.props,g=u.state,u.__v=t,d)y&&C.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&C.getDerivedStateFromProps==null&&v!==s&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,N),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,N)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(z){z&&(z.__=t)}),V=0;V<u._sb.length;V++)u.__h.push(u._sb[V]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,N),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(s,g,$)})}if(u.context=N,u.props=v,u.__P=e,u.__e=!1,A=f.__r,me=0,y){for(u.state=u.__s,u.__d=!1,A&&A(t),p=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);u._sb=[]}else do u.__d=!1,A&&A(t),p=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++me<25);u.state=u.__s,u.getChildContext!=null&&(_=x(x({},_),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&($=u.getSnapshotBeforeUpdate(s,g)),Be(e,Y(X=p!=null&&p.type===E&&p.key==null?p.props.children:p)?X:[X],t,n,_,r,o,i,l,c,a),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),b&&(u.__E=u.__=null)}catch(z){t.__v=null,c||o!=null?(t.__e=l,t.__u|=c?160:32,o[o.indexOf(l)]=null):(t.__e=n.__e,t.__k=n.__k),f.__e(z,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=vt(n.__e,t,n,_,r,o,i,c,a);(p=f.diffed)&&p(t)}function je(e,t,n){t.__d=void 0;for(var _=0;_<n.length;_++)fe(n[_],n[++_],n[++_]);f.__c&&f.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(o){o.call(r)})}catch(o){f.__e(o,r.__v)}})}function vt(e,t,n,_,r,o,i,l,c){var a,p,u,d,s,g,$,b=n.props,v=t.props,y=t.type;if(y==="svg"?r="http://www.w3.org/2000/svg":y==="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),o!=null){for(a=0;a<o.length;a++)if((s=o[a])&&"setAttribute"in s==!!y&&(y?s.localName===y:s.nodeType===3)){e=s,o[a]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=document.createElementNS(r,y,v.is&&v),o=null,l=!1}if(y===null)b===v||l&&e.data===v||(e.data=v);else{if(o=o&&I.call(e.childNodes),b=n.props||M,!l&&o!=null)for(b={},a=0;a<e.attributes.length;a++)b[(s=e.attributes[a]).name]=s.value;for(a in b)if(s=b[a],a!="children"){if(a=="dangerouslySetInnerHTML")u=s;else if(a!=="key"&&!(a in v)){if(a=="value"&&"defaultValue"in v||a=="checked"&&"defaultChecked"in v)continue;j(e,a,null,s,r)}}for(a in v)s=v[a],a=="children"?d=s:a=="dangerouslySetInnerHTML"?p=s:a=="value"?g=s:a=="checked"?$=s:a==="key"||l&&typeof s!="function"||b[a]===s||j(e,a,s,b[a],r);if(p)l||u&&(p.__html===u.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(u&&(e.innerHTML=""),Be(e,Y(d)?d:[d],t,n,_,y==="foreignObject"?"http://www.w3.org/1999/xhtml":r,o,i,o?o[0]:n.__k&&U(n,0),l,c),o!=null)for(a=o.length;a--;)o[a]!=null&&Fe(o[a]);l||(a="value",g!==void 0&&(g!==e[a]||y==="progress"&&!g||y==="option"&&g!==b[a])&&j(e,a,g,b[a],r),a="checked",$!==void 0&&$!==e[a]&&j(e,a,$,b[a],r))}return e}function fe(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(_){f.__e(_,n)}}function ue(e,t,n){var _,r;if(f.unmount&&f.unmount(e),(_=e.ref)&&(_.current&&_.current!==e.__e||fe(_,null,t)),(_=e.__c)!=null){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(o){f.__e(o,t)}_.base=_.__P=null}if(_=e.__k)for(r=0;r<_.length;r++)_[r]&&ue(_[r],t,n||typeof e.type!="function");n||e.__e==null||Fe(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function mt(e,t,n){return this.constructor(e,n)}function W(e,t,n){var _,r,o,i;f.__&&f.__(e,t),r=(_=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],se(t,e=(!_&&n||t).__k=k(E,null,[e]),r||M,M,t.namespaceURI,!_&&n?[n]:r?null:t.firstChild?I.call(t.childNodes):null,o,!_&&n?n:r?r.__e:t.firstChild,_,i),je(o,e,i)}function qe(e,t){W(e,t,qe)}function yt(e,t,n){var _,r,o,i,l=x({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?_=t[o]:o=="ref"?r=t[o]:l[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(l.children=arguments.length>3?I.call(arguments,2):n),O(e.type,l,_||e.key,r||e.ref,null)}function gt(e,t){var n={__c:t="__cC"+We++,__:e,Consumer:function(_,r){return _.children(r)},Provider:function(_){var r,o;return this.getChildContext||(r=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&r.some(function(l){l.__e=!0,oe(l)})},this.sub=function(i){r.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.splice(r.indexOf(i),1),l&&l.call(i)}}),_.children}};return n.Provider.__=n.Consumer.contextType=n}I=Ie.slice,f={__e:function(e,t,n,_){for(var r,o,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=null&&(r.setState(o.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,_||{}),i=r.__d),i)return r.__E=r}catch(l){e=l}throw e}},Oe=0,st=function(e){return e!=null&&e.constructor==null},w.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=x({},this.state),typeof e=="function"&&(e=e(x({},n),this.props)),e&&x(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),oe(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oe(this))},w.prototype.render=E,H=[],Me=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ne=function(e,t){return e.__v.__b-t.__v.__b},G.__r=0,ce=0,_e=be(!1),re=be(!0),We=0;var P,h,ee,ke,D=0,Ze=[],m=f,$e=m.__b,Ce=m.__r,we=m.diffed,xe=m.__c,Se=m.unmount,Ee=m.__;function T(e,t){m.__h&&m.__h(h,e,D||t),D=0;var n=h.__H||(h.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function J(e){return D=1,pe(et,e)}function pe(e,t,n){var _=T(P++,2);if(_.t=e,!_.__c&&(_.__=[n?n(t):et(void 0,t),function(l){var c=_.__N?_.__N[0]:_.__[0],a=_.t(c,l);c!==a&&(_.__N=[a,_.__[1]],_.__c.setState({}))}],_.__c=h,!h.u)){var r=function(l,c,a){if(!_.__c.__H)return!0;var p=_.__c.__H.__.filter(function(d){return!!d.__c});if(p.every(function(d){return!d.__N}))return!o||o.call(this,l,c,a);var u=!1;return p.forEach(function(d){if(d.__N){var s=d.__[0];d.__=d.__N,d.__N=void 0,s!==d.__[0]&&(u=!0)}}),!(!u&&_.__c.props===l)&&(!o||o.call(this,l,c,a))};h.u=!0;var o=h.shouldComponentUpdate,i=h.componentWillUpdate;h.componentWillUpdate=function(l,c,a){if(this.__e){var p=o;o=void 0,r(l,c,a),o=p}i&&i.call(this,l,c,a)},h.shouldComponentUpdate=r}return _.__N||_.__}function de(e,t){var n=T(P++,3);!m.__s&&he(n.__H,t)&&(n.__=e,n.i=t,h.__H.__h.push(n))}function F(e,t){var n=T(P++,4);!m.__s&&he(n.__H,t)&&(n.__=e,n.i=t,h.__h.push(n))}function Ge(e){return D=5,K(function(){return{current:e}},[])}function Ye(e,t,n){D=6,F(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function K(e,t){var n=T(P++,7);return he(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Je(e,t){return D=8,K(function(){return e},t)}function Ke(e){var t=h.context[e.__c],n=T(P++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(h)),t.props.value):e.__}function Qe(e,t){m.useDebugValue&&m.useDebugValue(t?t(e):e)}function en(e){var t=T(P++,10),n=J();return t.__=e,h.componentDidCatch||(h.componentDidCatch=function(_,r){t.__&&t.__(_,r),n[1](_)}),[n[0],function(){n[1](void 0)}]}function Xe(){var e=T(P++,11);if(!e.__){for(var t=h.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function bt(){for(var e;e=Ze.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(q),e.__H.__h.forEach(ie),e.__H.__h=[]}catch(t){e.__H.__h=[],m.__e(t,e.__v)}}m.__b=function(e){h=null,$e&&$e(e)},m.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ee&&Ee(e,t)},m.__r=function(e){Ce&&Ce(e),P=0;var t=(h=e.__c).__H;t&&(ee===h?(t.__h=[],h.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(q),t.__h.forEach(ie),t.__h=[],P=0)),ee=h},m.diffed=function(e){we&&we(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ze.push(t)!==1&&ke===m.requestAnimationFrame||((ke=m.requestAnimationFrame)||kt)(bt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ee=h=null},m.__c=function(e,t){t.some(function(n){try{n.__h.forEach(q),n.__h=n.__h.filter(function(_){return!_.__||ie(_)})}catch(_){t.some(function(r){r.__h&&(r.__h=[])}),t=[],m.__e(_,n.__v)}}),xe&&xe(e,t)},m.unmount=function(e){Se&&Se(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{q(_)}catch(r){t=r}}),n.__H=void 0,t&&m.__e(t,n.__v))};var Pe=typeof requestAnimationFrame=="function";function kt(e){var t,n=function(){clearTimeout(_),Pe&&cancelAnimationFrame(t),setTimeout(e)},_=setTimeout(n,100);Pe&&(t=requestAnimationFrame(n))}function q(e){var t=h,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),h=t}function ie(e){var t=h;e.__c=e.__(),h=t}function he(e,t){return!e||e.length!==t.length||t.some(function(n,_){return n!==e[_]})}function et(e,t){return typeof t=="function"?t(e):t}function tt(e,t){for(var n in t)e[n]=t[n];return e}function le(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var _ in t)if(_!=="__source"&&e[_]!==t[_])return!0;return!1}function ae(e,t){this.props=e,this.context=t}function $t(e,t){function n(r){var o=this.props.ref,i=o==r.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,r)||!i:le(this.props,r)}function _(r){return this.shouldComponentUpdate=n,k(e,r)}return _.displayName="Memo("+(e.displayName||e.name)+")",_.prototype.isReactComponent=!0,_.__f=!0,_}(ae.prototype=new w).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,t){return le(this.props,e)||le(this.state,t)};var Ne=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ne&&Ne(e)};var Ct=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function wt(e){function t(n){var _=tt({},n);return delete _.ref,e(_,n.ref||null)}return t.$$typeof=Ct,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var He=function(e,t){return e==null?null:S(S(e).map(t))},xt={map:He,forEach:He,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:S},St=f.__e;f.__e=function(e,t,n,_){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}St(e,t,n,_)};var Ue=f.unmount;function nt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(_){typeof _.__c=="function"&&_.__c()}),e.__c.__H=null),(e=tt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(_){return nt(_,t,n)})),e}function _t(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(_){return _t(_,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Z(){this.__u=0,this.t=null,this.__b=null}function rt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Et(e){var t,n,_;function r(o){if(t||(t=e()).then(function(i){n=i.default||i},function(i){_=i}),_)throw _;if(!n)throw t;return k(n,o)}return r.displayName="Lazy",r.__f=!0,r}function L(){this.u=null,this.o=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ue&&Ue(e)},(Z.prototype=new w).__c=function(e,t){var n=t.__c,_=this;_.t==null&&(_.t=[]),_.t.push(n);var r=rt(_.__v),o=!1,i=function(){o||(o=!0,n.__R=null,r?r(l):l())};n.__R=i;var l=function(){if(!--_.__u){if(_.state.__a){var c=_.state.__a;_.__v.__k[0]=_t(c,c.__c.__P,c.__c.__O)}var a;for(_.setState({__a:_.__b=null});a=_.t.pop();)a.forceUpdate()}};_.__u++||32&t.__u||_.setState({__a:_.__b=_.__v.__k[0]}),e.then(i,i)},Z.prototype.componentWillUnmount=function(){this.t=[]},Z.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),_=this.__v.__k[0].__c;this.__v.__k[0]=nt(this.__b,n,_.__O=_.__P)}this.__b=null}var r=t.__a&&k(E,null,e.fallback);return r&&(r.__u&=-33),[k(E,null,t.__a?null:e.children),r]};var Te=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Pt(e){return this.getChildContext=function(){return e.context},e.children}function Nt(e){var t=this,n=e.i;t.componentWillUnmount=function(){W(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(_){this.childNodes.push(_),t.i.appendChild(_)},insertBefore:function(_,r){this.childNodes.push(_),t.i.appendChild(_)},removeChild:function(_){this.childNodes.splice(this.childNodes.indexOf(_)>>>1,1),t.i.removeChild(_)}}),W(k(Pt,{context:t.context},e.__v),t.l)}function Ht(e,t){var n=k(Nt,{__v:e,i:t});return n.containerInfo=t,n}(L.prototype=new w).__a=function(e){var t=this,n=rt(t.__v),_=t.o.get(e);return _[0]++,function(r){var o=function(){t.props.revealOrder?(_.push(r),Te(t,e,_)):r()};n?n(o):o()}},L.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},L.prototype.componentDidUpdate=L.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Te(e,n,t)})};var ot=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ut=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Dt=/[A-Z0-9]/g,Rt=typeof document<"u",At=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Lt(e,t,n){return t.__k==null&&(t.textContent=""),W(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ot(e,t,n){return qe(e,t),typeof n=="function"&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var De=f.event;function Mt(){}function Wt(){return this.cancelBubble}function It(){return this.defaultPrevented}f.event=function(e){return De&&(e=De(e)),e.persist=Mt,e.isPropagationStopped=Wt,e.isDefaultPrevented=It,e.nativeEvent=e};var ve,Ft={enumerable:!1,configurable:!0,get:function(){return this.class}},Re=f.vnode;f.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,_=t.type,r={};for(var o in n){var i=n[o];if(!(o==="value"&&"defaultValue"in n&&i==null||Rt&&o==="children"&&_==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&i===!0?i="":l==="translate"&&i==="no"?i=!1:l==="ondoubleclick"?o="ondblclick":l!=="onchange"||_!=="input"&&_!=="textarea"||At(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Tt.test(o)?o=l:_.indexOf("-")===-1&&Ut.test(o)?o=o.replace(Dt,"-$&").toLowerCase():i===null&&(i=void 0):l=o="oninput",l==="oninput"&&r[o=l]&&(o="oninputCapture"),r[o]=i}}_=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),_=="select"&&r.defaultValue!=null&&(r.value=S(n.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",Ft)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=ot,Re&&Re(e)};var Ae=f.__r;f.__r=function(e){Ae&&Ae(e),ve=e.__c};var Le=f.diffed;f.diffed=function(e){Le&&Le(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),ve=null};var Vt={ReactCurrentDispatcher:{current:{readContext:function(e){return ve.__n[e.__c].props.value},useCallback:Je,useContext:Ke,useDebugValue:Qe,useDeferredValue:it,useEffect:de,useId:Xe,useImperativeHandle:Ye,useInsertionEffect:at,useLayoutEffect:F,useMemo:K,useReducer:pe,useRef:Ge,useState:J,useSyncExternalStore:ct,useTransition:lt}}},tn="17.0.2";function Bt(e){return k.bind(null,e)}function Q(e){return!!e&&e.$$typeof===ot}function zt(e){return Q(e)&&e.type===E}function jt(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function qt(e){return Q(e)?yt.apply(null,arguments):e}function Zt(e){return!!e.__k&&(W(null,e),!0)}function Gt(e){return e&&(e.base||e.nodeType===1&&e)||null}var Yt=function(e,t){return e(t)},Jt=function(e,t){return e(t)},Kt=E;function ut(e){e()}function it(e){return e}function lt(){return[!1,ut]}var at=F,Qt=Q;function ct(e,t){var n=t(),_=J({h:{__:n,v:t}}),r=_[0].h,o=_[1];return F(function(){r.__=n,r.v=t,te(r)&&o({h:r})},[e,n,t]),de(function(){return te(r)&&o({h:r}),e(function(){te(r)&&o({h:r})})},[e]),n}function te(e){var t,n,_=e.v,r=e.__;try{var o=_();return!((t=r)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var nn={useState:J,useId:Xe,useReducer:pe,useEffect:de,useLayoutEffect:F,useInsertionEffect:at,useTransition:lt,useDeferredValue:it,useSyncExternalStore:ct,startTransition:ut,useRef:Ge,useImperativeHandle:Ye,useMemo:K,useCallback:Je,useContext:Ke,useDebugValue:Qe,version:"17.0.2",Children:xt,render:Lt,hydrate:Ot,unmountComponentAtNode:Zt,createPortal:Ht,createElement:k,createContext:gt,createFactory:Bt,cloneElement:qt,createRef:pt,Fragment:E,isValidElement:Q,isElement:Qt,isFragment:zt,isMemo:jt,findDOMNode:Gt,Component:w,PureComponent:ae,memo:$t,forwardRef:wt,flushSync:Jt,unstable_batchedUpdates:Yt,StrictMode:Kt,Suspense:Z,SuspenseList:L,lazy:Et,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vt};const Xt=e=>k("svg",{id:"Icon_Add_Base","data-name":"Icon \\u2013 Add \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},k("g",{id:"Large"},k("rect",{id:"Placement_area","data-name":"Placement area",width:24,height:24,fill:"#fff",opacity:0}),k("g",{id:"Add_icon","data-name":"Add icon",transform:"translate(9.734 9.737)"},k("line",{vectorEffect:"non-scaling-stroke",id:"Line_579","data-name":"Line 579",y2:12.7,transform:"translate(2.216 -4.087)",fill:"none",stroke:"currentColor"}),k("line",{vectorEffect:"non-scaling-stroke",id:"Line_580","data-name":"Line 580",x2:12.7,transform:"translate(-4.079 2.263)",fill:"none",stroke:"currentColor"})))),_n=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"}));export{_n as $,Ge as A,W as B,ae as C,qe as D,yt as E,Et as F,gt as G,S as H,Q as I,$t as J,Lt as K,Z as L,ut as M,xt as N,Zt as O,Qe as P,Yt as Q,nn as R,Xt as S,K as T,L as U,it as V,at as W,ct as X,lt as Y,tn as Z,k as _,en as a,w as b,Ye as c,F as d,Kt as e,qt as f,Xe as g,J as h,Bt as i,Ht as j,E as k,f as l,pt as m,Gt as n,Vt as o,pe as p,Je as q,Jt as r,wt as s,st as t,Ot as u,Qt as v,zt as w,Ke as x,de as y,jt as z};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
|
+
All Rights Reserved. */
|
|
3
|
+
import{_ as C}from"./Add.js";const Z=L=>C("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...L},C("path",{d:"M3.375 7.38672C3.09886 7.38672 2.875 7.61058 2.875 7.88672C2.875 8.16286 3.09886 8.38672 3.375 8.38672V7.38672ZM5.88409 8.38672C6.16023 8.38672 6.38409 8.16286 6.38409 7.88672C6.38409 7.61058 6.16023 7.38672 5.88409 7.38672V8.38672ZM3.375 11.1836C3.09886 11.1836 2.875 11.4075 2.875 11.6836C2.875 11.9597 3.09886 12.1836 3.375 12.1836V11.1836ZM5.88409 12.1836C6.16023 12.1836 6.38409 11.9597 6.38409 11.6836C6.38409 11.4075 6.16023 11.1836 5.88409 11.1836V12.1836ZM3.375 15.6133C3.09886 15.6133 2.875 15.8371 2.875 16.1133C2.875 16.3894 3.09886 16.6133 3.375 16.6133V15.6133ZM5.88409 16.6133C6.16023 16.6133 6.38409 16.3894 6.38409 16.1133C6.38409 15.8371 6.16023 15.6133 5.88409 15.6133V16.6133ZM8.52059 16.4182C8.51422 16.6942 8.73286 16.9232 9.00893 16.9296C9.285 16.9359 9.51396 16.7173 9.52032 16.4412L8.52059 16.4182ZM9.19302 14.8261L8.70612 14.7124C8.70434 14.72 8.70274 14.7277 8.70132 14.7354L9.19302 14.8261ZM11.2762 13.3887L11.4404 13.8611L11.4499 13.8576L11.2762 13.3887ZM12.3195 13.1013C12.4035 12.8382 12.2583 12.5569 11.9953 12.4729C11.7322 12.3889 11.4509 12.5341 11.3669 12.7971L12.3195 13.1013ZM15.7342 16.4412C15.7406 16.7173 15.9695 16.9359 16.2456 16.9296C16.5217 16.9232 16.7403 16.6942 16.734 16.4182L15.7342 16.4412ZM16.0615 14.8261L16.5532 14.7354C16.5518 14.7277 16.5502 14.72 16.5484 14.7124L16.0615 14.8261ZM13.9784 13.3887L13.8046 13.8577L13.8142 13.861L13.9784 13.3887ZM13.8877 12.7971C13.8037 12.5341 13.5223 12.3889 13.2593 12.4729C12.9962 12.5569 12.8511 12.8382 12.9351 13.1013L13.8877 12.7971ZM10.9023 10.418L11.4023 10.418V10.418H10.9023ZM11.2309 8.60993L11.6861 8.81678L11.6861 8.81678L11.2309 8.60993ZM12.0518 12.7684L11.7218 13.1441L11.7682 13.1848L11.823 13.213L12.0518 12.7684ZM13.202 12.7684L13.4308 13.213L13.4787 13.1884L13.5203 13.1541L13.202 12.7684ZM3.375 8.38672H5.88409V7.38672H3.375V8.38672ZM3.375 12.1836H5.88409V11.1836H3.375V12.1836ZM3.375 16.6133H5.88409V15.6133H3.375V16.6133ZM6.41058 2.375H18.844V1.375H6.41058V2.375ZM18.844 2.375C19.4866 2.375 20.125 2.99614 20.125 3.9225H21.125C21.125 2.57636 20.1627 1.375 18.844 1.375V2.375ZM20.125 3.9225V20.0775H21.125V3.9225H20.125ZM20.125 20.0775C20.125 20.9945 19.485 21.625 18.844 21.625V22.625C20.1643 22.625 21.125 21.4105 21.125 20.0775H20.125ZM18.844 21.625H6.41058V22.625H18.844V21.625ZM6.41058 21.625C5.76792 21.625 5.12955 21.0039 5.12955 20.0775H4.12955C4.12955 21.4236 5.09185 22.625 6.41058 22.625V21.625ZM5.12955 20.0775V3.9225H4.12955V20.0775H5.12955ZM5.12955 3.9225C5.12955 3.0055 5.76956 2.375 6.41058 2.375V1.375C5.0902 1.375 4.12955 2.5895 4.12955 3.9225H5.12955ZM9.52032 16.4412C9.53194 15.9373 9.59014 15.4295 9.68473 14.9168L8.70132 14.7354C8.59869 15.2917 8.53362 15.853 8.52059 16.4182L9.52032 16.4412ZM9.67993 14.9397C9.69157 14.8899 9.78099 14.7261 10.1128 14.496C10.4223 14.2813 10.8711 14.0589 11.4404 13.861L11.112 12.9165C10.4856 13.1343 9.94827 13.3931 9.54284 13.6743C9.15974 13.94 8.80542 14.2871 8.70612 14.7124L9.67993 14.9397ZM11.4499 13.8576C11.5852 13.8074 11.7547 13.7102 11.8933 13.6105C11.9656 13.5584 12.0441 13.4954 12.1133 13.4247C12.1723 13.3646 12.2709 13.2534 12.3195 13.1013L11.3669 12.7971C11.3809 12.7532 11.3985 12.7277 11.4022 12.7225C11.407 12.7157 11.4073 12.7164 11.3993 12.7246C11.3827 12.7416 11.3525 12.7676 11.3092 12.7988C11.2674 12.8288 11.222 12.8575 11.1805 12.8808C11.1363 12.9057 11.1089 12.9175 11.1024 12.9199L11.4499 13.8576ZM16.734 16.4182C16.7209 15.853 16.6559 15.2917 16.5532 14.7354L15.5698 14.9168C15.6644 15.4295 15.7226 15.9373 15.7342 16.4412L16.734 16.4182ZM16.5484 14.7124C16.4491 14.2871 16.0948 13.94 15.7117 13.6743C15.3063 13.3931 14.769 13.1343 14.1426 12.9165L13.8142 13.861C14.3834 14.0589 14.8322 14.2813 15.1417 14.496C15.4736 14.7261 15.563 14.8899 15.5746 14.9397L16.5484 14.7124ZM14.1521 12.9199C14.1456 12.9175 14.1183 12.9057 14.074 12.8808C14.0325 12.8575 13.9871 12.8288 13.9453 12.7988C13.9021 12.7676 13.8719 12.7416 13.8552 12.7246C13.8472 12.7164 13.8476 12.7157 13.8524 12.7225C13.856 12.7277 13.8736 12.7532 13.8877 12.7971L12.9351 13.1013C12.9836 13.2534 13.0823 13.3646 13.1412 13.4247C13.2105 13.4954 13.2889 13.5584 13.3612 13.6105C13.4999 13.7102 13.6694 13.8074 13.8046 13.8576L14.1521 12.9199ZM11.4023 10.418C11.4023 9.83385 11.4811 9.26803 11.6861 8.81678L10.7757 8.40309C10.4878 9.03666 10.4023 9.76284 10.4023 10.418H11.4023ZM11.6861 8.81678C11.8053 8.55448 12.0796 8.38672 12.5813 8.38672V7.38672C11.8704 7.38672 11.1213 7.6426 10.7757 8.40309L11.6861 8.81678ZM12.5813 8.38672C13.087 8.38672 13.4614 8.60522 13.5777 8.83539L14.4703 8.38448C14.1169 7.685 13.2884 7.38672 12.5813 7.38672V8.38672ZM13.5777 8.83539C13.7606 9.19738 13.8523 9.72518 13.8523 10.418H14.8523C14.8523 9.66433 14.757 8.95213 14.4703 8.38448L13.5777 8.83539ZM12.5813 12.4492C12.5364 12.4492 12.5158 12.4464 12.5087 12.4451C12.5046 12.4444 12.5042 12.4442 12.5008 12.4428C12.4922 12.4391 12.4782 12.4321 12.438 12.4096C12.4018 12.3893 12.3471 12.358 12.2805 12.3238L11.823 13.213C11.8698 13.2371 11.9055 13.2576 11.9494 13.2821C11.9893 13.3045 12.0449 13.3354 12.1079 13.3623C12.2569 13.426 12.403 13.4492 12.5813 13.4492V12.4492ZM12.3817 12.3927C11.8273 11.9058 11.4022 11.3083 11.4023 10.418L10.4023 10.4179C10.4022 11.6973 11.0412 12.5462 11.7218 13.1441L12.3817 12.3927ZM13.8523 10.418C13.8523 11.3319 13.4575 11.9093 12.8838 12.3828L13.5203 13.1541C14.2611 12.5427 14.8523 11.7035 14.8523 10.418H13.8523ZM12.9733 12.3238C12.7638 12.4316 12.717 12.4492 12.5813 12.4492V13.4492C12.9639 13.4492 13.1869 13.3385 13.4308 13.213L12.9733 12.3238Z",fill:"currentColor"}));export{Z as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
|
+
All Rights Reserved. */
|
|
3
|
+
import{_ as t}from"./Add.js";const n=a=>t("svg",{id:"Icon_Bulk_Base","data-name":"Icon \\u2013 Bulk \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,viewBox:"0 0 24 24",...a},t("defs",null,t("clipPath",{id:"clip-path"},t("rect",{id:"Rectangle_215980","data-name":"Rectangle 215980",width:12,height:12,fill:"none"}))),t("g",{id:"Large"},t("rect",{id:"Placement_area","data-name":"Placement area",width:24,height:24,fill:"#fff",opacity:0}),t("g",{id:"Bulk_icon","data-name":"Bulk icon",transform:"translate(-141 -10)"},t("g",{id:"Rectangle_215979","data-name":"Rectangle 215979",transform:"translate(144 13)",fill:"none",stroke:"currentColor"},t("rect",{width:12,height:12,stroke:"none"}),t("rect",{vectorEffect:"non-scaling-stroke",x:.75,y:.75,width:10.5,height:10.5,fill:"none"})),t("path",{vectorEffect:"non-scaling-stroke",id:"Path_884140","data-name":"Path 884140",d:"M149.76,16v6",transform:"translate(0.24)",fill:"none",stroke:"currentColor"}),t("path",{vectorEffect:"non-scaling-stroke",id:"Path_884141","data-name":"Path 884141",d:"M147.527,18.7h6",transform:"translate(-0.527 0.305)",fill:"none",stroke:"currentColor"}),t("g",{id:"Group_299364","data-name":"Group 299364",transform:"translate(147 16)",clipPath:"url(#clip-path)"},t("path",{vectorEffect:"non-scaling-stroke",id:"Path_884142","data-name":"Path 884142",d:"M11.25.75v10.5H.75",fill:"none",stroke:"currentColor"})),t("g",{id:"Group_299364-2","data-name":"Group 299364",transform:"translate(150 19)",clipPath:"url(#clip-path)"},t("path",{vectorEffect:"non-scaling-stroke",id:"Path_884142-2","data-name":"Path 884142",d:"M11.25.75v10.5H.75",fill:"none",stroke:"currentColor"})))));export{n as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
|
+
All Rights Reserved. */
|
|
3
|
+
import{_ as t}from"./Add.js";const e=o=>t("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},t("path",{vectorEffect:"non-scaling-stroke",d:"M3 12H21",stroke:"currentColor"}),t("path",{vectorEffect:"non-scaling-stroke",d:"M3 6H21",stroke:"currentColor"}),t("path",{vectorEffect:"non-scaling-stroke",d:"M3 18H21",stroke:"currentColor"}));export{e as default};
|