@fluidattacks/design 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/_nodeUtil.js +4 -0
- package/dist/_virtual/capitalize.js +7 -0
- package/dist/_virtual/dayjs.min.js +8 -0
- package/dist/_virtual/dayjs.min2.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index.umd.js +7 -0
- package/dist/_virtual/index.umd2.js +4 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/_virtual/index4.js +7 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index7.js +5 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +4 -0
- package/dist/_virtual/isBuffer.js +4 -0
- package/dist/_virtual/isEmpty.js +7 -0
- package/dist/_virtual/isEqual.js +7 -0
- package/dist/_virtual/isNaN.js +7 -0
- package/dist/_virtual/isNil.js +7 -0
- package/dist/_virtual/isNumber.js +7 -0
- package/dist/_virtual/isUndefined.js +7 -0
- package/dist/_virtual/localizedFormat.js +7 -0
- package/dist/_virtual/localizedFormat2.js +4 -0
- package/dist/_virtual/lodash.js +8 -0
- package/dist/_virtual/lodash2.js +4 -0
- package/dist/_virtual/lowerFirst.js +7 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/scrollparent.js +7 -0
- package/dist/_virtual/scrollparent2.js +4 -0
- package/dist/_virtual/snakeCase.js +7 -0
- package/dist/_virtual/some.js +7 -0
- package/dist/_virtual/transform.js +7 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/components/@core/constants.js +78 -0
- package/dist/components/@core/index.js +18 -15
- package/dist/components/@core/styles.js +43 -0
- package/dist/components/@core/utils.js +115 -0
- package/dist/components/@core/variants/utils.js +6 -0
- package/dist/components/accordion/accordion-content/index.js +23 -3
- package/dist/components/accordion/index.js +93 -5
- package/dist/components/advanced-badge/index.js +75 -4
- package/dist/components/advisories-card/index.js +149 -5
- package/dist/components/alert/index.js +91 -4
- package/dist/components/alert/styles.js +116 -0
- package/dist/components/avatar/index.js +80 -5
- package/dist/components/avatar/styles.js +86 -0
- package/dist/components/button/index.js +104 -4
- package/dist/components/button/styles.js +117 -0
- package/dist/components/card/card-header/index.js +92 -4
- package/dist/components/card/card-with-image/index.js +93 -5
- package/dist/components/card/card-with-input/index.js +142 -5
- package/dist/components/card/card-with-input/styles.js +29 -0
- package/dist/components/card/card-with-options/index.js +83 -5
- package/dist/components/card/card-with-selector/index.js +134 -4
- package/dist/components/card/card-with-selector/styles.js +34 -0
- package/dist/components/card/card-with-switch/index.js +46 -4
- package/dist/components/card/index.js +13 -7
- package/dist/components/card/indicator-card/index.js +73 -5
- package/dist/components/card-container/index.js +30 -4
- package/dist/components/carousel/index.js +43 -6
- package/dist/components/carousel/styles.js +39 -0
- package/dist/components/checkbox/index.js +68 -4
- package/dist/components/checkbox/styles.js +82 -0
- package/dist/components/circular-progress/index.js +94 -4
- package/dist/components/cloud-image/index.js +25 -6
- package/dist/components/code-snippet/constants.js +72 -0
- package/dist/components/code-snippet/index.js +176 -6
- package/dist/components/colors/index.js +210 -6
- package/dist/components/conditions-dialog/index.js +88 -6
- package/dist/components/confirm-dialog/index.js +40 -6
- package/dist/components/container/index.js +31 -4
- package/dist/components/container/styles.js +23 -0
- package/dist/components/copy-button/index.js +41 -4
- package/dist/components/divider/index.js +25 -4
- package/dist/components/drawer/index.js +229 -6
- package/dist/components/drawer/styles.js +64 -0
- package/dist/components/dropdown/index.js +77 -6
- package/dist/components/dropdown/styles.js +45 -0
- package/dist/components/empty-state/empty-button/index.js +13 -3
- package/dist/components/empty-state/index.js +60 -3
- package/dist/components/empty-state/styles.js +41 -0
- package/dist/components/fa-tag/index.js +30 -3
- package/dist/components/fa-tag/styles.js +53 -0
- package/dist/components/file-preview/index.js +16 -3
- package/dist/components/file-preview/styles.js +27 -0
- package/dist/components/file-preview/utils.js +10 -0
- package/dist/components/filters/active-filters/active-filter/index.js +59 -3
- package/dist/components/filters/active-filters/index.js +49 -3
- package/dist/components/filters/active-filters/utils.js +64 -0
- package/dist/components/filters/context/index.js +17 -3
- package/dist/components/filters/filters-menu/index.js +199 -6
- package/dist/components/filters/hooks.js +25 -0
- package/dist/components/filters/index.js +219 -7
- package/dist/components/filters/options-menu/include-exclude/index.js +135 -5
- package/dist/components/filters/options-menu/include-exclude/multi-select.js +151 -0
- package/dist/components/filters/options-menu/include-exclude/styles.js +119 -0
- package/dist/components/filters/options-menu/index.js +289 -6
- package/dist/components/filters/options-menu/options/index.js +360 -6
- package/dist/components/filters/options-menu/single-select/index.js +236 -6
- package/dist/components/filters/options-menu/single-select/styles.js +33 -0
- package/dist/components/filters/options-menu/utils.js +4 -0
- package/dist/components/filters/search/no-matches/index.js +51 -4
- package/dist/components/filters/styles.js +121 -0
- package/dist/components/filters/utils.js +36 -0
- package/dist/components/form/index.js +103 -11
- package/dist/components/form/inner-form/index.js +8 -3
- package/dist/components/form/styles.js +15 -0
- package/dist/components/grid-container/index.js +33 -4
- package/dist/components/grid-container/styles.js +26 -0
- package/dist/components/group-selector/index.js +143 -6
- package/dist/components/group-selector/option-container/index.js +30 -6
- package/dist/components/group-selector/styles.js +42 -0
- package/dist/components/icon/index.js +54 -4
- package/dist/components/icon/styles.js +60 -0
- package/dist/components/icon-button/index.js +58 -4
- package/dist/components/icon-button/styles.js +29 -0
- package/dist/components/indicator-card-db/index.js +71 -5
- package/dist/components/indicator-card-db/styles.js +22 -0
- package/dist/components/inputs/fields/combobox/field/index.js +431 -6
- package/dist/components/inputs/fields/combobox/index.js +94 -4
- package/dist/components/inputs/fields/combobox/option/index.js +121 -6
- package/dist/components/inputs/fields/combobox/styles.js +132 -0
- package/dist/components/inputs/fields/date/calendar/cell/index.js +25 -5
- package/dist/components/inputs/fields/date/calendar/grid/index.js +23 -4
- package/dist/components/inputs/fields/date/calendar/header/index.js +42 -5
- package/dist/components/inputs/fields/date/calendar/index.js +29 -4
- package/dist/components/inputs/fields/date/calendar/styles.js +144 -0
- package/dist/components/inputs/fields/date/index.js +87 -5
- package/dist/components/inputs/fields/date-range/calendar/index.js +34 -5
- package/dist/components/inputs/fields/date-range/index.js +137 -5
- package/dist/components/inputs/fields/date-range/styles.js +16 -0
- package/dist/components/inputs/fields/date-time/calendar/index.js +49 -5
- package/dist/components/inputs/fields/date-time/calendar/styles.js +21 -0
- package/dist/components/inputs/fields/date-time/index.js +107 -5
- package/dist/components/inputs/fields/editable/index.js +26 -4
- package/dist/components/inputs/fields/input-array/field/index.js +69 -4
- package/dist/components/inputs/fields/input-array/index.js +65 -5
- package/dist/components/inputs/fields/input-file/default/index.js +65 -4
- package/dist/components/inputs/fields/input-file/dropzone/index.js +218 -5
- package/dist/components/inputs/fields/input-file/index.js +124 -5
- package/dist/components/inputs/fields/input-file/styles.js +137 -0
- package/dist/components/inputs/fields/input-section/index.js +29 -3
- package/dist/components/inputs/fields/input-tags/field/index.js +117 -5
- package/dist/components/inputs/fields/input-tags/index.js +64 -4
- package/dist/components/inputs/fields/input-tags/styles.js +11 -0
- package/dist/components/inputs/fields/number/compact/index.js +38 -4
- package/dist/components/inputs/fields/number/index.js +83 -3
- package/dist/components/inputs/fields/number-range/index.js +57 -3
- package/dist/components/inputs/fields/phone/index.js +181 -7
- package/dist/components/inputs/fields/phone/styles.js +110 -0
- package/dist/components/inputs/fields/text-area/index.js +94 -4
- package/dist/components/inputs/fields/text-input/index.js +133 -5
- package/dist/components/inputs/index.js +31 -16
- package/dist/components/inputs/label/index.js +51 -5
- package/dist/components/inputs/outline-container/index.js +106 -4
- package/dist/components/inputs/styles.js +264 -0
- package/dist/components/inputs/utils/action-button/index.js +29 -4
- package/dist/components/inputs/utils/calendar-button/index.js +35 -5
- package/dist/components/inputs/utils/date-selector/index.js +85 -4
- package/dist/components/inputs/utils/date-time-field/index.js +133 -7
- package/dist/components/inputs/utils/dialog/index.js +12 -5
- package/dist/components/inputs/utils/number-field/index.js +190 -6
- package/dist/components/inputs/utils/popover/index.js +61 -6
- package/dist/components/inputs/utils/styles.js +113 -0
- package/dist/components/inputs/utils.js +44 -0
- package/dist/components/item-card-db/index.js +70 -4
- package/dist/components/item-card-db/styles.js +47 -0
- package/dist/components/language-switcher/index.js +92 -7
- package/dist/components/language-switcher/language-option/index.js +35 -5
- package/dist/components/language-switcher/spinner/index.js +15 -3
- package/dist/components/language-switcher/styles.js +121 -0
- package/dist/components/layout/categories/buttons/index.js +14 -4
- package/dist/components/layout/categories/column/index.js +23 -3
- package/dist/components/layout/categories/column/styles.js +32 -0
- package/dist/components/layout/categories/gap/index.js +3 -2
- package/dist/components/layout/categories/gap/styles.js +17 -0
- package/dist/components/layout/categories/row/index.js +19 -3
- package/dist/components/layout/categories/row/styles.js +30 -0
- package/dist/components/layout/index.js +9 -6
- package/dist/components/link/index.js +61 -3
- package/dist/components/link/styles.js +57 -0
- package/dist/components/list-item/index.js +69 -6
- package/dist/components/list-item/styles.js +64 -0
- package/dist/components/little-flag/index.js +17 -3
- package/dist/components/little-flag/styles.js +18 -0
- package/dist/components/loading/index.js +22 -4
- package/dist/components/loading/styles.js +71 -0
- package/dist/components/loading/types.js +4 -0
- package/dist/components/logo/index.js +11 -3
- package/dist/components/lottie/index.js +7 -3
- package/dist/components/lottie/styles.js +16 -0
- package/dist/components/menu/index.js +57 -5
- package/dist/components/message-banner/index.js +76 -5
- package/dist/components/message-banner/styles.js +23 -0
- package/dist/components/modal/columns-modal/index.js +146 -6
- package/dist/components/modal/columns-modal/preview-panel/index.js +100 -5
- package/dist/components/modal/columns-modal/preview-panel/styles.js +29 -0
- package/dist/components/modal/columns-modal/search-panel/index.js +127 -4
- package/dist/components/modal/columns-modal/search-panel/styles.js +22 -0
- package/dist/components/modal/footer/index.js +57 -5
- package/dist/components/modal/header/index.js +65 -6
- package/dist/components/modal/index.js +112 -10
- package/dist/components/modal/modal-confirm/index.js +50 -3
- package/dist/components/modal/styles.js +156 -0
- package/dist/components/modal/utils.js +13 -0
- package/dist/components/notification/index.js +63 -5
- package/dist/components/notification/styles.js +62 -0
- package/dist/components/notification/utils.js +4 -0
- package/dist/components/notification-sign/index.js +23 -4
- package/dist/components/notification-sign/styles.js +34 -0
- package/dist/components/oauth-selector/index.js +93 -6
- package/dist/components/oauth-selector/option-container/index.js +74 -4
- package/dist/components/option-card/index.js +83 -5
- package/dist/components/package-card/index.js +105 -6
- package/dist/components/paginator-db/btn/index.js +19 -3
- package/dist/components/paginator-db/btn/styles.js +39 -0
- package/dist/components/paginator-db/dropdown/index.js +112 -6
- package/dist/components/paginator-db/index.js +123 -5
- package/dist/components/paginator-db/styles.js +31 -0
- package/dist/components/paginator-db/utils.js +21 -0
- package/dist/components/pop-up/description/index.js +58 -5
- package/dist/components/pop-up/index.js +164 -7
- package/dist/components/premium-feature/index.js +53 -4
- package/dist/components/premium-feature/styles.js +36 -0
- package/dist/components/priority-cards/card/index.js +81 -5
- package/dist/components/priority-cards/card/styles.js +18 -0
- package/dist/components/priority-cards/index.js +50 -6
- package/dist/components/priority-score/index.js +28 -4
- package/dist/components/progress-bar/index.js +61 -3
- package/dist/components/progress-bar/styles.js +95 -0
- package/dist/components/progress-indicator/in-progress-icon/index.js +51 -3
- package/dist/components/progress-indicator/index.js +29 -5
- package/dist/components/progress-indicator/step/index.js +81 -4
- package/dist/components/progress-indicator/styles.js +36 -0
- package/dist/components/radio-button/index.js +44 -4
- package/dist/components/radio-button/styles.js +85 -0
- package/dist/components/rank-position/icon/index.js +51 -3
- package/dist/components/rank-position/index.js +40 -4
- package/dist/components/rules-card/index.js +166 -6
- package/dist/components/scroll-button/index.js +49 -5
- package/dist/components/scroll-button/styles.js +13 -0
- package/dist/components/search/index.js +113 -6
- package/dist/components/search-dropdown/index.js +102 -6
- package/dist/components/search-dropdown/styles.js +79 -0
- package/dist/components/segmented-control/index.js +35 -4
- package/dist/components/segmented-control/styles.js +51 -0
- package/dist/components/segmented-progress-bar/index.js +47 -4
- package/dist/components/segmented-progress-bar/styles.js +35 -0
- package/dist/components/severity-badge/index.js +46 -4
- package/dist/components/severity-badge/utils.js +31 -0
- package/dist/components/severity-indicator/index.js +47 -4
- package/dist/components/severity-indicator/styles.js +23 -0
- package/dist/components/severity-indicator/utils.js +12 -0
- package/dist/components/severity-overview/badge/index.js +44 -4
- package/dist/components/severity-overview/index.js +15 -3
- package/dist/components/severity-overview/utils.js +29 -0
- package/dist/components/show-on-hover/index.js +11 -3
- package/dist/components/show-on-hover/styles.js +23 -0
- package/dist/components/slide-out-menu/index.js +142 -6
- package/dist/components/slide-out-menu/menu-item/index.js +65 -4
- package/dist/components/slide-out-menu/styles.js +29 -0
- package/dist/components/slider/index.js +79 -7
- package/dist/components/slider/styles.js +83 -0
- package/dist/components/slider/thumb/index.js +17 -5
- package/dist/components/slider/utils.js +4 -0
- package/dist/components/step-lapse/index.js +71 -4
- package/dist/components/step-lapse/styles.js +93 -0
- package/dist/components/summary-card/index.js +69 -4
- package/dist/components/table/context/index.js +13 -3
- package/dist/components/table/export-csv/index.js +40 -5
- package/dist/components/table/export-csv/utils.js +32 -0
- package/dist/components/table/index.js +22 -2
- package/dist/components/table/pagination/pagination-control/index.js +41 -4
- package/dist/components/table/pagination/pagination-control/styles.js +32 -0
- package/dist/components/table/pagination/pagination-dropdown/index.js +124 -6
- package/dist/components/table/pagination/pagination-size/index.js +29 -4
- package/dist/components/table/sort-icon/index.js +28 -4
- package/dist/components/table/sort-icon/styles.js +30 -0
- package/dist/components/table/styles.js +260 -0
- package/dist/components/table/table-body/index.js +108 -6
- package/dist/components/table/table-body/styles.js +10 -0
- package/dist/components/table/table-column-toggle/index.js +57 -5
- package/dist/components/table/table-content/head/index.js +149 -7
- package/dist/components/table/table-content/index.js +55 -4
- package/dist/components/table/table-footer/footer-content/index.js +4 -2
- package/dist/components/table/table-footer/index.js +16 -3
- package/dist/components/table/table-options/caption-content/index.js +6 -3
- package/dist/components/table/table-options/controls-content/index.js +6 -3
- package/dist/components/table/table-options/highlighted-content/index.js +5 -3
- package/dist/components/table/table-options/index.js +45 -4
- package/dist/components/table/table-options/styles.js +89 -0
- package/dist/components/table/wrapper/index.js +61 -6
- package/dist/components/table-button/index.js +47 -4
- package/dist/components/table-button/styles.js +59 -0
- package/dist/components/table-content/index.js +64 -5
- package/dist/components/table-content/item-content/index.js +60 -4
- package/dist/components/table-content/styles.js +17 -0
- package/dist/components/table-of-contents/index.js +42 -4
- package/dist/components/table-of-contents/styles.js +77 -0
- package/dist/components/tabs/index.js +61 -4
- package/dist/components/tabs/styles.js +64 -0
- package/dist/components/tabs/tab/index.js +42 -4
- package/dist/components/tag/index.js +102 -4
- package/dist/components/tag/styles.js +172 -0
- package/dist/components/timeline/card/index.js +50 -4
- package/dist/components/timeline/index.js +14 -4
- package/dist/components/timeline/styles.js +101 -0
- package/dist/components/toggle/index.js +96 -4
- package/dist/components/toggle/styles.js +186 -0
- package/dist/components/tooltip/index.js +133 -7
- package/dist/components/tooltip/styles.js +58 -0
- package/dist/components/tour/index.js +75 -7
- package/dist/components/tree/index.js +156 -5
- package/dist/components/truncated-list/index.js +51 -4
- package/dist/components/typography/heading/index.js +51 -4
- package/dist/components/typography/index.js +6 -4
- package/dist/components/typography/span/index.js +45 -4
- package/dist/components/typography/styles.js +141 -0
- package/dist/components/typography/text/index.js +53 -4
- package/dist/components/weaknesses-card/index.js +167 -6
- package/dist/components/weaknesses-card/styles.js +33 -0
- package/dist/globals/design-tokens-css/index.js +1 -1
- package/dist/globals/designs-provider/index.js +3 -3
- package/dist/hooks/index.js +18 -9
- package/dist/hooks/use-active-section.js +52 -0
- package/dist/hooks/use-carousel.js +19 -0
- package/dist/hooks/use-click-outside.js +20 -0
- package/dist/hooks/use-cloudinary-image.js +16 -0
- package/dist/hooks/use-columns-modal.js +54 -0
- package/dist/hooks/use-debounced-callback.js +9 -0
- package/dist/hooks/use-filters.js +188 -0
- package/dist/hooks/use-local-storage.js +36 -0
- package/dist/hooks/use-modal.js +14 -0
- package/dist/hooks/use-mount-effect.js +8 -0
- package/dist/hooks/use-query-states.js +55 -0
- package/dist/hooks/use-search.js +11 -0
- package/dist/index.js +334 -190
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/@cloudinary/react/dist/index.js +2385 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/background/actions/BackgroundColor.js +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryAction.js +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryFormatAction.js +36 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/Action.js +59 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/RawAction.js +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/internalConstants.js +63 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/ActionModel.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IErrorObject.js +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/QualifierModel.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/actionToJson.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/qualifierToJson.js +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/qualifier/Qualifier.js +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/qualifier/QualifierValue.js +42 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/dataStructureUtils.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/objectFlip.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/prepareColor.js +6 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/utils/unsupportedError.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/flag/FlagQualifier.js +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/flag.js +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/format/FormatQualifier.js +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/progressive.js +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/ImageTransformation.js +6 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/Transformation.js +244 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/VideoTransformation.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryFile.js +166 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryImage.js +10 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryTransformable.js +201 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryVideo.js +26 -0
- package/dist/node_modules/@cloudinary/url-gen/config/BaseConfig.js +14 -0
- package/dist/node_modules/@cloudinary/url-gen/config/URLConfig.js +81 -0
- package/dist/node_modules/@cloudinary/url-gen/instance/Cloudinary.js +24 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/internalConstants.js +16 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/cloudinaryURL.js +23 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/urlUtils/isFileName.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/urlUtils/isUrl.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/url/urlUtils/publicIDContainsVersion.js +6 -0
- package/dist/node_modules/@cloudinary/url-gen/internal/utils/packageVersion.js +4 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/base64Map.js +10 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/encodeOSVersion.js +8 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/encodeVersion.js +17 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/getAnalyticsOptions.js +15 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/getSDKAnalyticsSignature.js +45 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/padVersion.js +14 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/reverseVersion.js +8 -0
- package/dist/node_modules/@cloudinary/url-gen/sdkAnalytics/stringPad.js +13 -0
- package/dist/node_modules/@fastify/deepmerge/index.js +102 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +507 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +686 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +161 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +228 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@gilbarbara/deep-equal/dist/index.js +78 -0
- package/dist/node_modules/@gilbarbara/hooks/dist/index.js +81 -0
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +33 -0
- package/dist/node_modules/@hookform/resolvers/yup/dist/yup.js +33 -0
- package/dist/node_modules/@internationalized/date/dist/private/CalendarDate.js +243 -0
- package/dist/node_modules/@internationalized/date/dist/private/DateFormatter.js +102 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/BuddhistCalendar.js +32 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/EthiopicCalendar.js +114 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +104 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/HebrewCalendar.js +88 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/IndianCalendar.js +40 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/IslamicCalendar.js +122 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/JapaneseCalendar.js +128 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/PersianCalendar.js +53 -0
- package/dist/node_modules/@internationalized/date/dist/private/calendars/TaiwanCalendar.js +54 -0
- package/dist/node_modules/@internationalized/date/dist/private/conversion.js +141 -0
- package/dist/node_modules/@internationalized/date/dist/private/createCalendar.js +42 -0
- package/dist/node_modules/@internationalized/date/dist/private/manipulation.js +211 -0
- package/dist/node_modules/@internationalized/date/dist/private/queries.js +150 -0
- package/dist/node_modules/@internationalized/date/dist/private/string.js +50 -0
- package/dist/node_modules/@internationalized/date/dist/private/utils.js +6 -0
- package/dist/node_modules/@internationalized/date/dist/private/weekStartData.js +100 -0
- package/dist/node_modules/@internationalized/number/dist/private/NumberFormatter.js +121 -0
- package/dist/node_modules/@internationalized/number/dist/private/NumberParser.js +163 -0
- package/dist/node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.js +47 -0
- package/dist/node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.js +32 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +29 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +696 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +33 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +53 -0
- package/dist/node_modules/character-entities-legacy/index.js +111 -0
- package/dist/node_modules/character-reference-invalid/index.js +33 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/comma-separated-tokens/index.js +13 -0
- package/dist/node_modules/dayjs/dayjs.min.js +282 -0
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +29 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/components/LazyMotion/index.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +65 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +285 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +62 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/features-animation.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +28 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +20 -0
- package/dist/node_modules/hastscript/lib/create-h.js +112 -0
- package/dist/node_modules/hastscript/lib/index.js +8 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +44 -0
- package/dist/node_modules/is-alphabetical/index.js +7 -0
- package/dist/node_modules/is-alphanumerical/index.js +8 -0
- package/dist/node_modules/is-decimal/index.js +7 -0
- package/dist/node_modules/is-hexadecimal/index.js +7 -0
- package/dist/node_modules/is-lite/dist/index.js +139 -0
- package/dist/node_modules/lodash/_DataView.js +12 -0
- package/dist/node_modules/lodash/_Hash.js +22 -0
- package/dist/node_modules/lodash/_ListCache.js +22 -0
- package/dist/node_modules/lodash/_Map.js +12 -0
- package/dist/node_modules/lodash/_MapCache.js +22 -0
- package/dist/node_modules/lodash/_Promise.js +12 -0
- package/dist/node_modules/lodash/_Set.js +12 -0
- package/dist/node_modules/lodash/_SetCache.js +18 -0
- package/dist/node_modules/lodash/_Stack.js +20 -0
- package/dist/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/lodash/_arrayFilter.js +16 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +26 -0
- package/dist/node_modules/lodash/_arrayMap.js +14 -0
- package/dist/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/node_modules/lodash/_arrayReduce.js +15 -0
- package/dist/node_modules/lodash/_arraySome.js +15 -0
- package/dist/node_modules/lodash/_asciiToArray.js +12 -0
- package/dist/node_modules/lodash/_asciiWords.js +13 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +17 -0
- package/dist/node_modules/lodash/_baseCreate.js +23 -0
- package/dist/node_modules/lodash/_baseEach.js +12 -0
- package/dist/node_modules/lodash/_baseFor.js +11 -0
- package/dist/node_modules/lodash/_baseForOwn.js +15 -0
- package/dist/node_modules/lodash/_baseGet.js +18 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +16 -0
- package/dist/node_modules/lodash/_baseGetTag.js +16 -0
- package/dist/node_modules/lodash/_baseHasIn.js +12 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +15 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +15 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +38 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +37 -0
- package/dist/node_modules/lodash/_baseIsNative.js +22 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +17 -0
- package/dist/node_modules/lodash/_baseIteratee.js +18 -0
- package/dist/node_modules/lodash/_baseKeys.js +20 -0
- package/dist/node_modules/lodash/_baseMatches.js +19 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +23 -0
- package/dist/node_modules/lodash/_baseProperty.js +14 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/dist/node_modules/lodash/_basePropertyOf.js +14 -0
- package/dist/node_modules/lodash/_baseSlice.js +16 -0
- package/dist/node_modules/lodash/_baseSome.js +17 -0
- package/dist/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/node_modules/lodash/_baseToString.js +24 -0
- package/dist/node_modules/lodash/_baseUnary.js +14 -0
- package/dist/node_modules/lodash/_cacheHas.js +12 -0
- package/dist/node_modules/lodash/_castPath.js +17 -0
- package/dist/node_modules/lodash/_castSlice.js +15 -0
- package/dist/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/lodash/_createBaseEach.js +22 -0
- package/dist/node_modules/lodash/_createBaseFor.js +19 -0
- package/dist/node_modules/lodash/_createCaseFirst.js +21 -0
- package/dist/node_modules/lodash/_createCompounder.js +18 -0
- package/dist/node_modules/lodash/_deburrLetter.js +204 -0
- package/dist/node_modules/lodash/_equalArrays.js +46 -0
- package/dist/node_modules/lodash/_equalByTag.js +51 -0
- package/dist/node_modules/lodash/_equalObjects.js +42 -0
- package/dist/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/node_modules/lodash/_getAllKeys.js +16 -0
- package/dist/node_modules/lodash/_getMapData.js +15 -0
- package/dist/node_modules/lodash/_getMatchData.js +19 -0
- package/dist/node_modules/lodash/_getNative.js +16 -0
- package/dist/node_modules/lodash/_getPrototype.js +11 -0
- package/dist/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/node_modules/lodash/_getSymbols.js +16 -0
- package/dist/node_modules/lodash/_getTag.js +33 -0
- package/dist/node_modules/lodash/_getValue.js +12 -0
- package/dist/node_modules/lodash/_hasPath.js +26 -0
- package/dist/node_modules/lodash/_hasUnicode.js +13 -0
- package/dist/node_modules/lodash/_hasUnicodeWord.js +13 -0
- package/dist/node_modules/lodash/_hashClear.js +14 -0
- package/dist/node_modules/lodash/_hashDelete.js +13 -0
- package/dist/node_modules/lodash/_hashGet.js +19 -0
- package/dist/node_modules/lodash/_hashHas.js +15 -0
- package/dist/node_modules/lodash/_hashSet.js +15 -0
- package/dist/node_modules/lodash/_isIndex.js +14 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +20 -0
- package/dist/node_modules/lodash/_isKey.js +18 -0
- package/dist/node_modules/lodash/_isKeyable.js +13 -0
- package/dist/node_modules/lodash/_isMasked.js +17 -0
- package/dist/node_modules/lodash/_isPrototype.js +14 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +14 -0
- package/dist/node_modules/lodash/_listCacheClear.js +12 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +18 -0
- package/dist/node_modules/lodash/_listCacheGet.js +15 -0
- package/dist/node_modules/lodash/_listCacheHas.js +14 -0
- package/dist/node_modules/lodash/_listCacheSet.js +15 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +20 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +15 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +14 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +14 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +15 -0
- package/dist/node_modules/lodash/_mapToArray.js +15 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +14 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +17 -0
- package/dist/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/lodash/_nodeUtil.js +19 -0
- package/dist/node_modules/lodash/_objectToString.js +13 -0
- package/dist/node_modules/lodash/_overArg.js +14 -0
- package/dist/node_modules/lodash/_root.js +11 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +13 -0
- package/dist/node_modules/lodash/_setCacheHas.js +12 -0
- package/dist/node_modules/lodash/_setToArray.js +15 -0
- package/dist/node_modules/lodash/_stackClear.js +14 -0
- package/dist/node_modules/lodash/_stackDelete.js +13 -0
- package/dist/node_modules/lodash/_stackGet.js +12 -0
- package/dist/node_modules/lodash/_stackHas.js +12 -0
- package/dist/node_modules/lodash/_stackSet.js +23 -0
- package/dist/node_modules/lodash/_stringToArray.js +16 -0
- package/dist/node_modules/lodash/_stringToPath.js +16 -0
- package/dist/node_modules/lodash/_toKey.js +17 -0
- package/dist/node_modules/lodash/_toSource.js +23 -0
- package/dist/node_modules/lodash/_unicodeToArray.js +13 -0
- package/dist/node_modules/lodash/_unicodeWords.js +22 -0
- package/dist/node_modules/lodash/capitalize.js +15 -0
- package/dist/node_modules/lodash/deburr.js +15 -0
- package/dist/node_modules/lodash/eq.js +12 -0
- package/dist/node_modules/lodash/get.js +15 -0
- package/dist/node_modules/lodash/hasIn.js +15 -0
- package/dist/node_modules/lodash/identity.js +12 -0
- package/dist/node_modules/lodash/isArguments.js +16 -0
- package/dist/node_modules/lodash/isArray.js +10 -0
- package/dist/node_modules/lodash/isArrayLike.js +15 -0
- package/dist/node_modules/lodash/isBuffer.js +14 -0
- package/dist/node_modules/lodash/isEmpty.js +33 -0
- package/dist/node_modules/lodash/isEqual.js +14 -0
- package/dist/node_modules/lodash/isFunction.js +18 -0
- package/dist/node_modules/lodash/isLength.js +13 -0
- package/dist/node_modules/lodash/isNaN.js +14 -0
- package/dist/node_modules/lodash/isNil.js +12 -0
- package/dist/node_modules/lodash/isNumber.js +15 -0
- package/dist/node_modules/lodash/isObject.js +13 -0
- package/dist/node_modules/lodash/isObjectLike.js +12 -0
- package/dist/node_modules/lodash/isSymbol.js +15 -0
- package/dist/node_modules/lodash/isTypedArray.js +13 -0
- package/dist/node_modules/lodash/isUndefined.js +12 -0
- package/dist/node_modules/lodash/keys.js +16 -0
- package/dist/node_modules/lodash/lodash.js +3692 -0
- package/dist/node_modules/lodash/lowerFirst.js +11 -0
- package/dist/node_modules/lodash/memoize.js +23 -0
- package/dist/node_modules/lodash/property.js +17 -0
- package/dist/node_modules/lodash/snakeCase.js +13 -0
- package/dist/node_modules/lodash/some.js +19 -0
- package/dist/node_modules/lodash/stubArray.js +12 -0
- package/dist/node_modules/lodash/stubFalse.js +12 -0
- package/dist/node_modules/lodash/toString.js +14 -0
- package/dist/node_modules/lodash/transform.js +30 -0
- package/dist/node_modules/lodash/upperFirst.js +11 -0
- package/dist/node_modules/lodash/words.js +17 -0
- package/dist/node_modules/lottie-light-react/build/index.umd.js +5068 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +112 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +144 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +106 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +178 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +46 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +68 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +74 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +33 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +43 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +618 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +263 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +65 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +143 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +51 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +215 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +51 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +19 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +32 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +14 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
- package/dist/node_modules/object-assign/index.js +54 -0
- package/dist/node_modules/parse-entities/lib/index.js +135 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-aria/dist/private/button/useButton.js +56 -0
- package/dist/node_modules/react-aria/dist/private/calendar/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendar.js +7 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendarBase.js +76 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendarCell.js +148 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useCalendarGrid.js +91 -0
- package/dist/node_modules/react-aria/dist/private/calendar/useRangeCalendar.js +34 -0
- package/dist/node_modules/react-aria/dist/private/calendar/utils.js +109 -0
- package/dist/node_modules/react-aria/dist/private/combobox/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/combobox/useComboBox.js +243 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDateField.js +115 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDatePicker.js +126 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDatePickerGroup.js +73 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDateRangePicker.js +164 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDateSegment.js +249 -0
- package/dist/node_modules/react-aria/dist/private/datepicker/useDisplayNames.js +33 -0
- package/dist/node_modules/react-aria/dist/private/dialog/useDialog.js +52 -0
- package/dist/node_modules/react-aria/dist/private/dnd/DragManager.js +20 -0
- package/dist/node_modules/react-aria/dist/private/dnd/constants.js +33 -0
- package/dist/node_modules/react-aria/dist/private/dnd/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/dnd/useDrop.js +173 -0
- package/dist/node_modules/react-aria/dist/private/dnd/useVirtualDrop.js +31 -0
- package/dist/node_modules/react-aria/dist/private/dnd/utils.js +114 -0
- package/dist/node_modules/react-aria/dist/private/focus/FocusScope.js +490 -0
- package/dist/node_modules/react-aria/dist/private/focus/virtualFocus.js +32 -0
- package/dist/node_modules/react-aria/dist/private/form/useFormValidation.js +71 -0
- package/dist/node_modules/react-aria/dist/private/i18n/I18nProvider.js +10 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useCollator.js +11 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useDateFormatter.js +23 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useDefaultLocale.js +37 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useFilter.js +35 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useLocalizedStringFormatter.js +23 -0
- package/dist/node_modules/react-aria/dist/private/i18n/useNumberFormatter.js +13 -0
- package/dist/node_modules/react-aria/dist/private/i18n/utils.js +47 -0
- package/dist/node_modules/react-aria/dist/private/interactions/PressResponder.js +14 -0
- package/dist/node_modules/react-aria/dist/private/interactions/context.js +9 -0
- package/dist/node_modules/react-aria/dist/private/interactions/createEventHandler.js +28 -0
- package/dist/node_modules/react-aria/dist/private/interactions/focusSafely.js +19 -0
- package/dist/node_modules/react-aria/dist/private/interactions/textSelection.js +36 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocus.js +31 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocusVisible.js +90 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocusWithin.js +59 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useFocusable.js +32 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useHover.js +87 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useInteractOutside.js +51 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useKeyboard.js +12 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useLongPress.js +53 -0
- package/dist/node_modules/react-aria/dist/private/interactions/useMove.js +165 -0
- package/dist/node_modules/react-aria/dist/private/interactions/usePress.js +418 -0
- package/dist/node_modules/react-aria/dist/private/interactions/utils.js +93 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ar-AE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/bg-BG.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/cs-CZ.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/da-DK.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/de-DE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/el-GR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/en-US.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/es-ES.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/et-EE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/fi-FI.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/fr-FR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/he-IL.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/hr-HR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/hu-HU.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/it-IT.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ja-JP.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ko-KR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/lt-LT.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/lv-LV.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/nb-NO.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/nl-NL.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/pl-PL.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/pt-BR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/pt-PT.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ro-RO.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/ru-RU.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sk-SK.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sl-SI.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sr-SP.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/sv-SE.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/tr-TR.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/uk-UA.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/zh-CN.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/calendar/zh-TW.js +18 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ar-AE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/bg-BG.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/cs-CZ.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/da-DK.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/de-DE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/el-GR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/en-US.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/es-ES.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/et-EE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/fi-FI.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/fr-FR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/he-IL.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/hr-HR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/hu-HU.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/it-IT.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ja-JP.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ko-KR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/lt-LT.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/lv-LV.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/nb-NO.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/nl-NL.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/pl-PL.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/pt-BR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/pt-PT.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ro-RO.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/ru-RU.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sk-SK.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sl-SI.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sr-SP.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/sv-SE.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/tr-TR.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/uk-UA.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/zh-CN.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/combobox/zh-TW.js +23 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ar-AE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/bg-BG.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/cs-CZ.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/da-DK.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/de-DE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/el-GR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/en-US.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/es-ES.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/et-EE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/fi-FI.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/fr-FR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/he-IL.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/hr-HR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/hu-HU.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/it-IT.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ja-JP.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ko-KR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/lt-LT.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/lv-LV.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/nb-NO.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/nl-NL.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/pl-PL.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/pt-BR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/pt-PT.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ro-RO.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/ru-RU.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sk-SK.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sl-SI.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sr-SP.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/sv-SE.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/tr-TR.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/uk-UA.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/zh-CN.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/datepicker/zh-TW.js +22 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ar-AE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/bg-BG.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/cs-CZ.js +46 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/da-DK.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/de-DE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/el-GR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/en-US.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/es-ES.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/et-EE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/fi-FI.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/fr-FR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/he-IL.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/hr-HR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/hu-HU.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/it-IT.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ja-JP.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ko-KR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/lt-LT.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/lv-LV.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/nb-NO.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/nl-NL.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/pl-PL.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/pt-BR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/pt-PT.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ro-RO.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/ru-RU.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sk-SK.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sl-SI.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sr-SP.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/sv-SE.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/tr-TR.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/uk-UA.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/zh-CN.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/dnd/zh-TW.js +45 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ar-AE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/bg-BG.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/cs-CZ.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/da-DK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/de-DE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/el-GR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/en-US.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/es-ES.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/et-EE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/fi-FI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/fr-FR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/he-IL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/hr-HR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/hu-HU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/it-IT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ja-JP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ko-KR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/lt-LT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/lv-LV.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/nb-NO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/nl-NL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/pl-PL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/pt-BR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/pt-PT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ro-RO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/ru-RU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sk-SK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sl-SI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sr-SP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/sv-SE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/tr-TR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/uk-UA.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/zh-CN.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/menu/zh-TW.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ar-AE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/bg-BG.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/cs-CZ.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/da-DK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/de-DE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/el-GR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/en-US.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/es-ES.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/et-EE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/fi-FI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/fr-FR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/he-IL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/hr-HR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/hu-HU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/it-IT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ja-JP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ko-KR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/lt-LT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/lv-LV.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/nb-NO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/nl-NL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/pl-PL.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/pt-BR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/pt-PT.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ro-RO.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/ru-RU.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sk-SK.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sl-SI.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sr-SP.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/sv-SE.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/tr-TR.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/uk-UA.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/zh-CN.js +7 -0
- package/dist/node_modules/react-aria/dist/private/intl/spinbutton/zh-TW.js +7 -0
- package/dist/node_modules/react-aria/dist/private/label/useField.js +36 -0
- package/dist/node_modules/react-aria/dist/private/label/useLabel.js +23 -0
- package/dist/node_modules/react-aria/dist/private/listbox/useListBox.js +56 -0
- package/dist/node_modules/react-aria/dist/private/listbox/useOption.js +69 -0
- package/dist/node_modules/react-aria/dist/private/listbox/utils.js +13 -0
- package/dist/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.js +49 -0
- package/dist/node_modules/react-aria/dist/private/menu/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/menu/useMenuTrigger.js +65 -0
- package/dist/node_modules/react-aria/dist/private/overlays/Overlay.js +38 -0
- package/dist/node_modules/react-aria/dist/private/overlays/PortalProvider.js +9 -0
- package/dist/node_modules/react-aria/dist/private/overlays/ariaHideOutside.js +119 -0
- package/dist/node_modules/react-aria/dist/private/overlays/calculatePosition.js +208 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useCloseOnScroll.js +26 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useOverlay.js +50 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useOverlayPosition.js +136 -0
- package/dist/node_modules/react-aria/dist/private/overlays/useOverlayTrigger.js +26 -0
- package/dist/node_modules/react-aria/dist/private/overlays/usePopover.js +46 -0
- package/dist/node_modules/react-aria/dist/private/overlays/usePreventScroll.js +112 -0
- package/dist/node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.js +38 -0
- package/dist/node_modules/react-aria/dist/private/selection/ListKeyboardDelegate.js +120 -0
- package/dist/node_modules/react-aria/dist/private/selection/useSelectableCollection.js +222 -0
- package/dist/node_modules/react-aria/dist/private/selection/useSelectableItem.js +137 -0
- package/dist/node_modules/react-aria/dist/private/selection/useSelectableList.js +38 -0
- package/dist/node_modules/react-aria/dist/private/selection/useTypeSelect.js +33 -0
- package/dist/node_modules/react-aria/dist/private/selection/utils.js +23 -0
- package/dist/node_modules/react-aria/dist/private/slider/useSlider.js +88 -0
- package/dist/node_modules/react-aria/dist/private/slider/useSliderThumb.js +142 -0
- package/dist/node_modules/react-aria/dist/private/slider/utils.js +10 -0
- package/dist/node_modules/react-aria/dist/private/spinbutton/intlStrings.js +74 -0
- package/dist/node_modules/react-aria/dist/private/spinbutton/useSpinButton.js +138 -0
- package/dist/node_modules/react-aria/dist/private/ssr/SSRProvider.js +52 -0
- package/dist/node_modules/react-aria/dist/private/textfield/useTextField.js +78 -0
- package/dist/node_modules/react-aria/dist/private/utils/chain.js +8 -0
- package/dist/node_modules/react-aria/dist/private/utils/constants.js +5 -0
- package/dist/node_modules/react-aria/dist/private/utils/domHelpers.js +12 -0
- package/dist/node_modules/react-aria/dist/private/utils/filterDOMProps.js +65 -0
- package/dist/node_modules/react-aria/dist/private/utils/focusWithoutScrolling.js +45 -0
- package/dist/node_modules/react-aria/dist/private/utils/getNonce.js +15 -0
- package/dist/node_modules/react-aria/dist/private/utils/getScrollParent.js +9 -0
- package/dist/node_modules/react-aria/dist/private/utils/getScrollParents.js +10 -0
- package/dist/node_modules/react-aria/dist/private/utils/isElementVisible.js +25 -0
- package/dist/node_modules/react-aria/dist/private/utils/isFocusable.js +37 -0
- package/dist/node_modules/react-aria/dist/private/utils/isScrollable.js +8 -0
- package/dist/node_modules/react-aria/dist/private/utils/isVirtualEvent.js +11 -0
- package/dist/node_modules/react-aria/dist/private/utils/keyboard.js +22 -0
- package/dist/node_modules/react-aria/dist/private/utils/mergeProps.js +23 -0
- package/dist/node_modules/react-aria/dist/private/utils/mergeRefs.js +21 -0
- package/dist/node_modules/react-aria/dist/private/utils/openLink.js +61 -0
- package/dist/node_modules/react-aria/dist/private/utils/platform.js +44 -0
- package/dist/node_modules/react-aria/dist/private/utils/runAfterTransition.js +38 -0
- package/dist/node_modules/react-aria/dist/private/utils/scrollIntoView.js +66 -0
- package/dist/node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.js +38 -0
- package/dist/node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.js +127 -0
- package/dist/node_modules/react-aria/dist/private/utils/useDeepMemo.js +8 -0
- package/dist/node_modules/react-aria/dist/private/utils/useDescription.js +32 -0
- package/dist/node_modules/react-aria/dist/private/utils/useEffectEvent.js +17 -0
- package/dist/node_modules/react-aria/dist/private/utils/useEvent.js +20 -0
- package/dist/node_modules/react-aria/dist/private/utils/useFormReset.js +18 -0
- package/dist/node_modules/react-aria/dist/private/utils/useGlobalListeners.js +33 -0
- package/dist/node_modules/react-aria/dist/private/utils/useId.js +59 -0
- package/dist/node_modules/react-aria/dist/private/utils/useLabels.js +17 -0
- package/dist/node_modules/react-aria/dist/private/utils/useLayoutEffect.js +6 -0
- package/dist/node_modules/react-aria/dist/private/utils/useResizeObserver.js +32 -0
- package/dist/node_modules/react-aria/dist/private/utils/useSyncRef.js +12 -0
- package/dist/node_modules/react-aria/dist/private/utils/useUpdateEffect.js +15 -0
- package/dist/node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.js +13 -0
- package/dist/node_modules/react-aria/dist/private/utils/useValueEffect.js +28 -0
- package/dist/node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.js +40 -0
- package/dist/node_modules/react-csv/src/components/Download.js +34 -0
- package/dist/node_modules/react-csv/src/components/Link.js +85 -0
- package/dist/node_modules/react-csv/src/core.js +49 -0
- package/dist/node_modules/react-csv/src/index.js +6 -0
- package/dist/node_modules/react-csv/src/metaProps.js +23 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1501 -0
- package/dist/node_modules/react-innertext/index.js +16 -0
- package/dist/node_modules/react-international-phone/dist/index.js +333 -0
- package/dist/node_modules/react-joyride/dist/index.js +2044 -0
- package/dist/node_modules/react-stately/dist/private/calendar/useCalendarState.js +254 -0
- package/dist/node_modules/react-stately/dist/private/calendar/useRangeCalendarState.js +140 -0
- package/dist/node_modules/react-stately/dist/private/calendar/utils.js +66 -0
- package/dist/node_modules/react-stately/dist/private/collections/CollectionBuilder.js +160 -0
- package/dist/node_modules/react-stately/dist/private/collections/Item.js +37 -0
- package/dist/node_modules/react-stately/dist/private/collections/getChildNodes.js +33 -0
- package/dist/node_modules/react-stately/dist/private/collections/getItemCount.js +14 -0
- package/dist/node_modules/react-stately/dist/private/collections/useCollection.js +23 -0
- package/dist/node_modules/react-stately/dist/private/combobox/useComboBoxState.js +206 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/IncompleteDate.js +235 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/intlStrings.js +74 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/placeholders.js +399 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useDateFieldState.js +263 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useDatePickerState.js +76 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useDateRangePickerState.js +171 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/useTimeFieldState.js +57 -0
- package/dist/node_modules/react-stately/dist/private/datepicker/utils.js +145 -0
- package/dist/node_modules/react-stately/dist/private/flags/flags.js +7 -0
- package/dist/node_modules/react-stately/dist/private/form/useFormValidationState.js +127 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ar-AE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/bg-BG.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/cs-CZ.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/da-DK.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/de-DE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/el-GR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/en-US.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/es-ES.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/et-EE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/fi-FI.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/fr-FR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/he-IL.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/hr-HR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/hu-HU.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/it-IT.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ja-JP.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ko-KR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/lt-LT.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/lv-LV.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/nb-NO.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/nl-NL.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/pl-PL.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/pt-BR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/pt-PT.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ro-RO.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/ru-RU.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sk-SK.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sl-SI.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sr-SP.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/sv-SE.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/tr-TR.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/uk-UA.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/zh-CN.js +10 -0
- package/dist/node_modules/react-stately/dist/private/intl/datepicker/zh-TW.js +10 -0
- package/dist/node_modules/react-stately/dist/private/list/ListCollection.js +51 -0
- package/dist/node_modules/react-stately/dist/private/list/useListState.js +60 -0
- package/dist/node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.js +29 -0
- package/dist/node_modules/react-stately/dist/private/selection/Selection.js +8 -0
- package/dist/node_modules/react-stately/dist/private/selection/SelectionManager.js +274 -0
- package/dist/node_modules/react-stately/dist/private/selection/useMultipleSelectionState.js +57 -0
- package/dist/node_modules/react-stately/dist/private/slider/useSliderState.js +151 -0
- package/dist/node_modules/react-stately/dist/private/utils/number.js +26 -0
- package/dist/node_modules/react-stately/dist/private/utils/useControlledState.js +29 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +7 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +99 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +282 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/csharp.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/dart.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/docker.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/elixir.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/go.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/hcl.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/java.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/javascript.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/kotlin.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/php.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/powershell.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/ruby.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/scala.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/swift.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/toml.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.js +195 -0
- package/dist/node_modules/refractor/lang/bash.js +226 -0
- package/dist/node_modules/refractor/lang/clike.js +38 -0
- package/dist/node_modules/refractor/lang/csharp.js +385 -0
- package/dist/node_modules/refractor/lang/dart.js +76 -0
- package/dist/node_modules/refractor/lang/docker.js +101 -0
- package/dist/node_modules/refractor/lang/elixir.js +103 -0
- package/dist/node_modules/refractor/lang/go.js +32 -0
- package/dist/node_modules/refractor/lang/hcl.js +67 -0
- package/dist/node_modules/refractor/lang/java.js +135 -0
- package/dist/node_modules/refractor/lang/javascript.js +139 -0
- package/dist/node_modules/refractor/lang/json.js +31 -0
- package/dist/node_modules/refractor/lang/kotlin.js +83 -0
- package/dist/node_modules/refractor/lang/markup-templating.js +74 -0
- package/dist/node_modules/refractor/lang/markup.js +174 -0
- package/dist/node_modules/refractor/lang/php.js +328 -0
- package/dist/node_modules/refractor/lang/powershell.js +62 -0
- package/dist/node_modules/refractor/lang/python.js +68 -0
- package/dist/node_modules/refractor/lang/ruby.js +179 -0
- package/dist/node_modules/refractor/lang/scala.js +52 -0
- package/dist/node_modules/refractor/lang/swift.js +126 -0
- package/dist/node_modules/refractor/lang/toml.js +60 -0
- package/dist/node_modules/refractor/lang/typescript.js +53 -0
- package/dist/node_modules/refractor/lang/yaml.js +88 -0
- package/dist/node_modules/refractor/lib/core.js +107 -0
- package/dist/node_modules/refractor/lib/prism-core.js +430 -0
- package/dist/node_modules/scroll/index.js +36 -0
- package/dist/node_modules/scrollparent/scrollparent.js +28 -0
- package/dist/node_modules/space-separated-tokens/index.js +7 -0
- package/dist/node_modules/tabbable/dist/index.esm.js +200 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/utils/date.js +7 -0
- package/dist/utils/filters.js +60 -0
- package/dist/utils/index.js +26 -21
- package/dist/utils/normalizers.js +16 -0
- package/dist/utils/open-url.js +12 -0
- package/dist/utils/storage.js +16 -0
- package/dist/utils/url.js +13 -0
- package/package.json +5 -1
- package/dist/components-LCJjFofC.mjs +0 -18033
- package/dist/vendor-i-lggy4V.mjs +0 -48982
- /package/dist/assets/{index.css → styles/global.css} +0 -0
|
@@ -0,0 +1,1501 @@
|
|
|
1
|
+
import v from "react";
|
|
2
|
+
var ve = (t) => t.type === "checkbox", de = (t) => t instanceof Date, j = (t) => t == null;
|
|
3
|
+
const Dt = (t) => typeof t == "object";
|
|
4
|
+
var N = (t) => !j(t) && !Array.isArray(t) && Dt(t) && !de(t), kt = (t) => N(t) && t.target ? ve(t.target) ? t.target.checked : t.target.value : t, St = (t, s) => s.split(".").some((e, i, u) => !isNaN(Number(e)) && t.has(u.slice(0, i).join("."))), Kt = (t) => {
|
|
5
|
+
const s = t.constructor && t.constructor.prototype;
|
|
6
|
+
return N(s) && s.hasOwnProperty("isPrototypeOf");
|
|
7
|
+
}, Ze = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
8
|
+
function M(t) {
|
|
9
|
+
if (t instanceof Date)
|
|
10
|
+
return new Date(t);
|
|
11
|
+
const s = typeof FileList < "u" && t instanceof FileList;
|
|
12
|
+
if (Ze && (t instanceof Blob || s))
|
|
13
|
+
return t;
|
|
14
|
+
const e = Array.isArray(t);
|
|
15
|
+
if (!e && !(N(t) && Kt(t)))
|
|
16
|
+
return t;
|
|
17
|
+
const i = e ? [] : Object.create(Object.getPrototypeOf(t));
|
|
18
|
+
for (const u in t)
|
|
19
|
+
Object.prototype.hasOwnProperty.call(t, u) && (i[u] = M(t[u]));
|
|
20
|
+
return i;
|
|
21
|
+
}
|
|
22
|
+
var be = (t) => /^\w*$/.test(t), R = (t) => t === void 0, De = (t) => Array.isArray(t) ? t.filter(Boolean) : [], ke = (t) => De(t.replace(/["|']|\]/g, "").split(/\.|\[/)), f = (t, s, e) => {
|
|
23
|
+
if (!s || !N(t))
|
|
24
|
+
return e;
|
|
25
|
+
const u = (be(s) ? [s] : ke(s)).reduce((l, o) => j(l) ? void 0 : l[o], t);
|
|
26
|
+
return R(u) || u === t ? R(t[s]) ? e : t[s] : u;
|
|
27
|
+
}, Q = (t) => typeof t == "boolean", K = (t) => typeof t == "function", T = (t, s, e) => {
|
|
28
|
+
let i = -1;
|
|
29
|
+
const u = be(s) ? [s] : ke(s), l = u.length, o = l - 1;
|
|
30
|
+
for (; ++i < l; ) {
|
|
31
|
+
const d = u[i];
|
|
32
|
+
let w = e;
|
|
33
|
+
if (i !== o) {
|
|
34
|
+
const p = t[d];
|
|
35
|
+
w = N(p) || Array.isArray(p) ? p : isNaN(+u[i + 1]) ? {} : [];
|
|
36
|
+
}
|
|
37
|
+
if (d === "__proto__" || d === "constructor" || d === "prototype")
|
|
38
|
+
return;
|
|
39
|
+
t[d] = w, t = t[d];
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const ue = {
|
|
43
|
+
BLUR: "blur",
|
|
44
|
+
FOCUS_OUT: "focusout",
|
|
45
|
+
CHANGE: "change",
|
|
46
|
+
SUBMIT: "submit",
|
|
47
|
+
TRIGGER: "trigger",
|
|
48
|
+
VALID: "valid"
|
|
49
|
+
}, te = {
|
|
50
|
+
onBlur: "onBlur",
|
|
51
|
+
onChange: "onChange",
|
|
52
|
+
onSubmit: "onSubmit",
|
|
53
|
+
onTouched: "onTouched",
|
|
54
|
+
all: "all"
|
|
55
|
+
}, ie = {
|
|
56
|
+
max: "max",
|
|
57
|
+
min: "min",
|
|
58
|
+
maxLength: "maxLength",
|
|
59
|
+
minLength: "minLength",
|
|
60
|
+
pattern: "pattern",
|
|
61
|
+
required: "required",
|
|
62
|
+
validate: "validate"
|
|
63
|
+
}, Ie = "form", Et = "root", et = v.createContext(null);
|
|
64
|
+
et.displayName = "HookFormControlContext";
|
|
65
|
+
const Se = () => v.useContext(et);
|
|
66
|
+
var Ct = (t, s, e, i = !0) => {
|
|
67
|
+
const u = {};
|
|
68
|
+
for (const l in t)
|
|
69
|
+
Object.defineProperty(u, l, {
|
|
70
|
+
get: () => {
|
|
71
|
+
const o = l;
|
|
72
|
+
return s._proxyFormState[o] !== te.all && (s._proxyFormState[o] = !i || te.all), e && (e[o] = !0), t[o];
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
return u;
|
|
76
|
+
};
|
|
77
|
+
const Ee = typeof window < "u" ? v.useLayoutEffect : v.useEffect;
|
|
78
|
+
function Yt(t) {
|
|
79
|
+
const s = Se(), { control: e = s, disabled: i, name: u, exact: l } = t || {}, [o, d] = v.useState(() => ({
|
|
80
|
+
...e._formState,
|
|
81
|
+
defaultValues: e._defaultValues
|
|
82
|
+
})), w = v.useRef({
|
|
83
|
+
isDirty: !1,
|
|
84
|
+
isLoading: !1,
|
|
85
|
+
dirtyFields: !1,
|
|
86
|
+
touchedFields: !1,
|
|
87
|
+
validatingFields: !1,
|
|
88
|
+
isValidating: !1,
|
|
89
|
+
isValid: !1,
|
|
90
|
+
errors: !1
|
|
91
|
+
});
|
|
92
|
+
return Ee(() => e._subscribe({
|
|
93
|
+
name: u,
|
|
94
|
+
formState: w.current,
|
|
95
|
+
exact: l,
|
|
96
|
+
callback: (p) => {
|
|
97
|
+
!i && d({
|
|
98
|
+
...e._formState,
|
|
99
|
+
...p,
|
|
100
|
+
defaultValues: e._defaultValues
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}), [u, i, l]), v.useEffect(() => {
|
|
104
|
+
w.current.isValid && e._setValid(!0);
|
|
105
|
+
}, [e]), v.useMemo(() => Ct(o, e, w.current, !1), [o, e]);
|
|
106
|
+
}
|
|
107
|
+
var Y = (t) => typeof t == "string", je = (t, s, e, i, u) => Y(t) ? (i && s.watch.add(t), f(e, t, u)) : Array.isArray(t) ? t.map((l) => (i && s.watch.add(l), f(e, l))) : (i && (s.watchAll = !0), e), Ke = (t) => j(t) || !Dt(t);
|
|
108
|
+
function X(t, s, e = /* @__PURE__ */ new WeakSet()) {
|
|
109
|
+
if (t === s)
|
|
110
|
+
return !0;
|
|
111
|
+
if (Ke(t) || Ke(s))
|
|
112
|
+
return Object.is(t, s);
|
|
113
|
+
if (de(t) && de(s))
|
|
114
|
+
return Object.is(t.getTime(), s.getTime());
|
|
115
|
+
const i = Object.keys(t), u = Object.keys(s);
|
|
116
|
+
if (i.length !== u.length)
|
|
117
|
+
return !1;
|
|
118
|
+
if (e.has(t) || e.has(s))
|
|
119
|
+
return !0;
|
|
120
|
+
e.add(t), e.add(s);
|
|
121
|
+
for (const l of i) {
|
|
122
|
+
const o = t[l];
|
|
123
|
+
if (!(l in s))
|
|
124
|
+
return !1;
|
|
125
|
+
if (l !== "ref") {
|
|
126
|
+
const d = s[l];
|
|
127
|
+
if (de(o) && de(d) || (N(o) || Array.isArray(o)) && (N(d) || Array.isArray(d)) ? !X(o, d, e) : !Object.is(o, d))
|
|
128
|
+
return !1;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return !0;
|
|
132
|
+
}
|
|
133
|
+
function zt(t) {
|
|
134
|
+
const s = Se(), { control: e = s, name: i, defaultValue: u, disabled: l, exact: o, compute: d } = t || {}, w = v.useRef(u), p = v.useRef(d), W = v.useRef(void 0), V = v.useRef(e), D = v.useRef(i);
|
|
135
|
+
p.current = d;
|
|
136
|
+
const [A, q] = v.useState(() => {
|
|
137
|
+
const h = e._getWatch(i, w.current);
|
|
138
|
+
return p.current ? p.current(h) : h;
|
|
139
|
+
}), U = v.useCallback((h) => {
|
|
140
|
+
const g = je(i, e._names, h || e._formValues, !1, w.current);
|
|
141
|
+
return p.current ? p.current(g) : g;
|
|
142
|
+
}, [e._formValues, e._names, i]), L = v.useCallback((h) => {
|
|
143
|
+
if (!l) {
|
|
144
|
+
const g = je(i, e._names, h || e._formValues, !1, w.current);
|
|
145
|
+
if (p.current) {
|
|
146
|
+
const F = p.current(g);
|
|
147
|
+
X(F, W.current) || (q(F), W.current = F);
|
|
148
|
+
} else
|
|
149
|
+
q(g);
|
|
150
|
+
}
|
|
151
|
+
}, [e._formValues, e._names, l, i]);
|
|
152
|
+
Ee(() => ((V.current !== e || !X(D.current, i)) && (V.current = e, D.current = i, L()), e._subscribe({
|
|
153
|
+
name: i,
|
|
154
|
+
formState: {
|
|
155
|
+
values: !0
|
|
156
|
+
},
|
|
157
|
+
exact: o,
|
|
158
|
+
callback: (h) => {
|
|
159
|
+
L(h.values);
|
|
160
|
+
}
|
|
161
|
+
})), [e, o, i, L]), v.useEffect(() => e._removeUnmounted());
|
|
162
|
+
const I = V.current !== e, x = D.current, S = v.useMemo(() => {
|
|
163
|
+
if (l)
|
|
164
|
+
return null;
|
|
165
|
+
const h = !I && !X(x, i);
|
|
166
|
+
return I || h ? U() : null;
|
|
167
|
+
}, [l, I, i, x, U]);
|
|
168
|
+
return S !== null ? S : A;
|
|
169
|
+
}
|
|
170
|
+
function Jt(t) {
|
|
171
|
+
const s = Se(), { name: e, disabled: i, control: u = s, shouldUnregister: l, defaultValue: o, exact: d = !0 } = t, w = St(u._names.array, e), p = v.useMemo(() => f(u._formValues, e, f(u._defaultValues, e, o)), [u, e, o]), W = zt({
|
|
172
|
+
control: u,
|
|
173
|
+
name: e,
|
|
174
|
+
defaultValue: p,
|
|
175
|
+
exact: d
|
|
176
|
+
}), V = Yt({
|
|
177
|
+
control: u,
|
|
178
|
+
name: e,
|
|
179
|
+
exact: d
|
|
180
|
+
}), D = v.useRef(t), A = v.useRef(u.register(e, {
|
|
181
|
+
...t.rules,
|
|
182
|
+
value: W,
|
|
183
|
+
...Q(t.disabled) ? { disabled: t.disabled } : {}
|
|
184
|
+
}));
|
|
185
|
+
D.current = t;
|
|
186
|
+
const q = v.useMemo(() => Object.defineProperties({}, {
|
|
187
|
+
invalid: {
|
|
188
|
+
enumerable: !0,
|
|
189
|
+
get: () => !!f(V.errors, e)
|
|
190
|
+
},
|
|
191
|
+
isDirty: {
|
|
192
|
+
enumerable: !0,
|
|
193
|
+
get: () => !!f(V.dirtyFields, e)
|
|
194
|
+
},
|
|
195
|
+
isTouched: {
|
|
196
|
+
enumerable: !0,
|
|
197
|
+
get: () => !!f(V.touchedFields, e)
|
|
198
|
+
},
|
|
199
|
+
isValidating: {
|
|
200
|
+
enumerable: !0,
|
|
201
|
+
get: () => !!f(V.validatingFields, e)
|
|
202
|
+
},
|
|
203
|
+
error: {
|
|
204
|
+
enumerable: !0,
|
|
205
|
+
get: () => f(V.errors, e)
|
|
206
|
+
}
|
|
207
|
+
}), [V, e]), U = v.useCallback((S) => A.current.onChange({
|
|
208
|
+
target: {
|
|
209
|
+
value: kt(S),
|
|
210
|
+
name: e
|
|
211
|
+
},
|
|
212
|
+
type: ue.CHANGE
|
|
213
|
+
}), [e]), L = v.useCallback(() => A.current.onBlur({
|
|
214
|
+
target: {
|
|
215
|
+
value: f(u._formValues, e),
|
|
216
|
+
name: e
|
|
217
|
+
},
|
|
218
|
+
type: ue.BLUR
|
|
219
|
+
}), [e, u._formValues]), I = v.useCallback((S) => {
|
|
220
|
+
const h = f(u._fields, e);
|
|
221
|
+
h && h._f && S && (h._f.ref = {
|
|
222
|
+
focus: () => K(S.focus) && S.focus(),
|
|
223
|
+
select: () => K(S.select) && S.select(),
|
|
224
|
+
setCustomValidity: (g) => K(S.setCustomValidity) && S.setCustomValidity(g),
|
|
225
|
+
reportValidity: () => K(S.reportValidity) && S.reportValidity()
|
|
226
|
+
});
|
|
227
|
+
}, [u._fields, e]), x = v.useMemo(() => ({
|
|
228
|
+
name: e,
|
|
229
|
+
value: W,
|
|
230
|
+
...Q(i) || V.disabled ? { disabled: V.disabled || i } : {},
|
|
231
|
+
onChange: U,
|
|
232
|
+
onBlur: L,
|
|
233
|
+
ref: I
|
|
234
|
+
}), [e, i, V.disabled, U, L, I, W]);
|
|
235
|
+
return v.useEffect(() => {
|
|
236
|
+
const S = u._options.shouldUnregister || l;
|
|
237
|
+
u.register(e, {
|
|
238
|
+
...D.current.rules,
|
|
239
|
+
...Q(D.current.disabled) ? { disabled: D.current.disabled } : {}
|
|
240
|
+
});
|
|
241
|
+
const h = (g, F) => {
|
|
242
|
+
const E = f(u._fields, g);
|
|
243
|
+
E && E._f && (E._f.mount = F);
|
|
244
|
+
};
|
|
245
|
+
if (h(e, !0), S) {
|
|
246
|
+
const g = M(f(u._defaultValues, e, f(u._options.defaultValues, e, D.current.defaultValue)));
|
|
247
|
+
T(u._defaultValues, e, g), R(f(u._formValues, e)) && T(u._formValues, e, g);
|
|
248
|
+
}
|
|
249
|
+
return !w && u.register(e), () => {
|
|
250
|
+
(w ? S && !u._state.action : S) ? u.unregister(e) : h(e, !1);
|
|
251
|
+
};
|
|
252
|
+
}, [e, u, w, l]), v.useEffect(() => {
|
|
253
|
+
u._setDisabledField({
|
|
254
|
+
disabled: i,
|
|
255
|
+
name: e
|
|
256
|
+
});
|
|
257
|
+
}, [i, e, u]), v.useMemo(() => ({
|
|
258
|
+
field: x,
|
|
259
|
+
formState: V,
|
|
260
|
+
fieldState: q
|
|
261
|
+
}), [x, V, q]);
|
|
262
|
+
}
|
|
263
|
+
const _r = (t) => t.render(Jt(t)), tt = v.createContext(null);
|
|
264
|
+
tt.displayName = "HookFormContext";
|
|
265
|
+
const gr = () => v.useContext(tt), mr = (t) => {
|
|
266
|
+
const { children: s, watch: e, getValues: i, getFieldState: u, setError: l, clearErrors: o, setValue: d, setValues: w, trigger: p, formState: W, resetField: V, reset: D, handleSubmit: A, unregister: q, control: U, register: L, setFocus: I, subscribe: x } = t, S = v.useMemo(() => ({
|
|
267
|
+
watch: e,
|
|
268
|
+
getValues: i,
|
|
269
|
+
getFieldState: u,
|
|
270
|
+
setError: l,
|
|
271
|
+
clearErrors: o,
|
|
272
|
+
setValue: d,
|
|
273
|
+
setValues: w,
|
|
274
|
+
trigger: p,
|
|
275
|
+
formState: W,
|
|
276
|
+
resetField: V,
|
|
277
|
+
reset: D,
|
|
278
|
+
handleSubmit: A,
|
|
279
|
+
unregister: q,
|
|
280
|
+
control: U,
|
|
281
|
+
register: L,
|
|
282
|
+
setFocus: I,
|
|
283
|
+
subscribe: x
|
|
284
|
+
}), [
|
|
285
|
+
o,
|
|
286
|
+
U,
|
|
287
|
+
W,
|
|
288
|
+
u,
|
|
289
|
+
i,
|
|
290
|
+
A,
|
|
291
|
+
L,
|
|
292
|
+
D,
|
|
293
|
+
V,
|
|
294
|
+
l,
|
|
295
|
+
I,
|
|
296
|
+
d,
|
|
297
|
+
w,
|
|
298
|
+
x,
|
|
299
|
+
p,
|
|
300
|
+
q,
|
|
301
|
+
e
|
|
302
|
+
]);
|
|
303
|
+
return v.createElement(
|
|
304
|
+
tt.Provider,
|
|
305
|
+
{ value: S },
|
|
306
|
+
v.createElement(et.Provider, { value: S.control }, s)
|
|
307
|
+
);
|
|
308
|
+
};
|
|
309
|
+
var Qt = (t, s, e, i, u) => s ? {
|
|
310
|
+
...e[t],
|
|
311
|
+
types: {
|
|
312
|
+
...e[t] && e[t].types ? e[t].types : {},
|
|
313
|
+
[i]: u || !0
|
|
314
|
+
}
|
|
315
|
+
} : {}, J = (t) => Array.isArray(t) ? t : [t], ht = () => {
|
|
316
|
+
let t = [];
|
|
317
|
+
return {
|
|
318
|
+
get observers() {
|
|
319
|
+
return t;
|
|
320
|
+
},
|
|
321
|
+
next: (u) => {
|
|
322
|
+
for (const l of t)
|
|
323
|
+
l.next && l.next(u);
|
|
324
|
+
},
|
|
325
|
+
subscribe: (u) => (t.push(u), {
|
|
326
|
+
unsubscribe: () => {
|
|
327
|
+
t = t.filter((l) => l !== u);
|
|
328
|
+
}
|
|
329
|
+
}),
|
|
330
|
+
unsubscribe: () => {
|
|
331
|
+
t = [];
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
function Ot(t, s) {
|
|
336
|
+
const e = {};
|
|
337
|
+
for (const i in t)
|
|
338
|
+
if (t.hasOwnProperty(i)) {
|
|
339
|
+
const u = t[i], l = s[i];
|
|
340
|
+
if (u && N(u) && l) {
|
|
341
|
+
const o = Ot(u, l);
|
|
342
|
+
N(o) && (e[i] = o);
|
|
343
|
+
} else t[i] && (e[i] = l);
|
|
344
|
+
}
|
|
345
|
+
return e;
|
|
346
|
+
}
|
|
347
|
+
var $ = (t) => N(t) && !Object.keys(t).length, rt = (t) => t.type === "file", pe = (t) => {
|
|
348
|
+
if (!Ze)
|
|
349
|
+
return !1;
|
|
350
|
+
const s = t ? t.ownerDocument : 0;
|
|
351
|
+
return t instanceof (s && s.defaultView ? s.defaultView.HTMLElement : HTMLElement);
|
|
352
|
+
}, Rt = (t) => t.type === "select-multiple", st = (t) => t.type === "radio", Xt = (t) => st(t) || ve(t), Le = (t) => pe(t) && t.isConnected;
|
|
353
|
+
function Zt(t, s) {
|
|
354
|
+
const e = s.slice(0, -1).length;
|
|
355
|
+
let i = 0;
|
|
356
|
+
for (; i < e; ) {
|
|
357
|
+
if (j(t)) {
|
|
358
|
+
t = void 0;
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
t = t[s[i]], i++;
|
|
362
|
+
}
|
|
363
|
+
return t;
|
|
364
|
+
}
|
|
365
|
+
function er(t) {
|
|
366
|
+
for (const s in t)
|
|
367
|
+
if (t.hasOwnProperty(s) && !R(t[s]))
|
|
368
|
+
return !1;
|
|
369
|
+
return !0;
|
|
370
|
+
}
|
|
371
|
+
function P(t, s) {
|
|
372
|
+
if (Y(s) && Object.prototype.hasOwnProperty.call(t, s))
|
|
373
|
+
return delete t[s], t;
|
|
374
|
+
const e = Array.isArray(s) ? s : be(s) ? [s] : ke(s), i = e.length === 1 ? t : Zt(t, e), u = e.length - 1, l = e[u];
|
|
375
|
+
return i && delete i[l], u !== 0 && (N(i) && $(i) || Array.isArray(i) && er(i)) && P(t, e.slice(0, -1)), t;
|
|
376
|
+
}
|
|
377
|
+
var tr = (t) => {
|
|
378
|
+
for (const s in t)
|
|
379
|
+
if (K(t[s]))
|
|
380
|
+
return !0;
|
|
381
|
+
return !1;
|
|
382
|
+
};
|
|
383
|
+
function Tt(t) {
|
|
384
|
+
return Array.isArray(t) || N(t) && !tr(t);
|
|
385
|
+
}
|
|
386
|
+
function Ye(t, s = {}) {
|
|
387
|
+
for (const e in t) {
|
|
388
|
+
const i = t[e];
|
|
389
|
+
Tt(i) ? (s[e] = Array.isArray(i) ? [] : {}, Ye(i, s[e])) : R(i) || (s[e] = !0);
|
|
390
|
+
}
|
|
391
|
+
return s;
|
|
392
|
+
}
|
|
393
|
+
function ze(t) {
|
|
394
|
+
if (t !== !1) {
|
|
395
|
+
if (t === !0)
|
|
396
|
+
return !0;
|
|
397
|
+
if (Array.isArray(t)) {
|
|
398
|
+
const s = t.map((e) => ze(e));
|
|
399
|
+
return s.some((e) => e !== void 0) ? s : void 0;
|
|
400
|
+
}
|
|
401
|
+
if (N(t)) {
|
|
402
|
+
const s = {};
|
|
403
|
+
for (const e in t) {
|
|
404
|
+
const i = ze(t[e]);
|
|
405
|
+
R(i) || (s[e] = i);
|
|
406
|
+
}
|
|
407
|
+
return Object.keys(s).length ? s : void 0;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function ye(t, s, e) {
|
|
412
|
+
e || (e = Ye(s));
|
|
413
|
+
for (const i in t) {
|
|
414
|
+
const u = t[i];
|
|
415
|
+
if (Tt(u))
|
|
416
|
+
R(s) || Ke(e[i]) ? e[i] = Ye(u, Array.isArray(u) ? [] : {}) : ye(u, j(s) ? {} : s[i], e[i]);
|
|
417
|
+
else {
|
|
418
|
+
const l = s[i];
|
|
419
|
+
e[i] = !X(u, l);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return ze(e) || {};
|
|
423
|
+
}
|
|
424
|
+
const Vt = {
|
|
425
|
+
value: !1,
|
|
426
|
+
isValid: !1
|
|
427
|
+
}, vt = { value: !0, isValid: !0 };
|
|
428
|
+
var Mt = (t) => {
|
|
429
|
+
if (Array.isArray(t)) {
|
|
430
|
+
if (t.length > 1) {
|
|
431
|
+
const s = t.filter((e) => e && e.checked && !e.disabled).map((e) => e.value);
|
|
432
|
+
return { value: s, isValid: !!s.length };
|
|
433
|
+
}
|
|
434
|
+
return t[0].checked && !t[0].disabled ? (
|
|
435
|
+
// @ts-expect-error expected to work in the browser
|
|
436
|
+
t[0].attributes && !R(t[0].attributes.value) ? R(t[0].value) || t[0].value === "" ? vt : { value: t[0].value, isValid: !0 } : vt
|
|
437
|
+
) : Vt;
|
|
438
|
+
}
|
|
439
|
+
return Vt;
|
|
440
|
+
}, Ut = (t, { valueAsNumber: s, valueAsDate: e, setValueAs: i }) => R(t) ? t : s ? t === "" ? NaN : t && +t : e && Y(t) ? new Date(t) : i ? i(t) : t;
|
|
441
|
+
const bt = {
|
|
442
|
+
isValid: !1,
|
|
443
|
+
value: null
|
|
444
|
+
};
|
|
445
|
+
var It = (t) => Array.isArray(t) ? t.reduce((s, e) => e && e.checked && !e.disabled ? {
|
|
446
|
+
isValid: !0,
|
|
447
|
+
value: e.value
|
|
448
|
+
} : s, bt) : bt;
|
|
449
|
+
function Ft(t) {
|
|
450
|
+
const s = t.ref;
|
|
451
|
+
return rt(s) ? s.files : st(s) ? It(t.refs).value : Rt(s) ? [...s.selectedOptions].map(({ value: e }) => e) : ve(s) ? Mt(t.refs).value : Ut(R(s.value) ? t.ref.value : s.value, t);
|
|
452
|
+
}
|
|
453
|
+
var rr = (t, s, e, i) => {
|
|
454
|
+
const u = {};
|
|
455
|
+
for (const l of t) {
|
|
456
|
+
const o = f(s, l);
|
|
457
|
+
o && T(u, l, o._f);
|
|
458
|
+
}
|
|
459
|
+
return {
|
|
460
|
+
criteriaMode: e,
|
|
461
|
+
names: [...t],
|
|
462
|
+
fields: u,
|
|
463
|
+
shouldUseNativeValidation: i
|
|
464
|
+
};
|
|
465
|
+
}, we = (t) => t instanceof RegExp, Ve = (t) => R(t) ? t : we(t) ? t.source : N(t) ? we(t.value) ? t.value.source : t.value : t, _e = (t) => ({
|
|
466
|
+
isOnSubmit: !t || t === te.onSubmit,
|
|
467
|
+
isOnBlur: t === te.onBlur,
|
|
468
|
+
isOnChange: t === te.onChange,
|
|
469
|
+
isOnAll: t === te.all,
|
|
470
|
+
isOnTouch: t === te.onTouched
|
|
471
|
+
});
|
|
472
|
+
const At = "AsyncFunction";
|
|
473
|
+
var sr = (t) => !!t && !!t.validate && !!(K(t.validate) && t.validate.constructor.name === At || N(t.validate) && Object.values(t.validate).find((s) => s.constructor.name === At)), ir = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Je = (t, s, e) => !e && (s.watchAll || s.watch.has(t) || [...s.watch].some((i) => t.startsWith(i) && /^\.\w+/.test(t.slice(i.length))));
|
|
474
|
+
const ge = (t, s, e, i) => {
|
|
475
|
+
for (const u of e || Object.keys(t)) {
|
|
476
|
+
const l = f(t, u);
|
|
477
|
+
if (l) {
|
|
478
|
+
const { _f: o, ...d } = l;
|
|
479
|
+
if (o) {
|
|
480
|
+
if (o.refs && o.refs[0] && s(o.refs[0], u) && !i)
|
|
481
|
+
return !0;
|
|
482
|
+
if (o.ref && s(o.ref, o.name) && !i)
|
|
483
|
+
return !0;
|
|
484
|
+
if (ge(d, s))
|
|
485
|
+
break;
|
|
486
|
+
} else if (N(d) && ge(d, s))
|
|
487
|
+
break;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
function xt(t, s, e) {
|
|
492
|
+
const i = f(t, e);
|
|
493
|
+
if (i || be(e))
|
|
494
|
+
return {
|
|
495
|
+
error: i,
|
|
496
|
+
name: e
|
|
497
|
+
};
|
|
498
|
+
const u = e.split(".");
|
|
499
|
+
for (; u.length; ) {
|
|
500
|
+
const l = u.join("."), o = f(s, l), d = f(t, l);
|
|
501
|
+
if (o && !Array.isArray(o) && e !== l)
|
|
502
|
+
return { name: e };
|
|
503
|
+
if (d && d.type)
|
|
504
|
+
return {
|
|
505
|
+
name: l,
|
|
506
|
+
error: d
|
|
507
|
+
};
|
|
508
|
+
if (d && d.root && d.root.type)
|
|
509
|
+
return {
|
|
510
|
+
name: `${l}.root`,
|
|
511
|
+
error: d.root
|
|
512
|
+
};
|
|
513
|
+
u.pop();
|
|
514
|
+
}
|
|
515
|
+
return {
|
|
516
|
+
name: e
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
var ar = (t, s, e, i) => {
|
|
520
|
+
e(t);
|
|
521
|
+
const { name: u, ...l } = t;
|
|
522
|
+
return $(l) || i && Object.keys(l).length >= Object.keys(s).length || Object.keys(l).find((o) => s[o] === (!i || te.all));
|
|
523
|
+
}, nr = (t, s, e) => !t || !s || t === s || J(t).some((i) => i && (e ? i === s : i.startsWith(s) || s.startsWith(i))), lr = (t, s, e, i, u) => u.isOnAll ? !1 : !e && u.isOnTouch ? !(s || t) : (e ? i.isOnBlur : u.isOnBlur) ? !t : (e ? i.isOnChange : u.isOnChange) ? t : !0, ur = (t, s) => !De(f(t, s)).length && P(t, s), Qe = (t, s, e) => {
|
|
524
|
+
const i = J(f(t, e));
|
|
525
|
+
return T(i, Et, s[e]), T(t, e, i), t;
|
|
526
|
+
};
|
|
527
|
+
function pt(t, s, e = "validate") {
|
|
528
|
+
if (Y(t) || Array.isArray(t) && t.every(Y) || Q(t) && !t)
|
|
529
|
+
return {
|
|
530
|
+
type: e,
|
|
531
|
+
message: Y(t) ? t : "",
|
|
532
|
+
ref: s
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
var fe = (t) => N(t) && !we(t) ? t : {
|
|
536
|
+
value: t,
|
|
537
|
+
message: ""
|
|
538
|
+
}, Xe = async (t, s, e, i, u, l) => {
|
|
539
|
+
const { ref: o, refs: d, required: w, maxLength: p, minLength: W, min: V, max: D, pattern: A, validate: q, name: U, valueAsNumber: L, mount: I } = t._f, x = f(e, U);
|
|
540
|
+
if (!I || s.has(U))
|
|
541
|
+
return {};
|
|
542
|
+
const S = d ? d[0] : o, h = (O) => {
|
|
543
|
+
u && S.reportValidity && (S.setCustomValidity(Q(O) ? "" : O || ""), S.reportValidity());
|
|
544
|
+
}, g = {}, F = st(o), E = ve(o), z = F || E, ae = (L || rt(o)) && R(o.value) && R(x) || pe(o) && o.value === "" || x === "" || Array.isArray(x) && !x.length, re = Qt.bind(null, U, i, g), Fe = (O, C, G, B = ie.maxLength, Z = ie.minLength) => {
|
|
545
|
+
const ne = O ? C : G;
|
|
546
|
+
g[U] = {
|
|
547
|
+
type: O ? B : Z,
|
|
548
|
+
message: ne,
|
|
549
|
+
ref: o,
|
|
550
|
+
...re(O ? B : Z, ne)
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
if (l ? !Array.isArray(x) || !x.length : w && (!z && (ae || j(x)) || Q(x) && !x || E && !Mt(d).isValid || F && !It(d).isValid)) {
|
|
554
|
+
const { value: O, message: C } = Y(w) ? { value: !!w, message: w } : fe(w);
|
|
555
|
+
if (O && (g[U] = {
|
|
556
|
+
type: ie.required,
|
|
557
|
+
message: C,
|
|
558
|
+
ref: S,
|
|
559
|
+
...re(ie.required, C)
|
|
560
|
+
}, !i))
|
|
561
|
+
return h(C), g;
|
|
562
|
+
}
|
|
563
|
+
if (!ae && (!j(V) || !j(D))) {
|
|
564
|
+
let O, C;
|
|
565
|
+
const G = fe(D), B = fe(V);
|
|
566
|
+
if (!j(x) && !isNaN(x)) {
|
|
567
|
+
const Z = o.valueAsNumber || x && +x;
|
|
568
|
+
j(G.value) || (O = Z > G.value), j(B.value) || (C = Z < B.value);
|
|
569
|
+
} else {
|
|
570
|
+
const Z = o.valueAsDate || new Date(x), ne = (Ae) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ae), ce = o.type == "time", me = o.type == "week";
|
|
571
|
+
Y(G.value) && x && (O = ce ? ne(x) > ne(G.value) : me ? x > G.value : Z > new Date(G.value)), Y(B.value) && x && (C = ce ? ne(x) < ne(B.value) : me ? x < B.value : Z < new Date(B.value));
|
|
572
|
+
}
|
|
573
|
+
if ((O || C) && (Fe(!!O, G.message, B.message, ie.max, ie.min), !i))
|
|
574
|
+
return h(g[U].message), g;
|
|
575
|
+
}
|
|
576
|
+
if ((p || W) && !ae && (Y(x) || l && Array.isArray(x))) {
|
|
577
|
+
const O = fe(p), C = fe(W), G = !j(O.value) && x.length > +O.value, B = !j(C.value) && x.length < +C.value;
|
|
578
|
+
if ((G || B) && (Fe(G, O.message, C.message), !i))
|
|
579
|
+
return h(g[U].message), g;
|
|
580
|
+
}
|
|
581
|
+
if (A && !ae && Y(x)) {
|
|
582
|
+
const { value: O, message: C } = fe(A);
|
|
583
|
+
if (we(O) && !x.match(O) && (g[U] = {
|
|
584
|
+
type: ie.pattern,
|
|
585
|
+
message: C,
|
|
586
|
+
ref: o,
|
|
587
|
+
...re(ie.pattern, C)
|
|
588
|
+
}, !i))
|
|
589
|
+
return h(C), g;
|
|
590
|
+
}
|
|
591
|
+
if (q) {
|
|
592
|
+
if (K(q)) {
|
|
593
|
+
const O = await q(x, e), C = pt(O, S);
|
|
594
|
+
if (C && (g[U] = {
|
|
595
|
+
...C,
|
|
596
|
+
...re(ie.validate, C.message)
|
|
597
|
+
}, !i))
|
|
598
|
+
return h(C.message), g;
|
|
599
|
+
} else if (N(q)) {
|
|
600
|
+
let O = {};
|
|
601
|
+
for (const C in q) {
|
|
602
|
+
if (!$(O) && !i)
|
|
603
|
+
break;
|
|
604
|
+
const G = pt(await q[C](x, e), S, C);
|
|
605
|
+
G && (O = {
|
|
606
|
+
...G,
|
|
607
|
+
...re(C, G.message)
|
|
608
|
+
}, h(G.message), i && (g[U] = O));
|
|
609
|
+
}
|
|
610
|
+
if (!$(O) && (g[U] = {
|
|
611
|
+
ref: S,
|
|
612
|
+
...O
|
|
613
|
+
}, !i))
|
|
614
|
+
return g;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
return h(!0), g;
|
|
618
|
+
};
|
|
619
|
+
const or = {
|
|
620
|
+
mode: te.onSubmit,
|
|
621
|
+
reValidateMode: te.onChange,
|
|
622
|
+
shouldFocusError: !0
|
|
623
|
+
}, Lt = {
|
|
624
|
+
submitCount: 0,
|
|
625
|
+
isDirty: !1,
|
|
626
|
+
isReady: !1,
|
|
627
|
+
isValidating: !1,
|
|
628
|
+
isSubmitted: !1,
|
|
629
|
+
isSubmitting: !1,
|
|
630
|
+
isSubmitSuccessful: !1,
|
|
631
|
+
isValid: !1,
|
|
632
|
+
touchedFields: {},
|
|
633
|
+
dirtyFields: {},
|
|
634
|
+
validatingFields: {}
|
|
635
|
+
};
|
|
636
|
+
function dr(t = {}) {
|
|
637
|
+
let s = {
|
|
638
|
+
...or,
|
|
639
|
+
...t
|
|
640
|
+
}, e = {
|
|
641
|
+
...M(Lt),
|
|
642
|
+
isLoading: K(s.defaultValues),
|
|
643
|
+
errors: s.errors || {},
|
|
644
|
+
disabled: s.disabled || !1
|
|
645
|
+
}, i = {}, u = N(s.defaultValues) || N(s.values) ? M(s.defaultValues || s.values) || {} : {}, l = s.shouldUnregister ? {} : M(u), o = {
|
|
646
|
+
action: !1,
|
|
647
|
+
mount: !1,
|
|
648
|
+
watch: !1,
|
|
649
|
+
keepIsValid: !1
|
|
650
|
+
}, d = {
|
|
651
|
+
mount: /* @__PURE__ */ new Set(),
|
|
652
|
+
disabled: /* @__PURE__ */ new Set(),
|
|
653
|
+
unMount: /* @__PURE__ */ new Set(),
|
|
654
|
+
array: /* @__PURE__ */ new Set(),
|
|
655
|
+
watch: /* @__PURE__ */ new Set(),
|
|
656
|
+
registerName: /* @__PURE__ */ new Set()
|
|
657
|
+
}, w, p = 0;
|
|
658
|
+
const W = {
|
|
659
|
+
isDirty: !1,
|
|
660
|
+
dirtyFields: !1,
|
|
661
|
+
validatingFields: !1,
|
|
662
|
+
touchedFields: !1,
|
|
663
|
+
isValidating: !1,
|
|
664
|
+
isValid: !1,
|
|
665
|
+
errors: !1
|
|
666
|
+
}, V = {
|
|
667
|
+
...W
|
|
668
|
+
};
|
|
669
|
+
let D = {
|
|
670
|
+
...V
|
|
671
|
+
};
|
|
672
|
+
const A = {
|
|
673
|
+
array: ht(),
|
|
674
|
+
state: ht()
|
|
675
|
+
}, q = s.criteriaMode === te.all, U = (r) => (a) => {
|
|
676
|
+
clearTimeout(p), p = setTimeout(r, a);
|
|
677
|
+
}, L = async (r) => {
|
|
678
|
+
if (!o.keepIsValid && !s.disabled && (V.isValid || D.isValid || r)) {
|
|
679
|
+
let a;
|
|
680
|
+
s.resolver ? (a = $((await re()).errors), I()) : a = await C({
|
|
681
|
+
fields: i,
|
|
682
|
+
onlyCheckValid: !0,
|
|
683
|
+
eventType: ue.VALID
|
|
684
|
+
}), a !== e.isValid && A.state.next({
|
|
685
|
+
isValid: a
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
}, I = (r, a) => {
|
|
689
|
+
!s.disabled && (V.isValidating || V.validatingFields || D.isValidating || D.validatingFields) && ((r || Array.from(d.mount)).forEach((n) => {
|
|
690
|
+
n && (a ? T(e.validatingFields, n, a) : P(e.validatingFields, n));
|
|
691
|
+
}), A.state.next({
|
|
692
|
+
validatingFields: e.validatingFields,
|
|
693
|
+
isValidating: !$(e.validatingFields)
|
|
694
|
+
}));
|
|
695
|
+
}, x = () => {
|
|
696
|
+
e.dirtyFields = ye(u, l);
|
|
697
|
+
}, S = (r, a = [], n, c, _ = !0, m = !0) => {
|
|
698
|
+
if (c && n && !s.disabled) {
|
|
699
|
+
if (o.action = !0, m && Array.isArray(f(i, r))) {
|
|
700
|
+
const y = n(f(i, r), c.argA, c.argB);
|
|
701
|
+
_ && T(i, r, y);
|
|
702
|
+
}
|
|
703
|
+
if (m && Array.isArray(f(e.errors, r))) {
|
|
704
|
+
const y = n(f(e.errors, r), c.argA, c.argB);
|
|
705
|
+
_ && T(e.errors, r, y), ur(e.errors, r);
|
|
706
|
+
}
|
|
707
|
+
if ((V.touchedFields || D.touchedFields) && m && Array.isArray(f(e.touchedFields, r))) {
|
|
708
|
+
const y = n(f(e.touchedFields, r), c.argA, c.argB);
|
|
709
|
+
_ && T(e.touchedFields, r, y);
|
|
710
|
+
}
|
|
711
|
+
(V.dirtyFields || D.dirtyFields) && x(), A.state.next({
|
|
712
|
+
name: r,
|
|
713
|
+
isDirty: B(r, a),
|
|
714
|
+
dirtyFields: e.dirtyFields,
|
|
715
|
+
errors: e.errors,
|
|
716
|
+
isValid: e.isValid
|
|
717
|
+
});
|
|
718
|
+
} else
|
|
719
|
+
T(l, r, a);
|
|
720
|
+
}, h = (r, a) => {
|
|
721
|
+
T(e.errors, r, a), A.state.next({
|
|
722
|
+
errors: e.errors
|
|
723
|
+
});
|
|
724
|
+
}, g = (r) => {
|
|
725
|
+
e.errors = r, A.state.next({
|
|
726
|
+
errors: e.errors,
|
|
727
|
+
isValid: !1
|
|
728
|
+
});
|
|
729
|
+
}, F = (r) => {
|
|
730
|
+
const a = be(r) ? [r] : ke(r);
|
|
731
|
+
let n = l, c = u;
|
|
732
|
+
for (let _ = 0; _ < a.length - 1; _++) {
|
|
733
|
+
const m = a[_];
|
|
734
|
+
if (n = j(n) ? n : n[m], c = j(c) ? c : c[m], n === null && c !== null)
|
|
735
|
+
return !0;
|
|
736
|
+
}
|
|
737
|
+
return !1;
|
|
738
|
+
}, E = (r, a, n, c) => {
|
|
739
|
+
const _ = f(i, r);
|
|
740
|
+
if (_) {
|
|
741
|
+
if (F(r))
|
|
742
|
+
return;
|
|
743
|
+
const m = R(f(l, r)), y = f(l, r, R(n) ? f(u, r) : n);
|
|
744
|
+
R(y) || c && c.defaultChecked || a ? T(l, r, a ? y : Ft(_._f)) : ce(r, y), o.mount && !o.action && (L(), m && e.isDirty && (V.isDirty || D.isDirty) && (B() || (e.isDirty = !1, A.state.next({ ...e }))));
|
|
745
|
+
}
|
|
746
|
+
}, z = (r, a, n, c, _) => {
|
|
747
|
+
let m = !1, y = !1;
|
|
748
|
+
const b = {
|
|
749
|
+
name: r
|
|
750
|
+
};
|
|
751
|
+
if (!s.disabled) {
|
|
752
|
+
if (!n || c) {
|
|
753
|
+
(V.isDirty || D.isDirty) && (y = e.isDirty, e.isDirty = b.isDirty = B(), m = y !== b.isDirty);
|
|
754
|
+
const k = X(f(u, r), a);
|
|
755
|
+
y = !!f(e.dirtyFields, r), k !== e.isDirty ? e.dirtyFields = ye(u, l) : k ? P(e.dirtyFields, r) : T(e.dirtyFields, r, !0), b.dirtyFields = e.dirtyFields, m = m || (V.dirtyFields || D.dirtyFields) && y !== !k;
|
|
756
|
+
}
|
|
757
|
+
if (n) {
|
|
758
|
+
const k = f(e.touchedFields, r);
|
|
759
|
+
k || (T(e.touchedFields, r, n), b.touchedFields = e.touchedFields, m = m || (V.touchedFields || D.touchedFields) && k !== n);
|
|
760
|
+
}
|
|
761
|
+
m && _ && A.state.next(b);
|
|
762
|
+
}
|
|
763
|
+
return m ? b : {};
|
|
764
|
+
}, ae = (r, a, n, c) => {
|
|
765
|
+
const _ = f(e.errors, r), m = (V.isValid || D.isValid) && Q(a) && e.isValid !== a;
|
|
766
|
+
if (s.delayError && n ? (w = U(() => h(r, n)), w(s.delayError)) : (clearTimeout(p), w = null, n ? T(e.errors, r, n) : P(e.errors, r)), (n ? !X(_, n) : _) || !$(c) || m) {
|
|
767
|
+
const y = {
|
|
768
|
+
...c,
|
|
769
|
+
...m && Q(a) ? { isValid: a } : {},
|
|
770
|
+
errors: e.errors,
|
|
771
|
+
name: r
|
|
772
|
+
};
|
|
773
|
+
e = {
|
|
774
|
+
...e,
|
|
775
|
+
...y
|
|
776
|
+
}, A.state.next(y);
|
|
777
|
+
}
|
|
778
|
+
}, re = async (r) => (I(r, !0), await s.resolver(l, s.context, rr(r || d.mount, i, s.criteriaMode, s.shouldUseNativeValidation))), Fe = async (r) => {
|
|
779
|
+
const { errors: a } = await re(r);
|
|
780
|
+
if (I(r), r)
|
|
781
|
+
for (const n of r) {
|
|
782
|
+
const c = f(a, n);
|
|
783
|
+
c ? d.array.has(n) && N(c) ? Qe(e.errors, { [n]: c }, n) : T(e.errors, n, c) : P(e.errors, n);
|
|
784
|
+
}
|
|
785
|
+
else
|
|
786
|
+
e.errors = a;
|
|
787
|
+
return a;
|
|
788
|
+
}, O = async ({ name: r, eventType: a }) => {
|
|
789
|
+
if (t.validate) {
|
|
790
|
+
const n = await t.validate({
|
|
791
|
+
formValues: l,
|
|
792
|
+
formState: e,
|
|
793
|
+
name: r,
|
|
794
|
+
eventType: a
|
|
795
|
+
});
|
|
796
|
+
if (N(n))
|
|
797
|
+
for (const c in n) {
|
|
798
|
+
const _ = n[c];
|
|
799
|
+
_ && xe(`${Ie}.${c}`, {
|
|
800
|
+
message: Y(_.message) ? _.message : "",
|
|
801
|
+
type: _.type || ie.validate
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
else Y(n) || !n ? xe(Ie, {
|
|
805
|
+
message: n || "",
|
|
806
|
+
type: ie.validate
|
|
807
|
+
}) : ut(Ie);
|
|
808
|
+
return n;
|
|
809
|
+
}
|
|
810
|
+
return !0;
|
|
811
|
+
}, C = async ({ fields: r, onlyCheckValid: a, name: n, eventType: c, context: _ = {
|
|
812
|
+
valid: !0,
|
|
813
|
+
runRootValidation: !1
|
|
814
|
+
} }) => {
|
|
815
|
+
if (t.validate && (_.runRootValidation = !0, !await O({
|
|
816
|
+
name: n,
|
|
817
|
+
eventType: c
|
|
818
|
+
}) && (_.valid = !1, a)))
|
|
819
|
+
return _.valid;
|
|
820
|
+
for (const m in r) {
|
|
821
|
+
const y = r[m];
|
|
822
|
+
if (y) {
|
|
823
|
+
const { _f: b, ...k } = y;
|
|
824
|
+
if (b) {
|
|
825
|
+
const H = d.array.has(b.name), ee = y._f && sr(y._f), se = V.validatingFields || V.isValidating || D.validatingFields || D.isValidating;
|
|
826
|
+
ee && se && I([b.name], !0);
|
|
827
|
+
const oe = await Xe(y, d.disabled, l, q, s.shouldUseNativeValidation && !a, H);
|
|
828
|
+
if (ee && se && I([b.name]), oe[b.name] && (_.valid = !1, a) || (!a && (f(oe, b.name) ? H ? Qe(e.errors, oe, b.name) : T(e.errors, b.name, oe[b.name]) : P(e.errors, b.name)), t.shouldUseNativeValidation && oe[b.name]))
|
|
829
|
+
break;
|
|
830
|
+
}
|
|
831
|
+
!$(k) && await C({
|
|
832
|
+
context: _,
|
|
833
|
+
onlyCheckValid: a,
|
|
834
|
+
fields: k,
|
|
835
|
+
name: m,
|
|
836
|
+
eventType: c
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
return _.valid;
|
|
841
|
+
}, G = () => {
|
|
842
|
+
for (const r of d.unMount) {
|
|
843
|
+
const a = f(i, r);
|
|
844
|
+
a && (a._f.refs ? a._f.refs.every((n) => !Le(n)) : !Le(a._f.ref)) && Oe(r);
|
|
845
|
+
}
|
|
846
|
+
d.unMount = /* @__PURE__ */ new Set();
|
|
847
|
+
}, B = (r, a) => !s.disabled && (r && a && T(l, r, a), !X(nt(), u)), Z = (r, a, n) => je(r, d, {
|
|
848
|
+
...o.mount ? l : R(a) ? u : Y(r) ? { [r]: a } : a
|
|
849
|
+
}, n, a), ne = (r) => De(f(o.mount ? l : u, r, s.shouldUnregister ? f(u, r, []) : [])), ce = (r, a, n = {}, c = !1) => {
|
|
850
|
+
const _ = f(i, r);
|
|
851
|
+
let m = a;
|
|
852
|
+
if (_) {
|
|
853
|
+
const y = _._f;
|
|
854
|
+
y && (!y.disabled && T(l, r, Ut(a, y)), m = pe(y.ref) && j(a) ? "" : a, Rt(y.ref) ? [...y.ref.options].forEach((b) => b.selected = m.includes(b.value)) : y.refs ? ve(y.ref) ? y.refs.forEach((b) => {
|
|
855
|
+
(!b.defaultChecked || !b.disabled) && (Array.isArray(m) ? b.checked = !!m.find((k) => k === b.value) : b.checked = m === b.value || !!m);
|
|
856
|
+
}) : y.refs.forEach((b) => b.checked = b.value === m) : rt(y.ref) ? y.ref.value = "" : (y.ref.value = m, y.ref.type || A.state.next({
|
|
857
|
+
name: r,
|
|
858
|
+
values: c ? l : M(l)
|
|
859
|
+
})));
|
|
860
|
+
}
|
|
861
|
+
(n.shouldDirty || n.shouldTouch) && z(r, m, n.shouldTouch, n.shouldDirty, !0), n.shouldValidate && Ce(r);
|
|
862
|
+
}, me = (r, a, n, c = !1) => {
|
|
863
|
+
for (const _ in a) {
|
|
864
|
+
if (!a.hasOwnProperty(_))
|
|
865
|
+
return;
|
|
866
|
+
const m = a[_], y = r + "." + _, b = f(i, y);
|
|
867
|
+
(d.array.has(r) || N(m) || b && !b._f) && !de(m) ? me(y, m, n, c) : ce(y, m, n, c);
|
|
868
|
+
}
|
|
869
|
+
}, Ae = (r, a, n, c) => {
|
|
870
|
+
const _ = f(i, r), m = d.array.has(r), y = c ? a : M(a), b = f(l, r), k = X(b, y);
|
|
871
|
+
if (k || T(l, r, y), m)
|
|
872
|
+
A.array.next({
|
|
873
|
+
name: r,
|
|
874
|
+
values: c ? l : M(l)
|
|
875
|
+
}), (V.isDirty || V.dirtyFields || D.isDirty || D.dirtyFields) && n.shouldDirty && (x(), A.state.next({
|
|
876
|
+
name: r,
|
|
877
|
+
dirtyFields: e.dirtyFields,
|
|
878
|
+
isDirty: B(r, y)
|
|
879
|
+
}));
|
|
880
|
+
else {
|
|
881
|
+
const H = Array.isArray(y) && !y.length || $(y);
|
|
882
|
+
!_ || _._f || j(y) || H ? ce(r, y, n, c) : me(r, y, n, c);
|
|
883
|
+
}
|
|
884
|
+
if (!k) {
|
|
885
|
+
const H = Je(r, d), ee = c ? l : M(l);
|
|
886
|
+
A.state.next({
|
|
887
|
+
...H && e,
|
|
888
|
+
name: o.mount || H ? r : void 0,
|
|
889
|
+
values: ee
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
}, he = (r, a, n = {}) => Ae(r, a, n, !1), Nt = (r, a = {}) => {
|
|
893
|
+
const n = K(r) ? r(l) : r;
|
|
894
|
+
if (!X(l, n)) {
|
|
895
|
+
l = {
|
|
896
|
+
...l,
|
|
897
|
+
...n
|
|
898
|
+
};
|
|
899
|
+
for (const c of d.mount)
|
|
900
|
+
Ae(c, f(n, c), a, !0);
|
|
901
|
+
A.state.next({
|
|
902
|
+
...e,
|
|
903
|
+
name: void 0,
|
|
904
|
+
type: void 0,
|
|
905
|
+
values: l
|
|
906
|
+
}), a.shouldValidate && L();
|
|
907
|
+
}
|
|
908
|
+
}, it = async (r) => {
|
|
909
|
+
o.mount = !0;
|
|
910
|
+
const a = r.target;
|
|
911
|
+
let n = a.name, c = !0;
|
|
912
|
+
const _ = f(i, n), m = (k) => {
|
|
913
|
+
c = Number.isNaN(k) || de(k) && isNaN(k.getTime()) || X(k, f(l, n, k));
|
|
914
|
+
}, y = _e(s.mode), b = _e(s.reValidateMode);
|
|
915
|
+
if (_) {
|
|
916
|
+
let k, H;
|
|
917
|
+
const ee = a.type ? Ft(_._f) : kt(r), se = r.type === ue.BLUR || r.type === ue.FOCUS_OUT, oe = !ir(_._f) && !t.validate && !s.resolver && !f(e.errors, n) && !_._f.deps || lr(se, f(e.touchedFields, n), e.isSubmitted, b, y), Me = Je(n, d, se);
|
|
918
|
+
T(l, n, ee), se ? (!a || !a.readOnly) && (_._f.onBlur && _._f.onBlur(r), w && w(0)) : _._f.onChange && _._f.onChange(r);
|
|
919
|
+
const Ue = z(n, ee, se), $t = !$(Ue) || Me;
|
|
920
|
+
if (!se && A.state.next({
|
|
921
|
+
name: n,
|
|
922
|
+
type: r.type,
|
|
923
|
+
values: M(l)
|
|
924
|
+
}), oe)
|
|
925
|
+
return (V.isValid || D.isValid) && (s.mode === "onBlur" ? se && L() : se || L()), $t && A.state.next({ name: n, ...Me ? {} : Ue });
|
|
926
|
+
if (!s.resolver && t.validate && await O({
|
|
927
|
+
name: n,
|
|
928
|
+
eventType: r.type
|
|
929
|
+
}), !se && Me && A.state.next({ ...e }), s.resolver) {
|
|
930
|
+
const { errors: gt } = await re([n]);
|
|
931
|
+
if (I([n]), m(ee), c) {
|
|
932
|
+
const jt = xt(e.errors, i, n), mt = xt(gt, i, jt.name || n);
|
|
933
|
+
k = mt.error, n = mt.name, H = $(gt);
|
|
934
|
+
}
|
|
935
|
+
} else
|
|
936
|
+
I([n], !0), k = (await Xe(_, d.disabled, l, q, s.shouldUseNativeValidation))[n], I([n]), m(ee), c && (k ? H = !1 : (V.isValid || D.isValid) && (H = await C({
|
|
937
|
+
fields: i,
|
|
938
|
+
onlyCheckValid: !0,
|
|
939
|
+
name: n,
|
|
940
|
+
eventType: r.type
|
|
941
|
+
})));
|
|
942
|
+
c && (_._f.deps && (!Array.isArray(_._f.deps) || _._f.deps.length > 0) && Ce(_._f.deps), ae(n, H, k, Ue));
|
|
943
|
+
}
|
|
944
|
+
}, at = (r, a) => {
|
|
945
|
+
if (f(e.errors, a) && r.focus)
|
|
946
|
+
return r.focus(), 1;
|
|
947
|
+
}, Ce = async (r, a = {}) => {
|
|
948
|
+
let n, c;
|
|
949
|
+
const _ = J(r);
|
|
950
|
+
if (s.resolver) {
|
|
951
|
+
const m = await Fe(R(r) ? r : _);
|
|
952
|
+
n = $(m), c = r ? !_.some((y) => f(m, y)) : n;
|
|
953
|
+
} else r ? (c = (await Promise.all(_.map(async (m) => {
|
|
954
|
+
const y = f(i, m);
|
|
955
|
+
return await C({
|
|
956
|
+
fields: y && y._f ? { [m]: y } : y,
|
|
957
|
+
eventType: ue.TRIGGER
|
|
958
|
+
});
|
|
959
|
+
}))).every(Boolean), !(!c && !e.isValid) && L()) : c = n = await C({
|
|
960
|
+
fields: i,
|
|
961
|
+
name: r,
|
|
962
|
+
eventType: ue.TRIGGER
|
|
963
|
+
});
|
|
964
|
+
return A.state.next({
|
|
965
|
+
...!Y(r) || (V.isValid || D.isValid) && n !== e.isValid ? {} : { name: r },
|
|
966
|
+
...s.resolver || !r ? { isValid: n } : {},
|
|
967
|
+
errors: e.errors
|
|
968
|
+
}), a.shouldFocus && !c && ge(i, at, r ? _ : d.mount), c;
|
|
969
|
+
}, nt = (r, a) => {
|
|
970
|
+
let n = {
|
|
971
|
+
...o.mount ? l : u
|
|
972
|
+
};
|
|
973
|
+
return a && (n = Ot(a.dirtyFields ? e.dirtyFields : e.touchedFields, n)), R(r) ? n : Y(r) ? f(n, r) : r.map((c) => f(n, c));
|
|
974
|
+
}, lt = (r, a) => ({
|
|
975
|
+
invalid: !!f((a || e).errors, r),
|
|
976
|
+
isDirty: !!f((a || e).dirtyFields, r),
|
|
977
|
+
error: f((a || e).errors, r),
|
|
978
|
+
isValidating: !!f(e.validatingFields, r),
|
|
979
|
+
isTouched: !!f((a || e).touchedFields, r)
|
|
980
|
+
}), ut = (r) => {
|
|
981
|
+
const a = r ? J(r) : void 0;
|
|
982
|
+
a?.forEach((n) => P(e.errors, n)), a ? a.forEach((n) => {
|
|
983
|
+
A.state.next({
|
|
984
|
+
name: n,
|
|
985
|
+
errors: e.errors
|
|
986
|
+
});
|
|
987
|
+
}) : A.state.next({
|
|
988
|
+
errors: {}
|
|
989
|
+
});
|
|
990
|
+
}, xe = (r, a, n) => {
|
|
991
|
+
const c = (f(i, r, { _f: {} })._f || {}).ref, _ = f(e.errors, r) || {}, { ref: m, message: y, type: b, ...k } = _;
|
|
992
|
+
T(e.errors, r, {
|
|
993
|
+
...k,
|
|
994
|
+
...a,
|
|
995
|
+
ref: c
|
|
996
|
+
}), A.state.next({
|
|
997
|
+
name: r,
|
|
998
|
+
errors: e.errors,
|
|
999
|
+
isValid: !1
|
|
1000
|
+
}), n && n.shouldFocus && c && c.focus && c.focus();
|
|
1001
|
+
}, Bt = (r, a) => K(r) ? A.state.subscribe({
|
|
1002
|
+
next: (n) => "values" in n && r(n.values || Z(void 0, a), n)
|
|
1003
|
+
}) : Z(r, a, !0), ot = (r) => A.state.subscribe({
|
|
1004
|
+
next: (a) => {
|
|
1005
|
+
if (nr(r.name, a.name, r.exact) && ar(a, r.formState || V, Gt, r.reRenderRoot)) {
|
|
1006
|
+
const n = { ...l };
|
|
1007
|
+
r.callback({
|
|
1008
|
+
values: n,
|
|
1009
|
+
...e,
|
|
1010
|
+
...a,
|
|
1011
|
+
defaultValues: u
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}).unsubscribe, Pt = (r) => (o.mount = !0, D = {
|
|
1016
|
+
...D,
|
|
1017
|
+
...r.formState
|
|
1018
|
+
}, ot({
|
|
1019
|
+
...r,
|
|
1020
|
+
formState: {
|
|
1021
|
+
...W,
|
|
1022
|
+
...r.formState
|
|
1023
|
+
}
|
|
1024
|
+
})), Oe = (r, a = {}) => {
|
|
1025
|
+
for (const n of r ? J(r) : d.mount)
|
|
1026
|
+
d.mount.delete(n), d.array.delete(n), a.keepValue || (P(i, n), P(l, n)), !a.keepError && P(e.errors, n), !a.keepDirty && P(e.dirtyFields, n), !a.keepTouched && P(e.touchedFields, n), !a.keepIsValidating && P(e.validatingFields, n), !s.shouldUnregister && !a.keepDefaultValue && P(u, n);
|
|
1027
|
+
A.state.next({
|
|
1028
|
+
values: M(l)
|
|
1029
|
+
}), A.state.next({
|
|
1030
|
+
...e,
|
|
1031
|
+
...a.keepDirty ? { isDirty: B() } : {}
|
|
1032
|
+
}), !a.keepIsValid && L();
|
|
1033
|
+
}, dt = ({ disabled: r, name: a }) => {
|
|
1034
|
+
if (Q(r) && o.mount || r || d.disabled.has(a)) {
|
|
1035
|
+
const _ = d.disabled.has(a) !== !!r;
|
|
1036
|
+
r ? d.disabled.add(a) : d.disabled.delete(a), _ && o.mount && !o.action && L();
|
|
1037
|
+
}
|
|
1038
|
+
}, Re = (r, a = {}) => {
|
|
1039
|
+
let n = f(i, r);
|
|
1040
|
+
const c = Q(a.disabled) || Q(s.disabled), _ = !d.registerName.has(r) && n && n._f && !n._f.mount;
|
|
1041
|
+
return T(i, r, {
|
|
1042
|
+
...n || {},
|
|
1043
|
+
_f: {
|
|
1044
|
+
...n && n._f ? n._f : { ref: { name: r } },
|
|
1045
|
+
name: r,
|
|
1046
|
+
mount: !0,
|
|
1047
|
+
...a
|
|
1048
|
+
}
|
|
1049
|
+
}), d.mount.add(r), n && !_ ? dt({
|
|
1050
|
+
disabled: Q(a.disabled) ? a.disabled : s.disabled,
|
|
1051
|
+
name: r
|
|
1052
|
+
}) : E(r, !0, a.value), {
|
|
1053
|
+
...c ? { disabled: a.disabled || s.disabled } : {},
|
|
1054
|
+
...s.progressive ? {
|
|
1055
|
+
required: !!a.required,
|
|
1056
|
+
min: Ve(a.min),
|
|
1057
|
+
max: Ve(a.max),
|
|
1058
|
+
minLength: Ve(a.minLength),
|
|
1059
|
+
maxLength: Ve(a.maxLength),
|
|
1060
|
+
pattern: Ve(a.pattern)
|
|
1061
|
+
} : {},
|
|
1062
|
+
name: r,
|
|
1063
|
+
onChange: it,
|
|
1064
|
+
onBlur: it,
|
|
1065
|
+
ref: (m) => {
|
|
1066
|
+
if (m) {
|
|
1067
|
+
d.registerName.add(r), Re(r, a), d.registerName.delete(r), n = f(i, r);
|
|
1068
|
+
const y = R(m.value) && m.querySelectorAll && m.querySelectorAll("input,select,textarea")[0] || m, b = Xt(y), k = n._f.refs || [];
|
|
1069
|
+
if (b ? k.find((H) => H === y) : y === n._f.ref)
|
|
1070
|
+
return;
|
|
1071
|
+
T(i, r, {
|
|
1072
|
+
_f: {
|
|
1073
|
+
...n._f,
|
|
1074
|
+
...b ? {
|
|
1075
|
+
refs: [
|
|
1076
|
+
...k.filter(Le),
|
|
1077
|
+
y,
|
|
1078
|
+
...Array.isArray(f(u, r)) ? [{}] : []
|
|
1079
|
+
],
|
|
1080
|
+
ref: { type: y.type, name: r }
|
|
1081
|
+
} : { ref: y }
|
|
1082
|
+
}
|
|
1083
|
+
}), E(r, !1, void 0, y);
|
|
1084
|
+
} else
|
|
1085
|
+
n = f(i, r, {}), n._f && (n._f.mount = !1), (s.shouldUnregister || a.shouldUnregister) && !(St(d.array, r) && o.action) && d.unMount.add(r);
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
}, Te = () => s.shouldFocusError && !s.shouldUseNativeValidation && ge(i, at, d.mount), Wt = (r) => {
|
|
1089
|
+
Q(r) && (A.state.next({ disabled: r }), ge(i, (a, n) => {
|
|
1090
|
+
const c = f(i, n);
|
|
1091
|
+
c && (a.disabled = c._f.disabled || r, Array.isArray(c._f.refs) && c._f.refs.forEach((_) => {
|
|
1092
|
+
_.disabled = c._f.disabled || r;
|
|
1093
|
+
}));
|
|
1094
|
+
}, 0, !1));
|
|
1095
|
+
}, ct = (r, a) => async (n) => {
|
|
1096
|
+
let c;
|
|
1097
|
+
n && (n.preventDefault && n.preventDefault(), n.persist && n.persist());
|
|
1098
|
+
let _ = M(l);
|
|
1099
|
+
if (A.state.next({
|
|
1100
|
+
isSubmitting: !0
|
|
1101
|
+
}), s.resolver) {
|
|
1102
|
+
const { errors: m, values: y } = await re();
|
|
1103
|
+
I(), e.errors = m, _ = M(y);
|
|
1104
|
+
} else
|
|
1105
|
+
await C({
|
|
1106
|
+
fields: i,
|
|
1107
|
+
eventType: ue.SUBMIT
|
|
1108
|
+
});
|
|
1109
|
+
if (d.disabled.size)
|
|
1110
|
+
for (const m of d.disabled)
|
|
1111
|
+
P(_, m);
|
|
1112
|
+
if (P(e.errors, Et), $(e.errors)) {
|
|
1113
|
+
A.state.next({
|
|
1114
|
+
errors: {}
|
|
1115
|
+
});
|
|
1116
|
+
try {
|
|
1117
|
+
await r(_, n);
|
|
1118
|
+
} catch (m) {
|
|
1119
|
+
c = m;
|
|
1120
|
+
}
|
|
1121
|
+
} else
|
|
1122
|
+
a && await a({ ...e.errors }, n), Te(), setTimeout(Te);
|
|
1123
|
+
if (A.state.next({
|
|
1124
|
+
isSubmitted: !0,
|
|
1125
|
+
isSubmitting: !1,
|
|
1126
|
+
isSubmitSuccessful: $(e.errors) && !c,
|
|
1127
|
+
submitCount: e.submitCount + 1,
|
|
1128
|
+
errors: e.errors
|
|
1129
|
+
}), c)
|
|
1130
|
+
throw c;
|
|
1131
|
+
}, qt = (r, a = {}) => {
|
|
1132
|
+
f(i, r) && (R(a.defaultValue) ? he(r, M(f(u, r))) : (he(r, a.defaultValue), T(u, r, M(a.defaultValue))), a.keepTouched || P(e.touchedFields, r), a.keepDirty || (P(e.dirtyFields, r), e.isDirty = a.defaultValue ? B(r, M(f(u, r))) : B()), a.keepError || (P(e.errors, r), V.isValid && L()), A.state.next({ ...e }));
|
|
1133
|
+
}, ft = (r, a = {}) => {
|
|
1134
|
+
const n = r ? M(r) : u, c = M(n), _ = $(r), m = _ ? u : c;
|
|
1135
|
+
if (a.keepDefaultValues || (u = n), !a.keepValues) {
|
|
1136
|
+
if (a.keepDirtyValues) {
|
|
1137
|
+
const y = /* @__PURE__ */ new Set([
|
|
1138
|
+
...d.mount,
|
|
1139
|
+
...Object.keys(ye(u, l))
|
|
1140
|
+
]);
|
|
1141
|
+
for (const b of Array.from(y)) {
|
|
1142
|
+
const k = f(e.dirtyFields, b), H = f(l, b), ee = f(m, b);
|
|
1143
|
+
k && !R(H) ? T(m, b, H) : !k && !R(ee) && he(b, ee);
|
|
1144
|
+
}
|
|
1145
|
+
} else {
|
|
1146
|
+
if (Ze && R(r))
|
|
1147
|
+
for (const y of d.mount) {
|
|
1148
|
+
const b = f(i, y);
|
|
1149
|
+
if (b && b._f) {
|
|
1150
|
+
const k = Array.isArray(b._f.refs) ? b._f.refs[0] : b._f.ref;
|
|
1151
|
+
if (pe(k)) {
|
|
1152
|
+
const H = k.closest("form");
|
|
1153
|
+
if (H) {
|
|
1154
|
+
H.reset();
|
|
1155
|
+
break;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
if (a.keepFieldsRef)
|
|
1161
|
+
for (const y of d.mount)
|
|
1162
|
+
he(y, f(m, y));
|
|
1163
|
+
else
|
|
1164
|
+
i = {};
|
|
1165
|
+
}
|
|
1166
|
+
l = s.shouldUnregister ? a.keepDefaultValues ? M(u) : {} : M(m), A.array.next({
|
|
1167
|
+
values: { ...m }
|
|
1168
|
+
}), A.state.next({
|
|
1169
|
+
values: { ...m }
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
d = {
|
|
1173
|
+
mount: a.keepDirtyValues ? d.mount : /* @__PURE__ */ new Set(),
|
|
1174
|
+
unMount: /* @__PURE__ */ new Set(),
|
|
1175
|
+
array: /* @__PURE__ */ new Set(),
|
|
1176
|
+
registerName: /* @__PURE__ */ new Set(),
|
|
1177
|
+
disabled: /* @__PURE__ */ new Set(),
|
|
1178
|
+
watch: /* @__PURE__ */ new Set(),
|
|
1179
|
+
watchAll: !1,
|
|
1180
|
+
focus: ""
|
|
1181
|
+
}, o.mount = !V.isValid || !!a.keepIsValid || !!a.keepDirtyValues || !s.shouldUnregister && !$(m), o.watch = !!s.shouldUnregister, o.keepIsValid = !!a.keepIsValid, o.action = !1, a.keepErrors || (e.errors = {}), A.state.next({
|
|
1182
|
+
submitCount: a.keepSubmitCount ? e.submitCount : 0,
|
|
1183
|
+
isDirty: _ ? !1 : a.keepDirty ? e.isDirty : !!(a.keepDefaultValues && !X(r, u)),
|
|
1184
|
+
isSubmitted: a.keepIsSubmitted ? e.isSubmitted : !1,
|
|
1185
|
+
dirtyFields: _ ? {} : a.keepDirtyValues ? a.keepDefaultValues && l ? ye(u, l) : e.dirtyFields : a.keepDefaultValues && r ? ye(u, r) : a.keepDirty ? e.dirtyFields : {},
|
|
1186
|
+
touchedFields: a.keepTouched ? e.touchedFields : {},
|
|
1187
|
+
errors: a.keepErrors ? e.errors : {},
|
|
1188
|
+
isSubmitSuccessful: a.keepIsSubmitSuccessful ? e.isSubmitSuccessful : !1,
|
|
1189
|
+
isSubmitting: !1,
|
|
1190
|
+
defaultValues: u
|
|
1191
|
+
});
|
|
1192
|
+
}, yt = (r, a) => ft(K(r) ? r(l) : r, { ...s.resetOptions, ...a }), Ht = (r, a = {}) => {
|
|
1193
|
+
const n = f(i, r), c = n && n._f;
|
|
1194
|
+
if (c) {
|
|
1195
|
+
const _ = c.refs ? c.refs[0] : c.ref;
|
|
1196
|
+
_.focus && setTimeout(() => {
|
|
1197
|
+
_.focus(), a.shouldSelect && K(_.select) && _.select();
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
}, Gt = (r) => {
|
|
1201
|
+
e = {
|
|
1202
|
+
...e,
|
|
1203
|
+
...r
|
|
1204
|
+
};
|
|
1205
|
+
}, _t = {
|
|
1206
|
+
control: {
|
|
1207
|
+
register: Re,
|
|
1208
|
+
unregister: Oe,
|
|
1209
|
+
getFieldState: lt,
|
|
1210
|
+
handleSubmit: ct,
|
|
1211
|
+
setError: xe,
|
|
1212
|
+
_subscribe: ot,
|
|
1213
|
+
_runSchema: re,
|
|
1214
|
+
_updateIsValidating: I,
|
|
1215
|
+
_focusError: Te,
|
|
1216
|
+
_getWatch: Z,
|
|
1217
|
+
_getDirty: B,
|
|
1218
|
+
_setValid: L,
|
|
1219
|
+
_setFieldArray: S,
|
|
1220
|
+
_setDisabledField: dt,
|
|
1221
|
+
_setErrors: g,
|
|
1222
|
+
_getFieldArray: ne,
|
|
1223
|
+
_reset: ft,
|
|
1224
|
+
_resetDefaultValues: () => K(s.defaultValues) && s.defaultValues().then((r) => {
|
|
1225
|
+
yt(r, s.resetOptions), A.state.next({
|
|
1226
|
+
isLoading: !1
|
|
1227
|
+
});
|
|
1228
|
+
}),
|
|
1229
|
+
_removeUnmounted: G,
|
|
1230
|
+
_disableForm: Wt,
|
|
1231
|
+
_subjects: A,
|
|
1232
|
+
_proxyFormState: V,
|
|
1233
|
+
get _fields() {
|
|
1234
|
+
return i;
|
|
1235
|
+
},
|
|
1236
|
+
get _formValues() {
|
|
1237
|
+
return l;
|
|
1238
|
+
},
|
|
1239
|
+
get _state() {
|
|
1240
|
+
return o;
|
|
1241
|
+
},
|
|
1242
|
+
set _state(r) {
|
|
1243
|
+
o = r;
|
|
1244
|
+
},
|
|
1245
|
+
get _defaultValues() {
|
|
1246
|
+
return u;
|
|
1247
|
+
},
|
|
1248
|
+
get _names() {
|
|
1249
|
+
return d;
|
|
1250
|
+
},
|
|
1251
|
+
set _names(r) {
|
|
1252
|
+
d = r;
|
|
1253
|
+
},
|
|
1254
|
+
get _formState() {
|
|
1255
|
+
return e;
|
|
1256
|
+
},
|
|
1257
|
+
get _options() {
|
|
1258
|
+
return s;
|
|
1259
|
+
},
|
|
1260
|
+
set _options(r) {
|
|
1261
|
+
s = {
|
|
1262
|
+
...s,
|
|
1263
|
+
...r
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
subscribe: Pt,
|
|
1268
|
+
trigger: Ce,
|
|
1269
|
+
register: Re,
|
|
1270
|
+
handleSubmit: ct,
|
|
1271
|
+
watch: Bt,
|
|
1272
|
+
setValue: he,
|
|
1273
|
+
setValues: Nt,
|
|
1274
|
+
getValues: nt,
|
|
1275
|
+
reset: yt,
|
|
1276
|
+
resetField: qt,
|
|
1277
|
+
clearErrors: ut,
|
|
1278
|
+
unregister: Oe,
|
|
1279
|
+
setError: xe,
|
|
1280
|
+
setFocus: Ht,
|
|
1281
|
+
getFieldState: lt
|
|
1282
|
+
};
|
|
1283
|
+
return {
|
|
1284
|
+
..._t,
|
|
1285
|
+
formControl: _t
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
var le = () => {
|
|
1289
|
+
if (typeof crypto < "u" && crypto.randomUUID)
|
|
1290
|
+
return crypto.randomUUID();
|
|
1291
|
+
const t = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
|
|
1292
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (s) => {
|
|
1293
|
+
const e = (Math.random() * 16 + t) % 16 | 0;
|
|
1294
|
+
return (s == "x" ? e : e & 3 | 8).toString(16);
|
|
1295
|
+
});
|
|
1296
|
+
}, Ne = (t, s, e = {}) => e.shouldFocus || R(e.shouldFocus) ? e.focusName || `${t}.${R(e.focusIndex) ? s : e.focusIndex}.` : "", Be = (t, s) => [
|
|
1297
|
+
...t,
|
|
1298
|
+
...J(s)
|
|
1299
|
+
], Pe = (t) => Array.isArray(t) ? t.map(() => {
|
|
1300
|
+
}) : void 0;
|
|
1301
|
+
function We(t, s, e) {
|
|
1302
|
+
return [
|
|
1303
|
+
...t.slice(0, s),
|
|
1304
|
+
...J(e),
|
|
1305
|
+
...t.slice(s)
|
|
1306
|
+
];
|
|
1307
|
+
}
|
|
1308
|
+
var qe = (t, s, e) => Array.isArray(t) ? (R(t[e]) && (t[e] = void 0), t.splice(e, 0, t.splice(s, 1)[0]), t) : [], He = (t, s) => [
|
|
1309
|
+
...J(s),
|
|
1310
|
+
...J(t)
|
|
1311
|
+
];
|
|
1312
|
+
function cr(t, s) {
|
|
1313
|
+
let e = 0;
|
|
1314
|
+
const i = [...t];
|
|
1315
|
+
for (const u of s)
|
|
1316
|
+
i.splice(u - e, 1), e++;
|
|
1317
|
+
return De(i).length ? i : [];
|
|
1318
|
+
}
|
|
1319
|
+
var Ge = (t, s) => R(s) ? [] : cr(t, J(s).sort((e, i) => e - i)), $e = (t, s, e) => {
|
|
1320
|
+
[t[s], t[e]] = [t[e], t[s]];
|
|
1321
|
+
}, wt = (t, s, e) => (t[s] = e, t);
|
|
1322
|
+
function hr(t) {
|
|
1323
|
+
const s = Se(), { control: e = s, name: i, keyName: u = "id", shouldUnregister: l, rules: o } = t, [d, w] = v.useState(e._getFieldArray(i)), p = v.useRef(e._getFieldArray(i).map(le)), W = v.useRef(!1);
|
|
1324
|
+
e._names.array.add(i), v.useMemo(() => o && d.length >= 0 && e.register(i, o), [e, i, d.length, o]), Ee(() => e._subjects.array.subscribe({
|
|
1325
|
+
next: ({ values: h, name: g }) => {
|
|
1326
|
+
if (g === i || !g) {
|
|
1327
|
+
const F = f(h, i);
|
|
1328
|
+
Array.isArray(F) && (w(F), p.current = F.map(le));
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}).unsubscribe, [e, i]);
|
|
1332
|
+
const V = v.useCallback((h) => {
|
|
1333
|
+
W.current = !0, e._setFieldArray(i, h);
|
|
1334
|
+
}, [e, i]), D = (h, g) => {
|
|
1335
|
+
const F = J(M(h)), E = Be(e._getFieldArray(i), F);
|
|
1336
|
+
e._names.focus = Ne(i, E.length - 1, g), p.current = Be(p.current, F.map(le)), V(E), w(E), e._setFieldArray(i, E, Be, {
|
|
1337
|
+
argA: Pe(h)
|
|
1338
|
+
});
|
|
1339
|
+
}, A = (h, g) => {
|
|
1340
|
+
const F = J(M(h)), E = He(e._getFieldArray(i), F);
|
|
1341
|
+
e._names.focus = Ne(i, 0, g), p.current = He(p.current, F.map(le)), V(E), w(E), e._setFieldArray(i, E, He, {
|
|
1342
|
+
argA: Pe(h)
|
|
1343
|
+
});
|
|
1344
|
+
}, q = (h) => {
|
|
1345
|
+
const g = Ge(e._getFieldArray(i), h);
|
|
1346
|
+
p.current = Ge(p.current, h), V(g), w(g), !Array.isArray(f(e._fields, i)) && T(e._fields, i, void 0), e._setFieldArray(i, g, Ge, {
|
|
1347
|
+
argA: h
|
|
1348
|
+
});
|
|
1349
|
+
}, U = (h, g, F) => {
|
|
1350
|
+
const E = J(M(g)), z = We(e._getFieldArray(i), h, E);
|
|
1351
|
+
e._names.focus = Ne(i, h, F), p.current = We(p.current, h, E.map(le)), V(z), w(z), e._setFieldArray(i, z, We, {
|
|
1352
|
+
argA: h,
|
|
1353
|
+
argB: Pe(g)
|
|
1354
|
+
});
|
|
1355
|
+
}, L = (h, g) => {
|
|
1356
|
+
const F = e._getFieldArray(i);
|
|
1357
|
+
$e(F, h, g), $e(p.current, h, g), V(F), w(F), e._setFieldArray(i, F, $e, {
|
|
1358
|
+
argA: h,
|
|
1359
|
+
argB: g
|
|
1360
|
+
}, !1);
|
|
1361
|
+
}, I = (h, g) => {
|
|
1362
|
+
const F = e._getFieldArray(i);
|
|
1363
|
+
qe(F, h, g), qe(p.current, h, g), V(F), w(F), e._setFieldArray(i, F, qe, {
|
|
1364
|
+
argA: h,
|
|
1365
|
+
argB: g
|
|
1366
|
+
}, !1);
|
|
1367
|
+
}, x = (h, g) => {
|
|
1368
|
+
const F = M(g), E = wt(e._getFieldArray(i), h, F);
|
|
1369
|
+
p.current = [...E].map((z, ae) => !z || ae === h ? le() : p.current[ae]), V(E), w([...E]), e._setFieldArray(i, E, wt, {
|
|
1370
|
+
argA: h,
|
|
1371
|
+
argB: F
|
|
1372
|
+
}, !0, !1);
|
|
1373
|
+
}, S = (h) => {
|
|
1374
|
+
const g = J(M(h));
|
|
1375
|
+
p.current = g.map(le), V([...g]), w([...g]), e._setFieldArray(i, [...g], (F) => F, {}, !0, !1);
|
|
1376
|
+
};
|
|
1377
|
+
return v.useEffect(() => {
|
|
1378
|
+
e._state.action = !1, Je(i, e._names) && e._subjects.state.next({
|
|
1379
|
+
...e._formState
|
|
1380
|
+
});
|
|
1381
|
+
const h = _e(e._options.mode);
|
|
1382
|
+
if (W.current && (!h.isOnSubmit || e._formState.isSubmitted) && !_e(e._options.reValidateMode).isOnSubmit && !h.isOnBlur)
|
|
1383
|
+
if (e._options.resolver)
|
|
1384
|
+
e._runSchema([i]).then((g) => {
|
|
1385
|
+
e._updateIsValidating([i]);
|
|
1386
|
+
const F = f(g.errors, i), E = f(e._formState.errors, i);
|
|
1387
|
+
(E ? !F && E.type || F && (E.type !== F.type || E.message !== F.message) : F && F.type) && (F ? T(e._formState.errors, i, F) : P(e._formState.errors, i), e._subjects.state.next({
|
|
1388
|
+
errors: e._formState.errors
|
|
1389
|
+
}));
|
|
1390
|
+
});
|
|
1391
|
+
else {
|
|
1392
|
+
const g = f(e._fields, i);
|
|
1393
|
+
g && g._f && !(_e(e._options.reValidateMode).isOnSubmit && _e(e._options.mode).isOnSubmit) && Xe(g, e._names.disabled, e._formValues, e._options.criteriaMode === te.all, e._options.shouldUseNativeValidation, !0).then((F) => !$(F) && e._subjects.state.next({
|
|
1394
|
+
errors: Qe(e._formState.errors, F, i)
|
|
1395
|
+
}));
|
|
1396
|
+
}
|
|
1397
|
+
e._subjects.state.next({
|
|
1398
|
+
name: i,
|
|
1399
|
+
values: M(e._formValues)
|
|
1400
|
+
}), e._names.focus && ge(e._fields, (g, F) => {
|
|
1401
|
+
if (e._names.focus && F.startsWith(e._names.focus) && g.focus)
|
|
1402
|
+
return g.focus(), 1;
|
|
1403
|
+
}), e._names.focus = "", e._setValid(), W.current = !1;
|
|
1404
|
+
}, [d, i, e]), v.useEffect(() => (!f(e._formValues, i) && e._setFieldArray(i), () => {
|
|
1405
|
+
const h = !(e._options.shouldUnregister || l), g = (F, E) => {
|
|
1406
|
+
const z = f(e._fields, F);
|
|
1407
|
+
z && z._f && (z._f.mount = E);
|
|
1408
|
+
};
|
|
1409
|
+
W.current && h && e._subjects.state.next({
|
|
1410
|
+
name: i,
|
|
1411
|
+
values: M(e._formValues)
|
|
1412
|
+
}), h ? g(i, !1) : e.unregister(i);
|
|
1413
|
+
}), [i, e, u, l]), {
|
|
1414
|
+
swap: v.useCallback(L, [V, i, e]),
|
|
1415
|
+
move: v.useCallback(I, [V, i, e]),
|
|
1416
|
+
prepend: v.useCallback(A, [V, i, e]),
|
|
1417
|
+
append: v.useCallback(D, [V, i, e]),
|
|
1418
|
+
remove: v.useCallback(q, [V, i, e]),
|
|
1419
|
+
insert: v.useCallback(U, [V, i, e]),
|
|
1420
|
+
update: v.useCallback(x, [V, i, e]),
|
|
1421
|
+
replace: v.useCallback(S, [V, i, e]),
|
|
1422
|
+
fields: v.useMemo(() => d.map((h, g) => ({
|
|
1423
|
+
...h,
|
|
1424
|
+
[u]: p.current[g] || le()
|
|
1425
|
+
})), [d, u])
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
function Vr(t = {}) {
|
|
1429
|
+
const s = v.useRef(void 0), e = v.useRef(void 0), [i, u] = v.useState(() => ({
|
|
1430
|
+
...M(Lt),
|
|
1431
|
+
isLoading: K(t.defaultValues),
|
|
1432
|
+
errors: t.errors || {},
|
|
1433
|
+
disabled: t.disabled || !1,
|
|
1434
|
+
defaultValues: K(t.defaultValues) ? void 0 : t.defaultValues
|
|
1435
|
+
}));
|
|
1436
|
+
if (!s.current)
|
|
1437
|
+
if (t.formControl)
|
|
1438
|
+
s.current = {
|
|
1439
|
+
...t.formControl,
|
|
1440
|
+
formState: i
|
|
1441
|
+
}, t.defaultValues && !K(t.defaultValues) && t.formControl.reset(t.defaultValues, t.resetOptions);
|
|
1442
|
+
else {
|
|
1443
|
+
const { formControl: o, ...d } = dr(t);
|
|
1444
|
+
s.current = {
|
|
1445
|
+
...d,
|
|
1446
|
+
formState: i
|
|
1447
|
+
};
|
|
1448
|
+
}
|
|
1449
|
+
const l = s.current.control;
|
|
1450
|
+
return l._options = t, Ee(() => {
|
|
1451
|
+
const o = l._subscribe({
|
|
1452
|
+
formState: l._proxyFormState,
|
|
1453
|
+
callback: () => u({
|
|
1454
|
+
...l._formState,
|
|
1455
|
+
defaultValues: l._defaultValues
|
|
1456
|
+
}),
|
|
1457
|
+
reRenderRoot: !0
|
|
1458
|
+
});
|
|
1459
|
+
return u((d) => ({
|
|
1460
|
+
...d,
|
|
1461
|
+
isReady: !0
|
|
1462
|
+
})), l._formState.isReady = !0, o;
|
|
1463
|
+
}, [l]), v.useEffect(() => l._disableForm(t.disabled), [l, t.disabled]), v.useEffect(() => {
|
|
1464
|
+
t.mode && (l._options.mode = t.mode), t.reValidateMode && (l._options.reValidateMode = t.reValidateMode);
|
|
1465
|
+
}, [l, t.mode, t.reValidateMode]), v.useEffect(() => {
|
|
1466
|
+
t.errors && (l._setErrors(t.errors), l._focusError());
|
|
1467
|
+
}, [l, t.errors]), v.useEffect(() => {
|
|
1468
|
+
t.shouldUnregister && l._subjects.state.next({
|
|
1469
|
+
values: l._getWatch()
|
|
1470
|
+
});
|
|
1471
|
+
}, [l, t.shouldUnregister]), v.useEffect(() => {
|
|
1472
|
+
if (l._proxyFormState.isDirty) {
|
|
1473
|
+
const o = l._getDirty();
|
|
1474
|
+
o !== i.isDirty && l._subjects.state.next({
|
|
1475
|
+
isDirty: o
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
}, [l, i.isDirty]), v.useEffect(() => {
|
|
1479
|
+
var o;
|
|
1480
|
+
t.values && !X(t.values, e.current) ? (l._reset(t.values, {
|
|
1481
|
+
keepFieldsRef: !0,
|
|
1482
|
+
...l._options.resetOptions
|
|
1483
|
+
}), !((o = l._options.resetOptions) === null || o === void 0) && o.keepIsValid || l._setValid(), e.current = t.values, u((d) => ({ ...d }))) : l._resetDefaultValues();
|
|
1484
|
+
}, [l, t.values]), v.useEffect(() => {
|
|
1485
|
+
l._state.mount || (l._setValid(), l._state.mount = !0), l._state.watch && (l._state.watch = !1, l._subjects.state.next({ ...l._formState })), l._removeUnmounted();
|
|
1486
|
+
}), s.current.formState = v.useMemo(() => Ct(i, l), [l, i]), s.current;
|
|
1487
|
+
}
|
|
1488
|
+
export {
|
|
1489
|
+
_r as Controller,
|
|
1490
|
+
mr as FormProvider,
|
|
1491
|
+
Qt as appendErrors,
|
|
1492
|
+
dr as createFormControl,
|
|
1493
|
+
f as get,
|
|
1494
|
+
T as set,
|
|
1495
|
+
Jt as useController,
|
|
1496
|
+
hr as useFieldArray,
|
|
1497
|
+
Vr as useForm,
|
|
1498
|
+
gr as useFormContext,
|
|
1499
|
+
Yt as useFormState,
|
|
1500
|
+
zt as useWatch
|
|
1501
|
+
};
|