@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.
Files changed (119) hide show
  1. package/README.md +1 -2
  2. package/dist/index.cjs.js +436 -2
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.js +425 -3
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems.d.ts +2 -0
  7. package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems.stories.d.ts +6 -0
  8. package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems1.d.ts +3 -0
  9. package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems2.d.ts +3 -0
  10. package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems3.d.ts +3 -0
  11. package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems4.d.ts +3 -0
  12. package/dist/src/components/LoadingItemsLavenderBlue/LoadingItems5.d.ts +3 -0
  13. package/dist/src/components/LoadingItemsLavenderBlue/index.d.ts +5 -0
  14. package/dist/src/components/LoadingItemsPinkGreen/LoadingItems.d.ts +2 -0
  15. package/dist/src/components/LoadingItemsPinkGreen/LoadingItems.stories.d.ts +6 -0
  16. package/dist/src/components/LoadingItemsPinkGreen/LoadingItems1.d.ts +3 -0
  17. package/dist/src/components/LoadingItemsPinkGreen/LoadingItems2.d.ts +3 -0
  18. package/dist/src/components/LoadingItemsPinkGreen/LoadingItems3.d.ts +3 -0
  19. package/dist/src/components/LoadingItemsPinkGreen/LoadingItems4.d.ts +3 -0
  20. package/dist/src/components/LoadingItemsPinkGreen/LoadingItems5.d.ts +3 -0
  21. package/dist/src/components/LoadingItemsPinkGreen/index.d.ts +5 -0
  22. package/dist/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.d.ts +3 -0
  23. package/dist/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.stories.d.ts +6 -0
  24. package/dist/src/components/LoadingShapesLavenderBlue/index.d.ts +1 -0
  25. package/dist/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.d.ts +3 -0
  26. package/dist/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.stories.d.ts +6 -0
  27. package/dist/src/components/LoadingShapesPinkGreen/index.d.ts +1 -0
  28. package/dist/src/components/index.d.ts +4 -0
  29. package/dist/styles.css +1 -1
  30. package/index.scss +1 -0
  31. package/package.json +4 -3
  32. package/src/components/AspectRatioBox/AspectRatioBox.scss +1 -1
  33. package/src/components/Badge/Badge.scss +17 -17
  34. package/src/components/Breadcrumbs/Breadcrumb/Breadcrumb.scss +5 -5
  35. package/src/components/Breadcrumbs/Breadcrumbs.scss +2 -2
  36. package/src/components/Breakpoint/Breakpoint.scss +9 -7
  37. package/src/components/Button/Button.scss +45 -44
  38. package/src/components/Checkbox/Checkbox.scss +11 -11
  39. package/src/components/Clickable/Clickable.scss +3 -3
  40. package/src/components/ColorSwatch/ColorSwatch.scss +9 -9
  41. package/src/components/Constrain/Constrain.scss +9 -8
  42. package/src/components/Constrain/ExceedConstrain.scss +7 -7
  43. package/src/components/ControlLink/ControlLink.scss +6 -6
  44. package/src/components/DefinitionList/DefinitionList.scss +5 -5
  45. package/src/components/Dialog/Dialog.scss +4 -4
  46. package/src/components/Divider/Divider.scss +5 -5
  47. package/src/components/Expandable/Expandable.scss +17 -17
  48. package/src/components/Field/Field.scss +7 -7
  49. package/src/components/Label/Label.scss +4 -4
  50. package/src/components/Loading/Loading.scss +4 -4
  51. package/src/components/LoadingBalls/LoadingBalls.scss +2 -2
  52. package/src/components/LoadingItemsLavenderBlue/LoadingItems.stories.tsx +15 -0
  53. package/src/components/LoadingItemsLavenderBlue/LoadingItems.tsx +3 -0
  54. package/src/components/LoadingItemsLavenderBlue/LoadingItems1.tsx +28 -0
  55. package/src/components/LoadingItemsLavenderBlue/LoadingItems2.tsx +28 -0
  56. package/src/components/LoadingItemsLavenderBlue/LoadingItems3.tsx +28 -0
  57. package/src/components/LoadingItemsLavenderBlue/LoadingItems4.tsx +28 -0
  58. package/src/components/LoadingItemsLavenderBlue/LoadingItems5.tsx +28 -0
  59. package/src/components/LoadingItemsLavenderBlue/index.ts +5 -0
  60. package/src/components/LoadingItemsPinkGreen/LoadingItems.stories.tsx +15 -0
  61. package/src/components/LoadingItemsPinkGreen/LoadingItems.tsx +3 -0
  62. package/src/components/LoadingItemsPinkGreen/LoadingItems1.tsx +28 -0
  63. package/src/components/LoadingItemsPinkGreen/LoadingItems2.tsx +28 -0
  64. package/src/components/LoadingItemsPinkGreen/LoadingItems3.tsx +28 -0
  65. package/src/components/LoadingItemsPinkGreen/LoadingItems4.tsx +28 -0
  66. package/src/components/LoadingItemsPinkGreen/LoadingItems5.tsx +28 -0
  67. package/src/components/LoadingItemsPinkGreen/index.ts +5 -0
  68. package/src/components/LoadingShapes/LoadingShapes.scss +2 -2
  69. package/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.scss +9 -0
  70. package/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.stories.tsx +11 -0
  71. package/src/components/LoadingShapesLavenderBlue/LoadingShapesLavenderBlue.tsx +48 -0
  72. package/src/components/LoadingShapesLavenderBlue/index.ts +1 -0
  73. package/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.scss +9 -0
  74. package/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.stories.tsx +11 -0
  75. package/src/components/LoadingShapesPinkGreen/LoadingShapesPinkGreen.tsx +42 -0
  76. package/src/components/LoadingShapesPinkGreen/index.ts +1 -0
  77. package/src/components/Modal/Modal.scss +1 -1
  78. package/src/components/ModalOverlay/ModalOverlay.scss +6 -6
  79. package/src/components/Overlay/Overlay.scss +4 -4
  80. package/src/components/Paginator/Paginator.scss +10 -10
  81. package/src/components/PasswordInput/PasswordInput.scss +4 -4
  82. package/src/components/Popover/Popover.scss +9 -9
  83. package/src/components/PromoBanner/PromoBanner.scss +9 -9
  84. package/src/components/RadioButton/RadioButton.scss +14 -14
  85. package/src/components/SearchInput/SearchInput.scss +4 -4
  86. package/src/components/Select/MultiSelect.scss +14 -14
  87. package/src/components/Select/Select.scss +25 -25
  88. package/src/components/Select/SelectOption.scss +7 -7
  89. package/src/components/Select/SelectOptions.scss +8 -8
  90. package/src/components/SelectableButton/SelectableButton.scss +13 -13
  91. package/src/components/SlidingPane/SlidingPane.scss +7 -7
  92. package/src/components/Stack/Stack.scss +6 -4
  93. package/src/components/Tabs/Tab.scss +6 -6
  94. package/src/components/Tabs/TabList.scss +3 -3
  95. package/src/components/Tabs/TabPanels.scss +2 -2
  96. package/src/components/Tag/Tag.scss +8 -8
  97. package/src/components/Text/Text.scss +4 -3
  98. package/src/components/TextInput/TextInput.scss +2 -2
  99. package/src/components/Textarea/Textarea.scss +3 -3
  100. package/src/components/Toast/Toast.scss +6 -6
  101. package/src/components/VerticalDivider/VerticalDivider.scss +3 -3
  102. package/src/components/index.ts +4 -0
  103. package/src/index.scss +3 -3
  104. package/src/mixins/_mixins.scss +7 -7
  105. package/src/mixins/font-smoothing/_font-smoothing.scss +0 -2
  106. package/src/mixins/font-smoothing/font-smoothing.stories.scss +3 -3
  107. package/src/mixins/global-styles/_global-styles.scss +6 -5
  108. package/src/mixins/input-styles/_input-styles.scss +14 -12
  109. package/src/mixins/overflow-scroll/_overflow-scroll.scss +0 -2
  110. package/src/mixins/overflow-scroll/overflow-scroll.stories.scss +3 -3
  111. package/src/mixins/stack/_stack.scss +3 -3
  112. package/src/mixins/stack/stack.stories.scss +3 -3
  113. package/src/mixins/thin-underline/_thin-underline.scss +0 -2
  114. package/src/mixins/thin-underline/thin-underline.stories.scss +2 -2
  115. package/src/mixins/visually-hidden/_visually-hidden.scss +0 -2
  116. package/src/mixins/visually-hidden/visually-hidden.stories.scss +2 -2
  117. package/src/utilities/States/State.scss +4 -4
  118. package/src/utilities/States/States.scss +2 -2
  119. package/src/utilities/States/StatesProps.scss +8 -8
@@ -1,15 +1,15 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Button {
4
4
  $self: &;
5
5
 
6
- @include text(eyebrow);
6
+ @include om.text(eyebrow);
7
7
  appearance: none;
8
8
  display: inline-flex;
9
9
  align-items: center;
10
10
  justify-content: center;
11
11
  text-align: center;
12
- padding: spacing(4, 7);
12
+ padding: om.spacing(4, 7);
13
13
  border: 1px solid;
14
14
  cursor: pointer;
15
15
  text-decoration: none;
@@ -17,105 +17,106 @@
17
17
 
18
18
  // Insert space after icon if present
19
19
  > * {
20
- margin-right: space(2);
20
+ margin-right: om.space(2);
21
21
  }
22
22
 
23
23
  &,
24
24
  &--primary {
25
- color: color('snow');
26
- border-color: color(ink);
27
- background-color: color(ink);
28
- @include font-smoothing(subpixel);
25
+ color: om.color('snow');
26
+ border-color: om.color(ink);
27
+ background-color: om.color(ink);
28
+ @include om.font-smoothing(subpixel);
29
29
 
30
30
  &#{$self}--hover,
31
31
  &:hover {
32
- color: color('snow');
33
- border-color: color(fog, 0.32);
34
- background: linear-gradient(0deg, color(fog, 0.32), color(fog, 0.32)), color(ink);
32
+ color: om.color('snow');
33
+ border-color: om.color(fog, 0.32);
34
+ background: linear-gradient(0deg, om.color(fog, 0.32), om.color(fog, 0.32)), om.color(ink);
35
35
  }
36
36
 
37
37
  &#{$self}--focus,
38
38
  &:focus {
39
- color: color('snow');
40
- border-color: color(fog, 0.12);
41
- background: linear-gradient(0deg, color('snow', 0.12), color('snow', 0.12)), color(ink);
39
+ color: om.color('snow');
40
+ border-color: om.color(fog, 0.12);
41
+ background: linear-gradient(0deg, om.color('snow', 0.12), om.color('snow', 0.12)),
42
+ om.color(ink);
42
43
  }
43
44
 
44
45
  &#{$self}--disabled,
45
46
  &:disabled {
46
- color: color(ink);
47
- border-color: color(noise);
48
- background-color: color(noise);
47
+ color: om.color(ink);
48
+ border-color: om.color(noise);
49
+ background-color: om.color(noise);
49
50
  cursor: default;
50
51
  pointer-events: none;
51
52
  }
52
53
  }
53
54
 
54
55
  &--secondary {
55
- color: color(ink);
56
- border-color: color(ink);
57
- background-color: color('snow');
56
+ color: om.color(ink);
57
+ border-color: om.color(ink);
58
+ background-color: om.color('snow');
58
59
 
59
60
  &#{$self}--hover,
60
61
  &:hover {
61
- color: color(ink);
62
- border-color: color(ink);
63
- background-color: color(noise, 0.32);
62
+ color: om.color(ink);
63
+ border-color: om.color(ink);
64
+ background-color: om.color(noise, 0.32);
64
65
  }
65
66
 
66
67
  &#{$self}--focus,
67
68
  &:focus {
68
- color: color(ink);
69
- border-color: color(ink);
70
- background-color: color(noise);
69
+ color: om.color(ink);
70
+ border-color: om.color(ink);
71
+ background-color: om.color(noise);
71
72
  }
72
73
 
73
74
  &#{$self}--disabled,
74
75
  &:disabled {
75
- color: color(cement);
76
- border-color: color(fog);
77
- background-color: color(noise);
76
+ color: om.color(cement);
77
+ border-color: om.color(fog);
78
+ background-color: om.color(noise);
78
79
  cursor: default;
79
80
  pointer-events: none;
80
81
  }
81
82
  }
82
83
 
83
84
  &--tertiary {
84
- @include text(body1);
85
+ @include om.text(body1);
85
86
 
86
- padding: spacing(2, 3);
87
- color: color(ink);
88
- border-color: color(elephant);
89
- background-color: color('snow');
87
+ padding: om.spacing(2, 3);
88
+ color: om.color(ink);
89
+ border-color: om.color(elephant);
90
+ background-color: om.color('snow');
90
91
  text-transform: none;
91
92
  line-height: 1.4;
92
93
 
93
94
  &#{$self}--hover,
94
95
  &:hover {
95
- color: color(ink);
96
- border-color: color(elephant);
97
- background-color: color(noise, 0.32);
96
+ color: om.color(ink);
97
+ border-color: om.color(elephant);
98
+ background-color: om.color(noise, 0.32);
98
99
  }
99
100
 
100
101
  &#{$self}--focus,
101
102
  &:focus {
102
- color: color(ink);
103
- border-color: color(elephant);
104
- background-color: color(noise);
103
+ color: om.color(ink);
104
+ border-color: om.color(elephant);
105
+ background-color: om.color(noise);
105
106
  }
106
107
 
107
108
  &#{$self}--disabled,
108
109
  &:disabled {
109
- color: color(cement);
110
- border-color: color(fog);
111
- background-color: color(noise);
110
+ color: om.color(cement);
111
+ border-color: om.color(fog);
112
+ background-color: om.color(noise);
112
113
  cursor: default;
113
114
  pointer-events: none;
114
115
  }
115
116
  }
116
117
 
117
118
  &--elevated {
118
- box-shadow: 0px 1px 4px color(coal, 0.09);
119
+ box-shadow: 0px 1px 4px om.color(coal, 0.09);
119
120
  }
120
121
 
121
122
  &--chip {
@@ -1,30 +1,30 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Checkbox {
4
- $checkbox-size: space(4);
5
- $checkbox-check-offset: calc(space(1) / 2);
4
+ $checkbox-size: om.space(4);
5
+ $checkbox-check-offset: calc(om.space(1) / 2);
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: flex-start;
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;
17
17
  width: $checkbox-size;
18
18
  height: $checkbox-size;
19
- margin-top: calc(space(1) / 2);
19
+ margin-top: calc(om.space(1) / 2);
20
20
  flex-shrink: 0;
21
21
  border: 1px solid;
22
22
 
23
23
  &--disabled {
24
- color: color(elephant);
24
+ color: om.color(elephant);
25
25
  pointer-events: none;
26
26
  &::after {
27
- background-color: color(elephant);
27
+ background-color: om.color(elephant);
28
28
  }
29
29
  }
30
30
  }
@@ -34,12 +34,12 @@
34
34
  }
35
35
 
36
36
  &__input {
37
- @include visually-hidden();
37
+ @include om.visually-hidden();
38
38
  }
39
39
 
40
40
  &__label {
41
- @include text(body1);
41
+ @include om.text(body1);
42
42
 
43
- color: color(ink);
43
+ color: om.color(ink);
44
44
  }
45
45
  }
@@ -1,7 +1,7 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Clickable {
4
- @include text(body1);
4
+ @include om.text(body1);
5
5
 
6
6
  &:not(&--disabled) {
7
7
  cursor: pointer;
@@ -11,7 +11,7 @@
11
11
  background-color: transparent;
12
12
  border: 0;
13
13
  color: inherit;
14
- font-size: __dangerously-get-font-size__(2);
14
+ font-size: om.dangerously-get-font-size(2);
15
15
  padding: 0;
16
16
  text-decoration: none;
17
17
  white-space: nowrap;
@@ -1,11 +1,11 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .ColorSwatch {
4
4
  $self: &;
5
5
  $outer-border-color: rgba(black, 0.5);
6
- $on-sale-dot-size: space(1);
7
- $default-size: space(6);
8
- $small-size: space(5);
6
+ $on-sale-dot-size: om.space(1);
7
+ $default-size: om.space(6);
8
+ $small-size: om.space(5);
9
9
 
10
10
  position: relative;
11
11
  width: $default-size;
@@ -33,7 +33,7 @@
33
33
  height: 33%;
34
34
  transform: translate(-50%, -50%);
35
35
  border-radius: 50%;
36
- background-color: color('snow');
36
+ background-color: om.color('snow');
37
37
  z-index: 1;
38
38
  }
39
39
 
@@ -60,7 +60,7 @@
60
60
 
61
61
  &:hover,
62
62
  &--hover {
63
- border-color: color(elephant);
63
+ border-color: om.color(elephant);
64
64
 
65
65
  // Inset dot
66
66
  &::before {
@@ -113,7 +113,7 @@
113
113
  width: $on-sale-dot-size;
114
114
  height: $on-sale-dot-size;
115
115
  border-radius: 50%;
116
- background-color: color('code-red');
116
+ background-color: om.color('code-red');
117
117
  }
118
118
  }
119
119
 
@@ -125,11 +125,11 @@
125
125
  &--light {
126
126
  // Inset dot
127
127
  &::before {
128
- background-color: color(ink);
128
+ background-color: om.color(ink);
129
129
  }
130
130
 
131
131
  #{$self}__chip {
132
- border: 1px solid color(ink, 0.25);
132
+ border: 1px solid om.color(ink, 0.25);
133
133
  }
134
134
  }
135
135
  }
@@ -1,22 +1,23 @@
1
- @import '~om';
1
+ @use 'sass:map';
2
+ @use '~@moda/om';
2
3
 
3
4
  .Constrain {
4
5
  width: 90%;
5
6
  margin: 0 auto;
6
- max-width: map-get($breakpoints, xl);
7
+ max-width: map.get(om.$breakpoints, xl);
7
8
 
8
- @include breakpoint(md, $prop: max-width) {
9
+ @include om.breakpoint(md, $prop: max-width) {
9
10
  width: 100%;
10
- padding: spacing(0, 6);
11
+ padding: om.spacing(0, 6);
11
12
  }
12
13
 
13
- @include breakpoint(sm, $prop: max-width) {
14
+ @include om.breakpoint(sm, $prop: max-width) {
14
15
  width: 100%;
15
- padding: spacing(0, 4);
16
+ padding: om.spacing(0, 4);
16
17
  }
17
18
 
18
- @include breakpoint(xs, $prop: max-width) {
19
+ @include om.breakpoint(xs, $prop: max-width) {
19
20
  width: 100%;
20
- padding: spacing(0, 2);
21
+ padding: om.spacing(0, 2);
21
22
  }
22
23
  }
@@ -1,15 +1,15 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .ExceedConstrain {
4
- @include breakpoint(md, $prop: max-width) {
5
- margin: 0 -#{space(6)};
4
+ @include om.breakpoint(md, $prop: max-width) {
5
+ margin: 0 -#{om.space(6)};
6
6
  }
7
7
 
8
- @include breakpoint(sm, $prop: max-width) {
9
- margin: 0 -#{space(4)};
8
+ @include om.breakpoint(sm, $prop: max-width) {
9
+ margin: 0 -#{om.space(4)};
10
10
  }
11
11
 
12
- @include breakpoint(xs, $prop: max-width) {
13
- margin: 0 -#{space(2)};
12
+ @include om.breakpoint(xs, $prop: max-width) {
13
+ margin: 0 -#{om.space(2)};
14
14
  }
15
15
  }
@@ -1,25 +1,25 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .ControlLink {
4
4
  $self: &;
5
- @include text(body1);
5
+ @include om.text(body1);
6
6
 
7
7
  display: inline-flex;
8
8
 
9
9
  &:hover,
10
10
  &:focus {
11
11
  &:not(#{$self}--disabled) {
12
- @include thin-underline();
13
- color: color(ink);
12
+ @include om.thin-underline();
13
+ color: om.color(ink);
14
14
  opacity: 0.7;
15
15
  }
16
16
  }
17
17
 
18
18
  &--underlined {
19
- @include thin-underline();
19
+ @include om.thin-underline();
20
20
  }
21
21
 
22
22
  &--disabled {
23
- color: color(fog);
23
+ color: om.color(fog);
24
24
  }
25
25
  }
@@ -1,7 +1,7 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .DefinitionList {
4
- @include text(body1);
4
+ @include om.text(body1);
5
5
  margin: 0;
6
6
 
7
7
  > dt,
@@ -11,14 +11,14 @@
11
11
  }
12
12
 
13
13
  > dt {
14
- color: color(ink);
15
- margin-right: space(2);
14
+ color: om.color(ink);
15
+ margin-right: om.space(2);
16
16
  }
17
17
 
18
18
  > dd {
19
19
  &,
20
20
  > a {
21
- color: color(cement);
21
+ color: om.color(cement);
22
22
  }
23
23
 
24
24
  > a {
@@ -1,15 +1,15 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Dialog {
4
4
  max-width: 90vw;
5
- background-color: color('snow');
5
+ background-color: om.color('snow');
6
6
  text-align: center;
7
7
 
8
8
  &__content {
9
- padding: spacing(6);
9
+ padding: om.spacing(6);
10
10
  }
11
11
 
12
- @include breakpoint(md) {
12
+ @include om.breakpoint(md) {
13
13
  max-width: 40rem;
14
14
  }
15
15
  }
@@ -1,4 +1,4 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Divider {
4
4
  $self: &;
@@ -12,14 +12,14 @@
12
12
  content: '';
13
13
  flex: 1;
14
14
  border: none;
15
- background-color: color(elephant);
15
+ background-color: om.color(elephant);
16
16
  height: 1px;
17
17
  width: 50%;
18
18
  }
19
19
 
20
20
  &__text {
21
21
  width: auto;
22
- padding: 0 space(4);
22
+ padding: 0 om.space(4);
23
23
  }
24
24
 
25
25
  &--two-line {
@@ -28,8 +28,8 @@
28
28
  $space-between-lines: 0.175rem;
29
29
  $offset: calc($space-between-lines / 2);
30
30
  transform: translateY(calc(-#{$offset}));
31
- background-color: color(ink);
32
- box-shadow: 0 $space-between-lines 0 0 color(ink);
31
+ background-color: om.color(ink);
32
+ box-shadow: 0 $space-between-lines 0 0 om.color(ink);
33
33
  }
34
34
  }
35
35
 
@@ -1,4 +1,4 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Expandable {
4
4
  $self: &;
@@ -7,12 +7,12 @@
7
7
  flex-direction: column;
8
8
 
9
9
  &__name {
10
- @include text(body1);
10
+ @include om.text(body1);
11
11
 
12
12
  position: relative;
13
13
  text-align: left;
14
14
  cursor: pointer;
15
- padding: spacing(3, 5, 3, 0);
15
+ padding: om.spacing(3, 5, 3, 0);
16
16
  user-select: none;
17
17
  overflow: hidden;
18
18
  text-overflow: ellipsis;
@@ -20,28 +20,28 @@
20
20
 
21
21
  &__icon {
22
22
  height: 100%;
23
- padding-top: space(4);
23
+ padding-top: om.space(4);
24
24
  position: absolute;
25
25
  right: 0;
26
26
  top: 0;
27
27
  }
28
28
 
29
29
  &__contents {
30
- @include stack(2);
31
- @include text(body1);
30
+ @include om.stack(2);
31
+ @include om.text(body1);
32
32
 
33
- padding-bottom: space(3);
33
+ padding-bottom: om.space(3);
34
34
  display: none;
35
- color: color(ink);
35
+ color: om.color(ink);
36
36
 
37
37
  ul,
38
38
  ol {
39
- padding-left: space(4);
39
+ padding-left: om.space(4);
40
40
  list-style: disc;
41
41
  }
42
42
 
43
43
  a {
44
- color: color(ink);
44
+ color: om.color(ink);
45
45
  }
46
46
  }
47
47
 
@@ -56,8 +56,8 @@
56
56
  right: 0;
57
57
  transform: translateY(-50%);
58
58
  height: 1px;
59
- width: space(4);
60
- background-color: color(ink);
59
+ width: om.space(4);
60
+ background-color: om.color(ink);
61
61
  }
62
62
 
63
63
  &::before {
@@ -80,22 +80,22 @@
80
80
  }
81
81
 
82
82
  &--with-border {
83
- border-top: 1px solid color(noise);
83
+ border-top: 1px solid om.color(noise);
84
84
  }
85
85
 
86
86
  &--dark-background {
87
- border-color: color(cement);
88
- color: color('snow');
87
+ border-color: om.color(cement);
88
+ color: om.color('snow');
89
89
 
90
90
  #{$self}__name {
91
91
  &::before,
92
92
  &::after {
93
- background-color: color('snow');
93
+ background-color: om.color('snow');
94
94
  }
95
95
  }
96
96
 
97
97
  #{$self}__contents {
98
- color: color('snow');
98
+ color: om.color('snow');
99
99
  }
100
100
  }
101
101
  }
@@ -1,7 +1,7 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Field {
4
- @include stack(1);
4
+ @include om.stack(1);
5
5
 
6
6
  &__context {
7
7
  position: relative;
@@ -10,23 +10,23 @@
10
10
  &__icon {
11
11
  position: absolute;
12
12
  top: 50%;
13
- right: space(2);
14
- color: color(code-red);
13
+ right: om.space(2);
14
+ color: om.color(code-red);
15
15
  transform: translateY(-50%);
16
16
  pointer-events: none;
17
17
  }
18
18
 
19
19
  &__label,
20
20
  &__error {
21
- @include text(body1);
21
+ @include om.text(body1);
22
22
  }
23
23
 
24
24
  &__label {
25
- color: color(cement);
25
+ color: om.color(cement);
26
26
  }
27
27
 
28
28
  &__error {
29
- color: color(code-red);
29
+ color: om.color(code-red);
30
30
  // Offset error border-thickness
31
31
  padding-top: 1px;
32
32
  }
@@ -1,11 +1,11 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Label {
4
- @include text(body1);
4
+ @include om.text(body1);
5
5
 
6
- color: color(cement);
6
+ color: om.color(cement);
7
7
 
8
8
  &--hidden {
9
- @include visually-hidden();
9
+ @include om.visually-hidden();
10
10
  }
11
11
  }
@@ -1,7 +1,7 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .Loading {
4
- padding: space(5);
4
+ padding: om.space(5);
5
5
  display: flex;
6
6
  align-items: center;
7
7
  justify-content: center;
@@ -13,8 +13,8 @@
13
13
  .Diamond,
14
14
  .ArcWindow,
15
15
  .Circle {
16
- width: space(7);
17
- height: space(7);
16
+ width: om.space(7);
17
+ height: om.space(7);
18
18
  opacity: 1;
19
19
  animation: fade 1s linear;
20
20
  }
@@ -1,5 +1,5 @@
1
- @import '~om';
1
+ @use '~@moda/om';
2
2
 
3
3
  .LoadingBalls {
4
- fill: color(ink);
4
+ fill: om.color(ink);
5
5
  }
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { States } from 'storybook-states';
3
+ import * as LOADINGITEMS from '.';
4
+
5
+ export default { title: 'Components/Shape' };
6
+
7
+ export const LoadingItemsLavenderBlue = () => (
8
+ <>
9
+ {Object.entries(LOADINGITEMS).map(([name, Component]) => (
10
+ <States key={name}>
11
+ <Component style={{ width: '5rem' }} />
12
+ </States>
13
+ ))}
14
+ </>
15
+ );
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+
3
+ export type LoadingItemsProps = React.HTMLAttributes<HTMLOrSVGElement>;