@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,108 @@
|
|
|
1
|
+
import BaseFoundation, { DefaultAdapter } from "../base/foundation.js";
|
|
2
|
+
import { PanelType } from "./constants.js";
|
|
3
|
+
import { Locale } from "date-fns";
|
|
4
|
+
export type Position = 'top' | 'topLeft' | 'topRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'leftTopOver' | 'rightTopOver';
|
|
5
|
+
/** `E` is the focus event of the host framework, which the foundation only passes on */
|
|
6
|
+
export interface TimePickerAdapter<P extends TimePickerBaseProps = TimePickerBaseProps, E = unknown> extends DefaultAdapter<P, TimePickerBaseState> {
|
|
7
|
+
setPanelOpen: (open: boolean) => void;
|
|
8
|
+
setInputValue: (inputValue: string) => void;
|
|
9
|
+
notifyOpenChange: (open: boolean) => void;
|
|
10
|
+
notifyChange: (value: Date | Date[], str: string | string[]) => void;
|
|
11
|
+
notifyFocus: (e: E) => void;
|
|
12
|
+
/** The picker blurs only when a mousedown outside closes the panel */
|
|
13
|
+
notifyBlur: (e: MouseEvent) => void;
|
|
14
|
+
isRangePicker: () => boolean;
|
|
15
|
+
/** focus is in the panel and came from the keyboard (`:focus-visible`), not from a click */
|
|
16
|
+
isKeyboardFocusInPanel: () => boolean;
|
|
17
|
+
/** focuses the input, or the focus target of a custom trigger */
|
|
18
|
+
setTriggerFocus: () => void;
|
|
19
|
+
}
|
|
20
|
+
/** The props the foundation reads with getProp */
|
|
21
|
+
export interface TimePickerBaseProps {
|
|
22
|
+
dateFnsLocale?: Locale;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
disabledHours?: () => number[];
|
|
25
|
+
disabledMinutes?: (selectedHour: number) => number[];
|
|
26
|
+
disabledSeconds?: (selectedHour: number, selectedMinute: number) => number[];
|
|
27
|
+
disabledTime?: (value: Date[], panelType: PanelType) => DisabledTimeFns;
|
|
28
|
+
format?: string;
|
|
29
|
+
open?: boolean;
|
|
30
|
+
rangeSeparator?: string;
|
|
31
|
+
timeZone?: string | number;
|
|
32
|
+
use12Hours?: boolean;
|
|
33
|
+
value?: unknown;
|
|
34
|
+
}
|
|
35
|
+
export interface TimePickerBaseState {
|
|
36
|
+
inputValue: string;
|
|
37
|
+
invalid: boolean;
|
|
38
|
+
open: boolean;
|
|
39
|
+
value: Date[];
|
|
40
|
+
}
|
|
41
|
+
/** A time as `value` accepts it: a Date, a timestamp, or a string in `format` */
|
|
42
|
+
export type TimeValue = string | number | Date;
|
|
43
|
+
export type DisabledTimeFns = Pick<TimePickerBaseProps, 'disabledHours' | 'disabledMinutes' | 'disabledSeconds'>;
|
|
44
|
+
export default class TimePickerFoundation<P extends TimePickerBaseProps = TimePickerBaseProps, E = unknown> extends BaseFoundation<TimePickerAdapter<P, E>, P, TimePickerBaseState> {
|
|
45
|
+
#private;
|
|
46
|
+
protected isDisabledHMS({ hours, minutes, seconds }: {
|
|
47
|
+
hours: number;
|
|
48
|
+
minutes: number;
|
|
49
|
+
seconds: number;
|
|
50
|
+
}, panelType?: PanelType, dates?: Date[]): boolean;
|
|
51
|
+
protected getValidFormat(): string;
|
|
52
|
+
/** An empty side of a range (undefined) is a range still being picked, not an invalid time */
|
|
53
|
+
protected validateDates(dates?: Array<Date>): boolean;
|
|
54
|
+
protected formatValue(dates: Date[]): string;
|
|
55
|
+
protected parseInput(str: string): Date[];
|
|
56
|
+
/**
|
|
57
|
+
* The format in use: the `format` prop when not `undefined`, else the 12- or 24-hour default; a value that is
|
|
58
|
+
* not a string falls back to the 24-hour default
|
|
59
|
+
*/
|
|
60
|
+
static getValidFormat(props: Record<string, any>): string;
|
|
61
|
+
/**
|
|
62
|
+
* The disabled-time callbacks of one panel, as the panel lists and validation both use them. `disabledTime` is
|
|
63
|
+
* range-only: it gives the left and right panel their own rules, and each callback it leaves out falls back to the
|
|
64
|
+
* top-level prop.
|
|
65
|
+
*/
|
|
66
|
+
static getDisabledTimeFns({ disabledHours, disabledMinutes, disabledSeconds, disabledTime }: TimePickerBaseProps, dates: Date[], panelType: PanelType, isRange: boolean): DisabledTimeFns;
|
|
67
|
+
static getPosition(props: Record<string, any>, direction?: string): Position;
|
|
68
|
+
/** A controlled `open` is not copied into state, so the shown panel comes from props when they carry it; a disabled picker shows none */
|
|
69
|
+
static isPanelShown(props: Record<string, any>, state: Record<string, any>): boolean;
|
|
70
|
+
/** The value and input text of the first render, from `value` or else `defaultValue` */
|
|
71
|
+
static getInitialState(props: Record<string, any>): {
|
|
72
|
+
value: Date[];
|
|
73
|
+
inputValue: string;
|
|
74
|
+
invalid: boolean;
|
|
75
|
+
};
|
|
76
|
+
handlePanelChange(result: {
|
|
77
|
+
timeStampValue: number;
|
|
78
|
+
}, index?: number): void;
|
|
79
|
+
/**
|
|
80
|
+
* Derives the value, input text and validity state from a `value` prop. With `prevTimeZone`, `value` is the
|
|
81
|
+
* shown value in that zone and is re-zoned into `timeZone`.
|
|
82
|
+
*/
|
|
83
|
+
syncValueFromProps({ value, timeZone, prevTimeZone }: {
|
|
84
|
+
value: TimeValue | (TimeValue | undefined)[];
|
|
85
|
+
timeZone?: string | number;
|
|
86
|
+
prevTimeZone?: string | number;
|
|
87
|
+
}): void;
|
|
88
|
+
handleFocus(e: E): void;
|
|
89
|
+
/** A custom trigger without a focus target of its own is a button: Enter, Space and Down Arrow open the panel */
|
|
90
|
+
handleTriggerKeyDown(e: Pick<KeyboardEvent, 'key' | 'preventDefault'>): void;
|
|
91
|
+
refreshInputValue(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Closes the panel and reports openChange(false), without blur and without moving focus, e.g. for a picker that
|
|
94
|
+
* leaves the page while open (Vue KeepAlive)
|
|
95
|
+
*/
|
|
96
|
+
close(): void;
|
|
97
|
+
/**
|
|
98
|
+
* The panel is a custom-trigger popup, so the Popover leaves Esc to the picker. Keyboard focus in a list returns
|
|
99
|
+
* to the input first: the input opens the panel on focus, which must not happen once the panel is closed. The
|
|
100
|
+
* focus stays in the picker, so this is no blur.
|
|
101
|
+
*/
|
|
102
|
+
handleEscKeyDown(): void;
|
|
103
|
+
handlePanelOpen(): void;
|
|
104
|
+
/** Called for a mousedown outside the trigger and the panel while the panel is shown */
|
|
105
|
+
handleClickOutside(e: MouseEvent): void;
|
|
106
|
+
handleInputChange(input: string): void;
|
|
107
|
+
handleInputBlur(): void;
|
|
108
|
+
}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import BaseFoundation from "../base/foundation.js";
|
|
2
|
+
import { utcToZonedTime, zonedTimeToUtc } from "../utils/date-fns-extra.js";
|
|
3
|
+
import isValidTimeZone from "../utils/is-valid-time-zone.js";
|
|
4
|
+
import { strings } from "./constants.js";
|
|
5
|
+
import { formatToString, hourIsDisabled, isTimeFormatLike, minuteIsDisabled, parseToDate, secondIsDisabled, transformToArray } from "./utils/index.js";
|
|
6
|
+
import { isValid } from "date-fns";
|
|
7
|
+
// src/time-picker/foundation.ts
|
|
8
|
+
function isEmptyValue(value) {
|
|
9
|
+
return value == null || value === "";
|
|
10
|
+
}
|
|
11
|
+
var TimePickerFoundation = class TimePickerFoundation extends BaseFoundation {
|
|
12
|
+
/**
|
|
13
|
+
* The dates a `value` shows, on mount and on every update. An empty side of a range ('' or undefined) stays
|
|
14
|
+
* undefined, as the panel reports it, so one picked side shows with its separator. No picked side at all is no
|
|
15
|
+
* value, and so is a time that cannot be parsed: an Invalid Date in the state would make every later format throw.
|
|
16
|
+
* With `prevTimeZone`, `value` is the shown value in that zone and is re-zoned into `timeZone`.
|
|
17
|
+
*/
|
|
18
|
+
static #parseDates(value, props, timeZone, prevTimeZone) {
|
|
19
|
+
const formatToken = TimePickerFoundation.getValidFormat(props);
|
|
20
|
+
const dates = (Array.isArray(value) ? value : isEmptyValue(value) ? [] : [value]).map((v) => parseToDate(v, formatToken, props.dateFnsLocale));
|
|
21
|
+
if (dates.every((d) => d === void 0) || dates.some((d) => d !== void 0 && isNaN(Number(d)))) return [];
|
|
22
|
+
if (!isValidTimeZone(timeZone)) return dates;
|
|
23
|
+
return dates.map((date) => date === void 0 ? void 0 : utcToZonedTime(isValidTimeZone(prevTimeZone) ? zonedTimeToUtc(date, prevTimeZone) : date, timeZone));
|
|
24
|
+
}
|
|
25
|
+
static #formatDates(dates, props) {
|
|
26
|
+
const formatToken = TimePickerFoundation.getValidFormat(props);
|
|
27
|
+
return dates.map((date) => date === void 0 ? "" : formatToString(date, formatToken, props.dateFnsLocale)).join(props.rangeSeparator);
|
|
28
|
+
}
|
|
29
|
+
#notifyChange(value, inputValue) {
|
|
30
|
+
let str = inputValue;
|
|
31
|
+
let _value = value;
|
|
32
|
+
const timeZone = this.getProp("timeZone");
|
|
33
|
+
if (this._adapter.isRangePicker()) {
|
|
34
|
+
const parts = inputValue.split(this.getProp("rangeSeparator"));
|
|
35
|
+
str = value.length === 2 ? [parts[0], parts[1] ?? ""] : parts;
|
|
36
|
+
} else _value = Array.isArray(_value) ? _value[0] : _value;
|
|
37
|
+
if (isValidTimeZone(timeZone) && _value) {
|
|
38
|
+
const formatToken = this.getValidFormat();
|
|
39
|
+
const dateFnsLocale = this.getProp("dateFnsLocale");
|
|
40
|
+
if (Array.isArray(_value)) {
|
|
41
|
+
_value = _value.map((v) => v === void 0 ? void 0 : zonedTimeToUtc(v, timeZone));
|
|
42
|
+
str = _value.map((v) => v === void 0 ? "" : formatToString(v, formatToken, dateFnsLocale));
|
|
43
|
+
} else {
|
|
44
|
+
_value = zonedTimeToUtc(_value, timeZone);
|
|
45
|
+
str = formatToString(_value, formatToken, dateFnsLocale);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
this._adapter.notifyChange(_value, str);
|
|
49
|
+
}
|
|
50
|
+
#hasChanged(dates = [], oldDates = []) {
|
|
51
|
+
const formatToken = this.getValidFormat();
|
|
52
|
+
const dateFnsLocale = this.getProp("dateFnsLocale");
|
|
53
|
+
return dates.length !== oldDates.length || dates.some((date, index) => {
|
|
54
|
+
const oldDate = oldDates[index];
|
|
55
|
+
if (date === void 0 && oldDate === void 0) return false;
|
|
56
|
+
if (isValid(date) && isValid(oldDate) && formatToString(date, formatToken, dateFnsLocale) === formatToString(oldDate, formatToken, dateFnsLocale)) return false;
|
|
57
|
+
return true;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
isDisabledHMS({ hours, minutes, seconds }, panelType = "left", dates = []) {
|
|
61
|
+
const { disabledHours, disabledMinutes, disabledSeconds } = TimePickerFoundation.getDisabledTimeFns(this.getProps(), dates, panelType, this._adapter.isRangePicker());
|
|
62
|
+
const hDis = hours != null && hourIsDisabled(disabledHours, hours);
|
|
63
|
+
const mDis = hours != null && minutes != null && minuteIsDisabled(disabledMinutes, hours, minutes);
|
|
64
|
+
const sDis = hours != null && minutes != null && seconds != null && secondIsDisabled(disabledSeconds, hours, minutes, seconds);
|
|
65
|
+
return hDis || mDis || sDis;
|
|
66
|
+
}
|
|
67
|
+
getValidFormat() {
|
|
68
|
+
return TimePickerFoundation.getValidFormat(this.getProps());
|
|
69
|
+
}
|
|
70
|
+
/** An empty side of a range (undefined) is a range still being picked, not an invalid time */
|
|
71
|
+
validateDates(dates = []) {
|
|
72
|
+
let invalid = dates.some((d) => d !== void 0 && isNaN(Number(d)));
|
|
73
|
+
if (!invalid) {
|
|
74
|
+
if (this._adapter.isRangePicker()) invalid = dates.some((d, idx) => {
|
|
75
|
+
if (d === void 0) return false;
|
|
76
|
+
const panelType = idx === 1 ? "right" : "left";
|
|
77
|
+
return this.isDisabledHMS({
|
|
78
|
+
hours: d.getHours(),
|
|
79
|
+
minutes: d.getMinutes(),
|
|
80
|
+
seconds: d.getSeconds()
|
|
81
|
+
}, panelType, dates);
|
|
82
|
+
});
|
|
83
|
+
else {
|
|
84
|
+
const d = dates[0];
|
|
85
|
+
invalid = d ? this.isDisabledHMS({
|
|
86
|
+
hours: d.getHours(),
|
|
87
|
+
minutes: d.getMinutes(),
|
|
88
|
+
seconds: d.getSeconds()
|
|
89
|
+
}, "left", dates) : false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return invalid;
|
|
93
|
+
}
|
|
94
|
+
formatValue(dates) {
|
|
95
|
+
return TimePickerFoundation.#formatDates(dates, this.getProps());
|
|
96
|
+
}
|
|
97
|
+
parseInput(str) {
|
|
98
|
+
const validFormat = this.getValidFormat();
|
|
99
|
+
const rangeSeparator = this.getProp("rangeSeparator");
|
|
100
|
+
const dateFnsLocale = this.getProp("dateFnsLocale");
|
|
101
|
+
if (str && typeof str === "string") return str.split(rangeSeparator).map((v) => parseToDate(v, validFormat, dateFnsLocale));
|
|
102
|
+
return [];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The format in use: the `format` prop when not `undefined`, else the 12- or 24-hour default; a value that is
|
|
106
|
+
* not a string falls back to the 24-hour default
|
|
107
|
+
*/
|
|
108
|
+
static getValidFormat(props) {
|
|
109
|
+
let _format = props.format;
|
|
110
|
+
if (_format === void 0) _format = props.use12Hours ? strings.DEFAULT_FORMAT_A : strings.DEFAULT_FORMAT;
|
|
111
|
+
return typeof _format === "string" ? _format : strings.DEFAULT_FORMAT;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The disabled-time callbacks of one panel, as the panel lists and validation both use them. `disabledTime` is
|
|
115
|
+
* range-only: it gives the left and right panel their own rules, and each callback it leaves out falls back to the
|
|
116
|
+
* top-level prop.
|
|
117
|
+
*/
|
|
118
|
+
static getDisabledTimeFns({ disabledHours, disabledMinutes, disabledSeconds, disabledTime }, dates, panelType, isRange) {
|
|
119
|
+
const panel = typeof disabledTime === "function" && isRange && disabledTime(dates, panelType) || {};
|
|
120
|
+
return {
|
|
121
|
+
disabledHours: panel.disabledHours || disabledHours,
|
|
122
|
+
disabledMinutes: panel.disabledMinutes || disabledMinutes,
|
|
123
|
+
disabledSeconds: panel.disabledSeconds || disabledSeconds
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
static getPosition(props, direction) {
|
|
127
|
+
const type = props.type || strings.DEFAULT_TYPE;
|
|
128
|
+
const rtlDirection = direction === "rtl" ? "bottomRight" : "";
|
|
129
|
+
return props.position || rtlDirection || strings.DEFAULT_POSITION[type];
|
|
130
|
+
}
|
|
131
|
+
/** A controlled `open` is not copied into state, so the shown panel comes from props when they carry it; a disabled picker shows none */
|
|
132
|
+
static isPanelShown(props, state) {
|
|
133
|
+
return (props.open !== void 0 ? Boolean(props.open) : Boolean(state.open)) && !props.disabled;
|
|
134
|
+
}
|
|
135
|
+
/** The value and input text of the first render, from `value` or else `defaultValue` */
|
|
136
|
+
static getInitialState(props) {
|
|
137
|
+
const value = props.value === void 0 ? props.defaultValue : props.value;
|
|
138
|
+
const dates = TimePickerFoundation.#parseDates(value, props, props.timeZone);
|
|
139
|
+
return {
|
|
140
|
+
value: dates,
|
|
141
|
+
inputValue: TimePickerFoundation.#formatDates(dates, props),
|
|
142
|
+
invalid: false
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
handlePanelChange(result, index = 0) {
|
|
146
|
+
const formatToken = this.getValidFormat();
|
|
147
|
+
const dateFnsLocale = this.getProp("dateFnsLocale");
|
|
148
|
+
const oldValue = this.getState("value");
|
|
149
|
+
const value = this._adapter.isRangePicker() ? [oldValue[0], oldValue[1]] : transformToArray(oldValue);
|
|
150
|
+
if (result) {
|
|
151
|
+
value[index] = parseToDate(result.timeStampValue, formatToken, dateFnsLocale);
|
|
152
|
+
const inputValue = this.formatValue(value);
|
|
153
|
+
if (!this._isControlledComponent("value")) {
|
|
154
|
+
const invalid = this.validateDates(value);
|
|
155
|
+
this.setState({
|
|
156
|
+
value,
|
|
157
|
+
inputValue,
|
|
158
|
+
invalid
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
if (this.#hasChanged(value, oldValue)) this.#notifyChange(value, inputValue);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Derives the value, input text and validity state from a `value` prop. With `prevTimeZone`, `value` is the
|
|
166
|
+
* shown value in that zone and is re-zoned into `timeZone`.
|
|
167
|
+
*/
|
|
168
|
+
syncValueFromProps({ value, timeZone, prevTimeZone }) {
|
|
169
|
+
const dates = TimePickerFoundation.#parseDates(value, this.getProps(), timeZone, prevTimeZone);
|
|
170
|
+
this.setState({
|
|
171
|
+
value: dates,
|
|
172
|
+
invalid: this.validateDates(dates),
|
|
173
|
+
inputValue: this.formatValue(dates)
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
handleFocus(e) {
|
|
177
|
+
this.handlePanelOpen();
|
|
178
|
+
this._adapter.notifyFocus(e);
|
|
179
|
+
}
|
|
180
|
+
/** A custom trigger without a focus target of its own is a button: Enter, Space and Down Arrow open the panel */
|
|
181
|
+
handleTriggerKeyDown(e) {
|
|
182
|
+
if (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") {
|
|
183
|
+
e.preventDefault();
|
|
184
|
+
this.handlePanelOpen();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
refreshInputValue() {
|
|
188
|
+
this.setState({ inputValue: this.formatValue(this.getState("value")) });
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Closes the panel and reports openChange(false), without blur and without moving focus, e.g. for a picker that
|
|
192
|
+
* leaves the page while open (Vue KeepAlive)
|
|
193
|
+
*/
|
|
194
|
+
close() {
|
|
195
|
+
if (!this._isControlledComponent("open")) this._adapter.setPanelOpen(false);
|
|
196
|
+
this._adapter.notifyOpenChange(false);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* The panel is a custom-trigger popup, so the Popover leaves Esc to the picker. Keyboard focus in a list returns
|
|
200
|
+
* to the input first: the input opens the panel on focus, which must not happen once the panel is closed. The
|
|
201
|
+
* focus stays in the picker, so this is no blur.
|
|
202
|
+
*/
|
|
203
|
+
handleEscKeyDown() {
|
|
204
|
+
if (this._adapter.isKeyboardFocusInPanel()) this._adapter.setTriggerFocus();
|
|
205
|
+
this.close();
|
|
206
|
+
}
|
|
207
|
+
handlePanelOpen() {
|
|
208
|
+
if (this.getProp("disabled") || TimePickerFoundation.isPanelShown(this.getProps(), this.getStates())) return;
|
|
209
|
+
if (!this._isControlledComponent("open")) this._adapter.setPanelOpen(true);
|
|
210
|
+
this._adapter.notifyOpenChange(true);
|
|
211
|
+
}
|
|
212
|
+
/** Called for a mousedown outside the trigger and the panel while the panel is shown */
|
|
213
|
+
handleClickOutside(e) {
|
|
214
|
+
this.close();
|
|
215
|
+
this._adapter.notifyBlur(e);
|
|
216
|
+
}
|
|
217
|
+
handleInputChange(input) {
|
|
218
|
+
this._adapter.setInputValue(input);
|
|
219
|
+
const rangeSeparator = this.getProp("rangeSeparator");
|
|
220
|
+
const inputValues = (input ?? "").split(rangeSeparator);
|
|
221
|
+
const formatToken = this.getValidFormat();
|
|
222
|
+
if (input !== "" && inputValues.some((time) => !isTimeFormatLike(time, formatToken))) return;
|
|
223
|
+
const isRange = this._adapter.isRangePicker();
|
|
224
|
+
if (isRange && inputValues.length > 2) {
|
|
225
|
+
this.setState({ invalid: true });
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
const parsed = this.parseInput(input);
|
|
229
|
+
const dates = isRange && parsed.length ? [parsed[0], parsed[1]] : parsed;
|
|
230
|
+
const invalid = this.validateDates(dates);
|
|
231
|
+
const oldValue = this.getState("value");
|
|
232
|
+
const value = invalid ? transformToArray(oldValue) : [...dates];
|
|
233
|
+
if (this._isControlledComponent("value") || invalid) this.setState({ invalid });
|
|
234
|
+
else this.setState({
|
|
235
|
+
invalid,
|
|
236
|
+
value: dates
|
|
237
|
+
});
|
|
238
|
+
if (this.#hasChanged(value, oldValue)) this.#notifyChange(value, input);
|
|
239
|
+
}
|
|
240
|
+
handleInputBlur() {
|
|
241
|
+
const inputValue = this.getState("inputValue");
|
|
242
|
+
const value = this.getState("value");
|
|
243
|
+
if (inputValue || this._isControlledComponent("value")) this.setState({
|
|
244
|
+
inputValue: this.formatValue(value),
|
|
245
|
+
invalid: false
|
|
246
|
+
});
|
|
247
|
+
else this.setState({
|
|
248
|
+
inputValue: "",
|
|
249
|
+
value: [],
|
|
250
|
+
invalid: false
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
export { TimePickerFoundation as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import BaseFoundation, { DefaultAdapter } from "../base/foundation.js";
|
|
2
|
+
/** `E` is the focus and blur event of the host framework, which the foundation only passes on */
|
|
3
|
+
export interface TimeInputAdapter<P extends object = object, S extends object = object, E = unknown> extends DefaultAdapter<P, S> {
|
|
4
|
+
notifyChange: (value: string) => void;
|
|
5
|
+
notifyFocus: (e: E) => void;
|
|
6
|
+
notifyBlur: (e: E) => void;
|
|
7
|
+
getInputNode: () => HTMLInputElement | null;
|
|
8
|
+
}
|
|
9
|
+
export default class TimeInputFoundation<P extends object = object, S extends object = object, E = unknown> extends BaseFoundation<TimeInputAdapter<P, S, E>, P, S> {
|
|
10
|
+
#private;
|
|
11
|
+
handleFocus(e: E): void;
|
|
12
|
+
handleChange(v: string): void;
|
|
13
|
+
handleBlur(e: E): void;
|
|
14
|
+
restoreCursor(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import BaseFoundation from "../base/foundation.js";
|
|
2
|
+
// src/time-picker/input-foundation.ts
|
|
3
|
+
var TimeInputFoundation = class extends BaseFoundation {
|
|
4
|
+
#cursorIndex = null;
|
|
5
|
+
#storeCursor() {
|
|
6
|
+
const inputNode = this._adapter.getInputNode();
|
|
7
|
+
if (inputNode) this.#cursorIndex = inputNode.selectionStart;
|
|
8
|
+
}
|
|
9
|
+
#clearCursor() {
|
|
10
|
+
this.#cursorIndex = null;
|
|
11
|
+
}
|
|
12
|
+
handleFocus(e) {
|
|
13
|
+
this.#storeCursor();
|
|
14
|
+
this._adapter.notifyFocus(e);
|
|
15
|
+
}
|
|
16
|
+
handleChange(v) {
|
|
17
|
+
this.#storeCursor();
|
|
18
|
+
this._adapter.notifyChange(v);
|
|
19
|
+
}
|
|
20
|
+
handleBlur(e) {
|
|
21
|
+
this.#clearCursor();
|
|
22
|
+
this._adapter.notifyBlur(e);
|
|
23
|
+
}
|
|
24
|
+
restoreCursor() {
|
|
25
|
+
const inputNode = this._adapter.getInputNode();
|
|
26
|
+
const cursorIndex = this.#cursorIndex;
|
|
27
|
+
if (inputNode && cursorIndex !== null) {
|
|
28
|
+
inputNode.selectionStart = cursorIndex;
|
|
29
|
+
inputNode.selectionEnd = cursorIndex;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export { TimeInputFoundation as default };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@layer semi{.semi-timepicker {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
.semi-timepicker-panel .semi-scrolllist-body {
|
|
5
|
+
height: 252px;
|
|
6
|
+
}
|
|
7
|
+
.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer-nocycle > ul::before,
|
|
8
|
+
.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item > ul::before {
|
|
9
|
+
height: 108px;
|
|
10
|
+
}
|
|
11
|
+
.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item > ul,
|
|
12
|
+
.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer > ul {
|
|
13
|
+
padding-bottom: 108px;
|
|
14
|
+
}
|
|
15
|
+
.semi-timepicker-panel .semi-scrolllist-item,
|
|
16
|
+
.semi-timepicker-panel .semi-scrolllist-item-wheel {
|
|
17
|
+
flex: none;
|
|
18
|
+
}
|
|
19
|
+
.semi-timepicker-panel .semi-scrolllist-item-wheel,
|
|
20
|
+
.semi-timepicker-panel .semi-scrolllist-item-wheel:not(:last-child) {
|
|
21
|
+
border: none;
|
|
22
|
+
}
|
|
23
|
+
.semi-timepicker-panel-list-ampm {
|
|
24
|
+
width: 72px;
|
|
25
|
+
}
|
|
26
|
+
.semi-timepicker-panel-list-hour {
|
|
27
|
+
width: 64px;
|
|
28
|
+
}
|
|
29
|
+
.semi-timepicker-panel-list-minute {
|
|
30
|
+
width: 64px;
|
|
31
|
+
}
|
|
32
|
+
.semi-timepicker-panel-list-second {
|
|
33
|
+
width: 64px;
|
|
34
|
+
}
|
|
35
|
+
.semi-timepicker-range-panel .semi-timepicker-lists {
|
|
36
|
+
display: flex;
|
|
37
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
38
|
+
border-radius: var(--semi-border-radius-medium);
|
|
39
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
40
|
+
}
|
|
41
|
+
.semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:first-of-type {
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
border-start-start-radius: var(--semi-border-radius-medium);
|
|
44
|
+
border-end-start-radius: var(--semi-border-radius-medium);
|
|
45
|
+
}
|
|
46
|
+
.semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:last-of-type {
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
border-start-end-radius: var(--semi-border-radius-medium);
|
|
49
|
+
border-end-end-radius: var(--semi-border-radius-medium);
|
|
50
|
+
}
|
|
51
|
+
.semi-timepicker-range-panel .semi-timepicker-lists > .semi-scrolllist:not(:last-child) .semi-scrolllist-body {
|
|
52
|
+
border-inline-end: 2px solid var(--semi-color-border);
|
|
53
|
+
}
|
|
54
|
+
.semi-timepicker-range-panel .semi-timepicker-lists > .semi-scrolllist {
|
|
55
|
+
box-shadow: none;
|
|
56
|
+
}
|
|
57
|
+
.semi-timepicker-range-panel .semi-timepicker-lists > .semi-scrolllist .semi-scrolllist-body, .semi-timepicker-range-panel .semi-timepicker-lists > .semi-scrolllist .semi-scrolllist-header {
|
|
58
|
+
padding: 0;
|
|
59
|
+
}
|
|
60
|
+
.semi-timepicker .semi-timepicker-input {
|
|
61
|
+
font-family: var(--semi-font-family-regular);
|
|
62
|
+
font-size: var(--semi-font-size-regular);
|
|
63
|
+
line-height: var(--semi-line-height-regular);
|
|
64
|
+
align-items: center;
|
|
65
|
+
border-radius: var(--semi-border-radius-small);
|
|
66
|
+
}
|
|
67
|
+
.semi-timepicker .semi-timepicker-input-readonly {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
.semi-timepicker .semi-timepicker-input-readonly .semi-input {
|
|
71
|
+
cursor: inherit;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.semi-timepicker .semi-input-borderless:not(:focus-within):not(:hover) .semi-input-suffix {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.semi-timepicker:dir(rtl),
|
|
79
|
+
.semi-timepicker-panel:dir(rtl),
|
|
80
|
+
.semi-timepicker-range:dir(rtl) {
|
|
81
|
+
direction: rtl;
|
|
82
|
+
}}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'semi:theme' as *;
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
@use '../scroll-list/variables' as scrollList;
|
|
5
|
+
|
|
6
|
+
$module: #{$prefix}-timepicker;
|
|
7
|
+
$module-list: #{$prefix}-scrolllist;
|
|
8
|
+
|
|
9
|
+
.#{$module} {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
|
|
12
|
+
&-panel {
|
|
13
|
+
.#{$module-list}-body {
|
|
14
|
+
height: $height-timePicker_panel_body;
|
|
15
|
+
|
|
16
|
+
.#{$module-list}-item-wheel .#{$module-list}-list-outer-nocycle,
|
|
17
|
+
.#{$module-list}-item {
|
|
18
|
+
& > ul {
|
|
19
|
+
&::before {
|
|
20
|
+
height: ($height-timePicker_panel_body - scrollList.$height-scrollList_item) * 0.5;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.#{$module-list}-item,
|
|
26
|
+
.#{$module-list}-item-wheel .#{$module-list}-list-outer {
|
|
27
|
+
& > ul {
|
|
28
|
+
padding-bottom: ($height-timePicker_panel_body - scrollList.$height-scrollList_item) * 0.5;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.#{$module-list}-item,
|
|
34
|
+
.#{$module-list}-item-wheel {
|
|
35
|
+
flex: none;
|
|
36
|
+
}
|
|
37
|
+
.#{$module-list}-item-wheel,
|
|
38
|
+
.#{$module-list}-item-wheel:not(:last-child) {
|
|
39
|
+
border: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-list {
|
|
43
|
+
&-ampm {
|
|
44
|
+
width: $width-timePicker_panel_list_ampm;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-hour {
|
|
48
|
+
width: $width-timePicker_panel_list_hour;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-minute {
|
|
52
|
+
width: $width-timePicker_panel_list_minute;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-second {
|
|
56
|
+
width: $width-timePicker_panel_list_second;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-range {
|
|
62
|
+
&-panel {
|
|
63
|
+
.#{$module}-lists {
|
|
64
|
+
display: flex;
|
|
65
|
+
border: $width-timePicker_range_panel-border solid $color-timePicker_range_panel-border;
|
|
66
|
+
border-radius: $radius-timePicker_range_panel;
|
|
67
|
+
box-shadow: $shadow-timePicker_range_panel;
|
|
68
|
+
|
|
69
|
+
.#{$prefix}-scrolllist:first-of-type {
|
|
70
|
+
border-radius: 0;
|
|
71
|
+
border-start-start-radius: $radius-timePicker_range_panel;
|
|
72
|
+
border-end-start-radius: $radius-timePicker_range_panel;
|
|
73
|
+
}
|
|
74
|
+
.#{$prefix}-scrolllist:last-of-type {
|
|
75
|
+
border-radius: 0;
|
|
76
|
+
border-start-end-radius: $radius-timePicker_range_panel;
|
|
77
|
+
border-end-end-radius: $radius-timePicker_range_panel;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& > .#{$prefix}-scrolllist:not(:last-child) {
|
|
81
|
+
.#{$prefix}-scrolllist {
|
|
82
|
+
&-body {
|
|
83
|
+
border-inline-end: $width-timePicker_range_panel_scrolllist_body-border solid $color-timePicker_range_picker_panel_split-border;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& > .#{$prefix}-scrolllist {
|
|
89
|
+
box-shadow: none;
|
|
90
|
+
|
|
91
|
+
.#{$prefix}-scrolllist {
|
|
92
|
+
&-body,
|
|
93
|
+
&-header {
|
|
94
|
+
padding: $spacing-timePicker_range_panel_scrolllist_header_body-padding;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$module}-input {
|
|
103
|
+
@include font-size-regular;
|
|
104
|
+
align-items: center;
|
|
105
|
+
border-radius: $radius-timePicker_input;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.#{$module}-input-readonly {
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
|
|
111
|
+
// the native input takes the text cursor from the user agent stylesheet
|
|
112
|
+
.#{$prefix}-input {
|
|
113
|
+
cursor: inherit;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.#{$module} {
|
|
119
|
+
.#{$prefix}-input-borderless:not(:focus-within):not(:hover) {
|
|
120
|
+
.#{$prefix}-input {
|
|
121
|
+
&-suffix {
|
|
122
|
+
opacity: 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@include meta.load-css('rtl');
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function parseToDate(input: string | Date | number, formatToken?: string, dateFnsLocale?: import("date-fns").Locale): Date;
|
|
2
|
+
export declare function formatToString(dateOrTimestamp: Date | number, formatToken?: string, dateFnsLocale?: import("date-fns").Locale): string;
|
|
3
|
+
export declare function hourIsDisabled(disabledHours: () => number[], hour: number): boolean;
|
|
4
|
+
export declare function minuteIsDisabled(disabledMinutes: (hour: number) => number[], hour: number, minute: number): boolean;
|
|
5
|
+
export declare function secondIsDisabled(disabledSeconds: (hour: number, minute: number) => number[], hour: number, minute: number, second: number): boolean;
|
|
6
|
+
export declare function transformToArray<T>(value: T[]): T[];
|
|
7
|
+
/**
|
|
8
|
+
* Determine whether the time length is the same as the format
|
|
9
|
+
* e.g.
|
|
10
|
+
* format | time | return
|
|
11
|
+
* HH:mm | 12:00 | true
|
|
12
|
+
* HH:mm:ss | 12:00:00 | true
|
|
13
|
+
* yyyy HH:mm | 2021 12:00| true
|
|
14
|
+
* HH | 1 | false
|
|
15
|
+
* HH:mm | 12:0 | false
|
|
16
|
+
* HH:mm:ss | 12:00:0 | false
|
|
17
|
+
*/
|
|
18
|
+
export declare function isTimeFormatLike(time: string, formatToken: string): boolean;
|