@kaizen/components 1.70.8 → 1.70.10

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 (123) hide show
  1. package/dist/cjs/Avatar/Avatar.cjs +3 -3
  2. package/dist/cjs/Avatar/Avatar.module.css.cjs +20 -0
  3. package/dist/cjs/AvatarGroup/AvatarGroup.cjs +1 -1
  4. package/dist/cjs/AvatarGroup/AvatarGroup.module.css.cjs +11 -0
  5. package/dist/cjs/Badge/Badge.cjs +1 -1
  6. package/dist/cjs/Badge/Badge.module.css.cjs +14 -0
  7. package/dist/cjs/Brand/Brand.cjs +1 -1
  8. package/dist/cjs/Brand/{Brand.module.scss.cjs → Brand.module.css.cjs} +1 -1
  9. package/dist/cjs/BrandMoment/BrandMoment.cjs +1 -1
  10. package/dist/cjs/BrandMoment/BrandMoment.module.css.cjs +29 -0
  11. package/dist/cjs/ButtonGroup/ButtonGroup.cjs +1 -1
  12. package/dist/cjs/ButtonGroup/ButtonGroup.module.css.cjs +9 -0
  13. package/dist/esm/Avatar/Avatar.mjs +6 -6
  14. package/dist/esm/Avatar/Avatar.module.css.mjs +18 -0
  15. package/dist/esm/AvatarGroup/AvatarGroup.mjs +2 -2
  16. package/dist/esm/AvatarGroup/AvatarGroup.module.css.mjs +9 -0
  17. package/dist/esm/Badge/Badge.mjs +1 -1
  18. package/dist/esm/Badge/Badge.module.css.mjs +12 -0
  19. package/dist/esm/Brand/Brand.mjs +1 -1
  20. package/dist/esm/Brand/{Brand.module.scss.mjs → Brand.module.css.mjs} +1 -1
  21. package/dist/esm/BrandMoment/BrandMoment.mjs +6 -6
  22. package/dist/esm/BrandMoment/BrandMoment.module.css.mjs +27 -0
  23. package/dist/esm/Button/GenericButton/GenericButton.mjs +2 -2
  24. package/dist/esm/ButtonGroup/ButtonGroup.mjs +1 -1
  25. package/dist/esm/ButtonGroup/ButtonGroup.module.css.mjs +7 -0
  26. package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +2 -2
  27. package/dist/esm/DatePicker/DatePicker.mjs +1 -1
  28. package/dist/esm/DatePicker/subcomponents/DateInputField/DateInputField.mjs +1 -1
  29. package/dist/esm/DatePicker/utils/validateDate.mjs +3 -3
  30. package/dist/esm/DateRangePicker/DateRangePicker.mjs +1 -1
  31. package/dist/esm/EmptyState/EmptyState.mjs +2 -2
  32. package/dist/esm/FieldMessage/FieldMessage.mjs +1 -1
  33. package/dist/esm/Filter/Filter/Filter.mjs +1 -1
  34. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +2 -2
  35. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +2 -2
  36. package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +1 -1
  37. package/dist/esm/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.mjs +1 -1
  38. package/dist/esm/Filter/FilterDatePicker/utils/getDateValidationHandler.mjs +1 -1
  39. package/dist/esm/Filter/FilterDateRangePicker/FilterDateRangePicker.mjs +1 -1
  40. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.mjs +1 -1
  41. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.mjs +1 -1
  42. package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.mjs +1 -1
  43. package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.mjs +3 -3
  44. package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +1 -1
  45. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +4 -4
  46. package/dist/esm/Illustration/subcomponents/Base/Base.mjs +2 -2
  47. package/dist/esm/Input/InputRange/InputRange.mjs +1 -1
  48. package/dist/esm/Input/InputSearch/InputSearch.mjs +3 -3
  49. package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +1 -1
  50. package/dist/esm/Menu/subcomponents/StatelessMenu/StatelessMenu.mjs +1 -1
  51. package/dist/esm/Modal/ContextModal/ContextModal.mjs +1 -1
  52. package/dist/esm/Modal/GenericModal/GenericModal.mjs +1 -1
  53. package/dist/esm/MultiSelect/MultiSelect.mjs +1 -1
  54. package/dist/esm/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.mjs +1 -1
  55. package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +1 -1
  56. package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +1 -1
  57. package/dist/esm/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +2 -2
  58. package/dist/esm/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.mjs +1 -1
  59. package/dist/esm/Notification/subcomponents/GenericNotification/GenericNotification.mjs +3 -3
  60. package/dist/esm/Pagination/Pagination.mjs +2 -2
  61. package/dist/esm/Popover/Popover.mjs +3 -3
  62. package/dist/esm/ProgressBar/ProgressBar.mjs +1 -1
  63. package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +3 -3
  64. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.mjs +1 -1
  65. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.mjs +1 -1
  66. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.mjs +1 -1
  67. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/createReactTooltipWrapper.mjs +1 -1
  68. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/validation.mjs +1 -1
  69. package/dist/esm/SearchField/SearchField.mjs +1 -1
  70. package/dist/esm/Select/Select.mjs +1 -1
  71. package/dist/esm/Slider/Slider.mjs +1 -1
  72. package/dist/esm/Table/Table.mjs +15 -15
  73. package/dist/esm/Tabs/subcomponents/Tab.mjs +1 -1
  74. package/dist/esm/Tag/Tag.mjs +2 -2
  75. package/dist/esm/TextAreaField/TextAreaField.mjs +1 -1
  76. package/dist/esm/TextField/TextField.mjs +3 -3
  77. package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs +1 -1
  78. package/dist/esm/Tile/TileGrid/TileGrid.mjs +2 -2
  79. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +5 -5
  80. package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +12 -12
  81. package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +5 -5
  82. package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +5 -5
  83. package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +2 -2
  84. package/dist/esm/Tooltip/Tooltip.mjs +1 -1
  85. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +1 -1
  86. package/dist/esm/__rc__/Button/subcomponents/ButtonContent/ButtonContent.mjs +1 -1
  87. package/dist/esm/__rc__/Button/subcomponents/PendingContent/PendingContent.mjs +1 -1
  88. package/dist/esm/__rc__/Menu/MenuItem.mjs +2 -2
  89. package/dist/esm/__rc__/Select/Select.mjs +3 -3
  90. package/dist/esm/__rc__/Select/subcomponents/ListBoxSection/ListBoxSection.mjs +1 -1
  91. package/dist/esm/__rc__/Select/subcomponents/ListItem/ListItem.mjs +2 -2
  92. package/dist/esm/__rc__/Select/utils/transformSelectItemToCollectionElement.mjs +2 -2
  93. package/dist/esm/__rc__/Tabs/subcomponents/Tab/Tab.mjs +1 -1
  94. package/dist/esm/__rc__/Tooltip/Tooltip.mjs +1 -1
  95. package/dist/esm/utils/getNodeText.mjs +1 -1
  96. package/dist/styles.css +315 -277
  97. package/package.json +1 -1
  98. package/src/Avatar/Avatar.module.css +138 -0
  99. package/src/Avatar/Avatar.tsx +6 -3
  100. package/src/AvatarGroup/AvatarGroup.module.css +57 -0
  101. package/src/AvatarGroup/AvatarGroup.tsx +1 -1
  102. package/src/Badge/Badge.module.css +101 -0
  103. package/src/Badge/Badge.tsx +1 -1
  104. package/src/Brand/Brand.tsx +1 -1
  105. package/src/BrandMoment/{BrandMoment.module.scss → BrandMoment.module.css} +29 -50
  106. package/src/BrandMoment/BrandMoment.tsx +1 -1
  107. package/src/ButtonGroup/ButtonGroup.module.css +48 -0
  108. package/src/ButtonGroup/ButtonGroup.tsx +1 -1
  109. package/src/Tile/TileGrid/TileGrid.module.scss +2 -0
  110. package/dist/cjs/Avatar/Avatar.module.scss.cjs +0 -20
  111. package/dist/cjs/AvatarGroup/AvatarGroup.module.scss.cjs +0 -11
  112. package/dist/cjs/Badge/Badge.module.scss.cjs +0 -14
  113. package/dist/cjs/BrandMoment/BrandMoment.module.scss.cjs +0 -29
  114. package/dist/cjs/ButtonGroup/ButtonGroup.module.scss.cjs +0 -9
  115. package/dist/esm/Avatar/Avatar.module.scss.mjs +0 -18
  116. package/dist/esm/AvatarGroup/AvatarGroup.module.scss.mjs +0 -9
  117. package/dist/esm/Badge/Badge.module.scss.mjs +0 -12
  118. package/dist/esm/BrandMoment/BrandMoment.module.scss.mjs +0 -27
  119. package/dist/esm/ButtonGroup/ButtonGroup.module.scss.mjs +0 -7
  120. package/src/Avatar/Avatar.module.scss +0 -169
  121. package/src/AvatarGroup/AvatarGroup.module.scss +0 -79
  122. package/src/Badge/Badge.module.scss +0 -113
  123. /package/src/Brand/{Brand.module.scss → Brand.module.css} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.70.8",
3
+ "version": "1.70.10",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -0,0 +1,138 @@
1
+ .wrapper {
2
+ --avatar-x-y: 1.5rem;
3
+
4
+ background: var(--color-gray-300);
5
+ border-radius: 100%;
6
+ box-sizing: border-box;
7
+ overflow: hidden;
8
+ align-items: center;
9
+ display: flex;
10
+ justify-content: center;
11
+ width: var(--avatar-x-y);
12
+ height: var(--avatar-x-y);
13
+ box-shadow: var(--shadow-small-box-shadow);
14
+ border: 3px solid var(--color-white);
15
+ }
16
+
17
+ .small {
18
+ box-shadow: none;
19
+ border: none;
20
+
21
+ --avatar-x-y: 1.25rem;
22
+ }
23
+
24
+ .medium {
25
+ --avatar-x-y: 3rem;
26
+ }
27
+
28
+ .large {
29
+ --avatar-x-y: 4.5rem;
30
+ }
31
+
32
+ .xlarge {
33
+ --avatar-x-y: 6rem;
34
+ }
35
+
36
+ .xxlarge {
37
+ --avatar-x-y: 7.75rem;
38
+ }
39
+
40
+ /* Themes */
41
+ .personal {
42
+ background: var(--color-orange-100);
43
+ }
44
+
45
+ .otherUser {
46
+ background: var(--color-gray-300);
47
+ }
48
+
49
+ .company {
50
+ border: 0;
51
+ background: var(--color-white);
52
+ padding: var(--spacing-6);
53
+ border-radius: var(--border-solid-border-radius);
54
+ }
55
+
56
+ .small.company {
57
+ padding: 0;
58
+ }
59
+
60
+ .avatarImage {
61
+ width: 100%;
62
+ height: 100%;
63
+ object-fit: cover;
64
+ }
65
+
66
+ .avatarImage.loading {
67
+ display: none;
68
+ }
69
+
70
+ .companyAvatarImage {
71
+ object-fit: contain;
72
+ box-sizing: border-box;
73
+ border-radius: var(--spacing-4);
74
+ }
75
+
76
+ .fallbackIcon {
77
+ color: rgba(var(--color-purple-800-rgb), 0.7);
78
+ font-size: calc(var(--avatar-x-y) * 0.7);
79
+ }
80
+
81
+ .xlarge .fallbackIcon,
82
+ .xxlarge .fallbackIcon {
83
+ font-size: calc(var(--avatar-x-y) * 0.8);
84
+ }
85
+
86
+ .initials {
87
+ box-sizing: border-box;
88
+ color: var(--color-purple-800);
89
+ padding-left: 5px;
90
+ padding-right: 5px;
91
+ text-align: center;
92
+ width: 100%;
93
+ font-size: var(--typography-heading-3-font-size);
94
+ font-family: var(--typography-heading-1-font-family);
95
+ font-weight: var(--typography-heading-1-font-weight);
96
+ letter-spacing: var(--typography-heading-3-letter-spacing);
97
+ }
98
+
99
+ .initials.longName::before {
100
+ content: none;
101
+ }
102
+
103
+ .initials::before {
104
+ content: '';
105
+ display: block;
106
+ margin-top: -0.001em;
107
+ }
108
+
109
+ .wrapper .initials {
110
+ text-decoration: none;
111
+ speak-as: spell-out;
112
+
113
+ /* to override materialize.css global styling in performance-ui,
114
+ * which sets a border-bottom on abbr tags
115
+ */
116
+ border-bottom: none;
117
+ }
118
+
119
+ .xlarge .initials,
120
+ .xxlarge .initials {
121
+ font-size: var(--typography-heading-1-font-size);
122
+ letter-spacing: var(--typography-heading-1-letter-spacing);
123
+ }
124
+
125
+ .medium .initials {
126
+ font-size: var(--typography-heading-5-font-size);
127
+ }
128
+
129
+ .small .initials {
130
+ font-size: 0.5rem;
131
+ }
132
+
133
+ .small .initials,
134
+ .medium .initials {
135
+ margin-bottom: -1px;
136
+ font-weight: var(--typography-heading-5-font-weight);
137
+ letter-spacing: var(--typography-heading-5-letter-spacing);
138
+ }
@@ -3,7 +3,7 @@ import classnames from 'classnames'
3
3
  import { Textfit } from 'react-textfit'
4
4
  import { Icon } from '~components/__rc__/Icon'
5
5
  import { type OverrideClassName } from '~components/types/OverrideClassName'
6
- import styles from './Avatar.module.scss'
6
+ import styles from './Avatar.module.css'
7
7
 
8
8
  export type AvatarSizes = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'
9
9
 
@@ -153,14 +153,17 @@ export const Avatar = ({
153
153
  isCompany && styles.company,
154
154
  isPersonal && styles.personal,
155
155
  isOtherUser && styles.otherUser,
156
- (avatarState === 'loading' || avatarState === 'error') && styles.loading,
157
156
  )}
158
157
  {...restProps}
159
158
  >
160
159
  {avatarState !== 'none' && (
161
160
  <img
162
161
  ref={image}
163
- className={classnames(styles.avatarImage, isCompany && styles.companyAvatarImage)}
162
+ className={classnames(
163
+ styles.avatarImage,
164
+ isCompany && styles.companyAvatarImage,
165
+ (avatarState === 'loading' || avatarState === 'error') && styles.loading,
166
+ )}
164
167
  src={avatarSrc}
165
168
  onError={onImageFailure}
166
169
  onLoad={onImageSuccess}
@@ -0,0 +1,57 @@
1
+ .AvatarGroup {
2
+ display: inline-flex;
3
+ list-style: none;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ .AvatarCounter {
9
+ direction: ltr;
10
+ align-items: center;
11
+ background: var(--color-gray-300);
12
+ border: 3px solid var(--color-white);
13
+ border-radius: 100%;
14
+ box-sizing: border-box;
15
+ box-shadow: var(--shadow-small-box-shadow);
16
+ display: flex;
17
+ justify-content: center;
18
+ overflow: hidden;
19
+ width: var(--avatar-x-y, 1.25rem);
20
+ height: var(--avatar-x-y, 1.25rem);
21
+ font-family: var(--typography-heading-5-font-family);
22
+ font-weight: var(--typography-heading-5-font-weight);
23
+ letter-spacing: var(--typography-heading-5-letter-spacing);
24
+ }
25
+
26
+ .AvatarGroupItem + .AvatarGroupItem {
27
+ margin-inline-start: calc((var(--avatar-x-y)) / -2);
28
+ }
29
+
30
+ .small {
31
+ --avatar-x-y: 1.25rem;
32
+ }
33
+
34
+ .small .AvatarCounter {
35
+ box-shadow: none;
36
+ border: none;
37
+ font-size: 0.5rem;
38
+ }
39
+
40
+ .medium {
41
+ --avatar-x-y: 3rem;
42
+ }
43
+
44
+ .medium .AvatarCounter {
45
+ font-size: var(--typography-heading-5-font-size);
46
+ }
47
+
48
+ .large {
49
+ --avatar-x-y: 4.5rem;
50
+ }
51
+
52
+ .large .AvatarCounter {
53
+ font-family: var(--typography-heading-3-font-family);
54
+ font-size: var(--typography-heading-3-font-size);
55
+ font-weight: var(--typography-heading-3-font-weight);
56
+ letter-spacing: var(--typography-heading-3-letter-spacing);
57
+ }
@@ -2,7 +2,7 @@ import React, { type HTMLAttributes } from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { Avatar, type CompanyAvatarProps, type GenericAvatarProps } from '~components/Avatar'
4
4
  import { type OverrideClassName } from '~components/types/OverrideClassName'
5
- import styles from './AvatarGroup.module.scss'
5
+ import styles from './AvatarGroup.module.css'
6
6
 
7
7
  export type AvatarGroupAvatarProps =
8
8
  | Omit<GenericAvatarProps, 'size'>
@@ -0,0 +1,101 @@
1
+ .badge {
2
+ border-radius: var(--spacing-12);
3
+ color: var(--color-purple-800);
4
+ display: inline-block;
5
+ position: relative;
6
+ font-family: var(--typography-paragraph-extra-small-font-family);
7
+ font-size: var(--typography-paragraph-extra-small-font-size);
8
+ font-weight: var(--typography-paragraph-bold-font-weight);
9
+ letter-spacing: var(--typography-paragraph-extra-small-letter-spacing);
10
+ line-height: var(--typography-paragraph-extra-small-line-height);
11
+ padding: 1px var(--spacing-6);
12
+ min-width: 8px;
13
+ text-align: center;
14
+ background-color: var(--badge-background-color, var(--color-gray-300));
15
+ }
16
+
17
+ .reversed {
18
+ --badge-background-color: rgba(var(--color-white-rgb), 0.1);
19
+
20
+ color: var(--color-white);
21
+ }
22
+
23
+ .reversed.active {
24
+ --badge-background-color: var(--color-green-300);
25
+
26
+ color: var(--color-purple-800);
27
+ }
28
+
29
+ .reversed.dark {
30
+ --badge-background-color: var(--color-purple-700);
31
+
32
+ color: var(--color-white);
33
+ }
34
+
35
+ .large {
36
+ display: inline-flex;
37
+ justify-content: center;
38
+ border-radius: var(--spacing-48);
39
+ font-size: var(--typography-data-medium-font-size);
40
+ line-height: var(--typography-data-medium-line-height);
41
+ letter-spacing: var(--typography-data-medium-letter-spacing);
42
+ padding: 2px 1.875rem;
43
+ width: 24px;
44
+ }
45
+
46
+ .default {
47
+ color: var(--color-purple-800);
48
+ }
49
+
50
+ .active {
51
+ --badge-background-color: var(--color-blue-500);
52
+
53
+ color: var(--color-white);
54
+ }
55
+
56
+ .dark {
57
+ --badge-background-color: rgba(var(--color-purple-700-rgb), 0.1);
58
+
59
+ color: var(--color-purple-800);
60
+ }
61
+
62
+ .dot {
63
+ --badge-background-color: var(--color-green-300);
64
+
65
+ padding: var(--spacing-6);
66
+ min-width: unset;
67
+ }
68
+
69
+ .dot.large {
70
+ padding: 1.875rem;
71
+ width: unset;
72
+ }
73
+
74
+ .animation {
75
+ display: inherit;
76
+ }
77
+
78
+ .animation .badge {
79
+ --badge-duration-timing: (var(--animation-duration-slow) / 2)
80
+ var(--animation-easing-function-ease-in);
81
+
82
+ transition:
83
+ transform var(--badge-duration-timing),
84
+ background-color var(--badge-duration-timing);
85
+ transform-origin: center;
86
+ transform: scale3d(1, 1, 1);
87
+ }
88
+
89
+ .animationOn .badge {
90
+ transform: scale3d(1.35, 1.35, 1.35);
91
+ }
92
+
93
+ .animationOn .badge.dark {
94
+ --badge-background-color: rgba(var(--color-purple-700-rgb), 0.2);
95
+ }
96
+
97
+ .animationOn .badge.active {
98
+ --badge-background-color: var(--color-blue-500);
99
+
100
+ color: var(--color-white);
101
+ }
@@ -1,7 +1,7 @@
1
1
  import React, { useLayoutEffect, useState, type HTMLAttributes } from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { type OverrideClassName } from '~components/types/OverrideClassName'
4
- import styles from './Badge.module.scss'
4
+ import styles from './Badge.module.css'
5
5
 
6
6
  type BadgeCommonProps = {
7
7
  children?: string
@@ -3,7 +3,7 @@ import classnames from 'classnames'
3
3
  import { type OverrideClassName } from '~components/types/OverrideClassName'
4
4
  import { assetUrl } from '~components/utils/hostedAssets'
5
5
  import { BrandCollectiveIntelligence } from './BrandCollectiveIntelligence'
6
- import styles from './Brand.module.scss'
6
+ import styles from './Brand.module.css'
7
7
 
8
8
  type MeaningfulSVG = { 'role': 'img'; 'aria-label': string; 'alt'?: never }
9
9
  type DecorativeSVG = { 'role': 'presentation'; 'aria-label'?: never; 'alt'?: never }
@@ -1,12 +1,3 @@
1
- @import '~@kaizen/design-tokens/sass/spacing';
2
- @import '~@kaizen/design-tokens/sass/color';
3
- @import '~@kaizen/design-tokens/sass/layout';
4
-
5
- $breakpoint-xl: 1366px; // TODO: create an xl breakpoint in design-tokens and replace this out
6
-
7
- // --------------------------------
8
- // Body
9
- // --------------------------------
10
1
  .body {
11
2
  width: 100%;
12
3
  min-height: 100vh;
@@ -38,67 +29,58 @@ $breakpoint-xl: 1366px; // TODO: create an xl breakpoint in design-tokens and re
38
29
  --brand-moment-background-color: var(--color-red-100);
39
30
  }
40
31
 
41
- // --------------------------------
42
- // Reusable container
43
- // --------------------------------
44
32
  .container {
45
- max-width: $layout-content-max-width;
33
+ max-width: var(--layout-content-max-width);
46
34
  margin: 0 auto;
47
- padding: 0 $spacing-md;
35
+ padding: 0 var(--spacing-24);
48
36
  }
49
37
 
50
- @media (min-width: $layout-breakpoints-large) {
38
+ @media (width >= 1080px) {
51
39
  .container {
52
- padding: 0 $spacing-xxl;
40
+ padding: 0 var(--spacing-64);
53
41
  }
54
42
  }
55
43
 
56
- @media (min-width: $breakpoint-xl) {
44
+ @media (width >= 1366px) {
57
45
  .container {
58
- padding: 0 $spacing-xxxxl;
46
+ padding: 0 var(--spacing-80);
59
47
  }
60
48
  }
61
49
 
62
- // --------------------------------
63
- // Header
64
- // --------------------------------
65
50
  .header {
66
51
  inline-size: 100%;
67
- margin-block-end: $spacing-md;
52
+ margin-block-end: var(--spacing-24);
68
53
  }
69
54
 
70
- // --------------------------------
71
- // Main
72
- // --------------------------------
73
55
  .main {
74
56
  flex: 1 0 auto;
75
57
  display: flex;
76
58
  align-items: center;
77
- margin-block-end: $spacing-xxl;
59
+ margin-block-end: var(--spacing-64);
78
60
  }
79
61
 
80
62
  .mainInner {
81
63
  display: grid;
82
64
  grid-template-columns: 1fr;
83
- gap: $spacing-xl $spacing-lg;
65
+ gap: var(--spacing-48) var(--spacing-32);
84
66
  align-items: center;
85
67
  }
86
68
 
87
- @media (min-width: $layout-breakpoints-medium) {
69
+ @media (width >= 768px) {
88
70
  .mainInner {
89
- row-gap: $spacing-xxl;
71
+ row-gap: var(--spacing-64);
90
72
  }
91
73
  }
92
74
 
93
- @media (min-width: $layout-breakpoints-large) {
75
+ @media (width >= 1080px) {
94
76
  .mainInner {
95
77
  grid-template-columns: 1fr 1fr;
96
78
  }
97
79
  }
98
80
 
99
- @media (min-width: $breakpoint-xl) {
81
+ @media (width >= 1366px) {
100
82
  .mainInner {
101
- column-gap: $spacing-xxxxl;
83
+ column-gap: var(--spacing-80);
102
84
  }
103
85
  }
104
86
 
@@ -124,33 +106,33 @@ $breakpoint-xl: 1366px; // TODO: create an xl breakpoint in design-tokens and re
124
106
  }
125
107
 
126
108
  .subtitle {
127
- margin-bottom: $spacing-12;
109
+ margin-bottom: var(--spacing-12);
128
110
  }
129
111
 
130
112
  .title {
131
- margin-bottom: $spacing-lg;
113
+ margin-bottom: var(--spacing-32);
132
114
  }
133
115
 
134
116
  .textBody {
135
- margin-bottom: $spacing-lg;
117
+ margin-bottom: var(--spacing-32);
136
118
  }
137
119
 
138
120
  .secondaryAction {
139
- margin-block-start: $spacing-sm;
121
+ margin-block-start: var(--spacing-12);
140
122
  }
141
123
 
142
- @media (min-width: $layout-breakpoints-medium) {
124
+ @media (width >= 768px) {
143
125
  .actions {
144
126
  display: flex;
145
127
  }
146
128
 
147
129
  .secondaryAction {
148
130
  margin-block-start: 0;
149
- margin-inline-start: $spacing-sm;
131
+ margin-inline-start: var(--spacing-12);
150
132
  }
151
133
  }
152
134
 
153
- @media (min-width: $layout-breakpoints-large) {
135
+ @media (width >= 1080px) {
154
136
  .left {
155
137
  justify-content: flex-end;
156
138
  }
@@ -160,9 +142,6 @@ $breakpoint-xl: 1366px; // TODO: create an xl breakpoint in design-tokens and re
160
142
  }
161
143
  }
162
144
 
163
- // --------------------------------
164
- // Footer
165
- // --------------------------------
166
145
  .footer {
167
146
  flex: 0 0 auto;
168
147
  }
@@ -170,10 +149,10 @@ $breakpoint-xl: 1366px; // TODO: create an xl breakpoint in design-tokens and re
170
149
  .footerInner {
171
150
  display: flex;
172
151
  flex-direction: column;
173
- border-block-start: 1px solid $color-purple-800;
174
- border-inline-start: 1px solid $color-purple-800;
175
- padding: $spacing-sm $spacing-md;
176
- margin-block-end: $spacing-lg;
152
+ border-block-start: 1px solid var(--color-purple-800);
153
+ border-inline-start: 1px solid var(--color-purple-800);
154
+ padding: var(--spacing-12) var(--spacing-24);
155
+ margin-block-end: var(--spacing-32);
177
156
  }
178
157
 
179
158
  .poweredByContainer {
@@ -185,18 +164,18 @@ $breakpoint-xl: 1366px; // TODO: create an xl breakpoint in design-tokens and re
185
164
  .footerTextContainer {
186
165
  flex: 1 1 auto;
187
166
  order: 1;
188
- margin-block-end: $spacing-md;
167
+ margin-block-end: var(--spacing-24);
189
168
  }
190
169
 
191
170
  .poweredByLogo {
192
- margin-inline-start: $spacing-xs;
171
+ margin-inline-start: var(--spacing-6);
193
172
 
194
173
  > img {
195
174
  max-width: 133px;
196
175
  }
197
176
  }
198
177
 
199
- @media (min-width: $layout-breakpoints-large) {
178
+ @media (width >= 1080px) {
200
179
  .footerInner {
201
180
  flex-direction: row;
202
181
  align-items: center;
@@ -205,7 +184,7 @@ $breakpoint-xl: 1366px; // TODO: create an xl breakpoint in design-tokens and re
205
184
  .footerTextContainer {
206
185
  order: initial;
207
186
  margin-block-end: 0;
208
- margin-inline-start: $spacing-md;
187
+ margin-inline-start: var(--spacing-24);
209
188
  }
210
189
 
211
190
  .poweredByContainer {
@@ -7,7 +7,7 @@ import { Text } from '~components/Text'
7
7
  import { type OverrideClassName } from '~components/types/OverrideClassName'
8
8
  import { assetUrl } from '~components/utils/hostedAssets'
9
9
  import { useMediaQueries } from '~components/utils/useMediaQueries'
10
- import styles from './BrandMoment.module.scss'
10
+ import styles from './BrandMoment.module.css'
11
11
 
12
12
  type DeprecatedMoodProps = {
13
13
  /** @deprecated Use `variant` instead */
@@ -0,0 +1,48 @@
1
+ .buttonGroup {
2
+ --focus-ring-offset: 1px;
3
+ --focus-ring-offset-inner: calc(-1 * var(--focus-ring-offset));
4
+
5
+ display: inline-flex;
6
+ }
7
+
8
+ .child {
9
+ border-radius: 0;
10
+ }
11
+
12
+ .child:focus-visible::after {
13
+ border-radius: 0;
14
+ }
15
+
16
+ .child:not(.firstChild) {
17
+ border-inline-start: 1px solid var(--color-blue-300);
18
+ }
19
+
20
+ .child:not(.firstChild, .lastChild) {
21
+ &:focus-visible {
22
+ &::after {
23
+ inset-inline: var(--focus-ring-offset-inner);
24
+ }
25
+ }
26
+ }
27
+
28
+ .child.firstChild {
29
+ border-start-start-radius: var(--border-focus-ring-border-radius);
30
+ border-end-start-radius: var(--border-focus-ring-border-radius);
31
+ }
32
+
33
+ .child.firstChild:focus-visible::after {
34
+ border-start-start-radius: var(--border-focus-ring-border-radius);
35
+ border-end-start-radius: var(--border-focus-ring-border-radius);
36
+ inset-inline-end: var(--focus-ring-offset-inner);
37
+ }
38
+
39
+ .child.lastChild {
40
+ border-start-end-radius: var(--border-focus-ring-border-radius);
41
+ border-end-end-radius: var(--border-focus-ring-border-radius);
42
+ }
43
+
44
+ .child.lastChild:focus-visible::after {
45
+ border-start-end-radius: var(--border-focus-ring-border-radius);
46
+ border-end-end-radius: var(--border-focus-ring-border-radius);
47
+ inset-inline-start: var(--focus-ring-offset-inner);
48
+ }
@@ -6,7 +6,7 @@ import {
6
6
  } from '~components/Filter/FilterButton/subcomponents/FilterButtonBase'
7
7
  import { Tooltip, type TooltipProps } from '~components/Tooltip'
8
8
  import { type OverrideClassName } from '~components/types/OverrideClassName'
9
- import styles from './ButtonGroup.module.scss'
9
+ import styles from './ButtonGroup.module.css'
10
10
 
11
11
  const isFilterButton = (node: React.ReactNode): node is React.ReactElement<FilterButtonBaseProps> =>
12
12
  React.isValidElement(node) && node.type === FilterButtonBase
@@ -4,6 +4,8 @@
4
4
 
5
5
  .grid {
6
6
  list-style-type: none;
7
+ padding-inline-start: 0;
8
+ margin-block: 0;
7
9
  display: grid;
8
10
  // the more we shave off the width here,
9
11
  // the less the tiles will grow when they lose one from the row
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "wrapper": "Avatar-module_wrapper__LY2q2",
5
- "small": "Avatar-module_small__PeksS",
6
- "personal": "Avatar-module_personal__2U7--",
7
- "otherUser": "Avatar-module_otherUser__b-drl",
8
- "company": "Avatar-module_company__2qtJE",
9
- "initials": "Avatar-module_initials__VDY2Q",
10
- "medium": "Avatar-module_medium__Vy3V8",
11
- "large": "Avatar-module_large__qiNWs",
12
- "xlarge": "Avatar-module_xlarge__Vx4IG",
13
- "xxlarge": "Avatar-module_xxlarge__oOoGq",
14
- "avatarImage": "Avatar-module_avatarImage__FuULy",
15
- "loading": "Avatar-module_loading__i9V-D",
16
- "companyAvatarImage": "Avatar-module_companyAvatarImage__7rlfG",
17
- "fallbackIcon": "Avatar-module_fallbackIcon__MPWxq",
18
- "longName": "Avatar-module_longName__31Yuf"
19
- };
20
- module.exports = styles;
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "AvatarGroup": "AvatarGroup-module_AvatarGroup__bdL0o",
5
- "AvatarCounter": "AvatarGroup-module_AvatarCounter__PKFzl",
6
- "small": "AvatarGroup-module_small__7uv8k",
7
- "AvatarGroupItem": "AvatarGroup-module_AvatarGroupItem__xQol-",
8
- "medium": "AvatarGroup-module_medium__af52y",
9
- "large": "AvatarGroup-module_large__HN9Yy"
10
- };
11
- module.exports = styles;
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "badge": "Badge-module_badge__CRtsW",
5
- "large": "Badge-module_large__0QOpY",
6
- "default": "Badge-module_default__k4Kcf",
7
- "active": "Badge-module_active__-e-i2",
8
- "reversed": "Badge-module_reversed__OgQLB",
9
- "dark": "Badge-module_dark__RH34a",
10
- "dot": "Badge-module_dot__BOKL1",
11
- "animation": "Badge-module_animation__NTy6C",
12
- "animationOn": "Badge-module_animationOn__nWK38"
13
- };
14
- module.exports = styles;