@esportsplus/ui 0.1.8 → 0.2.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/alert/index.d.ts +1 -1
- package/build/components/alert/index.js +34 -36
- package/build/components/export/clipboard.js +1 -3
- package/build/components/export/index.js +3 -8
- package/build/components/export/json.js +1 -3
- package/build/components/field/checkbox.d.ts +1 -1
- package/build/components/field/checkbox.js +32 -37
- package/build/components/field/description.d.ts +1 -1
- package/build/components/field/description.js +4 -6
- package/build/components/field/error.d.ts +1 -1
- package/build/components/field/error.js +4 -6
- package/build/components/field/file.d.ts +1 -1
- package/build/components/field/file.js +36 -41
- package/build/components/field/index.d.ts +8 -8
- package/build/components/field/index.js +8 -13
- package/build/components/field/optional.d.ts +2 -2
- package/build/components/field/optional.js +8 -13
- package/build/components/field/select.d.ts +1 -1
- package/build/components/field/select.js +65 -70
- package/build/components/field/switch.d.ts +1 -1
- package/build/components/field/switch.js +3 -8
- package/build/components/field/text.d.ts +1 -1
- package/build/components/field/text.js +37 -42
- package/build/components/field/textarea.d.ts +1 -1
- package/build/components/field/textarea.js +3 -8
- package/build/components/field/title.d.ts +1 -1
- package/build/components/field/title.js +14 -19
- package/build/components/form/action.js +7 -13
- package/build/components/form/index.d.ts +1 -1
- package/build/components/form/index.js +4 -9
- package/build/components/form/input.js +1 -3
- package/build/components/form/layout.d.ts +1 -1
- package/build/components/form/layout.js +11 -13
- package/build/components/form/types.d.ts +1 -1
- package/build/components/form/types.js +1 -2
- package/build/components/number/index.js +2 -6
- package/build/components/page/index.js +2 -7
- package/build/components/root/index.js +3 -9
- package/build/components/root/onclick.js +1 -3
- package/build/components/scrollbar/index.d.ts +3 -3
- package/build/components/scrollbar/index.js +13 -15
- package/build/components/site/index.d.ts +1 -1
- package/build/components/site/index.js +10 -15
- package/build/components/tooltip/index.d.ts +5 -5
- package/build/components/tooltip/index.js +8 -13
- package/build/components/tooltip/menu.d.ts +1 -1
- package/build/components/tooltip/menu.js +34 -36
- package/build/index.js +11 -27
- package/lib.scss +1 -1
- package/package.json +25 -25
- package/src/components/accordion/scss/index.scss +16 -16
- package/src/components/accordion/scss/variables.scss +4 -4
- package/src/components/alert/index.ts +156 -156
- package/src/components/alert/scss/index.scss +54 -54
- package/src/components/alert/scss/variables.scss +8 -8
- package/src/components/anchor/scss/index.scss +41 -41
- package/src/components/anchor/scss/variables.scss +5 -5
- package/src/components/banner/scss/index.scss +40 -40
- package/src/components/banner/scss/variables.scss +5 -5
- package/src/components/border/scss/index.scss +10 -10
- package/src/components/border/scss/variables.scss +6 -6
- package/src/components/bubble/scss/index.scss +30 -30
- package/src/components/bubble/scss/variables.scss +19 -19
- package/src/components/button/scss/index.scss +92 -92
- package/src/components/button/scss/variables.scss +69 -69
- package/src/components/card/scss/index.scss +35 -35
- package/src/components/card/scss/variables.scss +42 -42
- package/src/components/container/scss/index.scss +10 -10
- package/src/components/container/scss/variables.scss +5 -5
- package/src/components/ellipsis/scss/index.scss +71 -71
- package/src/components/ellipsis/scss/variables.scss +2 -2
- package/src/components/export/clipboard.ts +11 -11
- package/src/components/export/index.ts +4 -4
- package/src/components/export/json.ts +14 -14
- package/src/components/field/checkbox.ts +60 -60
- package/src/components/field/description.ts +11 -11
- package/src/components/field/error.ts +13 -13
- package/src/components/field/file.ts +64 -64
- package/src/components/field/index.ts +9 -9
- package/src/components/field/optional.ts +26 -26
- package/src/components/field/scss/_check.scss +225 -225
- package/src/components/field/scss/_normalize.scss +36 -36
- package/src/components/field/scss/_text.scss +106 -106
- package/src/components/field/scss/index.scss +158 -158
- package/src/components/field/scss/variables.scss +138 -138
- package/src/components/field/select.ts +150 -150
- package/src/components/field/switch.ts +8 -8
- package/src/components/field/text.ts +68 -68
- package/src/components/field/textarea.ts +7 -7
- package/src/components/field/title.ts +22 -22
- package/src/components/form/action.ts +67 -67
- package/src/components/form/index.ts +5 -5
- package/src/components/form/input.ts +14 -14
- package/src/components/form/layout.ts +25 -25
- package/src/components/form/types.ts +15 -15
- package/src/components/group/scss/index.scss +36 -36
- package/src/components/group/scss/variables.scss +17 -17
- package/src/components/icon/scss/index.scss +17 -17
- package/src/components/icon/scss/variables.scss +7 -7
- package/src/components/link/scss/index.scss +28 -28
- package/src/components/link/scss/variables.scss +47 -47
- package/src/components/loading/scss/index.scss +24 -24
- package/src/components/loading/scss/variables.scss +31 -31
- package/src/components/modal/scss/index.scss +31 -31
- package/src/components/modal/scss/variables.scss +10 -10
- package/src/components/number/index.ts +23 -23
- package/src/components/page/index.ts +14 -14
- package/src/components/page/scss/index.scss +27 -27
- package/src/components/page/scss/variables.scss +27 -27
- package/src/components/processing/scss/index.scss +46 -46
- package/src/components/processing/scss/variables.scss +11 -11
- package/src/components/root/index.ts +4 -4
- package/src/components/root/onclick.ts +20 -20
- package/src/components/root/scss/index.scss +93 -93
- package/src/components/root/scss/variables.scss +55 -55
- package/src/components/row/scss/index.scss +7 -7
- package/src/components/scrollbar/index.ts +43 -43
- package/src/components/scrollbar/scss/index.scss +59 -59
- package/src/components/scrollbar/scss/variables.scss +6 -6
- package/src/components/sidebar/scss/index.scss +50 -50
- package/src/components/sidebar/scss/variables.scss +21 -21
- package/src/components/site/index.ts +26 -26
- package/src/components/site/scss/index.scss +3 -3
- package/src/components/text/scss/index.scss +12 -12
- package/src/components/text/scss/variables.scss +9 -9
- package/src/components/thumbnail/scss/index.scss +7 -7
- package/src/components/thumbnail/scss/variables.scss +7 -7
- package/src/components/tooltip/index.ts +93 -93
- package/src/components/tooltip/menu.ts +70 -70
- 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 +93 -93
- package/src/components/tooltip/scss/variables.scss +25 -25
- package/src/css-utilities/[margin,padding]/scss/index.scss +41 -41
- package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -54
- package/src/css-utilities/absolute/scss/index.scss +59 -59
- package/src/css-utilities/background/scss/variables.scss +27 -27
- package/src/css-utilities/border/scss/index.scss +21 -21
- package/src/css-utilities/border/scss/variables.scss +66 -66
- package/src/css-utilities/color/scss/variables.scss +31 -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 +2 -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.scss +14 -14
- package/src/css-utilities/inline/scss/index.scss +7 -7
- 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/overflow/scss/index.scss +4 -4
- package/src/css-utilities/pointer/scss/index.scss +5 -5
- package/src/css-utilities/size/scss/variables.scss +12 -12
- package/src/css-utilities/slide/scss/index.scss +21 -21
- package/src/css-utilities/slide/scss/variables.scss +10 -10
- package/src/css-utilities/text/scss/index.scss +93 -93
- package/src/css-utilities/text/scss/variables.scss +31 -31
- package/src/css-utilities/transition/scss/variables.scss +14 -14
- package/src/css-utilities/viewport/scss/index.scss +4 -4
- package/src/css-utilities/width/scss/index.scss +3 -3
- package/src/css-utilities/width/scss/variables.scss +9 -9
- package/src/index.ts +11 -11
- 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 +13 -13
- package/src/lib/scss/list.scss +76 -76
- package/src/lib/scss/map.scss +1 -1
- package/src/lib/scss/position.scss +77 -77
- package/src/lib/scss/string.scss +33 -33
- 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 +13 -13
- package/src/tokens/scss/color.scss +64 -64
- package/src/tokens/scss/font-size.scss +12 -12
- 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 +8 -8
- package/src/tokens/scss/state.scss +86 -86
- package/src/tokens/scss/transition-duration.scss +5 -5
- package/storage/fonts/montserrat/index.css +79 -79
- package/tokens.scss +1 -1
- package/tsconfig.json +10 -10
- package/utilities/styles.css +1 -1
- package/utilities/variables.css +1 -1
- package/webpack.config.ts +25 -25
package/src/lib/scss/list.scss
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
@use 'sass:string';
|
|
3
|
-
|
|
4
|
-
@forward 'sass:list';
|
|
5
|
-
|
|
6
|
-
@function contains($needles, $haystack) {
|
|
7
|
-
$haystack: to-list($haystack);
|
|
8
|
-
$needles: to-list($needles);
|
|
9
|
-
|
|
10
|
-
@each $needle in $needles {
|
|
11
|
-
@if list.index($haystack, $needle) {
|
|
12
|
-
@return true;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@return false;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@function implode($glue, $list) {
|
|
20
|
-
$list: unique($list);
|
|
21
|
-
$output: null;
|
|
22
|
-
|
|
23
|
-
@if type-of($list) != list {
|
|
24
|
-
@error "#{$list} Is Not A Valid List";
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@for $i from 1 through list.length($list) {
|
|
28
|
-
$m: nth($list, $i);
|
|
29
|
-
|
|
30
|
-
// If $k Is A List Flatten By Running Through Function Again
|
|
31
|
-
@if type-of($m) == list {
|
|
32
|
-
$output: string.unquote("#{$output}#{$glue}#{implode($glue, $m)}");
|
|
33
|
-
}
|
|
34
|
-
// Piece Together String
|
|
35
|
-
@else {
|
|
36
|
-
$output: string.unquote("#{$output}#{$glue}#{$m}");
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@if $output != null {
|
|
41
|
-
$output: string.slice($output, string.length($glue) + 1, -1);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@return $output;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@function to-list($input) {
|
|
48
|
-
$output: $input;
|
|
49
|
-
|
|
50
|
-
@if type-of($input) != list {
|
|
51
|
-
$output: ($input,);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@return $output;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@function unique($list, $recursive: false) {
|
|
58
|
-
$result: ();
|
|
59
|
-
|
|
60
|
-
@if type-of($list) != list {
|
|
61
|
-
@error "#{$list} Is Not A Valid List";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@each $item in $list {
|
|
65
|
-
@if not list.index($result, $item) and $item != '' {
|
|
66
|
-
@if list.length($item) > 1 and $recursive {
|
|
67
|
-
$result: list.append($result, unique($item, $recursive));
|
|
68
|
-
}
|
|
69
|
-
@else {
|
|
70
|
-
$result: list.append($result, $item);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@return $result;
|
|
76
|
-
}
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
@forward 'sass:list';
|
|
5
|
+
|
|
6
|
+
@function contains($needles, $haystack) {
|
|
7
|
+
$haystack: to-list($haystack);
|
|
8
|
+
$needles: to-list($needles);
|
|
9
|
+
|
|
10
|
+
@each $needle in $needles {
|
|
11
|
+
@if list.index($haystack, $needle) {
|
|
12
|
+
@return true;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@return false;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@function implode($glue, $list) {
|
|
20
|
+
$list: unique($list);
|
|
21
|
+
$output: null;
|
|
22
|
+
|
|
23
|
+
@if type-of($list) != list {
|
|
24
|
+
@error "#{$list} Is Not A Valid List";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@for $i from 1 through list.length($list) {
|
|
28
|
+
$m: nth($list, $i);
|
|
29
|
+
|
|
30
|
+
// If $k Is A List Flatten By Running Through Function Again
|
|
31
|
+
@if type-of($m) == list {
|
|
32
|
+
$output: string.unquote("#{$output}#{$glue}#{implode($glue, $m)}");
|
|
33
|
+
}
|
|
34
|
+
// Piece Together String
|
|
35
|
+
@else {
|
|
36
|
+
$output: string.unquote("#{$output}#{$glue}#{$m}");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@if $output != null {
|
|
41
|
+
$output: string.slice($output, string.length($glue) + 1, -1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@return $output;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@function to-list($input) {
|
|
48
|
+
$output: $input;
|
|
49
|
+
|
|
50
|
+
@if type-of($input) != list {
|
|
51
|
+
$output: ($input,);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@return $output;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@function unique($list, $recursive: false) {
|
|
58
|
+
$result: ();
|
|
59
|
+
|
|
60
|
+
@if type-of($list) != list {
|
|
61
|
+
@error "#{$list} Is Not A Valid List";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@each $item in $list {
|
|
65
|
+
@if not list.index($result, $item) and $item != '' {
|
|
66
|
+
@if list.length($item) > 1 and $recursive {
|
|
67
|
+
$result: list.append($result, unique($item, $recursive));
|
|
68
|
+
}
|
|
69
|
+
@else {
|
|
70
|
+
$result: list.append($result, $item);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@return $result;
|
|
76
|
+
}
|
package/src/lib/scss/map.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward 'sass:map';
|
|
1
|
+
@forward 'sass:map';
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
@use 'list';
|
|
2
|
-
|
|
3
|
-
@mixin position($position, $value: null) {
|
|
4
|
-
position: $position;
|
|
5
|
-
|
|
6
|
-
@if list.contains($value, center vertical) {
|
|
7
|
-
bottom: 50%;
|
|
8
|
-
}
|
|
9
|
-
@if list.contains($value, center horizontal) {
|
|
10
|
-
right: 50%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@if $value == center {
|
|
15
|
-
transform: translate(50%, 50%);
|
|
16
|
-
}
|
|
17
|
-
@else if $value == horizontal {
|
|
18
|
-
transform: translateX(50%);
|
|
19
|
-
}
|
|
20
|
-
@else if $value == vertical {
|
|
21
|
-
transform: translateY(50%);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@if $value == full {
|
|
26
|
-
$value: 0 0 0 0;
|
|
27
|
-
}
|
|
28
|
-
@else if $value == top {
|
|
29
|
-
$value: 0 0 null 0;
|
|
30
|
-
}
|
|
31
|
-
@else if $value == right {
|
|
32
|
-
$value: 0 0 0 null;
|
|
33
|
-
}
|
|
34
|
-
@else if $value == bottom {
|
|
35
|
-
$value: null 0 0 0;
|
|
36
|
-
}
|
|
37
|
-
@else if $value == left {
|
|
38
|
-
$value: 0 null 0 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@if $value and type-of($value) == list {
|
|
43
|
-
$length: list.length($value);
|
|
44
|
-
|
|
45
|
-
@if $length > 0 {
|
|
46
|
-
$v: nth($value, 1);
|
|
47
|
-
|
|
48
|
-
@if $v != null {
|
|
49
|
-
top: $v;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@if $length > 1 {
|
|
54
|
-
$v: nth($value, 2);
|
|
55
|
-
|
|
56
|
-
@if $v != null {
|
|
57
|
-
right: $v;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@if $length > 2 {
|
|
62
|
-
$v: nth($value, 3);
|
|
63
|
-
|
|
64
|
-
@if $v != null {
|
|
65
|
-
bottom: $v;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@if $length > 3 {
|
|
70
|
-
$v: nth($value, 4);
|
|
71
|
-
|
|
72
|
-
@if $v != null {
|
|
73
|
-
left: $v;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
@use 'list';
|
|
2
|
+
|
|
3
|
+
@mixin position($position, $value: null) {
|
|
4
|
+
position: $position;
|
|
5
|
+
|
|
6
|
+
@if list.contains($value, center vertical) {
|
|
7
|
+
bottom: 50%;
|
|
8
|
+
}
|
|
9
|
+
@if list.contains($value, center horizontal) {
|
|
10
|
+
right: 50%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@if $value == center {
|
|
15
|
+
transform: translate(50%, 50%);
|
|
16
|
+
}
|
|
17
|
+
@else if $value == horizontal {
|
|
18
|
+
transform: translateX(50%);
|
|
19
|
+
}
|
|
20
|
+
@else if $value == vertical {
|
|
21
|
+
transform: translateY(50%);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@if $value == full {
|
|
26
|
+
$value: 0 0 0 0;
|
|
27
|
+
}
|
|
28
|
+
@else if $value == top {
|
|
29
|
+
$value: 0 0 null 0;
|
|
30
|
+
}
|
|
31
|
+
@else if $value == right {
|
|
32
|
+
$value: 0 0 0 null;
|
|
33
|
+
}
|
|
34
|
+
@else if $value == bottom {
|
|
35
|
+
$value: null 0 0 0;
|
|
36
|
+
}
|
|
37
|
+
@else if $value == left {
|
|
38
|
+
$value: 0 null 0 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@if $value and type-of($value) == list {
|
|
43
|
+
$length: list.length($value);
|
|
44
|
+
|
|
45
|
+
@if $length > 0 {
|
|
46
|
+
$v: nth($value, 1);
|
|
47
|
+
|
|
48
|
+
@if $v != null {
|
|
49
|
+
top: $v;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@if $length > 1 {
|
|
54
|
+
$v: nth($value, 2);
|
|
55
|
+
|
|
56
|
+
@if $v != null {
|
|
57
|
+
right: $v;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@if $length > 2 {
|
|
62
|
+
$v: nth($value, 3);
|
|
63
|
+
|
|
64
|
+
@if $v != null {
|
|
65
|
+
bottom: $v;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@if $length > 3 {
|
|
70
|
+
$v: nth($value, 4);
|
|
71
|
+
|
|
72
|
+
@if $v != null {
|
|
73
|
+
left: $v;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
package/src/lib/scss/string.scss
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
@use 'list';
|
|
2
|
-
@use 'sass:string';
|
|
3
|
-
|
|
4
|
-
@forward 'sass:string';
|
|
5
|
-
|
|
6
|
-
@function contains($needles, $haystack) {
|
|
7
|
-
$haystack: string.quote($haystack);
|
|
8
|
-
$needles: list.to-list($needles);
|
|
9
|
-
|
|
10
|
-
@each $needle in $needles {
|
|
11
|
-
$needle: string.quote($needle);
|
|
12
|
-
|
|
13
|
-
@if string.index($haystack, $needle) != null {
|
|
14
|
-
@return true;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@return false;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@function replace($find, $replace, $haystack) {
|
|
22
|
-
@if type-of($haystack) != string {
|
|
23
|
-
@error "#{$haystack} Is Not A Valid String";
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
$index: string.index($haystack, string.quote($find));
|
|
27
|
-
|
|
28
|
-
@if $index {
|
|
29
|
-
$haystack: string.slice($haystack, 1, $index - 1) + $replace + replace($find, $replace, string.slice($haystack, $index + string.length($find)));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@return $haystack;
|
|
33
|
-
}
|
|
1
|
+
@use 'list';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
@forward 'sass:string';
|
|
5
|
+
|
|
6
|
+
@function contains($needles, $haystack) {
|
|
7
|
+
$haystack: string.quote($haystack);
|
|
8
|
+
$needles: list.to-list($needles);
|
|
9
|
+
|
|
10
|
+
@each $needle in $needles {
|
|
11
|
+
$needle: string.quote($needle);
|
|
12
|
+
|
|
13
|
+
@if string.index($haystack, $needle) != null {
|
|
14
|
+
@return true;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@return false;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@function replace($find, $replace, $haystack) {
|
|
22
|
+
@if type-of($haystack) != string {
|
|
23
|
+
@error "#{$haystack} Is Not A Valid String";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
$index: string.index($haystack, string.quote($find));
|
|
27
|
+
|
|
28
|
+
@if $index {
|
|
29
|
+
$haystack: string.slice($haystack, 1, $index - 1) + $replace + replace($find, $replace, string.slice($haystack, $index + string.length($find)));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@return $haystack;
|
|
33
|
+
}
|
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';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
$border-radius: (
|
|
2
|
-
0px: 0px,
|
|
3
|
-
circle: 100%,
|
|
4
|
-
curved: 240px,
|
|
5
|
-
|
|
6
|
-
100: 2px,
|
|
7
|
-
200: 4px,
|
|
8
|
-
300: 6px,
|
|
9
|
-
400: 8px,
|
|
10
|
-
500: 12px,
|
|
11
|
-
600: 16px
|
|
12
|
-
);
|
|
1
|
+
$border-radius: (
|
|
2
|
+
0px: 0px,
|
|
3
|
+
circle: 100%,
|
|
4
|
+
curved: 240px,
|
|
5
|
+
|
|
6
|
+
100: 2px,
|
|
7
|
+
200: 4px,
|
|
8
|
+
300: 6px,
|
|
9
|
+
400: 8px,
|
|
10
|
+
500: 12px,
|
|
11
|
+
600: 16px
|
|
12
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
$border-width: (
|
|
2
|
-
400: 1px,
|
|
3
|
-
500: 2px,
|
|
4
|
-
600: 3px,
|
|
5
|
-
700: 4px
|
|
6
|
-
);
|
|
1
|
+
$border-width: (
|
|
2
|
+
400: 1px,
|
|
3
|
+
500: 2px,
|
|
4
|
+
600: 3px,
|
|
5
|
+
700: 4px
|
|
6
|
+
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
$box-shadow: (
|
|
2
|
-
300: #{
|
|
3
|
-
0px 8px 16px -4px rgba(0, 3, 19, 0.016),
|
|
4
|
-
0px 4px 8px -2px rgba(0, 3, 19, 0.008)
|
|
5
|
-
},
|
|
6
|
-
400: #{
|
|
7
|
-
0px 16px 24px -4px rgba(0, 3, 19, 0.048),
|
|
8
|
-
0px 8px 8px -4px rgba(0, 3, 19, 0.024)
|
|
9
|
-
},
|
|
10
|
-
500: #{
|
|
11
|
-
0px 16px 32px -8px rgba(0, 3, 19, 0.16)
|
|
12
|
-
}
|
|
13
|
-
);
|
|
1
|
+
$box-shadow: (
|
|
2
|
+
300: #{
|
|
3
|
+
0px 8px 16px -4px rgba(0, 3, 19, 0.016),
|
|
4
|
+
0px 4px 8px -2px rgba(0, 3, 19, 0.008)
|
|
5
|
+
},
|
|
6
|
+
400: #{
|
|
7
|
+
0px 16px 24px -4px rgba(0, 3, 19, 0.048),
|
|
8
|
+
0px 8px 8px -4px rgba(0, 3, 19, 0.024)
|
|
9
|
+
},
|
|
10
|
+
500: #{
|
|
11
|
+
0px 16px 32px -8px rgba(0, 3, 19, 0.16)
|
|
12
|
+
}
|
|
13
|
+
);
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
@use '../../lib';
|
|
2
|
-
|
|
3
|
-
$color: (
|
|
4
|
-
'black': (
|
|
5
|
-
300: #0f1325,
|
|
6
|
-
400: #04081a,
|
|
7
|
-
500: #000313
|
|
8
|
-
),
|
|
9
|
-
'blue': (
|
|
10
|
-
300: #3453ff,
|
|
11
|
-
400: #2a4bff,
|
|
12
|
-
500: #2343f8
|
|
13
|
-
),
|
|
14
|
-
'border': (
|
|
15
|
-
300: #c4c9df,
|
|
16
|
-
400: #b4b9d2,
|
|
17
|
-
500: #a5a9c3
|
|
18
|
-
),
|
|
19
|
-
'green': (
|
|
20
|
-
300: #5fff81,
|
|
21
|
-
400: #2aff57,
|
|
22
|
-
500: #23f850
|
|
23
|
-
),
|
|
24
|
-
'grey': (
|
|
25
|
-
300: #f2f9ff,
|
|
26
|
-
400: #e7f1fa,
|
|
27
|
-
500: #dde8f0
|
|
28
|
-
),
|
|
29
|
-
'purple': (
|
|
30
|
-
300: #6634ff,
|
|
31
|
-
400: #5e2aff,
|
|
32
|
-
500: #5723f8
|
|
33
|
-
),
|
|
34
|
-
'red': (
|
|
35
|
-
300: #ff3446,
|
|
36
|
-
400: #ff2a3d,
|
|
37
|
-
500: #f82336
|
|
38
|
-
),
|
|
39
|
-
'text': (
|
|
40
|
-
300: #676c84,
|
|
41
|
-
400: #393d57,
|
|
42
|
-
500: #1f2542
|
|
43
|
-
),
|
|
44
|
-
'white': (
|
|
45
|
-
300: #fff,
|
|
46
|
-
400: #fff,
|
|
47
|
-
500: #fff
|
|
48
|
-
),
|
|
49
|
-
'yellow': (
|
|
50
|
-
300: #fff95f,
|
|
51
|
-
400: #fff92a,
|
|
52
|
-
500: #f8f123
|
|
53
|
-
)
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
@function color($keys, $opacity) {
|
|
57
|
-
$c: $color;
|
|
58
|
-
|
|
59
|
-
@each $key in $keys {
|
|
60
|
-
$c: lib.map-get($c, $key);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@return lib.color-change($c, $alpha: $opacity);
|
|
64
|
-
}
|
|
1
|
+
@use '../../lib';
|
|
2
|
+
|
|
3
|
+
$color: (
|
|
4
|
+
'black': (
|
|
5
|
+
300: #0f1325,
|
|
6
|
+
400: #04081a,
|
|
7
|
+
500: #000313
|
|
8
|
+
),
|
|
9
|
+
'blue': (
|
|
10
|
+
300: #3453ff,
|
|
11
|
+
400: #2a4bff,
|
|
12
|
+
500: #2343f8
|
|
13
|
+
),
|
|
14
|
+
'border': (
|
|
15
|
+
300: #c4c9df,
|
|
16
|
+
400: #b4b9d2,
|
|
17
|
+
500: #a5a9c3
|
|
18
|
+
),
|
|
19
|
+
'green': (
|
|
20
|
+
300: #5fff81,
|
|
21
|
+
400: #2aff57,
|
|
22
|
+
500: #23f850
|
|
23
|
+
),
|
|
24
|
+
'grey': (
|
|
25
|
+
300: #f2f9ff,
|
|
26
|
+
400: #e7f1fa,
|
|
27
|
+
500: #dde8f0
|
|
28
|
+
),
|
|
29
|
+
'purple': (
|
|
30
|
+
300: #6634ff,
|
|
31
|
+
400: #5e2aff,
|
|
32
|
+
500: #5723f8
|
|
33
|
+
),
|
|
34
|
+
'red': (
|
|
35
|
+
300: #ff3446,
|
|
36
|
+
400: #ff2a3d,
|
|
37
|
+
500: #f82336
|
|
38
|
+
),
|
|
39
|
+
'text': (
|
|
40
|
+
300: #676c84,
|
|
41
|
+
400: #393d57,
|
|
42
|
+
500: #1f2542
|
|
43
|
+
),
|
|
44
|
+
'white': (
|
|
45
|
+
300: #fff,
|
|
46
|
+
400: #fff,
|
|
47
|
+
500: #fff
|
|
48
|
+
),
|
|
49
|
+
'yellow': (
|
|
50
|
+
300: #fff95f,
|
|
51
|
+
400: #fff92a,
|
|
52
|
+
500: #f8f123
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
@function color($keys, $opacity) {
|
|
57
|
+
$c: $color;
|
|
58
|
+
|
|
59
|
+
@each $key in $keys {
|
|
60
|
+
$c: lib.map-get($c, $key);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@return lib.color-change($c, $alpha: $opacity);
|
|
64
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
$font-size: (
|
|
2
|
-
100: 8px,
|
|
3
|
-
200: 10px,
|
|
4
|
-
300: 12px,
|
|
5
|
-
400: 14px,
|
|
6
|
-
|
|
7
|
-
// Primarily Used For Headers h1 - h4
|
|
8
|
-
500: 16px,
|
|
9
|
-
600: 24px,
|
|
10
|
-
700: 32px,
|
|
11
|
-
800: 40px
|
|
12
|
-
);
|
|
1
|
+
$font-size: (
|
|
2
|
+
100: 8px,
|
|
3
|
+
200: 10px,
|
|
4
|
+
300: 12px,
|
|
5
|
+
400: 14px,
|
|
6
|
+
|
|
7
|
+
// Primarily Used For Headers h1 - h4
|
|
8
|
+
500: 16px,
|
|
9
|
+
600: 24px,
|
|
10
|
+
700: 32px,
|
|
11
|
+
800: 40px
|
|
12
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
$font-weight: (
|
|
2
|
-
300: 400,
|
|
3
|
-
400: 500,
|
|
4
|
-
500: 600,
|
|
5
|
-
600: 700
|
|
6
|
-
);
|
|
1
|
+
$font-weight: (
|
|
2
|
+
300: 400,
|
|
3
|
+
400: 500,
|
|
4
|
+
500: 600,
|
|
5
|
+
600: 700
|
|
6
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
$line-height: (
|
|
2
|
-
100: 1,
|
|
3
|
-
200: 1.2,
|
|
4
|
-
300: 1.4,
|
|
5
|
-
400: 1.6
|
|
6
|
-
);
|
|
1
|
+
$line-height: (
|
|
2
|
+
100: 1,
|
|
3
|
+
200: 1.2,
|
|
4
|
+
300: 1.4,
|
|
5
|
+
400: 1.6
|
|
6
|
+
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
$size: (
|
|
2
|
-
0px: 0px,
|
|
3
|
-
|
|
4
|
-
100: 4px,
|
|
5
|
-
200: 8px,
|
|
6
|
-
300: 12px,
|
|
7
|
-
400: 16px,
|
|
8
|
-
500: 20px,
|
|
9
|
-
600: 24px,
|
|
10
|
-
700: 32px,
|
|
11
|
-
800: 40px,
|
|
12
|
-
900: 48px
|
|
13
|
-
);
|
|
1
|
+
$size: (
|
|
2
|
+
0px: 0px,
|
|
3
|
+
|
|
4
|
+
100: 4px,
|
|
5
|
+
200: 8px,
|
|
6
|
+
300: 12px,
|
|
7
|
+
400: 16px,
|
|
8
|
+
500: 20px,
|
|
9
|
+
600: 24px,
|
|
10
|
+
700: 32px,
|
|
11
|
+
800: 40px,
|
|
12
|
+
900: 48px
|
|
13
|
+
);
|