@moda/om 19.9.0 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/index.cjs.js +436 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +425 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems.d.ts +2 -0
- package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems.stories.d.ts +6 -0
- package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems1.d.ts +3 -0
- package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems2.d.ts +3 -0
- package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems3.d.ts +3 -0
- package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems4.d.ts +3 -0
- package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems5.d.ts +3 -0
- package/dist/src/components/LoadingItemsLavenderBlue/index.d.ts +5 -0
- package/dist/src/components/LoadingItemsPinkGreen/LoadingItems.d.ts +2 -0
- package/dist/src/components/LoadingItemsPinkGreen/LoadingItems.stories.d.ts +6 -0
- package/dist/src/components/LoadingItemsPinkGreen/LoadingItems1.d.ts +3 -0
- package/dist/src/components/LoadingItemsPinkGreen/LoadingItems2.d.ts +3 -0
- package/dist/src/components/LoadingItemsPinkGreen/LoadingItems3.d.ts +3 -0
- package/dist/src/components/LoadingItemsPinkGreen/LoadingItems4.d.ts +3 -0
- package/dist/src/components/LoadingItemsPinkGreen/LoadingItems5.d.ts +3 -0
- package/dist/src/components/LoadingItemsPinkGreen/index.d.ts +5 -0
- package/dist/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.d.ts +3 -0
- package/dist/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.stories.d.ts +6 -0
- package/dist/src/components/LoadingShapesLavenderBlue/index.d.ts +1 -0
- package/dist/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.d.ts +3 -0
- package/dist/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.stories.d.ts +6 -0
- package/dist/src/components/LoadingShapesPinkGreen/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +4 -0
- package/dist/styles.css +1 -1
- package/index.scss +1 -0
- package/package.json +4 -3
- package/src/components/AspectRatioBox/AspectRatioBox.scss +1 -1
- package/src/components/Badge/Badge.scss +17 -17
- package/src/components/Breadcrumbs/Breadcrumb/Breadcrumb.scss +5 -5
- package/src/components/Breadcrumbs/Breadcrumbs.scss +2 -2
- package/src/components/Breakpoint/Breakpoint.scss +9 -7
- package/src/components/Button/Button.scss +45 -44
- package/src/components/Checkbox/Checkbox.scss +11 -11
- package/src/components/Clickable/Clickable.scss +3 -3
- package/src/components/ColorSwatch/ColorSwatch.scss +9 -9
- package/src/components/Constrain/Constrain.scss +9 -8
- package/src/components/Constrain/ExceedConstrain.scss +7 -7
- package/src/components/ControlLink/ControlLink.scss +6 -6
- package/src/components/DefinitionList/DefinitionList.scss +5 -5
- package/src/components/Dialog/Dialog.scss +4 -4
- package/src/components/Divider/Divider.scss +5 -5
- package/src/components/Expandable/Expandable.scss +17 -17
- package/src/components/Field/Field.scss +7 -7
- package/src/components/Label/Label.scss +4 -4
- package/src/components/Loading/Loading.scss +4 -4
- package/src/components/LoadingBalls/LoadingBalls.scss +2 -2
- package/src/components/LoadingItemsLavenderBlue/LoadingItems.stories.tsx +15 -0
- package/src/components/LoadingItemsLavenderBlue/LoadingItems.tsx +3 -0
- package/src/components/LoadingItemsLavenderBlue/LoadingItems1.tsx +28 -0
- package/src/components/LoadingItemsLavenderBlue/LoadingItems2.tsx +28 -0
- package/src/components/LoadingItemsLavenderBlue/LoadingItems3.tsx +28 -0
- package/src/components/LoadingItemsLavenderBlue/LoadingItems4.tsx +28 -0
- package/src/components/LoadingItemsLavenderBlue/LoadingItems5.tsx +28 -0
- package/src/components/LoadingItemsLavenderBlue/index.ts +5 -0
- package/src/components/LoadingItemsPinkGreen/LoadingItems.stories.tsx +15 -0
- package/src/components/LoadingItemsPinkGreen/LoadingItems.tsx +3 -0
- package/src/components/LoadingItemsPinkGreen/LoadingItems1.tsx +28 -0
- package/src/components/LoadingItemsPinkGreen/LoadingItems2.tsx +28 -0
- package/src/components/LoadingItemsPinkGreen/LoadingItems3.tsx +28 -0
- package/src/components/LoadingItemsPinkGreen/LoadingItems4.tsx +28 -0
- package/src/components/LoadingItemsPinkGreen/LoadingItems5.tsx +28 -0
- package/src/components/LoadingItemsPinkGreen/index.ts +5 -0
- package/src/components/LoadingShapes/LoadingShapes.scss +2 -2
- package/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.scss +9 -0
- package/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.stories.tsx +11 -0
- package/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.tsx +48 -0
- package/src/components/LoadingShapesLavenderBlue/index.ts +1 -0
- package/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.scss +9 -0
- package/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.stories.tsx +11 -0
- package/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.tsx +42 -0
- package/src/components/LoadingShapesPinkGreen/index.ts +1 -0
- package/src/components/Modal/Modal.scss +1 -1
- package/src/components/ModalOverlay/ModalOverlay.scss +6 -6
- package/src/components/Overlay/Overlay.scss +4 -4
- package/src/components/Paginator/Paginator.scss +10 -10
- package/src/components/PasswordInput/PasswordInput.scss +4 -4
- package/src/components/Popover/Popover.scss +9 -9
- package/src/components/PromoBanner/PromoBanner.scss +9 -9
- package/src/components/RadioButton/RadioButton.scss +14 -14
- package/src/components/SearchInput/SearchInput.scss +4 -4
- package/src/components/Select/MultiSelect.scss +14 -14
- package/src/components/Select/Select.scss +25 -25
- package/src/components/Select/SelectOption.scss +7 -7
- package/src/components/Select/SelectOptions.scss +8 -8
- package/src/components/SelectableButton/SelectableButton.scss +13 -13
- package/src/components/SlidingPane/SlidingPane.scss +7 -7
- package/src/components/Stack/Stack.scss +6 -4
- package/src/components/Tabs/Tab.scss +6 -6
- package/src/components/Tabs/TabList.scss +3 -3
- package/src/components/Tabs/TabPanels.scss +2 -2
- package/src/components/Tag/Tag.scss +8 -8
- package/src/components/Text/Text.scss +4 -3
- package/src/components/TextInput/TextInput.scss +2 -2
- package/src/components/Textarea/Textarea.scss +3 -3
- package/src/components/Toast/Toast.scss +6 -6
- package/src/components/VerticalDivider/VerticalDivider.scss +3 -3
- package/src/components/index.ts +4 -0
- package/src/index.scss +3 -3
- package/src/mixins/_mixins.scss +7 -7
- package/src/mixins/font-smoothing/_font-smoothing.scss +0 -2
- package/src/mixins/font-smoothing/font-smoothing.stories.scss +3 -3
- package/src/mixins/global-styles/_global-styles.scss +6 -5
- package/src/mixins/input-styles/_input-styles.scss +14 -12
- package/src/mixins/overflow-scroll/_overflow-scroll.scss +0 -2
- package/src/mixins/overflow-scroll/overflow-scroll.stories.scss +3 -3
- package/src/mixins/stack/_stack.scss +3 -3
- package/src/mixins/stack/stack.stories.scss +3 -3
- package/src/mixins/thin-underline/_thin-underline.scss +0 -2
- package/src/mixins/thin-underline/thin-underline.stories.scss +2 -2
- package/src/mixins/visually-hidden/_visually-hidden.scss +0 -2
- package/src/mixins/visually-hidden/visually-hidden.stories.scss +2 -2
- package/src/utilities/States/State.scss +4 -4
- package/src/utilities/States/States.scss +2 -2
- package/src/utilities/States/StatesProps.scss +8 -8
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.Popover {
|
|
4
4
|
$self: &;
|
|
5
|
-
$caret-size: space(2);
|
|
5
|
+
$caret-size: om.space(2);
|
|
6
6
|
$border-width: calc(1rem / 16);
|
|
7
|
-
$offset: space(2);
|
|
7
|
+
$offset: om.space(2);
|
|
8
8
|
|
|
9
9
|
position: relative;
|
|
10
10
|
|
|
11
11
|
&__content {
|
|
12
12
|
position: absolute;
|
|
13
|
-
background-color: color('snow');
|
|
14
|
-
border: $border-width solid color(elephant);
|
|
13
|
+
background-color: om.color('snow');
|
|
14
|
+
border: $border-width solid om.color(elephant);
|
|
15
15
|
z-index: 1;
|
|
16
16
|
|
|
17
17
|
// Fills space of offset so hover works without issue
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
top: auto;
|
|
120
120
|
bottom: -($border-width + $offset);
|
|
121
121
|
border-top: none;
|
|
122
|
-
border-bottom: $caret-size solid color('snow');
|
|
122
|
+
border-bottom: $caret-size solid om.color('snow');
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
&:before {
|
|
126
|
-
border-bottom: $caret-size solid color(ink);
|
|
126
|
+
border-bottom: $caret-size solid om.color(ink);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
&:before {
|
|
138
138
|
top: -($border-width + $offset);
|
|
139
139
|
bottom: auto;
|
|
140
|
-
border-top: $caret-size solid color('snow');
|
|
140
|
+
border-top: $caret-size solid om.color('snow');
|
|
141
141
|
border-bottom: none;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
&:before {
|
|
145
|
-
border-top: $caret-size solid color(ink);
|
|
145
|
+
border-top: $caret-size solid om.color(ink);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.PromoBanner {
|
|
4
4
|
$self: &;
|
|
5
5
|
|
|
6
|
-
@include text(body2);
|
|
6
|
+
@include om.text(body2);
|
|
7
7
|
|
|
8
|
-
background-color: color(cream);
|
|
9
|
-
border-top: space(1) solid color(burnt-orange);
|
|
8
|
+
background-color: om.color(cream);
|
|
9
|
+
border-top: om.space(1) solid om.color(burnt-orange);
|
|
10
10
|
|
|
11
11
|
&__constrain {
|
|
12
12
|
display: flex;
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&__child {
|
|
18
|
-
min-width: space(11);
|
|
19
|
-
padding: spacing(2, 3);
|
|
18
|
+
min-width: om.space(11);
|
|
19
|
+
padding: om.spacing(2, 3);
|
|
20
20
|
|
|
21
21
|
&--center {
|
|
22
22
|
flex: 1;
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
> a {
|
|
36
|
-
color: color(ink);
|
|
36
|
+
color: om.color(ink);
|
|
37
37
|
|
|
38
|
-
@include thin-underline();
|
|
38
|
+
@include om.thin-underline();
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
@include breakpoint(sm, $prop: max-width) {
|
|
42
|
+
@include om.breakpoint(sm, $prop: max-width) {
|
|
43
43
|
#{$self}__child--left,
|
|
44
44
|
#{$self}__child--right {
|
|
45
45
|
display: none;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.RadioButton {
|
|
4
|
-
$radio-button-size: space(4);
|
|
5
|
-
$radio-button-check-offset: space(1);
|
|
4
|
+
$radio-button-size: om.space(4);
|
|
5
|
+
$radio-button-check-offset: om.space(1);
|
|
6
6
|
|
|
7
|
-
@include stack(2, $direction: horizontal);
|
|
7
|
+
@include om.stack(2, $direction: horizontal);
|
|
8
8
|
|
|
9
9
|
position: relative;
|
|
10
10
|
align-items: center;
|
|
11
11
|
user-select: none;
|
|
12
12
|
cursor: pointer;
|
|
13
|
-
color: color(ink);
|
|
13
|
+
color: om.color(ink);
|
|
14
14
|
|
|
15
15
|
&__indicator {
|
|
16
16
|
position: relative;
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
flex-shrink: 0;
|
|
20
20
|
border: 1px solid;
|
|
21
21
|
border-radius: 50%;
|
|
22
|
-
background-color: color('snow');
|
|
22
|
+
background-color: om.color('snow');
|
|
23
23
|
|
|
24
24
|
&--checked {
|
|
25
|
-
background-color: color(ink);
|
|
25
|
+
background-color: om.color(ink);
|
|
26
26
|
|
|
27
27
|
&::after {
|
|
28
28
|
content: '';
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
bottom: $radio-button-check-offset;
|
|
34
34
|
left: $radio-button-check-offset;
|
|
35
35
|
border-radius: 50%;
|
|
36
|
-
background-color: color('snow');
|
|
36
|
+
background-color: om.color('snow');
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&--disabled {
|
|
41
|
-
color: color(elephant);
|
|
41
|
+
color: om.color(elephant);
|
|
42
42
|
pointer-events: none;
|
|
43
|
-
background-color: color('snow');
|
|
43
|
+
background-color: om.color('snow');
|
|
44
44
|
&::after {
|
|
45
|
-
background-color: color(elephant);
|
|
45
|
+
background-color: om.color(elephant);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&__input {
|
|
51
|
-
@include visually-hidden();
|
|
51
|
+
@include om.visually-hidden();
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&__label {
|
|
55
|
-
@include text(body1);
|
|
55
|
+
@include om.text(body1);
|
|
56
56
|
|
|
57
|
-
color: color(ink);
|
|
57
|
+
color: om.color(ink);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.SearchInput {
|
|
4
|
-
$icon-width: space(7);
|
|
4
|
+
$icon-width: om.space(7);
|
|
5
5
|
|
|
6
6
|
position: relative;
|
|
7
7
|
display: inline-block;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
bottom: 0;
|
|
17
17
|
width: $icon-width;
|
|
18
18
|
height: 100%;
|
|
19
|
-
color: color(cement);
|
|
19
|
+
color: om.color(cement);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&__input--round-borders {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
right: 0;
|
|
38
38
|
|
|
39
39
|
&:hover {
|
|
40
|
-
color: color(ink);
|
|
40
|
+
color: om.color(ink);
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.MultiSelect {
|
|
4
4
|
$self: &;
|
|
@@ -12,27 +12,27 @@
|
|
|
12
12
|
cursor: default;
|
|
13
13
|
|
|
14
14
|
#{$self}__search {
|
|
15
|
-
color: color(fog);
|
|
15
|
+
color: om.color(fog);
|
|
16
16
|
cursor: default;
|
|
17
17
|
|
|
18
18
|
&:hover,
|
|
19
19
|
&:focus {
|
|
20
|
-
border-color: color(elephant);
|
|
21
|
-
background-color: color(noise);
|
|
20
|
+
border-color: om.color(elephant);
|
|
21
|
+
background-color: om.color(noise);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&--error {
|
|
27
|
-
border: 1px solid color(code-red);
|
|
27
|
+
border: 1px solid om.color(code-red);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__search {
|
|
31
|
-
@include input-styles();
|
|
31
|
+
@include om.input-styles();
|
|
32
32
|
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
|
-
padding: spacing(1, 7, 1, 1);
|
|
35
|
+
padding: om.spacing(1, 7, 1, 1);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&__selected-items {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
&__selected-item {
|
|
44
44
|
display: flex;
|
|
45
45
|
align-items: center;
|
|
46
|
-
border: 1px solid color('ink');
|
|
47
|
-
border-radius: space(2);
|
|
48
|
-
margin: space(1);
|
|
49
|
-
padding: space(1);
|
|
46
|
+
border: 1px solid om.color('ink');
|
|
47
|
+
border-radius: om.space(2);
|
|
48
|
+
margin: om.space(1);
|
|
49
|
+
padding: om.space(1);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&__selected-value {
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&__exit {
|
|
57
|
-
margin-left: space(1);
|
|
57
|
+
margin-left: om.space(1);
|
|
58
58
|
cursor: pointer;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&__icon {
|
|
62
62
|
pointer-events: none;
|
|
63
63
|
position: absolute;
|
|
64
|
-
right: space(4);
|
|
64
|
+
right: om.space(4);
|
|
65
65
|
top: 50%;
|
|
66
66
|
transform: translateY(-50%);
|
|
67
67
|
|
|
68
68
|
&--shifted {
|
|
69
|
-
right: space(6);
|
|
69
|
+
right: om.space(6);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.Select {
|
|
4
4
|
$self: &;
|
|
5
5
|
|
|
6
6
|
//ios devices zoom in if inputs are smaller than 16px
|
|
7
|
-
@include breakpoint(sm, $prop: max-width) {
|
|
8
|
-
@include text(h6);
|
|
7
|
+
@include om.breakpoint(sm, $prop: max-width) {
|
|
8
|
+
@include om.text(h6);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
min-height: 2.5625rem;
|
|
@@ -17,35 +17,35 @@
|
|
|
17
17
|
cursor: default;
|
|
18
18
|
|
|
19
19
|
#{$self}__value {
|
|
20
|
-
color: color(fog);
|
|
20
|
+
color: om.color(fog);
|
|
21
21
|
cursor: default;
|
|
22
22
|
|
|
23
23
|
&:hover,
|
|
24
24
|
&:focus {
|
|
25
|
-
border-color: color(elephant);
|
|
26
|
-
background-color: color('snow');
|
|
25
|
+
border-color: om.color(elephant);
|
|
26
|
+
background-color: om.color('snow');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&--error {
|
|
32
|
-
border: 1px solid color(code-red);
|
|
32
|
+
border: 1px solid om.color(code-red);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&__value {
|
|
36
|
-
@include text(body1);
|
|
36
|
+
@include om.text(body1);
|
|
37
37
|
|
|
38
38
|
//ios devices zoom in if inputs are smaller than 16px
|
|
39
|
-
@include breakpoint(sm, $prop: max-width) {
|
|
40
|
-
@include text(h6);
|
|
39
|
+
@include om.breakpoint(sm, $prop: max-width) {
|
|
40
|
+
@include om.text(h6);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
display: block;
|
|
44
44
|
width: 100%;
|
|
45
45
|
text-align: left;
|
|
46
|
-
padding: spacing(2, 7, 2, 3);
|
|
47
|
-
color: color(ink);
|
|
48
|
-
border: 1px solid color(elephant);
|
|
46
|
+
padding: om.spacing(2, 7, 2, 3);
|
|
47
|
+
color: om.color(ink);
|
|
48
|
+
border: 1px solid om.color(elephant);
|
|
49
49
|
overflow: hidden;
|
|
50
50
|
white-space: nowrap;
|
|
51
51
|
text-overflow: ellipsis;
|
|
@@ -53,25 +53,25 @@
|
|
|
53
53
|
cursor: pointer;
|
|
54
54
|
|
|
55
55
|
&:hover {
|
|
56
|
-
border-color: color(cement);
|
|
57
|
-
background-color: color(noise);
|
|
56
|
+
border-color: om.color(cement);
|
|
57
|
+
background-color: om.color(noise);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&:focus {
|
|
61
|
-
border-color: color(cement);
|
|
62
|
-
background-color: color(elephant);
|
|
61
|
+
border-color: om.color(cement);
|
|
62
|
+
background-color: om.color(elephant);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&__icon {
|
|
67
67
|
pointer-events: none;
|
|
68
68
|
position: absolute;
|
|
69
|
-
right: space(4);
|
|
69
|
+
right: om.space(4);
|
|
70
70
|
top: 50%;
|
|
71
71
|
transform: translateY(-50%);
|
|
72
72
|
|
|
73
73
|
&--shifted {
|
|
74
|
-
right: space(6);
|
|
74
|
+
right: om.space(6);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
&--up {
|
|
86
86
|
flex-direction: column-reverse;
|
|
87
87
|
bottom: 100%;
|
|
88
|
-
margin-bottom: space(1);
|
|
88
|
+
margin-bottom: om.space(1);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&--down {
|
|
92
92
|
flex-direction: column;
|
|
93
|
-
margin-top: space(1);
|
|
93
|
+
margin-top: om.space(1);
|
|
94
94
|
top: 100%;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -105,15 +105,15 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
&__selected-color {
|
|
108
|
-
border-color: color(ink);
|
|
108
|
+
border-color: om.color(ink);
|
|
109
109
|
border-style: solid;
|
|
110
110
|
border-radius: 50%;
|
|
111
111
|
border-width: 1px;
|
|
112
112
|
display: inline-block;
|
|
113
|
-
height: space(4);
|
|
113
|
+
height: om.space(4);
|
|
114
114
|
position: absolute;
|
|
115
|
-
right: space(7);
|
|
115
|
+
right: om.space(7);
|
|
116
116
|
transform: translateY(25%);
|
|
117
|
-
width: space(4);
|
|
117
|
+
width: om.space(4);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.SelectOption {
|
|
4
|
-
@include text(body1);
|
|
4
|
+
@include om.text(body1);
|
|
5
5
|
|
|
6
6
|
display: block;
|
|
7
7
|
width: 100%;
|
|
8
8
|
text-align: left;
|
|
9
|
-
padding: spacing(2, 3);
|
|
10
|
-
color: color(ink);
|
|
9
|
+
padding: om.spacing(2, 3);
|
|
10
|
+
color: om.color(ink);
|
|
11
11
|
|
|
12
12
|
&--selected {
|
|
13
13
|
text-decoration: underline;
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
|
|
16
16
|
&:hover,
|
|
17
17
|
&--active {
|
|
18
|
-
background-color: color(noise);
|
|
18
|
+
background-color: om.color(noise);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&--disabled {
|
|
22
|
-
color: color(fog);
|
|
22
|
+
color: om.color(fog);
|
|
23
23
|
cursor: default;
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
|
-
background-color: color('snow');
|
|
26
|
+
background-color: om.color('snow');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.SelectOptions {
|
|
4
|
-
background-color: color('snow');
|
|
5
|
-
border: 1px solid color(elephant);
|
|
4
|
+
background-color: om.color('snow');
|
|
5
|
+
border: 1px solid om.color(elephant);
|
|
6
6
|
|
|
7
7
|
&:focus {
|
|
8
8
|
outline: 0;
|
|
9
|
-
border-color: color(cement);
|
|
9
|
+
border-color: om.color(cement);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&__search {
|
|
13
|
-
margin: space(2);
|
|
13
|
+
margin: om.space(2);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&__none {
|
|
17
|
-
padding: spacing(2, 3);
|
|
17
|
+
padding: om.spacing(2, 3);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__list {
|
|
21
|
-
@include overflow-scroll();
|
|
22
|
-
max-height: space(12);
|
|
21
|
+
@include om.overflow-scroll();
|
|
22
|
+
max-height: om.space(12);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.SelectableButton {
|
|
4
4
|
$self: &;
|
|
5
5
|
|
|
6
|
-
@include text(body2);
|
|
6
|
+
@include om.text(body2);
|
|
7
7
|
text-transform: uppercase;
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
11
11
|
text-align: center;
|
|
12
12
|
max-width: 100%;
|
|
13
|
-
padding: spacing(2, 3);
|
|
13
|
+
padding: om.spacing(2, 3);
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
text-decoration: none;
|
|
16
16
|
user-select: none;
|
|
17
|
-
color: color(ink);
|
|
18
|
-
border: 1px solid color(elephant);
|
|
17
|
+
color: om.color(ink);
|
|
18
|
+
border: 1px solid om.color(elephant);
|
|
19
19
|
background-color: transparent;
|
|
20
20
|
transition: background-color 200ms;
|
|
21
21
|
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
|
|
30
30
|
&--hover,
|
|
31
31
|
&:hover {
|
|
32
|
-
color: color(ink);
|
|
33
|
-
border-color: color(elephant);
|
|
34
|
-
background-color: color(noise);
|
|
32
|
+
color: om.color(ink);
|
|
33
|
+
border-color: om.color(elephant);
|
|
34
|
+
background-color: om.color(noise);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&--selected {
|
|
38
38
|
&,
|
|
39
39
|
&:hover {
|
|
40
|
-
color: color(ink);
|
|
41
|
-
border-color: color(ink);
|
|
40
|
+
color: om.color(ink);
|
|
41
|
+
border-color: om.color(ink);
|
|
42
42
|
background-color: transparent;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
&--unavailable {
|
|
47
47
|
&,
|
|
48
48
|
&:hover {
|
|
49
|
-
color: color(elephant);
|
|
50
|
-
border-color: color(elephant);
|
|
49
|
+
color: om.color(elephant);
|
|
50
|
+
border-color: om.color(elephant);
|
|
51
51
|
background: linear-gradient(
|
|
52
52
|
to bottom right,
|
|
53
53
|
white calc(50% - 1px),
|
|
54
|
-
color(elephant),
|
|
54
|
+
om.color(elephant),
|
|
55
55
|
white calc(50% + 1px)
|
|
56
56
|
);
|
|
57
57
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.SlidingPane {
|
|
4
4
|
position: fixed;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
left: 0;
|
|
9
9
|
right: 0;
|
|
10
10
|
transition: all 500ms ease-out;
|
|
11
|
-
background-color: color('snow');
|
|
11
|
+
background-color: om.color('snow');
|
|
12
12
|
margin-left: 0;
|
|
13
13
|
|
|
14
14
|
&--active {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&__top {
|
|
20
|
-
padding: space(3);
|
|
21
|
-
border-bottom: 1px solid color(elephant);
|
|
22
|
-
box-shadow: 0px -1px 2px color(ink, 0.1);
|
|
20
|
+
padding: om.space(3);
|
|
21
|
+
border-bottom: 1px solid om.color(elephant);
|
|
22
|
+
box-shadow: 0px -1px 2px om.color(ink, 0.1);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&__close {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&__content {
|
|
34
|
-
padding: space(4);
|
|
34
|
+
padding: om.space(4);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&__overlay {
|
|
38
|
-
background-color: color(coal, 0.3);
|
|
38
|
+
background-color: om.color(coal, 0.3);
|
|
39
39
|
top: 0;
|
|
40
40
|
bottom: 0;
|
|
41
41
|
left: 0;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '~@moda/om';
|
|
2
4
|
|
|
3
5
|
.Stack {
|
|
4
|
-
$scale: map
|
|
6
|
+
$scale: map.get(om.$space, 'scale');
|
|
5
7
|
@each $direction in (horizontal, vertical) {
|
|
6
8
|
@each $value in $scale {
|
|
7
|
-
$i: (index($scale, $value) - 1);
|
|
9
|
+
$i: (list.index($scale, $value) - 1);
|
|
8
10
|
&.Stack--#{$direction}-#{$i} {
|
|
9
|
-
@include stack($i, $direction);
|
|
11
|
+
@include om.stack($i, $direction);
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.Tab {
|
|
4
|
-
@include text(eyebrow);
|
|
4
|
+
@include om.text(eyebrow);
|
|
5
5
|
|
|
6
|
-
padding: spacing(4, 0);
|
|
6
|
+
padding: om.spacing(4, 0);
|
|
7
7
|
border-bottom: 2px solid transparent;
|
|
8
|
-
color: color(cement);
|
|
8
|
+
color: om.color(cement);
|
|
9
9
|
text-align: left;
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
|
|
12
12
|
&--active {
|
|
13
|
-
color: color(ink);
|
|
14
|
-
border-bottom: 2px solid color(ink);
|
|
13
|
+
color: om.color(ink);
|
|
14
|
+
border-bottom: 2px solid om.color(ink);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&:active,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.Tag {
|
|
4
|
-
@include stack(2, $direction: horizontal);
|
|
5
|
-
@include text(body1);
|
|
4
|
+
@include om.stack(2, $direction: horizontal);
|
|
5
|
+
@include om.text(body1);
|
|
6
6
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
|
-
padding: spacing(2);
|
|
10
|
-
border: 1px solid color(elephant);
|
|
9
|
+
padding: om.spacing(2);
|
|
10
|
+
border: 1px solid om.color(elephant);
|
|
11
11
|
white-space: nowrap;
|
|
12
12
|
|
|
13
13
|
&:hover,
|
|
14
14
|
&:focus {
|
|
15
|
-
border-color: color(ink);
|
|
15
|
+
border-color: om.color(ink);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
&--disabled {
|
|
19
|
-
color: color(fog);
|
|
19
|
+
color: om.color(fog);
|
|
20
20
|
|
|
21
21
|
&:hover,
|
|
22
22
|
&:focus {
|
|
23
|
-
border-color: color(elephant);
|
|
23
|
+
border-color: om.color(elephant);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '~@moda/om';
|
|
2
3
|
|
|
3
4
|
.Text {
|
|
4
|
-
$treatments: map
|
|
5
|
+
$treatments: map.get(om.$typography, 'text-treatments');
|
|
5
6
|
@each $name, $_values in $treatments {
|
|
6
7
|
&--#{$name} {
|
|
7
|
-
@include text($name);
|
|
8
|
+
@include om.text($name);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
|