@vtex/faststore 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +95 -0
- package/dist/actions.json +334 -0
- package/dist/catalog.json +6615 -0
- package/dist/client.d.ts +17 -0
- package/dist/client.js +8 -0
- package/dist/components.d.ts +87 -0
- package/dist/components.js +87 -0
- package/dist/content-types.json +684 -0
- package/dist/core/dist/actions/mock-action.d.ts +24 -0
- package/dist/core/dist/actions/mock-action.js +28 -0
- package/dist/core/dist/actions/mock-action.js.map +1 -0
- package/dist/core/dist/actions/registry.d.ts +24 -0
- package/dist/core/dist/actions/registry.js +28 -0
- package/dist/core/dist/actions/registry.js.map +1 -0
- package/dist/core/dist/define-component.d.ts +100 -0
- package/dist/core/dist/define-component.js +8 -0
- package/dist/core/dist/define-component.js.map +1 -0
- package/dist/core/dist/define-content-type.d.ts +95 -0
- package/dist/core/dist/define-content-type.js +283 -0
- package/dist/core/dist/define-content-type.js.map +1 -0
- package/dist/core/dist/index.d.ts +7 -0
- package/dist/core/dist/index.js +5 -0
- package/dist/core/dist/schema/generated/schema.d.ts +28 -0
- package/dist/core/dist/types.d.ts +1 -0
- package/dist/docs/access-code-field.md +100 -0
- package/dist/docs/access-code-sign-in.md +174 -0
- package/dist/docs/account-entry-point.md +155 -0
- package/dist/docs/address-summary.md +50 -0
- package/dist/docs/buy-button.md +162 -0
- package/dist/docs/carousel.md +105 -0
- package/dist/docs/cart-item.md +162 -0
- package/dist/docs/cart-totalizer.md +197 -0
- package/dist/docs/cart.md +495 -0
- package/dist/docs/client-preferences.md +184 -0
- package/dist/docs/client-profile-form.md +192 -0
- package/dist/docs/client-profile.md +117 -0
- package/dist/docs/container.md +97 -0
- package/dist/docs/document-field.md +97 -0
- package/dist/docs/email-field.md +93 -0
- package/dist/docs/email-identification.md +102 -0
- package/dist/docs/footer-copyright.md +112 -0
- package/dist/docs/footer-link-group.md +162 -0
- package/dist/docs/footer-root.md +145 -0
- package/dist/docs/footer-social.md +151 -0
- package/dist/docs/free-shipping-progress.md +87 -0
- package/dist/docs/gallery.md +84 -0
- package/dist/docs/header-root.md +150 -0
- package/dist/docs/identity-edit.md +88 -0
- package/dist/docs/identity-summary.md +106 -0
- package/dist/docs/incentives.md +151 -0
- package/dist/docs/logo.md +135 -0
- package/dist/docs/meter.md +67 -0
- package/dist/docs/navigation-link-list.md +171 -0
- package/dist/docs/navigation-link.md +163 -0
- package/dist/docs/navigation-menu.md +264 -0
- package/dist/docs/payment-methods.md +139 -0
- package/dist/docs/phone-field.md +106 -0
- package/dist/docs/postal-code-field.md +126 -0
- package/dist/docs/pricing.md +499 -0
- package/dist/docs/product-gallery.md +409 -0
- package/dist/docs/product-information.md +295 -0
- package/dist/docs/product-list.md +170 -0
- package/dist/docs/product-quantity.md +88 -0
- package/dist/docs/product-shelf.md +141 -0
- package/dist/docs/promotion.md +109 -0
- package/dist/docs/region.md +225 -0
- package/dist/docs/session.md +123 -0
- package/dist/docs/shipping-address.md +390 -0
- package/dist/docs/shipping-simulator.md +147 -0
- package/dist/docs/sign-in-form.md +117 -0
- package/dist/docs/tabs.md +176 -0
- package/dist/docs/toast.md +124 -0
- package/dist/docs/variant-selector.md +450 -0
- package/dist/graphql/define-subgraph.d.ts +12 -0
- package/dist/graphql/define-subgraph.js +15 -0
- package/dist/graphql/define-subgraph.js.map +1 -0
- package/dist/graphql/gql.d.ts +10 -0
- package/dist/graphql/gql.js +16 -0
- package/dist/graphql/gql.js.map +1 -0
- package/dist/graphql/types.d.ts +88 -0
- package/dist/graphql.d.ts +4 -0
- package/dist/graphql.js +3 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +5 -0
- package/dist/internal/client.d.ts +24 -0
- package/dist/internal/client.js +23 -0
- package/dist/internal/content.d.ts +2 -0
- package/dist/internal/content.js +2 -0
- package/dist/internal/server.d.ts +7 -0
- package/dist/internal/server.js +6 -0
- package/dist/matter/access-code-sign-in/access-code-sign-in.d.ts +111 -0
- package/dist/matter/access-code-sign-in/access-code-sign-in.js +387 -0
- package/dist/matter/access-code-sign-in/access-code-sign-in.js.map +1 -0
- package/dist/matter/account-entry-point/account-entry-point.d.ts +64 -0
- package/dist/matter/account-entry-point/account-entry-point.js +151 -0
- package/dist/matter/account-entry-point/account-entry-point.js.map +1 -0
- package/dist/matter/breadcrumb/breadcrumb.d.ts +40 -0
- package/dist/matter/breadcrumb/breadcrumb.js +155 -0
- package/dist/matter/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/matter/buy-button/buy-button.d.ts +95 -0
- package/dist/matter/buy-button/buy-button.js +259 -0
- package/dist/matter/buy-button/buy-button.js.map +1 -0
- package/dist/matter/cart/cart-namespace.d.ts +48 -0
- package/dist/matter/cart/cart-namespace.js +50 -0
- package/dist/matter/cart/cart-namespace.js.map +1 -0
- package/dist/matter/cart/cart.d.ts +312 -0
- package/dist/matter/cart/cart.js +1034 -0
- package/dist/matter/cart/cart.js.map +1 -0
- package/dist/matter/cart-item/cart-item.d.ts +103 -0
- package/dist/matter/cart-item/cart-item.js +672 -0
- package/dist/matter/cart-item/cart-item.js.map +1 -0
- package/dist/matter/cart-item-compositions/cart-item-compositions.d.ts +49 -0
- package/dist/matter/cart-item-compositions/cart-item-compositions.js +165 -0
- package/dist/matter/cart-item-compositions/cart-item-compositions.js.map +1 -0
- package/dist/matter/cart-item-customizations/cart-item-customizations.d.ts +28 -0
- package/dist/matter/cart-item-customizations/cart-item-customizations.js +73 -0
- package/dist/matter/cart-item-customizations/cart-item-customizations.js.map +1 -0
- package/dist/matter/cart-item-discounts/cart-item-discounts.d.ts +33 -0
- package/dist/matter/cart-item-discounts/cart-item-discounts.js +70 -0
- package/dist/matter/cart-item-discounts/cart-item-discounts.js.map +1 -0
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.d.ts +24 -0
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js +54 -0
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js.map +1 -0
- package/dist/matter/cart-item-variations/cart-item-variations.d.ts +27 -0
- package/dist/matter/cart-item-variations/cart-item-variations.js +69 -0
- package/dist/matter/cart-item-variations/cart-item-variations.js.map +1 -0
- package/dist/matter/cart-totalizer/cart-totalizer.d.ts +78 -0
- package/dist/matter/cart-totalizer/cart-totalizer.js +220 -0
- package/dist/matter/cart-totalizer/cart-totalizer.js.map +1 -0
- package/dist/matter/client-preferences/client-preferences.d.ts +50 -0
- package/dist/matter/client-preferences/client-preferences.js +206 -0
- package/dist/matter/client-preferences/client-preferences.js.map +1 -0
- package/dist/matter/client-profile/client-profile.d.ts +59 -0
- package/dist/matter/client-profile/client-profile.js +185 -0
- package/dist/matter/client-profile/client-profile.js.map +1 -0
- package/dist/matter/client-profile-form/client-profile-form.d.ts +126 -0
- package/dist/matter/client-profile-form/client-profile-form.js +660 -0
- package/dist/matter/client-profile-form/client-profile-form.js.map +1 -0
- package/dist/matter/delivery-options/delivery-options-accordion.d.ts +30 -0
- package/dist/matter/delivery-options/delivery-options-accordion.js +189 -0
- package/dist/matter/delivery-options/delivery-options-accordion.js.map +1 -0
- package/dist/matter/delivery-options/delivery-options-controller.d.ts +49 -0
- package/dist/matter/delivery-options/delivery-options-controller.js +203 -0
- package/dist/matter/delivery-options/delivery-options-controller.js.map +1 -0
- package/dist/matter/delivery-options/delivery-options.d.ts +31 -0
- package/dist/matter/delivery-options/delivery-options.js +103 -0
- package/dist/matter/delivery-options/delivery-options.js.map +1 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.d.ts +9 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.js +76 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.js.map +1 -0
- package/dist/matter/email-identification/email-identification.d.ts +37 -0
- package/dist/matter/email-identification/email-identification.js +111 -0
- package/dist/matter/email-identification/email-identification.js.map +1 -0
- package/dist/matter/free-shipping-progress/free-shipping-progress.d.ts +44 -0
- package/dist/matter/free-shipping-progress/free-shipping-progress.js +170 -0
- package/dist/matter/free-shipping-progress/free-shipping-progress.js.map +1 -0
- package/dist/matter/identity-edit/identity-edit.d.ts +52 -0
- package/dist/matter/identity-edit/identity-edit.js +148 -0
- package/dist/matter/identity-edit/identity-edit.js.map +1 -0
- package/dist/matter/identity-summary/identity-summary.d.ts +128 -0
- package/dist/matter/identity-summary/identity-summary.js +344 -0
- package/dist/matter/identity-summary/identity-summary.js.map +1 -0
- package/dist/matter/pricing/pricing.d.ts +162 -0
- package/dist/matter/pricing/pricing.js +793 -0
- package/dist/matter/pricing/pricing.js.map +1 -0
- package/dist/matter/product-gallery/product-gallery.d.ts +23 -0
- package/dist/matter/product-gallery/product-gallery.js +188 -0
- package/dist/matter/product-gallery/product-gallery.js.map +1 -0
- package/dist/matter/product-information/product-information.d.ts +61 -0
- package/dist/matter/product-information/product-information.js +355 -0
- package/dist/matter/product-information/product-information.js.map +1 -0
- package/dist/matter/product-list/product-list.d.ts +86 -0
- package/dist/matter/product-list/product-list.js +342 -0
- package/dist/matter/product-list/product-list.js.map +1 -0
- package/dist/matter/product-quantity/product-quantity.d.ts +50 -0
- package/dist/matter/product-quantity/product-quantity.js +111 -0
- package/dist/matter/product-quantity/product-quantity.js.map +1 -0
- package/dist/matter/product-shelf/product-shelf.d.ts +125 -0
- package/dist/matter/product-shelf/product-shelf.js +376 -0
- package/dist/matter/product-shelf/product-shelf.js.map +1 -0
- package/dist/matter/region/region.d.ts +211 -0
- package/dist/matter/region/region.js +579 -0
- package/dist/matter/region/region.js.map +1 -0
- package/dist/matter/session/session.d.ts +58 -0
- package/dist/matter/session/session.js +112 -0
- package/dist/matter/session/session.js.map +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +101 -0
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -0
- package/dist/matter/shipping-address/shipping-address.d.ts +284 -0
- package/dist/matter/shipping-address/shipping-address.js +1036 -0
- package/dist/matter/shipping-address/shipping-address.js.map +1 -0
- package/dist/matter/shipping-simulator/shipping-simulator.d.ts +143 -0
- package/dist/matter/shipping-simulator/shipping-simulator.js +644 -0
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -0
- package/dist/matter/sign-in-form/sign-in-form.d.ts +79 -0
- package/dist/matter/sign-in-form/sign-in-form.js +226 -0
- package/dist/matter/sign-in-form/sign-in-form.js.map +1 -0
- package/dist/matter/variant-selector/variant-selector.d.ts +183 -0
- package/dist/matter/variant-selector/variant-selector.js +840 -0
- package/dist/matter/variant-selector/variant-selector.js.map +1 -0
- package/dist/message-locales.json +7 -0
- package/dist/particles/access-code-field/access-code-field.d.ts +33 -0
- package/dist/particles/access-code-field/access-code-field.js +95 -0
- package/dist/particles/access-code-field/access-code-field.js.map +1 -0
- package/dist/particles/accordion/accordion.d.ts +45 -0
- package/dist/particles/accordion/accordion.js +156 -0
- package/dist/particles/accordion/accordion.js.map +1 -0
- package/dist/particles/address-summary/address-summary.d.ts +50 -0
- package/dist/particles/address-summary/address-summary.js +129 -0
- package/dist/particles/address-summary/address-summary.js.map +1 -0
- package/dist/particles/badge/badge.d.ts +10 -0
- package/dist/particles/badge/badge.js +27 -0
- package/dist/particles/badge/badge.js.map +1 -0
- package/dist/particles/button/button.d.ts +18 -0
- package/dist/particles/button/button.js +37 -0
- package/dist/particles/button/button.js.map +1 -0
- package/dist/particles/carousel/carousel.d.ts +60 -0
- package/dist/particles/carousel/carousel.js +335 -0
- package/dist/particles/carousel/carousel.js.map +1 -0
- package/dist/particles/checkbox/checkbox.d.ts +40 -0
- package/dist/particles/checkbox/checkbox.js +82 -0
- package/dist/particles/checkbox/checkbox.js.map +1 -0
- package/dist/particles/container/container.d.ts +20 -0
- package/dist/particles/container/container.js +36 -0
- package/dist/particles/container/container.js.map +1 -0
- package/dist/particles/dialog/dialog.d.ts +54 -0
- package/dist/particles/dialog/dialog.js +192 -0
- package/dist/particles/dialog/dialog.js.map +1 -0
- package/dist/particles/document-field/document-field.d.ts +61 -0
- package/dist/particles/document-field/document-field.js +146 -0
- package/dist/particles/document-field/document-field.js.map +1 -0
- package/dist/particles/drawer/drawer.d.ts +52 -0
- package/dist/particles/drawer/drawer.js +183 -0
- package/dist/particles/drawer/drawer.js.map +1 -0
- package/dist/particles/email-field/email-field.d.ts +37 -0
- package/dist/particles/email-field/email-field.js +106 -0
- package/dist/particles/email-field/email-field.js.map +1 -0
- package/dist/particles/field/field.d.ts +50 -0
- package/dist/particles/field/field.js +133 -0
- package/dist/particles/field/field.js.map +1 -0
- package/dist/particles/fieldset/fieldset.d.ts +16 -0
- package/dist/particles/fieldset/fieldset.js +52 -0
- package/dist/particles/fieldset/fieldset.js.map +1 -0
- package/dist/particles/footer-copyright/footer-copyright.d.ts +32 -0
- package/dist/particles/footer-copyright/footer-copyright.js +50 -0
- package/dist/particles/footer-copyright/footer-copyright.js.map +1 -0
- package/dist/particles/footer-link-group/footer-link-group.d.ts +66 -0
- package/dist/particles/footer-link-group/footer-link-group.js +154 -0
- package/dist/particles/footer-link-group/footer-link-group.js.map +1 -0
- package/dist/particles/footer-root/footer-root.d.ts +21 -0
- package/dist/particles/footer-root/footer-root.js +38 -0
- package/dist/particles/footer-root/footer-root.js.map +1 -0
- package/dist/particles/footer-social/footer-social.d.ts +79 -0
- package/dist/particles/footer-social/footer-social.js +176 -0
- package/dist/particles/footer-social/footer-social.js.map +1 -0
- package/dist/particles/gallery/gallery.d.ts +181 -0
- package/dist/particles/gallery/gallery.js +920 -0
- package/dist/particles/gallery/gallery.js.map +1 -0
- package/dist/particles/header-root/header-root.d.ts +21 -0
- package/dist/particles/header-root/header-root.js +38 -0
- package/dist/particles/header-root/header-root.js.map +1 -0
- package/dist/particles/icon/icon.d.ts +22 -0
- package/dist/particles/icon/icon.js +48 -0
- package/dist/particles/icon/icon.js.map +1 -0
- package/dist/particles/image/image.d.ts +13 -0
- package/dist/particles/image/image.js +59 -0
- package/dist/particles/image/image.js.map +1 -0
- package/dist/particles/incentives/incentives.d.ts +85 -0
- package/dist/particles/incentives/incentives.js +200 -0
- package/dist/particles/incentives/incentives.js.map +1 -0
- package/dist/particles/input/input.d.ts +9 -0
- package/dist/particles/input/input.js +28 -0
- package/dist/particles/input/input.js.map +1 -0
- package/dist/particles/logo/logo.d.ts +55 -0
- package/dist/particles/logo/logo.js +96 -0
- package/dist/particles/logo/logo.js.map +1 -0
- package/dist/particles/menu/menu.d.ts +103 -0
- package/dist/particles/menu/menu.js +409 -0
- package/dist/particles/menu/menu.js.map +1 -0
- package/dist/particles/menubar/menubar.d.ts +18 -0
- package/dist/particles/menubar/menubar.js +42 -0
- package/dist/particles/menubar/menubar.js.map +1 -0
- package/dist/particles/meter/meter.d.ts +36 -0
- package/dist/particles/meter/meter.js +132 -0
- package/dist/particles/meter/meter.js.map +1 -0
- package/dist/particles/navigation-link/navigation-link.d.ts +43 -0
- package/dist/particles/navigation-link/navigation-link.js +82 -0
- package/dist/particles/navigation-link/navigation-link.js.map +1 -0
- package/dist/particles/navigation-link-list/navigation-link-list.d.ts +59 -0
- package/dist/particles/navigation-link-list/navigation-link-list.js +103 -0
- package/dist/particles/navigation-link-list/navigation-link-list.js.map +1 -0
- package/dist/particles/navigation-menu/navigation-menu.d.ts +78 -0
- package/dist/particles/navigation-menu/navigation-menu.js +295 -0
- package/dist/particles/navigation-menu/navigation-menu.js.map +1 -0
- package/dist/particles/number-field/number-field.d.ts +46 -0
- package/dist/particles/number-field/number-field.js +169 -0
- package/dist/particles/number-field/number-field.js.map +1 -0
- package/dist/particles/password-field/password-field.d.ts +31 -0
- package/dist/particles/password-field/password-field.js +109 -0
- package/dist/particles/password-field/password-field.js.map +1 -0
- package/dist/particles/payment-methods/payment-methods.d.ts +72 -0
- package/dist/particles/payment-methods/payment-methods.js +151 -0
- package/dist/particles/payment-methods/payment-methods.js.map +1 -0
- package/dist/particles/phone-field/phone-field.d.ts +67 -0
- package/dist/particles/phone-field/phone-field.js +250 -0
- package/dist/particles/phone-field/phone-field.js.map +1 -0
- package/dist/particles/popover/popover.d.ts +68 -0
- package/dist/particles/popover/popover.js +284 -0
- package/dist/particles/popover/popover.js.map +1 -0
- package/dist/particles/postal-code-field/postal-code-field.d.ts +75 -0
- package/dist/particles/postal-code-field/postal-code-field.js +169 -0
- package/dist/particles/postal-code-field/postal-code-field.js.map +1 -0
- package/dist/particles/promotion/promotion.d.ts +46 -0
- package/dist/particles/promotion/promotion.js +78 -0
- package/dist/particles/promotion/promotion.js.map +1 -0
- package/dist/particles/quantity-selector/quantity-selector.d.ts +30 -0
- package/dist/particles/quantity-selector/quantity-selector.js +116 -0
- package/dist/particles/quantity-selector/quantity-selector.js.map +1 -0
- package/dist/particles/radio/radio.d.ts +36 -0
- package/dist/particles/radio/radio.js +76 -0
- package/dist/particles/radio/radio.js.map +1 -0
- package/dist/particles/scroll-area/scroll-area.d.ts +36 -0
- package/dist/particles/scroll-area/scroll-area.js +145 -0
- package/dist/particles/scroll-area/scroll-area.js.map +1 -0
- package/dist/particles/select/select.d.ts +125 -0
- package/dist/particles/select/select.js +478 -0
- package/dist/particles/select/select.js.map +1 -0
- package/dist/particles/separator/separator.d.ts +12 -0
- package/dist/particles/separator/separator.js +33 -0
- package/dist/particles/separator/separator.js.map +1 -0
- package/dist/particles/shared/input-mask.d.ts +5 -0
- package/dist/particles/shared/input-mask.js +58 -0
- package/dist/particles/shared/input-mask.js.map +1 -0
- package/dist/particles/spinner/spinner.d.ts +13 -0
- package/dist/particles/spinner/spinner.js +31 -0
- package/dist/particles/spinner/spinner.js.map +1 -0
- package/dist/particles/switch/switch.d.ts +27 -0
- package/dist/particles/switch/switch.js +59 -0
- package/dist/particles/switch/switch.js.map +1 -0
- package/dist/particles/tabs/tabs.d.ts +45 -0
- package/dist/particles/tabs/tabs.js +164 -0
- package/dist/particles/tabs/tabs.js.map +1 -0
- package/dist/particles/text/text.d.ts +24 -0
- package/dist/particles/text/text.js +40 -0
- package/dist/particles/text/text.js.map +1 -0
- package/dist/particles/toast/toast.d.ts +83 -0
- package/dist/particles/toast/toast.js +194 -0
- package/dist/particles/toast/toast.js.map +1 -0
- package/dist/particles/toggle/toggle.d.ts +26 -0
- package/dist/particles/toggle/toggle.js +61 -0
- package/dist/particles/toggle/toggle.js.map +1 -0
- package/dist/particles/tooltip/tooltip.d.ts +61 -0
- package/dist/particles/tooltip/tooltip.js +240 -0
- package/dist/particles/tooltip/tooltip.js.map +1 -0
- package/dist/schema.graphql +2953 -0
- package/dist/sdk/actions/cart-action-provider.d.ts +19 -0
- package/dist/sdk/actions/cart-action-provider.js +23 -0
- package/dist/sdk/actions/cart-action-provider.js.map +1 -0
- package/dist/sdk/actions/identity-action-provider.d.ts +15 -0
- package/dist/sdk/actions/identity-action-provider.js +19 -0
- package/dist/sdk/actions/identity-action-provider.js.map +1 -0
- package/dist/sdk/actions/index.d.ts +7 -0
- package/dist/sdk/actions/index.js +6 -0
- package/dist/sdk/actions/inject-actions.d.ts +14 -0
- package/dist/sdk/actions/inject-actions.js +36 -0
- package/dist/sdk/actions/inject-actions.js.map +1 -0
- package/dist/sdk/actions/region-action-provider.d.ts +15 -0
- package/dist/sdk/actions/region-action-provider.js +19 -0
- package/dist/sdk/actions/region-action-provider.js.map +1 -0
- package/dist/sdk/actions/session-action-provider.d.ts +15 -0
- package/dist/sdk/actions/session-action-provider.js +19 -0
- package/dist/sdk/actions/session-action-provider.js.map +1 -0
- package/dist/sdk/actions/shipping-action-provider.d.ts +15 -0
- package/dist/sdk/actions/shipping-action-provider.js +19 -0
- package/dist/sdk/actions/shipping-action-provider.js.map +1 -0
- package/dist/sdk/actions/types.d.ts +21 -0
- package/dist/sdk/cache/storefront-cache.js +35 -0
- package/dist/sdk/cache/storefront-cache.js.map +1 -0
- package/dist/sdk/cart/operations.d.ts +31 -0
- package/dist/sdk/cart/operations.js +215 -0
- package/dist/sdk/cart/operations.js.map +1 -0
- package/dist/sdk/cart/optimistic.d.ts +24 -0
- package/dist/sdk/cart/optimistic.js +164 -0
- package/dist/sdk/cart/optimistic.js.map +1 -0
- package/dist/sdk/cart/use-cart-actions.d.ts +56 -0
- package/dist/sdk/cart/use-cart-actions.js +348 -0
- package/dist/sdk/cart/use-cart-actions.js.map +1 -0
- package/dist/sdk/cart/use-cart-validate-on-open.js +50 -0
- package/dist/sdk/cart/use-cart-validate-on-open.js.map +1 -0
- package/dist/sdk/cart/write-gate.js +54 -0
- package/dist/sdk/cart/write-gate.js.map +1 -0
- package/dist/sdk/client/assert-api-url.js +20 -0
- package/dist/sdk/client/assert-api-url.js.map +1 -0
- package/dist/sdk/client/create-client.d.ts +23 -0
- package/dist/sdk/client/create-client.js +46 -0
- package/dist/sdk/client/create-client.js.map +1 -0
- package/dist/sdk/client/fetch-page-data.d.ts +39 -0
- package/dist/sdk/client/fetch-page-data.js +33 -0
- package/dist/sdk/client/fetch-page-data.js.map +1 -0
- package/dist/sdk/client/register-preload-query.d.ts +24 -0
- package/dist/sdk/client/register-preload-query.js +33 -0
- package/dist/sdk/client/register-preload-query.js.map +1 -0
- package/dist/sdk/content/create-content-runtime.d.ts +68 -0
- package/dist/sdk/content/create-content-runtime.js +503 -0
- package/dist/sdk/content/create-content-runtime.js.map +1 -0
- package/dist/sdk/context/headers.d.ts +15 -0
- package/dist/sdk/context/headers.js +21 -0
- package/dist/sdk/context/headers.js.map +1 -0
- package/dist/sdk/context/storefront-context.d.ts +11 -0
- package/dist/sdk/context/storefront-context.js +29 -0
- package/dist/sdk/context/storefront-context.js.map +1 -0
- package/dist/sdk/data/data-override-context.d.ts +12 -0
- package/dist/sdk/data/data-override-context.js +19 -0
- package/dist/sdk/data/data-override-context.js.map +1 -0
- package/dist/sdk/data/entity-subscriber.js +28 -0
- package/dist/sdk/data/entity-subscriber.js.map +1 -0
- package/dist/sdk/data/hot-data-provider.d.ts +19 -0
- package/dist/sdk/data/hot-data-provider.js +33 -0
- package/dist/sdk/data/hot-data-provider.js.map +1 -0
- package/dist/sdk/data/index.d.ts +8 -0
- package/dist/sdk/data/index.js +8 -0
- package/dist/sdk/data/list-item-ref-context.d.ts +20 -0
- package/dist/sdk/data/list-item-ref-context.js +11 -0
- package/dist/sdk/data/list-item-ref-context.js.map +1 -0
- package/dist/sdk/data/multiple-reactive-data-provider.d.ts +32 -0
- package/dist/sdk/data/multiple-reactive-data-provider.js +20 -0
- package/dist/sdk/data/multiple-reactive-data-provider.js.map +1 -0
- package/dist/sdk/data/page-reactive-data-root.d.ts +53 -0
- package/dist/sdk/data/page-reactive-data-root.js +153 -0
- package/dist/sdk/data/page-reactive-data-root.js.map +1 -0
- package/dist/sdk/data/reactive-data-provider.d.ts +25 -0
- package/dist/sdk/data/reactive-data-provider.js +24 -0
- package/dist/sdk/data/reactive-data-provider.js.map +1 -0
- package/dist/sdk/data/reactive-list-item-data-provider.d.ts +26 -0
- package/dist/sdk/data/reactive-list-item-data-provider.js +42 -0
- package/dist/sdk/data/reactive-list-item-data-provider.js.map +1 -0
- package/dist/sdk/data/use-reactive-entity.js +40 -0
- package/dist/sdk/data/use-reactive-entity.js.map +1 -0
- package/dist/sdk/format/client.d.ts +12 -0
- package/dist/sdk/format/client.js +20 -0
- package/dist/sdk/format/client.js.map +1 -0
- package/dist/sdk/format/formatters.d.ts +32 -0
- package/dist/sdk/format/formatters.js +45 -0
- package/dist/sdk/format/formatters.js.map +1 -0
- package/dist/sdk/generated/fragment-types.js +23 -0
- package/dist/sdk/generated/fragment-types.js.map +1 -0
- package/dist/sdk/generated/gql.js +51 -0
- package/dist/sdk/generated/gql.js.map +1 -0
- package/dist/sdk/generated/graphql.d.ts +622 -0
- package/dist/sdk/generated/graphql.js +11917 -0
- package/dist/sdk/generated/graphql.js.map +1 -0
- package/dist/sdk/graphql-tag.d.ts +10 -0
- package/dist/sdk/graphql-tag.js +21 -0
- package/dist/sdk/graphql-tag.js.map +1 -0
- package/dist/sdk/i18n/client.d.ts +4 -0
- package/dist/sdk/i18n/client.js +4 -0
- package/dist/sdk/i18n/locales.d.ts +8 -0
- package/dist/sdk/i18n/locales.js +57 -0
- package/dist/sdk/i18n/locales.js.map +1 -0
- package/dist/sdk/i18n/messages/en-US.js +24 -0
- package/dist/sdk/i18n/messages/en-US.js.map +1 -0
- package/dist/sdk/i18n/messages/en-US.json +19 -0
- package/dist/sdk/i18n/messages/en-US.json.d.ts +23 -0
- package/dist/sdk/i18n/messages/es-ES.js +24 -0
- package/dist/sdk/i18n/messages/es-ES.js.map +1 -0
- package/dist/sdk/i18n/messages/es-ES.json +19 -0
- package/dist/sdk/i18n/messages/pt-BR.js +24 -0
- package/dist/sdk/i18n/messages/pt-BR.js.map +1 -0
- package/dist/sdk/i18n/messages/pt-BR.json +19 -0
- package/dist/sdk/i18n/provider.d.ts +1 -0
- package/dist/sdk/i18n/provider.js +30 -0
- package/dist/sdk/i18n/provider.js.map +1 -0
- package/dist/sdk/i18n/server.d.ts +28 -0
- package/dist/sdk/i18n/server.js +59 -0
- package/dist/sdk/i18n/server.js.map +1 -0
- package/dist/sdk/identity/operations.d.ts +34 -0
- package/dist/sdk/identity/operations.js +78 -0
- package/dist/sdk/identity/operations.js.map +1 -0
- package/dist/sdk/identity/use-identity-actions.d.ts +62 -0
- package/dist/sdk/identity/use-identity-actions.js +180 -0
- package/dist/sdk/identity/use-identity-actions.js.map +1 -0
- package/dist/sdk/provider/index.d.ts +2 -0
- package/dist/sdk/provider/index.js +2 -0
- package/dist/sdk/provider/storefront-provider.d.ts +32 -0
- package/dist/sdk/provider/storefront-provider.js +111 -0
- package/dist/sdk/provider/storefront-provider.js.map +1 -0
- package/dist/sdk/region/operations.d.ts +6 -0
- package/dist/sdk/region/region-operations.d.ts +30 -0
- package/dist/sdk/region/region-operations.js +23 -0
- package/dist/sdk/region/region-operations.js.map +1 -0
- package/dist/sdk/region/use-region-actions.d.ts +23 -0
- package/dist/sdk/region/use-region-actions.js +66 -0
- package/dist/sdk/region/use-region-actions.js.map +1 -0
- package/dist/sdk/seller.js +11 -0
- package/dist/sdk/seller.js.map +1 -0
- package/dist/sdk/session/auth-operations.d.ts +47 -0
- package/dist/sdk/session/auth-operations.js +79 -0
- package/dist/sdk/session/auth-operations.js.map +1 -0
- package/dist/sdk/session/operations.d.ts +6 -0
- package/dist/sdk/session/use-session-actions.d.ts +27 -0
- package/dist/sdk/session/use-session-actions.js +126 -0
- package/dist/sdk/session/use-session-actions.js.map +1 -0
- package/dist/sdk/shipping/cart-operations.d.ts +3 -0
- package/dist/sdk/shipping/cart-operations.js +33 -0
- package/dist/sdk/shipping/cart-operations.js.map +1 -0
- package/dist/sdk/shipping/operations.d.ts +3 -0
- package/dist/sdk/shipping/operations.js +33 -0
- package/dist/sdk/shipping/operations.js.map +1 -0
- package/dist/sdk/shipping/option-select-operations.d.ts +24 -0
- package/dist/sdk/shipping/option-select-operations.js +45 -0
- package/dist/sdk/shipping/option-select-operations.js.map +1 -0
- package/dist/sdk/shipping/request-timeout.js +41 -0
- package/dist/sdk/shipping/request-timeout.js.map +1 -0
- package/dist/sdk/shipping/shipping-operations.d.ts +38 -0
- package/dist/sdk/shipping/shipping-operations.js +77 -0
- package/dist/sdk/shipping/shipping-operations.js.map +1 -0
- package/dist/sdk/shipping/use-cart-shipping-simulation.d.ts +7 -0
- package/dist/sdk/shipping/use-cart-shipping-simulation.js +72 -0
- package/dist/sdk/shipping/use-cart-shipping-simulation.js.map +1 -0
- package/dist/sdk/shipping/use-shipping-actions.d.ts +27 -0
- package/dist/sdk/shipping/use-shipping-actions.js +113 -0
- package/dist/sdk/shipping/use-shipping-actions.js.map +1 -0
- package/dist/sdk/shipping/use-shipping-simulation.d.ts +7 -0
- package/dist/sdk/shipping/use-shipping-simulation.js +72 -0
- package/dist/sdk/shipping/use-shipping-simulation.js.map +1 -0
- package/dist/sdk/state/cart.d.ts +42 -0
- package/dist/sdk/state/cart.js +64 -0
- package/dist/sdk/state/cart.js.map +1 -0
- package/dist/sdk/state/index.js +3 -0
- package/dist/sdk/state/variant-selector.d.ts +17 -0
- package/dist/sdk/state/variant-selector.js +14 -0
- package/dist/sdk/state/variant-selector.js.map +1 -0
- package/dist/utils/safe-href.js +63 -0
- package/dist/utils/safe-href.js.map +1 -0
- package/package.json +84 -0
- package/src/styles/tailwind.css +32 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { defineComponent } from "../../core/dist/define-component.js";
|
|
3
|
+
import "../../core/dist/index.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { NavigationMenu } from "@base-ui/react/navigation-menu";
|
|
6
|
+
//#region src/particles/navigation-menu/navigation-menu.tsx
|
|
7
|
+
const NavigationMenuRootDefinition = defineComponent({
|
|
8
|
+
name: "NavigationMenuRoot",
|
|
9
|
+
importPath: "@vtex/faststore/components",
|
|
10
|
+
component: NavigationMenuRoot,
|
|
11
|
+
editor: {
|
|
12
|
+
label: "Navigation Menu Root",
|
|
13
|
+
category: "layout"
|
|
14
|
+
},
|
|
15
|
+
schema: {
|
|
16
|
+
orientation: {
|
|
17
|
+
type: ["horizontal", "vertical"],
|
|
18
|
+
default: "horizontal",
|
|
19
|
+
label: "Orientation"
|
|
20
|
+
},
|
|
21
|
+
delay: {
|
|
22
|
+
type: "number",
|
|
23
|
+
default: 50,
|
|
24
|
+
label: "Delay"
|
|
25
|
+
},
|
|
26
|
+
closeDelay: {
|
|
27
|
+
type: "number",
|
|
28
|
+
default: 50,
|
|
29
|
+
label: "Close Delay"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
guideline: "Root of the site navigation with animated flyout panels. Manages hover/focus open state across menu items. Compose as: NavigationMenuRoot > (NavigationMenuList > [NavigationMenuItem > (NavigationMenuTrigger > NavigationMenuIcon + NavigationMenuContent > [NavigationMenuLink])] + NavigationMenuPortal > NavigationMenuPositioner > NavigationMenuPopup > (NavigationMenuArrow + NavigationMenuViewport)). Content goes inside NavigationMenuItem (not Portal); the Portal renders the animated Popup that frames it. Set delay/closeDelay to control hover timing."
|
|
33
|
+
});
|
|
34
|
+
const NavigationMenuListDefinition = defineComponent({
|
|
35
|
+
name: "NavigationMenuList",
|
|
36
|
+
importPath: "@vtex/faststore/components",
|
|
37
|
+
component: NavigationMenuList,
|
|
38
|
+
editor: {
|
|
39
|
+
label: "Navigation Menu List",
|
|
40
|
+
category: "layout"
|
|
41
|
+
},
|
|
42
|
+
schema: {},
|
|
43
|
+
guideline: "The <ul> container holding all NavigationMenu.Item elements."
|
|
44
|
+
});
|
|
45
|
+
const NavigationMenuItemDefinition = defineComponent({
|
|
46
|
+
name: "NavigationMenuItem",
|
|
47
|
+
importPath: "@vtex/faststore/components",
|
|
48
|
+
component: NavigationMenuItem,
|
|
49
|
+
editor: {
|
|
50
|
+
label: "Navigation Menu Item",
|
|
51
|
+
category: "layout"
|
|
52
|
+
},
|
|
53
|
+
schema: { value: {
|
|
54
|
+
type: "string",
|
|
55
|
+
label: "Value"
|
|
56
|
+
} },
|
|
57
|
+
guideline: "One nav entry. Requires a unique value prop. Combine with NavigationMenu.Trigger + NavigationMenu.Content."
|
|
58
|
+
});
|
|
59
|
+
const NavigationMenuTriggerDefinition = defineComponent({
|
|
60
|
+
name: "NavigationMenuTrigger",
|
|
61
|
+
importPath: "@vtex/faststore/components",
|
|
62
|
+
component: NavigationMenuTrigger,
|
|
63
|
+
editor: {
|
|
64
|
+
label: "Navigation Menu Trigger",
|
|
65
|
+
category: "action"
|
|
66
|
+
},
|
|
67
|
+
schema: {},
|
|
68
|
+
guideline: "Button that activates the flyout panel for a NavigationMenu.Item."
|
|
69
|
+
});
|
|
70
|
+
const NavigationMenuIconDefinition = defineComponent({
|
|
71
|
+
name: "NavigationMenuIcon",
|
|
72
|
+
importPath: "@vtex/faststore/components",
|
|
73
|
+
component: NavigationMenuIcon,
|
|
74
|
+
editor: {
|
|
75
|
+
label: "Navigation Menu Icon",
|
|
76
|
+
category: "layout"
|
|
77
|
+
},
|
|
78
|
+
schema: {},
|
|
79
|
+
guideline: "Decorative icon (e.g. chevron) inside NavigationMenu.Trigger. Rotates via data-open."
|
|
80
|
+
});
|
|
81
|
+
const NavigationMenuContentDefinition = defineComponent({
|
|
82
|
+
name: "NavigationMenuContent",
|
|
83
|
+
importPath: "@vtex/faststore/components",
|
|
84
|
+
component: NavigationMenuContent,
|
|
85
|
+
editor: {
|
|
86
|
+
label: "Navigation Menu Content",
|
|
87
|
+
category: "layout"
|
|
88
|
+
},
|
|
89
|
+
schema: {},
|
|
90
|
+
guideline: "The actual content of the flyout panel, placed inside NavigationMenu.Item alongside Trigger. Rendered inside the Viewport via the Portal."
|
|
91
|
+
});
|
|
92
|
+
const NavigationMenuLinkDefinition = defineComponent({
|
|
93
|
+
name: "NavigationMenuLink",
|
|
94
|
+
importPath: "@vtex/faststore/components",
|
|
95
|
+
component: NavigationMenuLink,
|
|
96
|
+
editor: {
|
|
97
|
+
label: "Navigation Menu Link",
|
|
98
|
+
category: "action"
|
|
99
|
+
},
|
|
100
|
+
schema: {},
|
|
101
|
+
guideline: "Accessible anchor link inside NavigationMenu.Content. Closes the menu on navigation."
|
|
102
|
+
});
|
|
103
|
+
const NavigationMenuPortalDefinition = defineComponent({
|
|
104
|
+
name: "NavigationMenuPortal",
|
|
105
|
+
importPath: "@vtex/faststore/components",
|
|
106
|
+
component: NavigationMenuPortal,
|
|
107
|
+
editor: {
|
|
108
|
+
label: "Navigation Menu Portal",
|
|
109
|
+
category: "layout"
|
|
110
|
+
},
|
|
111
|
+
schema: {},
|
|
112
|
+
guideline: "Teleports the Positioner to <body>. Wraps NavigationMenu.Positioner."
|
|
113
|
+
});
|
|
114
|
+
const NavigationMenuPositionerDefinition = defineComponent({
|
|
115
|
+
name: "NavigationMenuPositioner",
|
|
116
|
+
importPath: "@vtex/faststore/components",
|
|
117
|
+
component: NavigationMenuPositioner,
|
|
118
|
+
editor: {
|
|
119
|
+
label: "Navigation Menu Positioner",
|
|
120
|
+
category: "layout"
|
|
121
|
+
},
|
|
122
|
+
schema: {
|
|
123
|
+
side: {
|
|
124
|
+
type: [
|
|
125
|
+
"top",
|
|
126
|
+
"bottom",
|
|
127
|
+
"left",
|
|
128
|
+
"right"
|
|
129
|
+
],
|
|
130
|
+
default: "bottom",
|
|
131
|
+
label: "Side"
|
|
132
|
+
},
|
|
133
|
+
align: {
|
|
134
|
+
type: [
|
|
135
|
+
"start",
|
|
136
|
+
"center",
|
|
137
|
+
"end"
|
|
138
|
+
],
|
|
139
|
+
default: "center",
|
|
140
|
+
label: "Align"
|
|
141
|
+
},
|
|
142
|
+
sideOffset: {
|
|
143
|
+
type: "number",
|
|
144
|
+
default: 0,
|
|
145
|
+
label: "Side Offset"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
guideline: "Controls popup placement relative to the active nav item."
|
|
149
|
+
});
|
|
150
|
+
const NavigationMenuPopupDefinition = defineComponent({
|
|
151
|
+
name: "NavigationMenuPopup",
|
|
152
|
+
importPath: "@vtex/faststore/components",
|
|
153
|
+
component: NavigationMenuPopup,
|
|
154
|
+
editor: {
|
|
155
|
+
label: "Navigation Menu Popup",
|
|
156
|
+
category: "layout"
|
|
157
|
+
},
|
|
158
|
+
schema: {},
|
|
159
|
+
guideline: "Animated popup container wrapping NavigationMenu.Viewport."
|
|
160
|
+
});
|
|
161
|
+
const NavigationMenuArrowDefinition = defineComponent({
|
|
162
|
+
name: "NavigationMenuArrow",
|
|
163
|
+
importPath: "@vtex/faststore/components",
|
|
164
|
+
component: NavigationMenuArrow,
|
|
165
|
+
editor: {
|
|
166
|
+
label: "Navigation Menu Arrow",
|
|
167
|
+
category: "layout"
|
|
168
|
+
},
|
|
169
|
+
schema: {},
|
|
170
|
+
guideline: "Optional pointing arrow inside NavigationMenu.Popup."
|
|
171
|
+
});
|
|
172
|
+
const NavigationMenuViewportDefinition = defineComponent({
|
|
173
|
+
name: "NavigationMenuViewport",
|
|
174
|
+
importPath: "@vtex/faststore/components",
|
|
175
|
+
component: NavigationMenuViewport,
|
|
176
|
+
editor: {
|
|
177
|
+
label: "Navigation Menu Viewport",
|
|
178
|
+
category: "layout"
|
|
179
|
+
},
|
|
180
|
+
schema: {},
|
|
181
|
+
guideline: "Shared animation container inside the Popup. All Content panels share this viewport for smooth transitions between nav items."
|
|
182
|
+
});
|
|
183
|
+
function NavigationMenuRoot({ orientation = "horizontal", delay = 50, closeDelay = 50, children }) {
|
|
184
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Root, {
|
|
185
|
+
orientation,
|
|
186
|
+
delay,
|
|
187
|
+
closeDelay,
|
|
188
|
+
children
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
function NavigationMenuList({ className, children, ...props }) {
|
|
192
|
+
return /* @__PURE__ */ jsx(NavigationMenu.List, {
|
|
193
|
+
...props,
|
|
194
|
+
className,
|
|
195
|
+
"data-fs-navigation-menu-list": "",
|
|
196
|
+
children
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function NavigationMenuItem({ value, className, children, ...props }) {
|
|
200
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Item, {
|
|
201
|
+
...props,
|
|
202
|
+
value,
|
|
203
|
+
className,
|
|
204
|
+
"data-fs-navigation-menu-item": "",
|
|
205
|
+
children
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
209
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Trigger, {
|
|
210
|
+
...props,
|
|
211
|
+
className,
|
|
212
|
+
"data-fs-navigation-menu-trigger": "",
|
|
213
|
+
children
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function NavigationMenuIcon({ className, children, ...props }) {
|
|
217
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Icon, {
|
|
218
|
+
...props,
|
|
219
|
+
className,
|
|
220
|
+
"data-fs-navigation-menu-icon": "",
|
|
221
|
+
children
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function NavigationMenuContent({ className, children, ...props }) {
|
|
225
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Content, {
|
|
226
|
+
...props,
|
|
227
|
+
className,
|
|
228
|
+
"data-fs-navigation-menu-content": "",
|
|
229
|
+
children
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
function NavigationMenuLink({ className, children, ...props }) {
|
|
233
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Link, {
|
|
234
|
+
...props,
|
|
235
|
+
className,
|
|
236
|
+
"data-fs-navigation-menu-link": "",
|
|
237
|
+
children
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
function NavigationMenuPortal({ children }) {
|
|
241
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Portal, { children });
|
|
242
|
+
}
|
|
243
|
+
function NavigationMenuPositioner({ side = "bottom", align = "center", sideOffset = 0, className, children, ...props }) {
|
|
244
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Positioner, {
|
|
245
|
+
...props,
|
|
246
|
+
side,
|
|
247
|
+
align,
|
|
248
|
+
sideOffset,
|
|
249
|
+
className,
|
|
250
|
+
"data-fs-navigation-menu-positioner": "",
|
|
251
|
+
children
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
function NavigationMenuPopup({ className, children, ...props }) {
|
|
255
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Popup, {
|
|
256
|
+
...props,
|
|
257
|
+
className,
|
|
258
|
+
"data-fs-navigation-menu-popup": "",
|
|
259
|
+
children
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
function NavigationMenuArrow({ className, children, ...props }) {
|
|
263
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Arrow, {
|
|
264
|
+
...props,
|
|
265
|
+
className,
|
|
266
|
+
"data-fs-navigation-menu-arrow": "",
|
|
267
|
+
children
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
function NavigationMenuViewport({ className, children, ...props }) {
|
|
271
|
+
return /* @__PURE__ */ jsx(NavigationMenu.Viewport, {
|
|
272
|
+
...props,
|
|
273
|
+
className,
|
|
274
|
+
"data-fs-navigation-menu-viewport": "",
|
|
275
|
+
children
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
const NavigationMenu$1 = {
|
|
279
|
+
Root: NavigationMenuRoot,
|
|
280
|
+
List: NavigationMenuList,
|
|
281
|
+
Item: NavigationMenuItem,
|
|
282
|
+
Trigger: NavigationMenuTrigger,
|
|
283
|
+
Icon: NavigationMenuIcon,
|
|
284
|
+
Content: NavigationMenuContent,
|
|
285
|
+
Link: NavigationMenuLink,
|
|
286
|
+
Portal: NavigationMenuPortal,
|
|
287
|
+
Positioner: NavigationMenuPositioner,
|
|
288
|
+
Popup: NavigationMenuPopup,
|
|
289
|
+
Arrow: NavigationMenuArrow,
|
|
290
|
+
Viewport: NavigationMenuViewport
|
|
291
|
+
};
|
|
292
|
+
//#endregion
|
|
293
|
+
export { NavigationMenu$1 as NavigationMenu, NavigationMenuArrow, NavigationMenuArrowDefinition, NavigationMenuContent, NavigationMenuContentDefinition, NavigationMenuIcon, NavigationMenuIconDefinition, NavigationMenuItem, NavigationMenuItemDefinition, NavigationMenuLink, NavigationMenuLinkDefinition, NavigationMenuList, NavigationMenuListDefinition, NavigationMenuPopup, NavigationMenuPopupDefinition, NavigationMenuPortal, NavigationMenuPortalDefinition, NavigationMenuPositioner, NavigationMenuPositionerDefinition, NavigationMenuRoot, NavigationMenuRootDefinition, NavigationMenuTrigger, NavigationMenuTriggerDefinition, NavigationMenuViewport, NavigationMenuViewportDefinition };
|
|
294
|
+
|
|
295
|
+
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","names":["BaseNavigationMenu","NavigationMenu"],"sources":["../../../src/particles/navigation-menu/navigation-menu.tsx"],"sourcesContent":["'use client';\nimport { NavigationMenu as BaseNavigationMenu } from '@base-ui/react/navigation-menu';\nimport { defineComponent } from '@vtex/fs-core';\nimport type { ComponentPropsWithRef, ReactNode } from 'react';\n\nexport type NavigationMenuSide = 'top' | 'bottom' | 'left' | 'right';\nexport type NavigationMenuAlign = 'start' | 'center' | 'end';\nexport type NavigationMenuOrientation = 'horizontal' | 'vertical';\n\nexport type NavigationMenuRootProps = {\n orientation?: NavigationMenuOrientation;\n delay?: number;\n closeDelay?: number;\n children?: ReactNode;\n};\n\nexport type NavigationMenuListProps = ComponentPropsWithRef<'ul'>;\n\nexport type NavigationMenuItemProps = ComponentPropsWithRef<'li'> & {\n value?: string;\n};\n\nexport type NavigationMenuTriggerProps = ComponentPropsWithRef<'button'>;\n\nexport type NavigationMenuIconProps = Omit<ComponentPropsWithRef<typeof BaseNavigationMenu.Icon>, 'className'> & {\n className?: string;\n};\n\nexport type NavigationMenuContentProps = ComponentPropsWithRef<'div'>;\n\nexport type NavigationMenuLinkProps = ComponentPropsWithRef<'a'>;\n\nexport type NavigationMenuPortalProps = {\n children?: ReactNode;\n};\n\nexport type NavigationMenuPositionerProps = ComponentPropsWithRef<'div'> & {\n side?: NavigationMenuSide;\n align?: NavigationMenuAlign;\n sideOffset?: number;\n};\n\nexport type NavigationMenuPopupProps = Omit<ComponentPropsWithRef<typeof BaseNavigationMenu.Popup>, 'className'> & {\n className?: string;\n};\n\nexport type NavigationMenuArrowProps = ComponentPropsWithRef<'div'>;\n\nexport type NavigationMenuViewportProps = ComponentPropsWithRef<'div'>;\n\nexport const NavigationMenuRootDefinition = defineComponent<NavigationMenuRootProps>({\n name: 'NavigationMenuRoot',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuRoot,\n editor: { label: 'Navigation Menu Root', category: 'layout' },\n schema: {\n orientation: { type: ['horizontal', 'vertical'] as const, default: 'horizontal', label: 'Orientation' },\n delay: { type: 'number', default: 50, label: 'Delay' },\n closeDelay: { type: 'number', default: 50, label: 'Close Delay' },\n },\n guideline:\n 'Root of the site navigation with animated flyout panels. Manages hover/focus open state across menu items. Compose as: NavigationMenuRoot > (NavigationMenuList > [NavigationMenuItem > (NavigationMenuTrigger > NavigationMenuIcon + NavigationMenuContent > [NavigationMenuLink])] + NavigationMenuPortal > NavigationMenuPositioner > NavigationMenuPopup > (NavigationMenuArrow + NavigationMenuViewport)). Content goes inside NavigationMenuItem (not Portal); the Portal renders the animated Popup that frames it. Set delay/closeDelay to control hover timing.',\n});\n\nexport const NavigationMenuListDefinition = defineComponent<NavigationMenuListProps>({\n name: 'NavigationMenuList',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuList,\n editor: { label: 'Navigation Menu List', category: 'layout' },\n schema: {},\n guideline: 'The <ul> container holding all NavigationMenu.Item elements.',\n});\n\nexport const NavigationMenuItemDefinition = defineComponent<NavigationMenuItemProps>({\n name: 'NavigationMenuItem',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuItem,\n editor: { label: 'Navigation Menu Item', category: 'layout' },\n schema: {\n value: { type: 'string', label: 'Value' },\n },\n guideline:\n 'One nav entry. Requires a unique value prop. Combine with NavigationMenu.Trigger + NavigationMenu.Content.',\n});\n\nexport const NavigationMenuTriggerDefinition = defineComponent<NavigationMenuTriggerProps>({\n name: 'NavigationMenuTrigger',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuTrigger,\n editor: { label: 'Navigation Menu Trigger', category: 'action' },\n schema: {},\n guideline: 'Button that activates the flyout panel for a NavigationMenu.Item.',\n});\n\nexport const NavigationMenuIconDefinition = defineComponent<NavigationMenuIconProps>({\n name: 'NavigationMenuIcon',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuIcon,\n editor: { label: 'Navigation Menu Icon', category: 'layout' },\n schema: {},\n guideline: 'Decorative icon (e.g. chevron) inside NavigationMenu.Trigger. Rotates via data-open.',\n});\n\nexport const NavigationMenuContentDefinition = defineComponent<NavigationMenuContentProps>({\n name: 'NavigationMenuContent',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuContent,\n editor: { label: 'Navigation Menu Content', category: 'layout' },\n schema: {},\n guideline:\n 'The actual content of the flyout panel, placed inside NavigationMenu.Item alongside Trigger. Rendered inside the Viewport via the Portal.',\n});\n\nexport const NavigationMenuLinkDefinition = defineComponent<NavigationMenuLinkProps>({\n name: 'NavigationMenuLink',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuLink,\n editor: { label: 'Navigation Menu Link', category: 'action' },\n schema: {},\n guideline: 'Accessible anchor link inside NavigationMenu.Content. Closes the menu on navigation.',\n});\n\nexport const NavigationMenuPortalDefinition = defineComponent<NavigationMenuPortalProps>({\n name: 'NavigationMenuPortal',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuPortal,\n editor: { label: 'Navigation Menu Portal', category: 'layout' },\n schema: {},\n guideline: 'Teleports the Positioner to <body>. Wraps NavigationMenu.Positioner.',\n});\n\nexport const NavigationMenuPositionerDefinition = defineComponent<NavigationMenuPositionerProps>({\n name: 'NavigationMenuPositioner',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuPositioner,\n editor: { label: 'Navigation Menu Positioner', category: 'layout' },\n schema: {\n side: { type: ['top', 'bottom', 'left', 'right'] as const, default: 'bottom', label: 'Side' },\n align: { type: ['start', 'center', 'end'] as const, default: 'center', label: 'Align' },\n sideOffset: { type: 'number', default: 0, label: 'Side Offset' },\n },\n guideline: 'Controls popup placement relative to the active nav item.',\n});\n\nexport const NavigationMenuPopupDefinition = defineComponent<NavigationMenuPopupProps>({\n name: 'NavigationMenuPopup',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuPopup,\n editor: { label: 'Navigation Menu Popup', category: 'layout' },\n schema: {},\n guideline: 'Animated popup container wrapping NavigationMenu.Viewport.',\n});\n\nexport const NavigationMenuArrowDefinition = defineComponent<NavigationMenuArrowProps>({\n name: 'NavigationMenuArrow',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuArrow,\n editor: { label: 'Navigation Menu Arrow', category: 'layout' },\n schema: {},\n guideline: 'Optional pointing arrow inside NavigationMenu.Popup.',\n});\n\nexport const NavigationMenuViewportDefinition = defineComponent<NavigationMenuViewportProps>({\n name: 'NavigationMenuViewport',\n importPath: '@vtex/faststore/components',\n component: NavigationMenuViewport,\n editor: { label: 'Navigation Menu Viewport', category: 'layout' },\n schema: {},\n guideline:\n 'Shared animation container inside the Popup. All Content panels share this viewport for smooth transitions between nav items.',\n});\n\nexport function NavigationMenuRoot({\n orientation = 'horizontal',\n delay = 50,\n closeDelay = 50,\n children,\n}: NavigationMenuRootProps) {\n return (\n <BaseNavigationMenu.Root orientation={orientation} delay={delay} closeDelay={closeDelay}>\n {children}\n </BaseNavigationMenu.Root>\n );\n}\n\nexport function NavigationMenuList({ className, children, ...props }: NavigationMenuListProps) {\n return (\n <BaseNavigationMenu.List {...props} className={className} data-fs-navigation-menu-list=\"\">\n {children}\n </BaseNavigationMenu.List>\n );\n}\n\nexport function NavigationMenuItem({ value, className, children, ...props }: NavigationMenuItemProps) {\n return (\n <BaseNavigationMenu.Item {...props} value={value} className={className} data-fs-navigation-menu-item=\"\">\n {children}\n </BaseNavigationMenu.Item>\n );\n}\n\nexport function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuTriggerProps) {\n return (\n <BaseNavigationMenu.Trigger {...props} className={className} data-fs-navigation-menu-trigger=\"\">\n {children}\n </BaseNavigationMenu.Trigger>\n );\n}\n\nexport function NavigationMenuIcon({ className, children, ...props }: NavigationMenuIconProps) {\n return (\n <BaseNavigationMenu.Icon {...props} className={className} data-fs-navigation-menu-icon=\"\">\n {children}\n </BaseNavigationMenu.Icon>\n );\n}\n\nexport function NavigationMenuContent({ className, children, ...props }: NavigationMenuContentProps) {\n return (\n <BaseNavigationMenu.Content {...props} className={className} data-fs-navigation-menu-content=\"\">\n {children}\n </BaseNavigationMenu.Content>\n );\n}\n\nexport function NavigationMenuLink({ className, children, ...props }: NavigationMenuLinkProps) {\n return (\n <BaseNavigationMenu.Link {...props} className={className} data-fs-navigation-menu-link=\"\">\n {children}\n </BaseNavigationMenu.Link>\n );\n}\n\nexport function NavigationMenuPortal({ children }: NavigationMenuPortalProps) {\n return <BaseNavigationMenu.Portal>{children}</BaseNavigationMenu.Portal>;\n}\n\nexport function NavigationMenuPositioner({\n side = 'bottom',\n align = 'center',\n sideOffset = 0,\n className,\n children,\n ...props\n}: NavigationMenuPositionerProps) {\n return (\n <BaseNavigationMenu.Positioner\n {...props}\n side={side}\n align={align}\n sideOffset={sideOffset}\n className={className}\n data-fs-navigation-menu-positioner=\"\"\n >\n {children}\n </BaseNavigationMenu.Positioner>\n );\n}\n\nexport function NavigationMenuPopup({ className, children, ...props }: NavigationMenuPopupProps) {\n return (\n <BaseNavigationMenu.Popup {...props} className={className} data-fs-navigation-menu-popup=\"\">\n {children}\n </BaseNavigationMenu.Popup>\n );\n}\n\nexport function NavigationMenuArrow({ className, children, ...props }: NavigationMenuArrowProps) {\n return (\n <BaseNavigationMenu.Arrow {...props} className={className} data-fs-navigation-menu-arrow=\"\">\n {children}\n </BaseNavigationMenu.Arrow>\n );\n}\n\nexport function NavigationMenuViewport({ className, children, ...props }: NavigationMenuViewportProps) {\n return (\n <BaseNavigationMenu.Viewport {...props} className={className} data-fs-navigation-menu-viewport=\"\">\n {children}\n </BaseNavigationMenu.Viewport>\n );\n}\n\nexport const NavigationMenu = {\n Root: NavigationMenuRoot,\n List: NavigationMenuList,\n Item: NavigationMenuItem,\n Trigger: NavigationMenuTrigger,\n Icon: NavigationMenuIcon,\n Content: NavigationMenuContent,\n Link: NavigationMenuLink,\n Portal: NavigationMenuPortal,\n Positioner: NavigationMenuPositioner,\n Popup: NavigationMenuPopup,\n Arrow: NavigationMenuArrow,\n Viewport: NavigationMenuViewport,\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentDefinition } from "../../core/dist/define-component.js";
|
|
2
|
+
import "../../core/dist/index.js";
|
|
3
|
+
import { ComponentPropsWithRef } from "react";
|
|
4
|
+
//#region src/particles/number-field/number-field.d.ts
|
|
5
|
+
export type NumberFieldRootProps = Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'value'> & {
|
|
6
|
+
value?: number | null;
|
|
7
|
+
defaultValue?: number;
|
|
8
|
+
onValueChange?: (value: number | null) => void;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type NumberFieldScrubAreaProps = ComponentPropsWithRef<'span'>;
|
|
17
|
+
export type NumberFieldScrubAreaCursorProps = ComponentPropsWithRef<'span'>;
|
|
18
|
+
export type NumberFieldGroupProps = ComponentPropsWithRef<'div'>;
|
|
19
|
+
export type NumberFieldDecrementProps = ComponentPropsWithRef<'button'>;
|
|
20
|
+
export type NumberFieldInputProps = ComponentPropsWithRef<'input'>;
|
|
21
|
+
export type NumberFieldIncrementProps = ComponentPropsWithRef<'button'>;
|
|
22
|
+
export declare const NumberFieldRootDefinition: ComponentDefinition<NumberFieldRootProps>;
|
|
23
|
+
export declare const NumberFieldScrubAreaDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
24
|
+
export declare const NumberFieldScrubAreaCursorDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
25
|
+
export declare const NumberFieldGroupDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
26
|
+
export declare const NumberFieldDecrementDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
27
|
+
export declare const NumberFieldInputDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
|
|
28
|
+
export declare const NumberFieldIncrementDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
29
|
+
export declare function NumberFieldRoot({ min, max, step, disabled, readOnly, required, className, children, ...props }: NumberFieldRootProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function NumberFieldScrubArea({ className, children, ...props }: NumberFieldScrubAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function NumberFieldScrubAreaCursor({ className, children, ...props }: NumberFieldScrubAreaCursorProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function NumberFieldGroup({ className, children, ...props }: NumberFieldGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function NumberFieldDecrement({ className, children, ...props }: NumberFieldDecrementProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare function NumberFieldInput({ className, ...props }: NumberFieldInputProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare function NumberFieldIncrement({ className, children, ...props }: NumberFieldIncrementProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const NumberField: {
|
|
37
|
+
Root: typeof NumberFieldRoot;
|
|
38
|
+
ScrubArea: typeof NumberFieldScrubArea;
|
|
39
|
+
ScrubAreaCursor: typeof NumberFieldScrubAreaCursor;
|
|
40
|
+
Group: typeof NumberFieldGroup;
|
|
41
|
+
Decrement: typeof NumberFieldDecrement;
|
|
42
|
+
Input: typeof NumberFieldInput;
|
|
43
|
+
Increment: typeof NumberFieldIncrement;
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
//# sourceMappingURL=number-field.d.ts.map
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { defineComponent } from "../../core/dist/define-component.js";
|
|
3
|
+
import "../../core/dist/index.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { NumberField } from "@base-ui/react/number-field";
|
|
6
|
+
//#region src/particles/number-field/number-field.tsx
|
|
7
|
+
const NumberFieldRootDefinition = defineComponent({
|
|
8
|
+
name: "NumberFieldRoot",
|
|
9
|
+
importPath: "@vtex/faststore/components",
|
|
10
|
+
component: NumberFieldRoot,
|
|
11
|
+
editor: {
|
|
12
|
+
label: "Number Field Root",
|
|
13
|
+
category: "layout"
|
|
14
|
+
},
|
|
15
|
+
schema: {
|
|
16
|
+
min: {
|
|
17
|
+
type: "number",
|
|
18
|
+
label: "Min"
|
|
19
|
+
},
|
|
20
|
+
max: {
|
|
21
|
+
type: "number",
|
|
22
|
+
label: "Max"
|
|
23
|
+
},
|
|
24
|
+
step: {
|
|
25
|
+
type: "number",
|
|
26
|
+
label: "Step"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
guideline: "Numeric input with increment/decrement controls and scrub interaction. Set min, max, and step to constrain the value. Contains NumberField.Group wrapping NumberField.Decrement, NumberField.Input, and NumberField.Increment."
|
|
30
|
+
});
|
|
31
|
+
const NumberFieldScrubAreaDefinition = defineComponent({
|
|
32
|
+
name: "NumberFieldScrubArea",
|
|
33
|
+
importPath: "@vtex/faststore/components",
|
|
34
|
+
component: NumberFieldScrubArea,
|
|
35
|
+
editor: {
|
|
36
|
+
label: "Number Field Scrub Area",
|
|
37
|
+
category: "layout"
|
|
38
|
+
},
|
|
39
|
+
schema: {},
|
|
40
|
+
guideline: "Invisible drag area inside NumberField.Root that lets users scrub to change the value. Wrap with NumberField.ScrubAreaCursor for a custom cursor during scrubbing."
|
|
41
|
+
});
|
|
42
|
+
const NumberFieldScrubAreaCursorDefinition = defineComponent({
|
|
43
|
+
name: "NumberFieldScrubAreaCursor",
|
|
44
|
+
importPath: "@vtex/faststore/components",
|
|
45
|
+
component: NumberFieldScrubAreaCursor,
|
|
46
|
+
editor: {
|
|
47
|
+
label: "Number Field Scrub Area Cursor",
|
|
48
|
+
category: "layout"
|
|
49
|
+
},
|
|
50
|
+
schema: {},
|
|
51
|
+
guideline: "Custom cursor shown during scrub interaction inside NumberField.ScrubArea."
|
|
52
|
+
});
|
|
53
|
+
const NumberFieldGroupDefinition = defineComponent({
|
|
54
|
+
name: "NumberFieldGroup",
|
|
55
|
+
importPath: "@vtex/faststore/components",
|
|
56
|
+
component: NumberFieldGroup,
|
|
57
|
+
editor: {
|
|
58
|
+
label: "Number Field Group",
|
|
59
|
+
category: "layout"
|
|
60
|
+
},
|
|
61
|
+
schema: {},
|
|
62
|
+
guideline: "Layout wrapper inside NumberField.Root that contains the decrement button, input, and increment button in a row."
|
|
63
|
+
});
|
|
64
|
+
const NumberFieldDecrementDefinition = defineComponent({
|
|
65
|
+
name: "NumberFieldDecrement",
|
|
66
|
+
importPath: "@vtex/faststore/components",
|
|
67
|
+
component: NumberFieldDecrement,
|
|
68
|
+
editor: {
|
|
69
|
+
label: "Number Field Decrement",
|
|
70
|
+
category: "action"
|
|
71
|
+
},
|
|
72
|
+
schema: {},
|
|
73
|
+
guideline: "Button inside NumberField.Group that decrements the value by step. Disabled automatically when min is reached."
|
|
74
|
+
});
|
|
75
|
+
const NumberFieldInputDefinition = defineComponent({
|
|
76
|
+
name: "NumberFieldInput",
|
|
77
|
+
importPath: "@vtex/faststore/components",
|
|
78
|
+
component: NumberFieldInput,
|
|
79
|
+
editor: {
|
|
80
|
+
label: "Number Field Input",
|
|
81
|
+
category: "action"
|
|
82
|
+
},
|
|
83
|
+
schema: {},
|
|
84
|
+
guideline: "Native input inside NumberField.Group. Displays and accepts the numeric value. Managed by NumberField.Root."
|
|
85
|
+
});
|
|
86
|
+
const NumberFieldIncrementDefinition = defineComponent({
|
|
87
|
+
name: "NumberFieldIncrement",
|
|
88
|
+
importPath: "@vtex/faststore/components",
|
|
89
|
+
component: NumberFieldIncrement,
|
|
90
|
+
editor: {
|
|
91
|
+
label: "Number Field Increment",
|
|
92
|
+
category: "action"
|
|
93
|
+
},
|
|
94
|
+
schema: {},
|
|
95
|
+
guideline: "Button inside NumberField.Group that increments the value by step. Disabled automatically when max is reached."
|
|
96
|
+
});
|
|
97
|
+
function NumberFieldRoot({ min, max, step, disabled, readOnly, required, className, children, ...props }) {
|
|
98
|
+
return /* @__PURE__ */ jsx(NumberField.Root, {
|
|
99
|
+
...props,
|
|
100
|
+
min,
|
|
101
|
+
max,
|
|
102
|
+
step,
|
|
103
|
+
disabled,
|
|
104
|
+
readOnly,
|
|
105
|
+
required,
|
|
106
|
+
className,
|
|
107
|
+
"data-fs-number-field-root": "",
|
|
108
|
+
children
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function NumberFieldScrubArea({ className, children, ...props }) {
|
|
112
|
+
return /* @__PURE__ */ jsx(NumberField.ScrubArea, {
|
|
113
|
+
...props,
|
|
114
|
+
className,
|
|
115
|
+
"data-fs-number-field-scrub-area": "",
|
|
116
|
+
children
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function NumberFieldScrubAreaCursor({ className, children, ...props }) {
|
|
120
|
+
return /* @__PURE__ */ jsx(NumberField.ScrubAreaCursor, {
|
|
121
|
+
...props,
|
|
122
|
+
className,
|
|
123
|
+
children
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function NumberFieldGroup({ className, children, ...props }) {
|
|
127
|
+
return /* @__PURE__ */ jsx(NumberField.Group, {
|
|
128
|
+
...props,
|
|
129
|
+
className,
|
|
130
|
+
"data-fs-number-field-group": "",
|
|
131
|
+
children
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function NumberFieldDecrement({ className, children, ...props }) {
|
|
135
|
+
return /* @__PURE__ */ jsx(NumberField.Decrement, {
|
|
136
|
+
...props,
|
|
137
|
+
className,
|
|
138
|
+
"data-fs-number-field-decrement": "",
|
|
139
|
+
children
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function NumberFieldInput({ className, ...props }) {
|
|
143
|
+
return /* @__PURE__ */ jsx(NumberField.Input, {
|
|
144
|
+
...props,
|
|
145
|
+
className,
|
|
146
|
+
"data-fs-number-field-input": ""
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function NumberFieldIncrement({ className, children, ...props }) {
|
|
150
|
+
return /* @__PURE__ */ jsx(NumberField.Increment, {
|
|
151
|
+
...props,
|
|
152
|
+
className,
|
|
153
|
+
"data-fs-number-field-increment": "",
|
|
154
|
+
children
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
const NumberField$1 = {
|
|
158
|
+
Root: NumberFieldRoot,
|
|
159
|
+
ScrubArea: NumberFieldScrubArea,
|
|
160
|
+
ScrubAreaCursor: NumberFieldScrubAreaCursor,
|
|
161
|
+
Group: NumberFieldGroup,
|
|
162
|
+
Decrement: NumberFieldDecrement,
|
|
163
|
+
Input: NumberFieldInput,
|
|
164
|
+
Increment: NumberFieldIncrement
|
|
165
|
+
};
|
|
166
|
+
//#endregion
|
|
167
|
+
export { NumberField$1 as NumberField, NumberFieldDecrement, NumberFieldDecrementDefinition, NumberFieldGroup, NumberFieldGroupDefinition, NumberFieldIncrement, NumberFieldIncrementDefinition, NumberFieldInput, NumberFieldInputDefinition, NumberFieldRoot, NumberFieldRootDefinition, NumberFieldScrubArea, NumberFieldScrubAreaCursor, NumberFieldScrubAreaCursorDefinition, NumberFieldScrubAreaDefinition };
|
|
168
|
+
|
|
169
|
+
//# sourceMappingURL=number-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-field.js","names":["BaseNumberField","NumberField"],"sources":["../../../src/particles/number-field/number-field.tsx"],"sourcesContent":["'use client';\nimport { NumberField as BaseNumberField } from '@base-ui/react/number-field';\nimport { defineComponent } from '@vtex/fs-core';\nimport type { ComponentPropsWithRef } from 'react';\n\nexport type NumberFieldRootProps = Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'value'> & {\n value?: number | null;\n defaultValue?: number;\n onValueChange?: (value: number | null) => void;\n min?: number;\n max?: number;\n step?: number;\n disabled?: boolean;\n readOnly?: boolean;\n required?: boolean;\n};\n\nexport type NumberFieldScrubAreaProps = ComponentPropsWithRef<'span'>;\n\nexport type NumberFieldScrubAreaCursorProps = ComponentPropsWithRef<'span'>;\n\nexport type NumberFieldGroupProps = ComponentPropsWithRef<'div'>;\n\nexport type NumberFieldDecrementProps = ComponentPropsWithRef<'button'>;\n\nexport type NumberFieldInputProps = ComponentPropsWithRef<'input'>;\n\nexport type NumberFieldIncrementProps = ComponentPropsWithRef<'button'>;\n\nexport const NumberFieldRootDefinition = defineComponent<NumberFieldRootProps>({\n name: 'NumberFieldRoot',\n importPath: '@vtex/faststore/components',\n component: NumberFieldRoot,\n editor: { label: 'Number Field Root', category: 'layout' },\n schema: {\n min: { type: 'number', label: 'Min' },\n max: { type: 'number', label: 'Max' },\n step: { type: 'number', label: 'Step' },\n },\n guideline:\n 'Numeric input with increment/decrement controls and scrub interaction. Set min, max, and step to constrain the value. Contains NumberField.Group wrapping NumberField.Decrement, NumberField.Input, and NumberField.Increment.',\n});\n\nexport const NumberFieldScrubAreaDefinition = defineComponent<NumberFieldScrubAreaProps>({\n name: 'NumberFieldScrubArea',\n importPath: '@vtex/faststore/components',\n component: NumberFieldScrubArea,\n editor: { label: 'Number Field Scrub Area', category: 'layout' },\n schema: {},\n guideline:\n 'Invisible drag area inside NumberField.Root that lets users scrub to change the value. Wrap with NumberField.ScrubAreaCursor for a custom cursor during scrubbing.',\n});\n\nexport const NumberFieldScrubAreaCursorDefinition = defineComponent<NumberFieldScrubAreaCursorProps>({\n name: 'NumberFieldScrubAreaCursor',\n importPath: '@vtex/faststore/components',\n component: NumberFieldScrubAreaCursor,\n editor: { label: 'Number Field Scrub Area Cursor', category: 'layout' },\n schema: {},\n guideline: 'Custom cursor shown during scrub interaction inside NumberField.ScrubArea.',\n});\n\nexport const NumberFieldGroupDefinition = defineComponent<NumberFieldGroupProps>({\n name: 'NumberFieldGroup',\n importPath: '@vtex/faststore/components',\n component: NumberFieldGroup,\n editor: { label: 'Number Field Group', category: 'layout' },\n schema: {},\n guideline:\n 'Layout wrapper inside NumberField.Root that contains the decrement button, input, and increment button in a row.',\n});\n\nexport const NumberFieldDecrementDefinition = defineComponent<NumberFieldDecrementProps>({\n name: 'NumberFieldDecrement',\n importPath: '@vtex/faststore/components',\n component: NumberFieldDecrement,\n editor: { label: 'Number Field Decrement', category: 'action' },\n schema: {},\n guideline:\n 'Button inside NumberField.Group that decrements the value by step. Disabled automatically when min is reached.',\n});\n\nexport const NumberFieldInputDefinition = defineComponent<NumberFieldInputProps>({\n name: 'NumberFieldInput',\n importPath: '@vtex/faststore/components',\n component: NumberFieldInput,\n editor: { label: 'Number Field Input', category: 'action' },\n schema: {},\n guideline:\n 'Native input inside NumberField.Group. Displays and accepts the numeric value. Managed by NumberField.Root.',\n});\n\nexport const NumberFieldIncrementDefinition = defineComponent<NumberFieldIncrementProps>({\n name: 'NumberFieldIncrement',\n importPath: '@vtex/faststore/components',\n component: NumberFieldIncrement,\n editor: { label: 'Number Field Increment', category: 'action' },\n schema: {},\n guideline:\n 'Button inside NumberField.Group that increments the value by step. Disabled automatically when max is reached.',\n});\n\nexport function NumberFieldRoot({\n min,\n max,\n step,\n disabled,\n readOnly,\n required,\n className,\n children,\n ...props\n}: NumberFieldRootProps) {\n return (\n <BaseNumberField.Root\n {...props}\n min={min}\n max={max}\n step={step}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n className={className}\n data-fs-number-field-root=\"\"\n >\n {children}\n </BaseNumberField.Root>\n );\n}\n\nexport function NumberFieldScrubArea({ className, children, ...props }: NumberFieldScrubAreaProps) {\n return (\n <BaseNumberField.ScrubArea {...props} className={className} data-fs-number-field-scrub-area=\"\">\n {children}\n </BaseNumberField.ScrubArea>\n );\n}\n\nexport function NumberFieldScrubAreaCursor({ className, children, ...props }: NumberFieldScrubAreaCursorProps) {\n return (\n <BaseNumberField.ScrubAreaCursor {...props} className={className}>\n {children}\n </BaseNumberField.ScrubAreaCursor>\n );\n}\n\nexport function NumberFieldGroup({ className, children, ...props }: NumberFieldGroupProps) {\n return (\n <BaseNumberField.Group {...props} className={className} data-fs-number-field-group=\"\">\n {children}\n </BaseNumberField.Group>\n );\n}\n\nexport function NumberFieldDecrement({ className, children, ...props }: NumberFieldDecrementProps) {\n return (\n <BaseNumberField.Decrement {...props} className={className} data-fs-number-field-decrement=\"\">\n {children}\n </BaseNumberField.Decrement>\n );\n}\n\nexport function NumberFieldInput({ className, ...props }: NumberFieldInputProps) {\n return <BaseNumberField.Input {...props} className={className} data-fs-number-field-input=\"\" />;\n}\n\nexport function NumberFieldIncrement({ className, children, ...props }: NumberFieldIncrementProps) {\n return (\n <BaseNumberField.Increment {...props} className={className} data-fs-number-field-increment=\"\">\n {children}\n </BaseNumberField.Increment>\n );\n}\n\nexport const NumberField = {\n Root: NumberFieldRoot,\n ScrubArea: NumberFieldScrubArea,\n ScrubAreaCursor: NumberFieldScrubAreaCursor,\n Group: NumberFieldGroup,\n Decrement: NumberFieldDecrement,\n Input: NumberFieldInput,\n Increment: NumberFieldIncrement,\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentDefinition } from "../../core/dist/define-component.js";
|
|
2
|
+
import "../../core/dist/index.js";
|
|
3
|
+
//#region src/particles/password-field/password-field.d.ts
|
|
4
|
+
export type PasswordFieldRequirement = 'mandatory' | 'optional';
|
|
5
|
+
export type PasswordFieldAutoComplete = 'current-password' | 'new-password';
|
|
6
|
+
export type PasswordFieldProps = {
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
requirement?: PasswordFieldRequirement;
|
|
15
|
+
autoComplete?: PasswordFieldAutoComplete;
|
|
16
|
+
showPasswordLabel?: string;
|
|
17
|
+
hidePasswordLabel?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
name?: string;
|
|
20
|
+
id?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const PasswordFieldDefinition: ComponentDefinition<PasswordFieldProps>;
|
|
24
|
+
/**
|
|
25
|
+
* Composes Field + Input + Toggle + Icon into a password input with a show/hide reveal
|
|
26
|
+
* toggle. Presence-only validation is caller-driven via `invalid`/`errorMessage` — this
|
|
27
|
+
* particle computes no validity of its own. `revealed` is local, uncontrolled UI state.
|
|
28
|
+
*/
|
|
29
|
+
export declare function PasswordField({ value, defaultValue, onValueChange, invalid, errorMessage, label, placeholder, requirement, autoComplete, showPasswordLabel, hidePasswordLabel, disabled, name, id, className }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
//# sourceMappingURL=password-field.d.ts.map
|