@kaizen/components 2.4.0 → 2.5.1

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 (150) hide show
  1. package/dist/cjs/src/Heading/Heading.cjs +1 -1
  2. package/dist/cjs/src/Heading/Heading.module.css.cjs +22 -0
  3. package/dist/cjs/src/Label/Label.cjs +1 -1
  4. package/dist/cjs/src/Label/Label.module.css.cjs +16 -0
  5. package/dist/cjs/src/LabelledMessage/LabelledMessage.cjs +1 -1
  6. package/dist/cjs/src/LabelledMessage/LabelledMessage.module.css.cjs +7 -0
  7. package/dist/cjs/src/Notification/InlineNotification/InlineNotification.cjs +1 -1
  8. package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.cjs +1 -1
  9. package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.cjs → ToastNotificationsList.module.css.cjs} +1 -1
  10. package/dist/cjs/src/Notification/subcomponents/CancelButton/CancelButton.cjs +1 -1
  11. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.cjs +1 -1
  12. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.cjs +29 -0
  13. package/dist/cjs/src/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +1 -1
  14. package/dist/cjs/src/Select/Select.cjs +9 -7
  15. package/dist/cjs/src/Text/Text.cjs +1 -1
  16. package/dist/cjs/src/Text/Text.module.css.cjs +16 -0
  17. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +1 -1
  18. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.cjs +13 -0
  19. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +1 -1
  20. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.cjs +9 -0
  21. package/dist/cjs/src/Tooltip/OverlayArrow.cjs +1 -1
  22. package/dist/cjs/src/Tooltip/OverlayArrow.module.css.cjs +7 -0
  23. package/dist/cjs/src/Tooltip/Tooltip.cjs +1 -1
  24. package/dist/cjs/src/Tooltip/Tooltip.module.css.cjs +7 -0
  25. package/dist/esm/src/Heading/Heading.mjs +1 -1
  26. package/dist/esm/src/Heading/Heading.module.css.mjs +20 -0
  27. package/dist/esm/src/Label/Label.mjs +1 -1
  28. package/dist/esm/src/Label/Label.module.css.mjs +14 -0
  29. package/dist/esm/src/LabelledMessage/LabelledMessage.mjs +1 -1
  30. package/dist/esm/src/LabelledMessage/LabelledMessage.module.css.mjs +5 -0
  31. package/dist/esm/src/Notification/InlineNotification/InlineNotification.mjs +1 -1
  32. package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +1 -1
  33. package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.mjs → ToastNotificationsList.module.css.mjs} +1 -1
  34. package/dist/esm/src/Notification/subcomponents/CancelButton/CancelButton.mjs +1 -1
  35. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.mjs +1 -1
  36. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.mjs +27 -0
  37. package/dist/esm/src/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +1 -1
  38. package/dist/esm/src/Select/Select.mjs +9 -7
  39. package/dist/esm/src/Text/Text.mjs +1 -1
  40. package/dist/esm/src/Text/Text.module.css.mjs +14 -0
  41. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +1 -1
  42. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.mjs +11 -0
  43. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +1 -1
  44. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.mjs +7 -0
  45. package/dist/esm/src/Tooltip/OverlayArrow.mjs +1 -1
  46. package/dist/esm/src/Tooltip/OverlayArrow.module.css.mjs +5 -0
  47. package/dist/esm/src/Tooltip/Tooltip.mjs +1 -1
  48. package/dist/esm/src/Tooltip/Tooltip.module.css.mjs +5 -0
  49. package/dist/styles.css +726 -520
  50. package/locales/ar.json +4 -0
  51. package/locales/bg.json +4 -0
  52. package/locales/cs.json +4 -0
  53. package/locales/cy.json +4 -0
  54. package/locales/da.json +4 -0
  55. package/locales/de.json +4 -0
  56. package/locales/el.json +4 -0
  57. package/locales/en-GB.json +4 -0
  58. package/locales/en.json +4 -0
  59. package/locales/es-419.json +4 -0
  60. package/locales/es.json +4 -0
  61. package/locales/et.json +4 -0
  62. package/locales/fi.json +4 -0
  63. package/locales/fr-CA.json +4 -0
  64. package/locales/fr.json +4 -0
  65. package/locales/he.json +4 -0
  66. package/locales/hi.json +4 -0
  67. package/locales/ht.json +4 -0
  68. package/locales/hu.json +4 -0
  69. package/locales/id.json +4 -0
  70. package/locales/it.json +4 -0
  71. package/locales/ja.json +4 -0
  72. package/locales/km-KH.json +4 -0
  73. package/locales/ko.json +4 -0
  74. package/locales/lt.json +4 -0
  75. package/locales/lv.json +4 -0
  76. package/locales/mi.json +4 -0
  77. package/locales/ms.json +4 -0
  78. package/locales/nb.json +4 -0
  79. package/locales/nl.json +4 -0
  80. package/locales/pl.json +4 -0
  81. package/locales/pt-BR.json +4 -0
  82. package/locales/pt.json +4 -0
  83. package/locales/ro.json +4 -0
  84. package/locales/ru.json +4 -0
  85. package/locales/si-LK.json +4 -0
  86. package/locales/sk.json +4 -0
  87. package/locales/sr.json +4 -0
  88. package/locales/sv.json +4 -0
  89. package/locales/th.json +4 -0
  90. package/locales/tl.json +4 -0
  91. package/locales/tr.json +4 -0
  92. package/locales/uk.json +4 -0
  93. package/locales/vi.json +4 -0
  94. package/locales/zh-TW.json +4 -0
  95. package/locales/zh.json +4 -0
  96. package/package.json +1 -1
  97. package/src/Content/Content.module.css +1 -1
  98. package/src/Heading/Heading.module.css +111 -0
  99. package/src/Heading/Heading.tsx +1 -1
  100. package/src/Label/Label.module.css +97 -0
  101. package/src/Label/Label.tsx +1 -1
  102. package/src/Label/_docs/Label.stickersheet.stories.tsx +9 -4
  103. package/src/LabelledMessage/{LabelledMessage.module.scss → LabelledMessage.module.css} +1 -3
  104. package/src/LabelledMessage/LabelledMessage.tsx +1 -1
  105. package/src/Notification/InlineNotification/InlineNotification.tsx +1 -1
  106. package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +1 -1
  107. package/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss → ToastNotificationsList.module.css} +6 -8
  108. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx +1 -1
  109. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +1 -1
  110. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css +392 -0
  111. package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +1 -1
  112. package/src/Notification/subcomponents/NotificationHeading/NotificationHeading.tsx +1 -1
  113. package/src/Select/Select.tsx +8 -6
  114. package/src/Text/Text.module.css +71 -0
  115. package/src/Text/Text.tsx +1 -1
  116. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css +141 -0
  117. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
  118. package/src/ToggleSwitch/ToggleSwitchField/{ToggleSwitchField.module.scss → ToggleSwitchField.module.css} +1 -3
  119. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.tsx +1 -1
  120. package/src/Tooltip/OverlayArrow.module.css +45 -0
  121. package/src/Tooltip/OverlayArrow.tsx +1 -1
  122. package/src/Tooltip/Tooltip.module.css +62 -0
  123. package/src/Tooltip/Tooltip.tsx +1 -1
  124. package/dist/cjs/src/Heading/Heading.module.scss.cjs +0 -22
  125. package/dist/cjs/src/Label/Label.module.scss.cjs +0 -15
  126. package/dist/cjs/src/LabelledMessage/LabelledMessage.module.scss.cjs +0 -7
  127. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.cjs +0 -29
  128. package/dist/cjs/src/Text/Text.module.scss.cjs +0 -16
  129. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.cjs +0 -13
  130. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.cjs +0 -9
  131. package/dist/cjs/src/Tooltip/OverlayArrow.module.scss.cjs +0 -7
  132. package/dist/cjs/src/Tooltip/Tooltip.module.scss.cjs +0 -7
  133. package/dist/esm/src/Heading/Heading.module.scss.mjs +0 -20
  134. package/dist/esm/src/Label/Label.module.scss.mjs +0 -13
  135. package/dist/esm/src/LabelledMessage/LabelledMessage.module.scss.mjs +0 -5
  136. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.mjs +0 -27
  137. package/dist/esm/src/Text/Text.module.scss.mjs +0 -14
  138. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.mjs +0 -11
  139. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.mjs +0 -7
  140. package/dist/esm/src/Tooltip/OverlayArrow.module.scss.mjs +0 -5
  141. package/dist/esm/src/Tooltip/Tooltip.module.scss.mjs +0 -5
  142. package/src/Content/_variables.css +0 -5
  143. package/src/Heading/Heading.module.scss +0 -115
  144. package/src/Label/Label.module.scss +0 -105
  145. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +0 -138
  146. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +0 -366
  147. package/src/Text/Text.module.scss +0 -74
  148. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -139
  149. package/src/Tooltip/OverlayArrow.module.scss +0 -45
  150. package/src/Tooltip/Tooltip.module.scss +0 -68
@@ -1,45 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/shadow';
2
- @import '~@kaizen/design-tokens/sass/color';
3
-
4
- @layer kz-components {
5
- .overlayArrow {
6
- display: flex;
7
-
8
- // for correct arrow positioning with rounded corners we need to do bit trickery here
9
- // the positioning is done in js in RAC and works by first getting size of arrow without data-placement, and isn't recomputed after update
10
- // so we first set padding on arrow from all sides (that'll be used for start position computation)
11
- // and then we remove it from the oposite axis
12
- padding: 8px;
13
-
14
- &[data-placement='top'],
15
- &[data-placement='bottom'] {
16
- padding: 0 8px;
17
- }
18
-
19
- &[data-placement='left'],
20
- &[data-placement='right'] {
21
- padding: 8px 0;
22
- }
23
-
24
- path {
25
- fill: $color-purple-800;
26
- box-shadow: $shadow-small-box-shadow;
27
- }
28
-
29
- &[data-placement='right'] svg {
30
- transform: rotate(90deg);
31
- }
32
-
33
- &[data-placement='bottom'] svg {
34
- transform: rotate(180deg);
35
- }
36
-
37
- &[data-placement='left'] svg {
38
- transform: rotate(270deg);
39
- }
40
-
41
- &.reversed path {
42
- fill: $color-white;
43
- }
44
- }
45
- }
@@ -1,68 +0,0 @@
1
- @import '~@kaizen/design-tokens/sass/shadow';
2
- @import '~@kaizen/design-tokens/sass/border';
3
- @import '~@kaizen/design-tokens/sass/color';
4
- @import '~@kaizen/design-tokens/sass/animation';
5
- @import '~@kaizen/design-tokens/sass/typography';
6
- @import '~@kaizen/design-tokens/sass/spacing';
7
-
8
- @layer kz-components {
9
- .tooltip {
10
- max-width: 200px;
11
- padding: $spacing-8 $spacing-12;
12
- color: $color-white;
13
- text-align: center;
14
- font-family: $typography-paragraph-extra-small-font-family;
15
- font-size: $typography-paragraph-extra-small-font-size;
16
- font-weight: $typography-paragraph-extra-small-font-weight;
17
- letter-spacing: $typography-paragraph-extra-small-letter-spacing;
18
- line-height: $typography-paragraph-extra-small-line-height;
19
- border-radius: $border-solid-border-radius;
20
- box-shadow: $shadow-small-box-shadow;
21
- background-color: $color-purple-800;
22
- text-wrap: pretty;
23
-
24
- /* fixes FF gap */
25
- transform: translate3d(0, 0, 0);
26
-
27
- &.reversed {
28
- background-color: $color-white;
29
- color: $color-purple-800;
30
- }
31
-
32
- &[data-placement='top'] {
33
- --origin: translateY(4px);
34
- }
35
-
36
- &[data-placement='bottom'] {
37
- --origin: translateY(-4px);
38
- }
39
-
40
- &[data-placement='right'] {
41
- --origin: translateX(-4px);
42
- }
43
-
44
- &[data-placement='left'] {
45
- --origin: translateX(4px);
46
- }
47
-
48
- &[data-entering] {
49
- animation: slide $animation-duration-fast;
50
- }
51
-
52
- &[data-exiting] {
53
- animation: slide $animation-duration-fast reverse $animation-easing-function-ease-in;
54
- }
55
- }
56
- }
57
-
58
- @keyframes slide {
59
- from {
60
- transform: var(--origin);
61
- opacity: 0;
62
- }
63
-
64
- to {
65
- transform: translateY(0);
66
- opacity: 1;
67
- }
68
- }