@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,18 +1,18 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.Toast {
|
|
4
|
-
color: color('snow');
|
|
5
|
-
padding: spacing(3);
|
|
4
|
+
color: om.color('snow');
|
|
5
|
+
padding: om.spacing(3);
|
|
6
6
|
|
|
7
7
|
&--success {
|
|
8
|
-
background-color: color(money-good);
|
|
8
|
+
background-color: om.color(money-good);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&--warning {
|
|
12
|
-
background-color: color(burnt-orange);
|
|
12
|
+
background-color: om.color(burnt-orange);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&--error {
|
|
16
|
-
background-color: color(code-red);
|
|
16
|
+
background-color: om.color(code-red);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.VerticalDivider {
|
|
4
|
-
border-left: 1px solid color(ink);
|
|
4
|
+
border-left: 1px solid om.color(ink);
|
|
5
5
|
|
|
6
6
|
&--double {
|
|
7
7
|
width: 0.175rem;
|
|
8
|
-
border-right: 1px solid color(ink);
|
|
8
|
+
border-right: 1px solid om.color(ink);
|
|
9
9
|
}
|
|
10
10
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -19,6 +19,10 @@ export * from './Label';
|
|
|
19
19
|
export * from './Loading';
|
|
20
20
|
export * from './LoadingBalls';
|
|
21
21
|
export * from './LoadingShapes';
|
|
22
|
+
export * from './LoadingShapesPinkGreen';
|
|
23
|
+
export * from './LoadingItemsPinkGreen';
|
|
24
|
+
export * from './LoadingShapesLavenderBlue';
|
|
25
|
+
export * from './LoadingItemsLavenderBlue';
|
|
22
26
|
export * from './Modal';
|
|
23
27
|
export * from './ModalOverlay';
|
|
24
28
|
export * from './NavigationPreventer';
|
package/src/index.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@forward '~@moda/tokens';
|
|
2
2
|
|
|
3
|
-
@
|
|
4
|
-
@
|
|
3
|
+
@forward './mixins/mixins';
|
|
4
|
+
@forward './functions/functions';
|
package/src/mixins/_mixins.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
1
|
+
@forward 'stack/stack';
|
|
2
|
+
@forward 'font-smoothing/font-smoothing';
|
|
3
|
+
@forward 'global-styles/global-styles';
|
|
4
|
+
@forward 'input-styles/input-styles';
|
|
5
|
+
@forward 'visually-hidden/visually-hidden';
|
|
6
|
+
@forward 'overflow-scroll/overflow-scroll';
|
|
7
|
+
@forward 'thin-underline/thin-underline';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'font-smoothing';
|
|
2
2
|
|
|
3
3
|
.Story.font-smoothing {
|
|
4
4
|
&--antialiased {
|
|
5
|
-
@include font-smoothing(antialiased);
|
|
5
|
+
@include font-smoothing.font-smoothing(antialiased);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&--subpixel {
|
|
9
|
-
@include font-smoothing(subpixel);
|
|
9
|
+
@include font-smoothing.font-smoothing(subpixel);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '~@moda/tokens';
|
|
3
|
+
@use '../font-smoothing/font-smoothing';
|
|
3
4
|
|
|
4
5
|
@mixin global-styles() {
|
|
5
6
|
html {
|
|
6
7
|
box-sizing: border-box;
|
|
7
|
-
font-size: map
|
|
8
|
+
font-size: map.get(tokens.$typography, 'root-font-size');
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
*,
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
|
|
45
46
|
body,
|
|
46
47
|
input {
|
|
47
|
-
@include font-smoothing(antialiased);
|
|
48
|
+
@include font-smoothing.font-smoothing(antialiased);
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
// :focus-visible polyfill
|
|
@@ -54,6 +55,6 @@
|
|
|
54
55
|
}
|
|
55
56
|
// custom outlines on :focus-visible
|
|
56
57
|
.focus-visible {
|
|
57
|
-
outline: 2px solid color(burnt-orange);
|
|
58
|
+
outline: 2px solid tokens.color(burnt-orange);
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
@use '~@moda/tokens';
|
|
2
|
+
|
|
1
3
|
@mixin input-styles() {
|
|
2
|
-
@include text(body1);
|
|
4
|
+
@include tokens.text(body1);
|
|
3
5
|
|
|
4
6
|
//ios devices zoom in if inputs are smaller than 16px
|
|
5
|
-
@include breakpoint(sm, $prop: max-width) {
|
|
6
|
-
@include text(h6);
|
|
7
|
+
@include tokens.breakpoint(sm, $prop: max-width) {
|
|
8
|
+
@include tokens.text(h6);
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
appearance: none;
|
|
10
12
|
line-height: 1;
|
|
11
13
|
width: 100%;
|
|
12
|
-
padding: spacing(3, 4);
|
|
13
|
-
border: 1px solid color(elephant);
|
|
14
|
-
background-color: color('snow');
|
|
14
|
+
padding: tokens.spacing(3, 4);
|
|
15
|
+
border: 1px solid tokens.color(elephant);
|
|
16
|
+
background-color: tokens.color('snow');
|
|
15
17
|
border-radius: 0;
|
|
16
18
|
|
|
17
19
|
&::placeholder {
|
|
@@ -21,24 +23,24 @@
|
|
|
21
23
|
&--focus,
|
|
22
24
|
&:focus {
|
|
23
25
|
outline: none;
|
|
24
|
-
border-color: color(ink);
|
|
26
|
+
border-color: tokens.color(ink);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
&--disabled,
|
|
28
30
|
&:disabled {
|
|
29
|
-
color: color(elephant);
|
|
30
|
-
border-color: color(elephant);
|
|
31
|
-
background-color: color(noise);
|
|
31
|
+
color: tokens.color(elephant);
|
|
32
|
+
border-color: tokens.color(elephant);
|
|
33
|
+
background-color: tokens.color(noise);
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
&--valid {
|
|
35
|
-
border-color: color(money-good);
|
|
37
|
+
border-color: tokens.color(money-good);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
&--error {
|
|
39
41
|
&,
|
|
40
42
|
&:focus {
|
|
41
|
-
border-color: color(code-red);
|
|
43
|
+
border-color: tokens.color(code-red);
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'overflow-scroll';
|
|
2
2
|
|
|
3
3
|
.Story.overflow-scroll {
|
|
4
|
-
@include overflow-scroll();
|
|
4
|
+
@include overflow-scroll.overflow-scroll();
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.Story.overflow-scroll-x {
|
|
8
|
-
@include overflow-scroll(x);
|
|
8
|
+
@include overflow-scroll.overflow-scroll(x);
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/tokens';
|
|
2
2
|
|
|
3
3
|
@mixin stack($index: 4, $direction: vertical) {
|
|
4
4
|
display: flex;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
> * + * {
|
|
16
|
-
margin-top: space($index);
|
|
16
|
+
margin-top: tokens.space($index);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
> .Overlay {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
> * + * {
|
|
33
|
-
margin-left: space($index);
|
|
33
|
+
margin-left: tokens.space($index);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
> .Overlay {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use './stack';
|
|
2
2
|
|
|
3
3
|
.Story.Mixins.stack {
|
|
4
|
-
@include stack(4);
|
|
4
|
+
@include stack.stack(4);
|
|
5
5
|
|
|
6
6
|
> * {
|
|
7
7
|
background-color: yellow;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&--horizontal {
|
|
11
|
-
@include stack(6, $direction: horizontal);
|
|
11
|
+
@include stack.stack(6, $direction: horizontal);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.State {
|
|
4
|
-
border: 1px dotted color(fog);
|
|
5
|
-
padding: spacing(2);
|
|
4
|
+
border: 1px dotted om.color(fog);
|
|
5
|
+
padding: om.spacing(2);
|
|
6
6
|
|
|
7
7
|
&__props {
|
|
8
8
|
display: block;
|
|
9
|
-
margin-top: space(2);
|
|
9
|
+
margin-top: om.space(2);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '~@moda/om';
|
|
2
2
|
|
|
3
3
|
.StatesProps {
|
|
4
|
-
@include text(body1, $font: code);
|
|
4
|
+
@include om.text(body1, $font: code);
|
|
5
5
|
|
|
6
|
-
padding-top: space(2);
|
|
7
|
-
color: color(fog);
|
|
8
|
-
border-top: 1px dotted color(elephant);
|
|
6
|
+
padding-top: om.space(2);
|
|
7
|
+
color: om.color(fog);
|
|
8
|
+
border-top: 1px dotted om.color(elephant);
|
|
9
9
|
|
|
10
10
|
> strong {
|
|
11
11
|
text-decoration: underline;
|
|
12
|
-
color: color(ink);
|
|
12
|
+
color: om.color(ink);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&::before {
|
|
16
16
|
content: '<';
|
|
17
|
-
color: color(elephant);
|
|
17
|
+
color: om.color(elephant);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&::after {
|
|
21
21
|
content: '/>';
|
|
22
|
-
color: color(elephant);
|
|
22
|
+
color: om.color(elephant);
|
|
23
23
|
}
|
|
24
24
|
}
|