@kaizen/components 2.3.7 → 2.4.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 (56) hide show
  1. package/dist/cjs/index.cjs +2 -0
  2. package/dist/cjs/src/Content/Content.cjs +1 -1
  3. package/dist/cjs/src/Content/{Content.module.scss.cjs → Content.module.css.cjs} +1 -1
  4. package/dist/cjs/src/Divider/Divider.cjs +1 -1
  5. package/dist/cjs/src/Divider/Divider.module.css.cjs +10 -0
  6. package/dist/cjs/src/ErrorPage/ErrorPage.cjs +1 -1
  7. package/dist/cjs/src/ErrorPage/ErrorPage.module.css.cjs +6 -0
  8. package/dist/cjs/src/Illustration/Spot/Spot.cjs +9 -0
  9. package/dist/cjs/src/Tag/Tag.cjs +1 -1
  10. package/dist/cjs/src/Tag/Tag.module.css.cjs +30 -0
  11. package/dist/cjs/src/TimeField/TimeField.cjs +6 -1
  12. package/dist/cjs/src/VisuallyHidden/VisuallyHidden.cjs +1 -1
  13. package/dist/cjs/src/VisuallyHidden/{VisuallyHidden.module.scss.cjs → VisuallyHidden.module.css.cjs} +1 -1
  14. package/dist/esm/index.mjs +1 -1
  15. package/dist/esm/src/Content/Content.mjs +1 -1
  16. package/dist/esm/src/Content/{Content.module.scss.mjs → Content.module.css.mjs} +1 -1
  17. package/dist/esm/src/Divider/Divider.mjs +1 -1
  18. package/dist/esm/src/Divider/Divider.module.css.mjs +8 -0
  19. package/dist/esm/src/ErrorPage/ErrorPage.mjs +1 -1
  20. package/dist/esm/src/ErrorPage/ErrorPage.module.css.mjs +4 -0
  21. package/dist/esm/src/Illustration/Spot/Spot.mjs +8 -1
  22. package/dist/esm/src/Tag/Tag.mjs +1 -1
  23. package/dist/esm/src/Tag/Tag.module.css.mjs +28 -0
  24. package/dist/esm/src/TimeField/TimeField.mjs +7 -2
  25. package/dist/esm/src/VisuallyHidden/VisuallyHidden.mjs +1 -1
  26. package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.css.mjs +4 -0
  27. package/dist/styles.css +199 -136
  28. package/dist/types/Illustration/Spot/Spot.d.ts +5 -0
  29. package/package.json +1 -1
  30. package/src/Content/Content.module.css +15 -0
  31. package/src/Content/Content.tsx +1 -1
  32. package/src/Content/_docs/Content.stories.tsx +1 -1
  33. package/src/Content/_variables.css +5 -0
  34. package/src/Divider/Divider.module.css +41 -0
  35. package/src/Divider/Divider.tsx +1 -1
  36. package/src/ErrorPage/ErrorPage.module.css +5 -0
  37. package/src/ErrorPage/ErrorPage.tsx +1 -1
  38. package/src/Illustration/Spot/Spot.tsx +6 -0
  39. package/src/Illustration/Spot/_docs/Spot.stickersheet.stories.tsx +22 -0
  40. package/src/Tag/Tag.module.css +217 -0
  41. package/src/Tag/Tag.tsx +1 -1
  42. package/src/TimeField/TimeField.tsx +8 -2
  43. package/src/VisuallyHidden/VisuallyHidden.tsx +1 -1
  44. package/dist/cjs/src/Divider/Divider.module.scss.cjs +0 -10
  45. package/dist/cjs/src/ErrorPage/ErrorPage.module.scss.cjs +0 -6
  46. package/dist/cjs/src/Tag/Tag.module.scss.cjs +0 -30
  47. package/dist/esm/src/Divider/Divider.module.scss.mjs +0 -8
  48. package/dist/esm/src/ErrorPage/ErrorPage.module.scss.mjs +0 -4
  49. package/dist/esm/src/Tag/Tag.module.scss.mjs +0 -28
  50. package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.scss.mjs +0 -4
  51. package/src/Content/Content.module.scss +0 -17
  52. package/src/Content/_variables.scss +0 -3
  53. package/src/Divider/Divider.module.scss +0 -39
  54. package/src/ErrorPage/ErrorPage.module.scss +0 -7
  55. package/src/Tag/Tag.module.scss +0 -215
  56. /package/src/VisuallyHidden/{VisuallyHidden.module.scss → VisuallyHidden.module.css} +0 -0
@@ -0,0 +1,217 @@
1
+ @layer kz-components {
2
+ .root {
3
+ --medium: calc(var(--spacing-md) * 1.25);
4
+ --small: var(--spacing-md);
5
+
6
+ margin-inline-end: calc(var(--spacing-md) * 0.5);
7
+ font-size: var(--typography-paragraph-small-font-size);
8
+ font-weight: var(--typography-paragraph-small-font-weight);
9
+ letter-spacing: var(--typography-paragraph-small-letter-spacing);
10
+ color: var(--color-purple-800);
11
+ display: inline-block;
12
+ border: var(--border-borderless-border-width) var(--border-borderless-border-style)
13
+ var(--border-borderless-border-color);
14
+ border-radius: calc(var(--spacing-md) * 0.75);
15
+ padding: 0 calc(var(--spacing-md) * 0.4);
16
+ box-sizing: border-box;
17
+
18
+ &.profile {
19
+ padding-left: calc(var(--spacing-md) * 0.2);
20
+ }
21
+ }
22
+
23
+ .layoutContainer {
24
+ height: 100%;
25
+ display: flex;
26
+ align-items: center;
27
+ }
28
+
29
+ .validationIcon {
30
+ align-items: center;
31
+ display: flex;
32
+ color: var(--color-white);
33
+ margin-inline: calc(var(--spacing-md) * -0.15) var(--spacing-xs);
34
+ }
35
+
36
+ .profile {
37
+ margin-inline: calc(var(--spacing-md) * -0.15) var(--spacing-xs);
38
+ display: inline-flex;
39
+ align-items: center;
40
+ }
41
+
42
+ .textContent {
43
+ margin-top: -1px;
44
+ font-family: var(--typography-paragraph-small-font-family);
45
+ font-weight: var(--typography-paragraph-small-font-weight);
46
+ font-size: var(--typography-paragraph-small-font-size);
47
+ line-height: var(--typography-paragraph-small-line-height);
48
+ letter-spacing: var(--typography-paragraph-small-letter-spacing);
49
+ white-space: nowrap;
50
+ }
51
+
52
+ .iconWrapper {
53
+ --icon-size: 16;
54
+
55
+ position: relative;
56
+ height: 16px;
57
+ width: 16px;
58
+ }
59
+
60
+ .dismissButton {
61
+ /* Replace @include button-reset to reset button's style */
62
+ appearance: none;
63
+ background: transparent;
64
+ font: inherit;
65
+ margin: 0;
66
+ border: none;
67
+
68
+ /* Original style */
69
+ position: relative;
70
+ display: flex;
71
+ height: 100%;
72
+ align-items: center;
73
+ padding: 0 var(--spacing-xs);
74
+ margin-inline: -0.225rem -0.6625rem;
75
+ color: rgb(var(--color-purple-800-rgb), 0.7);
76
+ cursor: pointer;
77
+
78
+ &:hover {
79
+ color: var(--color-purple-800);
80
+ }
81
+
82
+ &:active {
83
+ color: var(--color-purple-800);
84
+ }
85
+
86
+ svg {
87
+ position: relative;
88
+ }
89
+
90
+ &:focus {
91
+ outline: none;
92
+ }
93
+
94
+ &:focus-visible .iconWrapper {
95
+ color: var(--color-purple-800);
96
+
97
+ &::after {
98
+ --focus-ring-offset: calc((var(--border-focus-ring-border-width)));
99
+
100
+ content: '';
101
+ position: absolute;
102
+ background: transparent;
103
+ border-radius: 50%;
104
+ border-width: var(--border-focus-ring-border-width);
105
+ border-style: var(--border-focus-ring-border-style);
106
+ border-color: var(--color-blue-500);
107
+ inset: calc(-1 * var(--focus-ring-offset));
108
+ }
109
+ }
110
+ }
111
+
112
+ .background {
113
+ /*
114
+ As our icons are only one-tone, this span places
115
+ a white background under the dismissible icon to
116
+ give the illusion of a background colour that is
117
+ different to the rest of the tag
118
+ */
119
+ position: absolute;
120
+ display: inline-block;
121
+ width: calc(var(--spacing-xs) + 0.125rem); /* optical adjustment */
122
+ height: calc(var(--spacing-xs) + 0.125rem); /* optical adjustment */
123
+ background-color: white;
124
+ left: 10px;
125
+ top: 10px;
126
+ }
127
+
128
+ .truncate {
129
+ text-overflow: ellipsis;
130
+ overflow-x: hidden;
131
+ white-space: nowrap;
132
+ }
133
+
134
+ .inline {
135
+ margin: 0;
136
+ }
137
+
138
+ .medium {
139
+ height: var(--medium);
140
+ }
141
+
142
+ .small {
143
+ height: var(--small);
144
+ }
145
+
146
+ .default {
147
+ background-color: var(--color-gray-300);
148
+ }
149
+
150
+ .sentimentPositive {
151
+ background-color: var(--color-green-100);
152
+ }
153
+
154
+ .sentimentNeutral {
155
+ background-color: var(--color-gray-300);
156
+ }
157
+
158
+ .sentimentNegative {
159
+ background-color: var(--color-red-100);
160
+ }
161
+
162
+ .sentimentNone {
163
+ background-color: var(--color-white);
164
+ border-color: var(--color-gray-300);
165
+ }
166
+
167
+ .validationPositive {
168
+ background-color: var(--color-green-100);
169
+
170
+ .validationIcon {
171
+ color: var(--color-green-500);
172
+ }
173
+ }
174
+
175
+ .validationInformative {
176
+ background-color: var(--color-blue-100);
177
+
178
+ .validationIcon {
179
+ color: var(--color-blue-500);
180
+ }
181
+ }
182
+
183
+ .validationNegative {
184
+ background-color: var(--color-red-100);
185
+
186
+ .validationIcon {
187
+ color: var(--color-red-500);
188
+ }
189
+ }
190
+
191
+ .validationCautionary {
192
+ background-color: var(--color-yellow-100);
193
+
194
+ .validationIcon {
195
+ color: var(--color-yellow-700);
196
+ }
197
+ }
198
+
199
+ .statusLive {
200
+ background-color: var(--color-green-100);
201
+ color: var(--color-purple-800);
202
+ }
203
+
204
+ .statusAction {
205
+ background-color: var(--color-orange-100);
206
+ color: var(--color-purple-800);
207
+ }
208
+
209
+ .statusClosed {
210
+ background-color: var(--color-red-100);
211
+ }
212
+
213
+ .statusDraft {
214
+ background-color: var(--color-blue-100);
215
+ color: var(--color-purple-800);
216
+ }
217
+ }
package/src/Tag/Tag.tsx CHANGED
@@ -4,7 +4,7 @@ import { Avatar, type AvatarProps } from '~components/Avatar'
4
4
  import { Icon } from '~components/Icon'
5
5
  import { LiveIcon } from './subcomponents/LiveIcon/LiveIcon'
6
6
  import { type TagVariants } from './types'
7
- import styles from './Tag.module.scss'
7
+ import styles from './Tag.module.css'
8
8
 
9
9
  export type TagWithAvatarProps = Omit<DefaultTagProps, 'variant'> & {
10
10
  variant: 'profile'
@@ -1,4 +1,4 @@
1
- import React, { useId } from 'react'
1
+ import React, { useId, useMemo } from 'react'
2
2
  import { Time } from '@internationalized/date'
3
3
  import { useTimeField } from '@react-aria/datepicker'
4
4
  import { I18nProvider } from '@react-aria/i18n'
@@ -67,9 +67,15 @@ const TimeFieldComponent = ({
67
67
  onChange({ hour: timeValue.hour, minutes: timeValue.minute })
68
68
  }
69
69
 
70
+ const timeValue = useMemo(
71
+ () => (value ? new Time(value.hour, value.minutes) : null),
72
+ // eslint-disable-next-line react-hooks/exhaustive-deps
73
+ [value?.hour, value?.minutes],
74
+ )
75
+
70
76
  const state = useTimeFieldState({
71
77
  ...restProps,
72
- value: value ? new Time(value.hour, value.minutes) : null,
78
+ value: timeValue,
73
79
  onChange: handleOnChange,
74
80
  isDisabled,
75
81
  hideTimeZone: true,
@@ -1,7 +1,7 @@
1
1
  import React, { type HTMLAttributes, type ReactNode } from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { type OverrideClassName } from '~components/types/OverrideClassName'
4
- import styles from './VisuallyHidden.module.scss'
4
+ import styles from './VisuallyHidden.module.css'
5
5
 
6
6
  export type VisuallyHiddenProps = {
7
7
  children: ReactNode
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "wrapper": "Divider-module_wrapper__K5mht",
5
- "content": "Divider-module_content__BhDyy",
6
- "menuSeparator": "Divider-module_menuSeparator__kjXV5",
7
- "canvas": "Divider-module_canvas__2eQT6",
8
- "reversed": "Divider-module_reversed__puJw2"
9
- };
10
- module.exports = styles;
@@ -1,6 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "paragraphPadding": "ErrorPage-module_paragraphPadding__-L-qy"
5
- };
6
- module.exports = styles;
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "root": "Tag-module_root__uRhoc",
5
- "profile": "Tag-module_profile__OoGsS",
6
- "layoutContainer": "Tag-module_layoutContainer__pBLSz",
7
- "validationIcon": "Tag-module_validationIcon__B-YLv",
8
- "textContent": "Tag-module_textContent__q76X-",
9
- "iconWrapper": "Tag-module_iconWrapper__aPrKH",
10
- "dismissButton": "Tag-module_dismissButton__rHv7r",
11
- "background": "Tag-module_background__LkzGB",
12
- "truncate": "Tag-module_truncate__5w7HW",
13
- "inline": "Tag-module_inline__pPM-d",
14
- "medium": "Tag-module_medium__NkOrv",
15
- "small": "Tag-module_small__-xyNk",
16
- "default": "Tag-module_default__6PVke",
17
- "sentimentPositive": "Tag-module_sentimentPositive__nbqE1",
18
- "sentimentNeutral": "Tag-module_sentimentNeutral__8BtD8",
19
- "sentimentNegative": "Tag-module_sentimentNegative__1J85t",
20
- "sentimentNone": "Tag-module_sentimentNone__8BWjU",
21
- "validationPositive": "Tag-module_validationPositive__vgFUE",
22
- "validationInformative": "Tag-module_validationInformative__bnJ4A",
23
- "validationNegative": "Tag-module_validationNegative__lZgIY",
24
- "validationCautionary": "Tag-module_validationCautionary__ERS2t",
25
- "statusLive": "Tag-module_statusLive__xG48w",
26
- "statusAction": "Tag-module_statusAction__woL-O",
27
- "statusClosed": "Tag-module_statusClosed__VhZP-",
28
- "statusDraft": "Tag-module_statusDraft__9QZDv"
29
- };
30
- module.exports = styles;
@@ -1,8 +0,0 @@
1
- var styles = {
2
- "wrapper": "Divider-module_wrapper__K5mht",
3
- "content": "Divider-module_content__BhDyy",
4
- "menuSeparator": "Divider-module_menuSeparator__kjXV5",
5
- "canvas": "Divider-module_canvas__2eQT6",
6
- "reversed": "Divider-module_reversed__puJw2"
7
- };
8
- export { styles as default };
@@ -1,4 +0,0 @@
1
- var styles = {
2
- "paragraphPadding": "ErrorPage-module_paragraphPadding__-L-qy"
3
- };
4
- export { styles as default };
@@ -1,28 +0,0 @@
1
- var styles = {
2
- "root": "Tag-module_root__uRhoc",
3
- "profile": "Tag-module_profile__OoGsS",
4
- "layoutContainer": "Tag-module_layoutContainer__pBLSz",
5
- "validationIcon": "Tag-module_validationIcon__B-YLv",
6
- "textContent": "Tag-module_textContent__q76X-",
7
- "iconWrapper": "Tag-module_iconWrapper__aPrKH",
8
- "dismissButton": "Tag-module_dismissButton__rHv7r",
9
- "background": "Tag-module_background__LkzGB",
10
- "truncate": "Tag-module_truncate__5w7HW",
11
- "inline": "Tag-module_inline__pPM-d",
12
- "medium": "Tag-module_medium__NkOrv",
13
- "small": "Tag-module_small__-xyNk",
14
- "default": "Tag-module_default__6PVke",
15
- "sentimentPositive": "Tag-module_sentimentPositive__nbqE1",
16
- "sentimentNeutral": "Tag-module_sentimentNeutral__8BtD8",
17
- "sentimentNegative": "Tag-module_sentimentNegative__1J85t",
18
- "sentimentNone": "Tag-module_sentimentNone__8BWjU",
19
- "validationPositive": "Tag-module_validationPositive__vgFUE",
20
- "validationInformative": "Tag-module_validationInformative__bnJ4A",
21
- "validationNegative": "Tag-module_validationNegative__lZgIY",
22
- "validationCautionary": "Tag-module_validationCautionary__ERS2t",
23
- "statusLive": "Tag-module_statusLive__xG48w",
24
- "statusAction": "Tag-module_statusAction__woL-O",
25
- "statusClosed": "Tag-module_statusClosed__VhZP-",
26
- "statusDraft": "Tag-module_statusDraft__9QZDv"
27
- };
28
- export { styles as default };
@@ -1,4 +0,0 @@
1
- var styles = {
2
- "srOnly": "VisuallyHidden-module_srOnly__tTjOK"
3
- };
4
- export { styles as default };
@@ -1,17 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/layout';
2
- @import './variables';
3
-
4
- @layer kz-components {
5
- .content {
6
- max-width: $layout-content-max-width;
7
- margin: 0 $layout-content-side-margin;
8
- width: 100%;
9
-
10
- // Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table)
11
- min-width: 0;
12
-
13
- @media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
14
- margin: 0 $content-margin-width-on-medium-and-small;
15
- }
16
- }
17
- }
@@ -1,3 +0,0 @@
1
- // This replicates the layout max-width logic in
2
- // packages/components/TitleBlock/TitleBlock.module.scss
3
- $content-margin-width-on-medium-and-small: 12px;
@@ -1,39 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/border';
2
- @import '~@kaizen/design-tokens/sass/color';
3
-
4
- @layer kz-components {
5
- // Use different tokens with different opacities across the Zen and Heart themes, by assuming that when Zen is applied there won't be any CSS variables declared.
6
-
7
- $dt-content-border-color: rgba($color-gray-600-rgb, 0.1);
8
-
9
- .wrapper {
10
- width: 100%;
11
- border: 0;
12
- margin: 0;
13
- border-radius: $border-solid-border-radius;
14
- // This is here to protect against a global style in a consumer.
15
- // https://github.com/cultureamp/murmur/blob/master/app/assets/stylesheets/legacy/modules/_body.scss
16
- visibility: visible;
17
- }
18
-
19
- .content {
20
- border-top: 1px solid;
21
- border-color: $dt-content-border-color;
22
- }
23
-
24
- .canvas {
25
- border-top: 1px solid;
26
- border-bottom: 1px solid;
27
- border-color: rgba($color-gray-600-rgb, 0.1);
28
- }
29
-
30
- .reversed {
31
- border-color: rgba($color-white-rgb, 0.1);
32
- }
33
-
34
- .menuSeparator {
35
- @extend .content; /* stylelint-disable-line scss/at-extend-no-missing-placeholder */
36
-
37
- margin: 5px 0;
38
- }
39
- }
@@ -1,7 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/spacing';
2
-
3
- @layer kz-components {
4
- .paragraphPadding {
5
- padding: $spacing-24 0;
6
- }
7
- }
@@ -1,215 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/border';
2
- @import '~@kaizen/design-tokens/sass/color';
3
- @import '~@kaizen/design-tokens/sass/typography';
4
- @import '~@kaizen/design-tokens/sass/spacing';
5
- @import '../../styles/utils/button-reset';
6
-
7
- @layer kz-components {
8
- $medium: calc(#{$spacing-md} * 1.25);
9
- $small: $spacing-md;
10
-
11
- .root {
12
- margin-inline-end: calc(#{$spacing-md} * 0.5);
13
- font-size: $typography-paragraph-small-font-size;
14
- font-weight: $typography-paragraph-small-font-weight;
15
- letter-spacing: $typography-paragraph-small-letter-spacing;
16
- color: $color-purple-800;
17
- display: inline-block;
18
- border: $border-borderless-border-width $border-borderless-border-style
19
- $border-borderless-border-color;
20
- border-radius: calc(#{$spacing-md} * 0.75);
21
- padding: 0 calc(#{$spacing-md} * 0.4);
22
- box-sizing: border-box;
23
-
24
- &.profile {
25
- padding-left: calc(#{$spacing-md} * 0.2);
26
- }
27
- }
28
-
29
- .layoutContainer {
30
- height: 100%;
31
- display: flex;
32
- align-items: center;
33
- }
34
-
35
- .validationIcon {
36
- align-items: center;
37
- display: flex;
38
- color: $color-white;
39
- margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
40
- }
41
-
42
- .profile {
43
- margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
44
- display: inline-flex;
45
- align-items: center;
46
- }
47
-
48
- .textContent {
49
- margin-top: -1px;
50
- font-family: $typography-paragraph-small-font-family;
51
- font-weight: $typography-paragraph-small-font-weight;
52
- font-size: $typography-paragraph-small-font-size;
53
- line-height: $typography-paragraph-small-line-height;
54
- letter-spacing: $typography-paragraph-small-letter-spacing;
55
- white-space: nowrap;
56
- }
57
-
58
- .iconWrapper {
59
- --icon-size: 16;
60
-
61
- position: relative;
62
- height: 16px;
63
- width: 16px;
64
- }
65
-
66
- .dismissButton {
67
- @include button-reset;
68
-
69
- position: relative;
70
- display: flex;
71
- height: 100%;
72
- align-items: center;
73
- padding: 0 $spacing-xs;
74
- margin-inline: -0.225rem -0.6625rem;
75
- color: rgba($color-purple-800-rgb, 0.7);
76
- cursor: pointer;
77
-
78
- &:hover {
79
- color: $color-purple-800;
80
- }
81
-
82
- &:active {
83
- color: $color-purple-800;
84
- }
85
-
86
- svg {
87
- position: relative;
88
- }
89
-
90
- &:focus {
91
- outline: none;
92
- }
93
-
94
- &:focus-visible .iconWrapper {
95
- color: $color-purple-800;
96
-
97
- &::after {
98
- $focus-ring-offset: calc((#{$border-focus-ring-border-width}));
99
-
100
- content: '';
101
- position: absolute;
102
- background: transparent;
103
- border-radius: 50%;
104
- border-width: $border-focus-ring-border-width;
105
- border-style: $border-focus-ring-border-style;
106
- border-color: $color-blue-500;
107
- inset: calc(-1 * #{$focus-ring-offset});
108
- }
109
- }
110
- }
111
-
112
- .background {
113
- // As our icons are only one-tone, this span places
114
- // a white background under the dismissible icon to
115
- // give the illusion of a background colour that is
116
- // different to the rest of the tag
117
- position: absolute;
118
- display: inline-block;
119
- width: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
120
- height: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
121
- background-color: white;
122
- left: 10px;
123
- top: 10px;
124
- }
125
-
126
- .truncate {
127
- text-overflow: ellipsis;
128
- overflow-x: hidden;
129
- white-space: nowrap;
130
- }
131
-
132
- .inline {
133
- margin: 0;
134
- }
135
-
136
- .medium {
137
- height: $medium;
138
- }
139
-
140
- .small {
141
- height: $small;
142
- }
143
-
144
- .default {
145
- background-color: $color-gray-300;
146
- }
147
-
148
- .sentimentPositive {
149
- background-color: $color-green-100;
150
- }
151
-
152
- .sentimentNeutral {
153
- background-color: $color-gray-300;
154
- }
155
-
156
- .sentimentNegative {
157
- background-color: $color-red-100;
158
- }
159
-
160
- .sentimentNone {
161
- background-color: $color-white;
162
- border-color: $color-gray-300;
163
- }
164
-
165
- .validationPositive {
166
- background-color: $color-green-100;
167
-
168
- .validationIcon {
169
- color: $color-green-500;
170
- }
171
- }
172
-
173
- .validationInformative {
174
- background-color: $color-blue-100;
175
-
176
- .validationIcon {
177
- color: $color-blue-500;
178
- }
179
- }
180
-
181
- .validationNegative {
182
- background-color: $color-red-100;
183
-
184
- .validationIcon {
185
- color: $color-red-500;
186
- }
187
- }
188
-
189
- .validationCautionary {
190
- background-color: $color-yellow-100;
191
-
192
- .validationIcon {
193
- color: var(--color-yellow-700);
194
- }
195
- }
196
-
197
- .statusLive {
198
- background-color: $color-green-100;
199
- color: $color-purple-800;
200
- }
201
-
202
- .statusAction {
203
- background-color: $color-orange-100;
204
- color: $color-purple-800;
205
- }
206
-
207
- .statusClosed {
208
- background-color: $color-red-100;
209
- }
210
-
211
- .statusDraft {
212
- background-color: $color-blue-100;
213
- color: $color-purple-800;
214
- }
215
- }