@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,154 @@
|
|
|
1
|
+
@layer semi{/**
|
|
2
|
+
* The part of a Tooltip/Popover/Dropdown wrapper that comes from the top layer: the foundation writes left/top,
|
|
3
|
+
* transform-origin and the arrow offsets inline once the popup is shown. Visual appearance (background, shadow,
|
|
4
|
+
* padding) stays in each component's own stylesheet. Popover draws the same mechanism with its own motion durations,
|
|
5
|
+
* so they default to Tooltip's and are overridden by its caller.
|
|
6
|
+
*
|
|
7
|
+
* The zoom is a keyframe animation, not a transition: an animation starts when the popup leaves `display: none`, with
|
|
8
|
+
* no `@starting-style`, and the exit plays while the popup is still open, so it keeps the top layer without
|
|
9
|
+
* `overlay`. The host hides the popover once the exit has finished.
|
|
10
|
+
*/
|
|
11
|
+
.semi-dropdown {
|
|
12
|
+
font-family: var(--semi-font-family-regular);
|
|
13
|
+
font-size: var(--semi-font-size-regular);
|
|
14
|
+
line-height: var(--semi-line-height-regular);
|
|
15
|
+
}
|
|
16
|
+
.semi-dropdown-wrapper {
|
|
17
|
+
position: fixed;
|
|
18
|
+
inset: auto;
|
|
19
|
+
width: max-content;
|
|
20
|
+
max-width: 100vw;
|
|
21
|
+
padding: 0;
|
|
22
|
+
margin: 0;
|
|
23
|
+
overflow: visible;
|
|
24
|
+
color: inherit;
|
|
25
|
+
background: none;
|
|
26
|
+
border: none;
|
|
27
|
+
}
|
|
28
|
+
.semi-dropdown-wrapper:popover-open {
|
|
29
|
+
animation: semi-dropdown-zoom-in 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
30
|
+
}
|
|
31
|
+
.semi-dropdown-wrapper:popover-open:not(.semi-dropdown-wrapper-show) {
|
|
32
|
+
animation: semi-dropdown-zoom-out 100ms cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
|
|
33
|
+
}
|
|
34
|
+
.semi-dropdown-wrapper.semi-dropdown-no-motion:popover-open {
|
|
35
|
+
animation: none;
|
|
36
|
+
}
|
|
37
|
+
@keyframes semi-dropdown-zoom-in {
|
|
38
|
+
from {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: scale(0.8);
|
|
41
|
+
}
|
|
42
|
+
50% {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
@keyframes semi-dropdown-zoom-out {
|
|
47
|
+
50%, to {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
to {
|
|
51
|
+
transform: scale(0.8);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.semi-dropdown-wrapper {
|
|
55
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
56
|
+
overflow-y: auto;
|
|
57
|
+
background: var(--semi-color-bg-3);
|
|
58
|
+
border-radius: var(--semi-border-radius-medium);
|
|
59
|
+
-webkit-backdrop-filter: none;
|
|
60
|
+
backdrop-filter: none;
|
|
61
|
+
}
|
|
62
|
+
.semi-dropdown-trigger {
|
|
63
|
+
display: inline-block;
|
|
64
|
+
}
|
|
65
|
+
.semi-dropdown-menu {
|
|
66
|
+
padding: 4px 0;
|
|
67
|
+
margin: 0;
|
|
68
|
+
list-style: none;
|
|
69
|
+
}
|
|
70
|
+
.semi-dropdown-title {
|
|
71
|
+
font-family: var(--semi-font-family-regular);
|
|
72
|
+
font-size: var(--semi-font-size-small);
|
|
73
|
+
line-height: var(--semi-line-height-small);
|
|
74
|
+
padding-inline: 16px 16px;
|
|
75
|
+
padding-top: 8px;
|
|
76
|
+
padding-bottom: 4px;
|
|
77
|
+
color: var(--semi-color-text-2);
|
|
78
|
+
cursor: default;
|
|
79
|
+
}
|
|
80
|
+
.semi-dropdown-title-withTick {
|
|
81
|
+
padding-inline-start: 31px;
|
|
82
|
+
}
|
|
83
|
+
.semi-dropdown-item {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
max-width: 280px;
|
|
87
|
+
padding: 8px 16px;
|
|
88
|
+
color: var(--semi-color-text-0);
|
|
89
|
+
border-radius: 0px;
|
|
90
|
+
transition: background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms;
|
|
91
|
+
}
|
|
92
|
+
.semi-dropdown-item:not(.semi-dropdown-item-active):hover {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
background-color: var(--semi-color-fill-0);
|
|
95
|
+
}
|
|
96
|
+
.semi-dropdown-item:not(.semi-dropdown-item-active):active {
|
|
97
|
+
background-color: var(--semi-color-fill-1);
|
|
98
|
+
}
|
|
99
|
+
.semi-dropdown-item:focus-visible {
|
|
100
|
+
outline: 0;
|
|
101
|
+
background-color: var(--semi-color-fill-0);
|
|
102
|
+
}
|
|
103
|
+
.semi-dropdown-item-icon {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
margin-inline-end: 8px;
|
|
107
|
+
}
|
|
108
|
+
.semi-dropdown-item-danger {
|
|
109
|
+
color: var(--semi-color-danger);
|
|
110
|
+
}
|
|
111
|
+
.semi-dropdown-item-secondary {
|
|
112
|
+
color: var(--semi-color-secondary);
|
|
113
|
+
}
|
|
114
|
+
.semi-dropdown-item-warning {
|
|
115
|
+
color: var(--semi-color-warning);
|
|
116
|
+
}
|
|
117
|
+
.semi-dropdown-item-tertiary {
|
|
118
|
+
color: var(--semi-color-tertiary);
|
|
119
|
+
}
|
|
120
|
+
.semi-dropdown-item-primary {
|
|
121
|
+
color: var(--semi-color-primary);
|
|
122
|
+
}
|
|
123
|
+
.semi-dropdown-item-withTick {
|
|
124
|
+
padding-inline-start: 12px;
|
|
125
|
+
}
|
|
126
|
+
.semi-dropdown-item > .semi-icon {
|
|
127
|
+
flex-shrink: 0;
|
|
128
|
+
margin-inline-end: 9px;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
}
|
|
131
|
+
.semi-dropdown-item-active {
|
|
132
|
+
font-weight: 600;
|
|
133
|
+
}
|
|
134
|
+
.semi-dropdown-item.semi-dropdown-item-disabled {
|
|
135
|
+
color: var(--semi-color-disabled-text);
|
|
136
|
+
cursor: not-allowed;
|
|
137
|
+
}
|
|
138
|
+
.semi-dropdown-item.semi-dropdown-item-disabled:hover, .semi-dropdown-item.semi-dropdown-item-disabled:active {
|
|
139
|
+
cursor: not-allowed;
|
|
140
|
+
background-color: transparent;
|
|
141
|
+
}
|
|
142
|
+
.semi-dropdown-divider {
|
|
143
|
+
clear: both;
|
|
144
|
+
display: block;
|
|
145
|
+
width: 100%;
|
|
146
|
+
min-width: 100%;
|
|
147
|
+
height: 1px;
|
|
148
|
+
margin: 4px 0;
|
|
149
|
+
background: var(--semi-color-border);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.semi-dropdown-wrapper:dir(rtl) {
|
|
153
|
+
direction: rtl;
|
|
154
|
+
}}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'semi:theme' as *;
|
|
3
|
+
@use '../tooltip/position';
|
|
4
|
+
@use 'variables' as *;
|
|
5
|
+
@use 'animation' as *;
|
|
6
|
+
|
|
7
|
+
$module: #{$prefix}-dropdown;
|
|
8
|
+
|
|
9
|
+
.#{$module} {
|
|
10
|
+
@include font-size-regular;
|
|
11
|
+
|
|
12
|
+
&-wrapper {
|
|
13
|
+
@include position.wrapper-styles($module);
|
|
14
|
+
@include shadow-elevated;
|
|
15
|
+
overflow-y: auto; // prevent flow out of the radius limit area
|
|
16
|
+
background: $color-dropdown-bg-default;
|
|
17
|
+
border-radius: $radius-dropdown;
|
|
18
|
+
-webkit-backdrop-filter: $filter-dropdown-bg;
|
|
19
|
+
backdrop-filter: $filter-dropdown-bg;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-trigger {
|
|
23
|
+
display: inline-block;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-menu {
|
|
27
|
+
padding: $spacing-dropdown_menu-paddingY $spacing-dropdown_menu-paddingX;
|
|
28
|
+
margin: 0;
|
|
29
|
+
list-style: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-title {
|
|
33
|
+
@include font-size-small;
|
|
34
|
+
padding-inline: $spacing-dropdown_title-paddingLeft $spacing-dropdown_title-paddingRight;
|
|
35
|
+
padding-top: $spacing-dropdown_title-paddingTop;
|
|
36
|
+
padding-bottom: $spacing-dropdown_title-paddingBottom;
|
|
37
|
+
color: $color-dropdown_title-text-default;
|
|
38
|
+
cursor: default;
|
|
39
|
+
|
|
40
|
+
&-withTick {
|
|
41
|
+
padding-inline-start: $spacing-dropdown_title_withTick-paddingLeft;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-item {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
max-width: $width-dropdown;
|
|
49
|
+
padding: $spacing-dropdown_item-paddingY $spacing-dropdown_item-paddingX;
|
|
50
|
+
color: $color-dropdown_item-text-default;
|
|
51
|
+
border-radius: $radius-dropdown_item;
|
|
52
|
+
transition: background-color $transition_duration-dropdown_item-bg $transition_function-dropdown_item-bg $transition_delay-dropdown_item-bg;
|
|
53
|
+
|
|
54
|
+
&:not(.#{$module}-item-active):hover {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
background-color: $color-dropdown_item-bg-hover;
|
|
57
|
+
}
|
|
58
|
+
&:not(.#{$module}-item-active):active {
|
|
59
|
+
background-color: $color-dropdown_item-bg-active;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:focus-visible {
|
|
63
|
+
outline: 0;
|
|
64
|
+
background-color: $color-dropdown_item-bg-hover;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&-icon {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
margin-inline-end: $spacing-tight;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-danger {
|
|
74
|
+
color: $color-dropdown_item_danger-text-default;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-secondary {
|
|
78
|
+
color: $color-dropdown_item_secondary-text-default;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-warning {
|
|
82
|
+
color: $color-dropdown_item_warning-text-default;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-tertiary {
|
|
86
|
+
color: $color-dropdown_item_tertiary-text-default;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-primary {
|
|
90
|
+
color: $color-dropdown_item_primary-text-default;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-withTick {
|
|
94
|
+
padding-inline-start: $spacing-dropdown_item_withTick-paddingLeft;
|
|
95
|
+
}
|
|
96
|
+
& > .#{$prefix}-icon {
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
margin-inline-end: $spacing-dropdown_icon-marginRight;
|
|
99
|
+
font-size: $size-dropdown-icon-width;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-active {
|
|
103
|
+
font-weight: $font-dropdown_item_active-fontWeight;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
&-item.#{$module}-item-disabled {
|
|
107
|
+
color: $color-dropdown_item_disabled-text-default;
|
|
108
|
+
cursor: not-allowed;
|
|
109
|
+
|
|
110
|
+
&:hover,
|
|
111
|
+
&:active {
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
background-color: $color-dropdown_item_disabled-bg-default;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-divider {
|
|
118
|
+
clear: both;
|
|
119
|
+
display: block;
|
|
120
|
+
width: 100%;
|
|
121
|
+
min-width: 100%;
|
|
122
|
+
height: $height-dropdown_seperator;
|
|
123
|
+
margin: $spacing-dropdown_seperator-marginY $spacing-dropdown_seperator-marginX;
|
|
124
|
+
background: $color-dropdown_seperator-bg-default;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@include meta.load-css('rtl');
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import BaseFoundation from "../base/foundation.js";
|
|
2
|
+
import { DropdownContextAdapter } from "./menu-foundation.js";
|
|
3
|
+
/** The context is the one around the Dropdown: a Dropdown inside a menu reads that menu's DropdownMenuContext */
|
|
4
|
+
export interface DropdownAdapter<P extends DropdownBaseProps = DropdownBaseProps, S extends DropdownBaseState = DropdownBaseState> extends DropdownContextAdapter<P, S> {
|
|
5
|
+
setPopVisible(visible: boolean): void;
|
|
6
|
+
notifyVisibleChange(visible: boolean): void;
|
|
7
|
+
/** The Tooltip popup element (`[popover]`), null while it is not in the document */
|
|
8
|
+
getPopup(): HTMLElement | null;
|
|
9
|
+
/** Hides the popup through Tooltip's hide(), without moving focus: a controlled one only reports the request */
|
|
10
|
+
hidePopup(): void;
|
|
11
|
+
}
|
|
12
|
+
/** The props the foundation reads */
|
|
13
|
+
export interface DropdownBaseProps {
|
|
14
|
+
trigger?: string;
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** The state the foundation reads */
|
|
18
|
+
export interface DropdownBaseState {
|
|
19
|
+
popVisible: boolean;
|
|
20
|
+
}
|
|
21
|
+
export default class DropdownFoundation<P extends DropdownBaseProps = DropdownBaseProps, S extends DropdownBaseState = DropdownBaseState> extends BaseFoundation<DropdownAdapter<P, S>, P, S> {
|
|
22
|
+
#private;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
/** Closes the menu without moving focus */
|
|
25
|
+
close(): void;
|
|
26
|
+
/** Tooltip's onVisibleChange: an actual change when uncontrolled, only a request to the owner when controlled */
|
|
27
|
+
handleVisibleChange(visible: boolean): void;
|
|
28
|
+
/**
|
|
29
|
+
* Tooltip's initial focus of each opening, right after the popup is shown, controlled or not. Not deferred to
|
|
30
|
+
* afterOpen: a keyboard user would wait out the enter animation.
|
|
31
|
+
*/
|
|
32
|
+
handleOpened(): void;
|
|
33
|
+
/**
|
|
34
|
+
* @param isMenuButton whether the trigger is a menu button: only then Up and Down open a closed menu
|
|
35
|
+
*/
|
|
36
|
+
handleKeyDown(event: any, isMenuButton?: boolean): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import BaseFoundation from "../base/foundation.js";
|
|
2
|
+
import { getMenuButton, handlePrevent, isTextEditor, setFocusToFirstItem, setFocusToLastItem } from "../utils/a11y.js";
|
|
3
|
+
import { strings } from "./constants.js";
|
|
4
|
+
import FocusTrapHandle from "../utils/focus-handle.js";
|
|
5
|
+
// src/dropdown/foundation.ts
|
|
6
|
+
const { ITEM_SELECTOR } = strings;
|
|
7
|
+
const NATIVE_KEY_CLICK_SELECTOR = "button, summary, input[type=\"button\"], input[type=\"submit\"], input[type=\"reset\"]";
|
|
8
|
+
var DropdownFoundation = class extends BaseFoundation {
|
|
9
|
+
#focusOnOpen = null;
|
|
10
|
+
#focusEdgeItem(popup, edge) {
|
|
11
|
+
const items = this.#getMenuItemNodes(popup);
|
|
12
|
+
if (edge === "first") setFocusToFirstItem(items);
|
|
13
|
+
else setFocusToLastItem(items);
|
|
14
|
+
}
|
|
15
|
+
#getMenuItemNodes(popup) {
|
|
16
|
+
return popup ? [...popup.querySelectorAll(ITEM_SELECTOR)].filter((item) => item.getAttribute("aria-disabled") !== "true") : [];
|
|
17
|
+
}
|
|
18
|
+
#isOpen() {
|
|
19
|
+
return this.getProp("visible") ?? this.getState("popVisible");
|
|
20
|
+
}
|
|
21
|
+
#handleParentItemKeyDown(event, popup) {
|
|
22
|
+
const popVisible = this.#isOpen();
|
|
23
|
+
const openKey = this._adapter.getContext("direction") === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
24
|
+
const handled = event.defaultPrevented;
|
|
25
|
+
switch (event.key) {
|
|
26
|
+
case "Enter":
|
|
27
|
+
case " ":
|
|
28
|
+
case openKey:
|
|
29
|
+
handlePrevent(event);
|
|
30
|
+
if (popVisible) setFocusToFirstItem(this.#getMenuItemNodes(popup));
|
|
31
|
+
else {
|
|
32
|
+
this.#focusOnOpen = "first";
|
|
33
|
+
const trigger = this.getProp("trigger");
|
|
34
|
+
if (trigger === "click") {
|
|
35
|
+
if (!handled) event.target.click();
|
|
36
|
+
} else if (trigger === "hover" || trigger === "focus") {
|
|
37
|
+
event.target.blur();
|
|
38
|
+
event.target.focus();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
destroy() {
|
|
44
|
+
this._adapter.setPopVisible(false);
|
|
45
|
+
}
|
|
46
|
+
/** Closes the menu without moving focus */
|
|
47
|
+
close() {
|
|
48
|
+
this._adapter.hidePopup();
|
|
49
|
+
}
|
|
50
|
+
/** Tooltip's onVisibleChange: an actual change when uncontrolled, only a request to the owner when controlled */
|
|
51
|
+
handleVisibleChange(visible) {
|
|
52
|
+
if (this.getProp("visible") === void 0) this._adapter.setPopVisible(visible);
|
|
53
|
+
if (!visible) this.#focusOnOpen = null;
|
|
54
|
+
this._adapter.notifyVisibleChange(visible);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Tooltip's initial focus of each opening, right after the popup is shown, controlled or not. Not deferred to
|
|
58
|
+
* afterOpen: a keyboard user would wait out the enter animation.
|
|
59
|
+
*/
|
|
60
|
+
handleOpened() {
|
|
61
|
+
const popup = this._adapter.getPopup();
|
|
62
|
+
const trigger = popup && getMenuButton(popup.id, popup.getRootNode());
|
|
63
|
+
const focusOnOpen = trigger?.contains(FocusTrapHandle.getActiveElement(trigger)) ? this.#focusOnOpen : null;
|
|
64
|
+
if (["click", "contextMenu"].includes(this.getProp("trigger")) || focusOnOpen) this.#focusEdgeItem(popup, focusOnOpen ?? "first");
|
|
65
|
+
this.#focusOnOpen = null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @param isMenuButton whether the trigger is a menu button: only then Up and Down open a closed menu
|
|
69
|
+
*/
|
|
70
|
+
handleKeyDown(event, isMenuButton = false) {
|
|
71
|
+
const popup = this._adapter.getPopup();
|
|
72
|
+
if (this._adapter.getContext("menuDepth") > 0) {
|
|
73
|
+
this.#handleParentItemKeyDown(event, popup);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const popVisible = this.#isOpen();
|
|
77
|
+
switch (event.key) {
|
|
78
|
+
case " ":
|
|
79
|
+
case "Enter":
|
|
80
|
+
if (isTextEditor(event.target)) break;
|
|
81
|
+
if (!event.defaultPrevented && !event.target.matches(NATIVE_KEY_CLICK_SELECTOR)) {
|
|
82
|
+
event.target.click();
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case "ArrowDown":
|
|
87
|
+
case "ArrowUp": {
|
|
88
|
+
const edge = event.key === "ArrowDown" ? "first" : "last";
|
|
89
|
+
if (popVisible) {
|
|
90
|
+
if (this.#getMenuItemNodes(popup).length) this.#focusEdgeItem(popup, edge);
|
|
91
|
+
else {
|
|
92
|
+
const focusable = FocusTrapHandle.getFocusableElements(popup);
|
|
93
|
+
(edge === "first" ? focusable[0] : focusable.at(-1))?.focus();
|
|
94
|
+
}
|
|
95
|
+
handlePrevent(event);
|
|
96
|
+
} else if (isMenuButton) {
|
|
97
|
+
const trigger = this.getProp("trigger");
|
|
98
|
+
if (![
|
|
99
|
+
"click",
|
|
100
|
+
"hover",
|
|
101
|
+
"focus"
|
|
102
|
+
].includes(trigger)) break;
|
|
103
|
+
handlePrevent(event);
|
|
104
|
+
this.#focusOnOpen = edge;
|
|
105
|
+
if (trigger === "click") event.target.click();
|
|
106
|
+
else {
|
|
107
|
+
event.target.blur();
|
|
108
|
+
event.target.focus();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
case "Tab": if (popVisible) {
|
|
114
|
+
this.close();
|
|
115
|
+
this._adapter.getContext("closeAll")?.();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
export { DropdownFoundation as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import BaseFoundation, { DefaultAdapter, DirectionContext } from "../base/foundation.js";
|
|
2
|
+
export type DropdownSelectionMode = 'single' | 'multiple';
|
|
3
|
+
/**
|
|
4
|
+
* Role and checked state of a menu item, from the menu's selectionMode (as React Aria Menu) and showTick. Without a
|
|
5
|
+
* selectionMode a tick shows a checked state, so showTick alone makes the items checkboxes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getItemRole(selectionMode?: DropdownSelectionMode, showTick?: boolean): "menuitem" | "menuitemradio" | "menuitemcheckbox";
|
|
8
|
+
/**
|
|
9
|
+
* What a Dropdown provides to everything inside its popup, read by the menus there and by a Dropdown whose trigger is
|
|
10
|
+
* one of their items. A framework adapter passes it as the foundation context, with the reading direction added.
|
|
11
|
+
*/
|
|
12
|
+
export interface DropdownMenuContext extends DirectionContext {
|
|
13
|
+
/** How many menus enclose this point: 1 inside a top-level menu, 0 outside any menu */
|
|
14
|
+
menuDepth?: number;
|
|
15
|
+
showTick?: boolean;
|
|
16
|
+
/** Not inherited: a submenu takes its own Dropdown's value */
|
|
17
|
+
selectionMode?: DropdownSelectionMode;
|
|
18
|
+
trigger?: string;
|
|
19
|
+
/** Closes the popup that renders the menu, without moving focus */
|
|
20
|
+
close?: () => void;
|
|
21
|
+
/** Closes that popup and the popups of every enclosing menu */
|
|
22
|
+
closeAll?: () => void;
|
|
23
|
+
/** Id of the popup that renders the menu; its trigger carries it as data-popupid */
|
|
24
|
+
getPopupId?: () => string;
|
|
25
|
+
}
|
|
26
|
+
/** The adapter of a foundation that reads DropdownMenuContext */
|
|
27
|
+
export interface DropdownContextAdapter<P = object, S = object> extends DefaultAdapter<P, S, DropdownMenuContext> {}
|
|
28
|
+
/**
|
|
29
|
+
* Keyboard of a menu (WAI-ARIA APG menu pattern): arrows, Home and End move focus between the enabled items of this
|
|
30
|
+
* menu, Enter and Space activate the focused item, Left (Right in RTL) closes a submenu. Opening a submenu is handled
|
|
31
|
+
* by the Dropdown whose trigger is the parent item.
|
|
32
|
+
*/
|
|
33
|
+
export default class DropdownMenuFoundation<P extends object = object, S extends object = object> extends BaseFoundation<DropdownContextAdapter<P, S>, P, S> {
|
|
34
|
+
#private;
|
|
35
|
+
onMenuKeydown(event: any): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import BaseFoundation from "../base/foundation.js";
|
|
2
|
+
import { Typeahead, getListTargetIndex, getMenuButton, handlePrevent, setFocusToItem } from "../utils/a11y.js";
|
|
3
|
+
import { strings } from "./constants.js";
|
|
4
|
+
// src/dropdown/menu-foundation.ts
|
|
5
|
+
const { ITEM_SELECTOR } = strings;
|
|
6
|
+
/**
|
|
7
|
+
* Role and checked state of a menu item, from the menu's selectionMode (as React Aria Menu) and showTick. Without a
|
|
8
|
+
* selectionMode a tick shows a checked state, so showTick alone makes the items checkboxes.
|
|
9
|
+
*/
|
|
10
|
+
function getItemRole(selectionMode, showTick) {
|
|
11
|
+
if (selectionMode === "single") return "menuitemradio";
|
|
12
|
+
return selectionMode === "multiple" || showTick ? "menuitemcheckbox" : "menuitem";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Keyboard of a menu (WAI-ARIA APG menu pattern): arrows, Home and End move focus between the enabled items of this
|
|
16
|
+
* menu, Enter and Space activate the focused item, Left (Right in RTL) closes a submenu. Opening a submenu is handled
|
|
17
|
+
* by the Dropdown whose trigger is the parent item.
|
|
18
|
+
*/
|
|
19
|
+
var DropdownMenuFoundation = class extends BaseFoundation {
|
|
20
|
+
#typeahead = new Typeahead();
|
|
21
|
+
#focusMenuButton(menu) {
|
|
22
|
+
getMenuButton(this._adapter.getContext("getPopupId")?.() ?? "", menu.getRootNode())?.focus();
|
|
23
|
+
}
|
|
24
|
+
#getItems(menu) {
|
|
25
|
+
return [...menu.querySelectorAll(ITEM_SELECTOR)].filter((item) => item.closest("[role=\"menu\"]") === menu && item.getAttribute("aria-disabled") !== "true");
|
|
26
|
+
}
|
|
27
|
+
onMenuKeydown(event) {
|
|
28
|
+
const menu = event.currentTarget;
|
|
29
|
+
const target = event.target;
|
|
30
|
+
if (target.closest("[role=\"menu\"]") !== menu) {
|
|
31
|
+
if (event.key !== "Escape") event.stopPropagation();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const items = this.#getItems(menu);
|
|
35
|
+
const index = items.findIndex((item) => item.contains(target));
|
|
36
|
+
const isRtl = this._adapter.getContext("direction") === "rtl";
|
|
37
|
+
const isSubmenu = this._adapter.getContext("menuDepth") > 1;
|
|
38
|
+
switch (event.key) {
|
|
39
|
+
case " ":
|
|
40
|
+
case "Enter":
|
|
41
|
+
if (index >= 0 && items[index] === target && !event.defaultPrevented) {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
target.click();
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
case "Escape":
|
|
47
|
+
if (this._adapter.getContext("trigger") === "custom") this.#focusMenuButton(menu);
|
|
48
|
+
break;
|
|
49
|
+
case "ArrowDown":
|
|
50
|
+
case "ArrowUp":
|
|
51
|
+
case "Home":
|
|
52
|
+
case "End": {
|
|
53
|
+
const next = getListTargetIndex(event.key, index, items.length, () => false, { loop: true });
|
|
54
|
+
if (next !== null) setFocusToItem(items, items[next]);
|
|
55
|
+
handlePrevent(event);
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
case "ArrowLeft":
|
|
59
|
+
case "ArrowRight":
|
|
60
|
+
if (isSubmenu && event.key === (isRtl ? "ArrowRight" : "ArrowLeft")) {
|
|
61
|
+
handlePrevent(event);
|
|
62
|
+
this.#focusMenuButton(menu);
|
|
63
|
+
this._adapter.getContext("close")?.();
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
case "Tab": {
|
|
67
|
+
const root = menu.getRootNode();
|
|
68
|
+
let button = getMenuButton(this._adapter.getContext("getPopupId")?.() ?? "", root);
|
|
69
|
+
while (button?.matches(ITEM_SELECTOR)) button = getMenuButton(button.closest("[popover]")?.id ?? "", root);
|
|
70
|
+
button?.focus();
|
|
71
|
+
this._adapter.getContext("closeAll")?.();
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
default: if (this.#typeahead.accepts(event)) {
|
|
75
|
+
const labels = items.map((item) => item.textContent);
|
|
76
|
+
const found = this.#typeahead.match(event.key, labels, index);
|
|
77
|
+
if (found >= 0) setFocusToItem(items, items[found]);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export { DropdownMenuFoundation as default, getItemRole };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use 'semi:theme' as *;
|
|
2
|
+
|
|
3
|
+
$radius-dropdown: var(--semi-border-radius-medium); // 下拉菜单圆角大小
|
|
4
|
+
$radius-dropdown_item: 0px; // 下拉菜单项圆角大小
|
|
5
|
+
$color-dropdown-bg-default: var(--semi-color-bg-3); // 下拉菜单背景颜色
|
|
6
|
+
$color-dropdown_title-text-default: var(--semi-color-text-2); // 下拉菜单分组标题文字颜色
|
|
7
|
+
|
|
8
|
+
$spacing-dropdown_menu-paddingY: $spacing-extra-tight; // 下拉菜单垂直内边距
|
|
9
|
+
$spacing-dropdown_menu-paddingX: 0; // 下拉菜单水平内边距
|
|
10
|
+
$spacing-dropdown_title-paddingTop: $spacing-tight; // 下拉菜单分组标题顶部内边距
|
|
11
|
+
$spacing-dropdown_title-paddingBottom: $spacing-extra-tight; // 下拉菜单分组标题底部内边距
|
|
12
|
+
$spacing-dropdown_title-paddingLeft: $spacing-base; // 下拉菜单分组标题左侧内边距
|
|
13
|
+
$spacing-dropdown_title-paddingRight: $spacing-base; // 下拉菜单分组标题右侧内边距
|
|
14
|
+
$spacing-dropdown_title_withTick-paddingLeft: 31px; // 可选中的下拉菜单,分组标题左侧内边距
|
|
15
|
+
$spacing-dropdown_item_withTick-paddingLeft: $spacing-base-tight; // 可选中弄的下拉菜单项,对勾 icon 左侧内边距
|
|
16
|
+
|
|
17
|
+
$spacing-dropdown_item-paddingY: $spacing-tight; // 下拉菜单项垂直内边距
|
|
18
|
+
$spacing-dropdown_item-paddingX: $spacing-base; // 下拉菜单项水平内边距
|
|
19
|
+
|
|
20
|
+
$color-dropdown_item-text-default: var(--semi-color-text-0); // 下拉菜单项文字颜色
|
|
21
|
+
$color-dropdown_item-bg-hover: var(--semi-color-fill-0); // 下拉菜单项背景颜色 - 悬浮
|
|
22
|
+
$color-dropdown_item-bg-active: var(--semi-color-fill-1); // 下拉菜单项背景颜色 - 按下
|
|
23
|
+
$color-dropdown_item_danger-text-default: var(--semi-color-danger); // 下拉菜单项背景颜色 - 悬浮
|
|
24
|
+
$color-dropdown_item_secondary-text-default: var(--semi-color-secondary); // 二级菜单项文字颜色
|
|
25
|
+
$color-dropdown_item_warning-text-default: var(--semi-color-warning); // 警告菜单项文字颜色
|
|
26
|
+
$color-dropdown_item_tertiary-text-default: var(--semi-color-tertiary); // 第三菜单项文字颜色
|
|
27
|
+
$color-dropdown_item_primary-text-default: var(--semi-color-primary); // 主要菜单项文字颜色
|
|
28
|
+
$color-dropdown_item_disabled-text-default: var(--semi-color-disabled-text); // 禁用菜单项文字颜色
|
|
29
|
+
$color-dropdown_item_disabled-bg-default: transparent; // 禁用菜单项背景颜色
|
|
30
|
+
$color-dropdown_seperator-bg-default: var(--semi-color-border); // 菜单项分隔线颜色
|
|
31
|
+
|
|
32
|
+
$spacing-dropdown_icon-marginRight: 9px; // 菜单项分隔线颜色
|
|
33
|
+
$spacing-dropdown_seperator-marginY: $spacing-extra-tight; // 菜单项分隔线垂直内边距
|
|
34
|
+
$spacing-dropdown_seperator-marginX: 0; // 菜单项分隔线水平内边距
|
|
35
|
+
|
|
36
|
+
$width-dropdown: 280px; // 菜单最大宽度
|
|
37
|
+
$size-dropdown-icon-width: 12px; // 菜单项图标宽度
|
|
38
|
+
$height-dropdown_seperator: 1px; // 菜单项分隔线宽度
|
|
39
|
+
|
|
40
|
+
$font-dropdown_item_active-fontWeight: 600; // 选中菜单项字重
|
|
41
|
+
|
|
42
|
+
$filter-dropdown-bg: none;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@layer semi{.semi-empty {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
.semi-empty-image {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
user-select: none;
|
|
9
|
+
-webkit-user-drag: none;
|
|
10
|
+
}
|
|
11
|
+
.semi-empty-vertical {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
.semi-empty-vertical .semi-empty-content {
|
|
16
|
+
margin-top: 24px;
|
|
17
|
+
}
|
|
18
|
+
.semi-empty-vertical .semi-empty-title,
|
|
19
|
+
.semi-empty-vertical .semi-empty-description {
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
.semi-empty-horizontal .semi-empty-content {
|
|
23
|
+
margin-inline-start: 32px;
|
|
24
|
+
}
|
|
25
|
+
.semi-empty-title.semi-typography {
|
|
26
|
+
display: block;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
}
|
|
29
|
+
.semi-empty-title + .semi-empty-description {
|
|
30
|
+
margin-top: 16px;
|
|
31
|
+
}
|
|
32
|
+
.semi-empty-description {
|
|
33
|
+
color: var(--semi-color-text-1);
|
|
34
|
+
}
|
|
35
|
+
.semi-empty-footer {
|
|
36
|
+
margin-top: 24px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.semi-empty:dir(rtl) {
|
|
40
|
+
direction: rtl;
|
|
41
|
+
}}
|