@fibrae/semi-foundation 0.0.0-stage → 0.1.1
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,109 @@
|
|
|
1
|
+
import BaseFoundation, { DefaultAdapter, DirectionContext } from "../base/foundation.js";
|
|
2
|
+
/** The members of a focus event the foundation reads; DOM events and React synthetic events both satisfy it */
|
|
3
|
+
export type RatingFocusEvent = {
|
|
4
|
+
currentTarget: Node;
|
|
5
|
+
relatedTarget: Node | null;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The host's event types, which the foundation passes on to the callbacks: CE for a star click (mouse or keyboard),
|
|
9
|
+
* FE for focus and blur of the list, KE for its keydown
|
|
10
|
+
*/
|
|
11
|
+
export interface RatingAdapter<P extends RatingBaseProps = RatingBaseProps, S extends RatingState = RatingState, CE = unknown, FE = unknown, KE = unknown> extends DefaultAdapter<P, S, DirectionContext> {
|
|
12
|
+
/** Focuses the radio that stands for `value`; 0 is the empty star */
|
|
13
|
+
focusStar: (value: number) => void;
|
|
14
|
+
getStarDOM: (index: number) => Element | null;
|
|
15
|
+
setHover: (hoverValue: number, clearedValue: number) => void;
|
|
16
|
+
notifyHoverChange: (hoverValue: number) => void;
|
|
17
|
+
setValue: (value: number) => void;
|
|
18
|
+
notifyChange: (value: number) => void;
|
|
19
|
+
setClearedValue: (clearedValue: number) => void;
|
|
20
|
+
notifyClick: (e: CE, index: number) => void;
|
|
21
|
+
notifyFocus: (e: FE) => void;
|
|
22
|
+
notifyBlur: (e: FE) => void;
|
|
23
|
+
notifyKeyDown: (e: KE) => void;
|
|
24
|
+
setFocusVisibleStar: (index?: number) => void;
|
|
25
|
+
}
|
|
26
|
+
interface RatingValueProps {
|
|
27
|
+
value?: number;
|
|
28
|
+
defaultValue?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface RatingItemModel {
|
|
31
|
+
isHalf: boolean;
|
|
32
|
+
isFull: boolean;
|
|
33
|
+
firstWidth: string;
|
|
34
|
+
firstValue: number;
|
|
35
|
+
secondValue: number;
|
|
36
|
+
setSize: number;
|
|
37
|
+
firstTabIndex: number;
|
|
38
|
+
secondTabIndex: number;
|
|
39
|
+
secondPosInSet: number;
|
|
40
|
+
}
|
|
41
|
+
export interface RatingState {
|
|
42
|
+
value: number;
|
|
43
|
+
hoverValue: number;
|
|
44
|
+
clearedValue: number;
|
|
45
|
+
/** index of the star that holds keyboard focus */
|
|
46
|
+
focusVisibleStar?: number;
|
|
47
|
+
}
|
|
48
|
+
/** The props the foundation reads with getProps */
|
|
49
|
+
export interface RatingBaseProps extends RatingValueProps {
|
|
50
|
+
count?: number;
|
|
51
|
+
allowHalf?: boolean;
|
|
52
|
+
allowClear?: boolean;
|
|
53
|
+
preventScroll?: boolean;
|
|
54
|
+
autoFocus?: boolean;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
}
|
|
57
|
+
type RatingKeyEvent = Pick<KeyboardEvent, 'key' | 'preventDefault' | 'altKey' | 'ctrlKey' | 'metaKey'>;
|
|
58
|
+
export default class RatingFoundation<P extends RatingBaseProps = RatingBaseProps, S extends RatingState = RatingState, CE = unknown, FE extends RatingFocusEvent = RatingFocusEvent, KE extends RatingKeyEvent = RatingKeyEvent> extends BaseFoundation<RatingAdapter<P, S, CE, FE, KE>, P, S> {
|
|
59
|
+
#private;
|
|
60
|
+
protected getStarValue(index: number, pos: number): number;
|
|
61
|
+
static getInitialState(props: RatingValueProps): RatingState;
|
|
62
|
+
static deriveValue(props: RatingValueProps, state: Pick<RatingState, 'value'>): number;
|
|
63
|
+
/** A value between radios (2.5 without allowHalf) has no checked radio; the first radio is then the Tab stop (APG) */
|
|
64
|
+
static isRadioValue(value: number, count: number, allowHalf: boolean): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* What a star's two radios (the first is the half, present only with allowHalf; the second is the whole star, or
|
|
67
|
+
* the empty one at index === count) stand for, their ARIA position and Tab stops, and how much of the star is filled
|
|
68
|
+
*/
|
|
69
|
+
static getItemModel({ index, count, allowHalf, value, displayValue, disabled, firstTabStop }: {
|
|
70
|
+
index: number;
|
|
71
|
+
count: number;
|
|
72
|
+
allowHalf: boolean;
|
|
73
|
+
value: number;
|
|
74
|
+
displayValue: number;
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
firstTabStop: boolean;
|
|
77
|
+
}): RatingItemModel;
|
|
78
|
+
/** Whether a focus on `value` belongs to the first (half) radio of the star at `index` */
|
|
79
|
+
static isFirstRadio(value: number, index: number, allowHalf: boolean): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The value a click selects through the radio it hit, or undefined when it is an ordinary pointer click. Detail 0 is
|
|
82
|
+
* a click without a pointer (a screen reader's default action, radio.click()): its coordinates mean nothing, so the
|
|
83
|
+
* activated radio decides the value
|
|
84
|
+
*/
|
|
85
|
+
static resolveClickRadio(detail: number, radioValue?: number): number | undefined;
|
|
86
|
+
/** What Enter or Space on a radio does: whether to `preventDefault` the key, and the value to select if any */
|
|
87
|
+
static resolveKeyActivation(key: string, radioValue: number | undefined, value: number): {
|
|
88
|
+
preventDefault: boolean;
|
|
89
|
+
selectValue?: number;
|
|
90
|
+
};
|
|
91
|
+
/** A hovered star takes the tooltip from the focused one, so only one shows at a time */
|
|
92
|
+
static isTipVisible(index: number, hoverValue?: number, focusVisibleStar?: number, tip?: string): boolean;
|
|
93
|
+
init(): void;
|
|
94
|
+
/** A value prop that goes back to undefined (a form reset) returns to defaultValue, like Slider (Switch and Checkbox become unchecked) */
|
|
95
|
+
resetValue(): void;
|
|
96
|
+
handleHover(event: Pick<MouseEvent, 'pageX'>, index: number): void;
|
|
97
|
+
handleMouseLeave(): void;
|
|
98
|
+
handleClick(event: CE & Pick<MouseEvent, 'pageX'>, index: number): void;
|
|
99
|
+
/** Commits `newValue` for the star at `index`; selecting the current value clears it when allowClear is on */
|
|
100
|
+
handleSelect(event: CE, index: number, newValue: number): void;
|
|
101
|
+
handleFocus(e: FE): void;
|
|
102
|
+
/** A radio of the star at `index` got focus; index === count is the empty star */
|
|
103
|
+
handleStarFocus(e: {
|
|
104
|
+
target: Element;
|
|
105
|
+
}, index: number): void;
|
|
106
|
+
handleBlur(e: FE): void;
|
|
107
|
+
handleKeyDown(event: KE, value: number): void;
|
|
108
|
+
}
|
|
109
|
+
export {};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import BaseFoundation from "../base/foundation.js";
|
|
2
|
+
// src/rating/foundation.ts
|
|
3
|
+
var RatingFoundation = class RatingFoundation extends BaseFoundation {
|
|
4
|
+
#initialized = false;
|
|
5
|
+
#getOffsetLeft(el) {
|
|
6
|
+
return el.getBoundingClientRect().left + el.ownerDocument.defaultView.scrollX;
|
|
7
|
+
}
|
|
8
|
+
#changeHover(hoverValue, clearedValue) {
|
|
9
|
+
this._adapter.setHover(hoverValue, clearedValue);
|
|
10
|
+
this._adapter.notifyHoverChange(hoverValue);
|
|
11
|
+
}
|
|
12
|
+
#updateValue(value) {
|
|
13
|
+
if (!this._isControlledComponent()) this._adapter.setValue(value);
|
|
14
|
+
this._adapter.notifyChange(value);
|
|
15
|
+
}
|
|
16
|
+
getStarValue(index, pos) {
|
|
17
|
+
const { allowHalf, count } = this.getProps();
|
|
18
|
+
if (index === count) return 0;
|
|
19
|
+
const reverse = this._adapter.getContext("direction") === "rtl";
|
|
20
|
+
let value = index + 1;
|
|
21
|
+
if (allowHalf) {
|
|
22
|
+
const starEle = this._adapter.getStarDOM(index);
|
|
23
|
+
if (!starEle) return value;
|
|
24
|
+
const leftDis = this.#getOffsetLeft(starEle);
|
|
25
|
+
const width = starEle.clientWidth;
|
|
26
|
+
if (reverse && pos - leftDis > width / 2) value -= .5;
|
|
27
|
+
else if (!reverse && pos - leftDis < width / 2) value -= .5;
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
static getInitialState(props) {
|
|
32
|
+
return {
|
|
33
|
+
value: props.value === void 0 ? props.defaultValue : props.value,
|
|
34
|
+
hoverValue: void 0,
|
|
35
|
+
clearedValue: null,
|
|
36
|
+
focusVisibleStar: void 0
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static deriveValue(props, state) {
|
|
40
|
+
return props.value === void 0 ? state.value : props.value;
|
|
41
|
+
}
|
|
42
|
+
/** A value between radios (2.5 without allowHalf) has no checked radio; the first radio is then the Tab stop (APG) */
|
|
43
|
+
static isRadioValue(value, count, allowHalf) {
|
|
44
|
+
return value >= 0 && value <= count && Number.isInteger(allowHalf ? value * 2 : value);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* What a star's two radios (the first is the half, present only with allowHalf; the second is the whole star, or
|
|
48
|
+
* the empty one at index === count) stand for, their ARIA position and Tab stops, and how much of the star is filled
|
|
49
|
+
*/
|
|
50
|
+
static getItemModel({ index, count, allowHalf, value, displayValue, disabled, firstTabStop }) {
|
|
51
|
+
const isEmpty = index === count;
|
|
52
|
+
const firstValue = index + .5;
|
|
53
|
+
const secondValue = isEmpty ? 0 : index + 1;
|
|
54
|
+
const diff = index + 1 - displayValue;
|
|
55
|
+
return {
|
|
56
|
+
isHalf: allowHalf && diff < 1 && diff > 0,
|
|
57
|
+
isFull: diff <= 0,
|
|
58
|
+
firstWidth: `${(1 - diff) * 100}%`,
|
|
59
|
+
firstValue,
|
|
60
|
+
secondValue,
|
|
61
|
+
setSize: allowHalf ? count * 2 + 1 : count + 1,
|
|
62
|
+
firstTabIndex: !disabled && (value === firstValue || firstTabStop) ? 0 : -1,
|
|
63
|
+
secondTabIndex: !disabled && (value === secondValue || firstTabStop && !allowHalf) ? 0 : -1,
|
|
64
|
+
secondPosInSet: allowHalf ? isEmpty ? 2 * count + 1 : 2 * (index + 1) : index + 1
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** Whether a focus on `value` belongs to the first (half) radio of the star at `index` */
|
|
68
|
+
static isFirstRadio(value, index, allowHalf) {
|
|
69
|
+
return allowHalf && value - index === .5;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The value a click selects through the radio it hit, or undefined when it is an ordinary pointer click. Detail 0 is
|
|
73
|
+
* a click without a pointer (a screen reader's default action, radio.click()): its coordinates mean nothing, so the
|
|
74
|
+
* activated radio decides the value
|
|
75
|
+
*/
|
|
76
|
+
static resolveClickRadio(detail, radioValue) {
|
|
77
|
+
return detail === 0 ? radioValue : void 0;
|
|
78
|
+
}
|
|
79
|
+
/** What Enter or Space on a radio does: whether to `preventDefault` the key, and the value to select if any */
|
|
80
|
+
static resolveKeyActivation(key, radioValue, value) {
|
|
81
|
+
const isSpace = key === " ";
|
|
82
|
+
if (key !== "Enter" && !isSpace || radioValue === void 0) return { preventDefault: false };
|
|
83
|
+
return {
|
|
84
|
+
preventDefault: true,
|
|
85
|
+
selectValue: isSpace && radioValue === value ? void 0 : radioValue
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/** A hovered star takes the tooltip from the focused one, so only one shows at a time */
|
|
89
|
+
static isTipVisible(index, hoverValue, focusVisibleStar, tip) {
|
|
90
|
+
return (hoverValue === void 0 ? focusVisibleStar === index : Math.ceil(hoverValue) - 1 === index) && Boolean(tip);
|
|
91
|
+
}
|
|
92
|
+
init() {
|
|
93
|
+
if (this.#initialized) return;
|
|
94
|
+
this.#initialized = true;
|
|
95
|
+
const { autoFocus, disabled } = this.getProps();
|
|
96
|
+
if (autoFocus && !disabled) this._adapter.focusStar(RatingFoundation.deriveValue(this.getProps(), this.getStates()));
|
|
97
|
+
}
|
|
98
|
+
/** A value prop that goes back to undefined (a form reset) returns to defaultValue, like Slider (Switch and Checkbox become unchecked) */
|
|
99
|
+
resetValue() {
|
|
100
|
+
this._adapter.setValue(this.getProps().defaultValue);
|
|
101
|
+
}
|
|
102
|
+
handleHover(event, index) {
|
|
103
|
+
const currValue = this.getStarValue(index, event.pageX);
|
|
104
|
+
const { clearedValue, hoverValue } = this.getStates();
|
|
105
|
+
if (currValue !== hoverValue && currValue !== clearedValue) this.#changeHover(currValue, null);
|
|
106
|
+
}
|
|
107
|
+
handleMouseLeave() {
|
|
108
|
+
this.#changeHover(void 0, null);
|
|
109
|
+
}
|
|
110
|
+
handleClick(event, index) {
|
|
111
|
+
this.handleSelect(event, index, this.getStarValue(index, event.pageX));
|
|
112
|
+
}
|
|
113
|
+
/** Commits `newValue` for the star at `index`; selecting the current value clears it when allowClear is on */
|
|
114
|
+
handleSelect(event, index, newValue) {
|
|
115
|
+
const { allowClear } = this.getProps();
|
|
116
|
+
const value = RatingFoundation.deriveValue(this.getProps(), this.getStates());
|
|
117
|
+
const isReset = allowClear ? newValue === value : false;
|
|
118
|
+
this.#updateValue(isReset ? 0 : newValue);
|
|
119
|
+
if (isReset) this.#changeHover(void 0, newValue);
|
|
120
|
+
else this._adapter.setClearedValue(null);
|
|
121
|
+
this._adapter.notifyClick(event, index);
|
|
122
|
+
}
|
|
123
|
+
handleFocus(e) {
|
|
124
|
+
if (!e.currentTarget.contains(e.relatedTarget)) this._adapter.notifyFocus(e);
|
|
125
|
+
}
|
|
126
|
+
/** A radio of the star at `index` got focus; index === count is the empty star */
|
|
127
|
+
handleStarFocus(e, index) {
|
|
128
|
+
if (e.target.matches(":focus-visible") || this.getStates().focusVisibleStar !== void 0) this._adapter.setFocusVisibleStar(index);
|
|
129
|
+
}
|
|
130
|
+
handleBlur(e) {
|
|
131
|
+
if (!e.currentTarget.contains(e.relatedTarget)) {
|
|
132
|
+
this._adapter.notifyBlur(e);
|
|
133
|
+
this._adapter.setFocusVisibleStar(void 0);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
handleKeyDown(event, value) {
|
|
137
|
+
if (event.altKey || event.ctrlKey || event.metaKey) return;
|
|
138
|
+
const { key } = event;
|
|
139
|
+
const { count, allowHalf } = this.getProps();
|
|
140
|
+
const reverse = this._adapter.getContext("direction") === "rtl";
|
|
141
|
+
const step = allowHalf ? .5 : 1;
|
|
142
|
+
const next = (Math.floor(value / step) + 1) * step;
|
|
143
|
+
const previous = (Math.ceil(value / step) - 1) * step;
|
|
144
|
+
let tempValue;
|
|
145
|
+
let newValue;
|
|
146
|
+
if (key === "ArrowRight") tempValue = reverse ? previous : next;
|
|
147
|
+
else if (key === "ArrowLeft") tempValue = reverse ? next : previous;
|
|
148
|
+
else if (key === "ArrowDown") tempValue = next;
|
|
149
|
+
else if (key === "ArrowUp") tempValue = previous;
|
|
150
|
+
if (tempValue > count) newValue = 0;
|
|
151
|
+
else if (tempValue < 0) newValue = count;
|
|
152
|
+
else newValue = tempValue;
|
|
153
|
+
if ([
|
|
154
|
+
"ArrowRight",
|
|
155
|
+
"ArrowUp",
|
|
156
|
+
"ArrowLeft",
|
|
157
|
+
"ArrowDown"
|
|
158
|
+
].includes(key)) {
|
|
159
|
+
this._adapter.notifyKeyDown(event);
|
|
160
|
+
this.#updateValue(newValue);
|
|
161
|
+
this._adapter.focusStar(newValue);
|
|
162
|
+
event.preventDefault();
|
|
163
|
+
this.#changeHover(void 0, null);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
export { RatingFoundation as default };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@layer semi{.semi-rating {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
padding: 0px;
|
|
4
|
+
margin: 0px;
|
|
5
|
+
color: var(--semi-yellow-5);
|
|
6
|
+
outline: none;
|
|
7
|
+
list-style: none;
|
|
8
|
+
border-radius: 3px;
|
|
9
|
+
}
|
|
10
|
+
.semi-rating:has(> li:last-child [role=radio]:focus-visible) {
|
|
11
|
+
outline: 2px solid var(--semi-color-primary-light-active);
|
|
12
|
+
}
|
|
13
|
+
.semi-rating-no-focus {
|
|
14
|
+
outline: none;
|
|
15
|
+
}
|
|
16
|
+
.semi-rating-disabled .semi-rating-star {
|
|
17
|
+
cursor: default;
|
|
18
|
+
}
|
|
19
|
+
.semi-rating-disabled .semi-rating-star:hover {
|
|
20
|
+
transform: scale(1);
|
|
21
|
+
}
|
|
22
|
+
.semi-rating-star {
|
|
23
|
+
position: relative;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
padding: 0;
|
|
26
|
+
margin: 0;
|
|
27
|
+
color: inherit;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transform: scale(var(--semi-transform_scale-none));
|
|
30
|
+
transition: all 0.5s;
|
|
31
|
+
}
|
|
32
|
+
.semi-rating-star:not(:last-child) {
|
|
33
|
+
margin-inline-end: 6px;
|
|
34
|
+
}
|
|
35
|
+
.semi-rating-star:not(:last-child) > .semi-rating-star-wrapper:has(> [role=radio]:focus-visible) {
|
|
36
|
+
outline: 2px solid var(--semi-color-primary-light-active);
|
|
37
|
+
}
|
|
38
|
+
.semi-rating-star > div:hover, .semi-rating-star > div:focus {
|
|
39
|
+
transform: scale(1.1);
|
|
40
|
+
}
|
|
41
|
+
.semi-rating-star > div.semi-rating-star-disabled {
|
|
42
|
+
transform: none;
|
|
43
|
+
}
|
|
44
|
+
.semi-rating-star-small {
|
|
45
|
+
width: 16px;
|
|
46
|
+
height: 16px;
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
}
|
|
49
|
+
.semi-rating-star-default {
|
|
50
|
+
width: 24px;
|
|
51
|
+
height: 24px;
|
|
52
|
+
font-size: 24px;
|
|
53
|
+
}
|
|
54
|
+
.semi-rating-star-outer {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
width: fit-content;
|
|
57
|
+
height: fit-content;
|
|
58
|
+
}
|
|
59
|
+
.semi-rating-star-wrapper {
|
|
60
|
+
position: relative;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
border-radius: 3px;
|
|
65
|
+
}
|
|
66
|
+
.semi-rating-star-first, .semi-rating-star-second {
|
|
67
|
+
color: var(--semi-color-fill-0);
|
|
68
|
+
user-select: none;
|
|
69
|
+
transition: color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);
|
|
70
|
+
}
|
|
71
|
+
.semi-rating-star-first {
|
|
72
|
+
position: absolute;
|
|
73
|
+
inset-inline-start: 0;
|
|
74
|
+
top: 0;
|
|
75
|
+
width: 50%;
|
|
76
|
+
height: 100%;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
opacity: 0;
|
|
79
|
+
}
|
|
80
|
+
.semi-rating-star-half .semi-rating-star-first, .semi-rating-star-half .semi-rating-star-second {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
.semi-rating-star-half .semi-rating-star-first, .semi-rating-star-full .semi-rating-star-second {
|
|
84
|
+
color: inherit;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.semi-rating:dir(rtl) {
|
|
88
|
+
direction: rtl;
|
|
89
|
+
}}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'semi:theme' as *;
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
@use 'animation' as *;
|
|
5
|
+
|
|
6
|
+
$module: #{$prefix}-rating;
|
|
7
|
+
|
|
8
|
+
.#{$module} {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
padding: $spacing-rating-padding;
|
|
11
|
+
margin: $spacing-rating-margin;
|
|
12
|
+
color: $color-rating-icon-default;
|
|
13
|
+
outline: none;
|
|
14
|
+
list-style: none;
|
|
15
|
+
border-radius: 3px;
|
|
16
|
+
|
|
17
|
+
// the empty star is invisible, so its focus ring goes on the whole list
|
|
18
|
+
&:has(> li:last-child [role='radio']:focus-visible) {
|
|
19
|
+
outline: $width-rating-outline-focus solid $color-rating-outline-focus;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-no-focus {
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-disabled &-star {
|
|
27
|
+
cursor: default;
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
transform: scale(1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-star {
|
|
35
|
+
position: relative;
|
|
36
|
+
display: inline-block;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transform: scale($transform-scale-rating);
|
|
42
|
+
transition: all 0.5s;
|
|
43
|
+
|
|
44
|
+
&:not(:last-child) {
|
|
45
|
+
margin-inline-end: $spacing-rating_item-marginRight;
|
|
46
|
+
|
|
47
|
+
// ring around the whole star, not half of it
|
|
48
|
+
> .#{$module}-star-wrapper:has(> [role='radio']:focus-visible) {
|
|
49
|
+
outline: $width-rating-outline-focus solid $color-rating-outline-focus;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& > div {
|
|
54
|
+
&:hover,
|
|
55
|
+
&:focus {
|
|
56
|
+
transform: scale(1.1);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.#{$module}-star-disabled {
|
|
60
|
+
transform: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-small {
|
|
65
|
+
width: $width-rating_item_small;
|
|
66
|
+
height: $width-rating_item_small;
|
|
67
|
+
font-size: $font-rating_item_small-fontSize;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-default {
|
|
71
|
+
width: $width-rating_item_default;
|
|
72
|
+
height: $width-rating_item_default;
|
|
73
|
+
font-size: $font-rating_item_default-fontSize;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-outer {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
width: fit-content;
|
|
79
|
+
height: fit-content;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-wrapper {
|
|
83
|
+
position: relative;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
border-radius: 3px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-first,
|
|
91
|
+
&-second {
|
|
92
|
+
color: $color-rating-bg-default;
|
|
93
|
+
user-select: none;
|
|
94
|
+
transition: color $transition_duration-rating-color $transition_function-rating-color $transition_delay-rating-color;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-first {
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset-inline-start: 0;
|
|
100
|
+
top: 0;
|
|
101
|
+
width: 50%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-half &-first,
|
|
108
|
+
&-half &-second {
|
|
109
|
+
opacity: 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-half &-first,
|
|
113
|
+
&-full &-second {
|
|
114
|
+
color: inherit;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include meta.load-css('rtl');
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use 'semi:theme' as *;
|
|
2
|
+
@use '../base/mixin' as *;
|
|
3
|
+
|
|
4
|
+
$color-rating-icon-default: var(--semi-yellow-5); // 评分图标按钮颜色 - 已填
|
|
5
|
+
$color-rating-bg-default: var(--semi-color-fill-0); // 评分图标按钮颜色 - 未填
|
|
6
|
+
|
|
7
|
+
$color-rating-outline-focus: $color-focus-ring; // 聚焦轮廓颜色
|
|
8
|
+
|
|
9
|
+
$spacing-rating-margin: 0px; // 整体外边距
|
|
10
|
+
$spacing-rating-padding: 0px; // 整体内边距
|
|
11
|
+
$spacing-rating_item-marginRight: 6px; // 评分项右侧外边距
|
|
12
|
+
|
|
13
|
+
$width-rating_item_small: 16px; // 小尺寸评分项宽度
|
|
14
|
+
$font-rating_item_small-fontSize: $width-rating_item_small; // 小尺寸评分项文本字体大小
|
|
15
|
+
|
|
16
|
+
$width-rating_item_default: 24px; // 评分项宽度
|
|
17
|
+
$font-rating_item_default-fontSize: $width-rating_item_default; // 评分项文本字体大小
|
|
18
|
+
|
|
19
|
+
$width-rating-outline-focus: $width-focus-ring; // 聚焦轮廓宽度
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AriaRange, ResizableAdapter, ResizableBaseProps, ResizableBaseState, ResizableFoundation } from "./single/index.js";
|
|
2
|
+
import { ResizeGroupAdapter, ResizeGroupBaseProps, ResizeGroupBaseState, ResizeGroupFoundation } from "./group/index.js";
|
|
3
|
+
export { type AriaRange, type ResizableAdapter, type ResizableBaseProps, type ResizableBaseState, ResizableFoundation, type ResizeGroupAdapter, type ResizeGroupBaseProps, type ResizeGroupBaseState, ResizeGroupFoundation };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import BaseFoundation, { DefaultAdapter } from "../../base/foundation.js";
|
|
2
|
+
import { ResizeCallback, ResizeStartCallback } from "../types.js";
|
|
3
|
+
export interface ResizeGroupOriginalPosition {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
lastItemSize: number;
|
|
7
|
+
nextItemSize: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ResizeGroupAdapter<P extends ResizeGroupBaseProps = ResizeGroupBaseProps, S extends ResizeGroupBaseState = ResizeGroupBaseState> extends DefaultAdapter<P, S> {
|
|
10
|
+
getGroupRef: () => HTMLDivElement | null;
|
|
11
|
+
getItem: (index: number) => HTMLDivElement;
|
|
12
|
+
getItemCount: () => number;
|
|
13
|
+
getHandler: (index: number) => HTMLDivElement;
|
|
14
|
+
getHandlerCount: () => number;
|
|
15
|
+
getItemMin: (index: number) => string | undefined;
|
|
16
|
+
getItemMax: (index: number) => string | undefined;
|
|
17
|
+
getItemStart: (index: number) => ResizeStartCallback | undefined;
|
|
18
|
+
getItemChange: (index: number) => ResizeCallback | undefined;
|
|
19
|
+
getItemEnd: (index: number) => ResizeCallback | undefined;
|
|
20
|
+
getItemDefaultSize: (index: number) => string | number | undefined;
|
|
21
|
+
}
|
|
22
|
+
/** The props the foundation reads with getProp */
|
|
23
|
+
export interface ResizeGroupBaseProps {
|
|
24
|
+
direction?: 'horizontal' | 'vertical';
|
|
25
|
+
}
|
|
26
|
+
export interface ResizeGroupBaseState {
|
|
27
|
+
isResizing: boolean;
|
|
28
|
+
originalPosition: ResizeGroupOriginalPosition;
|
|
29
|
+
backgroundStyle: {
|
|
30
|
+
cursor?: string;
|
|
31
|
+
};
|
|
32
|
+
curHandler: number | null;
|
|
33
|
+
}
|
|
34
|
+
export declare class ResizeGroupFoundation<P extends ResizeGroupBaseProps = ResizeGroupBaseProps, S extends ResizeGroupBaseState = ResizeGroupBaseState> extends BaseFoundation<ResizeGroupAdapter<P, S>, P, S> {
|
|
35
|
+
#private;
|
|
36
|
+
init(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Re-runs initSpace the first time the group is measurable (#3336); later resizes must not, or the drag is lost.
|
|
39
|
+
*/
|
|
40
|
+
handleGroupResize(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Moves each item's inline size to the new axis, where the handlers take a different length
|
|
43
|
+
*/
|
|
44
|
+
handleDirectionChange(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Keyboard resize, reported like a drag: arrows move 1% of the group (Shift: 10%), Home and End go to the
|
|
47
|
+
* limits. Returns whether the key was handled.
|
|
48
|
+
*/
|
|
49
|
+
resizeByKey(handlerIndex: number, e: KeyboardEvent): boolean;
|
|
50
|
+
onResizeStart(handlerIndex: number, e: PointerEvent): void;
|
|
51
|
+
onResizing(e: PointerEvent): void;
|
|
52
|
+
onResizeEnd(e: PointerEvent): void;
|
|
53
|
+
ensureConstraint: import("es-toolkit").DebouncedFunction<() => void>;
|
|
54
|
+
destroy(): void;
|
|
55
|
+
}
|