@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,27 +0,0 @@
1
- var styles = {
2
- "notification": "GenericNotification-module_notification__-JP1M",
3
- "inline": "GenericNotification-module_inline__OciO5",
4
- "toast": "GenericNotification-module_toast__GOVfC",
5
- "global": "GenericNotification-module_global__Weka-",
6
- "security": "GenericNotification-module_security__QTALa",
7
- "hidden": "GenericNotification-module_hidden__WJjct",
8
- "noBottomMargin": "GenericNotification-module_noBottomMargin__28nF8",
9
- "persistent": "GenericNotification-module_persistent__O7bgI",
10
- "subtle": "GenericNotification-module_subtle__kPns9",
11
- "icon": "GenericNotification-module_icon__SDb8v",
12
- "textContainer": "GenericNotification-module_textContainer__Avpbk",
13
- "forceMultiline": "GenericNotification-module_forceMultiline__JcVA4",
14
- "title": "GenericNotification-module_title__dvQOr",
15
- "text": "GenericNotification-module_text__X-5ld",
16
- "cancel": "GenericNotification-module_cancel__c6wky",
17
- "disabled": "GenericNotification-module_disabled__WGBhD",
18
- "hover": "GenericNotification-module_hover__hUURd",
19
- "active": "GenericNotification-module_active__-6ahb",
20
- "cancelLabel": "GenericNotification-module_cancelLabel__HJzsk",
21
- "notificationTitle": "GenericNotification-module_notificationTitle__Oaqb8",
22
- "success": "GenericNotification-module_success__oLGIP",
23
- "informative": "GenericNotification-module_informative__WLimi",
24
- "cautionary": "GenericNotification-module_cautionary__lneFu",
25
- "warning": "GenericNotification-module_warning__7275P"
26
- };
27
- 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,14 +0,0 @@
1
- var styles = {
2
- "text": "Text-module_text__Byo7R",
3
- "intro-lede": "Text-module_intro-lede__ENE72",
4
- "body": "Text-module_body__cO-XH",
5
- "small": "Text-module_small__uZNGn",
6
- "extra-small": "Text-module_extra-small__3g9eN",
7
- "dark": "Text-module_dark__-jDSk",
8
- "dark-reduced-opacity": "Text-module_dark-reduced-opacity__18nLo",
9
- "white": "Text-module_white__-yVD0",
10
- "white-reduced-opacity": "Text-module_white-reduced-opacity__i0veZ",
11
- "positive": "Text-module_positive__e-IKh",
12
- "negative": "Text-module_negative__agbge"
13
- };
14
- export { styles as default };
@@ -1,11 +0,0 @@
1
- var styles = {
2
- "checkbox": "ToggleSwitch-module_checkbox__ezWz3",
3
- "track": "ToggleSwitch-module_track__fcDMP",
4
- "disabled": "ToggleSwitch-module_disabled__3H-9R",
5
- "thumb": "ToggleSwitch-module_thumb__8PULV",
6
- "checkIcon": "ToggleSwitch-module_checkIcon__8iitB",
7
- "on": "ToggleSwitch-module_on__CQpkh",
8
- "off": "ToggleSwitch-module_off__OhSEP",
9
- "reversed": "ToggleSwitch-module_reversed__Q3-iM"
10
- };
11
- export { styles as default };
@@ -1,7 +0,0 @@
1
- var styles = {
2
- "container": "ToggleSwitchField-module_container__e7TXD",
3
- "fullWidth": "ToggleSwitchField-module_fullWidth__ybDf-",
4
- "inner": "ToggleSwitchField-module_inner__9-O0m",
5
- "on": "ToggleSwitchField-module_on__HQOkN"
6
- };
7
- export { styles as default };
@@ -1,5 +0,0 @@
1
- var styles = {
2
- "overlayArrow": "OverlayArrow-module_overlayArrow__UoDjH",
3
- "reversed": "OverlayArrow-module_reversed__N3t-k"
4
- };
5
- export { styles as default };
@@ -1,5 +0,0 @@
1
- var styles = {
2
- "tooltip": "Tooltip-module_tooltip__NMZ65",
3
- "reversed": "Tooltip-module_reversed__aTr5h"
4
- };
5
- 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,115 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/color';
2
- @import '~@kaizen/design-tokens/sass/typography';
3
- @import '../../styles/foundation/layers';
4
-
5
- @layer reset {
6
- .heading {
7
- margin: 0;
8
- }
9
- }
10
-
11
- @layer kz-components {
12
- .display-0 {
13
- font-family: $typography-display-0-font-family;
14
- font-weight: $typography-display-0-font-weight;
15
- font-size: $typography-display-0-font-size;
16
- line-height: $typography-display-0-line-height;
17
- letter-spacing: $typography-display-0-letter-spacing;
18
- }
19
-
20
- .composable-header-title {
21
- font-family: $typography-display-0-font-family; // Tiempos
22
- font-weight: 500; // Medium
23
- font-size: $typography-heading-1-font-size;
24
- line-height: $typography-heading-1-line-height;
25
- letter-spacing: $typography-heading-1-letter-spacing;
26
- }
27
-
28
- .heading-1 {
29
- font-family: $typography-heading-1-font-family;
30
- font-weight: $typography-heading-1-font-weight;
31
- font-size: $typography-heading-1-font-size;
32
- line-height: $typography-heading-1-line-height;
33
- letter-spacing: $typography-heading-1-letter-spacing;
34
- }
35
-
36
- .heading-2 {
37
- font-family: $typography-heading-2-font-family;
38
- font-weight: $typography-heading-2-font-weight;
39
- font-size: $typography-heading-2-font-size;
40
- line-height: $typography-heading-2-line-height;
41
- letter-spacing: $typography-heading-2-letter-spacing;
42
- }
43
-
44
- .heading-3 {
45
- font-family: $typography-heading-3-font-family;
46
- font-weight: $typography-heading-3-font-weight;
47
- font-size: $typography-heading-3-font-size;
48
- line-height: $typography-heading-3-line-height;
49
- letter-spacing: $typography-heading-3-letter-spacing;
50
- }
51
-
52
- .heading-4 {
53
- font-family: $typography-heading-4-font-family;
54
- font-weight: $typography-heading-4-font-weight;
55
- font-size: $typography-heading-4-font-size;
56
- line-height: $typography-heading-4-line-height;
57
- letter-spacing: $typography-heading-4-letter-spacing;
58
- }
59
-
60
- .heading-5 {
61
- font-family: $typography-heading-5-font-family;
62
- font-weight: $typography-heading-5-font-weight;
63
- font-size: $typography-heading-5-font-size;
64
- line-height: $typography-heading-5-line-height;
65
- letter-spacing: $typography-heading-5-letter-spacing;
66
- }
67
-
68
- .heading-6 {
69
- font-family: $typography-heading-6-font-family;
70
- font-weight: $typography-heading-6-font-weight;
71
- font-size: $typography-heading-6-font-size;
72
- line-height: $typography-heading-6-line-height;
73
- letter-spacing: $typography-heading-6-letter-spacing;
74
- }
75
-
76
- .dark {
77
- color: $color-purple-800;
78
- opacity: 100%;
79
- }
80
-
81
- .dark-reduced-opacity {
82
- color: $color-purple-800;
83
- opacity: 70%;
84
- }
85
-
86
- .white {
87
- color: $color-white;
88
- opacity: 100%;
89
- }
90
-
91
- .white-reduced-opacity {
92
- color: $color-white;
93
- opacity: 80%;
94
- }
95
-
96
- .positive {
97
- &.small {
98
- color: $color-green-600;
99
- }
100
-
101
- &.large {
102
- color: $color-green-500;
103
- }
104
- }
105
-
106
- .negative {
107
- &.small {
108
- color: $color-red-600;
109
- }
110
-
111
- &.large {
112
- color: $color-red-500;
113
- }
114
- }
115
- }
@@ -1,105 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/spacing';
2
- @import '~@kaizen/design-tokens/sass/typography';
3
- @import '~@kaizen/design-tokens/sass/color';
4
- @import '../../styles/utils/form-variables';
5
-
6
- @layer kz-components {
7
- $label-start-margin: $spacing-xs;
8
-
9
- .label {
10
- --icon-vertical-align: text-bottom;
11
- }
12
-
13
- .label,
14
- :global(.ideal-sans) .label {
15
- // override Murmur global styles :(
16
- opacity: inherit;
17
- color: $dt-color-form-text-color;
18
- visibility: visible;
19
- width: 100%;
20
- text-align: start;
21
- }
22
-
23
- .reversed {
24
- color: $color-white;
25
-
26
- a {
27
- color: $color-white;
28
-
29
- &:hover {
30
- text-decoration: none;
31
- }
32
- }
33
- }
34
-
35
- .disabled {
36
- opacity: 30%;
37
- }
38
-
39
- ///////////////////////////////////////////////////
40
- // LABEL TYPES
41
- ///////////////////////////////////////////////////
42
-
43
- // This is to override bootstrap styles. Remove when appropriate
44
- .text,
45
- :global(.ideal-sans) .text {
46
- font-family: $typography-heading-6-font-family;
47
- font-size: $typography-heading-6-font-size;
48
- line-height: $typography-heading-6-line-height;
49
- letter-spacing: $typography-heading-6-letter-spacing;
50
- font-weight: $typography-heading-6-font-weight;
51
- }
52
-
53
- %checkboxOrRadio,
54
- :global(.ideal-sans) %checkboxOrRadio {
55
- display: flex;
56
- font-family: $typography-paragraph-body-font-family;
57
- font-size: $typography-paragraph-body-font-size;
58
- line-height: $typography-paragraph-body-line-height;
59
- letter-spacing: $typography-paragraph-body-letter-spacing;
60
- font-weight: $typography-paragraph-body-font-weight;
61
- }
62
-
63
- .checkbox {
64
- @extend %checkboxOrRadio;
65
- }
66
-
67
- .radio {
68
- @extend %checkboxOrRadio;
69
- }
70
-
71
- .toggle {
72
- display: flex;
73
- justify-content: space-between;
74
- align-items: center;
75
- font-family: $typography-paragraph-body-font-family;
76
- font-size: $typography-paragraph-body-font-size;
77
- line-height: $typography-paragraph-body-line-height;
78
- letter-spacing: $typography-paragraph-body-letter-spacing;
79
- font-weight: $typography-paragraph-body-font-weight;
80
- }
81
-
82
- .checkbox,
83
- .radio,
84
- .toggle {
85
- // apply padding when label is inline with form control
86
- .prependedLabel {
87
- order: -1; // place label before the control
88
- margin-inline-end: $label-start-margin;
89
- }
90
-
91
- .appendedLabel {
92
- margin-inline-start: $label-start-margin;
93
- }
94
- }
95
-
96
- .prominent {
97
- font-family: $typography-heading-4-font-family;
98
- font-weight: $typography-heading-4-font-weight;
99
- font-size: $typography-heading-4-font-size;
100
- line-height: $typography-heading-4-line-height;
101
- letter-spacing: $typography-heading-4-letter-spacing;
102
- display: block;
103
- margin-bottom: $spacing-xs;
104
- }
105
- }
@@ -1,138 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/typography';
2
- @import '~@kaizen/design-tokens/sass/border';
3
- @import '~@kaizen/design-tokens/sass/color';
4
- @import '~@kaizen/design-tokens/sass/spacing';
5
- @import './mixins';
6
-
7
- @layer kz-components {
8
- .notification {
9
- @extend %ca-notification;
10
- }
11
-
12
- // Structure
13
- .icon {
14
- @extend %ca-notification__icon;
15
-
16
- color: var(--icon-color);
17
- }
18
-
19
- .textContainer {
20
- @extend %ca-notification__text-container;
21
- }
22
-
23
- .title {
24
- @extend %ca-notification__title;
25
- }
26
-
27
- .text {
28
- @extend %ca-notification__text;
29
- }
30
-
31
- .cancel {
32
- @extend %ca-notification__cancel;
33
-
34
- position: relative;
35
- display: flex;
36
- align-items: center;
37
- justify-content: center;
38
- border-radius: var(--border-solid-border-radius);
39
-
40
- &:focus-visible {
41
- outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
42
- var(--color-blue-500);
43
- outline-offset: -4px;
44
- }
45
- }
46
-
47
- .cancelLabel {
48
- @extend %ca-notification__cancel__label;
49
- }
50
-
51
- .notificationTitle {
52
- top: 0.42em;
53
- position: relative;
54
- margin-inline-end: $spacing-6;
55
- line-height: $typography-heading-6-line-height;
56
- }
57
-
58
- @container (max-width: 25rem) {
59
- .notificationTitle {
60
- width: 100%;
61
- }
62
- }
63
-
64
- // Animation
65
- .hidden {
66
- @extend %ca-notification---hidden;
67
- }
68
-
69
- // Variant
70
- .inline {
71
- @extend %ca-notification---inline;
72
- }
73
-
74
- .toast {
75
- @extend %ca-notification---toast;
76
- }
77
-
78
- .global {
79
- @extend %ca-notification---global;
80
- }
81
-
82
- // ------------------------------
83
- // Variant
84
- // ------------------------------
85
- .success {
86
- background: $color-green-100;
87
- border-color: var(--color-green-500);
88
- color: $color-purple-800;
89
-
90
- --icon-color: var(--color-green-500);
91
- }
92
-
93
- .informative {
94
- background: $color-blue-100;
95
- border-color: var(--color-blue-500);
96
- color: $color-purple-800;
97
-
98
- --icon-color: var(--color-blue-500);
99
- }
100
-
101
- .cautionary {
102
- background: $color-yellow-100;
103
- border-color: var(--color-yellow-700);
104
- color: $color-purple-800;
105
-
106
- --icon-color: var(--color-yellow-700);
107
- }
108
-
109
- .warning {
110
- background: $color-red-100;
111
- border-color: var(--color-red-500);
112
- color: $color-purple-800;
113
-
114
- --icon-color: var(--color-red-500);
115
- }
116
-
117
- .security {
118
- @extend %ca-notification---cautionary;
119
- }
120
-
121
- // Modifiers
122
- .noBottomMargin {
123
- @extend %ca-notification---noBottomMargin;
124
- }
125
-
126
- .forceMultiline {
127
- @extend %ca-notification---forceMultiline;
128
- }
129
-
130
- .persistent {
131
- @extend %ca-notification---persistent;
132
- }
133
-
134
- // this is only for inline notifications, but is here due to specificity issues in the _styles.scss file
135
- .subtle {
136
- @extend %ca-notification---subtle;
137
- }
138
- }