@esportsplus/ui 0.8.4 → 0.9.2
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/.editorconfig +9 -9
- package/.gitattributes +2 -2
- package/.github/dependabot.yml +23 -0
- package/.github/workflows/bump.yml +7 -0
- package/.github/workflows/publish.yml +14 -0
- package/build/components/accordion/index.d.ts +1 -0
- package/build/components/accordion/index.js +1 -0
- package/build/components/accordion/scss/index.scss +2 -0
- package/build/components/anchor/index.d.ts +1 -0
- package/build/components/anchor/index.js +1 -0
- package/build/components/anchor/scss/index.scss +2 -0
- package/build/components/banner/index.d.ts +1 -0
- package/build/components/banner/index.js +1 -0
- package/build/components/banner/scss/index.scss +2 -0
- package/build/components/border/index.d.ts +1 -0
- package/build/components/border/index.js +1 -0
- package/build/components/border/scss/index.scss +2 -0
- package/build/components/bubble/index.d.ts +1 -0
- package/build/components/bubble/index.js +1 -0
- package/build/components/bubble/scss/index.scss +2 -0
- package/build/components/button/index.d.ts +1 -0
- package/build/components/button/index.js +1 -0
- package/build/components/button/scss/index.scss +2 -0
- package/build/components/card/index.d.ts +1 -0
- package/build/components/card/index.js +1 -0
- package/build/components/card/scss/index.scss +2 -0
- package/build/components/clipboard/index.d.ts +0 -1
- package/build/components/clipboard/index.js +0 -1
- package/build/components/container/index.d.ts +1 -0
- package/build/components/container/index.js +1 -0
- package/build/components/container/scss/index.scss +2 -0
- package/build/components/counter/index.d.ts +1 -0
- package/build/components/counter/index.js +22 -16
- package/build/components/counter/scss/index.scss +2 -0
- package/build/components/ellipsis/index.d.ts +1 -0
- package/build/components/ellipsis/index.js +7 -6
- package/build/components/ellipsis/scss/index.scss +2 -0
- package/build/components/field/checkbox.d.ts +13 -0
- package/build/components/field/checkbox.js +52 -0
- package/build/components/field/description.d.ts +4 -0
- package/build/components/field/description.js +11 -0
- package/build/components/field/error.d.ts +4 -0
- package/build/components/field/error.js +13 -0
- package/build/components/field/file.d.ts +17 -0
- package/build/components/field/file.js +51 -0
- package/build/components/field/index.d.ts +79 -0
- package/build/components/field/index.js +9 -0
- package/build/components/field/optional.d.ts +12 -0
- package/build/components/field/optional.js +16 -0
- package/build/components/field/scss/index.scss +2 -0
- package/build/components/field/select.d.ts +22 -0
- package/build/components/field/select.js +135 -0
- package/build/components/field/switch.d.ts +3 -0
- package/build/components/field/switch.js +6 -0
- package/build/components/field/text.d.ts +17 -0
- package/build/components/field/text.js +64 -0
- package/build/components/field/textarea.d.ts +3 -0
- package/build/components/field/textarea.js +5 -0
- package/build/components/field/title.d.ts +5 -0
- package/build/components/field/title.js +21 -0
- package/build/components/footer/index.d.ts +1 -0
- package/build/components/footer/index.js +51 -46
- package/build/components/footer/scss/index.scss +2 -0
- package/build/components/form/action.d.ts +3 -1
- package/build/components/form/action.js +10 -7
- package/build/components/form/index.d.ts +2 -14
- package/build/components/form/index.js +1 -2
- package/build/components/form/input.d.ts +2 -4
- package/build/components/form/input.js +7 -7
- package/build/components/form/types.d.ts +0 -1
- package/build/components/frame/index.d.ts +1 -0
- package/build/components/frame/index.js +1 -0
- package/build/components/frame/scss/index.scss +2 -0
- package/build/components/grid/index.d.ts +1 -0
- package/build/components/grid/index.js +1 -0
- package/build/components/grid/scss/index.scss +2 -0
- package/build/components/group/index.d.ts +1 -0
- package/build/components/group/index.js +1 -0
- package/build/components/group/scss/index.scss +2 -0
- package/build/components/highlight/index.d.ts +1 -0
- package/build/components/highlight/index.js +5 -1
- package/build/components/highlight/scss/index.scss +2 -0
- package/build/components/icon/index.d.ts +1 -0
- package/build/components/icon/index.js +1 -0
- package/build/components/icon/scss/index.scss +2 -0
- package/build/components/index.d.ts +38 -19
- package/build/components/index.js +38 -19
- package/build/components/link/hover.d.ts +1 -1
- package/build/components/link/hover.js +8 -8
- package/build/components/link/index.d.ts +2 -1
- package/build/components/link/index.js +1 -0
- package/build/components/link/scss/index.scss +2 -0
- package/build/components/loader/index.d.ts +1 -0
- package/build/components/loader/index.js +23 -15
- package/build/components/loader/scss/index.scss +2 -0
- package/build/components/loading/index.d.ts +2 -1
- package/build/components/loading/index.js +9 -3
- package/build/components/loading/scss/index.scss +2 -0
- package/build/components/magnet/index.d.ts +1 -0
- package/build/components/magnet/index.js +8 -7
- package/build/components/magnet/scss/index.scss +2 -0
- package/build/components/modal/index.d.ts +1 -0
- package/build/components/modal/index.js +1 -0
- package/build/components/modal/scss/index.scss +2 -0
- package/build/components/normalize/index.d.ts +1 -0
- package/build/components/normalize/index.js +1 -0
- package/build/components/normalize/scss/index.scss +3 -0
- package/build/components/number/index.d.ts +2 -8
- package/build/components/number/index.js +2 -16
- package/build/components/page/index.d.ts +1 -10
- package/build/components/page/index.js +1 -1
- package/build/components/page/scss/index.scss +2 -0
- package/build/components/root/index.d.ts +1 -1
- package/build/components/root/onclick.d.ts +1 -1
- package/build/components/root/onclick.js +1 -1
- package/build/components/root/scss/index.scss +2 -0
- package/build/components/row/index.d.ts +1 -0
- package/build/components/row/index.js +1 -0
- package/build/components/row/scss/index.scss +2 -0
- package/build/components/scrollbar/index.d.ts +1 -0
- package/build/components/scrollbar/index.js +15 -9
- package/build/components/scrollbar/scss/index.scss +2 -0
- package/build/components/sidebar/index.d.ts +1 -0
- package/build/components/sidebar/index.js +1 -0
- package/build/components/sidebar/scss/index.scss +2 -0
- package/build/components/site/index.d.ts +1 -0
- package/build/components/site/index.js +6 -5
- package/build/components/site/scss/index.scss +2 -0
- package/build/components/text/index.d.ts +1 -0
- package/build/components/text/index.js +1 -0
- package/build/components/text/scss/index.scss +2 -0
- package/build/components/thumbnail/index.d.ts +1 -0
- package/build/components/thumbnail/index.js +1 -0
- package/build/components/thumbnail/scss/index.scss +2 -0
- package/build/components/tooltip/index.d.ts +1 -0
- package/build/components/tooltip/index.js +2 -1
- package/build/components/tooltip/scss/index.scss +2 -0
- package/build/components/truncate/index.d.ts +2 -9
- package/build/components/truncate/index.js +2 -10
- package/build/components/typewriter/index.d.ts +1 -0
- package/build/components/typewriter/index.js +1 -0
- package/build/components/typewriter/scss/index.scss +2 -0
- package/build/css-utilities/[margin,padding]/scss/index.scss +2 -0
- package/build/css-utilities/absolute/scss/index.scss +2 -0
- package/build/css-utilities/background/scss/index.scss +2 -0
- package/build/css-utilities/border/scss/index.scss +2 -0
- package/build/css-utilities/color/scss/index.scss +2 -0
- package/build/css-utilities/disabled/scss/index.scss +2 -0
- package/build/css-utilities/flex/scss/index.scss +2 -0
- package/build/css-utilities/glass/scss/index.scss +2 -0
- package/build/css-utilities/hidden/scss/index.scss +2 -0
- package/build/css-utilities/index.d.ts +18 -0
- package/build/css-utilities/index.js +18 -0
- package/build/css-utilities/inline/scss/index.scss +2 -0
- package/build/css-utilities/line-height/scss/index.scss +2 -0
- package/build/css-utilities/not-allowed/scss/index.scss +2 -0
- package/build/css-utilities/pointer/scss/index.scss +2 -0
- package/build/css-utilities/size/scss/index.scss +2 -0
- package/build/css-utilities/squircle/scss/index.scss +2 -0
- package/build/css-utilities/text/scss/index.scss +2 -0
- package/build/css-utilities/viewport/scss/index.scss +2 -0
- package/build/css-utilities/width/scss/index.scss +2 -0
- package/build/fonts/index.d.ts +1 -0
- package/build/fonts/index.js +1 -0
- package/build/fonts/montserrat/index.d.ts +1 -0
- package/build/fonts/montserrat/index.js +1 -0
- package/build/fonts/montserrat/scss/index.scss +2 -0
- package/dist/components/accordion/index.js +26 -0
- package/dist/components/accordion/scss/index.scss +2 -0
- package/dist/components/anchor/index.js +1 -0
- package/dist/components/anchor/scss/index.scss +2 -0
- package/dist/components/banner/index.js +1 -0
- package/dist/components/banner/scss/index.scss +2 -0
- package/dist/components/border/index.js +1 -0
- package/dist/components/border/scss/index.scss +2 -0
- package/dist/components/bubble/index.js +1 -0
- package/dist/components/bubble/scss/index.scss +2 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/scss/index.scss +2 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/scss/index.scss +2 -0
- package/dist/components/clipboard/index.js +2 -0
- package/dist/components/clipboard/write.js +9 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/container/scss/index.scss +2 -0
- package/dist/components/counter/index.js +78 -0
- package/dist/components/counter/scss/index.scss +2 -0
- package/dist/components/ellipsis/index.js +9 -0
- package/dist/components/ellipsis/scss/index.scss +2 -0
- package/dist/components/field/checkbox.js +52 -0
- package/dist/components/field/description.js +11 -0
- package/dist/components/field/error.js +13 -0
- package/dist/components/field/file.js +51 -0
- package/dist/components/field/index.js +9 -0
- package/dist/components/field/optional.js +16 -0
- package/dist/components/field/scss/index.scss +2 -0
- package/dist/components/field/select.js +135 -0
- package/dist/components/field/switch.js +6 -0
- package/dist/components/field/text.js +64 -0
- package/dist/components/field/textarea.js +5 -0
- package/dist/components/field/title.js +21 -0
- package/dist/components/footer/index.js +60 -0
- package/dist/components/footer/scss/index.scss +2 -0
- package/dist/components/form/action.js +57 -0
- package/dist/components/form/index.js +3 -0
- package/dist/components/form/input.js +10 -0
- package/dist/components/form/types.js +1 -0
- package/dist/components/frame/index.js +1 -0
- package/dist/components/frame/scss/index.scss +2 -0
- package/dist/components/grid/index.js +1 -0
- package/dist/components/grid/scss/index.scss +2 -0
- package/dist/components/group/index.js +1 -0
- package/dist/components/group/scss/index.scss +2 -0
- package/dist/components/highlight/index.js +40 -0
- package/dist/components/highlight/scss/index.scss +2 -0
- package/dist/components/icon/index.js +1 -0
- package/dist/components/icon/scss/index.scss +2 -0
- package/dist/components/index.js +38 -0
- package/dist/components/json/download.js +8 -0
- package/dist/components/json/index.js +2 -0
- package/dist/components/link/hover.js +17 -0
- package/dist/components/link/index.js +3 -0
- package/dist/components/link/scss/index.scss +2 -0
- package/dist/components/loader/index.js +39 -0
- package/dist/components/loader/scss/index.scss +2 -0
- package/dist/components/loading/index.js +12 -0
- package/dist/components/loading/scss/index.scss +2 -0
- package/dist/components/magnet/index.js +47 -0
- package/dist/components/magnet/scss/index.scss +2 -0
- package/dist/components/modal/index.js +1 -0
- package/dist/components/modal/scss/index.scss +2 -0
- package/dist/components/normalize/index.js +1 -0
- package/dist/components/normalize/scss/index.scss +3 -0
- package/dist/components/number/index.js +2 -0
- package/dist/components/page/index.js +11 -0
- package/dist/components/page/scss/index.scss +2 -0
- package/dist/components/root/index.js +3 -0
- package/dist/components/root/onclick.js +14 -0
- package/dist/components/root/scss/index.scss +2 -0
- package/dist/components/row/index.js +1 -0
- package/dist/components/row/scss/index.scss +2 -0
- package/dist/components/scrollbar/index.js +42 -0
- package/dist/components/scrollbar/scss/index.scss +2 -0
- package/dist/components/sidebar/index.js +1 -0
- package/dist/components/sidebar/scss/index.scss +2 -0
- package/dist/components/site/index.js +17 -0
- package/dist/components/site/scss/index.scss +2 -0
- package/dist/components/text/index.js +1 -0
- package/dist/components/text/scss/index.scss +2 -0
- package/dist/components/thumbnail/index.js +1 -0
- package/dist/components/thumbnail/scss/index.scss +2 -0
- package/dist/components/tooltip/index.js +64 -0
- package/dist/components/tooltip/scss/index.scss +2 -0
- package/dist/components/truncate/index.js +2 -0
- package/dist/components/typewriter/index.js +42 -0
- package/dist/components/typewriter/scss/index.scss +2 -0
- package/dist/css-utilities/[margin,padding]/scss/index.scss +2 -0
- package/dist/css-utilities/absolute/scss/index.scss +2 -0
- package/dist/css-utilities/background/scss/index.scss +2 -0
- package/dist/css-utilities/border/scss/index.scss +2 -0
- package/dist/css-utilities/color/scss/index.scss +2 -0
- package/dist/css-utilities/disabled/scss/index.scss +2 -0
- package/dist/css-utilities/flex/scss/index.scss +2 -0
- package/dist/css-utilities/glass/scss/index.scss +2 -0
- package/dist/css-utilities/hidden/scss/index.scss +2 -0
- package/dist/css-utilities/index.js +18 -0
- package/dist/css-utilities/inline/scss/index.scss +2 -0
- package/dist/css-utilities/line-height/scss/index.scss +2 -0
- package/dist/css-utilities/not-allowed/scss/index.scss +2 -0
- package/dist/css-utilities/pointer/scss/index.scss +2 -0
- package/dist/css-utilities/size/scss/index.scss +2 -0
- package/dist/css-utilities/squircle/scss/index.scss +2 -0
- package/dist/css-utilities/text/scss/index.scss +2 -0
- package/dist/css-utilities/viewport/scss/index.scss +2 -0
- package/dist/css-utilities/width/scss/index.scss +2 -0
- package/dist/fonts/index.js +1 -0
- package/dist/fonts/montserrat/index.js +1 -0
- package/dist/fonts/montserrat/scss/index.scss +2 -0
- package/lib.scss +1 -1
- package/package.json +28 -20
- package/src/components/accordion/index.ts +35 -34
- package/src/components/accordion/scss/index.scss +17 -16
- package/src/components/accordion/scss/variables.scss +9 -9
- package/src/components/anchor/index.ts +1 -0
- package/src/components/anchor/scss/index.scss +42 -41
- package/src/components/anchor/scss/variables.scss +4 -4
- package/src/components/banner/index.ts +1 -0
- package/src/components/banner/scss/index.scss +41 -40
- package/src/components/banner/scss/variables.scss +9 -9
- package/src/components/border/index.ts +1 -0
- package/src/components/border/scss/index.scss +12 -0
- package/src/components/border/scss/variables.scss +6 -0
- package/src/components/bubble/index.ts +1 -0
- package/src/components/bubble/scss/index.scss +32 -0
- package/src/components/bubble/scss/variables.scss +19 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button/scss/index.scss +115 -114
- package/src/components/button/scss/variables.scss +66 -66
- package/src/components/card/index.ts +1 -0
- package/src/components/card/scss/index.scss +36 -35
- package/src/components/card/scss/variables.scss +41 -41
- package/src/components/clipboard/index.ts +3 -4
- package/src/components/clipboard/write.ts +8 -8
- package/src/components/container/index.ts +1 -0
- package/src/components/container/scss/index.scss +10 -8
- package/src/components/container/scss/variables.scss +5 -5
- package/src/components/counter/index.ts +99 -93
- package/src/components/counter/scss/index.scss +63 -61
- package/src/components/counter/scss/variables.scss +26 -26
- package/src/components/ellipsis/index.ts +10 -9
- package/src/components/ellipsis/scss/index.scss +29 -27
- package/src/components/ellipsis/scss/variables.scss +4 -4
- package/src/components/field/checkbox.ts +71 -0
- package/src/components/field/description.ts +14 -0
- package/src/components/field/error.ts +16 -0
- package/src/components/field/file.ts +77 -0
- package/src/components/field/index.ts +11 -0
- package/src/components/field/optional.ts +23 -0
- package/src/components/field/scss/_check.scss +225 -0
- package/src/components/field/scss/_normalize.scss +36 -0
- package/src/components/field/scss/_text.scss +106 -0
- package/src/components/field/scss/index.scss +161 -0
- package/src/components/field/scss/variables.scss +139 -0
- package/src/components/field/select.ts +182 -0
- package/src/components/field/switch.ts +9 -0
- package/src/components/field/text.ts +92 -0
- package/src/components/field/textarea.ts +8 -0
- package/src/components/field/title.ts +24 -0
- package/src/components/footer/index.ts +83 -78
- package/src/components/footer/scss/index.scss +25 -25
- package/src/components/form/action.ts +79 -80
- package/src/components/form/index.ts +5 -6
- package/src/components/form/input.ts +17 -15
- package/src/components/form/types.ts +13 -15
- package/src/components/frame/index.ts +1 -0
- package/src/components/frame/scss/index.scss +11 -11
- package/src/components/grid/index.ts +1 -0
- package/src/components/grid/scss/index.scss +11 -9
- package/src/components/grid/scss/variables.scss +5 -5
- package/src/components/group/index.ts +1 -0
- package/src/components/group/scss/index.scss +38 -36
- package/src/components/group/scss/variables.scss +17 -17
- package/src/components/highlight/index.ts +51 -47
- package/src/components/highlight/scss/index.scss +6 -4
- package/src/components/highlight/scss/variables.scss +3 -3
- package/src/components/icon/index.ts +1 -0
- package/src/components/icon/scss/index.scss +18 -16
- package/src/components/icon/scss/variables.scss +7 -7
- package/src/components/index.ts +38 -19
- package/src/components/json/download.ts +14 -14
- package/src/components/json/index.ts +3 -3
- package/src/components/link/hover.ts +18 -18
- package/src/components/link/index.ts +4 -3
- package/src/components/link/scss/index.scss +66 -65
- package/src/components/link/scss/variables.scss +46 -46
- package/src/components/loader/index.ts +42 -34
- package/src/components/loader/scss/index.scss +70 -68
- package/src/components/loader/scss/variables.scss +5 -5
- package/src/components/loading/index.ts +13 -7
- package/src/components/loading/scss/index.scss +18 -16
- package/src/components/loading/scss/variables.scss +5 -5
- package/src/components/magnet/index.ts +55 -54
- package/src/components/magnet/scss/index.scss +17 -16
- package/src/components/magnet/scss/variables.scss +4 -4
- package/src/components/modal/index.ts +1 -0
- package/src/components/modal/scss/index.scss +35 -34
- package/src/components/modal/scss/variables.scss +6 -6
- package/src/components/normalize/index.ts +1 -0
- package/src/components/normalize/scss/index.scss +1 -0
- package/src/components/number/index.ts +4 -24
- package/src/components/page/index.ts +17 -15
- package/src/components/page/scss/index.scss +33 -31
- package/src/components/page/scss/variables.scss +15 -15
- package/src/components/root/index.ts +4 -4
- package/src/components/root/onclick.ts +20 -20
- package/src/components/root/scss/index.scss +94 -94
- package/src/components/root/scss/variables.scss +100 -100
- package/src/components/row/index.ts +1 -0
- package/src/components/row/scss/index.scss +7 -7
- package/src/components/scrollbar/index.ts +49 -43
- package/src/components/scrollbar/scss/index.scss +72 -70
- package/src/components/scrollbar/scss/variables.scss +6 -6
- package/src/components/sidebar/index.ts +1 -0
- package/src/components/sidebar/scss/index.scss +50 -49
- package/src/components/sidebar/scss/variables.scss +20 -20
- package/src/components/site/index.ts +27 -26
- package/src/components/site/scss/index.scss +3 -3
- package/src/components/text/index.ts +1 -0
- package/src/components/text/scss/index.scss +11 -9
- package/src/components/text/scss/variables.scss +8 -8
- package/src/components/thumbnail/index.ts +1 -0
- package/src/components/thumbnail/scss/index.scss +9 -7
- package/src/components/thumbnail/scss/variables.scss +7 -7
- package/src/components/tooltip/index.ts +85 -84
- package/src/components/tooltip/scss/_center.scss +13 -13
- package/src/components/tooltip/scss/_east.scss +34 -34
- package/src/components/tooltip/scss/_north.scss +34 -34
- package/src/components/tooltip/scss/_south.scss +35 -35
- package/src/components/tooltip/scss/_west.scss +34 -34
- package/src/components/tooltip/scss/index.scss +94 -93
- package/src/components/tooltip/scss/variables.scss +24 -24
- package/src/components/truncate/index.ts +4 -14
- package/src/components/typewriter/index.ts +54 -53
- package/src/components/typewriter/scss/index.scss +14 -14
- package/src/css-utilities/[margin,padding]/scss/index.scss +43 -41
- package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -54
- package/src/css-utilities/absolute/scss/index.scss +36 -36
- package/src/css-utilities/background/scss/index.scss +1 -0
- package/src/css-utilities/background/scss/variables.scss +26 -27
- package/src/css-utilities/border/scss/index.scss +23 -21
- package/src/css-utilities/border/scss/variables.scss +64 -66
- package/src/css-utilities/color/scss/index.scss +1 -0
- package/src/css-utilities/color/scss/variables.scss +29 -31
- package/src/css-utilities/disabled/scss/index.scss +4 -4
- package/src/css-utilities/flex/scss/index.scss +65 -65
- package/src/css-utilities/glass/scss/index.scss +4 -2
- package/src/css-utilities/glass/scss/variables.scss +2 -2
- package/src/css-utilities/hidden/scss/index.scss +28 -28
- package/src/css-utilities/index.ts +18 -0
- package/src/css-utilities/inline/scss/index.scss +7 -7
- package/src/css-utilities/line-height/scss/index.scss +1 -0
- package/src/css-utilities/line-height/scss/variables.scss +10 -10
- package/src/css-utilities/not-allowed/scss/index.scss +7 -7
- package/src/css-utilities/pointer/scss/index.scss +5 -5
- package/src/css-utilities/size/scss/index.scss +1 -0
- package/src/css-utilities/size/scss/variables.scss +12 -12
- package/src/css-utilities/squircle/scss/index.scss +4 -4
- package/src/css-utilities/text/scss/index.scss +90 -89
- package/src/css-utilities/text/scss/variables.scss +31 -31
- package/src/css-utilities/viewport/scss/index.scss +4 -4
- package/src/css-utilities/width/scss/index.scss +5 -3
- package/src/css-utilities/width/scss/variables.scss +9 -9
- package/src/fonts/index.ts +1 -0
- package/src/fonts/montserrat/index.ts +1 -0
- package/src/fonts/montserrat/scss/Montserrat-Bold.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- package/src/fonts/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- package/src/fonts/montserrat/scss/Montserrat-Italic.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- package/src/fonts/montserrat/scss/Montserrat-Medium.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- package/src/fonts/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- package/src/fonts/montserrat/scss/Montserrat-Regular.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- package/src/fonts/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- package/src/fonts/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- package/src/fonts/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/{storage/fonts/montserrat/index.css → src/fonts/montserrat/scss/index.scss} +79 -79
- package/src/lib/index.scss +7 -7
- package/src/lib/scss/breakpoint.scss +41 -41
- package/src/lib/scss/color.scss +1 -1
- package/src/lib/scss/css-variables.scss +16 -16
- package/src/lib/scss/list.scss +77 -77
- package/src/lib/scss/map.scss +1 -1
- package/src/lib/scss/position.scss +55 -55
- package/src/lib/scss/string.scss +34 -34
- package/src/tokens/index.scss +11 -11
- package/src/tokens/scss/border-radius.scss +12 -12
- package/src/tokens/scss/border-width.scss +6 -6
- package/src/tokens/scss/box-shadow.scss +39 -39
- package/src/tokens/scss/color.scss +68 -64
- package/src/tokens/scss/font-size.scss +16 -16
- package/src/tokens/scss/font-weight.scss +6 -6
- package/src/tokens/scss/line-height.scss +6 -6
- package/src/tokens/scss/size.scss +13 -13
- package/src/tokens/scss/spacer.scss +10 -10
- package/src/tokens/scss/state.scss +85 -87
- package/src/tokens/scss/transition-duration.scss +1 -1
- package/tokens.scss +1 -1
- package/tsconfig.json +2 -2
- package/vite.config.ts +32 -0
- package/build/components/form/layout.d.ts +0 -12
- package/build/components/form/layout.js +0 -12
- package/build/index.d.ts +0 -19
- package/build/index.js +0 -19
- package/components/styles.css +0 -30
- package/components/variables.css +0 -24
- package/fonts/montserrat.css +0 -1
- package/normalize.css +0 -1
- package/src/components/clipboard/scss/index.scss +0 -3
- package/src/components/form/layout.ts +0 -26
- package/src/css-utilities/index.scss +0 -14
- package/src/css-utilities/overflow/scss/index.scss +0 -5
- package/src/index.ts +0 -19
- package/utilities/styles.css +0 -16
- package/utilities/variables.css +0 -9
- package/webpack.config.ts +0 -26
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Bold.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Bold.woff2 +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-BoldItalic.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-BoldItalic.woff2 +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Italic.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Italic.woff2 +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Medium.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Medium.woff2 +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-MediumItalic.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-MediumItalic.woff2 +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Regular.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-Regular.woff2 +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-SemiBold.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-SemiBold.woff2 +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-SemiBoldItalic.woff +0 -0
- /package/{storage/fonts/montserrat → build/fonts/montserrat/scss}/Montserrat-SemiBoldItalic.woff2 +0 -0
- /package/{assets/f0032576ac7462ccbd0c.woff → dist/fonts/montserrat/scss/Montserrat-Bold.woff} +0 -0
- /package/{assets/0af89c10df9bc2f8d646.woff2 → dist/fonts/montserrat/scss/Montserrat-Bold.woff2} +0 -0
- /package/{assets/bf331673b91821715c08.woff → dist/fonts/montserrat/scss/Montserrat-BoldItalic.woff} +0 -0
- /package/{assets/dd8646a41e4397b77fc4.woff2 → dist/fonts/montserrat/scss/Montserrat-BoldItalic.woff2} +0 -0
- /package/{assets/f872e621917a45943fbc.woff → dist/fonts/montserrat/scss/Montserrat-Italic.woff} +0 -0
- /package/{assets/593de7c561e5ffe80c3e.woff2 → dist/fonts/montserrat/scss/Montserrat-Italic.woff2} +0 -0
- /package/{assets/2a3e005f58bfca9c117e.woff → dist/fonts/montserrat/scss/Montserrat-Medium.woff} +0 -0
- /package/{assets/e06c107cc50506570954.woff2 → dist/fonts/montserrat/scss/Montserrat-Medium.woff2} +0 -0
- /package/{assets/16663c3f6ab1da2d6c86.woff → dist/fonts/montserrat/scss/Montserrat-MediumItalic.woff} +0 -0
- /package/{assets/ecdfe4c05425592708aa.woff2 → dist/fonts/montserrat/scss/Montserrat-MediumItalic.woff2} +0 -0
- /package/{assets/a04b5e24af93da353f0e.woff → dist/fonts/montserrat/scss/Montserrat-Regular.woff} +0 -0
- /package/{assets/58a8d7ebc386843b62c5.woff2 → dist/fonts/montserrat/scss/Montserrat-Regular.woff2} +0 -0
- /package/{assets/16e8721ef5837bc6375e.woff → dist/fonts/montserrat/scss/Montserrat-SemiBold.woff} +0 -0
- /package/{assets/109e3207d9afea8524be.woff2 → dist/fonts/montserrat/scss/Montserrat-SemiBold.woff2} +0 -0
- /package/{assets/c54b0f4340f2914802d1.woff → dist/fonts/montserrat/scss/Montserrat-SemiBoldItalic.woff} +0 -0
- /package/{assets/68b7982c2b30b51bf932.woff2 → dist/fonts/montserrat/scss/Montserrat-SemiBoldItalic.woff2} +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-display: swap;
|
|
3
|
-
font-family: 'Montserrat';
|
|
4
|
-
font-style: normal;
|
|
5
|
-
font-weight: 400;
|
|
6
|
-
src: local('Montserrat Regular'), local('Montserrat-Regular'),
|
|
7
|
-
url('Montserrat-Regular.woff2') format('woff2'),
|
|
8
|
-
url('Montserrat-Regular.woff') format('woff');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@font-face {
|
|
12
|
-
font-display: swap;
|
|
13
|
-
font-family: 'Montserrat';
|
|
14
|
-
font-style: italic;
|
|
15
|
-
font-weight: 400;
|
|
16
|
-
src: local('Montserrat Italic'), local('Montserrat-Italic'),
|
|
17
|
-
url('Montserrat-Italic.woff2') format('woff2'),
|
|
18
|
-
url('Montserrat-Italic.woff') format('woff');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@font-face {
|
|
22
|
-
font-display: swap;
|
|
23
|
-
font-family: 'Montserrat';
|
|
24
|
-
font-style: normal;
|
|
25
|
-
font-weight: 500;
|
|
26
|
-
src: local('Montserrat Medium'), local('Montserrat-Medium'),
|
|
27
|
-
url('Montserrat-Medium.woff2') format('woff2'),
|
|
28
|
-
url('Montserrat-Medium.woff') format('woff');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@font-face {
|
|
32
|
-
font-display: swap;
|
|
33
|
-
font-family: 'Montserrat';
|
|
34
|
-
font-style: italic;
|
|
35
|
-
font-weight: 500;
|
|
36
|
-
src: local('Montserrat MediumItalic'), local('Montserrat-MediumItalic'),
|
|
37
|
-
url('Montserrat-MediumItalic.woff2') format('woff2'),
|
|
38
|
-
url('Montserrat-MediumItalic.woff') format('woff');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@font-face {
|
|
42
|
-
font-display: swap;
|
|
43
|
-
font-family: 'Montserrat';
|
|
44
|
-
font-style: normal;
|
|
45
|
-
font-weight: 600;
|
|
46
|
-
src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
|
|
47
|
-
url('Montserrat-SemiBold.woff2') format('woff2'),
|
|
48
|
-
url('Montserrat-SemiBold.woff') format('woff');
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@font-face {
|
|
52
|
-
font-display: swap;
|
|
53
|
-
font-family: 'Montserrat';
|
|
54
|
-
font-style: italic;
|
|
55
|
-
font-weight: 600;
|
|
56
|
-
src: local('Montserrat SemiBoldItalic'), local('Montserrat-SemiBoldItalic'),
|
|
57
|
-
url('Montserrat-SemiBoldItalic.woff2') format('woff2'),
|
|
58
|
-
url('Montserrat-SemiBoldItalic.woff') format('woff');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@font-face {
|
|
62
|
-
font-display: swap;
|
|
63
|
-
font-family: 'Montserrat';
|
|
64
|
-
font-style: normal;
|
|
65
|
-
font-weight: 700;
|
|
66
|
-
src: local('Montserrat Bold'), local('Montserrat Bold'),
|
|
67
|
-
url('Montserrat-Bold.woff2') format('woff2'),
|
|
68
|
-
url('Montserrat-Bold.woff') format('woff');
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@font-face {
|
|
72
|
-
font-display: swap;
|
|
73
|
-
font-family: 'Montserrat';
|
|
74
|
-
font-style: italic;
|
|
75
|
-
font-weight: 700;
|
|
76
|
-
src: local('Montserrat BoldItalic'), local('Montserrat-BoldItalic'),
|
|
77
|
-
url('Montserrat-BoldItalic.woff2') format('woff2'),
|
|
78
|
-
url('Montserrat-BoldItalic.woff') format('woff');
|
|
79
|
-
}
|
|
1
|
+
@font-face {
|
|
2
|
+
font-display: swap;
|
|
3
|
+
font-family: 'Montserrat';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
src: local('Montserrat Regular'), local('Montserrat-Regular'),
|
|
7
|
+
url('Montserrat-Regular.woff2') format('woff2'),
|
|
8
|
+
url('Montserrat-Regular.woff') format('woff');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-display: swap;
|
|
13
|
+
font-family: 'Montserrat';
|
|
14
|
+
font-style: italic;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
src: local('Montserrat Italic'), local('Montserrat-Italic'),
|
|
17
|
+
url('Montserrat-Italic.woff2') format('woff2'),
|
|
18
|
+
url('Montserrat-Italic.woff') format('woff');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-display: swap;
|
|
23
|
+
font-family: 'Montserrat';
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
src: local('Montserrat Medium'), local('Montserrat-Medium'),
|
|
27
|
+
url('Montserrat-Medium.woff2') format('woff2'),
|
|
28
|
+
url('Montserrat-Medium.woff') format('woff');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-display: swap;
|
|
33
|
+
font-family: 'Montserrat';
|
|
34
|
+
font-style: italic;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
src: local('Montserrat MediumItalic'), local('Montserrat-MediumItalic'),
|
|
37
|
+
url('Montserrat-MediumItalic.woff2') format('woff2'),
|
|
38
|
+
url('Montserrat-MediumItalic.woff') format('woff');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-display: swap;
|
|
43
|
+
font-family: 'Montserrat';
|
|
44
|
+
font-style: normal;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
|
|
47
|
+
url('Montserrat-SemiBold.woff2') format('woff2'),
|
|
48
|
+
url('Montserrat-SemiBold.woff') format('woff');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@font-face {
|
|
52
|
+
font-display: swap;
|
|
53
|
+
font-family: 'Montserrat';
|
|
54
|
+
font-style: italic;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
src: local('Montserrat SemiBoldItalic'), local('Montserrat-SemiBoldItalic'),
|
|
57
|
+
url('Montserrat-SemiBoldItalic.woff2') format('woff2'),
|
|
58
|
+
url('Montserrat-SemiBoldItalic.woff') format('woff');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@font-face {
|
|
62
|
+
font-display: swap;
|
|
63
|
+
font-family: 'Montserrat';
|
|
64
|
+
font-style: normal;
|
|
65
|
+
font-weight: 700;
|
|
66
|
+
src: local('Montserrat Bold'), local('Montserrat Bold'),
|
|
67
|
+
url('Montserrat-Bold.woff2') format('woff2'),
|
|
68
|
+
url('Montserrat-Bold.woff') format('woff');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@font-face {
|
|
72
|
+
font-display: swap;
|
|
73
|
+
font-family: 'Montserrat';
|
|
74
|
+
font-style: italic;
|
|
75
|
+
font-weight: 700;
|
|
76
|
+
src: local('Montserrat BoldItalic'), local('Montserrat-BoldItalic'),
|
|
77
|
+
url('Montserrat-BoldItalic.woff2') format('woff2'),
|
|
78
|
+
url('Montserrat-BoldItalic.woff') format('woff');
|
|
79
|
+
}
|
package/src/lib/index.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@forward 'scss/breakpoint';
|
|
2
|
-
@forward 'scss/color' as color-*;
|
|
3
|
-
@forward 'scss/css-variables';
|
|
4
|
-
@forward 'scss/list' as list-*;
|
|
5
|
-
@forward 'scss/map' as map-*;
|
|
6
|
-
@forward 'scss/position';
|
|
7
|
-
@forward 'scss/string' as string-*;
|
|
1
|
+
@forward 'scss/breakpoint';
|
|
2
|
+
@forward 'scss/color' as color-*;
|
|
3
|
+
@forward 'scss/css-variables';
|
|
4
|
+
@forward 'scss/list' as list-*;
|
|
5
|
+
@forward 'scss/map' as map-*;
|
|
6
|
+
@forward 'scss/position';
|
|
7
|
+
@forward 'scss/string' as string-*;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
@mixin breakpoint($function, $param: null) {
|
|
2
|
-
@if $function == min-width or $function == min-height {
|
|
3
|
-
@media only screen and ($function: #{$param + 1px}) {
|
|
4
|
-
@content;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
@else if $function == max-width or $function == max-height {
|
|
8
|
-
@media only screen and ($function: $param) {
|
|
9
|
-
@content;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
@else if $function == between-width {
|
|
13
|
-
@media only screen and (min-width: #{list.nth($param, 1) + 1px}) and (max-width: list.nth($param, 2)) {
|
|
14
|
-
@content;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
@else if $function == orientation {
|
|
18
|
-
@if $param == landscape {
|
|
19
|
-
@media only screen and (min-aspect-ratio: 13/9) {
|
|
20
|
-
@content;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
@else if $param == portrait {
|
|
24
|
-
@media only screen and (max-aspect-ratio: 13/9) {
|
|
25
|
-
@content;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
@else if $function == retina {
|
|
30
|
-
@media
|
|
31
|
-
only screen and (-webkit-min-device-pixel-ratio: 1.25),
|
|
32
|
-
only screen and ( min--moz-device-pixel-ratio: 1.25),
|
|
33
|
-
only screen and ( -o-min-device-pixel-ratio: 1.25/1),
|
|
34
|
-
only screen and ( min-device-pixel-ratio: 1.25),
|
|
35
|
-
only screen and ( min-resolution: 200dpi),
|
|
36
|
-
only screen and ( min-resolution: 1.25dppx)
|
|
37
|
-
{
|
|
38
|
-
@content;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
@mixin breakpoint($function, $param: null) {
|
|
2
|
+
@if $function == min-width or $function == min-height {
|
|
3
|
+
@media only screen and ($function: #{$param + 1px}) {
|
|
4
|
+
@content;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
@else if $function == max-width or $function == max-height {
|
|
8
|
+
@media only screen and ($function: $param) {
|
|
9
|
+
@content;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
@else if $function == between-width {
|
|
13
|
+
@media only screen and (min-width: #{list.nth($param, 1) + 1px}) and (max-width: list.nth($param, 2)) {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@else if $function == orientation {
|
|
18
|
+
@if $param == landscape {
|
|
19
|
+
@media only screen and (min-aspect-ratio: 13/9) {
|
|
20
|
+
@content;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
@else if $param == portrait {
|
|
24
|
+
@media only screen and (max-aspect-ratio: 13/9) {
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@else if $function == retina {
|
|
30
|
+
@media
|
|
31
|
+
only screen and (-webkit-min-device-pixel-ratio: 1.25),
|
|
32
|
+
only screen and ( min--moz-device-pixel-ratio: 1.25),
|
|
33
|
+
only screen and ( -o-min-device-pixel-ratio: 1.25/1),
|
|
34
|
+
only screen and ( min-device-pixel-ratio: 1.25),
|
|
35
|
+
only screen and ( min-resolution: 200dpi),
|
|
36
|
+
only screen and ( min-resolution: 1.25dppx)
|
|
37
|
+
{
|
|
38
|
+
@content;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/lib/scss/color.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward 'sass:color';
|
|
1
|
+
@forward 'sass:color';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@use 'sass:meta';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@mixin css-variables($prefix, $tokens) {
|
|
5
|
-
@each $key, $value in $tokens {
|
|
6
|
-
@if meta.type-of($value) == 'map' {
|
|
7
|
-
@each $subkey, $subvalue in $value {
|
|
8
|
-
--#{$prefix}-#{$key}-#{$subkey}: #{$subvalue};
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
@else {
|
|
12
|
-
--#{$prefix}-#{$key}: #{$value};
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@mixin css-variables($prefix, $tokens) {
|
|
5
|
+
@each $key, $value in $tokens {
|
|
6
|
+
@if meta.type-of($value) == 'map' {
|
|
7
|
+
@each $subkey, $subvalue in $value {
|
|
8
|
+
--#{$prefix}-#{$key}-#{$subkey}: #{$subvalue};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@else {
|
|
12
|
+
--#{$prefix}-#{$key}: #{$value};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
package/src/lib/scss/list.scss
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
@use 'sass:meta';
|
|
3
|
-
@use 'sass:string';
|
|
4
|
-
|
|
5
|
-
@forward 'sass:list';
|
|
6
|
-
|
|
7
|
-
@function contains($needles, $haystack) {
|
|
8
|
-
$haystack: to-list($haystack);
|
|
9
|
-
$needles: to-list($needles);
|
|
10
|
-
|
|
11
|
-
@each $needle in $needles {
|
|
12
|
-
@if list.index($haystack, $needle) {
|
|
13
|
-
@return true;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@return false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@function implode($glue, $list) {
|
|
21
|
-
$list: unique($list);
|
|
22
|
-
$output: null;
|
|
23
|
-
|
|
24
|
-
@if meta.type-of($list) != list {
|
|
25
|
-
@error "#{$list} Is Not A Valid List";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@for $i from 1 through list.length($list) {
|
|
29
|
-
$m: list.nth($list, $i);
|
|
30
|
-
|
|
31
|
-
// If $k Is A List Flatten By Running Through Function Again
|
|
32
|
-
@if meta.type-of($m) == list {
|
|
33
|
-
$output: string.unquote("#{$output}#{$glue}#{implode($glue, $m)}");
|
|
34
|
-
}
|
|
35
|
-
// Piece Together String
|
|
36
|
-
@else {
|
|
37
|
-
$output: string.unquote("#{$output}#{$glue}#{$m}");
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@if $output != null {
|
|
42
|
-
$output: string.slice($output, string.length($glue) + 1, -1);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@return $output;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@function to-list($input) {
|
|
49
|
-
$output: $input;
|
|
50
|
-
|
|
51
|
-
@if meta.type-of($input) != list {
|
|
52
|
-
$output: ($input,);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@return $output;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@function unique($list, $recursive: false) {
|
|
59
|
-
$result: ();
|
|
60
|
-
|
|
61
|
-
@if meta.type-of($list) != list {
|
|
62
|
-
@error "#{$list} Is Not A Valid List";
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@each $item in $list {
|
|
66
|
-
@if not list.index($result, $item) and $item != '' {
|
|
67
|
-
@if list.length($item) > 1 and $recursive {
|
|
68
|
-
$result: list.append($result, unique($item, $recursive));
|
|
69
|
-
}
|
|
70
|
-
@else {
|
|
71
|
-
$result: list.append($result, $item);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@return $result;
|
|
77
|
-
}
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
|
|
5
|
+
@forward 'sass:list';
|
|
6
|
+
|
|
7
|
+
@function contains($needles, $haystack) {
|
|
8
|
+
$haystack: to-list($haystack);
|
|
9
|
+
$needles: to-list($needles);
|
|
10
|
+
|
|
11
|
+
@each $needle in $needles {
|
|
12
|
+
@if list.index($haystack, $needle) {
|
|
13
|
+
@return true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@return false;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@function implode($glue, $list) {
|
|
21
|
+
$list: unique($list);
|
|
22
|
+
$output: null;
|
|
23
|
+
|
|
24
|
+
@if meta.type-of($list) != list {
|
|
25
|
+
@error "#{$list} Is Not A Valid List";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@for $i from 1 through list.length($list) {
|
|
29
|
+
$m: list.nth($list, $i);
|
|
30
|
+
|
|
31
|
+
// If $k Is A List Flatten By Running Through Function Again
|
|
32
|
+
@if meta.type-of($m) == list {
|
|
33
|
+
$output: string.unquote("#{$output}#{$glue}#{implode($glue, $m)}");
|
|
34
|
+
}
|
|
35
|
+
// Piece Together String
|
|
36
|
+
@else {
|
|
37
|
+
$output: string.unquote("#{$output}#{$glue}#{$m}");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@if $output != null {
|
|
42
|
+
$output: string.slice($output, string.length($glue) + 1, -1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@return $output;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@function to-list($input) {
|
|
49
|
+
$output: $input;
|
|
50
|
+
|
|
51
|
+
@if meta.type-of($input) != list {
|
|
52
|
+
$output: ($input,);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@return $output;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@function unique($list, $recursive: false) {
|
|
59
|
+
$result: ();
|
|
60
|
+
|
|
61
|
+
@if meta.type-of($list) != list {
|
|
62
|
+
@error "#{$list} Is Not A Valid List";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@each $item in $list {
|
|
66
|
+
@if not list.index($result, $item) and $item != '' {
|
|
67
|
+
@if list.length($item) > 1 and $recursive {
|
|
68
|
+
$result: list.append($result, unique($item, $recursive));
|
|
69
|
+
}
|
|
70
|
+
@else {
|
|
71
|
+
$result: list.append($result, $item);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@return $result;
|
|
77
|
+
}
|
package/src/lib/scss/map.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward 'sass:map';
|
|
1
|
+
@forward 'sass:map';
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
@use 'list';
|
|
2
|
-
@use 'sass:meta';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@mixin position($position, $value: null) {
|
|
6
|
-
position: $position;
|
|
7
|
-
|
|
8
|
-
@if $value == bottom {
|
|
9
|
-
inset: auto 0 0 0;
|
|
10
|
-
}
|
|
11
|
-
@else if $value == center {
|
|
12
|
-
bottom: 50%;
|
|
13
|
-
right: 50%;
|
|
14
|
-
transform: translate(50%, 50%);
|
|
15
|
-
}
|
|
16
|
-
@else if $value == full {
|
|
17
|
-
inset: 0 0 0 0;
|
|
18
|
-
}
|
|
19
|
-
@else if $value == horizontal {
|
|
20
|
-
right: 50%;
|
|
21
|
-
transform: translateX(50%);
|
|
22
|
-
}
|
|
23
|
-
@else if $value == left {
|
|
24
|
-
inset: 0 auto 0 0;
|
|
25
|
-
}
|
|
26
|
-
@else if $value == right {
|
|
27
|
-
inset: 0 0 0 auto;
|
|
28
|
-
}
|
|
29
|
-
@else if $value == top {
|
|
30
|
-
inset: 0 0 auto 0;
|
|
31
|
-
}
|
|
32
|
-
@else if $value == vertical {
|
|
33
|
-
bottom: 50%;
|
|
34
|
-
transform: translateY(50%);
|
|
35
|
-
}
|
|
36
|
-
@else if $value and meta.type-of($value) == list {
|
|
37
|
-
$length: list.length($value);
|
|
38
|
-
|
|
39
|
-
@if $length > 0 and list.nth($value, 1) != null {
|
|
40
|
-
top: list.nth($value, 1);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@if $length > 1 and list.nth($value, 2) != null {
|
|
44
|
-
right: list.nth($value, 2);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@if $length > 2 and list.nth($value, 3) != null {
|
|
48
|
-
bottom: list.nth($value, 3);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@if $length > 3 and list.nth($value, 4) != null {
|
|
52
|
-
left: list.nth($value, 4);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
@use 'list';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@mixin position($position, $value: null) {
|
|
6
|
+
position: $position;
|
|
7
|
+
|
|
8
|
+
@if $value == bottom {
|
|
9
|
+
inset: auto 0 0 0;
|
|
10
|
+
}
|
|
11
|
+
@else if $value == center {
|
|
12
|
+
bottom: 50%;
|
|
13
|
+
right: 50%;
|
|
14
|
+
transform: translate(50%, 50%);
|
|
15
|
+
}
|
|
16
|
+
@else if $value == full {
|
|
17
|
+
inset: 0 0 0 0;
|
|
18
|
+
}
|
|
19
|
+
@else if $value == horizontal {
|
|
20
|
+
right: 50%;
|
|
21
|
+
transform: translateX(50%);
|
|
22
|
+
}
|
|
23
|
+
@else if $value == left {
|
|
24
|
+
inset: 0 auto 0 0;
|
|
25
|
+
}
|
|
26
|
+
@else if $value == right {
|
|
27
|
+
inset: 0 0 0 auto;
|
|
28
|
+
}
|
|
29
|
+
@else if $value == top {
|
|
30
|
+
inset: 0 0 auto 0;
|
|
31
|
+
}
|
|
32
|
+
@else if $value == vertical {
|
|
33
|
+
bottom: 50%;
|
|
34
|
+
transform: translateY(50%);
|
|
35
|
+
}
|
|
36
|
+
@else if $value and meta.type-of($value) == list {
|
|
37
|
+
$length: list.length($value);
|
|
38
|
+
|
|
39
|
+
@if $length > 0 and list.nth($value, 1) != null {
|
|
40
|
+
top: list.nth($value, 1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@if $length > 1 and list.nth($value, 2) != null {
|
|
44
|
+
right: list.nth($value, 2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@if $length > 2 and list.nth($value, 3) != null {
|
|
48
|
+
bottom: list.nth($value, 3);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@if $length > 3 and list.nth($value, 4) != null {
|
|
52
|
+
left: list.nth($value, 4);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
package/src/lib/scss/string.scss
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
@use 'list';
|
|
2
|
-
@use 'sass:meta';
|
|
3
|
-
@use 'sass:string';
|
|
4
|
-
|
|
5
|
-
@forward 'sass:string';
|
|
6
|
-
|
|
7
|
-
@function contains($needles, $haystack) {
|
|
8
|
-
$haystack: string.quote($haystack);
|
|
9
|
-
$needles: list.to-list($needles);
|
|
10
|
-
|
|
11
|
-
@each $needle in $needles {
|
|
12
|
-
$needle: string.quote($needle);
|
|
13
|
-
|
|
14
|
-
@if string.index($haystack, $needle) != null {
|
|
15
|
-
@return true;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@return false;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@function replace($find, $replace, $haystack) {
|
|
23
|
-
@if meta.type-of($haystack) != string {
|
|
24
|
-
@error "#{$haystack} Is Not A Valid String";
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
$index: string.index($haystack, string.quote($find));
|
|
28
|
-
|
|
29
|
-
@if $index {
|
|
30
|
-
$haystack: string.slice($haystack, 1, $index - 1) + $replace + replace($find, $replace, string.slice($haystack, $index + string.length($find)));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@return $haystack;
|
|
34
|
-
}
|
|
1
|
+
@use 'list';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
|
|
5
|
+
@forward 'sass:string';
|
|
6
|
+
|
|
7
|
+
@function contains($needles, $haystack) {
|
|
8
|
+
$haystack: string.quote($haystack);
|
|
9
|
+
$needles: list.to-list($needles);
|
|
10
|
+
|
|
11
|
+
@each $needle in $needles {
|
|
12
|
+
$needle: string.quote($needle);
|
|
13
|
+
|
|
14
|
+
@if string.index($haystack, $needle) != null {
|
|
15
|
+
@return true;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@return false;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@function replace($find, $replace, $haystack) {
|
|
23
|
+
@if meta.type-of($haystack) != string {
|
|
24
|
+
@error "#{$haystack} Is Not A Valid String";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
$index: string.index($haystack, string.quote($find));
|
|
28
|
+
|
|
29
|
+
@if $index {
|
|
30
|
+
$haystack: string.slice($haystack, 1, $index - 1) + $replace + replace($find, $replace, string.slice($haystack, $index + string.length($find)));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@return $haystack;
|
|
34
|
+
}
|
package/src/tokens/index.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@forward 'scss/border-radius';
|
|
2
|
-
@forward 'scss/border-width';
|
|
3
|
-
@forward 'scss/box-shadow';
|
|
4
|
-
@forward 'scss/color';
|
|
5
|
-
@forward 'scss/font-size';
|
|
6
|
-
@forward 'scss/font-weight';
|
|
7
|
-
@forward 'scss/line-height';
|
|
8
|
-
@forward 'scss/size';
|
|
9
|
-
@forward 'scss/spacer';
|
|
10
|
-
@forward 'scss/state';
|
|
11
|
-
@forward 'scss/transition-duration';
|
|
1
|
+
@forward 'scss/border-radius';
|
|
2
|
+
@forward 'scss/border-width';
|
|
3
|
+
@forward 'scss/box-shadow';
|
|
4
|
+
@forward 'scss/color';
|
|
5
|
+
@forward 'scss/font-size';
|
|
6
|
+
@forward 'scss/font-weight';
|
|
7
|
+
@forward 'scss/line-height';
|
|
8
|
+
@forward 'scss/size';
|
|
9
|
+
@forward 'scss/spacer';
|
|
10
|
+
@forward 'scss/state';
|
|
11
|
+
@forward 'scss/transition-duration';
|