@fibrae/semi-foundation 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +84 -0
- package/README.md +76 -2
- package/dist/_portal/portal.css +12 -0
- package/dist/_portal/portal.scss +18 -0
- package/dist/anchor/anchor.css +118 -0
- package/dist/anchor/anchor.scss +148 -0
- package/dist/anchor/animation.scss +7 -0
- package/dist/anchor/constants.d.ts +9 -0
- package/dist/anchor/constants.js +14 -0
- package/dist/anchor/foundation.d.ts +49 -0
- package/dist/anchor/foundation.js +143 -0
- package/dist/anchor/rtl.scss +9 -0
- package/dist/anchor/utils.d.ts +6 -0
- package/dist/anchor/utils.js +16 -0
- package/dist/anchor/variables.scss +34 -0
- package/dist/audio-player/audio-player.css +226 -0
- package/dist/audio-player/audio-player.scss +278 -0
- package/dist/audio-player/constants.d.ts +11 -0
- package/dist/audio-player/constants.js +27 -0
- package/dist/audio-player/foundation.d.ts +46 -0
- package/dist/audio-player/foundation.js +116 -0
- package/dist/audio-player/utils.d.ts +2 -0
- package/dist/audio-player/utils.js +6 -0
- package/dist/audio-player/variables.scss +53 -0
- package/dist/auto-complete/animation.scss +5 -0
- package/dist/auto-complete/auto-complete.css +99 -0
- package/dist/auto-complete/auto-complete.scss +36 -0
- package/dist/auto-complete/constants.d.ts +4 -0
- package/dist/auto-complete/constants.js +7 -0
- package/dist/auto-complete/foundation.d.ts +77 -0
- package/dist/auto-complete/foundation.js +219 -0
- package/dist/auto-complete/option.scss +78 -0
- package/dist/auto-complete/rtl.scss +9 -0
- package/dist/auto-complete/variables.scss +23 -0
- package/dist/avatar/animation.scss +13 -0
- package/dist/avatar/avatar.css +652 -0
- package/dist/avatar/avatar.scss +540 -0
- package/dist/avatar/constants.d.ts +6 -0
- package/dist/avatar/constants.js +13 -0
- package/dist/avatar/foundation.d.ts +29 -0
- package/dist/avatar/foundation.js +31 -0
- package/dist/avatar/mixin.scss +7 -0
- package/dist/avatar/rtl.scss +11 -0
- package/dist/avatar/variables.scss +113 -0
- package/dist/backtop/backtop.css +9 -0
- package/dist/backtop/backtop.scss +15 -0
- package/dist/backtop/constants.d.ts +6 -0
- package/dist/backtop/constants.js +35 -0
- package/dist/backtop/foundation.d.ts +26 -0
- package/dist/backtop/foundation.js +69 -0
- package/dist/backtop/rtl.scss +8 -0
- package/dist/backtop/variables.scss +4 -0
- package/dist/badge/badge.css +131 -0
- package/dist/badge/badge.scss +158 -0
- package/dist/badge/constants.d.ts +3 -0
- package/dist/badge/constants.js +4 -0
- package/dist/badge/rtl.scss +8 -0
- package/dist/badge/variables.scss +46 -0
- package/dist/banner/banner.css +75 -0
- package/dist/banner/banner.scss +107 -0
- package/dist/banner/constants.d.ts +3 -0
- package/dist/banner/constants.js +4 -0
- package/dist/banner/foundation.d.ts +9 -0
- package/dist/banner/foundation.js +9 -0
- package/dist/banner/rtl.scss +8 -0
- package/dist/banner/variables.scss +29 -0
- package/dist/base/auto-close-foundation.d.ts +30 -0
- package/dist/base/auto-close-foundation.js +61 -0
- package/dist/base/base.scss +36 -0
- package/dist/base/constants.d.ts +11 -0
- package/dist/base/constants.js +23 -0
- package/dist/base/env.d.ts +1 -0
- package/dist/base/env.js +3 -0
- package/dist/base/foundation.d.ts +75 -0
- package/dist/base/foundation.js +79 -0
- package/dist/base/list-store.d.ts +26 -0
- package/dist/base/list-store.js +80 -0
- package/dist/base/mixin.scss +61 -0
- package/dist/base/tokens.css +799 -0
- package/dist/base/tokens.scss +3 -0
- package/dist/breadcrumb/animation.scss +7 -0
- package/dist/breadcrumb/breadcrumb.css +91 -0
- package/dist/breadcrumb/breadcrumb.scss +116 -0
- package/dist/breadcrumb/constants.d.ts +7 -0
- package/dist/breadcrumb/constants.js +8 -0
- package/dist/breadcrumb/foundation.d.ts +37 -0
- package/dist/breadcrumb/foundation.js +61 -0
- package/dist/breadcrumb/item-foundation.d.ts +45 -0
- package/dist/breadcrumb/item-foundation.js +36 -0
- package/dist/breadcrumb/rtl.scss +9 -0
- package/dist/breadcrumb/variables.scss +23 -0
- package/dist/button/animation.scss +63 -0
- package/dist/button/button.css +406 -0
- package/dist/button/button.scss +513 -0
- package/dist/button/constants.d.ts +6 -0
- package/dist/button/constants.js +5 -0
- package/dist/button/icon-button.css +65 -0
- package/dist/button/icon-button.scss +76 -0
- package/dist/button/rtl.scss +18 -0
- package/dist/button/split-button-group.scss +36 -0
- package/dist/button/utils.d.ts +27 -0
- package/dist/button/utils.js +89 -0
- package/dist/button/variables.scss +169 -0
- package/dist/calendar/calendar.css +486 -0
- package/dist/calendar/calendar.scss +518 -0
- package/dist/calendar/constants.d.ts +10 -0
- package/dist/calendar/constants.js +14 -0
- package/dist/calendar/event-util.d.ts +74 -0
- package/dist/calendar/event-util.js +203 -0
- package/dist/calendar/foundation.d.ts +80 -0
- package/dist/calendar/foundation.js +198 -0
- package/dist/calendar/month-foundation.d.ts +11 -0
- package/dist/calendar/month-foundation.js +13 -0
- package/dist/calendar/rtl.scss +10 -0
- package/dist/calendar/variables.scss +95 -0
- package/dist/card/card.css +124 -0
- package/dist/card/card.scss +149 -0
- package/dist/card/constants.d.ts +3 -0
- package/dist/card/constants.js +4 -0
- package/dist/card/rtl.scss +18 -0
- package/dist/card/variables.scss +32 -0
- package/dist/carousel/animation.scss +9 -0
- package/dist/carousel/carousel.css +345 -0
- package/dist/carousel/carousel.scss +451 -0
- package/dist/carousel/constants.d.ts +27 -0
- package/dist/carousel/constants.js +42 -0
- package/dist/carousel/foundation.d.ts +61 -0
- package/dist/carousel/foundation.js +204 -0
- package/dist/carousel/rtl.scss +14 -0
- package/dist/carousel/variables.scss +49 -0
- package/dist/cascader/animation.scss +5 -0
- package/dist/cascader/cascader.css +488 -0
- package/dist/cascader/cascader.scss +586 -0
- package/dist/cascader/constants.d.ts +19 -0
- package/dist/cascader/constants.js +20 -0
- package/dist/cascader/foundation.d.ts +300 -0
- package/dist/cascader/foundation.js +893 -0
- package/dist/cascader/rtl.scss +14 -0
- package/dist/cascader/util.d.ts +37 -0
- package/dist/cascader/util.js +155 -0
- package/dist/cascader/variables.scss +134 -0
- package/dist/checkbox/animation.scss +11 -0
- package/dist/checkbox/checkbox-foundation.d.ts +97 -0
- package/dist/checkbox/checkbox-foundation.js +65 -0
- package/dist/checkbox/checkbox-group-foundation.d.ts +21 -0
- package/dist/checkbox/checkbox-group-foundation.js +28 -0
- package/dist/checkbox/checkbox.css +301 -0
- package/dist/checkbox/checkbox.scss +415 -0
- package/dist/checkbox/constants.d.ts +14 -0
- package/dist/checkbox/constants.js +15 -0
- package/dist/checkbox/mixin.scss +3 -0
- package/dist/checkbox/rtl.scss +11 -0
- package/dist/checkbox/variables.scss +72 -0
- package/dist/code-highlight/code-highlight.css +54 -0
- package/dist/code-highlight/code-highlight.scss +65 -0
- package/dist/code-highlight/constants.d.ts +3 -0
- package/dist/code-highlight/constants.js +4 -0
- package/dist/code-highlight/highlighter.d.ts +3 -0
- package/dist/code-highlight/highlighter.js +56 -0
- package/dist/code-highlight/index.d.ts +25 -0
- package/dist/code-highlight/index.js +19 -0
- package/dist/code-highlight/registry.d.ts +23 -0
- package/dist/code-highlight/registry.js +33 -0
- package/dist/code-highlight/variables.scss +1 -0
- package/dist/collapse/collapse.css +101 -0
- package/dist/collapse/collapse.scss +112 -0
- package/dist/collapse/constants.d.ts +3 -0
- package/dist/collapse/constants.js +4 -0
- package/dist/collapse/foundation.d.ts +47 -0
- package/dist/collapse/foundation.js +44 -0
- package/dist/collapse/rtl.scss +8 -0
- package/dist/collapse/variables.scss +25 -0
- package/dist/collapsible/animation.scss +9 -0
- package/dist/collapsible/collapsible.css +17 -0
- package/dist/collapsible/collapsible.scss +28 -0
- package/dist/collapsible/constants.d.ts +3 -0
- package/dist/collapsible/constants.js +4 -0
- package/dist/collapsible/foundation.d.ts +68 -0
- package/dist/collapsible/foundation.js +123 -0
- package/dist/collapsible/variables.scss +1 -0
- package/dist/color-picker/alpha-slider-foundation.d.ts +29 -0
- package/dist/color-picker/alpha-slider-foundation.js +41 -0
- package/dist/color-picker/color-choose-area-foundation.d.ts +36 -0
- package/dist/color-picker/color-choose-area-foundation.js +57 -0
- package/dist/color-picker/color-picker.css +104 -0
- package/dist/color-picker/color-picker.scss +131 -0
- package/dist/color-picker/color-slider-foundation.d.ts +29 -0
- package/dist/color-picker/color-slider-foundation.js +41 -0
- package/dist/color-picker/constants.d.ts +3 -0
- package/dist/color-picker/constants.js +4 -0
- package/dist/color-picker/data-part-foundation.d.ts +28 -0
- package/dist/color-picker/data-part-foundation.js +76 -0
- package/dist/color-picker/foundation.d.ts +56 -0
- package/dist/color-picker/foundation.js +149 -0
- package/dist/color-picker/interface.d.ts +32 -0
- package/dist/color-picker/interface.js +0 -0
- package/dist/color-picker/utils/convert.d.ts +16 -0
- package/dist/color-picker/utils/convert.js +150 -0
- package/dist/color-picker/utils/round.d.ts +1 -0
- package/dist/color-picker/utils/round.js +5 -0
- package/dist/color-picker/utils/split.d.ts +5 -0
- package/dist/color-picker/utils/split.js +26 -0
- package/dist/color-picker/variables.scss +26 -0
- package/dist/config-provider/breakpoint-observer.d.ts +23 -0
- package/dist/config-provider/breakpoint-observer.js +139 -0
- package/dist/config-provider/inherit-config.d.ts +24 -0
- package/dist/config-provider/inherit-config.js +24 -0
- package/dist/config-provider/responsive-types.d.ts +39 -0
- package/dist/config-provider/responsive-types.js +0 -0
- package/dist/cropper/constants.d.ts +21 -0
- package/dist/cropper/constants.js +37 -0
- package/dist/cropper/cropper.css +101 -0
- package/dist/cropper/cropper.scss +129 -0
- package/dist/cropper/foundation.d.ts +91 -0
- package/dist/cropper/foundation.js +804 -0
- package/dist/cropper/utils.d.ts +20 -0
- package/dist/cropper/utils.js +23 -0
- package/dist/cropper/variables.scss +8 -0
- package/dist/date-picker/_utils/formatter.d.ts +6 -0
- package/dist/date-picker/_utils/formatter.js +21 -0
- package/dist/date-picker/_utils/get-day-of-week.d.ts +5 -0
- package/dist/date-picker/_utils/get-day-of-week.js +14 -0
- package/dist/date-picker/_utils/get-default-format-token.d.ts +10 -0
- package/dist/date-picker/_utils/get-default-format-token.js +18 -0
- package/dist/date-picker/_utils/get-default-picker-date.d.ts +15 -0
- package/dist/date-picker/_utils/get-default-picker-date.js +38 -0
- package/dist/date-picker/_utils/get-full-date-offset.d.ts +3 -0
- package/dist/date-picker/_utils/get-full-date-offset.js +11 -0
- package/dist/date-picker/_utils/get-inset-input-format-token.d.ts +20 -0
- package/dist/date-picker/_utils/get-inset-input-format-token.js +35 -0
- package/dist/date-picker/_utils/get-inset-input-value-from-inset-input-str.d.ts +30 -0
- package/dist/date-picker/_utils/get-inset-input-value-from-inset-input-str.js +59 -0
- package/dist/date-picker/_utils/get-month-table.d.ts +15 -0
- package/dist/date-picker/_utils/get-month-table.js +33 -0
- package/dist/date-picker/_utils/get-year-and-month.d.ts +16 -0
- package/dist/date-picker/_utils/get-year-and-month.js +18 -0
- package/dist/date-picker/_utils/get-year-month-from-value.d.ts +12 -0
- package/dist/date-picker/_utils/get-year-month-from-value.js +18 -0
- package/dist/date-picker/_utils/get-years.d.ts +1 -0
- package/dist/date-picker/_utils/get-years.js +9 -0
- package/dist/date-picker/_utils/index.d.ts +11 -0
- package/dist/date-picker/_utils/index.js +11 -0
- package/dist/date-picker/_utils/is-after.d.ts +1 -0
- package/dist/date-picker/_utils/is-after.js +7 -0
- package/dist/date-picker/_utils/is-before.d.ts +1 -0
- package/dist/date-picker/_utils/is-before.js +7 -0
- package/dist/date-picker/_utils/is-between.d.ts +8 -0
- package/dist/date-picker/_utils/is-between.js +11 -0
- package/dist/date-picker/_utils/is-same-day.d.ts +1 -0
- package/dist/date-picker/_utils/is-same-day.js +7 -0
- package/dist/date-picker/_utils/is-timestamp.d.ts +1 -0
- package/dist/date-picker/_utils/is-timestamp.js +6 -0
- package/dist/date-picker/_utils/is-valid-date.d.ts +1 -0
- package/dist/date-picker/_utils/is-valid-date.js +5 -0
- package/dist/date-picker/_utils/parser.d.ts +5 -0
- package/dist/date-picker/_utils/parser.js +24 -0
- package/dist/date-picker/_utils/picker-type.d.ts +20 -0
- package/dist/date-picker/_utils/picker-type.js +30 -0
- package/dist/date-picker/_utils/to-callback-args.d.ts +18 -0
- package/dist/date-picker/_utils/to-callback-args.js +47 -0
- package/dist/date-picker/_utils/to-date-arg.d.ts +6 -0
- package/dist/date-picker/_utils/to-date-arg.js +13 -0
- package/dist/date-picker/animation.scss +1 -0
- package/dist/date-picker/constants.d.ts +53 -0
- package/dist/date-picker/constants.js +78 -0
- package/dist/date-picker/date-picker.css +1285 -0
- package/dist/date-picker/date-picker.scss +1765 -0
- package/dist/date-picker/foundation.d.ts +336 -0
- package/dist/date-picker/foundation.js +736 -0
- package/dist/date-picker/input-foundation.d.ts +144 -0
- package/dist/date-picker/input-foundation.js +214 -0
- package/dist/date-picker/month-foundation.d.ts +157 -0
- package/dist/date-picker/month-foundation.js +188 -0
- package/dist/date-picker/months-grid-foundation.d.ts +180 -0
- package/dist/date-picker/months-grid-foundation.js +557 -0
- package/dist/date-picker/rtl.scss +28 -0
- package/dist/date-picker/variables.scss +237 -0
- package/dist/date-picker/year-and-month-foundation.d.ts +75 -0
- package/dist/date-picker/year-and-month-foundation.js +115 -0
- package/dist/descriptions/constants.d.ts +3 -0
- package/dist/descriptions/constants.js +4 -0
- package/dist/descriptions/descriptions.css +138 -0
- package/dist/descriptions/descriptions.scss +182 -0
- package/dist/descriptions/foundation.d.ts +12 -0
- package/dist/descriptions/foundation.js +36 -0
- package/dist/descriptions/rtl.scss +8 -0
- package/dist/descriptions/variables.scss +26 -0
- package/dist/divider/constants.d.ts +3 -0
- package/dist/divider/constants.js +4 -0
- package/dist/divider/divider.css +60 -0
- package/dist/divider/divider.scss +83 -0
- package/dist/divider/variables.scss +24 -0
- package/dist/drag-move/foundation.d.ts +31 -0
- package/dist/drag-move/foundation.js +178 -0
- package/dist/dropdown/animation.scss +5 -0
- package/dist/dropdown/constants.d.ts +11 -0
- package/dist/dropdown/constants.js +12 -0
- package/dist/dropdown/dropdown.css +154 -0
- package/dist/dropdown/dropdown.scss +128 -0
- package/dist/dropdown/foundation.d.ts +37 -0
- package/dist/dropdown/foundation.js +120 -0
- package/dist/dropdown/menu-foundation.d.ts +36 -0
- package/dist/dropdown/menu-foundation.js +82 -0
- package/dist/dropdown/rtl.scss +9 -0
- package/dist/dropdown/variables.scss +42 -0
- package/dist/empty/constants.d.ts +6 -0
- package/dist/empty/constants.js +5 -0
- package/dist/empty/empty.css +41 -0
- package/dist/empty/empty.scss +56 -0
- package/dist/empty/rtl.scss +8 -0
- package/dist/empty/variables.scss +10 -0
- package/dist/feedback/constants.d.ts +12 -0
- package/dist/feedback/constants.js +19 -0
- package/dist/feedback/feedback.css +110 -0
- package/dist/feedback/feedback.scss +153 -0
- package/dist/feedback/foundation.d.ts +43 -0
- package/dist/feedback/foundation.js +72 -0
- package/dist/feedback/variables.scss +26 -0
- package/dist/float-button/constants.d.ts +10 -0
- package/dist/float-button/constants.js +13 -0
- package/dist/float-button/float-button.css +159 -0
- package/dist/float-button/float-button.scss +203 -0
- package/dist/float-button/rtl.scss +2 -0
- package/dist/float-button/variables.scss +47 -0
- package/dist/form/constants.d.ts +7 -0
- package/dist/form/constants.js +8 -0
- package/dist/form/field-store.d.ts +10 -0
- package/dist/form/field-store.js +28 -0
- package/dist/form/form-api-proxy.d.ts +13 -0
- package/dist/form/form-api-proxy.js +48 -0
- package/dist/form/form.css +229 -0
- package/dist/form/form.scss +307 -0
- package/dist/form/foundation.d.ts +65 -0
- package/dist/form/foundation.js +836 -0
- package/dist/form/interface.d.ts +171 -0
- package/dist/form/interface.js +0 -0
- package/dist/form/rtl.scss +13 -0
- package/dist/form/utils.d.ts +89 -0
- package/dist/form/utils.js +115 -0
- package/dist/form/variables.scss +53 -0
- package/dist/grid/constants.d.ts +6 -0
- package/dist/grid/constants.js +12 -0
- package/dist/grid/grid.css +4206 -0
- package/dist/grid/grid.scss +101 -0
- package/dist/grid/gutter.d.ts +12 -0
- package/dist/grid/gutter.js +39 -0
- package/dist/grid/mixin.scss +119 -0
- package/dist/grid/rtl.scss +10 -0
- package/dist/grid/utils.d.ts +22 -0
- package/dist/grid/utils.js +39 -0
- package/dist/grid/variables.scss +29 -0
- package/dist/highlight/constants.d.ts +3 -0
- package/dist/highlight/constants.js +4 -0
- package/dist/highlight/foundation.d.ts +59 -0
- package/dist/highlight/foundation.js +110 -0
- package/dist/highlight/highlight.css +5 -0
- package/dist/highlight/highlight.scss +11 -0
- package/dist/highlight/variables.scss +6 -0
- package/dist/hot-keys/constants.d.ts +105 -0
- package/dist/hot-keys/constants.js +207 -0
- package/dist/hot-keys/foundation.d.ts +19 -0
- package/dist/hot-keys/foundation.js +92 -0
- package/dist/hot-keys/hot-keys.css +29 -0
- package/dist/hot-keys/hot-keys.scss +30 -0
- package/dist/hot-keys/variables.scss +12 -0
- package/dist/image/animation.scss +9 -0
- package/dist/image/constants.d.ts +6 -0
- package/dist/image/constants.js +5 -0
- package/dist/image/image-foundation.d.ts +30 -0
- package/dist/image/image-foundation.js +40 -0
- package/dist/image/image.css +250 -0
- package/dist/image/image.scss +272 -0
- package/dist/image/preview-footer-foundation.d.ts +26 -0
- package/dist/image/preview-footer-foundation.js +30 -0
- package/dist/image/preview-foundation.d.ts +51 -0
- package/dist/image/preview-foundation.js +70 -0
- package/dist/image/preview-image-foundation.d.ts +70 -0
- package/dist/image/preview-image-foundation.js +226 -0
- package/dist/image/preview-inner-foundation.d.ts +87 -0
- package/dist/image/preview-inner-foundation.js +238 -0
- package/dist/image/rtl.scss +28 -0
- package/dist/image/utils.d.ts +4 -0
- package/dist/image/utils.js +66 -0
- package/dist/image/variables.scss +44 -0
- package/dist/input/animation.scss +11 -0
- package/dist/input/constants.d.ts +9 -0
- package/dist/input/constants.js +14 -0
- package/dist/input/foundation.d.ts +51 -0
- package/dist/input/foundation.js +79 -0
- package/dist/input/input.css +616 -0
- package/dist/input/input.scss +738 -0
- package/dist/input/rtl.scss +11 -0
- package/dist/input/text-entry-foundation.d.ts +55 -0
- package/dist/input/text-entry-foundation.js +93 -0
- package/dist/input/textarea-foundation.d.ts +61 -0
- package/dist/input/textarea-foundation.js +130 -0
- package/dist/input/textarea.css +257 -0
- package/dist/input/textarea.scss +313 -0
- package/dist/input/util/line-number.d.ts +2 -0
- package/dist/input/util/line-number.js +42 -0
- package/dist/input/util/truncate-value.d.ts +5 -0
- package/dist/input/util/truncate-value.js +14 -0
- package/dist/input/variables.scss +107 -0
- package/dist/input-number/animation.scss +11 -0
- package/dist/input-number/caret.d.ts +4 -0
- package/dist/input-number/caret.js +21 -0
- package/dist/input-number/constants.d.ts +15 -0
- package/dist/input-number/constants.js +13 -0
- package/dist/input-number/foundation.d.ts +110 -0
- package/dist/input-number/foundation.js +557 -0
- package/dist/input-number/input-number.css +84 -0
- package/dist/input-number/input-number.scss +124 -0
- package/dist/input-number/rtl.scss +9 -0
- package/dist/input-number/variables.scss +26 -0
- package/dist/json-viewer/constants.d.ts +3 -0
- package/dist/json-viewer/constants.js +4 -0
- package/dist/json-viewer/foundation.d.ts +42 -0
- package/dist/json-viewer/foundation.js +124 -0
- package/dist/json-viewer/json-viewer.css +183 -0
- package/dist/json-viewer/json-viewer.scss +224 -0
- package/dist/json-viewer/variables.scss +18 -0
- package/dist/layout/constants.d.ts +3 -0
- package/dist/layout/constants.js +4 -0
- package/dist/layout/layout.css +36 -0
- package/dist/layout/layout.scss +51 -0
- package/dist/layout/rtl.scss +7 -0
- package/dist/list/constants.d.ts +3 -0
- package/dist/list/constants.js +4 -0
- package/dist/list/list.css +123 -0
- package/dist/list/list.scss +162 -0
- package/dist/list/rtl.scss +9 -0
- package/dist/list/variables.scss +18 -0
- package/dist/locale/interface.d.ts +663 -0
- package/dist/locale/interface.js +0 -0
- package/dist/locale/resolve-locale.d.ts +6 -0
- package/dist/locale/resolve-locale.js +17 -0
- package/dist/locale/source/ar.d.ts +3 -0
- package/dist/locale/source/ar.js +502 -0
- package/dist/locale/source/az.d.ts +3 -0
- package/dist/locale/source/az.js +502 -0
- package/dist/locale/source/bg.d.ts +3 -0
- package/dist/locale/source/bg.js +502 -0
- package/dist/locale/source/bn_IN.d.ts +3 -0
- package/dist/locale/source/bn_IN.js +502 -0
- package/dist/locale/source/ca.d.ts +3 -0
- package/dist/locale/source/ca.js +502 -0
- package/dist/locale/source/ceb_PH.d.ts +3 -0
- package/dist/locale/source/ceb_PH.js +502 -0
- package/dist/locale/source/cs_CZ.d.ts +3 -0
- package/dist/locale/source/cs_CZ.js +502 -0
- package/dist/locale/source/da.d.ts +3 -0
- package/dist/locale/source/da.js +502 -0
- package/dist/locale/source/de.d.ts +3 -0
- package/dist/locale/source/de.js +502 -0
- package/dist/locale/source/el_GR.d.ts +3 -0
- package/dist/locale/source/el_GR.js +502 -0
- package/dist/locale/source/en_GB.d.ts +3 -0
- package/dist/locale/source/en_GB.js +502 -0
- package/dist/locale/source/en_US.d.ts +3 -0
- package/dist/locale/source/en_US.js +502 -0
- package/dist/locale/source/es.d.ts +3 -0
- package/dist/locale/source/es.js +502 -0
- package/dist/locale/source/es_419.d.ts +3 -0
- package/dist/locale/source/es_419.js +502 -0
- package/dist/locale/source/et.d.ts +3 -0
- package/dist/locale/source/et.js +502 -0
- package/dist/locale/source/fa_IR.d.ts +3 -0
- package/dist/locale/source/fa_IR.js +502 -0
- package/dist/locale/source/fi_FI.d.ts +3 -0
- package/dist/locale/source/fi_FI.js +502 -0
- package/dist/locale/source/fil_PH.d.ts +3 -0
- package/dist/locale/source/fil_PH.js +502 -0
- package/dist/locale/source/fr.d.ts +3 -0
- package/dist/locale/source/fr.js +502 -0
- package/dist/locale/source/fr_CA.d.ts +3 -0
- package/dist/locale/source/fr_CA.js +502 -0
- package/dist/locale/source/ga.d.ts +3 -0
- package/dist/locale/source/ga.js +502 -0
- package/dist/locale/source/he_IL.d.ts +3 -0
- package/dist/locale/source/he_IL.js +502 -0
- package/dist/locale/source/hi_IN.d.ts +3 -0
- package/dist/locale/source/hi_IN.js +502 -0
- package/dist/locale/source/hr.d.ts +3 -0
- package/dist/locale/source/hr.js +502 -0
- package/dist/locale/source/hu_HU.d.ts +3 -0
- package/dist/locale/source/hu_HU.js +502 -0
- package/dist/locale/source/id_ID.d.ts +3 -0
- package/dist/locale/source/id_ID.js +502 -0
- package/dist/locale/source/is.d.ts +3 -0
- package/dist/locale/source/is.js +502 -0
- package/dist/locale/source/it.d.ts +3 -0
- package/dist/locale/source/it.js +502 -0
- package/dist/locale/source/ja_JP.d.ts +3 -0
- package/dist/locale/source/ja_JP.js +502 -0
- package/dist/locale/source/jv_ID.d.ts +3 -0
- package/dist/locale/source/jv_ID.js +502 -0
- package/dist/locale/source/kk.d.ts +3 -0
- package/dist/locale/source/kk.js +502 -0
- package/dist/locale/source/km_KH.d.ts +3 -0
- package/dist/locale/source/km_KH.js +502 -0
- package/dist/locale/source/ko_KR.d.ts +3 -0
- package/dist/locale/source/ko_KR.js +502 -0
- package/dist/locale/source/lt.d.ts +3 -0
- package/dist/locale/source/lt.js +502 -0
- package/dist/locale/source/lv.d.ts +3 -0
- package/dist/locale/source/lv.js +502 -0
- package/dist/locale/source/ms_MY.d.ts +3 -0
- package/dist/locale/source/ms_MY.js +502 -0
- package/dist/locale/source/my_MM.d.ts +3 -0
- package/dist/locale/source/my_MM.js +502 -0
- package/dist/locale/source/nb.d.ts +3 -0
- package/dist/locale/source/nb.js +502 -0
- package/dist/locale/source/nl_NL.d.ts +3 -0
- package/dist/locale/source/nl_NL.js +502 -0
- package/dist/locale/source/pl_PL.d.ts +3 -0
- package/dist/locale/source/pl_PL.js +502 -0
- package/dist/locale/source/pt.d.ts +3 -0
- package/dist/locale/source/pt.js +502 -0
- package/dist/locale/source/pt_BR.d.ts +3 -0
- package/dist/locale/source/pt_BR.js +502 -0
- package/dist/locale/source/ro.d.ts +3 -0
- package/dist/locale/source/ro.js +502 -0
- package/dist/locale/source/ru_RU.d.ts +3 -0
- package/dist/locale/source/ru_RU.js +502 -0
- package/dist/locale/source/sk.d.ts +3 -0
- package/dist/locale/source/sk.js +502 -0
- package/dist/locale/source/sl.d.ts +3 -0
- package/dist/locale/source/sl.js +502 -0
- package/dist/locale/source/sq.d.ts +3 -0
- package/dist/locale/source/sq.js +502 -0
- package/dist/locale/source/sv_SE.d.ts +3 -0
- package/dist/locale/source/sv_SE.js +502 -0
- package/dist/locale/source/sw.d.ts +3 -0
- package/dist/locale/source/sw.js +502 -0
- package/dist/locale/source/th_TH.d.ts +3 -0
- package/dist/locale/source/th_TH.js +502 -0
- package/dist/locale/source/tr_TR.d.ts +3 -0
- package/dist/locale/source/tr_TR.js +502 -0
- package/dist/locale/source/uk_UA.d.ts +3 -0
- package/dist/locale/source/uk_UA.js +502 -0
- package/dist/locale/source/ur.d.ts +3 -0
- package/dist/locale/source/ur.js +502 -0
- package/dist/locale/source/uz.d.ts +3 -0
- package/dist/locale/source/uz.js +502 -0
- package/dist/locale/source/vi_VN.d.ts +3 -0
- package/dist/locale/source/vi_VN.js +502 -0
- package/dist/locale/source/zh_CN.d.ts +3 -0
- package/dist/locale/source/zh_CN.js +502 -0
- package/dist/locale/source/zh_TW.d.ts +3 -0
- package/dist/locale/source/zh_TW.js +502 -0
- package/dist/lottie/constants.d.ts +3 -0
- package/dist/lottie/constants.js +4 -0
- package/dist/lottie/foundation.d.ts +24 -0
- package/dist/lottie/foundation.js +62 -0
- package/dist/markdown-render/constants.d.ts +3 -0
- package/dist/markdown-render/constants.js +4 -0
- package/dist/markdown-render/foundation.d.ts +50 -0
- package/dist/markdown-render/foundation.js +101 -0
- package/dist/markdown-render/markdown-render.css +59 -0
- package/dist/markdown-render/markdown-render.scss +79 -0
- package/dist/markdown-render/variables.scss +31 -0
- package/dist/modal/animation.scss +25 -0
- package/dist/modal/confirm.d.ts +13 -0
- package/dist/modal/confirm.js +34 -0
- package/dist/modal/constants.d.ts +3 -0
- package/dist/modal/constants.js +4 -0
- package/dist/modal/modal-content-foundation.d.ts +40 -0
- package/dist/modal/modal-content-foundation.js +48 -0
- package/dist/modal/modal-foundation.d.ts +85 -0
- package/dist/modal/modal-foundation.js +74 -0
- package/dist/modal/modal.css +235 -0
- package/dist/modal/modal.scss +285 -0
- package/dist/modal/rtl.scss +10 -0
- package/dist/modal/variables.scss +70 -0
- package/dist/navigation/animation.scss +5 -0
- package/dist/navigation/constants.d.ts +17 -0
- package/dist/navigation/constants.js +20 -0
- package/dist/navigation/foundation.d.ts +75 -0
- package/dist/navigation/foundation.js +158 -0
- package/dist/navigation/item-foundation.d.ts +44 -0
- package/dist/navigation/item-foundation.js +42 -0
- package/dist/navigation/mixin.scss +100 -0
- package/dist/navigation/navigation.css +779 -0
- package/dist/navigation/navigation.scss +764 -0
- package/dist/navigation/rtl.scss +17 -0
- package/dist/navigation/sub-nav-foundation.d.ts +31 -0
- package/dist/navigation/sub-nav-foundation.js +54 -0
- package/dist/navigation/variables.scss +120 -0
- package/dist/notification/animation.scss +12 -0
- package/dist/notification/constants.d.ts +19 -0
- package/dist/notification/constants.js +32 -0
- package/dist/notification/notification-foundation.d.ts +33 -0
- package/dist/notification/notification-foundation.js +5 -0
- package/dist/notification/notification-list-foundation.d.ts +56 -0
- package/dist/notification/notification-list-foundation.js +49 -0
- package/dist/notification/notification.css +398 -0
- package/dist/notification/notification.scss +428 -0
- package/dist/notification/rtl.scss +9 -0
- package/dist/notification/variables.scss +41 -0
- package/dist/overflow-list/constants.d.ts +17 -0
- package/dist/overflow-list/constants.js +16 -0
- package/dist/overflow-list/foundation.d.ts +78 -0
- package/dist/overflow-list/foundation.js +189 -0
- package/dist/overflow-list/overflow-list.css +19 -0
- package/dist/overflow-list/overflow-list.scss +24 -0
- package/dist/overflow-list/rtl.scss +7 -0
- package/dist/pagination/animation.scss +11 -0
- package/dist/pagination/constants.d.ts +8 -0
- package/dist/pagination/constants.js +14 -0
- package/dist/pagination/foundation.d.ts +61 -0
- package/dist/pagination/foundation.js +175 -0
- package/dist/pagination/pagination.css +192 -0
- package/dist/pagination/pagination.scss +189 -0
- package/dist/pagination/rtl.scss +14 -0
- package/dist/pagination/variables.scss +45 -0
- package/dist/pincode/constants.d.ts +3 -0
- package/dist/pincode/constants.js +4 -0
- package/dist/pincode/foundation.d.ts +39 -0
- package/dist/pincode/foundation.js +86 -0
- package/dist/pincode/pincode.css +30 -0
- package/dist/pincode/pincode.scss +47 -0
- package/dist/pincode/variables.scss +9 -0
- package/dist/popconfirm/constants.d.ts +7 -0
- package/dist/popconfirm/constants.js +8 -0
- package/dist/popconfirm/popconfirm-foundation.d.ts +38 -0
- package/dist/popconfirm/popconfirm-foundation.js +57 -0
- package/dist/popconfirm/popconfirm.css +69 -0
- package/dist/popconfirm/popconfirm.scss +84 -0
- package/dist/popconfirm/rtl.scss +12 -0
- package/dist/popconfirm/variables.scss +26 -0
- package/dist/popover/animation.scss +5 -0
- package/dist/popover/constants.d.ts +21 -0
- package/dist/popover/constants.js +47 -0
- package/dist/popover/popover.css +212 -0
- package/dist/popover/popover.scss +64 -0
- package/dist/popover/rtl.scss +9 -0
- package/dist/popover/variables.scss +25 -0
- package/dist/progress/constants.d.ts +7 -0
- package/dist/progress/constants.js +8 -0
- package/dist/progress/generates.d.ts +11 -0
- package/dist/progress/generates.js +27 -0
- package/dist/progress/progress.css +142 -0
- package/dist/progress/progress.scss +170 -0
- package/dist/progress/rtl.scss +13 -0
- package/dist/progress/utils.d.ts +18 -0
- package/dist/progress/utils.js +45 -0
- package/dist/progress/variables.scss +26 -0
- package/dist/radio/animation.scss +9 -0
- package/dist/radio/constants.d.ts +16 -0
- package/dist/radio/constants.js +19 -0
- package/dist/radio/mixin.scss +3 -0
- package/dist/radio/radio-foundation.d.ts +78 -0
- package/dist/radio/radio-foundation.js +94 -0
- package/dist/radio/radio-group-foundation.d.ts +18 -0
- package/dist/radio/radio-group-foundation.js +27 -0
- package/dist/radio/radio.css +332 -0
- package/dist/radio/radio.scss +457 -0
- package/dist/radio/rtl.scss +11 -0
- package/dist/radio/variables.scss +107 -0
- package/dist/rating/animation.scss +7 -0
- package/dist/rating/constants.d.ts +6 -0
- package/dist/rating/constants.js +5 -0
- package/dist/rating/foundation.d.ts +109 -0
- package/dist/rating/foundation.js +167 -0
- package/dist/rating/rating.css +89 -0
- package/dist/rating/rating.scss +119 -0
- package/dist/rating/rtl.scss +9 -0
- package/dist/rating/variables.scss +19 -0
- package/dist/resizable/constants.d.ts +3 -0
- package/dist/resizable/constants.js +4 -0
- package/dist/resizable/foundation.d.ts +3 -0
- package/dist/resizable/foundation.js +3 -0
- package/dist/resizable/group/index.d.ts +55 -0
- package/dist/resizable/group/index.js +313 -0
- package/dist/resizable/resizable.css +125 -0
- package/dist/resizable/resizable.scss +147 -0
- package/dist/resizable/single/index.d.ts +90 -0
- package/dist/resizable/single/index.js +429 -0
- package/dist/resizable/types.d.ts +43 -0
- package/dist/resizable/types.js +18 -0
- package/dist/resizable/utils.d.ts +23 -0
- package/dist/resizable/utils.js +53 -0
- package/dist/resizable/variables.scss +10 -0
- package/dist/scroll-list/animation.scss +5 -0
- package/dist/scroll-list/constants.d.ts +8 -0
- package/dist/scroll-list/constants.js +11 -0
- package/dist/scroll-list/item-foundation.d.ts +56 -0
- package/dist/scroll-list/item-foundation.js +336 -0
- package/dist/scroll-list/rtl.scss +9 -0
- package/dist/scroll-list/scroll-list.css +178 -0
- package/dist/scroll-list/scroll-list.scss +198 -0
- package/dist/scroll-list/scroll-to.d.ts +2 -0
- package/dist/scroll-list/scroll-to.js +15 -0
- package/dist/scroll-list/variables.scss +50 -0
- package/dist/select/animation.scss +16 -0
- package/dist/select/combobox-name.d.ts +10 -0
- package/dist/select/combobox-name.js +21 -0
- package/dist/select/constants.d.ts +15 -0
- package/dist/select/constants.js +22 -0
- package/dist/select/foundation.d.ts +140 -0
- package/dist/select/foundation.js +775 -0
- package/dist/select/mixin.scss +8 -0
- package/dist/select/option-foundation.d.ts +51 -0
- package/dist/select/option-foundation.js +44 -0
- package/dist/select/option.scss +86 -0
- package/dist/select/rtl.scss +10 -0
- package/dist/select/select.css +533 -0
- package/dist/select/select.scss +554 -0
- package/dist/select/variables.scss +128 -0
- package/dist/side-sheet/animation.scss +17 -0
- package/dist/side-sheet/constants.d.ts +6 -0
- package/dist/side-sheet/constants.js +5 -0
- package/dist/side-sheet/rtl.scss +9 -0
- package/dist/side-sheet/side-sheet-foundation.d.ts +69 -0
- package/dist/side-sheet/side-sheet-foundation.js +54 -0
- package/dist/side-sheet/side-sheet.css +285 -0
- package/dist/side-sheet/side-sheet.scss +356 -0
- package/dist/side-sheet/variables.scss +27 -0
- package/dist/skeleton/animation.scss +4 -0
- package/dist/skeleton/constants.d.ts +3 -0
- package/dist/skeleton/constants.js +4 -0
- package/dist/skeleton/rtl.scss +9 -0
- package/dist/skeleton/skeleton.css +84 -0
- package/dist/skeleton/skeleton.scss +115 -0
- package/dist/skeleton/variables.scss +21 -0
- package/dist/slider/animation.scss +7 -0
- package/dist/slider/constants.d.ts +9 -0
- package/dist/slider/constants.js +12 -0
- package/dist/slider/foundation.d.ts +167 -0
- package/dist/slider/foundation.js +441 -0
- package/dist/slider/rtl.scss +23 -0
- package/dist/slider/slider.css +239 -0
- package/dist/slider/slider.scss +269 -0
- package/dist/slider/variables.scss +67 -0
- package/dist/sortable/accessibility.d.ts +14 -0
- package/dist/sortable/accessibility.js +45 -0
- package/dist/space/constants.d.ts +8 -0
- package/dist/space/constants.js +9 -0
- package/dist/space/rtl.scss +8 -0
- package/dist/space/space.css +46 -0
- package/dist/space/space.scss +65 -0
- package/dist/space/variables.scss +5 -0
- package/dist/spin/animation.scss +4 -0
- package/dist/spin/constants.d.ts +3 -0
- package/dist/spin/constants.js +3 -0
- package/dist/spin/foundation.d.ts +20 -0
- package/dist/spin/foundation.js +43 -0
- package/dist/spin/mixin.scss +7 -0
- package/dist/spin/rtl.scss +11 -0
- package/dist/spin/spin.css +97 -0
- package/dist/spin/spin.scss +111 -0
- package/dist/spin/variables.scss +11 -0
- package/dist/steps/animation.scss +15 -0
- package/dist/steps/bacis-steps.scss +338 -0
- package/dist/steps/constants.d.ts +5 -0
- package/dist/steps/constants.js +8 -0
- package/dist/steps/fill-steps.scss +179 -0
- package/dist/steps/mixin.scss +3 -0
- package/dist/steps/nav-steps.scss +66 -0
- package/dist/steps/rtl.scss +14 -0
- package/dist/steps/steps.css +523 -0
- package/dist/steps/steps.scss +17 -0
- package/dist/steps/utils.d.ts +10 -0
- package/dist/steps/utils.js +15 -0
- package/dist/steps/variables.scss +95 -0
- package/dist/switch/animation.scss +5 -0
- package/dist/switch/constants.d.ts +13 -0
- package/dist/switch/constants.js +16 -0
- package/dist/switch/foundation.d.ts +24 -0
- package/dist/switch/foundation.js +19 -0
- package/dist/switch/rtl.scss +98 -0
- package/dist/switch/switch.css +293 -0
- package/dist/switch/switch.scss +317 -0
- package/dist/switch/variables.scss +75 -0
- package/dist/table/animation.scss +7 -0
- package/dist/table/constants.d.ts +62 -0
- package/dist/table/constants.js +97 -0
- package/dist/table/foundation.d.ts +354 -0
- package/dist/table/foundation.js +870 -0
- package/dist/table/mixin.scss +12 -0
- package/dist/table/operation-panel.scss +42 -0
- package/dist/table/rtl.scss +24 -0
- package/dist/table/table.css +636 -0
- package/dist/table/table.scss +789 -0
- package/dist/table/utils.d.ts +187 -0
- package/dist/table/utils.js +482 -0
- package/dist/table/variables.scss +85 -0
- package/dist/tabs/animation.scss +30 -0
- package/dist/tabs/constants.d.ts +28 -0
- package/dist/tabs/constants.js +37 -0
- package/dist/tabs/foundation.d.ts +91 -0
- package/dist/tabs/foundation.js +189 -0
- package/dist/tabs/rtl.scss +16 -0
- package/dist/tabs/tabs.css +699 -0
- package/dist/tabs/tabs.scss +933 -0
- package/dist/tabs/variables.scss +155 -0
- package/dist/tag/constants.d.ts +8 -0
- package/dist/tag/constants.js +35 -0
- package/dist/tag/focus.d.ts +6 -0
- package/dist/tag/focus.js +23 -0
- package/dist/tag/mixin.scss +18 -0
- package/dist/tag/rtl.scss +12 -0
- package/dist/tag/tag-key.d.ts +9 -0
- package/dist/tag/tag-key.js +18 -0
- package/dist/tag/tag.css +537 -0
- package/dist/tag/tag.scss +359 -0
- package/dist/tag/variables.scss +85 -0
- package/dist/tag-input/animation.scss +9 -0
- package/dist/tag-input/constants.d.ts +6 -0
- package/dist/tag-input/constants.js +9 -0
- package/dist/tag-input/foundation.d.ts +91 -0
- package/dist/tag-input/foundation.js +222 -0
- package/dist/tag-input/rtl.scss +9 -0
- package/dist/tag-input/tag-input.css +297 -0
- package/dist/tag-input/tag-input.scss +358 -0
- package/dist/tag-input/utils/get-splited-array.d.ts +4 -0
- package/dist/tag-input/utils/get-splited-array.js +16 -0
- package/dist/tag-input/utils/tag-focus.d.ts +3 -0
- package/dist/tag-input/utils/tag-focus.js +15 -0
- package/dist/tag-input/variables.scss +57 -0
- package/dist/theme/_font.scss +49 -0
- package/dist/theme/_palette.scss +474 -0
- package/dist/theme/animation.scss +40 -0
- package/dist/theme/global.scss +287 -0
- package/dist/theme/index.scss +3 -0
- package/dist/theme/mixin.scss +66 -0
- package/dist/theme/variables.scss +56 -0
- package/dist/time-picker/combox-foundation.d.ts +79 -0
- package/dist/time-picker/combox-foundation.js +103 -0
- package/dist/time-picker/constants.d.ts +18 -0
- package/dist/time-picker/constants.js +23 -0
- package/dist/time-picker/foundation.d.ts +108 -0
- package/dist/time-picker/foundation.js +254 -0
- package/dist/time-picker/input-foundation.d.ts +15 -0
- package/dist/time-picker/input-foundation.js +33 -0
- package/dist/time-picker/rtl.scss +10 -0
- package/dist/time-picker/time-picker.css +82 -0
- package/dist/time-picker/time-picker.scss +128 -0
- package/dist/time-picker/utils/index.d.ts +18 -0
- package/dist/time-picker/utils/index.js +68 -0
- package/dist/time-picker/variables.scss +19 -0
- package/dist/timeline/constants.d.ts +4 -0
- package/dist/timeline/constants.js +7 -0
- package/dist/timeline/rtl.scss +13 -0
- package/dist/timeline/timeline.css +137 -0
- package/dist/timeline/timeline.scss +190 -0
- package/dist/timeline/utils.d.ts +3 -0
- package/dist/timeline/utils.js +10 -0
- package/dist/timeline/variables.scss +48 -0
- package/dist/toast/animation.scss +16 -0
- package/dist/toast/constants.d.ts +25 -0
- package/dist/toast/constants.js +34 -0
- package/dist/toast/rtl.scss +9 -0
- package/dist/toast/toast-foundation.d.ts +37 -0
- package/dist/toast/toast-foundation.js +5 -0
- package/dist/toast/toast-list-foundation.d.ts +25 -0
- package/dist/toast/toast-list-foundation.js +54 -0
- package/dist/toast/toast.css +174 -0
- package/dist/toast/toast.scss +238 -0
- package/dist/toast/variables.scss +45 -0
- package/dist/tooltip/adjust-position.d.ts +41 -0
- package/dist/tooltip/adjust-position.js +202 -0
- package/dist/tooltip/animation.scss +4 -0
- package/dist/tooltip/arrow.scss +178 -0
- package/dist/tooltip/constants.d.ts +50 -0
- package/dist/tooltip/constants.js +96 -0
- package/dist/tooltip/foundation.d.ts +105 -0
- package/dist/tooltip/foundation.js +650 -0
- package/dist/tooltip/position.scss +63 -0
- package/dist/tooltip/rtl.scss +9 -0
- package/dist/tooltip/tooltip.css +229 -0
- package/dist/tooltip/tooltip.scss +72 -0
- package/dist/tooltip/variables.scss +34 -0
- package/dist/transfer/animation.scss +5 -0
- package/dist/transfer/constants.d.ts +11 -0
- package/dist/transfer/constants.js +10 -0
- package/dist/transfer/foundation.d.ts +112 -0
- package/dist/transfer/foundation.js +179 -0
- package/dist/transfer/rtl.scss +9 -0
- package/dist/transfer/transfer-utils.d.ts +5 -0
- package/dist/transfer/transfer-utils.js +45 -0
- package/dist/transfer/transfer.css +237 -0
- package/dist/transfer/transfer.scss +260 -0
- package/dist/transfer/variables.scss +50 -0
- package/dist/tree/animation.scss +7 -0
- package/dist/tree/constants.d.ts +7 -0
- package/dist/tree/constants.js +8 -0
- package/dist/tree/foundation.d.ts +296 -0
- package/dist/tree/foundation.js +539 -0
- package/dist/tree/rtl.scss +16 -0
- package/dist/tree/shared.d.ts +128 -0
- package/dist/tree/shared.js +308 -0
- package/dist/tree/tree-util.d.ts +105 -0
- package/dist/tree/tree-util.js +455 -0
- package/dist/tree/tree.css +387 -0
- package/dist/tree/tree.scss +439 -0
- package/dist/tree/variables.scss +39 -0
- package/dist/tree-select/constants.d.ts +11 -0
- package/dist/tree-select/constants.js +19 -0
- package/dist/tree-select/foundation.d.ts +176 -0
- package/dist/tree-select/foundation.js +610 -0
- package/dist/tree-select/rtl.scss +9 -0
- package/dist/tree-select/tree-select.css +376 -0
- package/dist/tree-select/tree-select.scss +467 -0
- package/dist/tree-select/variables.scss +90 -0
- package/dist/typography/constants.d.ts +12 -0
- package/dist/typography/constants.js +50 -0
- package/dist/typography/ellipsis.d.ts +36 -0
- package/dist/typography/ellipsis.js +156 -0
- package/dist/typography/format-numeral.d.ts +10 -0
- package/dist/typography/format-numeral.js +99 -0
- package/dist/typography/rtl.scss +13 -0
- package/dist/typography/typography.css +380 -0
- package/dist/typography/typography.scss +384 -0
- package/dist/typography/variables.scss +94 -0
- package/dist/upload/constants.d.ts +24 -0
- package/dist/upload/constants.js +39 -0
- package/dist/upload/foundation.d.ts +187 -0
- package/dist/upload/foundation.js +762 -0
- package/dist/upload/rtl.scss +13 -0
- package/dist/upload/upload.css +599 -0
- package/dist/upload/upload.scss +640 -0
- package/dist/upload/utils.d.ts +25 -0
- package/dist/upload/utils.js +98 -0
- package/dist/upload/variables.scss +89 -0
- package/dist/user-guide/animation.scss +4 -0
- package/dist/user-guide/constants.d.ts +9 -0
- package/dist/user-guide/constants.js +12 -0
- package/dist/user-guide/foundation.d.ts +47 -0
- package/dist/user-guide/foundation.js +73 -0
- package/dist/user-guide/user-guide.css +120 -0
- package/dist/user-guide/user-guide.scss +151 -0
- package/dist/user-guide/variables.scss +40 -0
- package/dist/utils/a11y.d.ts +99 -0
- package/dist/utils/a11y.js +168 -0
- package/dist/utils/animated-height.d.ts +8 -0
- package/dist/utils/animated-height.js +28 -0
- package/dist/utils/announcer.d.ts +35 -0
- package/dist/utils/announcer.js +54 -0
- package/dist/utils/array-move.d.ts +1 -0
- package/dist/utils/array-move.js +5 -0
- package/dist/utils/array.d.ts +10 -0
- package/dist/utils/array.js +21 -0
- package/dist/utils/classnames.d.ts +2 -0
- package/dist/utils/classnames.js +10 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/clipboard.js +5 -0
- package/dist/utils/date-fns-extra.d.ts +38 -0
- package/dist/utils/date-fns-extra.js +105 -0
- package/dist/utils/dom.d.ts +31 -0
- package/dist/utils/dom.js +53 -0
- package/dist/utils/escape-html.d.ts +9 -0
- package/dist/utils/escape-html.js +67 -0
- package/dist/utils/event.d.ts +9 -0
- package/dist/utils/event.js +36 -0
- package/dist/utils/field-sizing.d.ts +15 -0
- package/dist/utils/field-sizing.js +52 -0
- package/dist/utils/focus-handle.d.ts +44 -0
- package/dist/utils/focus-handle.js +93 -0
- package/dist/utils/focus-handover.d.ts +11 -0
- package/dist/utils/focus-handover.js +22 -0
- package/dist/utils/focus-scope.d.ts +25 -0
- package/dist/utils/focus-scope.js +78 -0
- package/dist/utils/function.d.ts +1 -0
- package/dist/utils/function.js +3 -0
- package/dist/utils/get-data-attr.d.ts +3 -0
- package/dist/utils/get-data-attr.js +5 -0
- package/dist/utils/is-element.d.ts +1 -0
- package/dist/utils/is-element.js +5 -0
- package/dist/utils/is-enter-press.d.ts +3 -0
- package/dist/utils/is-enter-press.js +6 -0
- package/dist/utils/is-object.d.ts +1 -0
- package/dist/utils/is-object.js +5 -0
- package/dist/utils/is-promise.d.ts +1 -0
- package/dist/utils/is-promise.js +6 -0
- package/dist/utils/is-valid-time-zone.d.ts +1 -0
- package/dist/utils/is-valid-time-zone.js +5 -0
- package/dist/utils/key-code.d.ts +12 -0
- package/dist/utils/key-code.js +11 -0
- package/dist/utils/layer.d.ts +25 -0
- package/dist/utils/layer.js +73 -0
- package/dist/utils/object.d.ts +10 -0
- package/dist/utils/object.js +66 -0
- package/dist/utils/pointer.d.ts +1 -0
- package/dist/utils/pointer.js +5 -0
- package/dist/utils/release-holder.d.ts +9 -0
- package/dist/utils/release-holder.js +18 -0
- package/dist/utils/scroll-lock.d.ts +7 -0
- package/dist/utils/scroll-lock.js +38 -0
- package/dist/utils/shallow-equal-objects.d.ts +5 -0
- package/dist/utils/shallow-equal-objects.js +8 -0
- package/dist/utils/supports.d.ts +18 -0
- package/dist/utils/supports.js +93 -0
- package/dist/utils/tween.d.ts +14 -0
- package/dist/utils/tween.js +16 -0
- package/dist/utils/type.d.ts +2 -0
- package/dist/utils/type.js +0 -0
- package/dist/utils/uuid.d.ts +2 -0
- package/dist/utils/uuid.js +7 -0
- package/dist/utils/warning.d.ts +8 -0
- package/dist/utils/warning.js +14 -0
- package/dist/video-player/animation.scss +7 -0
- package/dist/video-player/constants.d.ts +27 -0
- package/dist/video-player/constants.js +48 -0
- package/dist/video-player/foundation.d.ts +94 -0
- package/dist/video-player/foundation.js +287 -0
- package/dist/video-player/progress-foundation.d.ts +80 -0
- package/dist/video-player/progress-foundation.js +117 -0
- package/dist/video-player/utils.d.ts +24 -0
- package/dist/video-player/utils.js +50 -0
- package/dist/video-player/variables.scss +69 -0
- package/dist/video-player/video-player.css +282 -0
- package/dist/video-player/video-player.scss +344 -0
- package/package.json +53 -3
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export declare function handlePrevent(event: any): void;
|
|
2
|
+
/**
|
|
3
|
+
* Space-separated ids for aria-labelledby and aria-describedby, undefined when there are none; the caller's ids go
|
|
4
|
+
* first, so the Form's ids are added to them instead of replacing them
|
|
5
|
+
*/
|
|
6
|
+
export declare function joinIds(...ids: unknown[]): string | undefined;
|
|
7
|
+
export declare function setFocusToItem(itemNodes: HTMLElement[], targetItem: HTMLElement): void;
|
|
8
|
+
export declare function setFocusToFirstItem(itemNodes: HTMLElement[]): void;
|
|
9
|
+
export declare function setFocusToLastItem(itemNodes: HTMLElement[]): void;
|
|
10
|
+
export interface ListNavigationOptions {
|
|
11
|
+
/** Arrows past either end wrap around instead of staying */
|
|
12
|
+
loop?: boolean;
|
|
13
|
+
/** Which arrows step: Up and Down for a vertical list, Left and Right (swapped in RTL) for a horizontal one */
|
|
14
|
+
orientation?: 'vertical' | 'horizontal';
|
|
15
|
+
rtl?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The item an arrow, Home or End key moves to in a list of `count` items (APG listbox, menu and the rows of a tree),
|
|
19
|
+
* skipping disabled items. From no item (`current` -1) the forward arrow goes to the first item and the backward
|
|
20
|
+
* arrow to the last. Returns null for any other key and for an empty list, and `current` when nothing further is
|
|
21
|
+
* enabled, so a handled key can still prevent the page from scrolling.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getListTargetIndex(key: string, current: number, count: number, isDisabled: (index: number) => boolean, { loop, orientation, rtl }?: ListNavigationOptions): number | null;
|
|
24
|
+
/**
|
|
25
|
+
* The enabled item one arrow step from `current` in a list that keeps its highlight outside the DOM (Select,
|
|
26
|
+
* AutoComplete), wrapping at both ends, or -1 when every item is disabled. `current` may be -1 or stale after the
|
|
27
|
+
* list shrank: a forward step then starts at the first item and a backward step at the last.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getEnabledStepIndex(offset: number, current: number, count: number, isDisabled: (index: number) => boolean): number;
|
|
30
|
+
/** Whether keys on `target` edit text, so they must not type-to-select or activate: a custom search may be any editor */
|
|
31
|
+
export declare function isTextEditor(target: EventTarget | null): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the event comes from an interactive element inside a trigger (a button, `role="button"` such as a
|
|
34
|
+
* selected tag, link, select, checkbox) rather than from the combobox the trigger acts as. Text fields are not
|
|
35
|
+
* listed: in a trigger one is the search field that drives the list. A control that is the trigger itself or wraps
|
|
36
|
+
* it does not count. The control need not be a DOM descendant, because a React portal inside the trigger (the
|
|
37
|
+
* rest-tags popover) still bubbles its events through it.
|
|
38
|
+
*/
|
|
39
|
+
export declare function isInnerControl({ target, currentTarget }: {
|
|
40
|
+
target: EventTarget | null;
|
|
41
|
+
currentTarget: EventTarget | null;
|
|
42
|
+
}): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the key belongs to an inner control (see `isInnerControl`), so Enter or an arrow on a clear button presses
|
|
45
|
+
* it instead of opening the popup. Escape and Tab keep closing the popup from anywhere.
|
|
46
|
+
*/
|
|
47
|
+
export declare function isInnerControlKey(event: {
|
|
48
|
+
key: string;
|
|
49
|
+
target: EventTarget | null;
|
|
50
|
+
currentTarget: EventTarget | null;
|
|
51
|
+
}): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The button's half of `isInnerControlKey`: the trigger leaves keys on an inner button alone, and the button keeps
|
|
54
|
+
* the Enter and Space that press it from bubbling to the combobox's onKeyDown or a host's key handler (AutoComplete
|
|
55
|
+
* picks on Enter).
|
|
56
|
+
*/
|
|
57
|
+
export declare function stopButtonActivationKeys(event: {
|
|
58
|
+
key: string;
|
|
59
|
+
stopPropagation(): void;
|
|
60
|
+
}): void;
|
|
61
|
+
/**
|
|
62
|
+
* Whether a trigger click is an inner control (see `isInnerControl`) activated from the keyboard: Enter and Space on a
|
|
63
|
+
* button or a `role="button"` tag click it without a pointer (detail 0), and that click bubbles to the trigger. The
|
|
64
|
+
* key already belongs to the control, so the trigger must not open or close its popup on it; a pointer click on the
|
|
65
|
+
* same control still does.
|
|
66
|
+
*/
|
|
67
|
+
export declare function isInnerControlActivation(event: {
|
|
68
|
+
detail: number;
|
|
69
|
+
target: EventTarget | null;
|
|
70
|
+
currentTarget: EventTarget | null;
|
|
71
|
+
}): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Type-to-select for one list (APG listbox, menu, tree): characters typed in quick succession form a search string
|
|
74
|
+
* that the next matching label must start with; typing the same character again cycles through the labels that start
|
|
75
|
+
* with it. Each list keeps its own instance, because the typed string belongs to that list.
|
|
76
|
+
*/
|
|
77
|
+
export declare class Typeahead {
|
|
78
|
+
#private;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the key event is a character for the search; Space only continues a search, otherwise it activates.
|
|
81
|
+
* Shortcuts (Ctrl, Meta, Alt) never type, so callers cannot forget to filter them.
|
|
82
|
+
*/
|
|
83
|
+
accepts({ key, ctrlKey, metaKey, altKey }: Pick<KeyboardEvent, 'key'> & Partial<Pick<KeyboardEvent, 'ctrlKey' | 'metaKey' | 'altKey'>>): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* The index of the label the typed characters lead to, or -1 when none matches. An item that cannot be chosen
|
|
86
|
+
* (disabled) passes an empty label.
|
|
87
|
+
*/
|
|
88
|
+
match(key: string, labels: string[], current: number): number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Development-only: warns when a dialog has no accessible name, which screen readers would announce as just
|
|
92
|
+
* "dialog". The name comes from `aria-label` or from the element `aria-labelledby` points at (usually the title).
|
|
93
|
+
*/
|
|
94
|
+
export declare function warnIfDialogUnnamed(dialog: HTMLElement | null, component: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* `root`: the document or shadow root the popup lives in, which also holds its trigger (the popup is portaled into the
|
|
97
|
+
* trigger's root). A token match: a trigger shared by nested popups lists every popup id.
|
|
98
|
+
*/
|
|
99
|
+
export declare function getMenuButton(id: string, root: ParentNode): HTMLElement | null;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { isDev } from "./warning.js";
|
|
2
|
+
// src/utils/a11y.ts
|
|
3
|
+
function handlePrevent(event) {
|
|
4
|
+
event.stopPropagation();
|
|
5
|
+
event.preventDefault();
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Space-separated ids for aria-labelledby and aria-describedby, undefined when there are none; the caller's ids go
|
|
9
|
+
* first, so the Form's ids are added to them instead of replacing them
|
|
10
|
+
*/
|
|
11
|
+
function joinIds(...ids) {
|
|
12
|
+
return ids.filter((id) => typeof id === "string" && id !== "").join(" ") || void 0;
|
|
13
|
+
}
|
|
14
|
+
function isPrintableCharacter(key) {
|
|
15
|
+
return /^\S$/u.test(key);
|
|
16
|
+
}
|
|
17
|
+
function setFocusToItem(itemNodes, targetItem) {
|
|
18
|
+
for (let i = 0; i < itemNodes.length; i++) if (itemNodes[i] === targetItem) {
|
|
19
|
+
itemNodes[i].tabIndex = 0;
|
|
20
|
+
itemNodes[i].focus();
|
|
21
|
+
} else itemNodes[i].tabIndex = -1;
|
|
22
|
+
}
|
|
23
|
+
function setFocusToFirstItem(itemNodes) {
|
|
24
|
+
if (itemNodes.length > 0) setFocusToItem(itemNodes, itemNodes[0]);
|
|
25
|
+
}
|
|
26
|
+
function setFocusToLastItem(itemNodes) {
|
|
27
|
+
if (itemNodes.length > 0) setFocusToItem(itemNodes, itemNodes.at(-1));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The item an arrow, Home or End key moves to in a list of `count` items (APG listbox, menu and the rows of a tree),
|
|
31
|
+
* skipping disabled items. From no item (`current` -1) the forward arrow goes to the first item and the backward
|
|
32
|
+
* arrow to the last. Returns null for any other key and for an empty list, and `current` when nothing further is
|
|
33
|
+
* enabled, so a handled key can still prevent the page from scrolling.
|
|
34
|
+
*/
|
|
35
|
+
function getListTargetIndex(key, current, count, isDisabled, { loop = false, orientation = "vertical", rtl = false } = {}) {
|
|
36
|
+
if (count === 0) return null;
|
|
37
|
+
const [back, forward] = orientation === "vertical" ? ["ArrowUp", "ArrowDown"] : rtl ? ["ArrowRight", "ArrowLeft"] : ["ArrowLeft", "ArrowRight"];
|
|
38
|
+
let start;
|
|
39
|
+
let step;
|
|
40
|
+
let wrap = loop;
|
|
41
|
+
if (key === "Home") [start, step, wrap] = [
|
|
42
|
+
-1,
|
|
43
|
+
1,
|
|
44
|
+
false
|
|
45
|
+
];
|
|
46
|
+
else if (key === "End") [start, step, wrap] = [
|
|
47
|
+
count,
|
|
48
|
+
-1,
|
|
49
|
+
false
|
|
50
|
+
];
|
|
51
|
+
else if (key === forward) [start, step] = [current, 1];
|
|
52
|
+
else if (key === back) [start, step] = [current === -1 ? count : current, -1];
|
|
53
|
+
else return null;
|
|
54
|
+
let index = start;
|
|
55
|
+
for (let visited = 0; visited < count; visited++) {
|
|
56
|
+
index += step;
|
|
57
|
+
if (index < 0 || index >= count) {
|
|
58
|
+
if (!wrap) break;
|
|
59
|
+
index = (index + count) % count;
|
|
60
|
+
}
|
|
61
|
+
if (!isDisabled(index)) return index;
|
|
62
|
+
}
|
|
63
|
+
return current;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The enabled item one arrow step from `current` in a list that keeps its highlight outside the DOM (Select,
|
|
67
|
+
* AutoComplete), wrapping at both ends, or -1 when every item is disabled. `current` may be -1 or stale after the
|
|
68
|
+
* list shrank: a forward step then starts at the first item and a backward step at the last.
|
|
69
|
+
*/
|
|
70
|
+
function getEnabledStepIndex(offset, current, count, isDisabled) {
|
|
71
|
+
const target = getListTargetIndex(offset > 0 ? "ArrowDown" : "ArrowUp", current < 0 || current >= count ? offset > 0 ? -1 : count : current, count, isDisabled, { loop: true });
|
|
72
|
+
return target === null || target < 0 || target >= count || isDisabled(target) ? -1 : target;
|
|
73
|
+
}
|
|
74
|
+
/** Whether keys on `target` edit text, so they must not type-to-select or activate: a custom search may be any editor */
|
|
75
|
+
function isTextEditor(target) {
|
|
76
|
+
return target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Whether the event comes from an interactive element inside a trigger (a button, `role="button"` such as a
|
|
80
|
+
* selected tag, link, select, checkbox) rather than from the combobox the trigger acts as. Text fields are not
|
|
81
|
+
* listed: in a trigger one is the search field that drives the list. A control that is the trigger itself or wraps
|
|
82
|
+
* it does not count. The control need not be a DOM descendant, because a React portal inside the trigger (the
|
|
83
|
+
* rest-tags popover) still bubbles its events through it.
|
|
84
|
+
*/
|
|
85
|
+
function isInnerControl({ target, currentTarget }) {
|
|
86
|
+
const control = target instanceof Element ? target.closest("button, [role=\"button\"], a[href], select, summary, input:is([type=\"button\"], [type=\"submit\"], [type=\"reset\"], [type=\"image\"], [type=\"checkbox\"], [type=\"radio\"])") : null;
|
|
87
|
+
return control !== null && currentTarget instanceof Node && !control.contains(currentTarget);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Whether the key belongs to an inner control (see `isInnerControl`), so Enter or an arrow on a clear button presses
|
|
91
|
+
* it instead of opening the popup. Escape and Tab keep closing the popup from anywhere.
|
|
92
|
+
*/
|
|
93
|
+
function isInnerControlKey(event) {
|
|
94
|
+
return event.key !== "Escape" && event.key !== "Tab" && isInnerControl(event);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The button's half of `isInnerControlKey`: the trigger leaves keys on an inner button alone, and the button keeps
|
|
98
|
+
* the Enter and Space that press it from bubbling to the combobox's onKeyDown or a host's key handler (AutoComplete
|
|
99
|
+
* picks on Enter).
|
|
100
|
+
*/
|
|
101
|
+
function stopButtonActivationKeys(event) {
|
|
102
|
+
if (event.key === "Enter" || event.key === " ") event.stopPropagation();
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Whether a trigger click is an inner control (see `isInnerControl`) activated from the keyboard: Enter and Space on a
|
|
106
|
+
* button or a `role="button"` tag click it without a pointer (detail 0), and that click bubbles to the trigger. The
|
|
107
|
+
* key already belongs to the control, so the trigger must not open or close its popup on it; a pointer click on the
|
|
108
|
+
* same control still does.
|
|
109
|
+
*/
|
|
110
|
+
function isInnerControlActivation(event) {
|
|
111
|
+
return event.detail === 0 && isInnerControl(event);
|
|
112
|
+
}
|
|
113
|
+
const TYPEAHEAD_PAUSE = 500;
|
|
114
|
+
/**
|
|
115
|
+
* Type-to-select for one list (APG listbox, menu, tree): characters typed in quick succession form a search string
|
|
116
|
+
* that the next matching label must start with; typing the same character again cycles through the labels that start
|
|
117
|
+
* with it. Each list keeps its own instance, because the typed string belongs to that list.
|
|
118
|
+
*/
|
|
119
|
+
var Typeahead = class {
|
|
120
|
+
#search = "";
|
|
121
|
+
#lastTyped = 0;
|
|
122
|
+
#isActive() {
|
|
123
|
+
return this.#search !== "" && Date.now() - this.#lastTyped < TYPEAHEAD_PAUSE;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Whether the key event is a character for the search; Space only continues a search, otherwise it activates.
|
|
127
|
+
* Shortcuts (Ctrl, Meta, Alt) never type, so callers cannot forget to filter them.
|
|
128
|
+
*/
|
|
129
|
+
accepts({ key, ctrlKey, metaKey, altKey }) {
|
|
130
|
+
if (ctrlKey || metaKey || altKey) return false;
|
|
131
|
+
return isPrintableCharacter(key) || key === " " && this.#isActive();
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The index of the label the typed characters lead to, or -1 when none matches. An item that cannot be chosen
|
|
135
|
+
* (disabled) passes an empty label.
|
|
136
|
+
*/
|
|
137
|
+
match(key, labels, current) {
|
|
138
|
+
this.#search = this.#isActive() ? this.#search + key.toLowerCase() : key.toLowerCase();
|
|
139
|
+
this.#lastTyped = Date.now();
|
|
140
|
+
const isRepeat = /^(.)\1*$/su.test(this.#search);
|
|
141
|
+
const search = isRepeat ? this.#search[0] : this.#search;
|
|
142
|
+
const start = current === -1 ? 0 : current + (isRepeat ? 1 : 0);
|
|
143
|
+
for (let i = 0; i < labels.length; i++) {
|
|
144
|
+
const index = (start + i) % labels.length;
|
|
145
|
+
if (labels[index].trim().toLowerCase().startsWith(search)) return index;
|
|
146
|
+
}
|
|
147
|
+
return -1;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Development-only: warns when a dialog has no accessible name, which screen readers would announce as just
|
|
152
|
+
* "dialog". The name comes from `aria-label` or from the element `aria-labelledby` points at (usually the title).
|
|
153
|
+
*/
|
|
154
|
+
function warnIfDialogUnnamed(dialog, component) {
|
|
155
|
+
if (!isDev() || !dialog) return;
|
|
156
|
+
const labelledBy = dialog.getAttribute("aria-labelledby");
|
|
157
|
+
const root = dialog.getRootNode();
|
|
158
|
+
const hasLabelElement = labelledBy?.split(/\s+/).some((id) => root.getElementById(id)?.textContent.trim());
|
|
159
|
+
if (!dialog.getAttribute("aria-label")?.trim() && !hasLabelElement) console.warn(`Warning: [Semi ${component}] the dialog has no accessible name. Pass \`title\`, \`aria-label\` or \`aria-labelledby\`.`);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* `root`: the document or shadow root the popup lives in, which also holds its trigger (the popup is portaled into the
|
|
163
|
+
* trigger's root). A token match: a trigger shared by nested popups lists every popup id.
|
|
164
|
+
*/
|
|
165
|
+
function getMenuButton(id, root) {
|
|
166
|
+
return root.querySelector(`[data-popupid~="${CSS.escape(id)}"]`);
|
|
167
|
+
}
|
|
168
|
+
export { Typeahead, getEnabledStepIndex, getListTargetIndex, getMenuButton, handlePrevent, isInnerControl, isInnerControlActivation, isInnerControlKey, isTextEditor, joinIds, setFocusToFirstItem, setFocusToItem, setFocusToLastItem, stopButtonActivationKeys, warnIfDialogUnnamed };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enter and leave keyframes that grow an element from `height: 0` or collapse it to 0 run against its auto height,
|
|
3
|
+
* which only interpolates under `interpolate-size` (Chrome 129); elsewhere the height jumps halfway through. This
|
|
4
|
+
* writes the element's natural height inline as a length while its animations run, so the keyframes interpolate in
|
|
5
|
+
* every browser. Hosts call it once the animation class is on the element; it does nothing where interpolate-size
|
|
6
|
+
* works. Removable once Firefox and Safari support interpolate-size.
|
|
7
|
+
*/
|
|
8
|
+
export declare function pinAnimatedHeight(element?: Element | null): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/utils/animated-height.ts
|
|
2
|
+
/**
|
|
3
|
+
* Enter and leave keyframes that grow an element from `height: 0` or collapse it to 0 run against its auto height,
|
|
4
|
+
* which only interpolates under `interpolate-size` (Chrome 129); elsewhere the height jumps halfway through. This
|
|
5
|
+
* writes the element's natural height inline as a length while its animations run, so the keyframes interpolate in
|
|
6
|
+
* every browser. Hosts call it once the animation class is on the element; it does nothing where interpolate-size
|
|
7
|
+
* works. Removable once Firefox and Safari support interpolate-size.
|
|
8
|
+
*/
|
|
9
|
+
function pinAnimatedHeight(element) {
|
|
10
|
+
if (!(element instanceof HTMLElement) || CSS.supports("interpolate-size", "allow-keywords")) return;
|
|
11
|
+
const animations = element.getAnimations().filter((animation) => "animationName" in animation);
|
|
12
|
+
if (!animations.some((animation) => animation.effect?.getKeyframes().some((keyframe) => "height" in keyframe))) return;
|
|
13
|
+
element.style.removeProperty("height");
|
|
14
|
+
const saved = animations.map((animation) => animation.currentTime);
|
|
15
|
+
const heightAt = (end) => {
|
|
16
|
+
for (const animation of animations) animation.currentTime = end ? Number(animation.effect?.getComputedTiming().endTime ?? 0) : 0;
|
|
17
|
+
return element.offsetHeight;
|
|
18
|
+
};
|
|
19
|
+
const height = `${Math.max(heightAt(false), heightAt(true))}px`;
|
|
20
|
+
animations.forEach((animation, index) => {
|
|
21
|
+
if (saved[index] !== null) animation.currentTime = saved[index];
|
|
22
|
+
});
|
|
23
|
+
element.style.height = height;
|
|
24
|
+
Promise.allSettled(animations.map((animation) => animation.finished)).then(() => {
|
|
25
|
+
if (element.style.height === height) element.style.removeProperty("height");
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export { pinAnimatedHeight };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Delay before the text is written: a live region only announces changes made after it was registered. */
|
|
2
|
+
export declare const ANNOUNCE_DELAY = 100;
|
|
3
|
+
/** How long the text stays, so the same message announced again later still counts as a change. */
|
|
4
|
+
export declare const ANNOUNCE_HOLD = 1000;
|
|
5
|
+
/**
|
|
6
|
+
* Whether a Toast or Notification of this type is an alert, which its own `role="alert"` announces; the list's
|
|
7
|
+
* announcer skips it so it is not read twice.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isAlertType(type?: string): type is "error" | "warning";
|
|
10
|
+
/**
|
|
11
|
+
* The messages for the list's announcer: those new since `shownIds` (the ids of the previous render) or updated in
|
|
12
|
+
* place, alerts excepted. The caller owns `shownIds` and replaces it with the current ids afterwards.
|
|
13
|
+
*/
|
|
14
|
+
export declare function pickFreshAnnouncements<T extends {
|
|
15
|
+
id?: string;
|
|
16
|
+
type?: string;
|
|
17
|
+
}>(items: readonly T[], shownIds: ReadonlySet<string | undefined>, updatedItems: readonly {
|
|
18
|
+
id?: string;
|
|
19
|
+
}[]): T[];
|
|
20
|
+
/** What a Notification announces: its title and content, without the icon and close button */
|
|
21
|
+
export declare function readNoticeText(notice: Element | null | undefined, prefixCls: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Feeds a persistent live region. Screen readers announce a status element that is inserted together with its text
|
|
24
|
+
* only some of the time, so messages are written into a region that already exists, in a later task.
|
|
25
|
+
*/
|
|
26
|
+
export default class Announcer {
|
|
27
|
+
#private;
|
|
28
|
+
constructor(write: (text: string) => void);
|
|
29
|
+
/**
|
|
30
|
+
* `read` runs at write time, when the message elements are in the document. Messages queued together are read as one;
|
|
31
|
+
* a later call with the same `key` replaces the earlier one, so an in-place update is announced once.
|
|
32
|
+
*/
|
|
33
|
+
announce(key: string, read: () => string): void;
|
|
34
|
+
dispose(): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// src/utils/announcer.ts
|
|
2
|
+
/** Delay before the text is written: a live region only announces changes made after it was registered. */
|
|
3
|
+
const ANNOUNCE_DELAY = 100;
|
|
4
|
+
/** How long the text stays, so the same message announced again later still counts as a change. */
|
|
5
|
+
const ANNOUNCE_HOLD = 1e3;
|
|
6
|
+
/**
|
|
7
|
+
* Whether a Toast or Notification of this type is an alert, which its own `role="alert"` announces; the list's
|
|
8
|
+
* announcer skips it so it is not read twice.
|
|
9
|
+
*/
|
|
10
|
+
function isAlertType(type) {
|
|
11
|
+
return type === "warning" || type === "error";
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The messages for the list's announcer: those new since `shownIds` (the ids of the previous render) or updated in
|
|
15
|
+
* place, alerts excepted. The caller owns `shownIds` and replaces it with the current ids afterwards.
|
|
16
|
+
*/
|
|
17
|
+
function pickFreshAnnouncements(items, shownIds, updatedItems) {
|
|
18
|
+
return items.filter((item) => (!shownIds.has(item.id) || updatedItems.some((updated) => updated.id === item.id)) && !isAlertType(item.type));
|
|
19
|
+
}
|
|
20
|
+
/** What a Notification announces: its title and content, without the icon and close button */
|
|
21
|
+
function readNoticeText(notice, prefixCls) {
|
|
22
|
+
return Array.from(notice?.querySelectorAll(`.${prefixCls}-title, .${prefixCls}-content`) ?? [], (node) => node.textContent).filter(Boolean).join(" ");
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Feeds a persistent live region. Screen readers announce a status element that is inserted together with its text
|
|
26
|
+
* only some of the time, so messages are written into a region that already exists, in a later task.
|
|
27
|
+
*/
|
|
28
|
+
var Announcer = class {
|
|
29
|
+
#timer;
|
|
30
|
+
#pending = /* @__PURE__ */ new Map();
|
|
31
|
+
#write;
|
|
32
|
+
constructor(write) {
|
|
33
|
+
this.#write = write;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* `read` runs at write time, when the message elements are in the document. Messages queued together are read as one;
|
|
37
|
+
* a later call with the same `key` replaces the earlier one, so an in-place update is announced once.
|
|
38
|
+
*/
|
|
39
|
+
announce(key, read) {
|
|
40
|
+
this.#pending.set(key, read);
|
|
41
|
+
clearTimeout(this.#timer);
|
|
42
|
+
this.#timer = setTimeout(() => {
|
|
43
|
+
const text = Array.from(this.#pending.values(), (pending) => pending()).filter(Boolean).join(" ");
|
|
44
|
+
this.#pending.clear();
|
|
45
|
+
this.#write(text);
|
|
46
|
+
this.#timer = setTimeout(() => this.#write(""), ANNOUNCE_HOLD);
|
|
47
|
+
}, 100);
|
|
48
|
+
}
|
|
49
|
+
dispose() {
|
|
50
|
+
clearTimeout(this.#timer);
|
|
51
|
+
this.#pending.clear();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export { ANNOUNCE_DELAY, ANNOUNCE_HOLD, Announcer as default, isAlertType, pickFreshAnnouncements, readNoticeText };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function arrayMove(array: Array<any>, from: number, to: number): any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A new array of the unique items of source that are not in removed
|
|
3
|
+
*
|
|
4
|
+
* differenceUnique(['a', 'b', 'c', 'a', 'b', 'c'], ['a', 'c']) => ['b']
|
|
5
|
+
*/
|
|
6
|
+
export declare function differenceUnique<T>(source: T[], removed: T[]): T[];
|
|
7
|
+
type CompareFn<T> = (a: T, b: T, sortOrder: 'ascend' | 'descend') => number;
|
|
8
|
+
/** Wraps a compare function so that `descend` flips its sign */
|
|
9
|
+
export declare function withOrderSort<T = any>(fn: CompareFn<T>, order?: 'ascend' | 'descend'): (a: T, b: T) => number;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { difference, uniq } from "es-toolkit";
|
|
2
|
+
// src/utils/array.ts
|
|
3
|
+
/**
|
|
4
|
+
* A new array of the unique items of source that are not in removed
|
|
5
|
+
*
|
|
6
|
+
* differenceUnique(['a', 'b', 'c', 'a', 'b', 'c'], ['a', 'c']) => ['b']
|
|
7
|
+
*/
|
|
8
|
+
function differenceUnique(source, removed) {
|
|
9
|
+
return difference(uniq(source), removed);
|
|
10
|
+
}
|
|
11
|
+
/** Wraps a compare function so that `descend` flips its sign */
|
|
12
|
+
function withOrderSort(fn, order = "ascend") {
|
|
13
|
+
switch (order) {
|
|
14
|
+
case "descend": return (a, b) => {
|
|
15
|
+
const result = Number(fn(a, b, order));
|
|
16
|
+
return result !== 0 ? -result : result;
|
|
17
|
+
};
|
|
18
|
+
default: return (a, b) => fn(a, b, order);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export { differenceUnique, withOrderSort };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
// src/utils/classnames.ts
|
|
3
|
+
function addClass(rawCls, ...classNames) {
|
|
4
|
+
const classes = (rawCls ?? "").split(/\s+/);
|
|
5
|
+
return clsx(rawCls, ...classNames.filter((cls) => !classes.includes(cls)));
|
|
6
|
+
}
|
|
7
|
+
function removeClass(rawCls, ...classNames) {
|
|
8
|
+
return clsx(...(rawCls ?? "").split(/\s+/).filter((cls) => !classNames.includes(cls)));
|
|
9
|
+
}
|
|
10
|
+
export { addClass, removeClass };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyText(text: string): Promise<boolean>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Intl time zone for a Semi time zone value: an offset in hours or a GMT±HH:MM string becomes the fixed ±HH:MM
|
|
3
|
+
* offset Intl accepts, which never shifts for DST; any other string is used as is, normally an IANA name
|
|
4
|
+
*/
|
|
5
|
+
export declare function toIANA(tz: string | number): string;
|
|
6
|
+
export declare function isValidTimezoneIANAString(timeZoneString: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Returns a Date which will format as the local time of any time zone from a specific UTC time
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```javascript
|
|
12
|
+
* import { utcToZonedTime } from '@fibrae/semi-foundation/utils/date-fns-extra'
|
|
13
|
+
* const { isoDate, timeZone } = fetchInitialValues() // 2014-06-25T10:00:00.000Z, America/New_York
|
|
14
|
+
* const date = utcToZonedTime(isoDate, timeZone) // In June 10am UTC is 6am in New York (-04:00)
|
|
15
|
+
* renderDatePicker(date) // 2014-06-25 06:00:00 (in the system time zone)
|
|
16
|
+
* renderTimeZoneSelect(timeZone) // America/New_York
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Both instants of a repeated hour show the same wall time. A wall time that the system time zone skips for DST
|
|
20
|
+
* cannot be held by a system-local Date; like the Date constructor, it moves forward by the system zone's gap.
|
|
21
|
+
*/
|
|
22
|
+
export declare function utcToZonedTime(date: string | number | Date, timeZone: string | number): Date;
|
|
23
|
+
/**
|
|
24
|
+
* Given a date and any time zone, returns a Date with the equivalent UTC time
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```
|
|
28
|
+
* import { zonedTimeToUtc } from '@fibrae/semi-foundation/utils/date-fns-extra'
|
|
29
|
+
* const date = getDatePickerValue() // e.g. 2014-06-25 10:00:00 (picked in any time zone)
|
|
30
|
+
* const timeZone = getTimeZoneValue() // e.g. America/Los_Angeles
|
|
31
|
+
* const utcDate = zonedTimeToUtc(date, timeZone) // In June 10am in Los Angeles is 5pm UTC
|
|
32
|
+
* postToServer(utcDate.toISOString(), timeZone) // post 2014-06-25T17:00:00.000Z, America/Los_Angeles
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* DST follows Temporal's `disambiguation: 'compatible'`, whatever the system time zone: a repeated wall time
|
|
36
|
+
* resolves to the earlier instant, and one skipped by DST moves forward by the gap (02:30 becomes 03:30).
|
|
37
|
+
*/
|
|
38
|
+
export declare function zonedTimeToUtc(date: string | number | Date, timeZone: string | number): Date;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { parseISO, toDate } from "date-fns";
|
|
2
|
+
import { tzOffset } from "@date-fns/tz";
|
|
3
|
+
// src/utils/date-fns-extra.ts
|
|
4
|
+
const GMTStringReg = /[-+]\d{2}:\d{2}/;
|
|
5
|
+
/**
|
|
6
|
+
* The Intl time zone for a Semi time zone value: an offset in hours or a GMT±HH:MM string becomes the fixed ±HH:MM
|
|
7
|
+
* offset Intl accepts, which never shifts for DST; any other string is used as is, normally an IANA name
|
|
8
|
+
*/
|
|
9
|
+
function toIANA(tz) {
|
|
10
|
+
if (typeof tz === "number") {
|
|
11
|
+
const minutes = Math.round(tz * 60);
|
|
12
|
+
const abs = Math.abs(minutes);
|
|
13
|
+
const hh = String(Math.floor(abs / 60)).padStart(2, "0");
|
|
14
|
+
const mm = String(Math.floor(abs % 60)).padStart(2, "0");
|
|
15
|
+
return `${minutes < 0 ? "-" : "+"}${hh}:${mm}`;
|
|
16
|
+
}
|
|
17
|
+
return tz?.match(GMTStringReg)?.[0] ?? tz;
|
|
18
|
+
}
|
|
19
|
+
const validTimeZones = /* @__PURE__ */ new Set();
|
|
20
|
+
function isValidTimezoneIANAString(timeZoneString) {
|
|
21
|
+
if (validTimeZones.has(timeZoneString)) return true;
|
|
22
|
+
try {
|
|
23
|
+
new Intl.DateTimeFormat(void 0, { timeZone: timeZoneString });
|
|
24
|
+
validTimeZones.add(timeZoneString);
|
|
25
|
+
return true;
|
|
26
|
+
} catch (error) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const MILLISECONDS_IN_MINUTE = 6e4;
|
|
31
|
+
const MILLISECONDS_IN_DAY = 864e5;
|
|
32
|
+
/**
|
|
33
|
+
* UTC offset of `timeZone` (IANA name or ±HH[:MM]) at the instant `time` in milliseconds, positive east of UTC. No
|
|
34
|
+
* zone or Z means UTC; an unknown zone gives NaN.
|
|
35
|
+
*/
|
|
36
|
+
function zoneOffset(timeZone, time) {
|
|
37
|
+
if (!timeZone || timeZone === "Z") return 0;
|
|
38
|
+
if (!isValidTimezoneIANAString(timeZone)) return NaN;
|
|
39
|
+
return Math.round(tzOffset(timeZone, new Date(time)) * MILLISECONDS_IN_MINUTE);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The instant at which `timeZone` shows `wallTime` (wall-clock fields read as UTC), resolved like Temporal's
|
|
43
|
+
* `disambiguation: 'compatible'`: a repeated wall time takes the earlier instant, one skipped by DST moves forward
|
|
44
|
+
* by the length of the gap
|
|
45
|
+
*/
|
|
46
|
+
function wallTimeToInstant(wallTime, timeZone) {
|
|
47
|
+
const offsetBefore = zoneOffset(timeZone, wallTime - MILLISECONDS_IN_DAY);
|
|
48
|
+
const offsetAfter = zoneOffset(timeZone, wallTime + MILLISECONDS_IN_DAY);
|
|
49
|
+
return [wallTime - Math.max(offsetBefore, offsetAfter), wallTime - Math.min(offsetBefore, offsetAfter)].find((time) => time + zoneOffset(timeZone, time) === wallTime) ?? wallTime - offsetBefore;
|
|
50
|
+
}
|
|
51
|
+
/** Wall-clock fields of a system-local Date read as UTC */
|
|
52
|
+
function wallTimeAsUtc(date) {
|
|
53
|
+
const utc = /* @__PURE__ */ new Date(0);
|
|
54
|
+
utc.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());
|
|
55
|
+
utc.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
56
|
+
return utc.getTime();
|
|
57
|
+
}
|
|
58
|
+
function toDateValue(date) {
|
|
59
|
+
return typeof date === "string" ? parseISO(date) : toDate(date);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns a Date which will format as the local time of any time zone from a specific UTC time
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```javascript
|
|
66
|
+
* import { utcToZonedTime } from '@fibrae/semi-foundation/utils/date-fns-extra'
|
|
67
|
+
* const { isoDate, timeZone } = fetchInitialValues() // 2014-06-25T10:00:00.000Z, America/New_York
|
|
68
|
+
* const date = utcToZonedTime(isoDate, timeZone) // In June 10am UTC is 6am in New York (-04:00)
|
|
69
|
+
* renderDatePicker(date) // 2014-06-25 06:00:00 (in the system time zone)
|
|
70
|
+
* renderTimeZoneSelect(timeZone) // America/New_York
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* Both instants of a repeated hour show the same wall time. A wall time that the system time zone skips for DST
|
|
74
|
+
* cannot be held by a system-local Date; like the Date constructor, it moves forward by the system zone's gap.
|
|
75
|
+
*/
|
|
76
|
+
function utcToZonedTime(date, timeZone) {
|
|
77
|
+
const utcDate = toDateValue(date);
|
|
78
|
+
const shifted = new Date(utcDate.getTime() + zoneOffset(toIANA(timeZone), utcDate.getTime()));
|
|
79
|
+
const zonedDate = /* @__PURE__ */ new Date(0);
|
|
80
|
+
zonedDate.setFullYear(shifted.getUTCFullYear(), shifted.getUTCMonth(), shifted.getUTCDate());
|
|
81
|
+
zonedDate.setHours(shifted.getUTCHours(), shifted.getUTCMinutes(), shifted.getUTCSeconds(), shifted.getUTCMilliseconds());
|
|
82
|
+
return zonedDate;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Given a date and any time zone, returns a Date with the equivalent UTC time
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```
|
|
89
|
+
* import { zonedTimeToUtc } from '@fibrae/semi-foundation/utils/date-fns-extra'
|
|
90
|
+
* const date = getDatePickerValue() // e.g. 2014-06-25 10:00:00 (picked in any time zone)
|
|
91
|
+
* const timeZone = getTimeZoneValue() // e.g. America/Los_Angeles
|
|
92
|
+
* const utcDate = zonedTimeToUtc(date, timeZone) // In June 10am in Los Angeles is 5pm UTC
|
|
93
|
+
* postToServer(utcDate.toISOString(), timeZone) // post 2014-06-25T17:00:00.000Z, America/Los_Angeles
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* DST follows Temporal's `disambiguation: 'compatible'`, whatever the system time zone: a repeated wall time
|
|
97
|
+
* resolves to the earlier instant, and one skipped by DST moves forward by the gap (02:30 becomes 03:30).
|
|
98
|
+
*/
|
|
99
|
+
function zonedTimeToUtc(date, timeZone) {
|
|
100
|
+
const ianaTimeZone = toIANA(timeZone);
|
|
101
|
+
const dateValue = toDateValue(date);
|
|
102
|
+
if (!ianaTimeZone && typeof date === "string" && !/(Z|[+-]\d{2}(:?\d{2})?)$/.test(date)) return dateValue;
|
|
103
|
+
return new Date(wallTimeToInstant(wallTimeAsUtc(dateValue), ianaTimeZone));
|
|
104
|
+
}
|
|
105
|
+
export { isValidTimezoneIANAString, toIANA, utcToZonedTime, zonedTimeToUtc };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import isElement from "./is-element.js";
|
|
2
|
+
export declare function convertDOMRectToObject(domRect: DOMRect): DOMRectLikeType;
|
|
3
|
+
export type DOMRectLikeType = { [key in 'left' | 'top' | 'right' | 'bottom' | 'width' | 'height']?: number; };
|
|
4
|
+
/**
|
|
5
|
+
* Whether the event passed through any of `nodes`. The composed path is fixed when dispatch starts, so it still
|
|
6
|
+
* lists the old ancestors of a target that an earlier listener removed, and it crosses shadow roots.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isEventInside(e: Event, ...nodes: (Node | null | undefined)[]): boolean;
|
|
9
|
+
export interface RegisterMediaQueryOption {
|
|
10
|
+
match?: (e: MediaQueryList | MediaQueryListEvent) => void;
|
|
11
|
+
unmatch?: (e: MediaQueryList | MediaQueryListEvent) => void;
|
|
12
|
+
callInInit?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** Returns the function that removes the listener */
|
|
15
|
+
export declare function registerMediaQuery(media: string, { match, unmatch, callInInit }: RegisterMediaQueryOption): () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Whether an overlay rendered through `getPopupContainer` covers the page: no container, or one that resolves to body.
|
|
18
|
+
* Only such an overlay locks body scroll and is modal; one confined to another element leaves the page usable.
|
|
19
|
+
*/
|
|
20
|
+
export declare function coversPage(getPopupContainer?: () => HTMLElement): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The container a popup renders into: the result of `get` (the component's own getPopupContainer, else
|
|
23
|
+
* ConfigProvider's), `fallback` without one. A chosen getter returning null (a template ref not set yet) fails loud
|
|
24
|
+
* instead of quietly falling back to body, where the popup would render somewhere the caller did not ask for.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolvePopupContainer(get?: () => HTMLElement | null, fallback?: HTMLElement): HTMLElement;
|
|
27
|
+
/** Scrolls `scroller` so `node` sits in its middle; scrollIntoView is avoided because it can also scroll the page */
|
|
28
|
+
export declare function centerInScroller(node: HTMLElement, scroller: HTMLElement): void;
|
|
29
|
+
/** A number means px: React's style adds the unit itself, Vue and Solid style bindings do not */
|
|
30
|
+
export declare function toCssLength(value?: number | string | null): string | undefined;
|
|
31
|
+
export { isElement as isHTMLElement };
|