@kaizen/components 2.3.7 → 2.5.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 (202) 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/Heading/Heading.cjs +1 -1
  9. package/dist/cjs/src/Heading/Heading.module.css.cjs +22 -0
  10. package/dist/cjs/src/Illustration/Spot/Spot.cjs +9 -0
  11. package/dist/cjs/src/Label/Label.cjs +1 -1
  12. package/dist/cjs/src/Label/Label.module.css.cjs +16 -0
  13. package/dist/cjs/src/LabelledMessage/LabelledMessage.cjs +1 -1
  14. package/dist/cjs/src/LabelledMessage/LabelledMessage.module.css.cjs +7 -0
  15. package/dist/cjs/src/Notification/InlineNotification/InlineNotification.cjs +1 -1
  16. package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.cjs +1 -1
  17. package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.cjs → ToastNotificationsList.module.css.cjs} +1 -1
  18. package/dist/cjs/src/Notification/subcomponents/CancelButton/CancelButton.cjs +1 -1
  19. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.cjs +1 -1
  20. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.cjs +29 -0
  21. package/dist/cjs/src/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +1 -1
  22. package/dist/cjs/src/Select/Select.cjs +9 -7
  23. package/dist/cjs/src/Tag/Tag.cjs +1 -1
  24. package/dist/cjs/src/Tag/Tag.module.css.cjs +30 -0
  25. package/dist/cjs/src/Text/Text.cjs +1 -1
  26. package/dist/cjs/src/Text/Text.module.css.cjs +16 -0
  27. package/dist/cjs/src/TimeField/TimeField.cjs +6 -1
  28. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +1 -1
  29. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.cjs +13 -0
  30. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +1 -1
  31. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.cjs +9 -0
  32. package/dist/cjs/src/Tooltip/OverlayArrow.cjs +1 -1
  33. package/dist/cjs/src/Tooltip/OverlayArrow.module.css.cjs +7 -0
  34. package/dist/cjs/src/Tooltip/Tooltip.cjs +1 -1
  35. package/dist/cjs/src/Tooltip/Tooltip.module.css.cjs +7 -0
  36. package/dist/cjs/src/VisuallyHidden/VisuallyHidden.cjs +1 -1
  37. package/dist/cjs/src/VisuallyHidden/{VisuallyHidden.module.scss.cjs → VisuallyHidden.module.css.cjs} +1 -1
  38. package/dist/esm/index.mjs +1 -1
  39. package/dist/esm/src/Content/Content.mjs +1 -1
  40. package/dist/esm/src/Content/{Content.module.scss.mjs → Content.module.css.mjs} +1 -1
  41. package/dist/esm/src/Divider/Divider.mjs +1 -1
  42. package/dist/esm/src/Divider/Divider.module.css.mjs +8 -0
  43. package/dist/esm/src/ErrorPage/ErrorPage.mjs +1 -1
  44. package/dist/esm/src/ErrorPage/ErrorPage.module.css.mjs +4 -0
  45. package/dist/esm/src/Heading/Heading.mjs +1 -1
  46. package/dist/esm/src/Heading/Heading.module.css.mjs +20 -0
  47. package/dist/esm/src/Illustration/Spot/Spot.mjs +8 -1
  48. package/dist/esm/src/Label/Label.mjs +1 -1
  49. package/dist/esm/src/Label/Label.module.css.mjs +14 -0
  50. package/dist/esm/src/LabelledMessage/LabelledMessage.mjs +1 -1
  51. package/dist/esm/src/LabelledMessage/LabelledMessage.module.css.mjs +5 -0
  52. package/dist/esm/src/Notification/InlineNotification/InlineNotification.mjs +1 -1
  53. package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +1 -1
  54. package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.mjs → ToastNotificationsList.module.css.mjs} +1 -1
  55. package/dist/esm/src/Notification/subcomponents/CancelButton/CancelButton.mjs +1 -1
  56. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.mjs +1 -1
  57. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.mjs +27 -0
  58. package/dist/esm/src/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +1 -1
  59. package/dist/esm/src/Select/Select.mjs +9 -7
  60. package/dist/esm/src/Tag/Tag.mjs +1 -1
  61. package/dist/esm/src/Tag/Tag.module.css.mjs +28 -0
  62. package/dist/esm/src/Text/Text.mjs +1 -1
  63. package/dist/esm/src/Text/Text.module.css.mjs +14 -0
  64. package/dist/esm/src/TimeField/TimeField.mjs +7 -2
  65. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +1 -1
  66. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.mjs +11 -0
  67. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +1 -1
  68. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.mjs +7 -0
  69. package/dist/esm/src/Tooltip/OverlayArrow.mjs +1 -1
  70. package/dist/esm/src/Tooltip/OverlayArrow.module.css.mjs +5 -0
  71. package/dist/esm/src/Tooltip/Tooltip.mjs +1 -1
  72. package/dist/esm/src/Tooltip/Tooltip.module.css.mjs +5 -0
  73. package/dist/esm/src/VisuallyHidden/VisuallyHidden.mjs +1 -1
  74. package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.css.mjs +4 -0
  75. package/dist/styles.css +924 -655
  76. package/dist/types/Illustration/Spot/Spot.d.ts +5 -0
  77. package/locales/ar.json +4 -0
  78. package/locales/bg.json +4 -0
  79. package/locales/cs.json +4 -0
  80. package/locales/cy.json +4 -0
  81. package/locales/da.json +4 -0
  82. package/locales/de.json +4 -0
  83. package/locales/el.json +4 -0
  84. package/locales/en-GB.json +4 -0
  85. package/locales/en.json +4 -0
  86. package/locales/es-419.json +4 -0
  87. package/locales/es.json +4 -0
  88. package/locales/et.json +4 -0
  89. package/locales/fi.json +4 -0
  90. package/locales/fr-CA.json +4 -0
  91. package/locales/fr.json +4 -0
  92. package/locales/he.json +4 -0
  93. package/locales/hi.json +4 -0
  94. package/locales/ht.json +4 -0
  95. package/locales/hu.json +4 -0
  96. package/locales/id.json +4 -0
  97. package/locales/it.json +4 -0
  98. package/locales/ja.json +4 -0
  99. package/locales/km-KH.json +4 -0
  100. package/locales/ko.json +4 -0
  101. package/locales/lt.json +4 -0
  102. package/locales/lv.json +4 -0
  103. package/locales/mi.json +4 -0
  104. package/locales/ms.json +4 -0
  105. package/locales/nb.json +4 -0
  106. package/locales/nl.json +4 -0
  107. package/locales/pl.json +4 -0
  108. package/locales/pt-BR.json +4 -0
  109. package/locales/pt.json +4 -0
  110. package/locales/ro.json +4 -0
  111. package/locales/ru.json +4 -0
  112. package/locales/si-LK.json +4 -0
  113. package/locales/sk.json +4 -0
  114. package/locales/sr.json +4 -0
  115. package/locales/sv.json +4 -0
  116. package/locales/th.json +4 -0
  117. package/locales/tl.json +4 -0
  118. package/locales/tr.json +4 -0
  119. package/locales/uk.json +4 -0
  120. package/locales/vi.json +4 -0
  121. package/locales/zh-TW.json +4 -0
  122. package/locales/zh.json +4 -0
  123. package/package.json +1 -1
  124. package/src/Content/Content.module.css +15 -0
  125. package/src/Content/Content.tsx +1 -1
  126. package/src/Content/_docs/Content.stories.tsx +1 -1
  127. package/src/Content/_variables.css +5 -0
  128. package/src/Divider/Divider.module.css +41 -0
  129. package/src/Divider/Divider.tsx +1 -1
  130. package/src/ErrorPage/ErrorPage.module.css +5 -0
  131. package/src/ErrorPage/ErrorPage.tsx +1 -1
  132. package/src/Heading/Heading.module.css +111 -0
  133. package/src/Heading/Heading.tsx +1 -1
  134. package/src/Illustration/Spot/Spot.tsx +6 -0
  135. package/src/Illustration/Spot/_docs/Spot.stickersheet.stories.tsx +22 -0
  136. package/src/Label/Label.module.css +97 -0
  137. package/src/Label/Label.tsx +1 -1
  138. package/src/Label/_docs/Label.stickersheet.stories.tsx +9 -4
  139. package/src/LabelledMessage/{LabelledMessage.module.scss → LabelledMessage.module.css} +1 -3
  140. package/src/LabelledMessage/LabelledMessage.tsx +1 -1
  141. package/src/Notification/InlineNotification/InlineNotification.tsx +1 -1
  142. package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +1 -1
  143. package/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss → ToastNotificationsList.module.css} +6 -8
  144. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx +1 -1
  145. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +1 -1
  146. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css +392 -0
  147. package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +1 -1
  148. package/src/Notification/subcomponents/NotificationHeading/NotificationHeading.tsx +1 -1
  149. package/src/Select/Select.tsx +8 -6
  150. package/src/Tag/Tag.module.css +217 -0
  151. package/src/Tag/Tag.tsx +1 -1
  152. package/src/Text/Text.module.css +71 -0
  153. package/src/Text/Text.tsx +1 -1
  154. package/src/TimeField/TimeField.tsx +8 -2
  155. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css +141 -0
  156. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
  157. package/src/ToggleSwitch/ToggleSwitchField/{ToggleSwitchField.module.scss → ToggleSwitchField.module.css} +1 -3
  158. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.tsx +1 -1
  159. package/src/Tooltip/OverlayArrow.module.css +45 -0
  160. package/src/Tooltip/OverlayArrow.tsx +1 -1
  161. package/src/Tooltip/Tooltip.module.css +62 -0
  162. package/src/Tooltip/Tooltip.tsx +1 -1
  163. package/src/VisuallyHidden/VisuallyHidden.tsx +1 -1
  164. package/dist/cjs/src/Divider/Divider.module.scss.cjs +0 -10
  165. package/dist/cjs/src/ErrorPage/ErrorPage.module.scss.cjs +0 -6
  166. package/dist/cjs/src/Heading/Heading.module.scss.cjs +0 -22
  167. package/dist/cjs/src/Label/Label.module.scss.cjs +0 -15
  168. package/dist/cjs/src/LabelledMessage/LabelledMessage.module.scss.cjs +0 -7
  169. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.cjs +0 -29
  170. package/dist/cjs/src/Tag/Tag.module.scss.cjs +0 -30
  171. package/dist/cjs/src/Text/Text.module.scss.cjs +0 -16
  172. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.cjs +0 -13
  173. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.cjs +0 -9
  174. package/dist/cjs/src/Tooltip/OverlayArrow.module.scss.cjs +0 -7
  175. package/dist/cjs/src/Tooltip/Tooltip.module.scss.cjs +0 -7
  176. package/dist/esm/src/Divider/Divider.module.scss.mjs +0 -8
  177. package/dist/esm/src/ErrorPage/ErrorPage.module.scss.mjs +0 -4
  178. package/dist/esm/src/Heading/Heading.module.scss.mjs +0 -20
  179. package/dist/esm/src/Label/Label.module.scss.mjs +0 -13
  180. package/dist/esm/src/LabelledMessage/LabelledMessage.module.scss.mjs +0 -5
  181. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.mjs +0 -27
  182. package/dist/esm/src/Tag/Tag.module.scss.mjs +0 -28
  183. package/dist/esm/src/Text/Text.module.scss.mjs +0 -14
  184. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.mjs +0 -11
  185. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.mjs +0 -7
  186. package/dist/esm/src/Tooltip/OverlayArrow.module.scss.mjs +0 -5
  187. package/dist/esm/src/Tooltip/Tooltip.module.scss.mjs +0 -5
  188. package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.scss.mjs +0 -4
  189. package/src/Content/Content.module.scss +0 -17
  190. package/src/Content/_variables.scss +0 -3
  191. package/src/Divider/Divider.module.scss +0 -39
  192. package/src/ErrorPage/ErrorPage.module.scss +0 -7
  193. package/src/Heading/Heading.module.scss +0 -115
  194. package/src/Label/Label.module.scss +0 -105
  195. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +0 -138
  196. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +0 -366
  197. package/src/Tag/Tag.module.scss +0 -215
  198. package/src/Text/Text.module.scss +0 -74
  199. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -139
  200. package/src/Tooltip/OverlayArrow.module.scss +0 -45
  201. package/src/Tooltip/Tooltip.module.scss +0 -68
  202. /package/src/VisuallyHidden/{VisuallyHidden.module.scss → VisuallyHidden.module.css} +0 -0
@@ -1,366 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/typography';
2
- @import '~@kaizen/design-tokens/sass/color';
3
- @import '~@kaizen/design-tokens/sass/shadow';
4
- @import '~@kaizen/design-tokens/sass/spacing';
5
- @import '~@kaizen/design-tokens/sass/border';
6
- @import '~@kaizen/design-tokens/sass/animation';
7
-
8
- $border-width: var(--border-width-1);
9
- $notification-vertical-padding: calc(#{$spacing-6} - #{$border-width});
10
- $notification-fade-out: opacity 200ms ease;
11
- $notification-collapse-height:
12
- margin-top 200ms ease,
13
- margin-bottom 200ms ease;
14
- $notification-collapse-height-delayed:
15
- margin-top 200ms ease 200ms,
16
- margin-bottom 200ms ease;
17
- $notification-pop-up: transform 200ms ease-out;
18
- $notification-slide-right: transform 300ms ease-out;
19
-
20
- @layer kz-components {
21
- %ca-notification {
22
- display: flex;
23
- box-sizing: border-box;
24
- pointer-events: all;
25
-
26
- &:focus {
27
- outline-offset: 1px;
28
- outline: 2px solid var(--color-blue-500);
29
- }
30
-
31
- // Variants
32
- &%ca-notification---inline,
33
- &%ca-notification---toast {
34
- margin-bottom: $spacing-24;
35
- border-width: $border-width;
36
- border-style: solid;
37
- border-radius: $border-solid-border-radius;
38
- }
39
-
40
- &%ca-notification---inline {
41
- width: auto;
42
- min-height: 46px;
43
- padding: $notification-vertical-padding $spacing-12;
44
- transition: $notification-fade-out, $notification-pop-up, $notification-collapse-height;
45
- }
46
-
47
- &%ca-notification---toast {
48
- container-type: inline-size;
49
- width: 25rem;
50
- box-shadow: $shadow-small-box-shadow;
51
- max-width: 100%;
52
- padding: $notification-vertical-padding 10px;
53
- transition:
54
- $notification-fade-out, $notification-slide-right, $notification-collapse-height-delayed;
55
- will-change: transform;
56
- }
57
-
58
- &%ca-notification---global {
59
- width: 100%;
60
- display: flex;
61
- align-items: center;
62
- border-width: 0;
63
- border-radius: 0;
64
- margin-bottom: 0;
65
- padding-top: var(--spacing-16);
66
- padding-bottom: var(--spacing-16);
67
- padding-inline-start: var(--spacing-8);
68
- transition: $notification-collapse-height;
69
- position: relative;
70
- z-index: 1030;
71
- }
72
-
73
- // Types
74
- &%ca-notification---positive {
75
- background: $color-green-100;
76
- border-color: var(--color-green-500);
77
- color: $color-purple-800;
78
- }
79
-
80
- &%ca-notification---informative {
81
- background: $color-blue-100;
82
- border-color: var(--color-blue-400);
83
- color: $color-purple-800;
84
- }
85
-
86
- &%ca-notification---cautionary {
87
- background: $color-yellow-100;
88
- border-color: var(--color-yellow-700);
89
- color: $color-purple-800;
90
- }
91
-
92
- &%ca-notification---negative {
93
- background: $color-red-100;
94
- border-color: var(--color-red-500);
95
- color: $color-purple-800;
96
- }
97
-
98
- // Hidden state
99
- &%ca-notification---hidden {
100
- opacity: 0%;
101
-
102
- &%ca-notification---inline,
103
- &%ca-notification---global {
104
- margin-bottom: 0;
105
- }
106
-
107
- &%ca-notification---inline {
108
- // When entering we use "ease-out", but when transitioning to hidden we want to use "ease-in".
109
- // We want it moving the fastest when it is the furthest off screen.
110
- transition-timing-function: ease-in;
111
- transform: translateY(-50%);
112
- }
113
-
114
- &%ca-notification---toast {
115
- // When entering we use "ease-out", but when transitioning to hidden we want to use "ease-in".
116
- // We want it moving the fastest when it is the furthest off screen.
117
- transition-timing-function: ease-in;
118
- transform: translateX(50%);
119
- }
120
-
121
- &%ca-notification---global {
122
- z-index: 1029;
123
- opacity: 100%;
124
- }
125
- }
126
-
127
- // Modifiers
128
- &%ca-notification---noBottomMargin {
129
- margin-bottom: 0;
130
- }
131
-
132
- &%ca-notification---persistent {
133
- transition: none;
134
- }
135
-
136
- // this is only for inline notifications
137
- &%ca-notification---subtle {
138
- background: none;
139
- border: none;
140
- padding: 0;
141
- }
142
- }
143
-
144
- %ca-notification__icon {
145
- align-items: flex-start;
146
- box-sizing: content-box;
147
-
148
- %ca-notification---positive & {
149
- color: $color-green-500;
150
- }
151
-
152
- %ca-notification---informative & {
153
- color: $color-blue-500;
154
- }
155
-
156
- %ca-notification---cautionary & {
157
- color: var(--color-yellow-700);
158
- }
159
-
160
- %ca-notification---negative & {
161
- color: $color-red-500;
162
- }
163
-
164
- %ca-notification---inline &,
165
- %ca-notification---toast & {
166
- width: 22px;
167
- height: 22px;
168
- font-size: 22px;
169
- margin-top: $spacing-6;
170
- }
171
-
172
- %ca-notification---global & {
173
- width: 24px;
174
- height: 24px;
175
- font-size: 24px;
176
- }
177
- }
178
-
179
- %ca-notification__text-container {
180
- box-sizing: content-box;
181
- display: flex;
182
- flex-flow: row wrap;
183
- flex: 1 0 0;
184
-
185
- %ca-notification---inline &,
186
- %ca-notification---toast & {
187
- margin-inline-start: $spacing-6;
188
- }
189
-
190
- %ca-notification---toast & {
191
- margin-inline-start: $spacing-6;
192
- max-width: calc(100% - #{$spacing-48});
193
- overflow-wrap: break-word;
194
- hyphens: auto;
195
- }
196
-
197
- %ca-notification---global & {
198
- margin-inline-start: var(--spacing-8);
199
- }
200
-
201
- %ca-notification---inline & {
202
- // Inline notifications often fade onto a white background.
203
- // Fading the higher-contrast text out at, as well as the whole container, makes for a smoother animation.
204
- transition: $notification-fade-out;
205
- }
206
-
207
- &%ca-notification---forceMultiline {
208
- flex-direction: column;
209
- }
210
- }
211
-
212
- %ca-notification__title {
213
- position: relative;
214
- font-family: $typography-heading-6-font-family;
215
- font-weight: $typography-heading-6-font-weight;
216
- font-size: $typography-heading-6-font-size;
217
- line-height: $typography-heading-6-line-height;
218
- letter-spacing: $typography-heading-6-letter-spacing;
219
- margin: 0;
220
- padding-right: 6px;
221
- // overriding Bootstrap style that changes h6s to text-transform: uppercase
222
- text-transform: none;
223
- color: inherit;
224
- top: 0.37em;
225
- }
226
-
227
- %ca-notification__text {
228
- position: relative;
229
- font-family: $typography-paragraph-small-font-family;
230
- font-weight: $typography-paragraph-small-font-weight;
231
- font-size: $typography-paragraph-small-font-size;
232
- line-height: $typography-paragraph-small-line-height;
233
- letter-spacing: $typography-paragraph-small-letter-spacing;
234
- margin: 0;
235
- color: inherit;
236
-
237
- %ca-notification---inline &,
238
- %ca-notification---toast & {
239
- position: relative;
240
- font-family: $typography-paragraph-small-font-family;
241
- font-weight: $typography-paragraph-small-font-weight;
242
- font-size: $typography-paragraph-small-font-size;
243
- line-height: $typography-paragraph-small-line-height;
244
- letter-spacing: $typography-paragraph-small-letter-spacing;
245
- // When the title and text are on different lines this ensures the baselines of the first lines are exactly 1 grid unit apart.
246
- // When they are both on a single line it ensures both are 1 grid unit tall.
247
- margin-top: $spacing-6;
248
- flex: 0 1 auto;
249
- padding-bottom: $spacing-12;
250
- top: 0.21em;
251
- }
252
- %ca-notification---toast & {
253
- width: 100%;
254
- }
255
-
256
- %ca-notification---global & {
257
- // Inherit baseline because the parent selector doesn't.
258
- position: static;
259
- font-weight: $typography-paragraph-body-font-weight;
260
- font-size: $typography-paragraph-body-font-size;
261
- line-height: $typography-paragraph-body-line-height;
262
- letter-spacing: $typography-paragraph-body-letter-spacing;
263
- }
264
-
265
- a[href]:not([data-rac]) {
266
- border-bottom: var(--spacing-1) solid $color-blue-500;
267
- text-decoration: none;
268
- color: $color-blue-500;
269
-
270
- &:hover {
271
- text-decoration: none;
272
- color: $color-blue-600;
273
- border-bottom: var(--spacing-1) solid $color-blue-600;
274
- }
275
- }
276
-
277
- strong {
278
- font-weight: $typography-button-secondary-font-weight;
279
- }
280
-
281
- p {
282
- font-weight: inherit;
283
- }
284
- }
285
-
286
- %ca-notification__cancel {
287
- cursor: pointer;
288
- appearance: none;
289
- transition: none;
290
- transform: none;
291
- margin: 0;
292
- padding: 0;
293
- border: none;
294
- background: transparent;
295
- font: inherit;
296
- color: $color-purple-800;
297
-
298
- .icon {
299
- opacity: 70%;
300
- transition: $animation-duration-fast opacity;
301
- }
302
-
303
- &:disabled,
304
- &.disabled {
305
- .icon {
306
- opacity: 30%;
307
- }
308
- }
309
-
310
- &:not(:disabled, .disabled) {
311
- &:hover,
312
- &:focus,
313
- &.hover {
314
- .icon {
315
- opacity: 100%;
316
- }
317
- }
318
-
319
- &:active,
320
- &.active {
321
- .icon {
322
- opacity: 100%;
323
- }
324
- }
325
- }
326
-
327
- &:active {
328
- transform: translateY(1px);
329
- }
330
-
331
- // The negative margins below are so that our clickable area will overlap the notification padding
332
- %ca-notification---inline &,
333
- %ca-notification---toast & {
334
- width: var(--spacing-48);
335
- height: var(--spacing-48);
336
- margin-top: calc(-1 * var(--spacing-6));
337
- margin-bottom: calc(-1 * var(--spacing-6));
338
- }
339
-
340
- %ca-notification---inline & {
341
- margin-inline-end: calc(-1 * var(--spacing-12));
342
- }
343
-
344
- %ca-notification---toast & {
345
- margin-inline-end: -10px;
346
- }
347
-
348
- %ca-notification---global & {
349
- width: var(--spacing-48);
350
- height: var(--spacing-48);
351
- margin-top: calc(-1 * var(--spacing-24));
352
- margin-bottom: calc(-1 * var(--spacing-24));
353
- }
354
- }
355
-
356
- %ca-notification__cancel__label {
357
- position: absolute;
358
- width: 1px;
359
- height: 1px;
360
- padding: 0;
361
- margin: -1px;
362
- overflow: hidden;
363
- clip-path: rect(0 0 0 0);
364
- border: 0;
365
- }
366
- }
@@ -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
- }
@@ -1,74 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/color';
2
- @import '~@kaizen/design-tokens/sass/typography';
3
-
4
- @layer kz-components {
5
- .text {
6
- --icon-vertical-align: text-bottom;
7
-
8
- margin: 0;
9
-
10
- strong {
11
- font-weight: $typography-paragraph-bold-font-weight;
12
- }
13
- }
14
-
15
- .intro-lede {
16
- font-family: $typography-paragraph-intro-lede-font-family;
17
- font-weight: $typography-paragraph-intro-lede-font-weight;
18
- font-size: $typography-paragraph-intro-lede-font-size;
19
- line-height: $typography-paragraph-intro-lede-line-height;
20
- letter-spacing: $typography-paragraph-intro-lede-letter-spacing;
21
- }
22
-
23
- .body {
24
- font-family: $typography-paragraph-body-font-family;
25
- font-weight: $typography-paragraph-body-font-weight;
26
- font-size: $typography-paragraph-body-font-size;
27
- line-height: $typography-paragraph-body-line-height;
28
- letter-spacing: $typography-paragraph-body-letter-spacing;
29
- }
30
-
31
- .small {
32
- font-family: $typography-paragraph-small-font-family;
33
- font-weight: $typography-paragraph-small-font-weight;
34
- font-size: $typography-paragraph-small-font-size;
35
- line-height: $typography-paragraph-small-line-height;
36
- letter-spacing: $typography-paragraph-small-letter-spacing;
37
- }
38
-
39
- .extra-small {
40
- font-family: $typography-paragraph-extra-small-font-family;
41
- font-weight: $typography-paragraph-extra-small-font-weight;
42
- font-size: $typography-paragraph-extra-small-font-size;
43
- line-height: $typography-paragraph-extra-small-line-height;
44
- letter-spacing: $typography-paragraph-extra-small-letter-spacing;
45
- }
46
-
47
- .dark {
48
- color: $color-purple-800;
49
- opacity: 100%;
50
- }
51
-
52
- .dark-reduced-opacity {
53
- color: $color-purple-800;
54
- opacity: 70%;
55
- }
56
-
57
- .white {
58
- color: $color-white;
59
- opacity: 100%;
60
- }
61
-
62
- .white-reduced-opacity {
63
- color: $color-white;
64
- opacity: 80%;
65
- }
66
-
67
- .positive {
68
- color: $color-green-600;
69
- }
70
-
71
- .negative {
72
- color: $color-red-600;
73
- }
74
- }