@eightshift/ui-components 6.3.0 → 7.1.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/Button-h6xF_WrP.js +225 -0
- package/dist/Dialog-i5VLQw1o.js +2488 -0
- package/dist/Disclosure-NYWFw9RJ.js +188 -0
- package/dist/FieldError-BWDbP5Db.js +213 -0
- package/dist/FocusScope-CgwbGOBB.js +746 -0
- package/dist/Form-DTMkbrQY.js +5 -0
- package/dist/Heading-Hol-wS_B.js +16 -0
- package/dist/Hidden-8TB37dpK.js +51 -0
- package/dist/Input-BURqyJXW.js +161 -0
- package/dist/Label-DFXXxMKY.js +17 -0
- package/dist/List-CMK5qsNF.js +506 -0
- package/dist/ListBox-B21SgugS.js +601 -0
- package/dist/NumberFormatter-m5VW6MTK.js +122 -0
- package/dist/OverlayArrow-BoloUPQM.js +573 -0
- package/dist/PortalProvider-DinZZCKX.js +14 -0
- package/dist/RSPContexts-C_z0bI8W.js +12 -0
- package/dist/RadioGroup-BwlGtCja.js +329 -0
- package/dist/SearchField-DR_I4_yn.js +765 -0
- package/dist/SelectionIndicator-31L6EI9F.js +13 -0
- package/dist/SelectionManager-B8lLv6Ue.js +2176 -0
- package/dist/Slider-DW1RuMVp.js +827 -0
- package/dist/Text-O6VBBDlP.js +16 -0
- package/dist/VisuallyHidden-CfsnJHZb.js +43 -0
- package/dist/animation-Bd2peown.js +62 -0
- package/dist/assets/style-admin.css +252 -255
- package/dist/assets/style-editor.css +252 -255
- package/dist/assets/style.css +252 -255
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/assets/wp-overrides/replace-fonts.css +1 -1
- package/dist/assets/wp-overrides/restyle-tooltips.css +3 -3
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/build-module-sxK3nxOK.js +855 -0
- package/dist/button-COTeluL8.js +524 -0
- package/dist/checkbox-D0AWkLhp.js +338 -0
- package/dist/clsx-BUU5J41u.js +16 -0
- package/dist/color-swatch-CBYsO_Zs.js +2572 -0
- package/dist/components/animated-visibility/animated-visibility.js +87 -111
- package/dist/components/base-control/base-control.js +73 -86
- package/dist/components/base-control/container.js +199 -227
- package/dist/components/breakpoint-preview/breakpoint-preview.js +162 -158
- package/dist/components/button/button.js +3 -580
- package/dist/components/checkbox/checkbox.js +2 -391
- package/dist/components/color-pickers/color-picker.js +172 -276
- package/dist/components/color-pickers/color-swatch.js +3 -7
- package/dist/components/color-pickers/gradient-editor.js +4 -552
- package/dist/components/color-pickers/solid-color-picker.js +3 -1710
- package/dist/components/component-toggle/component-toggle.js +107 -160
- package/dist/components/container-panel/container-panel.js +94 -151
- package/dist/components/draggable/draggable-context.js +4 -4
- package/dist/components/draggable/draggable-handle.js +27 -43
- package/dist/components/draggable/draggable.js +3 -7638
- package/dist/components/draggable-list/draggable-list-context.js +4 -4
- package/dist/components/draggable-list/draggable-list-item.js +63 -80
- package/dist/components/draggable-list/draggable-list.js +115 -142
- package/dist/components/expandable/expandable.js +105 -407
- package/dist/components/index.js +30 -106
- package/dist/components/input-field/input-field.js +2 -326
- package/dist/components/item-collection/item-collection.js +50 -56
- package/dist/components/layout/hstack.js +27 -29
- package/dist/components/layout/vstack.js +27 -29
- package/dist/components/link-input/link-input.js +3 -1943
- package/dist/components/matrix-align/matrix-align.js +127 -161
- package/dist/components/menu/menu.js +253 -356
- package/dist/components/modal/modal.js +3 -399
- package/dist/components/notice/notice.js +99 -139
- package/dist/components/number-picker/number-picker.js +3 -344
- package/dist/components/option-select/option-select.js +226 -404
- package/dist/components/options-panel/options-panel.js +138 -175
- package/dist/components/placeholders/file-picker-shell.js +91 -141
- package/dist/components/placeholders/file-placeholder.js +41 -53
- package/dist/components/placeholders/image-placeholder.js +65 -96
- package/dist/components/placeholders/media-placeholder.js +65 -68
- package/dist/components/popover/popover.js +147 -221
- package/dist/components/portal-provider/portal-provider.js +23 -21
- package/dist/components/radio/radio.js +246 -294
- package/dist/components/repeater/repeater-context.js +4 -4
- package/dist/components/repeater/repeater-item.js +95 -114
- package/dist/components/repeater/repeater.js +221 -278
- package/dist/components/responsive/mini-responsive.js +403 -495
- package/dist/components/responsive/responsive-legacy.js +271 -336
- package/dist/components/responsive/responsive.js +445 -562
- package/dist/components/responsive-preview/responsive-preview.js +94 -117
- package/dist/components/rich-label/rich-label.js +80 -75
- package/dist/components/select/async-multi-select.js +357 -589
- package/dist/components/select/async-select.js +282 -492
- package/dist/components/select/multi-select.js +338 -552
- package/dist/components/select/shared.js +3 -17
- package/dist/components/select/single-select.js +276 -475
- package/dist/components/select/styles.js +84 -0
- package/dist/components/slider/column-config-slider.js +170 -301
- package/dist/components/slider/slider.js +258 -405
- package/dist/components/slider/utils.js +77 -121
- package/dist/components/smart-image/image-analysis-worker.js +128 -0
- package/dist/components/smart-image/smart-image.js +3 -205
- package/dist/components/smart-image/worker-inline.js +4 -4
- package/dist/components/spacer/spacer.js +80 -94
- package/dist/components/tabs/tabs.js +3 -1051
- package/dist/components/toggle/switch.js +2 -295
- package/dist/components/toggle/toggle.js +54 -64
- package/dist/components/toggle-button/toggle-button.js +2 -451
- package/dist/components/tooltip/tooltip.js +2 -535
- package/dist/context-C-XNeJ_l.js +93 -0
- package/dist/debounce-throttle-DXxSAKpq.js +120 -0
- package/dist/dist-DIK9pFxO.js +55 -0
- package/dist/draggable-CYQyD9gG.js +6961 -0
- package/dist/es-dash-HqXWZZ3_.js +303 -0
- package/dist/filterDOMProps-_2_3GD-K.js +69 -0
- package/dist/general-BKOvs-AO.js +4276 -0
- package/dist/gradient-editor-BAd_Gzx4.js +604 -0
- package/dist/icons/block-icon.js +34 -39
- package/dist/icons/generated-icon-loaders.js +759 -0
- package/dist/icons/generic-color-swatch.js +81 -111
- package/dist/icons/icon.js +67 -0
- package/dist/icons/icons.js +218 -3656
- package/dist/icons/index.js +756 -10
- package/dist/icons/internal.js +758 -0
- package/dist/icons/jsx-svg.js +2 -94
- package/dist/icons/spinner.js +16 -18
- package/dist/icons/ui-icons/a11y-warning.js +34 -0
- package/dist/icons/ui-icons/a11y.js +29 -0
- package/dist/icons/ui-icons/accelerometer.js +51 -0
- package/dist/icons/ui-icons/activity-log.js +53 -0
- package/dist/icons/ui-icons/add.js +20 -0
- package/dist/icons/ui-icons/alert.js +31 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.js +37 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.js +36 -0
- package/dist/icons/ui-icons/align-horizontal-vertical.js +34 -0
- package/dist/icons/ui-icons/alt-text-generic-alt.js +19 -0
- package/dist/icons/ui-icons/alt-text-generic.js +25 -0
- package/dist/icons/ui-icons/alt-text.js +36 -0
- package/dist/icons/ui-icons/anchor-page.js +44 -0
- package/dist/icons/ui-icons/anchor.js +28 -0
- package/dist/icons/ui-icons/angle.js +24 -0
- package/dist/icons/ui-icons/animation-file.js +66 -0
- package/dist/icons/ui-icons/animation-generic.js +36 -0
- package/dist/icons/ui-icons/animation-list-generic.js +41 -0
- package/dist/icons/ui-icons/animation-settings-generic.js +41 -0
- package/dist/icons/ui-icons/animation.js +55 -0
- package/dist/icons/ui-icons/archive-file.js +24 -0
- package/dist/icons/ui-icons/archive.js +39 -0
- package/dist/icons/ui-icons/aria-label.js +42 -0
- package/dist/icons/ui-icons/arrow-down-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square.js +28 -0
- package/dist/icons/ui-icons/arrow-down.js +20 -0
- package/dist/icons/ui-icons/arrow-left-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square.js +28 -0
- package/dist/icons/ui-icons/arrow-left.js +20 -0
- package/dist/icons/ui-icons/arrow-right-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square.js +28 -0
- package/dist/icons/ui-icons/arrow-right.js +20 -0
- package/dist/icons/ui-icons/arrow-up-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square.js +28 -0
- package/dist/icons/ui-icons/arrow-up.js +20 -0
- package/dist/icons/ui-icons/arrows-down.js +38 -0
- package/dist/icons/ui-icons/arrows-horizontal.js +20 -0
- package/dist/icons/ui-icons/arrows-left-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-left.js +38 -0
- package/dist/icons/ui-icons/arrows-right-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-right.js +38 -0
- package/dist/icons/ui-icons/arrows-up.js +38 -0
- package/dist/icons/ui-icons/arrows-vertical.js +20 -0
- package/dist/icons/ui-icons/aspect-ratio-auto.js +38 -0
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-square.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-three-two.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio.js +27 -0
- package/dist/icons/ui-icons/attachment.js +19 -0
- package/dist/icons/ui-icons/auto-close.js +26 -0
- package/dist/icons/ui-icons/auto-pause-scroll.js +39 -0
- package/dist/icons/ui-icons/auto-pause.js +26 -0
- package/dist/icons/ui-icons/automatic-alt.js +19 -0
- package/dist/icons/ui-icons/automatic.js +20 -0
- package/dist/icons/ui-icons/autoplay-alt.js +34 -0
- package/dist/icons/ui-icons/autoplay-alt2.js +23 -0
- package/dist/icons/ui-icons/autoplay.js +36 -0
- package/dist/icons/ui-icons/award.js +39 -0
- package/dist/icons/ui-icons/background-blur.js +66 -0
- package/dist/icons/ui-icons/background-color-swatch.js +48 -0
- package/dist/icons/ui-icons/background-image.js +41 -0
- package/dist/icons/ui-icons/background-repeat.js +95 -0
- package/dist/icons/ui-icons/background-type-alt.js +38 -0
- package/dist/icons/ui-icons/background-type-alt2.js +27 -0
- package/dist/icons/ui-icons/background-type.js +27 -0
- package/dist/icons/ui-icons/block-parts.js +54 -0
- package/dist/icons/ui-icons/bold.js +21 -0
- package/dist/icons/ui-icons/book.js +40 -0
- package/dist/icons/ui-icons/bookmark.js +18 -0
- package/dist/icons/ui-icons/boolean-exclude.js +24 -0
- package/dist/icons/ui-icons/boolean-intersect.js +31 -0
- package/dist/icons/ui-icons/boolean-subtract.js +27 -0
- package/dist/icons/ui-icons/boolean-union.js +33 -0
- package/dist/icons/ui-icons/border-color.js +79 -0
- package/dist/icons/ui-icons/border.js +60 -0
- package/dist/icons/ui-icons/bot-deny.js +61 -0
- package/dist/icons/ui-icons/bot.js +47 -0
- package/dist/icons/ui-icons/box.js +35 -0
- package/dist/icons/ui-icons/brain.js +20 -0
- package/dist/icons/ui-icons/branch-fork.js +46 -0
- package/dist/icons/ui-icons/branch.js +46 -0
- package/dist/icons/ui-icons/briefcase.js +26 -0
- package/dist/icons/ui-icons/browser.js +60 -0
- package/dist/icons/ui-icons/button-disabled.js +30 -0
- package/dist/icons/ui-icons/button-filled.js +19 -0
- package/dist/icons/ui-icons/button-ghost.js +28 -0
- package/dist/icons/ui-icons/button-outline.js +27 -0
- package/dist/icons/ui-icons/calculator.js +139 -0
- package/dist/icons/ui-icons/calendar-add.js +51 -0
- package/dist/icons/ui-icons/calendar-download.js +62 -0
- package/dist/icons/ui-icons/calendar-remove.js +51 -0
- package/dist/icons/ui-icons/calendar.js +34 -0
- package/dist/icons/ui-icons/caption-generic.js +25 -0
- package/dist/icons/ui-icons/card-featured.js +28 -0
- package/dist/icons/ui-icons/caret-down-fill.js +19 -0
- package/dist/icons/ui-icons/caret-down.js +19 -0
- package/dist/icons/ui-icons/caret-left-fill.js +19 -0
- package/dist/icons/ui-icons/caret-left.js +19 -0
- package/dist/icons/ui-icons/caret-right-fill.js +19 -0
- package/dist/icons/ui-icons/caret-right.js +19 -0
- package/dist/icons/ui-icons/caret-up-fill.js +19 -0
- package/dist/icons/ui-icons/caret-up.js +19 -0
- package/dist/icons/ui-icons/center-point.js +25 -0
- package/dist/icons/ui-icons/chat-bubble-alt.js +25 -0
- package/dist/icons/ui-icons/chat-bubble.js +19 -0
- package/dist/icons/ui-icons/chat.js +25 -0
- package/dist/icons/ui-icons/check-circle-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/check-circle-fill.js +17 -0
- package/dist/icons/ui-icons/check-circle.js +27 -0
- package/dist/icons/ui-icons/check-square.js +28 -0
- package/dist/icons/ui-icons/check.js +20 -0
- package/dist/icons/ui-icons/checks-circle.js +26 -0
- package/dist/icons/ui-icons/checks.js +26 -0
- package/dist/icons/ui-icons/chevron-down.js +20 -0
- package/dist/icons/ui-icons/chevron-left.js +20 -0
- package/dist/icons/ui-icons/chevron-right.js +20 -0
- package/dist/icons/ui-icons/chevron-up.js +20 -0
- package/dist/icons/ui-icons/clear-alt.js +25 -0
- package/dist/icons/ui-icons/clear.js +20 -0
- package/dist/icons/ui-icons/clipboard-plain.js +35 -0
- package/dist/icons/ui-icons/clipboard.js +43 -0
- package/dist/icons/ui-icons/clock.js +26 -0
- package/dist/icons/ui-icons/closed-captions.js +27 -0
- package/dist/icons/ui-icons/code-variable.js +20 -0
- package/dist/icons/ui-icons/code.js +20 -0
- package/dist/icons/ui-icons/color-alt.js +40 -0
- package/dist/icons/ui-icons/color-fill-swatch.js +61 -0
- package/dist/icons/ui-icons/color-picker-fill.js +42 -0
- package/dist/icons/ui-icons/color-picker-list-marker.js +41 -0
- package/dist/icons/ui-icons/color-picker-text-highlight.js +19 -0
- package/dist/icons/ui-icons/color-picker-text.js +20 -0
- package/dist/icons/ui-icons/color-select.js +33 -0
- package/dist/icons/ui-icons/color.js +22 -0
- package/dist/icons/ui-icons/column-gutters-lr.js +54 -0
- package/dist/icons/ui-icons/columns.js +42 -0
- package/dist/icons/ui-icons/columns3366.js +30 -0
- package/dist/icons/ui-icons/columns6633.js +30 -0
- package/dist/icons/ui-icons/component-generic.js +27 -0
- package/dist/icons/ui-icons/component-options.js +36 -0
- package/dist/icons/ui-icons/condition-h.js +20 -0
- package/dist/icons/ui-icons/condition-v.js +20 -0
- package/dist/icons/ui-icons/conditional-visibility.js +26 -0
- package/dist/icons/ui-icons/container-height.js +68 -0
- package/dist/icons/ui-icons/container-spacing-h.js +41 -0
- package/dist/icons/ui-icons/container-spacing.js +41 -0
- package/dist/icons/ui-icons/container-width.js +68 -0
- package/dist/icons/ui-icons/content-bottom-left.js +31 -0
- package/dist/icons/ui-icons/content-bottom-right.js +31 -0
- package/dist/icons/ui-icons/content-center.js +31 -0
- package/dist/icons/ui-icons/content-top-left.js +31 -0
- package/dist/icons/ui-icons/content-top-right.js +31 -0
- package/dist/icons/ui-icons/contrast-alt.js +27 -0
- package/dist/icons/ui-icons/contrast.js +26 -0
- package/dist/icons/ui-icons/cookie-alt.js +124 -0
- package/dist/icons/ui-icons/cookie.js +76 -0
- package/dist/icons/ui-icons/copy.js +26 -0
- package/dist/icons/ui-icons/currency.js +48 -0
- package/dist/icons/ui-icons/current-page.js +42 -0
- package/dist/icons/ui-icons/cursor-disabled.js +35 -0
- package/dist/icons/ui-icons/cursor-move.js +20 -0
- package/dist/icons/ui-icons/dark-mode.js +20 -0
- package/dist/icons/ui-icons/data.js +33 -0
- package/dist/icons/ui-icons/date-time.js +67 -0
- package/dist/icons/ui-icons/defer.js +26 -0
- package/dist/icons/ui-icons/description-link.js +40 -0
- package/dist/icons/ui-icons/design.js +48 -0
- package/dist/icons/ui-icons/dice.js +59 -0
- package/dist/icons/ui-icons/divider-bottom.js +23 -0
- package/dist/icons/ui-icons/divider-side.js +53 -0
- package/dist/icons/ui-icons/divider-status.js +53 -0
- package/dist/icons/ui-icons/divider-top.js +23 -0
- package/dist/icons/ui-icons/divider.js +23 -0
- package/dist/icons/ui-icons/door-in.js +32 -0
- package/dist/icons/ui-icons/door-out.js +32 -0
- package/dist/icons/ui-icons/door.js +27 -0
- package/dist/icons/ui-icons/download.js +20 -0
- package/dist/icons/ui-icons/dropdown-caret-alt.js +17 -0
- package/dist/icons/ui-icons/dropdown-caret.js +20 -0
- package/dist/icons/ui-icons/dropdown-close.js +52 -0
- package/dist/icons/ui-icons/dropdown-open.js +38 -0
- package/dist/icons/ui-icons/dropdown.js +38 -0
- package/dist/icons/ui-icons/dummy-spacer.js +17 -0
- package/dist/icons/ui-icons/edit-options.js +32 -0
- package/dist/icons/ui-icons/edit.js +22 -0
- package/dist/icons/ui-icons/email-remove.js +42 -0
- package/dist/icons/ui-icons/email.js +28 -0
- package/dist/icons/ui-icons/embed.js +28 -0
- package/dist/icons/ui-icons/empty-circle.js +23 -0
- package/dist/icons/ui-icons/empty-rect.js +25 -0
- package/dist/icons/ui-icons/equal-columns.js +25 -0
- package/dist/icons/ui-icons/equal-rows.js +25 -0
- package/dist/icons/ui-icons/equals.js +20 -0
- package/dist/icons/ui-icons/error-circle-fill-transparent.js +23 -0
- package/dist/icons/ui-icons/error-circle-fill.js +17 -0
- package/dist/icons/ui-icons/error-circle.js +24 -0
- package/dist/icons/ui-icons/exclude-item-alt.js +38 -0
- package/dist/icons/ui-icons/exclude-item.js +42 -0
- package/dist/icons/ui-icons/exclude.js +29 -0
- package/dist/icons/ui-icons/expand-xl.js +20 -0
- package/dist/icons/ui-icons/expand.js +20 -0
- package/dist/icons/ui-icons/experiment.js +33 -0
- package/dist/icons/ui-icons/external-link.js +25 -0
- package/dist/icons/ui-icons/extract-alt.js +25 -0
- package/dist/icons/ui-icons/extract.js +25 -0
- package/dist/icons/ui-icons/eyedropper.js +36 -0
- package/dist/icons/ui-icons/fast-forward.js +26 -0
- package/dist/icons/ui-icons/fast-reverse.js +26 -0
- package/dist/icons/ui-icons/field-after-text.js +54 -0
- package/dist/icons/ui-icons/field-before-text.js +46 -0
- package/dist/icons/ui-icons/field-disabled.js +35 -0
- package/dist/icons/ui-icons/field-help.js +46 -0
- package/dist/icons/ui-icons/field-label.js +38 -0
- package/dist/icons/ui-icons/field-name.js +45 -0
- package/dist/icons/ui-icons/field-placeholder.js +49 -0
- package/dist/icons/ui-icons/field-readonly.js +36 -0
- package/dist/icons/ui-icons/field-required.js +37 -0
- package/dist/icons/ui-icons/field-type.js +36 -0
- package/dist/icons/ui-icons/field-value.js +46 -0
- package/dist/icons/ui-icons/field-width.js +27 -0
- package/dist/icons/ui-icons/file-download.js +33 -0
- package/dist/icons/ui-icons/file-error.js +25 -0
- package/dist/icons/ui-icons/file-metadata.js +41 -0
- package/dist/icons/ui-icons/file-pdf.js +34 -0
- package/dist/icons/ui-icons/file-size-max.js +33 -0
- package/dist/icons/ui-icons/file-size-min.js +33 -0
- package/dist/icons/ui-icons/file-size.js +34 -0
- package/dist/icons/ui-icons/file-type.js +42 -0
- package/dist/icons/ui-icons/file-upload.js +33 -0
- package/dist/icons/ui-icons/file.js +24 -0
- package/dist/icons/ui-icons/files.js +34 -0
- package/dist/icons/ui-icons/fill-color.js +49 -0
- package/dist/icons/ui-icons/filter-alt.js +24 -0
- package/dist/icons/ui-icons/filter.js +20 -0
- package/dist/icons/ui-icons/flag-alt.js +24 -0
- package/dist/icons/ui-icons/flag.js +24 -0
- package/dist/icons/ui-icons/flip-h.js +27 -0
- package/dist/icons/ui-icons/flip-v.js +27 -0
- package/dist/icons/ui-icons/focus.js +21 -0
- package/dist/icons/ui-icons/folder-add.js +22 -0
- package/dist/icons/ui-icons/folder-open-solid.js +17 -0
- package/dist/icons/ui-icons/folder-open.js +19 -0
- package/dist/icons/ui-icons/folder-solid.js +17 -0
- package/dist/icons/ui-icons/folder-top-level.js +22 -0
- package/dist/icons/ui-icons/folder.js +19 -0
- package/dist/icons/ui-icons/font-family.js +24 -0
- package/dist/icons/ui-icons/footer.js +23 -0
- package/dist/icons/ui-icons/form-alt.js +71 -0
- package/dist/icons/ui-icons/form.js +53 -0
- package/dist/icons/ui-icons/four-columns.js +38 -0
- package/dist/icons/ui-icons/frame.js +33 -0
- package/dist/icons/ui-icons/full-max-shield.js +26 -0
- package/dist/icons/ui-icons/full-max-text.js +20 -0
- package/dist/icons/ui-icons/full-width-image.js +35 -0
- package/dist/icons/ui-icons/gears-fill.js +19 -0
- package/dist/icons/ui-icons/gears.js +38 -0
- package/dist/icons/ui-icons/generic-color-swatch.js +6 -0
- package/dist/icons/ui-icons/generic-shapes-alt.js +33 -0
- package/dist/icons/ui-icons/generic-shapes.js +38 -0
- package/dist/icons/ui-icons/globe-anchor.js +55 -0
- package/dist/icons/ui-icons/globe-hash.js +40 -0
- package/dist/icons/ui-icons/globe.js +37 -0
- package/dist/icons/ui-icons/google-tag-manager.js +36 -0
- package/dist/icons/ui-icons/gradient-repeat.js +41 -0
- package/dist/icons/ui-icons/gradient-stop.js +36 -0
- package/dist/icons/ui-icons/gradient.js +54 -0
- package/dist/icons/ui-icons/grid-alt.js +19 -0
- package/dist/icons/ui-icons/grid-auto-cols.js +46 -0
- package/dist/icons/ui-icons/grid-auto-rows.js +41 -0
- package/dist/icons/ui-icons/grid-col.js +22 -0
- package/dist/icons/ui-icons/grid-height.js +22 -0
- package/dist/icons/ui-icons/grid-list-toggle.js +48 -0
- package/dist/icons/ui-icons/grid-manual.js +18 -0
- package/dist/icons/ui-icons/grid-row.js +22 -0
- package/dist/icons/ui-icons/grid-width.js +22 -0
- package/dist/icons/ui-icons/group.js +33 -0
- package/dist/icons/ui-icons/gutter.js +28 -0
- package/dist/icons/ui-icons/gyroscope.js +53 -0
- package/dist/icons/ui-icons/h1.js +28 -0
- package/dist/icons/ui-icons/h2.js +28 -0
- package/dist/icons/ui-icons/h3.js +28 -0
- package/dist/icons/ui-icons/h4.js +28 -0
- package/dist/icons/ui-icons/h5.js +28 -0
- package/dist/icons/ui-icons/h6.js +28 -0
- package/dist/icons/ui-icons/hamburger-menu.js +19 -0
- package/dist/icons/ui-icons/hard-drive.js +35 -0
- package/dist/icons/ui-icons/header.js +23 -0
- package/dist/icons/ui-icons/heading-level-alt.js +28 -0
- package/dist/icons/ui-icons/heading-level.js +28 -0
- package/dist/icons/ui-icons/heading.js +20 -0
- package/dist/icons/ui-icons/heart-fill-transparent.js +19 -0
- package/dist/icons/ui-icons/heart-fill.js +18 -0
- package/dist/icons/ui-icons/heart.js +18 -0
- package/dist/icons/ui-icons/height.js +30 -0
- package/dist/icons/ui-icons/help-fill.js +19 -0
- package/dist/icons/ui-icons/help.js +38 -0
- package/dist/icons/ui-icons/hide.js +29 -0
- package/dist/icons/ui-icons/highlighted-checkmark.js +24 -0
- package/dist/icons/ui-icons/highlighted-exclamation-mark.js +33 -0
- package/dist/icons/ui-icons/history.js +26 -0
- package/dist/icons/ui-icons/horizontal-align-alt.js +27 -0
- package/dist/icons/ui-icons/horizontal-align-around.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between-alt.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between.js +46 -0
- package/dist/icons/ui-icons/horizontal-align-center.js +41 -0
- package/dist/icons/ui-icons/horizontal-align-evenly.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-left.js +44 -0
- package/dist/icons/ui-icons/horizontal-align-right.js +48 -0
- package/dist/icons/ui-icons/horizontal-align-stretch.js +37 -0
- package/dist/icons/ui-icons/horizontal-align.js +35 -0
- package/dist/icons/ui-icons/hover-background-glow.js +61 -0
- package/dist/icons/ui-icons/hover-background-type.js +34 -0
- package/dist/icons/ui-icons/hover-invert-object.js +42 -0
- package/dist/icons/ui-icons/hover-invert-text.js +32 -0
- package/dist/icons/ui-icons/hover-rotate.js +20 -0
- package/dist/icons/ui-icons/hover-zoom.js +25 -0
- package/dist/icons/ui-icons/hyphenate-alt.js +20 -0
- package/dist/icons/ui-icons/hyphenate-alt2.js +20 -0
- package/dist/icons/ui-icons/hyphenate.js +25 -0
- package/dist/icons/ui-icons/icon-generic.js +23 -0
- package/dist/icons/ui-icons/id-card.js +45 -0
- package/dist/icons/ui-icons/id.js +28 -0
- package/dist/icons/ui-icons/image-blur.js +50 -0
- package/dist/icons/ui-icons/image-caption.js +36 -0
- package/dist/icons/ui-icons/image-error.js +36 -0
- package/dist/icons/ui-icons/image-file.js +40 -0
- package/dist/icons/ui-icons/image-lazy-load.js +52 -0
- package/dist/icons/ui-icons/image-opacity.js +31 -0
- package/dist/icons/ui-icons/image-overlay-alt.js +93 -0
- package/dist/icons/ui-icons/image-overlay-alt2.js +93 -0
- package/dist/icons/ui-icons/image-overlay.js +92 -0
- package/dist/icons/ui-icons/image-remove.js +46 -0
- package/dist/icons/ui-icons/image.js +25 -0
- package/dist/icons/ui-icons/index.js +753 -0
- package/dist/icons/ui-icons/info-circle-fill-transparent.js +21 -0
- package/dist/icons/ui-icons/info-circle-fill.js +17 -0
- package/dist/icons/ui-icons/info-circle.js +24 -0
- package/dist/icons/ui-icons/info.js +17 -0
- package/dist/icons/ui-icons/inherit.js +41 -0
- package/dist/icons/ui-icons/inline-gradient-format.js +62 -0
- package/dist/icons/ui-icons/input-field.js +27 -0
- package/dist/icons/ui-icons/italic.js +20 -0
- package/dist/icons/ui-icons/item-limit.js +35 -0
- package/dist/icons/ui-icons/item-select.js +33 -0
- package/dist/icons/ui-icons/item-wrap.js +60 -0
- package/dist/icons/ui-icons/items-per-page.js +48 -0
- package/dist/icons/ui-icons/items-per-row.js +45 -0
- package/dist/icons/ui-icons/key.js +25 -0
- package/dist/icons/ui-icons/keyboard.js +19 -0
- package/dist/icons/ui-icons/large.js +24 -0
- package/dist/icons/ui-icons/latest-posts.js +44 -0
- package/dist/icons/ui-icons/layer-off.js +20 -0
- package/dist/icons/ui-icons/layer.js +19 -0
- package/dist/icons/ui-icons/layers.js +33 -0
- package/dist/icons/ui-icons/layout-alt.js +19 -0
- package/dist/icons/ui-icons/layout-alt2.js +23 -0
- package/dist/icons/ui-icons/layout-alt3.js +19 -0
- package/dist/icons/ui-icons/layout-alt4.js +19 -0
- package/dist/icons/ui-icons/layout-bento-box.js +19 -0
- package/dist/icons/ui-icons/layout-masonry.js +79 -0
- package/dist/icons/ui-icons/layout.js +43 -0
- package/dist/icons/ui-icons/left-panel-alt.js +25 -0
- package/dist/icons/ui-icons/left-panel.js +22 -0
- package/dist/icons/ui-icons/light-bulb-alt.js +30 -0
- package/dist/icons/ui-icons/light-bulb.js +33 -0
- package/dist/icons/ui-icons/light-mode.js +26 -0
- package/dist/icons/ui-icons/limit-width.js +26 -0
- package/dist/icons/ui-icons/line-break-alt-off.js +26 -0
- package/dist/icons/ui-icons/line-break-alt.js +25 -0
- package/dist/icons/ui-icons/line-break-off-alt.js +35 -0
- package/dist/icons/ui-icons/line-break-off.js +41 -0
- package/dist/icons/ui-icons/line-break.js +29 -0
- package/dist/icons/ui-icons/line-breaks-hyphenation.js +36 -0
- package/dist/icons/ui-icons/link-add.js +41 -0
- package/dist/icons/ui-icons/link-nav.js +59 -0
- package/dist/icons/ui-icons/link-remove.js +41 -0
- package/dist/icons/ui-icons/link.js +19 -0
- package/dist/icons/ui-icons/list-indent.js +26 -0
- package/dist/icons/ui-icons/list-ordered.js +43 -0
- package/dist/icons/ui-icons/list-outdent.js +26 -0
- package/dist/icons/ui-icons/list-unordered.js +43 -0
- package/dist/icons/ui-icons/loader-alt.js +19 -0
- package/dist/icons/ui-icons/loader.js +19 -0
- package/dist/icons/ui-icons/location-add.js +44 -0
- package/dist/icons/ui-icons/location-allow.js +44 -0
- package/dist/icons/ui-icons/location-deny.js +44 -0
- package/dist/icons/ui-icons/location-settings.js +36 -0
- package/dist/icons/ui-icons/location.js +26 -0
- package/dist/icons/ui-icons/lock.js +44 -0
- package/dist/icons/ui-icons/loop-mode.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill.js +19 -0
- package/dist/icons/ui-icons/magic-alt.js +19 -0
- package/dist/icons/ui-icons/magic-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-fill.js +19 -0
- package/dist/icons/ui-icons/magic.js +19 -0
- package/dist/icons/ui-icons/map-layer-json.js +35 -0
- package/dist/icons/ui-icons/map-layer-raster.js +121 -0
- package/dist/icons/ui-icons/map-layer-vector.js +81 -0
- package/dist/icons/ui-icons/map-layer.js +26 -0
- package/dist/icons/ui-icons/map-pin.js +41 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-active.js +23 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.js +21 -0
- package/dist/icons/ui-icons/media.js +49 -0
- package/dist/icons/ui-icons/medium.js +24 -0
- package/dist/icons/ui-icons/menu-item-check.js +20 -0
- package/dist/icons/ui-icons/menu-item-circle.js +19 -0
- package/dist/icons/ui-icons/microphone.js +23 -0
- package/dist/icons/ui-icons/migration-alt-v.js +20 -0
- package/dist/icons/ui-icons/migration-alt.js +20 -0
- package/dist/icons/ui-icons/migration.js +26 -0
- package/dist/icons/ui-icons/module.js +24 -0
- package/dist/icons/ui-icons/money-paper.js +58 -0
- package/dist/icons/ui-icons/more-h-circle.js +40 -0
- package/dist/icons/ui-icons/more-h.js +33 -0
- package/dist/icons/ui-icons/more-v-circle.js +44 -0
- package/dist/icons/ui-icons/more-v.js +36 -0
- package/dist/icons/ui-icons/mouse-cursor.js +20 -0
- package/dist/icons/ui-icons/mouse-wheel.js +27 -0
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.js +58 -0
- package/dist/icons/ui-icons/multi-item-left-inset.js +39 -0
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.js +55 -0
- package/dist/icons/ui-icons/multi-item-right-inset.js +36 -0
- package/dist/icons/ui-icons/multiple.js +34 -0
- package/dist/icons/ui-icons/music-note.js +40 -0
- package/dist/icons/ui-icons/mute-centered.js +20 -0
- package/dist/icons/ui-icons/mute.js +20 -0
- package/dist/icons/ui-icons/narrow-bottom.js +49 -0
- package/dist/icons/ui-icons/narrow-left.js +49 -0
- package/dist/icons/ui-icons/narrow-right.js +49 -0
- package/dist/icons/ui-icons/narrow-top.js +49 -0
- package/dist/icons/ui-icons/navigation-buttons.js +39 -0
- package/dist/icons/ui-icons/new-tab.js +27 -0
- package/dist/icons/ui-icons/newspaper.js +45 -0
- package/dist/icons/ui-icons/none.js +25 -0
- package/dist/icons/ui-icons/notebook.js +44 -0
- package/dist/icons/ui-icons/num0-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num0-circle.js +24 -0
- package/dist/icons/ui-icons/num0-square-alt.js +26 -0
- package/dist/icons/ui-icons/num0-square.js +26 -0
- package/dist/icons/ui-icons/num1-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num1-circle.js +26 -0
- package/dist/icons/ui-icons/num1-square-alt.js +28 -0
- package/dist/icons/ui-icons/num1-square.js +28 -0
- package/dist/icons/ui-icons/num2-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num2-circle.js +26 -0
- package/dist/icons/ui-icons/num2-square-alt.js +28 -0
- package/dist/icons/ui-icons/num2-square.js +28 -0
- package/dist/icons/ui-icons/num3-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num3-circle.js +26 -0
- package/dist/icons/ui-icons/num3-square-alt.js +28 -0
- package/dist/icons/ui-icons/num3-square.js +28 -0
- package/dist/icons/ui-icons/num4-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num4-circle.js +26 -0
- package/dist/icons/ui-icons/num4-square-alt.js +28 -0
- package/dist/icons/ui-icons/num4-square.js +28 -0
- package/dist/icons/ui-icons/num5-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num5-circle.js +26 -0
- package/dist/icons/ui-icons/num5-square-alt.js +28 -0
- package/dist/icons/ui-icons/num5-square.js +28 -0
- package/dist/icons/ui-icons/num6-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num6-circle.js +26 -0
- package/dist/icons/ui-icons/num6-square-alt.js +28 -0
- package/dist/icons/ui-icons/num6-square.js +28 -0
- package/dist/icons/ui-icons/num7-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num7-circle.js +26 -0
- package/dist/icons/ui-icons/num7-square-alt.js +28 -0
- package/dist/icons/ui-icons/num7-square.js +28 -0
- package/dist/icons/ui-icons/num8-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num8-circle.js +24 -0
- package/dist/icons/ui-icons/num8-square-alt.js +26 -0
- package/dist/icons/ui-icons/num8-square.js +26 -0
- package/dist/icons/ui-icons/num9-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num9-circle.js +26 -0
- package/dist/icons/ui-icons/num9-square-alt.js +28 -0
- package/dist/icons/ui-icons/num9-square.js +28 -0
- package/dist/icons/ui-icons/office-building.js +203 -0
- package/dist/icons/ui-icons/office-buildings.js +256 -0
- package/dist/icons/ui-icons/offset-auto.js +46 -0
- package/dist/icons/ui-icons/offset.js +39 -0
- package/dist/icons/ui-icons/option-list-alt.js +61 -0
- package/dist/icons/ui-icons/option-list.js +63 -0
- package/dist/icons/ui-icons/options.js +24 -0
- package/dist/icons/ui-icons/order.js +49 -0
- package/dist/icons/ui-icons/padding-bottom.js +35 -0
- package/dist/icons/ui-icons/padding-top.js +35 -0
- package/dist/icons/ui-icons/padding.js +34 -0
- package/dist/icons/ui-icons/pagination.js +49 -0
- package/dist/icons/ui-icons/palette-color.js +111 -0
- package/dist/icons/ui-icons/panel-collapse.js +41 -0
- package/dist/icons/ui-icons/panel-expand.js +41 -0
- package/dist/icons/ui-icons/paragraph.js +24 -0
- package/dist/icons/ui-icons/paste.js +52 -0
- package/dist/icons/ui-icons/pause.js +20 -0
- package/dist/icons/ui-icons/people-group.js +57 -0
- package/dist/icons/ui-icons/people.js +43 -0
- package/dist/icons/ui-icons/person.js +26 -0
- package/dist/icons/ui-icons/photo-camera.js +26 -0
- package/dist/icons/ui-icons/picture-in-picture.js +33 -0
- package/dist/icons/ui-icons/play-reverse.js +20 -0
- package/dist/icons/ui-icons/play.js +20 -0
- package/dist/icons/ui-icons/playback-options.js +24 -0
- package/dist/icons/ui-icons/plus-circle-fill-alt.js +23 -0
- package/dist/icons/ui-icons/plus-circle-fill.js +17 -0
- package/dist/icons/ui-icons/plus-circle.js +26 -0
- package/dist/icons/ui-icons/plus-minus-buttons-h.js +25 -0
- package/dist/icons/ui-icons/plus-minus-buttons-v.js +25 -0
- package/dist/icons/ui-icons/plus-square-fill-transparent.js +27 -0
- package/dist/icons/ui-icons/plus-square-fill.js +17 -0
- package/dist/icons/ui-icons/plus-square.js +27 -0
- package/dist/icons/ui-icons/pointer-hand-disabled.js +34 -0
- package/dist/icons/ui-icons/pointer-hand.js +20 -0
- package/dist/icons/ui-icons/position-arrows-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted.js +26 -0
- package/dist/icons/ui-icons/position-arrows-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows.js +26 -0
- package/dist/icons/ui-icons/position-h-center.js +43 -0
- package/dist/icons/ui-icons/position-h-end.js +43 -0
- package/dist/icons/ui-icons/position-h-start.js +43 -0
- package/dist/icons/ui-icons/position-left.js +31 -0
- package/dist/icons/ui-icons/position-right.js +31 -0
- package/dist/icons/ui-icons/position-v-center.js +43 -0
- package/dist/icons/ui-icons/position-v-end.js +43 -0
- package/dist/icons/ui-icons/position-v-start.js +43 -0
- package/dist/icons/ui-icons/position2x2-bottom-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-bottom-right.js +52 -0
- package/dist/icons/ui-icons/position2x2-empty.js +51 -0
- package/dist/icons/ui-icons/position2x2-top-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-top-right.js +52 -0
- package/dist/icons/ui-icons/position3x3-bottom-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-empty.js +96 -0
- package/dist/icons/ui-icons/position3x3-top-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-right.js +97 -0
- package/dist/icons/ui-icons/positioning-guide-alt.js +30 -0
- package/dist/icons/ui-icons/positioning-guide.js +30 -0
- package/dist/icons/ui-icons/positioning-width-guide.js +40 -0
- package/dist/icons/ui-icons/preload.js +44 -0
- package/dist/icons/ui-icons/preview-responsive.js +48 -0
- package/dist/icons/ui-icons/preview.js +35 -0
- package/dist/icons/ui-icons/progressbar-intermittent.js +26 -0
- package/dist/icons/ui-icons/progressbar.js +30 -0
- package/dist/icons/ui-icons/range-max.js +48 -0
- package/dist/icons/ui-icons/range-mid.js +40 -0
- package/dist/icons/ui-icons/range-min.js +48 -0
- package/dist/icons/ui-icons/range.js +61 -0
- package/dist/icons/ui-icons/read-only.js +25 -0
- package/dist/icons/ui-icons/reduce-height-bottom.js +49 -0
- package/dist/icons/ui-icons/reduce-height-top.js +49 -0
- package/dist/icons/ui-icons/regex.js +39 -0
- package/dist/icons/ui-icons/remove.js +20 -0
- package/dist/icons/ui-icons/rename.js +24 -0
- package/dist/icons/ui-icons/reorder-grabber-h.js +51 -0
- package/dist/icons/ui-icons/reorder-grabber-v.js +57 -0
- package/dist/icons/ui-icons/reorder.js +35 -0
- package/dist/icons/ui-icons/required-alt.js +20 -0
- package/dist/icons/ui-icons/required.js +19 -0
- package/dist/icons/ui-icons/reset-to-zero.js +33 -0
- package/dist/icons/ui-icons/reset.js +25 -0
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.js +26 -0
- package/dist/icons/ui-icons/responsive-overrides-alt.js +49 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.js +34 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2.js +45 -0
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.js +33 -0
- package/dist/icons/ui-icons/responsive-overrides.js +39 -0
- package/dist/icons/ui-icons/responsive.js +33 -0
- package/dist/icons/ui-icons/right-panel-alt.js +23 -0
- package/dist/icons/ui-icons/right-panel.js +22 -0
- package/dist/icons/ui-icons/rotate-left.js +20 -0
- package/dist/icons/ui-icons/rotate-right.js +20 -0
- package/dist/icons/ui-icons/rounded-corners.js +19 -0
- package/dist/icons/ui-icons/route.js +27 -0
- package/dist/icons/ui-icons/row-add.js +45 -0
- package/dist/icons/ui-icons/row-empty.js +51 -0
- package/dist/icons/ui-icons/row.js +45 -0
- package/dist/icons/ui-icons/rows.js +42 -0
- package/dist/icons/ui-icons/ruler.js +28 -0
- package/dist/icons/ui-icons/save.js +26 -0
- package/dist/icons/ui-icons/screen-desktop.js +32 -0
- package/dist/icons/ui-icons/screen-large.js +23 -0
- package/dist/icons/ui-icons/screen-mobile.js +39 -0
- package/dist/icons/ui-icons/screen-tablet-large.js +36 -0
- package/dist/icons/ui-icons/screen-tablet.js +36 -0
- package/dist/icons/ui-icons/scrollbar-h.js +40 -0
- package/dist/icons/ui-icons/scrollbar-v.js +41 -0
- package/dist/icons/ui-icons/scrollbars.js +55 -0
- package/dist/icons/ui-icons/search-empty.js +37 -0
- package/dist/icons/ui-icons/search.js +25 -0
- package/dist/icons/ui-icons/separator-h.js +41 -0
- package/dist/icons/ui-icons/separator-v.js +39 -0
- package/dist/icons/ui-icons/shadow.js +61 -0
- package/dist/icons/ui-icons/share.js +26 -0
- package/dist/icons/ui-icons/shield-plus-alt.js +27 -0
- package/dist/icons/ui-icons/shield-plus.js +20 -0
- package/dist/icons/ui-icons/shield.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right.js +20 -0
- package/dist/icons/ui-icons/shrink-xl.js +20 -0
- package/dist/icons/ui-icons/shrink.js +20 -0
- package/dist/icons/ui-icons/shuffle.js +20 -0
- package/dist/icons/ui-icons/sidebar-flip.js +22 -0
- package/dist/icons/ui-icons/sidebar.js +22 -0
- package/dist/icons/ui-icons/single-item-left-inset-mobile.js +48 -0
- package/dist/icons/ui-icons/single-item-left-inset.js +23 -0
- package/dist/icons/ui-icons/single-item-right-inset-mobile.js +50 -0
- package/dist/icons/ui-icons/single-item-right-inset.js +23 -0
- package/dist/icons/ui-icons/size-alt.js +33 -0
- package/dist/icons/ui-icons/size.js +29 -0
- package/dist/icons/ui-icons/slider.js +31 -0
- package/dist/icons/ui-icons/sliders.js +68 -0
- package/dist/icons/ui-icons/small.js +24 -0
- package/dist/icons/ui-icons/solid-circle-fill-transparent.js +22 -0
- package/dist/icons/ui-icons/solid-circle-filled.js +21 -0
- package/dist/icons/ui-icons/solid-circle-gradient.js +31 -0
- package/dist/icons/ui-icons/solid-circle.js +21 -0
- package/dist/icons/ui-icons/solid-color.js +19 -0
- package/dist/icons/ui-icons/solid-rect-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/solid-rect-filled.js +23 -0
- package/dist/icons/ui-icons/solid-rect-gradient.js +33 -0
- package/dist/icons/ui-icons/solid-rect.js +23 -0
- package/dist/icons/ui-icons/sort-asc.js +20 -0
- package/dist/icons/ui-icons/sort-desc.js +20 -0
- package/dist/icons/ui-icons/sort-generic.js +25 -0
- package/dist/icons/ui-icons/spacing-bottom-in.js +23 -0
- package/dist/icons/ui-icons/spacing-bottom.js +23 -0
- package/dist/icons/ui-icons/spacing-left-in.js +23 -0
- package/dist/icons/ui-icons/spacing-left.js +23 -0
- package/dist/icons/ui-icons/spacing-right-in.js +23 -0
- package/dist/icons/ui-icons/spacing-right.js +23 -0
- package/dist/icons/ui-icons/spacing-top-in.js +23 -0
- package/dist/icons/ui-icons/spacing-top.js +23 -0
- package/dist/icons/ui-icons/speed.js +25 -0
- package/dist/icons/ui-icons/stagger.js +53 -0
- package/dist/icons/ui-icons/star.js +18 -0
- package/dist/icons/ui-icons/step.js +27 -0
- package/dist/icons/ui-icons/stop.js +20 -0
- package/dist/icons/ui-icons/swap.js +41 -0
- package/dist/icons/ui-icons/tag-alt.js +24 -0
- package/dist/icons/ui-icons/tag.js +26 -0
- package/dist/icons/ui-icons/text-abc.js +40 -0
- package/dist/icons/ui-icons/text-above.js +25 -0
- package/dist/icons/ui-icons/text-align-center.js +20 -0
- package/dist/icons/ui-icons/text-align-generic.js +20 -0
- package/dist/icons/ui-icons/text-align-justify.js +20 -0
- package/dist/icons/ui-icons/text-align-left.js +20 -0
- package/dist/icons/ui-icons/text-align-right.js +20 -0
- package/dist/icons/ui-icons/text-below.js +25 -0
- package/dist/icons/ui-icons/text-box-edit.js +35 -0
- package/dist/icons/ui-icons/text-color-swatch.js +40 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.js +49 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch.js +48 -0
- package/dist/icons/ui-icons/text-larger.js +23 -0
- package/dist/icons/ui-icons/text-length.js +20 -0
- package/dist/icons/ui-icons/text-size-alt.js +23 -0
- package/dist/icons/ui-icons/text-size.js +20 -0
- package/dist/icons/ui-icons/text-smaller.js +23 -0
- package/dist/icons/ui-icons/text-strikethrough.js +26 -0
- package/dist/icons/ui-icons/text-uppercase.js +25 -0
- package/dist/icons/ui-icons/text-write.js +39 -0
- package/dist/icons/ui-icons/thumbs-down.js +22 -0
- package/dist/icons/ui-icons/thumbs-up.js +22 -0
- package/dist/icons/ui-icons/title-generic.js +25 -0
- package/dist/icons/ui-icons/toggle-off.js +33 -0
- package/dist/icons/ui-icons/toggle-on-alt.js +19 -0
- package/dist/icons/ui-icons/toggle-on.js +31 -0
- package/dist/icons/ui-icons/tools.js +25 -0
- package/dist/icons/ui-icons/total-items.js +45 -0
- package/dist/icons/ui-icons/trash-alt.js +44 -0
- package/dist/icons/ui-icons/trash.js +33 -0
- package/dist/icons/ui-icons/tree-alt.js +62 -0
- package/dist/icons/ui-icons/tree-alt2.js +79 -0
- package/dist/icons/ui-icons/tree.js +70 -0
- package/dist/icons/ui-icons/troubleshoot-alt.js +39 -0
- package/dist/icons/ui-icons/two-cards-left.js +32 -0
- package/dist/icons/ui-icons/two-cards-right.js +32 -0
- package/dist/icons/ui-icons/two-columns.js +30 -0
- package/dist/icons/ui-icons/typography-options.js +77 -0
- package/dist/icons/ui-icons/typography.js +71 -0
- package/dist/icons/ui-icons/underline.js +19 -0
- package/dist/icons/ui-icons/ungroup.js +39 -0
- package/dist/icons/ui-icons/upload.js +20 -0
- package/dist/icons/ui-icons/venn-diagram-alt.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt2.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt3.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt4.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt5.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt6.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt7.js +39 -0
- package/dist/icons/ui-icons/venn-diagram.js +26 -0
- package/dist/icons/ui-icons/vertical-align-alt.js +27 -0
- package/dist/icons/ui-icons/vertical-align-around.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between-alt.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between.js +48 -0
- package/dist/icons/ui-icons/vertical-align-bottom.js +44 -0
- package/dist/icons/ui-icons/vertical-align-center.js +39 -0
- package/dist/icons/ui-icons/vertical-align-evenly.js +39 -0
- package/dist/icons/ui-icons/vertical-align-stretch.js +39 -0
- package/dist/icons/ui-icons/vertical-align-top.js +46 -0
- package/dist/icons/ui-icons/vertical-align.js +35 -0
- package/dist/icons/ui-icons/vertical-spacing.js +28 -0
- package/dist/icons/ui-icons/video-chapters.js +25 -0
- package/dist/icons/ui-icons/video-controls.js +67 -0
- package/dist/icons/ui-icons/video-file.js +40 -0
- package/dist/icons/ui-icons/video-poster-image.js +40 -0
- package/dist/icons/ui-icons/video-subtitle-alt.js +39 -0
- package/dist/icons/ui-icons/video-subtitle.js +27 -0
- package/dist/icons/ui-icons/video.js +36 -0
- package/dist/icons/ui-icons/visibility-alt.js +40 -0
- package/dist/icons/ui-icons/visibility-alt2.js +41 -0
- package/dist/icons/ui-icons/visibility.js +45 -0
- package/dist/icons/ui-icons/visible.js +28 -0
- package/dist/icons/ui-icons/volume.js +25 -0
- package/dist/icons/ui-icons/warning-circle-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-circle-fill.js +17 -0
- package/dist/icons/ui-icons/warning-circle.js +33 -0
- package/dist/icons/ui-icons/warning-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-fill.js +17 -0
- package/dist/icons/ui-icons/warning.js +30 -0
- package/dist/icons/ui-icons/web-video.js +63 -0
- package/dist/icons/ui-icons/wide-bottom.js +49 -0
- package/dist/icons/ui-icons/wide-left.js +49 -0
- package/dist/icons/ui-icons/wide-right.js +49 -0
- package/dist/icons/ui-icons/wide-top.js +49 -0
- package/dist/icons/ui-icons/width.js +29 -0
- package/dist/icons/ui-icons/wordpress.js +17 -0
- package/dist/icons/ui-icons/wrapper-alt.js +71 -0
- package/dist/icons/ui-icons/wrapper-config.js +41 -0
- package/dist/icons/ui-icons/wrapper-off-alt.js +19 -0
- package/dist/icons/ui-icons/wrapper-overflow.js +31 -0
- package/dist/icons/ui-icons/wrapper-simple-alt.js +58 -0
- package/dist/icons/ui-icons/wrapper-simple.js +32 -0
- package/dist/icons/ui-icons/wrapper.js +42 -0
- package/dist/icons/ui-icons/wrench.js +19 -0
- package/dist/icons/ui-icons/zap-fill.js +20 -0
- package/dist/icons/ui-icons/zap.js +19 -0
- package/dist/index.js +32 -108
- package/dist/input-field-UCZL5bqv.js +290 -0
- package/dist/jsx-svg-OBADs_Qs.js +11123 -0
- package/dist/link-input-D7iDRpOM.js +1821 -0
- package/dist/modal-DbVLYMkH.js +318 -0
- package/dist/number-ZZIxJukn.js +40 -0
- package/dist/number-picker-CkA1iJNZ.js +268 -0
- package/dist/proxy-DjkEpeDL.js +9660 -0
- package/dist/shared-D_OXizRt.js +1038 -0
- package/dist/smart-image-CbSsEASF.js +284 -0
- package/dist/solid-color-picker-DbT-aoVx.js +1415 -0
- package/dist/style-admin.js +1 -1
- package/dist/style-editor.js +1 -1
- package/dist/style.js +1 -1
- package/dist/switch-L8dFSQWQ.js +274 -0
- package/dist/tabs-BrdyBER5.js +975 -0
- package/dist/textSelection-Dv6WPj0Z.js +45 -0
- package/dist/toggle-button-DJ8jNQ-9.js +424 -0
- package/dist/tooltip-BzJzYlcc.js +440 -0
- package/dist/useAsyncList-BNzwKoX4.js +412 -0
- package/dist/useButton-ra1ZSZ4z.js +57 -0
- package/dist/useEvent-DkZVfgsS.js +22 -0
- package/dist/useField-D0WrzR2F.js +32 -0
- package/dist/useFilter-OiMnf6sb.js +44 -0
- package/dist/useFocusRing-DuYL4cdO.js +98 -0
- package/dist/useFormReset-DdkykzAn.js +18 -0
- package/dist/useHover-qaMm3XFO.js +982 -0
- package/dist/useLabel-2EohW5l6.js +27 -0
- package/dist/useLabels-B2p7RXi5.js +16 -0
- package/dist/useListState-CD_5vfyy.js +147 -0
- package/dist/useLocalizedStringFormatter-Dv2diN3k.js +108 -0
- package/dist/useNumberField-2xbi3jRV.js +1318 -0
- package/dist/useNumberFormatter-C2Cm2mNj.js +10 -0
- package/dist/usePress-ZP1TjkFf.js +678 -0
- package/dist/useToggle-ecIirvIM.js +64 -0
- package/dist/useToggleState-IIDbiKPl.js +23 -0
- package/dist/utilities/array-helpers.js +38 -49
- package/dist/utilities/debounce-throttle.js +2 -123
- package/dist/utilities/es-dash.js +2 -400
- package/dist/utilities/general.js +2 -10
- package/dist/utilities/hash.js +31 -35
- package/dist/utilities/index.js +6 -41
- package/dist/utilities/text-helpers.js +96 -129
- package/dist/utilities/web-workers.js +61 -44
- package/dist/utilities-CPFDXC3B.js +7 -0
- package/dist/utils-B_uiqNa4.js +372 -0
- package/dist/workers/image-analysis.worker.js +56 -48
- package/package.json +37 -25
- package/dist/Button-DtRmB6b8.js +0 -243
- package/dist/Dialog-DTIxSDhz.js +0 -2790
- package/dist/FieldError-BPG0hKfB.js +0 -42
- package/dist/FocusScope-CjFQ7cbd.js +0 -832
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/Heading-CY-_gt-U.js +0 -16
- package/dist/Hidden-DOH36apC.js +0 -58
- package/dist/Input-BG9DaxYN.js +0 -169
- package/dist/Label-_aSf9-8u.js +0 -18
- package/dist/List-CQFXnN4w.js +0 -590
- package/dist/ListBox-DXFyyj_r.js +0 -695
- package/dist/NumberFormatter-DA8u1Ot7.js +0 -140
- package/dist/OverlayArrow-Fuxj-1QM.js +0 -614
- package/dist/PortalProvider-BQ1X8vGX.js +0 -19
- package/dist/RSPContexts-CJ-HBf0L.js +0 -18
- package/dist/RadioGroup-DCeiLxLK.js +0 -371
- package/dist/SearchField-B_yKFXRk.js +0 -817
- package/dist/SelectionIndicator-D7WMzeAW.js +0 -7
- package/dist/SelectionManager-B02LcxLr.js +0 -2505
- package/dist/SharedElementTransition-CtoWSaF0.js +0 -12
- package/dist/Slider-bR3fAmim.js +0 -897
- package/dist/Text-CjFEHSfr.js +0 -17
- package/dist/VisuallyHidden-DZnWrkn8.js +0 -48
- package/dist/animation-Dfl8uEb3.js +0 -67
- package/dist/clsx-DgYk2OaC.js +0 -16
- package/dist/color-swatch-bUFkK7ox.js +0 -2570
- package/dist/components/smart-image/image-analysis-worker-next.js +0 -144
- package/dist/components/smart-image/smart-image-next.js +0 -294
- package/dist/context-iUFQCK8m.js +0 -95
- package/dist/default-i18n-CnQeC5Pl.js +0 -731
- package/dist/filterDOMProps-eGTqWSTd.js +0 -71
- package/dist/general-BfKmjm56.js +0 -4378
- package/dist/index-BHpUy2Ix.js +0 -44
- package/dist/index-BL5gdWX4.js +0 -28323
- package/dist/number-7sOvrqo0.js +0 -41
- package/dist/proxy-CNEXmkdK.js +0 -7948
- package/dist/react-jsx-parser.min-DAh4myol.js +0 -11736
- package/dist/shared-CNH8QfV9.js +0 -1111
- package/dist/sprintf-DmNrJSYG.js +0 -51
- package/dist/textSelection-DA3VcKpG.js +0 -46
- package/dist/useAsyncList-DsZvQXls.js +0 -453
- package/dist/useButton-DyMX0EVr.js +0 -59
- package/dist/useEvent-Bfy68GHZ.js +0 -22
- package/dist/useFilter-Bg5C34XC.js +0 -50
- package/dist/useFocusRing-B2glEZ25.js +0 -114
- package/dist/useFormReset-BoxsKyJ9.js +0 -20
- package/dist/useFormValidation-BrbMhS2N.js +0 -232
- package/dist/useHover-DkmPQdGE.js +0 -1047
- package/dist/useLabel-DzXzKZZZ.js +0 -27
- package/dist/useLabels-D8O3gOdV.js +0 -23
- package/dist/useListState-BjnzKozj.js +0 -171
- package/dist/useLocalizedStringFormatter-CEDs0LsA.js +0 -121
- package/dist/useNumberField-CsygZKz9.js +0 -1330
- package/dist/useNumberFormatter-CG_IQXp9.js +0 -13
- package/dist/usePress-Ck5xMtDr.js +0 -701
- package/dist/useToggle-Ddc7N8pR.js +0 -72
- package/dist/useToggleState-H_lORSWO.js +0 -23
- package/dist/utils-Cr3pLd9c.js +0 -420
|
@@ -0,0 +1,1318 @@
|
|
|
1
|
+
import { f as $ff5963eb1fccf552$export$e08e3b67e392101e, m as $bdb11010cef70236$export$f680877a34711e37, u as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B_uiqNa4.js";
|
|
2
|
+
import { F as $c87311424ea30a05$export$a11b0059900ceec8, H as $d4ee10de306f2510$export$e58f029f0fbfdb29, L as $c87311424ea30a05$export$fedb369cb70207f1, T as $03deb23ff14920c4$export$4eaf04e54aa8eed6, V as $d4ee10de306f2510$export$cd4e5573fbe2b576, j as $c87311424ea30a05$export$186c6964ca17d99, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, v as $458b0a5536c1a7cf$export$40bfa8c7b0832715, w as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useHover-qaMm3XFO.js";
|
|
3
|
+
import { t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-_2_3GD-K.js";
|
|
4
|
+
import { t as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-DkZVfgsS.js";
|
|
5
|
+
import { t as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DdkykzAn.js";
|
|
6
|
+
import { r as $9446cca9a3875146$export$cb6e0bb50bc19463, t as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-ZZIxJukn.js";
|
|
7
|
+
import { a as $319e236875307eab$export$d10ae4f68404609a, i as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-h6xF_WrP.js";
|
|
8
|
+
import { t as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-Dv2diN3k.js";
|
|
9
|
+
import { t as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-m5VW6MTK.js";
|
|
10
|
+
import { t as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-C2Cm2mNj.js";
|
|
11
|
+
import { n as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-DuYL4cdO.js";
|
|
12
|
+
import { a as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, r as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./FieldError-BWDbP5Db.js";
|
|
13
|
+
import { a as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-BURqyJXW.js";
|
|
14
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
15
|
+
import { flushSync } from "react-dom";
|
|
16
|
+
//#region node_modules/@internationalized/number/dist/NumberParser.mjs
|
|
17
|
+
var $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
|
|
18
|
+
var $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
|
|
19
|
+
"latn",
|
|
20
|
+
"arab",
|
|
21
|
+
"hanidec",
|
|
22
|
+
"deva",
|
|
23
|
+
"beng",
|
|
24
|
+
"fullwide"
|
|
25
|
+
];
|
|
26
|
+
var $6c7bd7858deea686$export$cd11ab140839f11d = class {
|
|
27
|
+
/**
|
|
28
|
+
* Parses the given string to a number. Returns NaN if a valid number could not be parsed.
|
|
29
|
+
*/ parse(value) {
|
|
30
|
+
return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).parse(value);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns whether the given string could potentially be a valid number. This should be used to
|
|
34
|
+
* validate user input as the user types. If a `minValue` or `maxValue` is provided, the validity
|
|
35
|
+
* of the minus/plus sign characters can be checked.
|
|
36
|
+
*/ isValidPartialNumber(value, minValue, maxValue) {
|
|
37
|
+
return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).isValidPartialNumber(value, minValue, maxValue);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns a numbering system for which the given string is valid in the current locale.
|
|
41
|
+
* If no numbering system could be detected, the default numbering system for the current
|
|
42
|
+
* locale is returned.
|
|
43
|
+
*/ getNumberingSystem(value) {
|
|
44
|
+
return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).options.numberingSystem;
|
|
45
|
+
}
|
|
46
|
+
constructor(locale, options = {}) {
|
|
47
|
+
this.locale = locale;
|
|
48
|
+
this.options = options;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var $6c7bd7858deea686$var$numberParserCache = new Map();
|
|
52
|
+
function $6c7bd7858deea686$var$getNumberParserImpl(locale, options, value) {
|
|
53
|
+
let defaultParser = $6c7bd7858deea686$var$getCachedNumberParser(locale, options);
|
|
54
|
+
if (!locale.includes("-nu-") && !defaultParser.isValidPartialNumber(value)) {
|
|
55
|
+
for (let numberingSystem of $6c7bd7858deea686$var$NUMBERING_SYSTEMS) if (numberingSystem !== defaultParser.options.numberingSystem) {
|
|
56
|
+
let parser = $6c7bd7858deea686$var$getCachedNumberParser(locale + (locale.includes("-u-") ? "-nu-" : "-u-nu-") + numberingSystem, options);
|
|
57
|
+
if (parser.isValidPartialNumber(value)) return parser;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return defaultParser;
|
|
61
|
+
}
|
|
62
|
+
function $6c7bd7858deea686$var$getCachedNumberParser(locale, options) {
|
|
63
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
64
|
+
let parser = $6c7bd7858deea686$var$numberParserCache.get(cacheKey);
|
|
65
|
+
if (!parser) {
|
|
66
|
+
parser = new $6c7bd7858deea686$var$NumberParserImpl(locale, options);
|
|
67
|
+
$6c7bd7858deea686$var$numberParserCache.set(cacheKey, parser);
|
|
68
|
+
}
|
|
69
|
+
return parser;
|
|
70
|
+
}
|
|
71
|
+
var $6c7bd7858deea686$var$NumberParserImpl = class {
|
|
72
|
+
parse(value) {
|
|
73
|
+
let fullySanitizedValue = this.sanitize(value);
|
|
74
|
+
if (this.symbols.group) fullySanitizedValue = $6c7bd7858deea686$var$replaceAll(fullySanitizedValue, this.symbols.group, "");
|
|
75
|
+
if (this.symbols.decimal) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.decimal, ".");
|
|
76
|
+
if (this.symbols.minusSign) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.minusSign, "-");
|
|
77
|
+
fullySanitizedValue = fullySanitizedValue.replace(this.symbols.numeral, this.symbols.index);
|
|
78
|
+
if (this.options.style === "percent") {
|
|
79
|
+
let isNegative = fullySanitizedValue.indexOf("-");
|
|
80
|
+
fullySanitizedValue = fullySanitizedValue.replace("-", "");
|
|
81
|
+
fullySanitizedValue = fullySanitizedValue.replace("+", "");
|
|
82
|
+
let index = fullySanitizedValue.indexOf(".");
|
|
83
|
+
if (index === -1) index = fullySanitizedValue.length;
|
|
84
|
+
fullySanitizedValue = fullySanitizedValue.replace(".", "");
|
|
85
|
+
if (index - 2 === 0) fullySanitizedValue = `0.${fullySanitizedValue}`;
|
|
86
|
+
else if (index - 2 === -1) fullySanitizedValue = `0.0${fullySanitizedValue}`;
|
|
87
|
+
else if (index - 2 === -2) fullySanitizedValue = "0.00";
|
|
88
|
+
else fullySanitizedValue = `${fullySanitizedValue.slice(0, index - 2)}.${fullySanitizedValue.slice(index - 2)}`;
|
|
89
|
+
if (isNegative > -1) fullySanitizedValue = `-${fullySanitizedValue}`;
|
|
90
|
+
}
|
|
91
|
+
let newValue = fullySanitizedValue ? +fullySanitizedValue : NaN;
|
|
92
|
+
if (isNaN(newValue)) return NaN;
|
|
93
|
+
if (this.options.style === "percent") {
|
|
94
|
+
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
95
|
+
let options = {
|
|
96
|
+
...this.options,
|
|
97
|
+
style: "decimal",
|
|
98
|
+
minimumFractionDigits: Math.min(((_this_options_minimumFractionDigits = this.options.minimumFractionDigits) !== null && _this_options_minimumFractionDigits !== void 0 ? _this_options_minimumFractionDigits : 0) + 2, 20),
|
|
99
|
+
maximumFractionDigits: Math.min(((_this_options_maximumFractionDigits = this.options.maximumFractionDigits) !== null && _this_options_maximumFractionDigits !== void 0 ? _this_options_maximumFractionDigits : 0) + 2, 20)
|
|
100
|
+
};
|
|
101
|
+
return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale, options).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale, options).format(newValue));
|
|
102
|
+
}
|
|
103
|
+
if (this.options.currencySign === "accounting" && $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(value)) newValue = -1 * newValue;
|
|
104
|
+
return newValue;
|
|
105
|
+
}
|
|
106
|
+
sanitize(value) {
|
|
107
|
+
value = value.replace(this.symbols.literals, "");
|
|
108
|
+
if (this.symbols.minusSign) value = value.replace("-", this.symbols.minusSign);
|
|
109
|
+
if (this.options.numberingSystem === "arab") {
|
|
110
|
+
if (this.symbols.decimal) {
|
|
111
|
+
value = value.replace(",", this.symbols.decimal);
|
|
112
|
+
value = value.replace(String.fromCharCode(1548), this.symbols.decimal);
|
|
113
|
+
}
|
|
114
|
+
if (this.symbols.group) value = $6c7bd7858deea686$var$replaceAll(value, ".", this.symbols.group);
|
|
115
|
+
}
|
|
116
|
+
if (this.symbols.group === "’" && value.includes("'")) value = $6c7bd7858deea686$var$replaceAll(value, "'", this.symbols.group);
|
|
117
|
+
if (this.options.locale === "fr-FR" && this.symbols.group) {
|
|
118
|
+
value = $6c7bd7858deea686$var$replaceAll(value, " ", this.symbols.group);
|
|
119
|
+
value = $6c7bd7858deea686$var$replaceAll(value, /\u00A0/g, this.symbols.group);
|
|
120
|
+
}
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
isValidPartialNumber(value, minValue = -Infinity, maxValue = Infinity) {
|
|
124
|
+
value = this.sanitize(value);
|
|
125
|
+
if (this.symbols.minusSign && value.startsWith(this.symbols.minusSign) && minValue < 0) value = value.slice(this.symbols.minusSign.length);
|
|
126
|
+
else if (this.symbols.plusSign && value.startsWith(this.symbols.plusSign) && maxValue > 0) value = value.slice(this.symbols.plusSign.length);
|
|
127
|
+
if (this.symbols.group && value.startsWith(this.symbols.group)) return false;
|
|
128
|
+
if (this.symbols.decimal && value.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0) return false;
|
|
129
|
+
if (this.symbols.group) value = $6c7bd7858deea686$var$replaceAll(value, this.symbols.group, "");
|
|
130
|
+
value = value.replace(this.symbols.numeral, "");
|
|
131
|
+
if (this.symbols.decimal) value = value.replace(this.symbols.decimal, "");
|
|
132
|
+
return value.length === 0;
|
|
133
|
+
}
|
|
134
|
+
constructor(locale, options = {}) {
|
|
135
|
+
this.locale = locale;
|
|
136
|
+
if (options.roundingIncrement !== 1 && options.roundingIncrement != null) {
|
|
137
|
+
if (options.maximumFractionDigits == null && options.minimumFractionDigits == null) {
|
|
138
|
+
options.maximumFractionDigits = 0;
|
|
139
|
+
options.minimumFractionDigits = 0;
|
|
140
|
+
} else if (options.maximumFractionDigits == null) options.maximumFractionDigits = options.minimumFractionDigits;
|
|
141
|
+
else if (options.minimumFractionDigits == null) options.minimumFractionDigits = options.maximumFractionDigits;
|
|
142
|
+
}
|
|
143
|
+
this.formatter = new Intl.NumberFormat(locale, options);
|
|
144
|
+
this.options = this.formatter.resolvedOptions();
|
|
145
|
+
this.symbols = $6c7bd7858deea686$var$getSymbols(locale, this.formatter, this.options, options);
|
|
146
|
+
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
147
|
+
if (this.options.style === "percent" && (((_this_options_minimumFractionDigits = this.options.minimumFractionDigits) !== null && _this_options_minimumFractionDigits !== void 0 ? _this_options_minimumFractionDigits : 0) > 18 || ((_this_options_maximumFractionDigits = this.options.maximumFractionDigits) !== null && _this_options_maximumFractionDigits !== void 0 ? _this_options_maximumFractionDigits : 0) > 18)) console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
var $6c7bd7858deea686$var$nonLiteralParts = new Set([
|
|
151
|
+
"decimal",
|
|
152
|
+
"fraction",
|
|
153
|
+
"integer",
|
|
154
|
+
"minusSign",
|
|
155
|
+
"plusSign",
|
|
156
|
+
"group"
|
|
157
|
+
]);
|
|
158
|
+
var $6c7bd7858deea686$var$pluralNumbers = [
|
|
159
|
+
0,
|
|
160
|
+
4,
|
|
161
|
+
2,
|
|
162
|
+
1,
|
|
163
|
+
11,
|
|
164
|
+
20,
|
|
165
|
+
3,
|
|
166
|
+
7,
|
|
167
|
+
100,
|
|
168
|
+
21,
|
|
169
|
+
.1,
|
|
170
|
+
1.1
|
|
171
|
+
];
|
|
172
|
+
function $6c7bd7858deea686$var$getSymbols(locale, formatter, intlOptions, originalOptions) {
|
|
173
|
+
var _allParts_find, _posAllParts_find, _decimalParts_find, _allParts_find1;
|
|
174
|
+
let symbolFormatter = new Intl.NumberFormat(locale, {
|
|
175
|
+
...intlOptions,
|
|
176
|
+
minimumSignificantDigits: 1,
|
|
177
|
+
maximumSignificantDigits: 21,
|
|
178
|
+
roundingIncrement: 1,
|
|
179
|
+
roundingPriority: "auto",
|
|
180
|
+
roundingMode: "halfExpand"
|
|
181
|
+
});
|
|
182
|
+
let allParts = symbolFormatter.formatToParts(-10000.111);
|
|
183
|
+
let posAllParts = symbolFormatter.formatToParts(10000.111);
|
|
184
|
+
let pluralParts = $6c7bd7858deea686$var$pluralNumbers.map((n) => symbolFormatter.formatToParts(n));
|
|
185
|
+
var _allParts_find_value;
|
|
186
|
+
let minusSign = (_allParts_find_value = (_allParts_find = allParts.find((p) => p.type === "minusSign")) === null || _allParts_find === void 0 ? void 0 : _allParts_find.value) !== null && _allParts_find_value !== void 0 ? _allParts_find_value : "-";
|
|
187
|
+
let plusSign = (_posAllParts_find = posAllParts.find((p) => p.type === "plusSign")) === null || _posAllParts_find === void 0 ? void 0 : _posAllParts_find.value;
|
|
188
|
+
if (!plusSign && ((originalOptions === null || originalOptions === void 0 ? void 0 : originalOptions.signDisplay) === "exceptZero" || (originalOptions === null || originalOptions === void 0 ? void 0 : originalOptions.signDisplay) === "always")) plusSign = "+";
|
|
189
|
+
let decimal = (_decimalParts_find = new Intl.NumberFormat(locale, {
|
|
190
|
+
...intlOptions,
|
|
191
|
+
minimumFractionDigits: 2,
|
|
192
|
+
maximumFractionDigits: 2
|
|
193
|
+
}).formatToParts(.001).find((p) => p.type === "decimal")) === null || _decimalParts_find === void 0 ? void 0 : _decimalParts_find.value;
|
|
194
|
+
let group = (_allParts_find1 = allParts.find((p) => p.type === "group")) === null || _allParts_find1 === void 0 ? void 0 : _allParts_find1.value;
|
|
195
|
+
let allPartsLiterals = allParts.filter((p) => !$6c7bd7858deea686$var$nonLiteralParts.has(p.type)).map((p) => $6c7bd7858deea686$var$escapeRegex(p.value));
|
|
196
|
+
let pluralPartsLiterals = pluralParts.flatMap((p) => p.filter((p) => !$6c7bd7858deea686$var$nonLiteralParts.has(p.type)).map((p) => $6c7bd7858deea686$var$escapeRegex(p.value)));
|
|
197
|
+
let sortedLiterals = [...new Set([...allPartsLiterals, ...pluralPartsLiterals])].sort((a, b) => b.length - a.length);
|
|
198
|
+
let literals = sortedLiterals.length === 0 ? new RegExp("[\\p{White_Space}]", "gu") : new RegExp(`${sortedLiterals.join("|")}|[\\p{White_Space}]`, "gu");
|
|
199
|
+
let numerals = [...new Intl.NumberFormat(intlOptions.locale, { useGrouping: false }).format(9876543210)].reverse();
|
|
200
|
+
let indexes = new Map(numerals.map((d, i) => [d, i]));
|
|
201
|
+
let numeral = new RegExp(`[${numerals.join("")}]`, "g");
|
|
202
|
+
let index = (d) => String(indexes.get(d));
|
|
203
|
+
return {
|
|
204
|
+
minusSign,
|
|
205
|
+
plusSign,
|
|
206
|
+
decimal,
|
|
207
|
+
group,
|
|
208
|
+
literals,
|
|
209
|
+
numeral,
|
|
210
|
+
index
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function $6c7bd7858deea686$var$replaceAll(str, find, replace) {
|
|
214
|
+
if (str.replaceAll) return str.replaceAll(find, replace);
|
|
215
|
+
return str.split(find).join(replace);
|
|
216
|
+
}
|
|
217
|
+
function $6c7bd7858deea686$var$escapeRegex(string) {
|
|
218
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region node_modules/@react-aria/interactions/dist/useScrollWheel.mjs
|
|
222
|
+
function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
|
|
223
|
+
let { onScroll, isDisabled } = props;
|
|
224
|
+
let onScrollHandler = useCallback((e) => {
|
|
225
|
+
if (e.ctrlKey) return;
|
|
226
|
+
e.preventDefault();
|
|
227
|
+
e.stopPropagation();
|
|
228
|
+
if (onScroll) onScroll({
|
|
229
|
+
deltaX: e.deltaX,
|
|
230
|
+
deltaY: e.deltaY
|
|
231
|
+
});
|
|
232
|
+
}, [onScroll]);
|
|
233
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "wheel", isDisabled ? void 0 : onScrollHandler);
|
|
234
|
+
}
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region node_modules/@react-aria/textfield/dist/useFormattedTextField.mjs
|
|
237
|
+
function $d841c8010a73d545$var$supportsNativeBeforeInputEvent() {
|
|
238
|
+
return typeof window !== "undefined" && window.InputEvent && typeof InputEvent.prototype.getTargetRanges === "function";
|
|
239
|
+
}
|
|
240
|
+
function $d841c8010a73d545$export$4f384c9210e583c3(props, state, inputRef) {
|
|
241
|
+
let onBeforeInputFallback = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
242
|
+
let input = inputRef.current;
|
|
243
|
+
if (!input) return;
|
|
244
|
+
let nextValue = null;
|
|
245
|
+
switch (e.inputType) {
|
|
246
|
+
case "historyUndo":
|
|
247
|
+
case "historyRedo": return;
|
|
248
|
+
case "insertLineBreak": return;
|
|
249
|
+
case "deleteContent":
|
|
250
|
+
case "deleteByCut":
|
|
251
|
+
case "deleteByDrag":
|
|
252
|
+
nextValue = input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd);
|
|
253
|
+
break;
|
|
254
|
+
case "deleteContentForward":
|
|
255
|
+
nextValue = input.selectionEnd === input.selectionStart ? input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd + 1) : input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd);
|
|
256
|
+
break;
|
|
257
|
+
case "deleteContentBackward":
|
|
258
|
+
nextValue = input.selectionEnd === input.selectionStart ? input.value.slice(0, input.selectionStart - 1) + input.value.slice(input.selectionStart) : input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd);
|
|
259
|
+
break;
|
|
260
|
+
case "deleteSoftLineBackward":
|
|
261
|
+
case "deleteHardLineBackward":
|
|
262
|
+
nextValue = input.value.slice(input.selectionStart);
|
|
263
|
+
break;
|
|
264
|
+
default:
|
|
265
|
+
if (e.data != null) nextValue = input.value.slice(0, input.selectionStart) + e.data + input.value.slice(input.selectionEnd);
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
if (nextValue == null || !state.validate(nextValue)) e.preventDefault();
|
|
269
|
+
});
|
|
270
|
+
useEffect(() => {
|
|
271
|
+
if (!$d841c8010a73d545$var$supportsNativeBeforeInputEvent() || !inputRef.current) return;
|
|
272
|
+
let input = inputRef.current;
|
|
273
|
+
input.addEventListener("beforeinput", onBeforeInputFallback, false);
|
|
274
|
+
return () => {
|
|
275
|
+
input.removeEventListener("beforeinput", onBeforeInputFallback, false);
|
|
276
|
+
};
|
|
277
|
+
}, [inputRef]);
|
|
278
|
+
let onBeforeInput = !$d841c8010a73d545$var$supportsNativeBeforeInputEvent() ? (e) => {
|
|
279
|
+
let nextValue = $d4ee10de306f2510$export$e58f029f0fbfdb29(e).value.slice(0, $d4ee10de306f2510$export$e58f029f0fbfdb29(e).selectionStart) + e.data + $d4ee10de306f2510$export$e58f029f0fbfdb29(e).value.slice($d4ee10de306f2510$export$e58f029f0fbfdb29(e).selectionEnd);
|
|
280
|
+
if (!state.validate(nextValue)) e.preventDefault();
|
|
281
|
+
} : null;
|
|
282
|
+
let { labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps, ...validation } = $2d73ec29415bd339$export$712718f7aec83d5(props, inputRef);
|
|
283
|
+
let compositionStartState = useRef(null);
|
|
284
|
+
return {
|
|
285
|
+
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(textFieldProps, {
|
|
286
|
+
onBeforeInput,
|
|
287
|
+
onCompositionStart() {
|
|
288
|
+
let { value, selectionStart, selectionEnd } = inputRef.current;
|
|
289
|
+
compositionStartState.current = {
|
|
290
|
+
value,
|
|
291
|
+
selectionStart,
|
|
292
|
+
selectionEnd
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
onCompositionEnd() {
|
|
296
|
+
if (inputRef.current && !state.validate(inputRef.current.value)) {
|
|
297
|
+
let { value, selectionStart, selectionEnd } = compositionStartState.current;
|
|
298
|
+
inputRef.current.value = value;
|
|
299
|
+
inputRef.current.setSelectionRange(selectionStart, selectionEnd);
|
|
300
|
+
state.setInputValue(value);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}),
|
|
304
|
+
labelProps,
|
|
305
|
+
descriptionProps,
|
|
306
|
+
errorMessageProps,
|
|
307
|
+
...validation
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region node_modules/@react-stately/numberfield/dist/useNumberFieldState.mjs
|
|
312
|
+
function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
|
|
313
|
+
let { minValue, maxValue, step, formatOptions, value, defaultValue = NaN, onChange, locale, isDisabled, isReadOnly } = props;
|
|
314
|
+
if (value === null) value = NaN;
|
|
315
|
+
if (value !== void 0 && !isNaN(value)) if (step !== void 0 && !isNaN(step)) value = $9446cca9a3875146$export$cb6e0bb50bc19463(value, minValue, maxValue, step);
|
|
316
|
+
else value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
|
|
317
|
+
if (!isNaN(defaultValue)) if (step !== void 0 && !isNaN(step)) defaultValue = $9446cca9a3875146$export$cb6e0bb50bc19463(defaultValue, minValue, maxValue, step);
|
|
318
|
+
else defaultValue = $9446cca9a3875146$export$7d15b64cf5a3a4c4(defaultValue, minValue, maxValue);
|
|
319
|
+
let [numberValue, setNumberValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, isNaN(defaultValue) ? NaN : defaultValue, onChange);
|
|
320
|
+
let [initialValue] = useState(numberValue);
|
|
321
|
+
let [inputValue, setInputValue] = useState(() => isNaN(numberValue) ? "" : new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, formatOptions).format(numberValue));
|
|
322
|
+
let numberParser = useMemo(() => new $6c7bd7858deea686$export$cd11ab140839f11d(locale, formatOptions), [locale, formatOptions]);
|
|
323
|
+
let numberingSystem = useMemo(() => numberParser.getNumberingSystem(inputValue), [numberParser, inputValue]);
|
|
324
|
+
let formatter = useMemo(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, {
|
|
325
|
+
...formatOptions,
|
|
326
|
+
numberingSystem
|
|
327
|
+
}), [
|
|
328
|
+
locale,
|
|
329
|
+
formatOptions,
|
|
330
|
+
numberingSystem
|
|
331
|
+
]);
|
|
332
|
+
let intlOptions = useMemo(() => formatter.resolvedOptions(), [formatter]);
|
|
333
|
+
let format = useCallback((value) => isNaN(value) || value === null ? "" : formatter.format(value), [formatter]);
|
|
334
|
+
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
335
|
+
...props,
|
|
336
|
+
value: numberValue
|
|
337
|
+
});
|
|
338
|
+
let clampStep = step !== void 0 && !isNaN(step) ? step : 1;
|
|
339
|
+
if (intlOptions.style === "percent" && (step === void 0 || isNaN(step))) clampStep = .01;
|
|
340
|
+
let [prevValue, setPrevValue] = useState(numberValue);
|
|
341
|
+
let [prevLocale, setPrevLocale] = useState(locale);
|
|
342
|
+
let [prevFormatOptions, setPrevFormatOptions] = useState(formatOptions);
|
|
343
|
+
if (!Object.is(numberValue, prevValue) || locale !== prevLocale || formatOptions !== prevFormatOptions) {
|
|
344
|
+
setInputValue(format(numberValue));
|
|
345
|
+
setPrevValue(numberValue);
|
|
346
|
+
setPrevLocale(locale);
|
|
347
|
+
setPrevFormatOptions(formatOptions);
|
|
348
|
+
}
|
|
349
|
+
let parsedValue = useMemo(() => numberParser.parse(inputValue), [numberParser, inputValue]);
|
|
350
|
+
let commit = (overrideValue) => {
|
|
351
|
+
let newInputValue = overrideValue === void 0 ? inputValue : overrideValue;
|
|
352
|
+
let newParsedValue = parsedValue;
|
|
353
|
+
if (overrideValue !== void 0) newParsedValue = numberParser.parse(newInputValue);
|
|
354
|
+
if (!newInputValue.length) {
|
|
355
|
+
setNumberValue(NaN);
|
|
356
|
+
setInputValue(value === void 0 ? "" : format(numberValue));
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if (isNaN(newParsedValue)) {
|
|
360
|
+
setInputValue(format(numberValue));
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
let clampedValue;
|
|
364
|
+
if (step === void 0 || isNaN(step)) clampedValue = $9446cca9a3875146$export$7d15b64cf5a3a4c4(newParsedValue, minValue, maxValue);
|
|
365
|
+
else clampedValue = $9446cca9a3875146$export$cb6e0bb50bc19463(newParsedValue, minValue, maxValue, step);
|
|
366
|
+
clampedValue = numberParser.parse(format(clampedValue));
|
|
367
|
+
setNumberValue(clampedValue);
|
|
368
|
+
setInputValue(format(value === void 0 ? clampedValue : numberValue));
|
|
369
|
+
validation.commitValidation();
|
|
370
|
+
};
|
|
371
|
+
let safeNextStep = (operation, minMax = 0) => {
|
|
372
|
+
let prev = parsedValue;
|
|
373
|
+
if (isNaN(prev)) return $9446cca9a3875146$export$cb6e0bb50bc19463(isNaN(minMax) ? 0 : minMax, minValue, maxValue, clampStep);
|
|
374
|
+
else {
|
|
375
|
+
let newValue = $9446cca9a3875146$export$cb6e0bb50bc19463(prev, minValue, maxValue, clampStep);
|
|
376
|
+
if (operation === "+" && newValue > prev || operation === "-" && newValue < prev) return newValue;
|
|
377
|
+
return $9446cca9a3875146$export$cb6e0bb50bc19463($de67e98908f0c6ee$var$handleDecimalOperation(operation, prev, clampStep), minValue, maxValue, clampStep);
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
let increment = () => {
|
|
381
|
+
let newValue = safeNextStep("+", minValue);
|
|
382
|
+
if (newValue === numberValue) setInputValue(format(newValue));
|
|
383
|
+
setNumberValue(newValue);
|
|
384
|
+
validation.commitValidation();
|
|
385
|
+
};
|
|
386
|
+
let decrement = () => {
|
|
387
|
+
let newValue = safeNextStep("-", maxValue);
|
|
388
|
+
if (newValue === numberValue) setInputValue(format(newValue));
|
|
389
|
+
setNumberValue(newValue);
|
|
390
|
+
validation.commitValidation();
|
|
391
|
+
};
|
|
392
|
+
let incrementToMax = () => {
|
|
393
|
+
if (maxValue != null) {
|
|
394
|
+
setNumberValue($9446cca9a3875146$export$cb6e0bb50bc19463(maxValue, minValue, maxValue, clampStep));
|
|
395
|
+
validation.commitValidation();
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
let decrementToMin = () => {
|
|
399
|
+
if (minValue != null) {
|
|
400
|
+
setNumberValue(minValue);
|
|
401
|
+
validation.commitValidation();
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
let canIncrement = useMemo(() => !isDisabled && !isReadOnly && (isNaN(parsedValue) || maxValue === void 0 || isNaN(maxValue) || $9446cca9a3875146$export$cb6e0bb50bc19463(parsedValue, minValue, maxValue, clampStep) > parsedValue || $de67e98908f0c6ee$var$handleDecimalOperation("+", parsedValue, clampStep) <= maxValue), [
|
|
405
|
+
isDisabled,
|
|
406
|
+
isReadOnly,
|
|
407
|
+
minValue,
|
|
408
|
+
maxValue,
|
|
409
|
+
clampStep,
|
|
410
|
+
parsedValue
|
|
411
|
+
]);
|
|
412
|
+
let canDecrement = useMemo(() => !isDisabled && !isReadOnly && (isNaN(parsedValue) || minValue === void 0 || isNaN(minValue) || $9446cca9a3875146$export$cb6e0bb50bc19463(parsedValue, minValue, maxValue, clampStep) < parsedValue || $de67e98908f0c6ee$var$handleDecimalOperation("-", parsedValue, clampStep) >= minValue), [
|
|
413
|
+
isDisabled,
|
|
414
|
+
isReadOnly,
|
|
415
|
+
minValue,
|
|
416
|
+
maxValue,
|
|
417
|
+
clampStep,
|
|
418
|
+
parsedValue
|
|
419
|
+
]);
|
|
420
|
+
let validate = (value) => numberParser.isValidPartialNumber(value, minValue, maxValue);
|
|
421
|
+
return {
|
|
422
|
+
...validation,
|
|
423
|
+
validate,
|
|
424
|
+
increment,
|
|
425
|
+
incrementToMax,
|
|
426
|
+
decrement,
|
|
427
|
+
decrementToMin,
|
|
428
|
+
canIncrement,
|
|
429
|
+
canDecrement,
|
|
430
|
+
minValue,
|
|
431
|
+
maxValue,
|
|
432
|
+
numberValue: parsedValue,
|
|
433
|
+
defaultNumberValue: isNaN(defaultValue) ? initialValue : defaultValue,
|
|
434
|
+
setNumberValue,
|
|
435
|
+
setInputValue,
|
|
436
|
+
inputValue,
|
|
437
|
+
commit
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
function $de67e98908f0c6ee$var$handleDecimalOperation(operator, value1, value2) {
|
|
441
|
+
let result = operator === "+" ? value1 + value2 : value1 - value2;
|
|
442
|
+
if (value1 % 1 !== 0 || value2 % 1 !== 0) {
|
|
443
|
+
const value1Decimal = value1.toString().split(".");
|
|
444
|
+
const value2Decimal = value2.toString().split(".");
|
|
445
|
+
const value1DecimalLength = value1Decimal[1] && value1Decimal[1].length || 0;
|
|
446
|
+
const value2DecimalLength = value2Decimal[1] && value2Decimal[1].length || 0;
|
|
447
|
+
const multiplier = Math.pow(10, Math.max(value1DecimalLength, value2DecimalLength));
|
|
448
|
+
value1 = Math.round(value1 * multiplier);
|
|
449
|
+
value2 = Math.round(value2 * multiplier);
|
|
450
|
+
result = operator === "+" ? value1 + value2 : value1 - value2;
|
|
451
|
+
result /= multiplier;
|
|
452
|
+
}
|
|
453
|
+
return result;
|
|
454
|
+
}
|
|
455
|
+
//#endregion
|
|
456
|
+
//#region node_modules/@react-aria/spinbutton/dist/ar-AE.mjs
|
|
457
|
+
var $ed6aae4e5f766f1e$exports = {};
|
|
458
|
+
$ed6aae4e5f766f1e$exports = { "Empty": `\u{641}\u{627}\u{631}\u{63A}` };
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region node_modules/@react-aria/spinbutton/dist/bg-BG.mjs
|
|
461
|
+
var $38854e2b175151fa$exports = {};
|
|
462
|
+
$38854e2b175151fa$exports = { "Empty": `\u{418}\u{437}\u{43F}\u{440}\u{430}\u{437}\u{43D}\u{438}` };
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region node_modules/@react-aria/spinbutton/dist/cs-CZ.mjs
|
|
465
|
+
var $15b25ab20f3945b2$exports = {};
|
|
466
|
+
$15b25ab20f3945b2$exports = { "Empty": `Pr\xe1zdn\xe9` };
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region node_modules/@react-aria/spinbutton/dist/da-DK.mjs
|
|
469
|
+
var $692a4298b6b649a2$exports = {};
|
|
470
|
+
$692a4298b6b649a2$exports = { "Empty": `Tom` };
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region node_modules/@react-aria/spinbutton/dist/de-DE.mjs
|
|
473
|
+
var $1c6e1539193f1243$exports = {};
|
|
474
|
+
$1c6e1539193f1243$exports = { "Empty": `Leer` };
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region node_modules/@react-aria/spinbutton/dist/el-GR.mjs
|
|
477
|
+
var $1e8678632c464b6d$exports = {};
|
|
478
|
+
$1e8678632c464b6d$exports = { "Empty": `\u{386}\u{3B4}\u{3B5}\u{3B9}\u{3BF}` };
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region node_modules/@react-aria/spinbutton/dist/en-US.mjs
|
|
481
|
+
var $4adc85d9bf5b9eed$exports = {};
|
|
482
|
+
$4adc85d9bf5b9eed$exports = { "Empty": `Empty` };
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region node_modules/@react-aria/spinbutton/dist/es-ES.mjs
|
|
485
|
+
var $41c4b2bb61dafbca$exports = {};
|
|
486
|
+
$41c4b2bb61dafbca$exports = { "Empty": `Vac\xedo` };
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region node_modules/@react-aria/spinbutton/dist/et-EE.mjs
|
|
489
|
+
var $405f8b24f5dd2a60$exports = {};
|
|
490
|
+
$405f8b24f5dd2a60$exports = { "Empty": `T\xfchjenda` };
|
|
491
|
+
//#endregion
|
|
492
|
+
//#region node_modules/@react-aria/spinbutton/dist/fi-FI.mjs
|
|
493
|
+
var $7efe3ed02b9b9dd4$exports = {};
|
|
494
|
+
$7efe3ed02b9b9dd4$exports = { "Empty": `Tyhj\xe4` };
|
|
495
|
+
//#endregion
|
|
496
|
+
//#region node_modules/@react-aria/spinbutton/dist/fr-FR.mjs
|
|
497
|
+
var $99fc4c101d92daf3$exports = {};
|
|
498
|
+
$99fc4c101d92daf3$exports = { "Empty": `Vide` };
|
|
499
|
+
//#endregion
|
|
500
|
+
//#region node_modules/@react-aria/spinbutton/dist/he-IL.mjs
|
|
501
|
+
var $f9e155e6e8cacaa2$exports = {};
|
|
502
|
+
$f9e155e6e8cacaa2$exports = { "Empty": `\u{5E8}\u{5D9}\u{5E7}` };
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region node_modules/@react-aria/spinbutton/dist/hr-HR.mjs
|
|
505
|
+
var $c31b5e8e9a249fd5$exports = {};
|
|
506
|
+
$c31b5e8e9a249fd5$exports = { "Empty": `Prazno` };
|
|
507
|
+
//#endregion
|
|
508
|
+
//#region node_modules/@react-aria/spinbutton/dist/hu-HU.mjs
|
|
509
|
+
var $9c5435bc17499bd9$exports = {};
|
|
510
|
+
$9c5435bc17499bd9$exports = { "Empty": `\xdcres` };
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region node_modules/@react-aria/spinbutton/dist/it-IT.mjs
|
|
513
|
+
var $6d1fc8e84d8165e1$exports = {};
|
|
514
|
+
$6d1fc8e84d8165e1$exports = { "Empty": `Vuoto` };
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region node_modules/@react-aria/spinbutton/dist/ja-JP.mjs
|
|
517
|
+
var $46ea6b3641b83e71$exports = {};
|
|
518
|
+
$46ea6b3641b83e71$exports = { "Empty": `\u{7A7A}` };
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region node_modules/@react-aria/spinbutton/dist/ko-KR.mjs
|
|
521
|
+
var $0e3cc9a288289dc5$exports = {};
|
|
522
|
+
$0e3cc9a288289dc5$exports = { "Empty": `\u{BE44}\u{C5B4} \u{C788}\u{C74C}` };
|
|
523
|
+
//#endregion
|
|
524
|
+
//#region node_modules/@react-aria/spinbutton/dist/lt-LT.mjs
|
|
525
|
+
var $4ff2bb25c0089ffb$exports = {};
|
|
526
|
+
$4ff2bb25c0089ffb$exports = { "Empty": `Tu\u{161}\u{10D}ias` };
|
|
527
|
+
//#endregion
|
|
528
|
+
//#region node_modules/@react-aria/spinbutton/dist/lv-LV.mjs
|
|
529
|
+
var $6cf33cd4c010a2fb$exports = {};
|
|
530
|
+
$6cf33cd4c010a2fb$exports = { "Empty": `Tuk\u{161}s` };
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region node_modules/@react-aria/spinbutton/dist/nb-NO.mjs
|
|
533
|
+
var $5a9f8486f8b8837e$exports = {};
|
|
534
|
+
$5a9f8486f8b8837e$exports = { "Empty": `Tom` };
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region node_modules/@react-aria/spinbutton/dist/nl-NL.mjs
|
|
537
|
+
var $583f94d807f6ecea$exports = {};
|
|
538
|
+
$583f94d807f6ecea$exports = { "Empty": `Leeg` };
|
|
539
|
+
//#endregion
|
|
540
|
+
//#region node_modules/@react-aria/spinbutton/dist/pl-PL.mjs
|
|
541
|
+
var $cc4dcfeea2b4050d$exports = {};
|
|
542
|
+
$cc4dcfeea2b4050d$exports = { "Empty": `Pusty` };
|
|
543
|
+
//#endregion
|
|
544
|
+
//#region node_modules/@react-aria/spinbutton/dist/pt-BR.mjs
|
|
545
|
+
var $68ac2954d56e12b4$exports = {};
|
|
546
|
+
$68ac2954d56e12b4$exports = { "Empty": `Vazio` };
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region node_modules/@react-aria/spinbutton/dist/pt-PT.mjs
|
|
549
|
+
var $fdb0616f309780b0$exports = {};
|
|
550
|
+
$fdb0616f309780b0$exports = { "Empty": `Vazio` };
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region node_modules/@react-aria/spinbutton/dist/ro-RO.mjs
|
|
553
|
+
var $fe1eccf4ee1d6f52$exports = {};
|
|
554
|
+
$fe1eccf4ee1d6f52$exports = { "Empty": `Gol` };
|
|
555
|
+
//#endregion
|
|
556
|
+
//#region node_modules/@react-aria/spinbutton/dist/ru-RU.mjs
|
|
557
|
+
var $a38b6c4e18725976$exports = {};
|
|
558
|
+
$a38b6c4e18725976$exports = { "Empty": `\u{41D}\u{435} \u{437}\u{430}\u{43F}\u{43E}\u{43B}\u{43D}\u{435}\u{43D}\u{43E}` };
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region node_modules/@react-aria/spinbutton/dist/sk-SK.mjs
|
|
561
|
+
var $6c14ae2b766b652c$exports = {};
|
|
562
|
+
$6c14ae2b766b652c$exports = { "Empty": `Pr\xe1zdne` };
|
|
563
|
+
//#endregion
|
|
564
|
+
//#region node_modules/@react-aria/spinbutton/dist/sl-SI.mjs
|
|
565
|
+
var $8f1c9692e16dc5eb$exports = {};
|
|
566
|
+
$8f1c9692e16dc5eb$exports = { "Empty": `Prazen` };
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region node_modules/@react-aria/spinbutton/dist/sr-SP.mjs
|
|
569
|
+
var $d2aa7abea627cafa$exports = {};
|
|
570
|
+
$d2aa7abea627cafa$exports = { "Empty": `Prazno` };
|
|
571
|
+
//#endregion
|
|
572
|
+
//#region node_modules/@react-aria/spinbutton/dist/sv-SE.mjs
|
|
573
|
+
var $676b82e4b56408e6$exports = {};
|
|
574
|
+
$676b82e4b56408e6$exports = { "Empty": `Tomt` };
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region node_modules/@react-aria/spinbutton/dist/tr-TR.mjs
|
|
577
|
+
var $14c9042552d7ce08$exports = {};
|
|
578
|
+
$14c9042552d7ce08$exports = { "Empty": `Bo\u{15F}` };
|
|
579
|
+
//#endregion
|
|
580
|
+
//#region node_modules/@react-aria/spinbutton/dist/uk-UA.mjs
|
|
581
|
+
var $393254ebcb66c9f5$exports = {};
|
|
582
|
+
$393254ebcb66c9f5$exports = { "Empty": `\u{41F}\u{443}\u{441}\u{442}\u{43E}` };
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region node_modules/@react-aria/spinbutton/dist/zh-CN.mjs
|
|
585
|
+
var $d49d621f310cf6ce$exports = {};
|
|
586
|
+
$d49d621f310cf6ce$exports = { "Empty": `\u{7A7A}` };
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region node_modules/@react-aria/spinbutton/dist/zh-TW.mjs
|
|
589
|
+
var $94b60c866ca5dfe6$exports = {};
|
|
590
|
+
$94b60c866ca5dfe6$exports = { "Empty": `\u{7A7A}\u{767D}` };
|
|
591
|
+
//#endregion
|
|
592
|
+
//#region node_modules/@react-aria/spinbutton/dist/intlStrings.mjs
|
|
593
|
+
var $a99895ee3dc79e61$exports = {};
|
|
594
|
+
$a99895ee3dc79e61$exports = {
|
|
595
|
+
"ar-AE": $ed6aae4e5f766f1e$exports,
|
|
596
|
+
"bg-BG": $38854e2b175151fa$exports,
|
|
597
|
+
"cs-CZ": $15b25ab20f3945b2$exports,
|
|
598
|
+
"da-DK": $692a4298b6b649a2$exports,
|
|
599
|
+
"de-DE": $1c6e1539193f1243$exports,
|
|
600
|
+
"el-GR": $1e8678632c464b6d$exports,
|
|
601
|
+
"en-US": $4adc85d9bf5b9eed$exports,
|
|
602
|
+
"es-ES": $41c4b2bb61dafbca$exports,
|
|
603
|
+
"et-EE": $405f8b24f5dd2a60$exports,
|
|
604
|
+
"fi-FI": $7efe3ed02b9b9dd4$exports,
|
|
605
|
+
"fr-FR": $99fc4c101d92daf3$exports,
|
|
606
|
+
"he-IL": $f9e155e6e8cacaa2$exports,
|
|
607
|
+
"hr-HR": $c31b5e8e9a249fd5$exports,
|
|
608
|
+
"hu-HU": $9c5435bc17499bd9$exports,
|
|
609
|
+
"it-IT": $6d1fc8e84d8165e1$exports,
|
|
610
|
+
"ja-JP": $46ea6b3641b83e71$exports,
|
|
611
|
+
"ko-KR": $0e3cc9a288289dc5$exports,
|
|
612
|
+
"lt-LT": $4ff2bb25c0089ffb$exports,
|
|
613
|
+
"lv-LV": $6cf33cd4c010a2fb$exports,
|
|
614
|
+
"nb-NO": $5a9f8486f8b8837e$exports,
|
|
615
|
+
"nl-NL": $583f94d807f6ecea$exports,
|
|
616
|
+
"pl-PL": $cc4dcfeea2b4050d$exports,
|
|
617
|
+
"pt-BR": $68ac2954d56e12b4$exports,
|
|
618
|
+
"pt-PT": $fdb0616f309780b0$exports,
|
|
619
|
+
"ro-RO": $fe1eccf4ee1d6f52$exports,
|
|
620
|
+
"ru-RU": $a38b6c4e18725976$exports,
|
|
621
|
+
"sk-SK": $6c14ae2b766b652c$exports,
|
|
622
|
+
"sl-SI": $8f1c9692e16dc5eb$exports,
|
|
623
|
+
"sr-SP": $d2aa7abea627cafa$exports,
|
|
624
|
+
"sv-SE": $676b82e4b56408e6$exports,
|
|
625
|
+
"tr-TR": $14c9042552d7ce08$exports,
|
|
626
|
+
"uk-UA": $393254ebcb66c9f5$exports,
|
|
627
|
+
"zh-CN": $d49d621f310cf6ce$exports,
|
|
628
|
+
"zh-TW": $94b60c866ca5dfe6$exports
|
|
629
|
+
};
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region node_modules/@react-aria/spinbutton/dist/useSpinButton.mjs
|
|
632
|
+
function $parcel$interopDefault$1(a) {
|
|
633
|
+
return a && a.__esModule ? a.default : a;
|
|
634
|
+
}
|
|
635
|
+
var $d2e8511e6f209edf$var$noop = () => {};
|
|
636
|
+
function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
637
|
+
const _async = useRef(void 0);
|
|
638
|
+
let { value, textValue, minValue, maxValue, isDisabled, isReadOnly, isRequired, onIncrement, onIncrementPage, onDecrement, onDecrementPage, onDecrementToMin, onIncrementToMax } = props;
|
|
639
|
+
const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1($a99895ee3dc79e61$exports), "@react-aria/spinbutton");
|
|
640
|
+
let isSpinning = useRef(false);
|
|
641
|
+
const clearAsync = useCallback(() => {
|
|
642
|
+
clearTimeout(_async.current);
|
|
643
|
+
isSpinning.current = false;
|
|
644
|
+
}, []);
|
|
645
|
+
const clearAsyncEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
646
|
+
clearAsync();
|
|
647
|
+
});
|
|
648
|
+
useEffect(() => {
|
|
649
|
+
return () => clearAsyncEvent();
|
|
650
|
+
}, []);
|
|
651
|
+
let onKeyDown = (e) => {
|
|
652
|
+
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || isReadOnly || e.nativeEvent.isComposing) return;
|
|
653
|
+
switch (e.key) {
|
|
654
|
+
case "PageUp": if (onIncrementPage) {
|
|
655
|
+
e.preventDefault();
|
|
656
|
+
onIncrementPage === null || onIncrementPage === void 0 || onIncrementPage();
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
case "ArrowUp":
|
|
660
|
+
case "Up":
|
|
661
|
+
if (onIncrement) {
|
|
662
|
+
e.preventDefault();
|
|
663
|
+
onIncrement === null || onIncrement === void 0 || onIncrement();
|
|
664
|
+
}
|
|
665
|
+
break;
|
|
666
|
+
case "PageDown": if (onDecrementPage) {
|
|
667
|
+
e.preventDefault();
|
|
668
|
+
onDecrementPage === null || onDecrementPage === void 0 || onDecrementPage();
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
case "ArrowDown":
|
|
672
|
+
case "Down":
|
|
673
|
+
if (onDecrement) {
|
|
674
|
+
e.preventDefault();
|
|
675
|
+
onDecrement === null || onDecrement === void 0 || onDecrement();
|
|
676
|
+
}
|
|
677
|
+
break;
|
|
678
|
+
case "Home":
|
|
679
|
+
if (onDecrementToMin) {
|
|
680
|
+
e.preventDefault();
|
|
681
|
+
onDecrementToMin === null || onDecrementToMin === void 0 || onDecrementToMin();
|
|
682
|
+
}
|
|
683
|
+
break;
|
|
684
|
+
case "End":
|
|
685
|
+
if (onIncrementToMax) {
|
|
686
|
+
e.preventDefault();
|
|
687
|
+
onIncrementToMax === null || onIncrementToMax === void 0 || onIncrementToMax();
|
|
688
|
+
}
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
let isFocused = useRef(false);
|
|
693
|
+
let onFocus = () => {
|
|
694
|
+
isFocused.current = true;
|
|
695
|
+
};
|
|
696
|
+
let onBlur = () => {
|
|
697
|
+
isFocused.current = false;
|
|
698
|
+
};
|
|
699
|
+
let ariaTextValue = textValue === "" ? stringFormatter.format("Empty") : (textValue || `${value}`).replace("-", "−");
|
|
700
|
+
useEffect(() => {
|
|
701
|
+
if (isFocused.current) {
|
|
702
|
+
$319e236875307eab$export$d10ae4f68404609a("assertive");
|
|
703
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(ariaTextValue, "assertive");
|
|
704
|
+
}
|
|
705
|
+
}, [ariaTextValue]);
|
|
706
|
+
let onPointerCancel = useCallback(() => {
|
|
707
|
+
clearAsync();
|
|
708
|
+
}, [clearAsync]);
|
|
709
|
+
const onIncrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onIncrement !== null && onIncrement !== void 0 ? onIncrement : $d2e8511e6f209edf$var$noop);
|
|
710
|
+
const onDecrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onDecrement !== null && onDecrement !== void 0 ? onDecrement : $d2e8511e6f209edf$var$noop);
|
|
711
|
+
const stepUpEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
712
|
+
if (maxValue === void 0 || isNaN(maxValue) || value === void 0 || isNaN(value) || value < maxValue) {
|
|
713
|
+
onIncrementEvent();
|
|
714
|
+
onIncrementPressStartEvent(60);
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
const onIncrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
718
|
+
clearAsyncEvent();
|
|
719
|
+
isSpinning.current = true;
|
|
720
|
+
_async.current = window.setTimeout(stepUpEvent, initialStepDelay);
|
|
721
|
+
});
|
|
722
|
+
const stepDownEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
723
|
+
if (minValue === void 0 || isNaN(minValue) || value === void 0 || isNaN(value) || value > minValue) {
|
|
724
|
+
onDecrementEvent();
|
|
725
|
+
onDecrementPressStartEvent(60);
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
const onDecrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
729
|
+
clearAsyncEvent();
|
|
730
|
+
isSpinning.current = true;
|
|
731
|
+
_async.current = window.setTimeout(stepDownEvent, initialStepDelay);
|
|
732
|
+
});
|
|
733
|
+
let cancelContextMenu = (e) => {
|
|
734
|
+
e.preventDefault();
|
|
735
|
+
};
|
|
736
|
+
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
737
|
+
let isUp = useRef(false);
|
|
738
|
+
let [isIncrementPressed, setIsIncrementPressed] = useState(null);
|
|
739
|
+
useEffect(() => {
|
|
740
|
+
if (isIncrementPressed === "touch") onIncrementPressStartEvent(600);
|
|
741
|
+
else if (isIncrementPressed) onIncrementPressStartEvent(400);
|
|
742
|
+
}, [isIncrementPressed]);
|
|
743
|
+
let [isDecrementPressed, setIsDecrementPressed] = useState(null);
|
|
744
|
+
useEffect(() => {
|
|
745
|
+
if (isDecrementPressed === "touch") onDecrementPressStartEvent(600);
|
|
746
|
+
else if (isDecrementPressed) onDecrementPressStartEvent(400);
|
|
747
|
+
}, [isDecrementPressed]);
|
|
748
|
+
return {
|
|
749
|
+
spinButtonProps: {
|
|
750
|
+
role: "spinbutton",
|
|
751
|
+
"aria-valuenow": value !== void 0 && !isNaN(value) ? value : void 0,
|
|
752
|
+
"aria-valuetext": ariaTextValue,
|
|
753
|
+
"aria-valuemin": minValue,
|
|
754
|
+
"aria-valuemax": maxValue,
|
|
755
|
+
"aria-disabled": isDisabled || void 0,
|
|
756
|
+
"aria-readonly": isReadOnly || void 0,
|
|
757
|
+
"aria-required": isRequired || void 0,
|
|
758
|
+
onKeyDown,
|
|
759
|
+
onFocus,
|
|
760
|
+
onBlur
|
|
761
|
+
},
|
|
762
|
+
incrementButtonProps: {
|
|
763
|
+
onPressStart: (e) => {
|
|
764
|
+
clearAsync();
|
|
765
|
+
if (e.pointerType !== "touch") {
|
|
766
|
+
onIncrement === null || onIncrement === void 0 || onIncrement();
|
|
767
|
+
setIsIncrementPressed("mouse");
|
|
768
|
+
} else {
|
|
769
|
+
addGlobalListener(window, "pointercancel", onPointerCancel, { capture: true });
|
|
770
|
+
isUp.current = false;
|
|
771
|
+
setIsIncrementPressed("touch");
|
|
772
|
+
}
|
|
773
|
+
addGlobalListener(window, "contextmenu", cancelContextMenu);
|
|
774
|
+
},
|
|
775
|
+
onPressUp: (e) => {
|
|
776
|
+
clearAsync();
|
|
777
|
+
if (e.pointerType === "touch") isUp.current = true;
|
|
778
|
+
removeAllGlobalListeners();
|
|
779
|
+
setIsIncrementPressed(null);
|
|
780
|
+
},
|
|
781
|
+
onPressEnd: (e) => {
|
|
782
|
+
clearAsync();
|
|
783
|
+
if (e.pointerType === "touch") {
|
|
784
|
+
if (!isSpinning.current && isUp.current) onIncrement === null || onIncrement === void 0 || onIncrement();
|
|
785
|
+
}
|
|
786
|
+
isUp.current = false;
|
|
787
|
+
setIsIncrementPressed(null);
|
|
788
|
+
},
|
|
789
|
+
onFocus,
|
|
790
|
+
onBlur
|
|
791
|
+
},
|
|
792
|
+
decrementButtonProps: {
|
|
793
|
+
onPressStart: (e) => {
|
|
794
|
+
clearAsync();
|
|
795
|
+
if (e.pointerType !== "touch") {
|
|
796
|
+
onDecrement === null || onDecrement === void 0 || onDecrement();
|
|
797
|
+
setIsDecrementPressed("mouse");
|
|
798
|
+
} else {
|
|
799
|
+
addGlobalListener(window, "pointercancel", onPointerCancel, { capture: true });
|
|
800
|
+
isUp.current = false;
|
|
801
|
+
setIsDecrementPressed("touch");
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
onPressUp: (e) => {
|
|
805
|
+
clearAsync();
|
|
806
|
+
if (e.pointerType === "touch") isUp.current = true;
|
|
807
|
+
removeAllGlobalListeners();
|
|
808
|
+
setIsDecrementPressed(null);
|
|
809
|
+
},
|
|
810
|
+
onPressEnd: (e) => {
|
|
811
|
+
clearAsync();
|
|
812
|
+
if (e.pointerType === "touch") {
|
|
813
|
+
if (!isSpinning.current && isUp.current) onDecrement === null || onDecrement === void 0 || onDecrement();
|
|
814
|
+
}
|
|
815
|
+
isUp.current = false;
|
|
816
|
+
setIsDecrementPressed(null);
|
|
817
|
+
},
|
|
818
|
+
onFocus,
|
|
819
|
+
onBlur
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
//#endregion
|
|
824
|
+
//#region node_modules/@react-aria/numberfield/dist/ar-AE.mjs
|
|
825
|
+
var $fb78e0f6ab6349ed$exports = {};
|
|
826
|
+
$fb78e0f6ab6349ed$exports = {
|
|
827
|
+
"decrease": (args) => `\u{62E}\u{641}\u{636} ${args.fieldLabel}`,
|
|
828
|
+
"increase": (args) => `\u{632}\u{64A}\u{627}\u{62F}\u{629} ${args.fieldLabel}`,
|
|
829
|
+
"numberField": `\u{62D}\u{642}\u{644} \u{631}\u{642}\u{645}\u{64A}`
|
|
830
|
+
};
|
|
831
|
+
//#endregion
|
|
832
|
+
//#region node_modules/@react-aria/numberfield/dist/bg-BG.mjs
|
|
833
|
+
var $2776acdd9959a647$exports = {};
|
|
834
|
+
$2776acdd9959a647$exports = {
|
|
835
|
+
"decrease": (args) => `\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${args.fieldLabel}`,
|
|
836
|
+
"increase": (args) => `\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${args.fieldLabel}`,
|
|
837
|
+
"numberField": `\u{41D}\u{43E}\u{43C}\u{435}\u{440} \u{43D}\u{430} \u{43F}\u{43E}\u{43B}\u{435}\u{442}\u{43E}`
|
|
838
|
+
};
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region node_modules/@react-aria/numberfield/dist/cs-CZ.mjs
|
|
841
|
+
var $741954410a365ad3$exports = {};
|
|
842
|
+
$741954410a365ad3$exports = {
|
|
843
|
+
"decrease": (args) => `Sn\xed\u{17E}it ${args.fieldLabel}`,
|
|
844
|
+
"increase": (args) => `Zv\xfd\u{161}it ${args.fieldLabel}`,
|
|
845
|
+
"numberField": `\u{10C}\xedseln\xe9 pole`
|
|
846
|
+
};
|
|
847
|
+
//#endregion
|
|
848
|
+
//#region node_modules/@react-aria/numberfield/dist/da-DK.mjs
|
|
849
|
+
var $8321ed0f8ab642f0$exports = {};
|
|
850
|
+
$8321ed0f8ab642f0$exports = {
|
|
851
|
+
"decrease": (args) => `Reducer ${args.fieldLabel}`,
|
|
852
|
+
"increase": (args) => `\xd8g ${args.fieldLabel}`,
|
|
853
|
+
"numberField": `Talfelt`
|
|
854
|
+
};
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region node_modules/@react-aria/numberfield/dist/de-DE.mjs
|
|
857
|
+
var $92978e0c4ecafa32$exports = {};
|
|
858
|
+
$92978e0c4ecafa32$exports = {
|
|
859
|
+
"decrease": (args) => `${args.fieldLabel} verringern`,
|
|
860
|
+
"increase": (args) => `${args.fieldLabel} erh\xf6hen`,
|
|
861
|
+
"numberField": `Nummernfeld`
|
|
862
|
+
};
|
|
863
|
+
//#endregion
|
|
864
|
+
//#region node_modules/@react-aria/numberfield/dist/el-GR.mjs
|
|
865
|
+
var $ac5ff71962864a84$exports = {};
|
|
866
|
+
$ac5ff71962864a84$exports = {
|
|
867
|
+
"decrease": (args) => `\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${args.fieldLabel}`,
|
|
868
|
+
"increase": (args) => `\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${args.fieldLabel}`,
|
|
869
|
+
"numberField": `\u{3A0}\u{3B5}\u{3B4}\u{3AF}\u{3BF} \u{3B1}\u{3C1}\u{3B9}\u{3B8}\u{3BC}\u{3BF}\u{3CD}`
|
|
870
|
+
};
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region node_modules/@react-aria/numberfield/dist/en-US.mjs
|
|
873
|
+
var $efe4685e2440d8be$exports = {};
|
|
874
|
+
$efe4685e2440d8be$exports = {
|
|
875
|
+
"decrease": (args) => `Decrease ${args.fieldLabel}`,
|
|
876
|
+
"increase": (args) => `Increase ${args.fieldLabel}`,
|
|
877
|
+
"numberField": `Number field`
|
|
878
|
+
};
|
|
879
|
+
//#endregion
|
|
880
|
+
//#region node_modules/@react-aria/numberfield/dist/es-ES.mjs
|
|
881
|
+
var $e50a9a48739b90e1$exports = {};
|
|
882
|
+
$e50a9a48739b90e1$exports = {
|
|
883
|
+
"decrease": (args) => `Reducir ${args.fieldLabel}`,
|
|
884
|
+
"increase": (args) => `Aumentar ${args.fieldLabel}`,
|
|
885
|
+
"numberField": `Campo de n\xfamero`
|
|
886
|
+
};
|
|
887
|
+
//#endregion
|
|
888
|
+
//#region node_modules/@react-aria/numberfield/dist/et-EE.mjs
|
|
889
|
+
var $6e0d5294ecbb8ab6$exports = {};
|
|
890
|
+
$6e0d5294ecbb8ab6$exports = {
|
|
891
|
+
"decrease": (args) => `V\xe4henda ${args.fieldLabel}`,
|
|
892
|
+
"increase": (args) => `Suurenda ${args.fieldLabel}`,
|
|
893
|
+
"numberField": `Numbri v\xe4li`
|
|
894
|
+
};
|
|
895
|
+
//#endregion
|
|
896
|
+
//#region node_modules/@react-aria/numberfield/dist/fi-FI.mjs
|
|
897
|
+
var $e7129d65f607f77f$exports = {};
|
|
898
|
+
$e7129d65f607f77f$exports = {
|
|
899
|
+
"decrease": (args) => `V\xe4henn\xe4 ${args.fieldLabel}`,
|
|
900
|
+
"increase": (args) => `Lis\xe4\xe4 ${args.fieldLabel}`,
|
|
901
|
+
"numberField": `Numerokentt\xe4`
|
|
902
|
+
};
|
|
903
|
+
//#endregion
|
|
904
|
+
//#region node_modules/@react-aria/numberfield/dist/fr-FR.mjs
|
|
905
|
+
var $d72adf5b20573e34$exports = {};
|
|
906
|
+
$d72adf5b20573e34$exports = {
|
|
907
|
+
"decrease": (args) => `Diminuer ${args.fieldLabel}`,
|
|
908
|
+
"increase": (args) => `Augmenter ${args.fieldLabel}`,
|
|
909
|
+
"numberField": `Champ de nombre`
|
|
910
|
+
};
|
|
911
|
+
//#endregion
|
|
912
|
+
//#region node_modules/@react-aria/numberfield/dist/he-IL.mjs
|
|
913
|
+
var $a25c707e88b844a7$exports = {};
|
|
914
|
+
$a25c707e88b844a7$exports = {
|
|
915
|
+
"decrease": (args) => `\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${args.fieldLabel}`,
|
|
916
|
+
"increase": (args) => `\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${args.fieldLabel}`,
|
|
917
|
+
"numberField": `\u{5E9}\u{5D3}\u{5D4} \u{5DE}\u{5E1}\u{5E4}\u{5E8}`
|
|
918
|
+
};
|
|
919
|
+
//#endregion
|
|
920
|
+
//#region node_modules/@react-aria/numberfield/dist/hr-HR.mjs
|
|
921
|
+
var $69b41140b9a4ca54$exports = {};
|
|
922
|
+
$69b41140b9a4ca54$exports = {
|
|
923
|
+
"decrease": (args) => `Smanji ${args.fieldLabel}`,
|
|
924
|
+
"increase": (args) => `Pove\u{107}aj ${args.fieldLabel}`,
|
|
925
|
+
"numberField": `Polje broja`
|
|
926
|
+
};
|
|
927
|
+
//#endregion
|
|
928
|
+
//#region node_modules/@react-aria/numberfield/dist/hu-HU.mjs
|
|
929
|
+
var $81dab28f37f59d1a$exports = {};
|
|
930
|
+
$81dab28f37f59d1a$exports = {
|
|
931
|
+
"decrease": (args) => `${args.fieldLabel} cs\xf6kkent\xe9se`,
|
|
932
|
+
"increase": (args) => `${args.fieldLabel} n\xf6vel\xe9se`,
|
|
933
|
+
"numberField": `Sz\xe1mmez\u{151}`
|
|
934
|
+
};
|
|
935
|
+
//#endregion
|
|
936
|
+
//#region node_modules/@react-aria/numberfield/dist/it-IT.mjs
|
|
937
|
+
var $866555b31f2d7711$exports = {};
|
|
938
|
+
$866555b31f2d7711$exports = {
|
|
939
|
+
"decrease": (args) => `Riduci ${args.fieldLabel}`,
|
|
940
|
+
"increase": (args) => `Aumenta ${args.fieldLabel}`,
|
|
941
|
+
"numberField": `Campo numero`
|
|
942
|
+
};
|
|
943
|
+
//#endregion
|
|
944
|
+
//#region node_modules/@react-aria/numberfield/dist/ja-JP.mjs
|
|
945
|
+
var $dafcd55d52b9d371$exports = {};
|
|
946
|
+
$dafcd55d52b9d371$exports = {
|
|
947
|
+
"decrease": (args) => `${args.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,
|
|
948
|
+
"increase": (args) => `${args.fieldLabel}\u{3092}\u{62E1}\u{5927}`,
|
|
949
|
+
"numberField": `\u{6570}\u{5024}\u{30D5}\u{30A3}\u{30FC}\u{30EB}\u{30C9}`
|
|
950
|
+
};
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region node_modules/@react-aria/numberfield/dist/ko-KR.mjs
|
|
953
|
+
var $f090c1f8c5da0145$exports = {};
|
|
954
|
+
$f090c1f8c5da0145$exports = {
|
|
955
|
+
"decrease": (args) => `${args.fieldLabel} \u{AC10}\u{C18C}`,
|
|
956
|
+
"increase": (args) => `${args.fieldLabel} \u{C99D}\u{AC00}`,
|
|
957
|
+
"numberField": `\u{BC88}\u{D638} \u{D544}\u{B4DC}`
|
|
958
|
+
};
|
|
959
|
+
//#endregion
|
|
960
|
+
//#region node_modules/@react-aria/numberfield/dist/lt-LT.mjs
|
|
961
|
+
var $6f10f3a13360a75c$exports = {};
|
|
962
|
+
$6f10f3a13360a75c$exports = {
|
|
963
|
+
"decrease": (args) => `Suma\u{17E}inti ${args.fieldLabel}`,
|
|
964
|
+
"increase": (args) => `Padidinti ${args.fieldLabel}`,
|
|
965
|
+
"numberField": `Numerio laukas`
|
|
966
|
+
};
|
|
967
|
+
//#endregion
|
|
968
|
+
//#region node_modules/@react-aria/numberfield/dist/lv-LV.mjs
|
|
969
|
+
var $47432cefd4b7bd1b$exports = {};
|
|
970
|
+
$47432cefd4b7bd1b$exports = {
|
|
971
|
+
"decrease": (args) => `Samazin\u{101}\u{161}ana ${args.fieldLabel}`,
|
|
972
|
+
"increase": (args) => `Palielin\u{101}\u{161}ana ${args.fieldLabel}`,
|
|
973
|
+
"numberField": `Skait\u{13C}u lauks`
|
|
974
|
+
};
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region node_modules/@react-aria/numberfield/dist/nb-NO.mjs
|
|
977
|
+
var $dc578a950a2bf23d$exports = {};
|
|
978
|
+
$dc578a950a2bf23d$exports = {
|
|
979
|
+
"decrease": (args) => `Reduser ${args.fieldLabel}`,
|
|
980
|
+
"increase": (args) => `\xd8k ${args.fieldLabel}`,
|
|
981
|
+
"numberField": `Tallfelt`
|
|
982
|
+
};
|
|
983
|
+
//#endregion
|
|
984
|
+
//#region node_modules/@react-aria/numberfield/dist/nl-NL.mjs
|
|
985
|
+
var $353f1bfca4dc395a$exports = {};
|
|
986
|
+
$353f1bfca4dc395a$exports = {
|
|
987
|
+
"decrease": (args) => `${args.fieldLabel} verlagen`,
|
|
988
|
+
"increase": (args) => `${args.fieldLabel} verhogen`,
|
|
989
|
+
"numberField": `Getalveld`
|
|
990
|
+
};
|
|
991
|
+
//#endregion
|
|
992
|
+
//#region node_modules/@react-aria/numberfield/dist/pl-PL.mjs
|
|
993
|
+
var $241bc0bbd870e982$exports = {};
|
|
994
|
+
$241bc0bbd870e982$exports = {
|
|
995
|
+
"decrease": (args) => `Zmniejsz ${args.fieldLabel}`,
|
|
996
|
+
"increase": (args) => `Zwi\u{119}ksz ${args.fieldLabel}`,
|
|
997
|
+
"numberField": `Pole numeru`
|
|
998
|
+
};
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region node_modules/@react-aria/numberfield/dist/pt-BR.mjs
|
|
1001
|
+
var $da3005c7bd72b0a8$exports = {};
|
|
1002
|
+
$da3005c7bd72b0a8$exports = {
|
|
1003
|
+
"decrease": (args) => `Diminuir ${args.fieldLabel}`,
|
|
1004
|
+
"increase": (args) => `Aumentar ${args.fieldLabel}`,
|
|
1005
|
+
"numberField": `Campo de n\xfamero`
|
|
1006
|
+
};
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region node_modules/@react-aria/numberfield/dist/pt-PT.mjs
|
|
1009
|
+
var $cf48bfc540882310$exports = {};
|
|
1010
|
+
$cf48bfc540882310$exports = {
|
|
1011
|
+
"decrease": (args) => `Diminuir ${args.fieldLabel}`,
|
|
1012
|
+
"increase": (args) => `Aumentar ${args.fieldLabel}`,
|
|
1013
|
+
"numberField": `Campo num\xe9rico`
|
|
1014
|
+
};
|
|
1015
|
+
//#endregion
|
|
1016
|
+
//#region node_modules/@react-aria/numberfield/dist/ro-RO.mjs
|
|
1017
|
+
var $b63a28c481ab9ee3$exports = {};
|
|
1018
|
+
$b63a28c481ab9ee3$exports = {
|
|
1019
|
+
"decrease": (args) => `Sc\u{103}dere ${args.fieldLabel}`,
|
|
1020
|
+
"increase": (args) => `Cre\u{219}tere ${args.fieldLabel}`,
|
|
1021
|
+
"numberField": `C\xe2mp numeric`
|
|
1022
|
+
};
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region node_modules/@react-aria/numberfield/dist/ru-RU.mjs
|
|
1025
|
+
var $19f9df95c2464ab6$exports = {};
|
|
1026
|
+
$19f9df95c2464ab6$exports = {
|
|
1027
|
+
"decrease": (args) => `\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${args.fieldLabel}`,
|
|
1028
|
+
"increase": (args) => `\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${args.fieldLabel}`,
|
|
1029
|
+
"numberField": `\u{427}\u{438}\u{441}\u{43B}\u{43E}\u{432}\u{43E}\u{435} \u{43F}\u{43E}\u{43B}\u{435}`
|
|
1030
|
+
};
|
|
1031
|
+
//#endregion
|
|
1032
|
+
//#region node_modules/@react-aria/numberfield/dist/sk-SK.mjs
|
|
1033
|
+
var $b272932a685e8482$exports = {};
|
|
1034
|
+
$b272932a685e8482$exports = {
|
|
1035
|
+
"decrease": (args) => `Zn\xed\u{17E}i\u{165} ${args.fieldLabel}`,
|
|
1036
|
+
"increase": (args) => `Zv\xfd\u{161}i\u{165} ${args.fieldLabel}`,
|
|
1037
|
+
"numberField": `\u{10C}\xedseln\xe9 pole`
|
|
1038
|
+
};
|
|
1039
|
+
//#endregion
|
|
1040
|
+
//#region node_modules/@react-aria/numberfield/dist/sl-SI.mjs
|
|
1041
|
+
var $cbaf8b5b61f9e544$exports = {};
|
|
1042
|
+
$cbaf8b5b61f9e544$exports = {
|
|
1043
|
+
"decrease": (args) => `Upadati ${args.fieldLabel}`,
|
|
1044
|
+
"increase": (args) => `Pove\u{10D}ajte ${args.fieldLabel}`,
|
|
1045
|
+
"numberField": `\u{160}tevil\u{10D}no polje`
|
|
1046
|
+
};
|
|
1047
|
+
//#endregion
|
|
1048
|
+
//#region node_modules/@react-aria/numberfield/dist/sr-SP.mjs
|
|
1049
|
+
var $e0a3af6ac1449b2f$exports = {};
|
|
1050
|
+
$e0a3af6ac1449b2f$exports = {
|
|
1051
|
+
"decrease": (args) => `Smanji ${args.fieldLabel}`,
|
|
1052
|
+
"increase": (args) => `Pove\u{107}aj ${args.fieldLabel}`,
|
|
1053
|
+
"numberField": `Polje broja`
|
|
1054
|
+
};
|
|
1055
|
+
//#endregion
|
|
1056
|
+
//#region node_modules/@react-aria/numberfield/dist/sv-SE.mjs
|
|
1057
|
+
var $71e167d2458a6019$exports = {};
|
|
1058
|
+
$71e167d2458a6019$exports = {
|
|
1059
|
+
"decrease": (args) => `Minska ${args.fieldLabel}`,
|
|
1060
|
+
"increase": (args) => `\xd6ka ${args.fieldLabel}`,
|
|
1061
|
+
"numberField": `Nummerf\xe4lt`
|
|
1062
|
+
};
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region node_modules/@react-aria/numberfield/dist/tr-TR.mjs
|
|
1065
|
+
var $3719245abc082946$exports = {};
|
|
1066
|
+
$3719245abc082946$exports = {
|
|
1067
|
+
"decrease": (args) => `${args.fieldLabel} azalt`,
|
|
1068
|
+
"increase": (args) => `${args.fieldLabel} artt\u{131}r`,
|
|
1069
|
+
"numberField": `Say\u{131} alan\u{131}`
|
|
1070
|
+
};
|
|
1071
|
+
//#endregion
|
|
1072
|
+
//#region node_modules/@react-aria/numberfield/dist/uk-UA.mjs
|
|
1073
|
+
var $2ccc589e2f51824d$exports = {};
|
|
1074
|
+
$2ccc589e2f51824d$exports = {
|
|
1075
|
+
"decrease": (args) => `\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${args.fieldLabel}`,
|
|
1076
|
+
"increase": (args) => `\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${args.fieldLabel}`,
|
|
1077
|
+
"numberField": `\u{41F}\u{43E}\u{43B}\u{435} \u{43D}\u{43E}\u{43C}\u{435}\u{440}\u{430}`
|
|
1078
|
+
};
|
|
1079
|
+
//#endregion
|
|
1080
|
+
//#region node_modules/@react-aria/numberfield/dist/zh-CN.mjs
|
|
1081
|
+
var $e1103cb9b4c13942$exports = {};
|
|
1082
|
+
$e1103cb9b4c13942$exports = {
|
|
1083
|
+
"decrease": (args) => `\u{964D}\u{4F4E} ${args.fieldLabel}`,
|
|
1084
|
+
"increase": (args) => `\u{63D0}\u{9AD8} ${args.fieldLabel}`,
|
|
1085
|
+
"numberField": `\u{6570}\u{5B57}\u{5B57}\u{6BB5}`
|
|
1086
|
+
};
|
|
1087
|
+
//#endregion
|
|
1088
|
+
//#region node_modules/@react-aria/numberfield/dist/zh-TW.mjs
|
|
1089
|
+
var $448607634f80dccb$exports = {};
|
|
1090
|
+
$448607634f80dccb$exports = {
|
|
1091
|
+
"decrease": (args) => `\u{7E2E}\u{5C0F} ${args.fieldLabel}`,
|
|
1092
|
+
"increase": (args) => `\u{653E}\u{5927} ${args.fieldLabel}`,
|
|
1093
|
+
"numberField": `\u{6578}\u{5B57}\u{6B04}\u{4F4D}`
|
|
1094
|
+
};
|
|
1095
|
+
//#endregion
|
|
1096
|
+
//#region node_modules/@react-aria/numberfield/dist/intlStrings.mjs
|
|
1097
|
+
var $280a227d7cb94b92$exports = {};
|
|
1098
|
+
$280a227d7cb94b92$exports = {
|
|
1099
|
+
"ar-AE": $fb78e0f6ab6349ed$exports,
|
|
1100
|
+
"bg-BG": $2776acdd9959a647$exports,
|
|
1101
|
+
"cs-CZ": $741954410a365ad3$exports,
|
|
1102
|
+
"da-DK": $8321ed0f8ab642f0$exports,
|
|
1103
|
+
"de-DE": $92978e0c4ecafa32$exports,
|
|
1104
|
+
"el-GR": $ac5ff71962864a84$exports,
|
|
1105
|
+
"en-US": $efe4685e2440d8be$exports,
|
|
1106
|
+
"es-ES": $e50a9a48739b90e1$exports,
|
|
1107
|
+
"et-EE": $6e0d5294ecbb8ab6$exports,
|
|
1108
|
+
"fi-FI": $e7129d65f607f77f$exports,
|
|
1109
|
+
"fr-FR": $d72adf5b20573e34$exports,
|
|
1110
|
+
"he-IL": $a25c707e88b844a7$exports,
|
|
1111
|
+
"hr-HR": $69b41140b9a4ca54$exports,
|
|
1112
|
+
"hu-HU": $81dab28f37f59d1a$exports,
|
|
1113
|
+
"it-IT": $866555b31f2d7711$exports,
|
|
1114
|
+
"ja-JP": $dafcd55d52b9d371$exports,
|
|
1115
|
+
"ko-KR": $f090c1f8c5da0145$exports,
|
|
1116
|
+
"lt-LT": $6f10f3a13360a75c$exports,
|
|
1117
|
+
"lv-LV": $47432cefd4b7bd1b$exports,
|
|
1118
|
+
"nb-NO": $dc578a950a2bf23d$exports,
|
|
1119
|
+
"nl-NL": $353f1bfca4dc395a$exports,
|
|
1120
|
+
"pl-PL": $241bc0bbd870e982$exports,
|
|
1121
|
+
"pt-BR": $da3005c7bd72b0a8$exports,
|
|
1122
|
+
"pt-PT": $cf48bfc540882310$exports,
|
|
1123
|
+
"ro-RO": $b63a28c481ab9ee3$exports,
|
|
1124
|
+
"ru-RU": $19f9df95c2464ab6$exports,
|
|
1125
|
+
"sk-SK": $b272932a685e8482$exports,
|
|
1126
|
+
"sl-SI": $cbaf8b5b61f9e544$exports,
|
|
1127
|
+
"sr-SP": $e0a3af6ac1449b2f$exports,
|
|
1128
|
+
"sv-SE": $71e167d2458a6019$exports,
|
|
1129
|
+
"tr-TR": $3719245abc082946$exports,
|
|
1130
|
+
"uk-UA": $2ccc589e2f51824d$exports,
|
|
1131
|
+
"zh-CN": $e1103cb9b4c13942$exports,
|
|
1132
|
+
"zh-TW": $448607634f80dccb$exports
|
|
1133
|
+
};
|
|
1134
|
+
//#endregion
|
|
1135
|
+
//#region node_modules/@react-aria/numberfield/dist/useNumberField.mjs
|
|
1136
|
+
function $parcel$interopDefault(a) {
|
|
1137
|
+
return a && a.__esModule ? a.default : a;
|
|
1138
|
+
}
|
|
1139
|
+
function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
|
|
1140
|
+
let { id, decrementAriaLabel, incrementAriaLabel, isDisabled, isReadOnly, isRequired, minValue, maxValue, autoFocus, label, formatOptions, onBlur = () => {}, onFocus, onFocusChange, onKeyDown, onKeyUp, description, errorMessage, isWheelDisabled, ...otherProps } = props;
|
|
1141
|
+
let { increment, incrementToMax, decrement, decrementToMin, numberValue, inputValue, commit, commitValidation } = state;
|
|
1142
|
+
const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($280a227d7cb94b92$exports), "@react-aria/numberfield");
|
|
1143
|
+
let commitAndAnnounce = useCallback(() => {
|
|
1144
|
+
var _inputRef_current, _inputRef_current1, _inputRef_current2;
|
|
1145
|
+
var _inputRef_current_value;
|
|
1146
|
+
let oldValue = (_inputRef_current_value = (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.value) !== null && _inputRef_current_value !== void 0 ? _inputRef_current_value : "";
|
|
1147
|
+
flushSync(() => {
|
|
1148
|
+
commit();
|
|
1149
|
+
});
|
|
1150
|
+
var _inputRef_current_value1;
|
|
1151
|
+
if (((_inputRef_current1 = inputRef.current) === null || _inputRef_current1 === void 0 ? void 0 : _inputRef_current1.value) !== oldValue) $319e236875307eab$export$a9b970dcc4ae71a9((_inputRef_current_value1 = (_inputRef_current2 = inputRef.current) === null || _inputRef_current2 === void 0 ? void 0 : _inputRef_current2.value) !== null && _inputRef_current_value1 !== void 0 ? _inputRef_current_value1 : "", "assertive");
|
|
1152
|
+
}, [commit, inputRef]);
|
|
1153
|
+
let inputId = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
1154
|
+
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({ onBlur() {
|
|
1155
|
+
commitAndAnnounce();
|
|
1156
|
+
} });
|
|
1157
|
+
let numberFormatter = $a916eb452884faea$export$b7a616150fdb9f44(formatOptions);
|
|
1158
|
+
let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [numberFormatter]);
|
|
1159
|
+
let textValueFormatter = $a916eb452884faea$export$b7a616150fdb9f44({
|
|
1160
|
+
...formatOptions,
|
|
1161
|
+
currencySign: void 0
|
|
1162
|
+
});
|
|
1163
|
+
let { spinButtonProps, incrementButtonProps: incButtonProps, decrementButtonProps: decButtonProps } = $d2e8511e6f209edf$export$e908e06f4b8e3402({
|
|
1164
|
+
isDisabled,
|
|
1165
|
+
isReadOnly,
|
|
1166
|
+
isRequired,
|
|
1167
|
+
maxValue,
|
|
1168
|
+
minValue,
|
|
1169
|
+
onIncrement: increment,
|
|
1170
|
+
onIncrementToMax: incrementToMax,
|
|
1171
|
+
onDecrement: decrement,
|
|
1172
|
+
onDecrementToMin: decrementToMin,
|
|
1173
|
+
value: numberValue,
|
|
1174
|
+
textValue: useMemo(() => isNaN(numberValue) ? "" : textValueFormatter.format(numberValue), [textValueFormatter, numberValue])
|
|
1175
|
+
});
|
|
1176
|
+
let [focusWithin, setFocusWithin] = useState(false);
|
|
1177
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
1178
|
+
isDisabled,
|
|
1179
|
+
onFocusWithinChange: setFocusWithin
|
|
1180
|
+
});
|
|
1181
|
+
$7d0a636d7a4dcefd$export$2123ff2b87c81ca({
|
|
1182
|
+
onScroll: useCallback((e) => {
|
|
1183
|
+
if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
|
|
1184
|
+
if (e.deltaY > 0) increment();
|
|
1185
|
+
else if (e.deltaY < 0) decrement();
|
|
1186
|
+
}, [decrement, increment]),
|
|
1187
|
+
isDisabled: isWheelDisabled || isDisabled || isReadOnly || !focusWithin
|
|
1188
|
+
}, inputRef);
|
|
1189
|
+
var _intlOptions_maximumFractionDigits;
|
|
1190
|
+
let hasDecimals = ((_intlOptions_maximumFractionDigits = intlOptions.maximumFractionDigits) !== null && _intlOptions_maximumFractionDigits !== void 0 ? _intlOptions_maximumFractionDigits : 0) > 0;
|
|
1191
|
+
let hasNegative = state.minValue === void 0 || isNaN(state.minValue) || state.minValue < 0;
|
|
1192
|
+
let inputMode = "numeric";
|
|
1193
|
+
if ($c87311424ea30a05$export$186c6964ca17d99()) {
|
|
1194
|
+
if (hasNegative) inputMode = "text";
|
|
1195
|
+
else if (hasDecimals) inputMode = "decimal";
|
|
1196
|
+
} else if ($c87311424ea30a05$export$a11b0059900ceec8()) {
|
|
1197
|
+
if (hasNegative) inputMode = "numeric";
|
|
1198
|
+
else if (hasDecimals) inputMode = "decimal";
|
|
1199
|
+
}
|
|
1200
|
+
let onChange = (value) => {
|
|
1201
|
+
if (state.validate(value)) state.setInputValue(value);
|
|
1202
|
+
};
|
|
1203
|
+
let onPaste = (e) => {
|
|
1204
|
+
var _props_onPaste;
|
|
1205
|
+
(_props_onPaste = props.onPaste) === null || _props_onPaste === void 0 || _props_onPaste.call(props, e);
|
|
1206
|
+
let inputElement = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
1207
|
+
var _inputElement_selectionEnd, _inputElement_selectionStart;
|
|
1208
|
+
if (inputElement && ((_inputElement_selectionEnd = inputElement.selectionEnd) !== null && _inputElement_selectionEnd !== void 0 ? _inputElement_selectionEnd : -1) - ((_inputElement_selectionStart = inputElement.selectionStart) !== null && _inputElement_selectionStart !== void 0 ? _inputElement_selectionStart : 0) === inputElement.value.length) {
|
|
1209
|
+
var _e_clipboardData_getData, _e_clipboardData_getData1, _e_clipboardData;
|
|
1210
|
+
e.preventDefault();
|
|
1211
|
+
var _e_clipboardData_getData_trim;
|
|
1212
|
+
commit((_e_clipboardData_getData_trim = (_e_clipboardData = e.clipboardData) === null || _e_clipboardData === void 0 ? void 0 : (_e_clipboardData_getData1 = _e_clipboardData.getData) === null || _e_clipboardData_getData1 === void 0 ? void 0 : (_e_clipboardData_getData = _e_clipboardData_getData1.call(_e_clipboardData, "text/plain")) === null || _e_clipboardData_getData === void 0 ? void 0 : _e_clipboardData_getData.trim()) !== null && _e_clipboardData_getData_trim !== void 0 ? _e_clipboardData_getData_trim : "");
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
1216
|
+
let onKeyDownEnter = useCallback((e) => {
|
|
1217
|
+
if (e.nativeEvent.isComposing) return;
|
|
1218
|
+
if (e.key === "Enter") {
|
|
1219
|
+
commit();
|
|
1220
|
+
commitValidation();
|
|
1221
|
+
} else e.continuePropagation();
|
|
1222
|
+
}, [commit, commitValidation]);
|
|
1223
|
+
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
1224
|
+
let { labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps } = $d841c8010a73d545$export$4f384c9210e583c3({
|
|
1225
|
+
...otherProps,
|
|
1226
|
+
...domProps,
|
|
1227
|
+
name: void 0,
|
|
1228
|
+
form: void 0,
|
|
1229
|
+
label,
|
|
1230
|
+
autoFocus,
|
|
1231
|
+
isDisabled,
|
|
1232
|
+
isReadOnly,
|
|
1233
|
+
isRequired,
|
|
1234
|
+
validate: void 0,
|
|
1235
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state,
|
|
1236
|
+
value: inputValue,
|
|
1237
|
+
defaultValue: "!",
|
|
1238
|
+
autoComplete: "off",
|
|
1239
|
+
"aria-label": props["aria-label"] || void 0,
|
|
1240
|
+
"aria-labelledby": props["aria-labelledby"] || void 0,
|
|
1241
|
+
id: inputId,
|
|
1242
|
+
type: "text",
|
|
1243
|
+
inputMode,
|
|
1244
|
+
onChange,
|
|
1245
|
+
onBlur,
|
|
1246
|
+
onFocus,
|
|
1247
|
+
onFocusChange,
|
|
1248
|
+
onKeyDown: useMemo(() => $ff5963eb1fccf552$export$e08e3b67e392101e(onKeyDownEnter, onKeyDown), [onKeyDownEnter, onKeyDown]),
|
|
1249
|
+
onKeyUp,
|
|
1250
|
+
onPaste,
|
|
1251
|
+
description,
|
|
1252
|
+
errorMessage
|
|
1253
|
+
}, state, inputRef);
|
|
1254
|
+
$99facab73266f662$export$5add1d006293d136(inputRef, state.defaultNumberValue, state.setNumberValue);
|
|
1255
|
+
let inputProps = $3ef42575df84b30b$export$9d1611c77c2fe928(spinButtonProps, focusProps, textFieldProps, {
|
|
1256
|
+
role: null,
|
|
1257
|
+
"aria-roledescription": !$c87311424ea30a05$export$fedb369cb70207f1() ? stringFormatter.format("numberField") : null,
|
|
1258
|
+
"aria-valuemax": null,
|
|
1259
|
+
"aria-valuemin": null,
|
|
1260
|
+
"aria-valuenow": null,
|
|
1261
|
+
"aria-valuetext": null,
|
|
1262
|
+
autoCorrect: "off",
|
|
1263
|
+
spellCheck: "false"
|
|
1264
|
+
});
|
|
1265
|
+
if (props.validationBehavior === "native") inputProps["aria-required"] = void 0;
|
|
1266
|
+
let onButtonPressStart = (e) => {
|
|
1267
|
+
var _inputRef_current;
|
|
1268
|
+
if ($d4ee10de306f2510$export$cd4e5573fbe2b576() === inputRef.current) return;
|
|
1269
|
+
if (e.pointerType === "mouse") (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
|
|
1270
|
+
else e.target.focus();
|
|
1271
|
+
};
|
|
1272
|
+
let fieldLabel = props["aria-label"] || (typeof props.label === "string" ? props.label : "");
|
|
1273
|
+
let ariaLabelledby;
|
|
1274
|
+
if (!fieldLabel) ariaLabelledby = props.label != null ? labelProps.id : props["aria-labelledby"];
|
|
1275
|
+
let incrementId = $bdb11010cef70236$export$f680877a34711e37();
|
|
1276
|
+
let decrementId = $bdb11010cef70236$export$f680877a34711e37();
|
|
1277
|
+
let incrementButtonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(incButtonProps, {
|
|
1278
|
+
"aria-label": incrementAriaLabel || stringFormatter.format("increase", { fieldLabel }).trim(),
|
|
1279
|
+
id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,
|
|
1280
|
+
"aria-labelledby": ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,
|
|
1281
|
+
"aria-controls": inputId,
|
|
1282
|
+
excludeFromTabOrder: true,
|
|
1283
|
+
preventFocusOnPress: true,
|
|
1284
|
+
allowFocusWhenDisabled: true,
|
|
1285
|
+
isDisabled: !state.canIncrement,
|
|
1286
|
+
onPressStart: onButtonPressStart
|
|
1287
|
+
});
|
|
1288
|
+
let decrementButtonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(decButtonProps, {
|
|
1289
|
+
"aria-label": decrementAriaLabel || stringFormatter.format("decrease", { fieldLabel }).trim(),
|
|
1290
|
+
id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,
|
|
1291
|
+
"aria-labelledby": ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,
|
|
1292
|
+
"aria-controls": inputId,
|
|
1293
|
+
excludeFromTabOrder: true,
|
|
1294
|
+
preventFocusOnPress: true,
|
|
1295
|
+
allowFocusWhenDisabled: true,
|
|
1296
|
+
isDisabled: !state.canDecrement,
|
|
1297
|
+
onPressStart: onButtonPressStart
|
|
1298
|
+
});
|
|
1299
|
+
return {
|
|
1300
|
+
groupProps: {
|
|
1301
|
+
...focusWithinProps,
|
|
1302
|
+
role: "group",
|
|
1303
|
+
"aria-disabled": isDisabled,
|
|
1304
|
+
"aria-invalid": isInvalid ? "true" : void 0
|
|
1305
|
+
},
|
|
1306
|
+
labelProps,
|
|
1307
|
+
inputProps,
|
|
1308
|
+
incrementButtonProps,
|
|
1309
|
+
decrementButtonProps,
|
|
1310
|
+
errorMessageProps,
|
|
1311
|
+
descriptionProps,
|
|
1312
|
+
isInvalid,
|
|
1313
|
+
validationErrors,
|
|
1314
|
+
validationDetails
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
//#endregion
|
|
1318
|
+
export { $7d0a636d7a4dcefd$export$2123ff2b87c81ca as a, $d841c8010a73d545$export$4f384c9210e583c3 as i, $d2e8511e6f209edf$export$e908e06f4b8e3402 as n, $de67e98908f0c6ee$export$7f629e9dc1ecf37c as r, $81397a9303501bda$export$23f548e970bdf099 as t };
|