@eightshift/ui-components 6.3.0 → 7.0.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 +197 -200
- package/dist/assets/style-editor.css +197 -200
- package/dist/assets/style.css +197 -200
- 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 +360 -589
- package/dist/components/select/async-select.js +284 -492
- package/dist/components/select/multi-select.js +340 -552
- package/dist/components/select/shared.js +3 -17
- package/dist/components/select/single-select.js +278 -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-D-7dwhuF.js +4277 -0
- package/dist/gradient-editor-DbH8NU2p.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-BG7-_Ou3.js +9638 -0
- package/dist/shared-DFDimxvX.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 +30 -18
- 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
|
@@ -1,1330 +0,0 @@
|
|
|
1
|
-
import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, b as $d4ee10de306f2510$export$e58f029f0fbfdb29, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, P as $c87311424ea30a05$export$186c6964ca17d99, s as $c87311424ea30a05$export$a11b0059900ceec8, d as $c87311424ea30a05$export$fedb369cb70207f1, j as $d4ee10de306f2510$export$cd4e5573fbe2b576 } from "./useHover-DkmPQdGE.js";
|
|
2
|
-
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
3
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-BrbMhS2N.js";
|
|
4
|
-
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
5
|
-
import { useCallback, useEffect, useRef, useState, useMemo } from "react";
|
|
6
|
-
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-DtRmB6b8.js";
|
|
7
|
-
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, o as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-Cr3pLd9c.js";
|
|
8
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
9
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BoxsKyJ9.js";
|
|
10
|
-
import { r as reactDomExports } from "./index-BL5gdWX4.js";
|
|
11
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-B2glEZ25.js";
|
|
12
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-Bfy68GHZ.js";
|
|
13
|
-
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-BG9DaxYN.js";
|
|
14
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CEDs0LsA.js";
|
|
15
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CG_IQXp9.js";
|
|
16
|
-
const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
|
|
17
|
-
const $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
|
|
18
|
-
"latn",
|
|
19
|
-
"arab",
|
|
20
|
-
"hanidec",
|
|
21
|
-
"deva",
|
|
22
|
-
"beng",
|
|
23
|
-
"fullwide"
|
|
24
|
-
];
|
|
25
|
-
class $6c7bd7858deea686$export$cd11ab140839f11d {
|
|
26
|
-
/**
|
|
27
|
-
* Parses the given string to a number. Returns NaN if a valid number could not be parsed.
|
|
28
|
-
*/
|
|
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
|
-
*/
|
|
37
|
-
isValidPartialNumber(value, minValue, maxValue) {
|
|
38
|
-
return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).isValidPartialNumber(value, minValue, maxValue);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Returns a numbering system for which the given string is valid in the current locale.
|
|
42
|
-
* If no numbering system could be detected, the default numbering system for the current
|
|
43
|
-
* locale is returned.
|
|
44
|
-
*/
|
|
45
|
-
getNumberingSystem(value) {
|
|
46
|
-
return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).options.numberingSystem;
|
|
47
|
-
}
|
|
48
|
-
constructor(locale, options = {}) {
|
|
49
|
-
this.locale = locale;
|
|
50
|
-
this.options = options;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
const $6c7bd7858deea686$var$numberParserCache = /* @__PURE__ */ new Map();
|
|
54
|
-
function $6c7bd7858deea686$var$getNumberParserImpl(locale, options, value) {
|
|
55
|
-
let defaultParser = $6c7bd7858deea686$var$getCachedNumberParser(locale, options);
|
|
56
|
-
if (!locale.includes("-nu-") && !defaultParser.isValidPartialNumber(value)) {
|
|
57
|
-
for (let numberingSystem of $6c7bd7858deea686$var$NUMBERING_SYSTEMS) if (numberingSystem !== defaultParser.options.numberingSystem) {
|
|
58
|
-
let parser = $6c7bd7858deea686$var$getCachedNumberParser(locale + (locale.includes("-u-") ? "-nu-" : "-u-nu-") + numberingSystem, options);
|
|
59
|
-
if (parser.isValidPartialNumber(value)) return parser;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return defaultParser;
|
|
63
|
-
}
|
|
64
|
-
function $6c7bd7858deea686$var$getCachedNumberParser(locale, options) {
|
|
65
|
-
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
66
|
-
let parser = $6c7bd7858deea686$var$numberParserCache.get(cacheKey);
|
|
67
|
-
if (!parser) {
|
|
68
|
-
parser = new $6c7bd7858deea686$var$NumberParserImpl(locale, options);
|
|
69
|
-
$6c7bd7858deea686$var$numberParserCache.set(cacheKey, parser);
|
|
70
|
-
}
|
|
71
|
-
return parser;
|
|
72
|
-
}
|
|
73
|
-
class $6c7bd7858deea686$var$NumberParserImpl {
|
|
74
|
-
parse(value) {
|
|
75
|
-
let fullySanitizedValue = this.sanitize(value);
|
|
76
|
-
if (this.symbols.group)
|
|
77
|
-
fullySanitizedValue = $6c7bd7858deea686$var$replaceAll(fullySanitizedValue, this.symbols.group, "");
|
|
78
|
-
if (this.symbols.decimal) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.decimal, ".");
|
|
79
|
-
if (this.symbols.minusSign) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.minusSign, "-");
|
|
80
|
-
fullySanitizedValue = fullySanitizedValue.replace(this.symbols.numeral, this.symbols.index);
|
|
81
|
-
if (this.options.style === "percent") {
|
|
82
|
-
let isNegative = fullySanitizedValue.indexOf("-");
|
|
83
|
-
fullySanitizedValue = fullySanitizedValue.replace("-", "");
|
|
84
|
-
fullySanitizedValue = fullySanitizedValue.replace("+", "");
|
|
85
|
-
let index = fullySanitizedValue.indexOf(".");
|
|
86
|
-
if (index === -1) index = fullySanitizedValue.length;
|
|
87
|
-
fullySanitizedValue = fullySanitizedValue.replace(".", "");
|
|
88
|
-
if (index - 2 === 0) fullySanitizedValue = `0.${fullySanitizedValue}`;
|
|
89
|
-
else if (index - 2 === -1) fullySanitizedValue = `0.0${fullySanitizedValue}`;
|
|
90
|
-
else if (index - 2 === -2) fullySanitizedValue = "0.00";
|
|
91
|
-
else fullySanitizedValue = `${fullySanitizedValue.slice(0, index - 2)}.${fullySanitizedValue.slice(index - 2)}`;
|
|
92
|
-
if (isNegative > -1) fullySanitizedValue = `-${fullySanitizedValue}`;
|
|
93
|
-
}
|
|
94
|
-
let newValue = fullySanitizedValue ? +fullySanitizedValue : NaN;
|
|
95
|
-
if (isNaN(newValue)) return NaN;
|
|
96
|
-
if (this.options.style === "percent") {
|
|
97
|
-
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
98
|
-
let options = {
|
|
99
|
-
...this.options,
|
|
100
|
-
style: "decimal",
|
|
101
|
-
minimumFractionDigits: Math.min(((_this_options_minimumFractionDigits = this.options.minimumFractionDigits) !== null && _this_options_minimumFractionDigits !== void 0 ? _this_options_minimumFractionDigits : 0) + 2, 20),
|
|
102
|
-
maximumFractionDigits: Math.min(((_this_options_maximumFractionDigits = this.options.maximumFractionDigits) !== null && _this_options_maximumFractionDigits !== void 0 ? _this_options_maximumFractionDigits : 0) + 2, 20)
|
|
103
|
-
};
|
|
104
|
-
return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale, options).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale, options).format(newValue));
|
|
105
|
-
}
|
|
106
|
-
if (this.options.currencySign === "accounting" && $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(value)) newValue = -1 * newValue;
|
|
107
|
-
return newValue;
|
|
108
|
-
}
|
|
109
|
-
sanitize(value) {
|
|
110
|
-
value = value.replace(this.symbols.literals, "");
|
|
111
|
-
if (this.symbols.minusSign) value = value.replace("-", this.symbols.minusSign);
|
|
112
|
-
if (this.options.numberingSystem === "arab") {
|
|
113
|
-
if (this.symbols.decimal) {
|
|
114
|
-
value = value.replace(",", this.symbols.decimal);
|
|
115
|
-
value = value.replace(String.fromCharCode(1548), this.symbols.decimal);
|
|
116
|
-
}
|
|
117
|
-
if (this.symbols.group) value = $6c7bd7858deea686$var$replaceAll(value, ".", this.symbols.group);
|
|
118
|
-
}
|
|
119
|
-
if (this.symbols.group === "’" && value.includes("'")) value = $6c7bd7858deea686$var$replaceAll(value, "'", this.symbols.group);
|
|
120
|
-
if (this.options.locale === "fr-FR" && this.symbols.group) {
|
|
121
|
-
value = $6c7bd7858deea686$var$replaceAll(value, " ", this.symbols.group);
|
|
122
|
-
value = $6c7bd7858deea686$var$replaceAll(value, /\u00A0/g, this.symbols.group);
|
|
123
|
-
}
|
|
124
|
-
return value;
|
|
125
|
-
}
|
|
126
|
-
isValidPartialNumber(value, minValue = -Infinity, maxValue = Infinity) {
|
|
127
|
-
value = this.sanitize(value);
|
|
128
|
-
if (this.symbols.minusSign && value.startsWith(this.symbols.minusSign) && minValue < 0) value = value.slice(this.symbols.minusSign.length);
|
|
129
|
-
else if (this.symbols.plusSign && value.startsWith(this.symbols.plusSign) && maxValue > 0) value = value.slice(this.symbols.plusSign.length);
|
|
130
|
-
if (this.symbols.group && value.startsWith(this.symbols.group)) return false;
|
|
131
|
-
if (this.symbols.decimal && value.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0) return false;
|
|
132
|
-
if (this.symbols.group) value = $6c7bd7858deea686$var$replaceAll(value, this.symbols.group, "");
|
|
133
|
-
value = value.replace(this.symbols.numeral, "");
|
|
134
|
-
if (this.symbols.decimal) value = value.replace(this.symbols.decimal, "");
|
|
135
|
-
return value.length === 0;
|
|
136
|
-
}
|
|
137
|
-
constructor(locale, options = {}) {
|
|
138
|
-
this.locale = locale;
|
|
139
|
-
if (options.roundingIncrement !== 1 && options.roundingIncrement != null) {
|
|
140
|
-
if (options.maximumFractionDigits == null && options.minimumFractionDigits == null) {
|
|
141
|
-
options.maximumFractionDigits = 0;
|
|
142
|
-
options.minimumFractionDigits = 0;
|
|
143
|
-
} else if (options.maximumFractionDigits == null) options.maximumFractionDigits = options.minimumFractionDigits;
|
|
144
|
-
else if (options.minimumFractionDigits == null) options.minimumFractionDigits = options.maximumFractionDigits;
|
|
145
|
-
}
|
|
146
|
-
this.formatter = new Intl.NumberFormat(locale, options);
|
|
147
|
-
this.options = this.formatter.resolvedOptions();
|
|
148
|
-
this.symbols = $6c7bd7858deea686$var$getSymbols(locale, this.formatter, this.options, options);
|
|
149
|
-
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
150
|
-
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.");
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
const $6c7bd7858deea686$var$nonLiteralParts = /* @__PURE__ */ new Set([
|
|
154
|
-
"decimal",
|
|
155
|
-
"fraction",
|
|
156
|
-
"integer",
|
|
157
|
-
"minusSign",
|
|
158
|
-
"plusSign",
|
|
159
|
-
"group"
|
|
160
|
-
]);
|
|
161
|
-
const $6c7bd7858deea686$var$pluralNumbers = [
|
|
162
|
-
0,
|
|
163
|
-
4,
|
|
164
|
-
2,
|
|
165
|
-
1,
|
|
166
|
-
11,
|
|
167
|
-
20,
|
|
168
|
-
3,
|
|
169
|
-
7,
|
|
170
|
-
100,
|
|
171
|
-
21,
|
|
172
|
-
0.1,
|
|
173
|
-
1.1
|
|
174
|
-
];
|
|
175
|
-
function $6c7bd7858deea686$var$getSymbols(locale, formatter, intlOptions, originalOptions) {
|
|
176
|
-
var _allParts_find, _posAllParts_find, _decimalParts_find, _allParts_find1;
|
|
177
|
-
let symbolFormatter = new Intl.NumberFormat(locale, {
|
|
178
|
-
...intlOptions,
|
|
179
|
-
// Resets so we get the full range of symbols
|
|
180
|
-
minimumSignificantDigits: 1,
|
|
181
|
-
maximumSignificantDigits: 21,
|
|
182
|
-
roundingIncrement: 1,
|
|
183
|
-
roundingPriority: "auto",
|
|
184
|
-
roundingMode: "halfExpand"
|
|
185
|
-
});
|
|
186
|
-
let allParts = symbolFormatter.formatToParts(-10000.111);
|
|
187
|
-
let posAllParts = symbolFormatter.formatToParts(10000.111);
|
|
188
|
-
let pluralParts = $6c7bd7858deea686$var$pluralNumbers.map((n) => symbolFormatter.formatToParts(n));
|
|
189
|
-
var _allParts_find_value;
|
|
190
|
-
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 : "-";
|
|
191
|
-
let plusSign = (_posAllParts_find = posAllParts.find((p) => p.type === "plusSign")) === null || _posAllParts_find === void 0 ? void 0 : _posAllParts_find.value;
|
|
192
|
-
if (!plusSign && ((originalOptions === null || originalOptions === void 0 ? void 0 : originalOptions.signDisplay) === "exceptZero" || (originalOptions === null || originalOptions === void 0 ? void 0 : originalOptions.signDisplay) === "always")) plusSign = "+";
|
|
193
|
-
let decimalParts = new Intl.NumberFormat(locale, {
|
|
194
|
-
...intlOptions,
|
|
195
|
-
minimumFractionDigits: 2,
|
|
196
|
-
maximumFractionDigits: 2
|
|
197
|
-
}).formatToParts(1e-3);
|
|
198
|
-
let decimal = (_decimalParts_find = decimalParts.find((p) => p.type === "decimal")) === null || _decimalParts_find === void 0 ? void 0 : _decimalParts_find.value;
|
|
199
|
-
let group = (_allParts_find1 = allParts.find((p) => p.type === "group")) === null || _allParts_find1 === void 0 ? void 0 : _allParts_find1.value;
|
|
200
|
-
let allPartsLiterals = allParts.filter((p) => !$6c7bd7858deea686$var$nonLiteralParts.has(p.type)).map((p) => $6c7bd7858deea686$var$escapeRegex(p.value));
|
|
201
|
-
let pluralPartsLiterals = pluralParts.flatMap((p) => p.filter((p2) => !$6c7bd7858deea686$var$nonLiteralParts.has(p2.type)).map((p2) => $6c7bd7858deea686$var$escapeRegex(p2.value)));
|
|
202
|
-
let sortedLiterals = [
|
|
203
|
-
.../* @__PURE__ */ new Set([
|
|
204
|
-
...allPartsLiterals,
|
|
205
|
-
...pluralPartsLiterals
|
|
206
|
-
])
|
|
207
|
-
].sort((a, b) => b.length - a.length);
|
|
208
|
-
let literals = sortedLiterals.length === 0 ? new RegExp("[\\p{White_Space}]", "gu") : new RegExp(`${sortedLiterals.join("|")}|[\\p{White_Space}]`, "gu");
|
|
209
|
-
let numerals = [
|
|
210
|
-
...new Intl.NumberFormat(intlOptions.locale, {
|
|
211
|
-
useGrouping: false
|
|
212
|
-
}).format(9876543210)
|
|
213
|
-
].reverse();
|
|
214
|
-
let indexes = new Map(numerals.map((d, i) => [
|
|
215
|
-
d,
|
|
216
|
-
i
|
|
217
|
-
]));
|
|
218
|
-
let numeral = new RegExp(`[${numerals.join("")}]`, "g");
|
|
219
|
-
let index = (d) => String(indexes.get(d));
|
|
220
|
-
return {
|
|
221
|
-
minusSign,
|
|
222
|
-
plusSign,
|
|
223
|
-
decimal,
|
|
224
|
-
group,
|
|
225
|
-
literals,
|
|
226
|
-
numeral,
|
|
227
|
-
index
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
function $6c7bd7858deea686$var$replaceAll(str, find, replace) {
|
|
231
|
-
if (str.replaceAll) return str.replaceAll(find, replace);
|
|
232
|
-
return str.split(find).join(replace);
|
|
233
|
-
}
|
|
234
|
-
function $6c7bd7858deea686$var$escapeRegex(string) {
|
|
235
|
-
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
236
|
-
}
|
|
237
|
-
function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
|
|
238
|
-
let { onScroll, isDisabled } = props;
|
|
239
|
-
let onScrollHandler = useCallback((e) => {
|
|
240
|
-
if (e.ctrlKey) return;
|
|
241
|
-
e.preventDefault();
|
|
242
|
-
e.stopPropagation();
|
|
243
|
-
if (onScroll) onScroll({
|
|
244
|
-
deltaX: e.deltaX,
|
|
245
|
-
deltaY: e.deltaY
|
|
246
|
-
});
|
|
247
|
-
}, [
|
|
248
|
-
onScroll
|
|
249
|
-
]);
|
|
250
|
-
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "wheel", isDisabled ? void 0 : onScrollHandler);
|
|
251
|
-
}
|
|
252
|
-
function $d841c8010a73d545$var$supportsNativeBeforeInputEvent() {
|
|
253
|
-
return typeof window !== "undefined" && window.InputEvent && typeof InputEvent.prototype.getTargetRanges === "function";
|
|
254
|
-
}
|
|
255
|
-
function $d841c8010a73d545$export$4f384c9210e583c3(props, state, inputRef) {
|
|
256
|
-
let onBeforeInputFallback = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
257
|
-
let input = inputRef.current;
|
|
258
|
-
if (!input) return;
|
|
259
|
-
let nextValue = null;
|
|
260
|
-
switch (e.inputType) {
|
|
261
|
-
case "historyUndo":
|
|
262
|
-
case "historyRedo":
|
|
263
|
-
return;
|
|
264
|
-
case "insertLineBreak":
|
|
265
|
-
return;
|
|
266
|
-
case "deleteContent":
|
|
267
|
-
case "deleteByCut":
|
|
268
|
-
case "deleteByDrag":
|
|
269
|
-
nextValue = input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd);
|
|
270
|
-
break;
|
|
271
|
-
case "deleteContentForward":
|
|
272
|
-
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);
|
|
273
|
-
break;
|
|
274
|
-
case "deleteContentBackward":
|
|
275
|
-
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);
|
|
276
|
-
break;
|
|
277
|
-
case "deleteSoftLineBackward":
|
|
278
|
-
case "deleteHardLineBackward":
|
|
279
|
-
nextValue = input.value.slice(input.selectionStart);
|
|
280
|
-
break;
|
|
281
|
-
default:
|
|
282
|
-
if (e.data != null) nextValue = input.value.slice(0, input.selectionStart) + e.data + input.value.slice(input.selectionEnd);
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
if (nextValue == null || !state.validate(nextValue)) e.preventDefault();
|
|
286
|
-
});
|
|
287
|
-
useEffect(() => {
|
|
288
|
-
if (!$d841c8010a73d545$var$supportsNativeBeforeInputEvent() || !inputRef.current) return;
|
|
289
|
-
let input = inputRef.current;
|
|
290
|
-
input.addEventListener("beforeinput", onBeforeInputFallback, false);
|
|
291
|
-
return () => {
|
|
292
|
-
input.removeEventListener("beforeinput", onBeforeInputFallback, false);
|
|
293
|
-
};
|
|
294
|
-
}, [
|
|
295
|
-
inputRef
|
|
296
|
-
]);
|
|
297
|
-
let onBeforeInput = !$d841c8010a73d545$var$supportsNativeBeforeInputEvent() ? (e) => {
|
|
298
|
-
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);
|
|
299
|
-
if (!state.validate(nextValue)) e.preventDefault();
|
|
300
|
-
} : null;
|
|
301
|
-
let { labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps, ...validation } = $2d73ec29415bd339$export$712718f7aec83d5(props, inputRef);
|
|
302
|
-
let compositionStartState = useRef(null);
|
|
303
|
-
return {
|
|
304
|
-
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(textFieldProps, {
|
|
305
|
-
onBeforeInput,
|
|
306
|
-
onCompositionStart() {
|
|
307
|
-
let { value, selectionStart, selectionEnd } = inputRef.current;
|
|
308
|
-
compositionStartState.current = {
|
|
309
|
-
value,
|
|
310
|
-
selectionStart,
|
|
311
|
-
selectionEnd
|
|
312
|
-
};
|
|
313
|
-
},
|
|
314
|
-
onCompositionEnd() {
|
|
315
|
-
if (inputRef.current && !state.validate(inputRef.current.value)) {
|
|
316
|
-
let { value, selectionStart, selectionEnd } = compositionStartState.current;
|
|
317
|
-
inputRef.current.value = value;
|
|
318
|
-
inputRef.current.setSelectionRange(selectionStart, selectionEnd);
|
|
319
|
-
state.setInputValue(value);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}),
|
|
323
|
-
labelProps,
|
|
324
|
-
descriptionProps,
|
|
325
|
-
errorMessageProps,
|
|
326
|
-
...validation
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
|
|
330
|
-
let { minValue, maxValue, step, formatOptions, value, defaultValue = NaN, onChange, locale, isDisabled, isReadOnly } = props;
|
|
331
|
-
if (value === null) value = NaN;
|
|
332
|
-
if (value !== void 0 && !isNaN(value)) {
|
|
333
|
-
if (step !== void 0 && !isNaN(step)) value = $9446cca9a3875146$export$cb6e0bb50bc19463(value, minValue, maxValue, step);
|
|
334
|
-
else value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
|
|
335
|
-
}
|
|
336
|
-
if (!isNaN(defaultValue)) {
|
|
337
|
-
if (step !== void 0 && !isNaN(step)) defaultValue = $9446cca9a3875146$export$cb6e0bb50bc19463(defaultValue, minValue, maxValue, step);
|
|
338
|
-
else defaultValue = $9446cca9a3875146$export$7d15b64cf5a3a4c4(defaultValue, minValue, maxValue);
|
|
339
|
-
}
|
|
340
|
-
let [numberValue, setNumberValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, isNaN(defaultValue) ? NaN : defaultValue, onChange);
|
|
341
|
-
let [initialValue] = useState(numberValue);
|
|
342
|
-
let [inputValue, setInputValue] = useState(() => isNaN(numberValue) ? "" : new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, formatOptions).format(numberValue));
|
|
343
|
-
let numberParser = useMemo(() => new $6c7bd7858deea686$export$cd11ab140839f11d(locale, formatOptions), [
|
|
344
|
-
locale,
|
|
345
|
-
formatOptions
|
|
346
|
-
]);
|
|
347
|
-
let numberingSystem = useMemo(() => numberParser.getNumberingSystem(inputValue), [
|
|
348
|
-
numberParser,
|
|
349
|
-
inputValue
|
|
350
|
-
]);
|
|
351
|
-
let formatter = useMemo(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, {
|
|
352
|
-
...formatOptions,
|
|
353
|
-
numberingSystem
|
|
354
|
-
}), [
|
|
355
|
-
locale,
|
|
356
|
-
formatOptions,
|
|
357
|
-
numberingSystem
|
|
358
|
-
]);
|
|
359
|
-
let intlOptions = useMemo(() => formatter.resolvedOptions(), [
|
|
360
|
-
formatter
|
|
361
|
-
]);
|
|
362
|
-
let format = useCallback((value2) => isNaN(value2) || value2 === null ? "" : formatter.format(value2), [
|
|
363
|
-
formatter
|
|
364
|
-
]);
|
|
365
|
-
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
366
|
-
...props,
|
|
367
|
-
value: numberValue
|
|
368
|
-
});
|
|
369
|
-
let clampStep = step !== void 0 && !isNaN(step) ? step : 1;
|
|
370
|
-
if (intlOptions.style === "percent" && (step === void 0 || isNaN(step))) clampStep = 0.01;
|
|
371
|
-
let [prevValue, setPrevValue] = useState(numberValue);
|
|
372
|
-
let [prevLocale, setPrevLocale] = useState(locale);
|
|
373
|
-
let [prevFormatOptions, setPrevFormatOptions] = useState(formatOptions);
|
|
374
|
-
if (!Object.is(numberValue, prevValue) || locale !== prevLocale || formatOptions !== prevFormatOptions) {
|
|
375
|
-
setInputValue(format(numberValue));
|
|
376
|
-
setPrevValue(numberValue);
|
|
377
|
-
setPrevLocale(locale);
|
|
378
|
-
setPrevFormatOptions(formatOptions);
|
|
379
|
-
}
|
|
380
|
-
let parsedValue = useMemo(() => numberParser.parse(inputValue), [
|
|
381
|
-
numberParser,
|
|
382
|
-
inputValue
|
|
383
|
-
]);
|
|
384
|
-
let commit = (overrideValue) => {
|
|
385
|
-
let newInputValue = overrideValue === void 0 ? inputValue : overrideValue;
|
|
386
|
-
let newParsedValue = parsedValue;
|
|
387
|
-
if (overrideValue !== void 0) newParsedValue = numberParser.parse(newInputValue);
|
|
388
|
-
if (!newInputValue.length) {
|
|
389
|
-
setNumberValue(NaN);
|
|
390
|
-
setInputValue(value === void 0 ? "" : format(numberValue));
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
if (isNaN(newParsedValue)) {
|
|
394
|
-
setInputValue(format(numberValue));
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
let clampedValue;
|
|
398
|
-
if (step === void 0 || isNaN(step)) clampedValue = $9446cca9a3875146$export$7d15b64cf5a3a4c4(newParsedValue, minValue, maxValue);
|
|
399
|
-
else clampedValue = $9446cca9a3875146$export$cb6e0bb50bc19463(newParsedValue, minValue, maxValue, step);
|
|
400
|
-
clampedValue = numberParser.parse(format(clampedValue));
|
|
401
|
-
setNumberValue(clampedValue);
|
|
402
|
-
setInputValue(format(value === void 0 ? clampedValue : numberValue));
|
|
403
|
-
validation.commitValidation();
|
|
404
|
-
};
|
|
405
|
-
let safeNextStep = (operation, minMax = 0) => {
|
|
406
|
-
let prev = parsedValue;
|
|
407
|
-
if (isNaN(prev)) {
|
|
408
|
-
let newValue = isNaN(minMax) ? 0 : minMax;
|
|
409
|
-
return $9446cca9a3875146$export$cb6e0bb50bc19463(newValue, minValue, maxValue, clampStep);
|
|
410
|
-
} else {
|
|
411
|
-
let newValue = $9446cca9a3875146$export$cb6e0bb50bc19463(prev, minValue, maxValue, clampStep);
|
|
412
|
-
if (operation === "+" && newValue > prev || operation === "-" && newValue < prev) return newValue;
|
|
413
|
-
return $9446cca9a3875146$export$cb6e0bb50bc19463($de67e98908f0c6ee$var$handleDecimalOperation(operation, prev, clampStep), minValue, maxValue, clampStep);
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
let increment = () => {
|
|
417
|
-
let newValue = safeNextStep("+", minValue);
|
|
418
|
-
if (newValue === numberValue) setInputValue(format(newValue));
|
|
419
|
-
setNumberValue(newValue);
|
|
420
|
-
validation.commitValidation();
|
|
421
|
-
};
|
|
422
|
-
let decrement = () => {
|
|
423
|
-
let newValue = safeNextStep("-", maxValue);
|
|
424
|
-
if (newValue === numberValue) setInputValue(format(newValue));
|
|
425
|
-
setNumberValue(newValue);
|
|
426
|
-
validation.commitValidation();
|
|
427
|
-
};
|
|
428
|
-
let incrementToMax = () => {
|
|
429
|
-
if (maxValue != null) {
|
|
430
|
-
setNumberValue($9446cca9a3875146$export$cb6e0bb50bc19463(maxValue, minValue, maxValue, clampStep));
|
|
431
|
-
validation.commitValidation();
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
let decrementToMin = () => {
|
|
435
|
-
if (minValue != null) {
|
|
436
|
-
setNumberValue(minValue);
|
|
437
|
-
validation.commitValidation();
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
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), [
|
|
441
|
-
isDisabled,
|
|
442
|
-
isReadOnly,
|
|
443
|
-
minValue,
|
|
444
|
-
maxValue,
|
|
445
|
-
clampStep,
|
|
446
|
-
parsedValue
|
|
447
|
-
]);
|
|
448
|
-
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), [
|
|
449
|
-
isDisabled,
|
|
450
|
-
isReadOnly,
|
|
451
|
-
minValue,
|
|
452
|
-
maxValue,
|
|
453
|
-
clampStep,
|
|
454
|
-
parsedValue
|
|
455
|
-
]);
|
|
456
|
-
let validate = (value2) => numberParser.isValidPartialNumber(value2, minValue, maxValue);
|
|
457
|
-
return {
|
|
458
|
-
...validation,
|
|
459
|
-
validate,
|
|
460
|
-
increment,
|
|
461
|
-
incrementToMax,
|
|
462
|
-
decrement,
|
|
463
|
-
decrementToMin,
|
|
464
|
-
canIncrement,
|
|
465
|
-
canDecrement,
|
|
466
|
-
minValue,
|
|
467
|
-
maxValue,
|
|
468
|
-
numberValue: parsedValue,
|
|
469
|
-
defaultNumberValue: isNaN(defaultValue) ? initialValue : defaultValue,
|
|
470
|
-
setNumberValue,
|
|
471
|
-
setInputValue,
|
|
472
|
-
inputValue,
|
|
473
|
-
commit
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
function $de67e98908f0c6ee$var$handleDecimalOperation(operator, value1, value2) {
|
|
477
|
-
let result = operator === "+" ? value1 + value2 : value1 - value2;
|
|
478
|
-
if (value1 % 1 !== 0 || value2 % 1 !== 0) {
|
|
479
|
-
const value1Decimal = value1.toString().split(".");
|
|
480
|
-
const value2Decimal = value2.toString().split(".");
|
|
481
|
-
const value1DecimalLength = value1Decimal[1] && value1Decimal[1].length || 0;
|
|
482
|
-
const value2DecimalLength = value2Decimal[1] && value2Decimal[1].length || 0;
|
|
483
|
-
const multiplier = Math.pow(10, Math.max(value1DecimalLength, value2DecimalLength));
|
|
484
|
-
value1 = Math.round(value1 * multiplier);
|
|
485
|
-
value2 = Math.round(value2 * multiplier);
|
|
486
|
-
result = operator === "+" ? value1 + value2 : value1 - value2;
|
|
487
|
-
result /= multiplier;
|
|
488
|
-
}
|
|
489
|
-
return result;
|
|
490
|
-
}
|
|
491
|
-
var $ed6aae4e5f766f1e$exports = {};
|
|
492
|
-
$ed6aae4e5f766f1e$exports = {
|
|
493
|
-
"Empty": `فارغ`
|
|
494
|
-
};
|
|
495
|
-
var $38854e2b175151fa$exports = {};
|
|
496
|
-
$38854e2b175151fa$exports = {
|
|
497
|
-
"Empty": `Изпразни`
|
|
498
|
-
};
|
|
499
|
-
var $15b25ab20f3945b2$exports = {};
|
|
500
|
-
$15b25ab20f3945b2$exports = {
|
|
501
|
-
"Empty": `Prázdné`
|
|
502
|
-
};
|
|
503
|
-
var $692a4298b6b649a2$exports = {};
|
|
504
|
-
$692a4298b6b649a2$exports = {
|
|
505
|
-
"Empty": `Tom`
|
|
506
|
-
};
|
|
507
|
-
var $1c6e1539193f1243$exports = {};
|
|
508
|
-
$1c6e1539193f1243$exports = {
|
|
509
|
-
"Empty": `Leer`
|
|
510
|
-
};
|
|
511
|
-
var $1e8678632c464b6d$exports = {};
|
|
512
|
-
$1e8678632c464b6d$exports = {
|
|
513
|
-
"Empty": `Άδειο`
|
|
514
|
-
};
|
|
515
|
-
var $4adc85d9bf5b9eed$exports = {};
|
|
516
|
-
$4adc85d9bf5b9eed$exports = {
|
|
517
|
-
"Empty": `Empty`
|
|
518
|
-
};
|
|
519
|
-
var $41c4b2bb61dafbca$exports = {};
|
|
520
|
-
$41c4b2bb61dafbca$exports = {
|
|
521
|
-
"Empty": `Vacío`
|
|
522
|
-
};
|
|
523
|
-
var $405f8b24f5dd2a60$exports = {};
|
|
524
|
-
$405f8b24f5dd2a60$exports = {
|
|
525
|
-
"Empty": `Tühjenda`
|
|
526
|
-
};
|
|
527
|
-
var $7efe3ed02b9b9dd4$exports = {};
|
|
528
|
-
$7efe3ed02b9b9dd4$exports = {
|
|
529
|
-
"Empty": `Tyhjä`
|
|
530
|
-
};
|
|
531
|
-
var $99fc4c101d92daf3$exports = {};
|
|
532
|
-
$99fc4c101d92daf3$exports = {
|
|
533
|
-
"Empty": `Vide`
|
|
534
|
-
};
|
|
535
|
-
var $f9e155e6e8cacaa2$exports = {};
|
|
536
|
-
$f9e155e6e8cacaa2$exports = {
|
|
537
|
-
"Empty": `ריק`
|
|
538
|
-
};
|
|
539
|
-
var $c31b5e8e9a249fd5$exports = {};
|
|
540
|
-
$c31b5e8e9a249fd5$exports = {
|
|
541
|
-
"Empty": `Prazno`
|
|
542
|
-
};
|
|
543
|
-
var $9c5435bc17499bd9$exports = {};
|
|
544
|
-
$9c5435bc17499bd9$exports = {
|
|
545
|
-
"Empty": `Üres`
|
|
546
|
-
};
|
|
547
|
-
var $6d1fc8e84d8165e1$exports = {};
|
|
548
|
-
$6d1fc8e84d8165e1$exports = {
|
|
549
|
-
"Empty": `Vuoto`
|
|
550
|
-
};
|
|
551
|
-
var $46ea6b3641b83e71$exports = {};
|
|
552
|
-
$46ea6b3641b83e71$exports = {
|
|
553
|
-
"Empty": `空`
|
|
554
|
-
};
|
|
555
|
-
var $0e3cc9a288289dc5$exports = {};
|
|
556
|
-
$0e3cc9a288289dc5$exports = {
|
|
557
|
-
"Empty": `비어 있음`
|
|
558
|
-
};
|
|
559
|
-
var $4ff2bb25c0089ffb$exports = {};
|
|
560
|
-
$4ff2bb25c0089ffb$exports = {
|
|
561
|
-
"Empty": `Tuščias`
|
|
562
|
-
};
|
|
563
|
-
var $6cf33cd4c010a2fb$exports = {};
|
|
564
|
-
$6cf33cd4c010a2fb$exports = {
|
|
565
|
-
"Empty": `Tukšs`
|
|
566
|
-
};
|
|
567
|
-
var $5a9f8486f8b8837e$exports = {};
|
|
568
|
-
$5a9f8486f8b8837e$exports = {
|
|
569
|
-
"Empty": `Tom`
|
|
570
|
-
};
|
|
571
|
-
var $583f94d807f6ecea$exports = {};
|
|
572
|
-
$583f94d807f6ecea$exports = {
|
|
573
|
-
"Empty": `Leeg`
|
|
574
|
-
};
|
|
575
|
-
var $cc4dcfeea2b4050d$exports = {};
|
|
576
|
-
$cc4dcfeea2b4050d$exports = {
|
|
577
|
-
"Empty": `Pusty`
|
|
578
|
-
};
|
|
579
|
-
var $68ac2954d56e12b4$exports = {};
|
|
580
|
-
$68ac2954d56e12b4$exports = {
|
|
581
|
-
"Empty": `Vazio`
|
|
582
|
-
};
|
|
583
|
-
var $fdb0616f309780b0$exports = {};
|
|
584
|
-
$fdb0616f309780b0$exports = {
|
|
585
|
-
"Empty": `Vazio`
|
|
586
|
-
};
|
|
587
|
-
var $fe1eccf4ee1d6f52$exports = {};
|
|
588
|
-
$fe1eccf4ee1d6f52$exports = {
|
|
589
|
-
"Empty": `Gol`
|
|
590
|
-
};
|
|
591
|
-
var $a38b6c4e18725976$exports = {};
|
|
592
|
-
$a38b6c4e18725976$exports = {
|
|
593
|
-
"Empty": `Не заполнено`
|
|
594
|
-
};
|
|
595
|
-
var $6c14ae2b766b652c$exports = {};
|
|
596
|
-
$6c14ae2b766b652c$exports = {
|
|
597
|
-
"Empty": `Prázdne`
|
|
598
|
-
};
|
|
599
|
-
var $8f1c9692e16dc5eb$exports = {};
|
|
600
|
-
$8f1c9692e16dc5eb$exports = {
|
|
601
|
-
"Empty": `Prazen`
|
|
602
|
-
};
|
|
603
|
-
var $d2aa7abea627cafa$exports = {};
|
|
604
|
-
$d2aa7abea627cafa$exports = {
|
|
605
|
-
"Empty": `Prazno`
|
|
606
|
-
};
|
|
607
|
-
var $676b82e4b56408e6$exports = {};
|
|
608
|
-
$676b82e4b56408e6$exports = {
|
|
609
|
-
"Empty": `Tomt`
|
|
610
|
-
};
|
|
611
|
-
var $14c9042552d7ce08$exports = {};
|
|
612
|
-
$14c9042552d7ce08$exports = {
|
|
613
|
-
"Empty": `Boş`
|
|
614
|
-
};
|
|
615
|
-
var $393254ebcb66c9f5$exports = {};
|
|
616
|
-
$393254ebcb66c9f5$exports = {
|
|
617
|
-
"Empty": `Пусто`
|
|
618
|
-
};
|
|
619
|
-
var $d49d621f310cf6ce$exports = {};
|
|
620
|
-
$d49d621f310cf6ce$exports = {
|
|
621
|
-
"Empty": `空`
|
|
622
|
-
};
|
|
623
|
-
var $94b60c866ca5dfe6$exports = {};
|
|
624
|
-
$94b60c866ca5dfe6$exports = {
|
|
625
|
-
"Empty": `空白`
|
|
626
|
-
};
|
|
627
|
-
var $a99895ee3dc79e61$exports = {};
|
|
628
|
-
$a99895ee3dc79e61$exports = {
|
|
629
|
-
"ar-AE": $ed6aae4e5f766f1e$exports,
|
|
630
|
-
"bg-BG": $38854e2b175151fa$exports,
|
|
631
|
-
"cs-CZ": $15b25ab20f3945b2$exports,
|
|
632
|
-
"da-DK": $692a4298b6b649a2$exports,
|
|
633
|
-
"de-DE": $1c6e1539193f1243$exports,
|
|
634
|
-
"el-GR": $1e8678632c464b6d$exports,
|
|
635
|
-
"en-US": $4adc85d9bf5b9eed$exports,
|
|
636
|
-
"es-ES": $41c4b2bb61dafbca$exports,
|
|
637
|
-
"et-EE": $405f8b24f5dd2a60$exports,
|
|
638
|
-
"fi-FI": $7efe3ed02b9b9dd4$exports,
|
|
639
|
-
"fr-FR": $99fc4c101d92daf3$exports,
|
|
640
|
-
"he-IL": $f9e155e6e8cacaa2$exports,
|
|
641
|
-
"hr-HR": $c31b5e8e9a249fd5$exports,
|
|
642
|
-
"hu-HU": $9c5435bc17499bd9$exports,
|
|
643
|
-
"it-IT": $6d1fc8e84d8165e1$exports,
|
|
644
|
-
"ja-JP": $46ea6b3641b83e71$exports,
|
|
645
|
-
"ko-KR": $0e3cc9a288289dc5$exports,
|
|
646
|
-
"lt-LT": $4ff2bb25c0089ffb$exports,
|
|
647
|
-
"lv-LV": $6cf33cd4c010a2fb$exports,
|
|
648
|
-
"nb-NO": $5a9f8486f8b8837e$exports,
|
|
649
|
-
"nl-NL": $583f94d807f6ecea$exports,
|
|
650
|
-
"pl-PL": $cc4dcfeea2b4050d$exports,
|
|
651
|
-
"pt-BR": $68ac2954d56e12b4$exports,
|
|
652
|
-
"pt-PT": $fdb0616f309780b0$exports,
|
|
653
|
-
"ro-RO": $fe1eccf4ee1d6f52$exports,
|
|
654
|
-
"ru-RU": $a38b6c4e18725976$exports,
|
|
655
|
-
"sk-SK": $6c14ae2b766b652c$exports,
|
|
656
|
-
"sl-SI": $8f1c9692e16dc5eb$exports,
|
|
657
|
-
"sr-SP": $d2aa7abea627cafa$exports,
|
|
658
|
-
"sv-SE": $676b82e4b56408e6$exports,
|
|
659
|
-
"tr-TR": $14c9042552d7ce08$exports,
|
|
660
|
-
"uk-UA": $393254ebcb66c9f5$exports,
|
|
661
|
-
"zh-CN": $d49d621f310cf6ce$exports,
|
|
662
|
-
"zh-TW": $94b60c866ca5dfe6$exports
|
|
663
|
-
};
|
|
664
|
-
function $parcel$interopDefault$1(a) {
|
|
665
|
-
return a && a.__esModule ? a.default : a;
|
|
666
|
-
}
|
|
667
|
-
const $d2e8511e6f209edf$var$noop = () => {
|
|
668
|
-
};
|
|
669
|
-
function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
670
|
-
const _async = useRef(void 0);
|
|
671
|
-
let { value, textValue, minValue, maxValue, isDisabled, isReadOnly, isRequired, onIncrement, onIncrementPage, onDecrement, onDecrementPage, onDecrementToMin, onIncrementToMax } = props;
|
|
672
|
-
const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1($a99895ee3dc79e61$exports), "@react-aria/spinbutton");
|
|
673
|
-
let isSpinning = useRef(false);
|
|
674
|
-
const clearAsync = useCallback(() => {
|
|
675
|
-
clearTimeout(_async.current);
|
|
676
|
-
isSpinning.current = false;
|
|
677
|
-
}, []);
|
|
678
|
-
const clearAsyncEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
679
|
-
clearAsync();
|
|
680
|
-
});
|
|
681
|
-
useEffect(() => {
|
|
682
|
-
return () => clearAsyncEvent();
|
|
683
|
-
}, []);
|
|
684
|
-
let onKeyDown = (e) => {
|
|
685
|
-
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || isReadOnly || e.nativeEvent.isComposing) return;
|
|
686
|
-
switch (e.key) {
|
|
687
|
-
case "PageUp":
|
|
688
|
-
if (onIncrementPage) {
|
|
689
|
-
e.preventDefault();
|
|
690
|
-
onIncrementPage === null || onIncrementPage === void 0 ? void 0 : onIncrementPage();
|
|
691
|
-
break;
|
|
692
|
-
}
|
|
693
|
-
// fallthrough!
|
|
694
|
-
case "ArrowUp":
|
|
695
|
-
case "Up":
|
|
696
|
-
if (onIncrement) {
|
|
697
|
-
e.preventDefault();
|
|
698
|
-
onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
|
|
699
|
-
}
|
|
700
|
-
break;
|
|
701
|
-
case "PageDown":
|
|
702
|
-
if (onDecrementPage) {
|
|
703
|
-
e.preventDefault();
|
|
704
|
-
onDecrementPage === null || onDecrementPage === void 0 ? void 0 : onDecrementPage();
|
|
705
|
-
break;
|
|
706
|
-
}
|
|
707
|
-
// fallthrough
|
|
708
|
-
case "ArrowDown":
|
|
709
|
-
case "Down":
|
|
710
|
-
if (onDecrement) {
|
|
711
|
-
e.preventDefault();
|
|
712
|
-
onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
|
|
713
|
-
}
|
|
714
|
-
break;
|
|
715
|
-
case "Home":
|
|
716
|
-
if (onDecrementToMin) {
|
|
717
|
-
e.preventDefault();
|
|
718
|
-
onDecrementToMin === null || onDecrementToMin === void 0 ? void 0 : onDecrementToMin();
|
|
719
|
-
}
|
|
720
|
-
break;
|
|
721
|
-
case "End":
|
|
722
|
-
if (onIncrementToMax) {
|
|
723
|
-
e.preventDefault();
|
|
724
|
-
onIncrementToMax === null || onIncrementToMax === void 0 ? void 0 : onIncrementToMax();
|
|
725
|
-
}
|
|
726
|
-
break;
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
|
-
let isFocused = useRef(false);
|
|
730
|
-
let onFocus = () => {
|
|
731
|
-
isFocused.current = true;
|
|
732
|
-
};
|
|
733
|
-
let onBlur = () => {
|
|
734
|
-
isFocused.current = false;
|
|
735
|
-
};
|
|
736
|
-
let ariaTextValue = textValue === "" ? stringFormatter.format("Empty") : (textValue || `${value}`).replace("-", "−");
|
|
737
|
-
useEffect(() => {
|
|
738
|
-
if (isFocused.current) {
|
|
739
|
-
$319e236875307eab$export$d10ae4f68404609a("assertive");
|
|
740
|
-
$319e236875307eab$export$a9b970dcc4ae71a9(ariaTextValue, "assertive");
|
|
741
|
-
}
|
|
742
|
-
}, [
|
|
743
|
-
ariaTextValue
|
|
744
|
-
]);
|
|
745
|
-
let onPointerCancel = useCallback(() => {
|
|
746
|
-
clearAsync();
|
|
747
|
-
}, [
|
|
748
|
-
clearAsync
|
|
749
|
-
]);
|
|
750
|
-
const onIncrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onIncrement !== null && onIncrement !== void 0 ? onIncrement : $d2e8511e6f209edf$var$noop);
|
|
751
|
-
const onDecrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onDecrement !== null && onDecrement !== void 0 ? onDecrement : $d2e8511e6f209edf$var$noop);
|
|
752
|
-
const stepUpEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
753
|
-
if (maxValue === void 0 || isNaN(maxValue) || value === void 0 || isNaN(value) || value < maxValue) {
|
|
754
|
-
onIncrementEvent();
|
|
755
|
-
onIncrementPressStartEvent(60);
|
|
756
|
-
}
|
|
757
|
-
});
|
|
758
|
-
const onIncrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
759
|
-
clearAsyncEvent();
|
|
760
|
-
isSpinning.current = true;
|
|
761
|
-
_async.current = window.setTimeout(stepUpEvent, initialStepDelay);
|
|
762
|
-
});
|
|
763
|
-
const stepDownEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
764
|
-
if (minValue === void 0 || isNaN(minValue) || value === void 0 || isNaN(value) || value > minValue) {
|
|
765
|
-
onDecrementEvent();
|
|
766
|
-
onDecrementPressStartEvent(60);
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
const onDecrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
770
|
-
clearAsyncEvent();
|
|
771
|
-
isSpinning.current = true;
|
|
772
|
-
_async.current = window.setTimeout(stepDownEvent, initialStepDelay);
|
|
773
|
-
});
|
|
774
|
-
let cancelContextMenu = (e) => {
|
|
775
|
-
e.preventDefault();
|
|
776
|
-
};
|
|
777
|
-
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
778
|
-
let isUp = useRef(false);
|
|
779
|
-
let [isIncrementPressed, setIsIncrementPressed] = useState(null);
|
|
780
|
-
useEffect(() => {
|
|
781
|
-
if (isIncrementPressed === "touch") onIncrementPressStartEvent(600);
|
|
782
|
-
else if (isIncrementPressed) onIncrementPressStartEvent(400);
|
|
783
|
-
}, [
|
|
784
|
-
isIncrementPressed
|
|
785
|
-
]);
|
|
786
|
-
let [isDecrementPressed, setIsDecrementPressed] = useState(null);
|
|
787
|
-
useEffect(() => {
|
|
788
|
-
if (isDecrementPressed === "touch") onDecrementPressStartEvent(600);
|
|
789
|
-
else if (isDecrementPressed) onDecrementPressStartEvent(400);
|
|
790
|
-
}, [
|
|
791
|
-
isDecrementPressed
|
|
792
|
-
]);
|
|
793
|
-
return {
|
|
794
|
-
spinButtonProps: {
|
|
795
|
-
role: "spinbutton",
|
|
796
|
-
"aria-valuenow": value !== void 0 && !isNaN(value) ? value : void 0,
|
|
797
|
-
"aria-valuetext": ariaTextValue,
|
|
798
|
-
"aria-valuemin": minValue,
|
|
799
|
-
"aria-valuemax": maxValue,
|
|
800
|
-
"aria-disabled": isDisabled || void 0,
|
|
801
|
-
"aria-readonly": isReadOnly || void 0,
|
|
802
|
-
"aria-required": isRequired || void 0,
|
|
803
|
-
onKeyDown,
|
|
804
|
-
onFocus,
|
|
805
|
-
onBlur
|
|
806
|
-
},
|
|
807
|
-
incrementButtonProps: {
|
|
808
|
-
onPressStart: (e) => {
|
|
809
|
-
clearAsync();
|
|
810
|
-
if (e.pointerType !== "touch") {
|
|
811
|
-
onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
|
|
812
|
-
setIsIncrementPressed("mouse");
|
|
813
|
-
} else {
|
|
814
|
-
addGlobalListener(window, "pointercancel", onPointerCancel, {
|
|
815
|
-
capture: true
|
|
816
|
-
});
|
|
817
|
-
isUp.current = false;
|
|
818
|
-
setIsIncrementPressed("touch");
|
|
819
|
-
}
|
|
820
|
-
addGlobalListener(window, "contextmenu", cancelContextMenu);
|
|
821
|
-
},
|
|
822
|
-
onPressUp: (e) => {
|
|
823
|
-
clearAsync();
|
|
824
|
-
if (e.pointerType === "touch") isUp.current = true;
|
|
825
|
-
removeAllGlobalListeners();
|
|
826
|
-
setIsIncrementPressed(null);
|
|
827
|
-
},
|
|
828
|
-
onPressEnd: (e) => {
|
|
829
|
-
clearAsync();
|
|
830
|
-
if (e.pointerType === "touch") {
|
|
831
|
-
if (!isSpinning.current && isUp.current) onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
|
|
832
|
-
}
|
|
833
|
-
isUp.current = false;
|
|
834
|
-
setIsIncrementPressed(null);
|
|
835
|
-
},
|
|
836
|
-
onFocus,
|
|
837
|
-
onBlur
|
|
838
|
-
},
|
|
839
|
-
decrementButtonProps: {
|
|
840
|
-
onPressStart: (e) => {
|
|
841
|
-
clearAsync();
|
|
842
|
-
if (e.pointerType !== "touch") {
|
|
843
|
-
onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
|
|
844
|
-
setIsDecrementPressed("mouse");
|
|
845
|
-
} else {
|
|
846
|
-
addGlobalListener(window, "pointercancel", onPointerCancel, {
|
|
847
|
-
capture: true
|
|
848
|
-
});
|
|
849
|
-
isUp.current = false;
|
|
850
|
-
setIsDecrementPressed("touch");
|
|
851
|
-
}
|
|
852
|
-
},
|
|
853
|
-
onPressUp: (e) => {
|
|
854
|
-
clearAsync();
|
|
855
|
-
if (e.pointerType === "touch") isUp.current = true;
|
|
856
|
-
removeAllGlobalListeners();
|
|
857
|
-
setIsDecrementPressed(null);
|
|
858
|
-
},
|
|
859
|
-
onPressEnd: (e) => {
|
|
860
|
-
clearAsync();
|
|
861
|
-
if (e.pointerType === "touch") {
|
|
862
|
-
if (!isSpinning.current && isUp.current) onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
|
|
863
|
-
}
|
|
864
|
-
isUp.current = false;
|
|
865
|
-
setIsDecrementPressed(null);
|
|
866
|
-
},
|
|
867
|
-
onFocus,
|
|
868
|
-
onBlur
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
}
|
|
872
|
-
var $fb78e0f6ab6349ed$exports = {};
|
|
873
|
-
$fb78e0f6ab6349ed$exports = {
|
|
874
|
-
"decrease": (args) => `خفض ${args.fieldLabel}`,
|
|
875
|
-
"increase": (args) => `زيادة ${args.fieldLabel}`,
|
|
876
|
-
"numberField": `حقل رقمي`
|
|
877
|
-
};
|
|
878
|
-
var $2776acdd9959a647$exports = {};
|
|
879
|
-
$2776acdd9959a647$exports = {
|
|
880
|
-
"decrease": (args) => `Намаляване ${args.fieldLabel}`,
|
|
881
|
-
"increase": (args) => `Усилване ${args.fieldLabel}`,
|
|
882
|
-
"numberField": `Номер на полето`
|
|
883
|
-
};
|
|
884
|
-
var $741954410a365ad3$exports = {};
|
|
885
|
-
$741954410a365ad3$exports = {
|
|
886
|
-
"decrease": (args) => `Snížit ${args.fieldLabel}`,
|
|
887
|
-
"increase": (args) => `Zvýšit ${args.fieldLabel}`,
|
|
888
|
-
"numberField": `Číselné pole`
|
|
889
|
-
};
|
|
890
|
-
var $8321ed0f8ab642f0$exports = {};
|
|
891
|
-
$8321ed0f8ab642f0$exports = {
|
|
892
|
-
"decrease": (args) => `Reducer ${args.fieldLabel}`,
|
|
893
|
-
"increase": (args) => `Øg ${args.fieldLabel}`,
|
|
894
|
-
"numberField": `Talfelt`
|
|
895
|
-
};
|
|
896
|
-
var $92978e0c4ecafa32$exports = {};
|
|
897
|
-
$92978e0c4ecafa32$exports = {
|
|
898
|
-
"decrease": (args) => `${args.fieldLabel} verringern`,
|
|
899
|
-
"increase": (args) => `${args.fieldLabel} erhöhen`,
|
|
900
|
-
"numberField": `Nummernfeld`
|
|
901
|
-
};
|
|
902
|
-
var $ac5ff71962864a84$exports = {};
|
|
903
|
-
$ac5ff71962864a84$exports = {
|
|
904
|
-
"decrease": (args) => `Μείωση ${args.fieldLabel}`,
|
|
905
|
-
"increase": (args) => `Αύξηση ${args.fieldLabel}`,
|
|
906
|
-
"numberField": `Πεδίο αριθμού`
|
|
907
|
-
};
|
|
908
|
-
var $efe4685e2440d8be$exports = {};
|
|
909
|
-
$efe4685e2440d8be$exports = {
|
|
910
|
-
"decrease": (args) => `Decrease ${args.fieldLabel}`,
|
|
911
|
-
"increase": (args) => `Increase ${args.fieldLabel}`,
|
|
912
|
-
"numberField": `Number field`
|
|
913
|
-
};
|
|
914
|
-
var $e50a9a48739b90e1$exports = {};
|
|
915
|
-
$e50a9a48739b90e1$exports = {
|
|
916
|
-
"decrease": (args) => `Reducir ${args.fieldLabel}`,
|
|
917
|
-
"increase": (args) => `Aumentar ${args.fieldLabel}`,
|
|
918
|
-
"numberField": `Campo de número`
|
|
919
|
-
};
|
|
920
|
-
var $6e0d5294ecbb8ab6$exports = {};
|
|
921
|
-
$6e0d5294ecbb8ab6$exports = {
|
|
922
|
-
"decrease": (args) => `Vähenda ${args.fieldLabel}`,
|
|
923
|
-
"increase": (args) => `Suurenda ${args.fieldLabel}`,
|
|
924
|
-
"numberField": `Numbri väli`
|
|
925
|
-
};
|
|
926
|
-
var $e7129d65f607f77f$exports = {};
|
|
927
|
-
$e7129d65f607f77f$exports = {
|
|
928
|
-
"decrease": (args) => `Vähennä ${args.fieldLabel}`,
|
|
929
|
-
"increase": (args) => `Lisää ${args.fieldLabel}`,
|
|
930
|
-
"numberField": `Numerokenttä`
|
|
931
|
-
};
|
|
932
|
-
var $d72adf5b20573e34$exports = {};
|
|
933
|
-
$d72adf5b20573e34$exports = {
|
|
934
|
-
"decrease": (args) => `Diminuer ${args.fieldLabel}`,
|
|
935
|
-
"increase": (args) => `Augmenter ${args.fieldLabel}`,
|
|
936
|
-
"numberField": `Champ de nombre`
|
|
937
|
-
};
|
|
938
|
-
var $a25c707e88b844a7$exports = {};
|
|
939
|
-
$a25c707e88b844a7$exports = {
|
|
940
|
-
"decrease": (args) => `הקטן ${args.fieldLabel}`,
|
|
941
|
-
"increase": (args) => `הגדל ${args.fieldLabel}`,
|
|
942
|
-
"numberField": `שדה מספר`
|
|
943
|
-
};
|
|
944
|
-
var $69b41140b9a4ca54$exports = {};
|
|
945
|
-
$69b41140b9a4ca54$exports = {
|
|
946
|
-
"decrease": (args) => `Smanji ${args.fieldLabel}`,
|
|
947
|
-
"increase": (args) => `Povećaj ${args.fieldLabel}`,
|
|
948
|
-
"numberField": `Polje broja`
|
|
949
|
-
};
|
|
950
|
-
var $81dab28f37f59d1a$exports = {};
|
|
951
|
-
$81dab28f37f59d1a$exports = {
|
|
952
|
-
"decrease": (args) => `${args.fieldLabel} csökkentése`,
|
|
953
|
-
"increase": (args) => `${args.fieldLabel} növelése`,
|
|
954
|
-
"numberField": `Számmező`
|
|
955
|
-
};
|
|
956
|
-
var $866555b31f2d7711$exports = {};
|
|
957
|
-
$866555b31f2d7711$exports = {
|
|
958
|
-
"decrease": (args) => `Riduci ${args.fieldLabel}`,
|
|
959
|
-
"increase": (args) => `Aumenta ${args.fieldLabel}`,
|
|
960
|
-
"numberField": `Campo numero`
|
|
961
|
-
};
|
|
962
|
-
var $dafcd55d52b9d371$exports = {};
|
|
963
|
-
$dafcd55d52b9d371$exports = {
|
|
964
|
-
"decrease": (args) => `${args.fieldLabel}を縮小`,
|
|
965
|
-
"increase": (args) => `${args.fieldLabel}を拡大`,
|
|
966
|
-
"numberField": `数値フィールド`
|
|
967
|
-
};
|
|
968
|
-
var $f090c1f8c5da0145$exports = {};
|
|
969
|
-
$f090c1f8c5da0145$exports = {
|
|
970
|
-
"decrease": (args) => `${args.fieldLabel} 감소`,
|
|
971
|
-
"increase": (args) => `${args.fieldLabel} 증가`,
|
|
972
|
-
"numberField": `번호 필드`
|
|
973
|
-
};
|
|
974
|
-
var $6f10f3a13360a75c$exports = {};
|
|
975
|
-
$6f10f3a13360a75c$exports = {
|
|
976
|
-
"decrease": (args) => `Sumažinti ${args.fieldLabel}`,
|
|
977
|
-
"increase": (args) => `Padidinti ${args.fieldLabel}`,
|
|
978
|
-
"numberField": `Numerio laukas`
|
|
979
|
-
};
|
|
980
|
-
var $47432cefd4b7bd1b$exports = {};
|
|
981
|
-
$47432cefd4b7bd1b$exports = {
|
|
982
|
-
"decrease": (args) => `Samazināšana ${args.fieldLabel}`,
|
|
983
|
-
"increase": (args) => `Palielināšana ${args.fieldLabel}`,
|
|
984
|
-
"numberField": `Skaitļu lauks`
|
|
985
|
-
};
|
|
986
|
-
var $dc578a950a2bf23d$exports = {};
|
|
987
|
-
$dc578a950a2bf23d$exports = {
|
|
988
|
-
"decrease": (args) => `Reduser ${args.fieldLabel}`,
|
|
989
|
-
"increase": (args) => `Øk ${args.fieldLabel}`,
|
|
990
|
-
"numberField": `Tallfelt`
|
|
991
|
-
};
|
|
992
|
-
var $353f1bfca4dc395a$exports = {};
|
|
993
|
-
$353f1bfca4dc395a$exports = {
|
|
994
|
-
"decrease": (args) => `${args.fieldLabel} verlagen`,
|
|
995
|
-
"increase": (args) => `${args.fieldLabel} verhogen`,
|
|
996
|
-
"numberField": `Getalveld`
|
|
997
|
-
};
|
|
998
|
-
var $241bc0bbd870e982$exports = {};
|
|
999
|
-
$241bc0bbd870e982$exports = {
|
|
1000
|
-
"decrease": (args) => `Zmniejsz ${args.fieldLabel}`,
|
|
1001
|
-
"increase": (args) => `Zwiększ ${args.fieldLabel}`,
|
|
1002
|
-
"numberField": `Pole numeru`
|
|
1003
|
-
};
|
|
1004
|
-
var $da3005c7bd72b0a8$exports = {};
|
|
1005
|
-
$da3005c7bd72b0a8$exports = {
|
|
1006
|
-
"decrease": (args) => `Diminuir ${args.fieldLabel}`,
|
|
1007
|
-
"increase": (args) => `Aumentar ${args.fieldLabel}`,
|
|
1008
|
-
"numberField": `Campo de número`
|
|
1009
|
-
};
|
|
1010
|
-
var $cf48bfc540882310$exports = {};
|
|
1011
|
-
$cf48bfc540882310$exports = {
|
|
1012
|
-
"decrease": (args) => `Diminuir ${args.fieldLabel}`,
|
|
1013
|
-
"increase": (args) => `Aumentar ${args.fieldLabel}`,
|
|
1014
|
-
"numberField": `Campo numérico`
|
|
1015
|
-
};
|
|
1016
|
-
var $b63a28c481ab9ee3$exports = {};
|
|
1017
|
-
$b63a28c481ab9ee3$exports = {
|
|
1018
|
-
"decrease": (args) => `Scădere ${args.fieldLabel}`,
|
|
1019
|
-
"increase": (args) => `Creștere ${args.fieldLabel}`,
|
|
1020
|
-
"numberField": `Câmp numeric`
|
|
1021
|
-
};
|
|
1022
|
-
var $19f9df95c2464ab6$exports = {};
|
|
1023
|
-
$19f9df95c2464ab6$exports = {
|
|
1024
|
-
"decrease": (args) => `Уменьшение ${args.fieldLabel}`,
|
|
1025
|
-
"increase": (args) => `Увеличение ${args.fieldLabel}`,
|
|
1026
|
-
"numberField": `Числовое поле`
|
|
1027
|
-
};
|
|
1028
|
-
var $b272932a685e8482$exports = {};
|
|
1029
|
-
$b272932a685e8482$exports = {
|
|
1030
|
-
"decrease": (args) => `Znížiť ${args.fieldLabel}`,
|
|
1031
|
-
"increase": (args) => `Zvýšiť ${args.fieldLabel}`,
|
|
1032
|
-
"numberField": `Číselné pole`
|
|
1033
|
-
};
|
|
1034
|
-
var $cbaf8b5b61f9e544$exports = {};
|
|
1035
|
-
$cbaf8b5b61f9e544$exports = {
|
|
1036
|
-
"decrease": (args) => `Upadati ${args.fieldLabel}`,
|
|
1037
|
-
"increase": (args) => `Povečajte ${args.fieldLabel}`,
|
|
1038
|
-
"numberField": `Številčno polje`
|
|
1039
|
-
};
|
|
1040
|
-
var $e0a3af6ac1449b2f$exports = {};
|
|
1041
|
-
$e0a3af6ac1449b2f$exports = {
|
|
1042
|
-
"decrease": (args) => `Smanji ${args.fieldLabel}`,
|
|
1043
|
-
"increase": (args) => `Povećaj ${args.fieldLabel}`,
|
|
1044
|
-
"numberField": `Polje broja`
|
|
1045
|
-
};
|
|
1046
|
-
var $71e167d2458a6019$exports = {};
|
|
1047
|
-
$71e167d2458a6019$exports = {
|
|
1048
|
-
"decrease": (args) => `Minska ${args.fieldLabel}`,
|
|
1049
|
-
"increase": (args) => `Öka ${args.fieldLabel}`,
|
|
1050
|
-
"numberField": `Nummerfält`
|
|
1051
|
-
};
|
|
1052
|
-
var $3719245abc082946$exports = {};
|
|
1053
|
-
$3719245abc082946$exports = {
|
|
1054
|
-
"decrease": (args) => `${args.fieldLabel} azalt`,
|
|
1055
|
-
"increase": (args) => `${args.fieldLabel} arttır`,
|
|
1056
|
-
"numberField": `Sayı alanı`
|
|
1057
|
-
};
|
|
1058
|
-
var $2ccc589e2f51824d$exports = {};
|
|
1059
|
-
$2ccc589e2f51824d$exports = {
|
|
1060
|
-
"decrease": (args) => `Зменшити ${args.fieldLabel}`,
|
|
1061
|
-
"increase": (args) => `Збільшити ${args.fieldLabel}`,
|
|
1062
|
-
"numberField": `Поле номера`
|
|
1063
|
-
};
|
|
1064
|
-
var $e1103cb9b4c13942$exports = {};
|
|
1065
|
-
$e1103cb9b4c13942$exports = {
|
|
1066
|
-
"decrease": (args) => `降低 ${args.fieldLabel}`,
|
|
1067
|
-
"increase": (args) => `提高 ${args.fieldLabel}`,
|
|
1068
|
-
"numberField": `数字字段`
|
|
1069
|
-
};
|
|
1070
|
-
var $448607634f80dccb$exports = {};
|
|
1071
|
-
$448607634f80dccb$exports = {
|
|
1072
|
-
"decrease": (args) => `縮小 ${args.fieldLabel}`,
|
|
1073
|
-
"increase": (args) => `放大 ${args.fieldLabel}`,
|
|
1074
|
-
"numberField": `數字欄位`
|
|
1075
|
-
};
|
|
1076
|
-
var $280a227d7cb94b92$exports = {};
|
|
1077
|
-
$280a227d7cb94b92$exports = {
|
|
1078
|
-
"ar-AE": $fb78e0f6ab6349ed$exports,
|
|
1079
|
-
"bg-BG": $2776acdd9959a647$exports,
|
|
1080
|
-
"cs-CZ": $741954410a365ad3$exports,
|
|
1081
|
-
"da-DK": $8321ed0f8ab642f0$exports,
|
|
1082
|
-
"de-DE": $92978e0c4ecafa32$exports,
|
|
1083
|
-
"el-GR": $ac5ff71962864a84$exports,
|
|
1084
|
-
"en-US": $efe4685e2440d8be$exports,
|
|
1085
|
-
"es-ES": $e50a9a48739b90e1$exports,
|
|
1086
|
-
"et-EE": $6e0d5294ecbb8ab6$exports,
|
|
1087
|
-
"fi-FI": $e7129d65f607f77f$exports,
|
|
1088
|
-
"fr-FR": $d72adf5b20573e34$exports,
|
|
1089
|
-
"he-IL": $a25c707e88b844a7$exports,
|
|
1090
|
-
"hr-HR": $69b41140b9a4ca54$exports,
|
|
1091
|
-
"hu-HU": $81dab28f37f59d1a$exports,
|
|
1092
|
-
"it-IT": $866555b31f2d7711$exports,
|
|
1093
|
-
"ja-JP": $dafcd55d52b9d371$exports,
|
|
1094
|
-
"ko-KR": $f090c1f8c5da0145$exports,
|
|
1095
|
-
"lt-LT": $6f10f3a13360a75c$exports,
|
|
1096
|
-
"lv-LV": $47432cefd4b7bd1b$exports,
|
|
1097
|
-
"nb-NO": $dc578a950a2bf23d$exports,
|
|
1098
|
-
"nl-NL": $353f1bfca4dc395a$exports,
|
|
1099
|
-
"pl-PL": $241bc0bbd870e982$exports,
|
|
1100
|
-
"pt-BR": $da3005c7bd72b0a8$exports,
|
|
1101
|
-
"pt-PT": $cf48bfc540882310$exports,
|
|
1102
|
-
"ro-RO": $b63a28c481ab9ee3$exports,
|
|
1103
|
-
"ru-RU": $19f9df95c2464ab6$exports,
|
|
1104
|
-
"sk-SK": $b272932a685e8482$exports,
|
|
1105
|
-
"sl-SI": $cbaf8b5b61f9e544$exports,
|
|
1106
|
-
"sr-SP": $e0a3af6ac1449b2f$exports,
|
|
1107
|
-
"sv-SE": $71e167d2458a6019$exports,
|
|
1108
|
-
"tr-TR": $3719245abc082946$exports,
|
|
1109
|
-
"uk-UA": $2ccc589e2f51824d$exports,
|
|
1110
|
-
"zh-CN": $e1103cb9b4c13942$exports,
|
|
1111
|
-
"zh-TW": $448607634f80dccb$exports
|
|
1112
|
-
};
|
|
1113
|
-
function $parcel$interopDefault(a) {
|
|
1114
|
-
return a && a.__esModule ? a.default : a;
|
|
1115
|
-
}
|
|
1116
|
-
function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
|
|
1117
|
-
let { id, decrementAriaLabel, incrementAriaLabel, isDisabled, isReadOnly, isRequired, minValue, maxValue, autoFocus, label, formatOptions, onBlur = () => {
|
|
1118
|
-
}, onFocus, onFocusChange, onKeyDown, onKeyUp, description, errorMessage, isWheelDisabled, ...otherProps } = props;
|
|
1119
|
-
let { increment, incrementToMax, decrement, decrementToMin, numberValue, inputValue, commit, commitValidation } = state;
|
|
1120
|
-
const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($280a227d7cb94b92$exports), "@react-aria/numberfield");
|
|
1121
|
-
let commitAndAnnounce = useCallback(() => {
|
|
1122
|
-
var _inputRef_current, _inputRef_current1, _inputRef_current2;
|
|
1123
|
-
var _inputRef_current_value;
|
|
1124
|
-
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 : "";
|
|
1125
|
-
reactDomExports.flushSync(() => {
|
|
1126
|
-
commit();
|
|
1127
|
-
});
|
|
1128
|
-
var _inputRef_current_value1;
|
|
1129
|
-
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");
|
|
1130
|
-
}, [
|
|
1131
|
-
commit,
|
|
1132
|
-
inputRef
|
|
1133
|
-
]);
|
|
1134
|
-
let inputId = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
1135
|
-
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
|
|
1136
|
-
onBlur() {
|
|
1137
|
-
commitAndAnnounce();
|
|
1138
|
-
}
|
|
1139
|
-
});
|
|
1140
|
-
let numberFormatter = $a916eb452884faea$export$b7a616150fdb9f44(formatOptions);
|
|
1141
|
-
let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [
|
|
1142
|
-
numberFormatter
|
|
1143
|
-
]);
|
|
1144
|
-
let textValueFormatter = $a916eb452884faea$export$b7a616150fdb9f44({
|
|
1145
|
-
...formatOptions,
|
|
1146
|
-
currencySign: void 0
|
|
1147
|
-
});
|
|
1148
|
-
let textValue = useMemo(() => isNaN(numberValue) ? "" : textValueFormatter.format(numberValue), [
|
|
1149
|
-
textValueFormatter,
|
|
1150
|
-
numberValue
|
|
1151
|
-
]);
|
|
1152
|
-
let { spinButtonProps, incrementButtonProps: incButtonProps, decrementButtonProps: decButtonProps } = $d2e8511e6f209edf$export$e908e06f4b8e3402({
|
|
1153
|
-
isDisabled,
|
|
1154
|
-
isReadOnly,
|
|
1155
|
-
isRequired,
|
|
1156
|
-
maxValue,
|
|
1157
|
-
minValue,
|
|
1158
|
-
onIncrement: increment,
|
|
1159
|
-
onIncrementToMax: incrementToMax,
|
|
1160
|
-
onDecrement: decrement,
|
|
1161
|
-
onDecrementToMin: decrementToMin,
|
|
1162
|
-
value: numberValue,
|
|
1163
|
-
textValue
|
|
1164
|
-
});
|
|
1165
|
-
let [focusWithin, setFocusWithin] = useState(false);
|
|
1166
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
1167
|
-
isDisabled,
|
|
1168
|
-
onFocusWithinChange: setFocusWithin
|
|
1169
|
-
});
|
|
1170
|
-
let onWheel = useCallback((e) => {
|
|
1171
|
-
if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
|
|
1172
|
-
if (e.deltaY > 0) increment();
|
|
1173
|
-
else if (e.deltaY < 0) decrement();
|
|
1174
|
-
}, [
|
|
1175
|
-
decrement,
|
|
1176
|
-
increment
|
|
1177
|
-
]);
|
|
1178
|
-
let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;
|
|
1179
|
-
$7d0a636d7a4dcefd$export$2123ff2b87c81ca({
|
|
1180
|
-
onScroll: onWheel,
|
|
1181
|
-
isDisabled: scrollingDisabled
|
|
1182
|
-
}, inputRef);
|
|
1183
|
-
var _intlOptions_maximumFractionDigits;
|
|
1184
|
-
let hasDecimals = ((_intlOptions_maximumFractionDigits = intlOptions.maximumFractionDigits) !== null && _intlOptions_maximumFractionDigits !== void 0 ? _intlOptions_maximumFractionDigits : 0) > 0;
|
|
1185
|
-
let hasNegative = state.minValue === void 0 || isNaN(state.minValue) || state.minValue < 0;
|
|
1186
|
-
let inputMode = "numeric";
|
|
1187
|
-
if ($c87311424ea30a05$export$186c6964ca17d99()) {
|
|
1188
|
-
if (hasNegative) inputMode = "text";
|
|
1189
|
-
else if (hasDecimals) inputMode = "decimal";
|
|
1190
|
-
} else if ($c87311424ea30a05$export$a11b0059900ceec8()) {
|
|
1191
|
-
if (hasNegative) inputMode = "numeric";
|
|
1192
|
-
else if (hasDecimals) inputMode = "decimal";
|
|
1193
|
-
}
|
|
1194
|
-
let onChange = (value) => {
|
|
1195
|
-
if (state.validate(value)) state.setInputValue(value);
|
|
1196
|
-
};
|
|
1197
|
-
let onPaste = (e) => {
|
|
1198
|
-
var _props_onPaste;
|
|
1199
|
-
(_props_onPaste = props.onPaste) === null || _props_onPaste === void 0 ? void 0 : _props_onPaste.call(props, e);
|
|
1200
|
-
let inputElement = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
1201
|
-
var _inputElement_selectionEnd, _inputElement_selectionStart;
|
|
1202
|
-
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) {
|
|
1203
|
-
var _e_clipboardData_getData, _e_clipboardData_getData1, _e_clipboardData;
|
|
1204
|
-
e.preventDefault();
|
|
1205
|
-
var _e_clipboardData_getData_trim;
|
|
1206
|
-
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 : "");
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
|
-
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
1210
|
-
let onKeyDownEnter = useCallback((e) => {
|
|
1211
|
-
if (e.nativeEvent.isComposing) return;
|
|
1212
|
-
if (e.key === "Enter") {
|
|
1213
|
-
commit();
|
|
1214
|
-
commitValidation();
|
|
1215
|
-
} else e.continuePropagation();
|
|
1216
|
-
}, [
|
|
1217
|
-
commit,
|
|
1218
|
-
commitValidation
|
|
1219
|
-
]);
|
|
1220
|
-
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
1221
|
-
let { labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps } = $d841c8010a73d545$export$4f384c9210e583c3({
|
|
1222
|
-
...otherProps,
|
|
1223
|
-
...domProps,
|
|
1224
|
-
// These props are added to a hidden input rather than the formatted textfield.
|
|
1225
|
-
name: void 0,
|
|
1226
|
-
form: void 0,
|
|
1227
|
-
label,
|
|
1228
|
-
autoFocus,
|
|
1229
|
-
isDisabled,
|
|
1230
|
-
isReadOnly,
|
|
1231
|
-
isRequired,
|
|
1232
|
-
validate: void 0,
|
|
1233
|
-
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state,
|
|
1234
|
-
value: inputValue,
|
|
1235
|
-
defaultValue: "!",
|
|
1236
|
-
autoComplete: "off",
|
|
1237
|
-
"aria-label": props["aria-label"] || void 0,
|
|
1238
|
-
"aria-labelledby": props["aria-labelledby"] || void 0,
|
|
1239
|
-
id: inputId,
|
|
1240
|
-
type: "text",
|
|
1241
|
-
inputMode,
|
|
1242
|
-
onChange,
|
|
1243
|
-
onBlur,
|
|
1244
|
-
onFocus,
|
|
1245
|
-
onFocusChange,
|
|
1246
|
-
onKeyDown: useMemo(() => $ff5963eb1fccf552$export$e08e3b67e392101e(onKeyDownEnter, onKeyDown), [
|
|
1247
|
-
onKeyDownEnter,
|
|
1248
|
-
onKeyDown
|
|
1249
|
-
]),
|
|
1250
|
-
onKeyUp,
|
|
1251
|
-
onPaste,
|
|
1252
|
-
description,
|
|
1253
|
-
errorMessage
|
|
1254
|
-
}, state, inputRef);
|
|
1255
|
-
$99facab73266f662$export$5add1d006293d136(inputRef, state.defaultNumberValue, state.setNumberValue);
|
|
1256
|
-
let inputProps = $3ef42575df84b30b$export$9d1611c77c2fe928(spinButtonProps, focusProps, textFieldProps, {
|
|
1257
|
-
// override the spinbutton role, we can't focus a spin button with VO
|
|
1258
|
-
role: null,
|
|
1259
|
-
// ignore aria-roledescription on iOS so that required state will announce when it is present
|
|
1260
|
-
"aria-roledescription": !$c87311424ea30a05$export$fedb369cb70207f1() ? stringFormatter.format("numberField") : null,
|
|
1261
|
-
"aria-valuemax": null,
|
|
1262
|
-
"aria-valuemin": null,
|
|
1263
|
-
"aria-valuenow": null,
|
|
1264
|
-
"aria-valuetext": null,
|
|
1265
|
-
autoCorrect: "off",
|
|
1266
|
-
spellCheck: "false"
|
|
1267
|
-
});
|
|
1268
|
-
if (props.validationBehavior === "native") inputProps["aria-required"] = void 0;
|
|
1269
|
-
let onButtonPressStart = (e) => {
|
|
1270
|
-
var _inputRef_current;
|
|
1271
|
-
if ($d4ee10de306f2510$export$cd4e5573fbe2b576() === inputRef.current) return;
|
|
1272
|
-
if (e.pointerType === "mouse") (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
1273
|
-
else e.target.focus();
|
|
1274
|
-
};
|
|
1275
|
-
let fieldLabel = props["aria-label"] || (typeof props.label === "string" ? props.label : "");
|
|
1276
|
-
let ariaLabelledby;
|
|
1277
|
-
if (!fieldLabel) ariaLabelledby = props.label != null ? labelProps.id : props["aria-labelledby"];
|
|
1278
|
-
let incrementId = $bdb11010cef70236$export$f680877a34711e37();
|
|
1279
|
-
let decrementId = $bdb11010cef70236$export$f680877a34711e37();
|
|
1280
|
-
let incrementButtonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(incButtonProps, {
|
|
1281
|
-
"aria-label": incrementAriaLabel || stringFormatter.format("increase", {
|
|
1282
|
-
fieldLabel
|
|
1283
|
-
}).trim(),
|
|
1284
|
-
id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,
|
|
1285
|
-
"aria-labelledby": ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,
|
|
1286
|
-
"aria-controls": inputId,
|
|
1287
|
-
excludeFromTabOrder: true,
|
|
1288
|
-
preventFocusOnPress: true,
|
|
1289
|
-
allowFocusWhenDisabled: true,
|
|
1290
|
-
isDisabled: !state.canIncrement,
|
|
1291
|
-
onPressStart: onButtonPressStart
|
|
1292
|
-
});
|
|
1293
|
-
let decrementButtonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(decButtonProps, {
|
|
1294
|
-
"aria-label": decrementAriaLabel || stringFormatter.format("decrease", {
|
|
1295
|
-
fieldLabel
|
|
1296
|
-
}).trim(),
|
|
1297
|
-
id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,
|
|
1298
|
-
"aria-labelledby": ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,
|
|
1299
|
-
"aria-controls": inputId,
|
|
1300
|
-
excludeFromTabOrder: true,
|
|
1301
|
-
preventFocusOnPress: true,
|
|
1302
|
-
allowFocusWhenDisabled: true,
|
|
1303
|
-
isDisabled: !state.canDecrement,
|
|
1304
|
-
onPressStart: onButtonPressStart
|
|
1305
|
-
});
|
|
1306
|
-
return {
|
|
1307
|
-
groupProps: {
|
|
1308
|
-
...focusWithinProps,
|
|
1309
|
-
role: "group",
|
|
1310
|
-
"aria-disabled": isDisabled,
|
|
1311
|
-
"aria-invalid": isInvalid ? "true" : void 0
|
|
1312
|
-
},
|
|
1313
|
-
labelProps,
|
|
1314
|
-
inputProps,
|
|
1315
|
-
incrementButtonProps,
|
|
1316
|
-
decrementButtonProps,
|
|
1317
|
-
errorMessageProps,
|
|
1318
|
-
descriptionProps,
|
|
1319
|
-
isInvalid,
|
|
1320
|
-
validationErrors,
|
|
1321
|
-
validationDetails
|
|
1322
|
-
};
|
|
1323
|
-
}
|
|
1324
|
-
export {
|
|
1325
|
-
$de67e98908f0c6ee$export$7f629e9dc1ecf37c as $,
|
|
1326
|
-
$81397a9303501bda$export$23f548e970bdf099 as a,
|
|
1327
|
-
$d2e8511e6f209edf$export$e908e06f4b8e3402 as b,
|
|
1328
|
-
$7d0a636d7a4dcefd$export$2123ff2b87c81ca as c,
|
|
1329
|
-
$d841c8010a73d545$export$4f384c9210e583c3 as d
|
|
1330
|
-
};
|