@kaizen/components 1.67.0 → 1.67.2

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 (43) hide show
  1. package/dist/cjs/TextField/TextField.cjs +2 -2
  2. package/dist/cjs/TextField/TextField.module.scss.cjs +4 -6
  3. package/dist/esm/TextField/TextField.mjs +2 -2
  4. package/dist/esm/TextField/TextField.module.scss.mjs +4 -6
  5. package/dist/styles.css +217 -430
  6. package/package.json +19 -19
  7. package/src/Avatar/Avatar.module.scss +4 -4
  8. package/src/Checkbox/Checkbox/Checkbox.module.scss +2 -2
  9. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +9 -10
  10. package/src/GuidanceBlock/GuidanceBlock.module.scss +4 -5
  11. package/src/Input/InputRange/InputRange.module.scss +4 -4
  12. package/src/Input/InputSearch/InputSearch.module.scss +21 -21
  13. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +7 -8
  14. package/src/Modal/ContextModal/ContextModal.module.scss +4 -4
  15. package/src/Modal/GenericModal/GenericModal.module.scss +8 -8
  16. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +2 -2
  17. package/src/Modal/InputEditModal/InputEditModal.module.scss +4 -4
  18. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +7 -8
  19. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +2 -2
  20. package/src/Select/Select.module.scss +7 -7
  21. package/src/Table/Table.module.scss +11 -7
  22. package/src/TextArea/TextArea.module.scss +4 -4
  23. package/src/TextField/TextField.module.scss +10 -36
  24. package/src/TextField/TextField.tsx +2 -4
  25. package/src/TextField/_docs/TextField.stickersheet.stories.tsx +9 -1
  26. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +7 -8
  27. package/src/TitleBlockZen/TitleBlockZen.module.scss +14 -21
  28. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +2 -2
  29. package/src/__actions__/Button/v1/Button/_docs/Button.mdx +1 -1
  30. package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +1 -1
  31. package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +1 -1
  32. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +1 -1
  33. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +1 -1
  34. package/src/__actions__/Button/v2/Button/_docs/Button.mdx +1 -1
  35. package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +1 -1
  36. package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +1 -1
  37. package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +1 -1
  38. package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +1 -1
  39. package/src/__actions__/Button/v3/_docs/Button.mdx +1 -1
  40. package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +1 -1
  41. package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +1 -1
  42. package/src/__actions__/Button/v3/_docs/Button.stories.tsx +1 -1
  43. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +1 -2
@@ -34,7 +34,7 @@ const StickerSheetTemplate: StickerSheetStory = {
34
34
  render: ({ isReversed }) => (
35
35
  <StickerSheet isReversed={isReversed}>
36
36
  <StickerSheet.Header
37
- headings={["Default", "Hover", "Active", "Focus"]}
37
+ headings={["Default", "Hover", "Active", "Focus", "Disabled"]}
38
38
  hasVerticalHeadings
39
39
  />
40
40
  <StickerSheet.Body>
@@ -71,6 +71,14 @@ const StickerSheetTemplate: StickerSheetStory = {
71
71
  validationMessage="A valid question"
72
72
  data-sb-pseudo-styles="focus"
73
73
  />
74
+ <TextFieldExampleGroup
75
+ reversed={isReversed}
76
+ labelText="TextField"
77
+ description="A short description"
78
+ status={status}
79
+ validationMessage="A valid question"
80
+ disabled
81
+ />
74
82
  </StickerSheet.Row>
75
83
  ))}
76
84
  </StickerSheet.Body>
@@ -13,19 +13,18 @@ $tilePaddingTop: $spacing-xl;
13
13
  }
14
14
 
15
15
  .tile {
16
+ position: relative;
16
17
  width: $tileWidth;
17
-
18
- [data-tile-grid] & {
19
- width: auto;
20
- }
21
-
22
18
  height: $tileHeight;
23
- position: relative;
24
- box-shadow: $shadow-small-box-shadow;
25
- background-color: $color-white;
26
19
  transition: transform $ca-duration-slow $ca-default;
27
20
  transform-style: preserve-3d;
21
+ box-shadow: $shadow-small-box-shadow;
28
22
  border-radius: 7px;
23
+ background-color: $color-white;
24
+
25
+ [data-tile-grid] & {
26
+ width: auto;
27
+ }
29
28
 
30
29
  @include ca-media-mobile {
31
30
  width: 100%;
@@ -115,14 +115,13 @@ $tab-container-height-medium-and-small-collapsed: 0;
115
115
  align-items: center;
116
116
  min-width: 0; // this is an important trick to prevent flexbox items from overflowing
117
117
  z-index: $ca-z-index-dropdown; // this ensures the page switcher dropdown sits over nav tabs
118
+ transform: translateY(-0.0833em);
118
119
 
119
120
  .hasSubtitle & {
120
121
  @include title-block-under-1366 {
121
122
  transform: translateY(-0.3833em);
122
123
  }
123
124
  }
124
-
125
- transform: translateY(-0.0833em);
126
125
  }
127
126
 
128
127
  .titleAndSubtitleInner {
@@ -243,13 +242,12 @@ $tab-container-height-medium-and-small-collapsed: 0;
243
242
  line-height: $typography-paragraph-small-line-height;
244
243
  letter-spacing: $typography-paragraph-small-letter-spacing;
245
244
  max-width: 230px;
245
+ margin-inline: var(--spacing-12) 0;
246
246
 
247
247
  .adminVariant & {
248
248
  color: $color-purple-800;
249
249
  }
250
250
 
251
- @include ca-margin($start: calc(#{$ca-grid} / 2));
252
-
253
251
  @include title-block-under-1366 {
254
252
  white-space: nowrap;
255
253
  text-overflow: ellipsis;
@@ -285,9 +283,7 @@ $tab-container-height-medium-and-small-collapsed: 0;
285
283
 
286
284
  .sectionTitleOverride.sectionTitleOverride {
287
285
  white-space: nowrap;
288
-
289
- @include ca-margin($end: $ca-grid);
290
-
286
+ margin-inline: 0 var(--spacing-24);
291
287
  font-family: $typography-heading-2-font-family;
292
288
  font-weight: $typography-heading-2-font-weight;
293
289
  font-size: $typography-heading-2-font-size;
@@ -316,10 +312,6 @@ $tab-container-height-medium-and-small-collapsed: 0;
316
312
  }
317
313
 
318
314
  .sectionTitleDescription {
319
- .sectionTitle + & {
320
- margin-top: calc(#{$ca-grid} / 4);
321
- }
322
-
323
315
  color: $color-white;
324
316
  max-width: 780px;
325
317
  font-family: $typography-paragraph-small-font-family;
@@ -328,6 +320,10 @@ $tab-container-height-medium-and-small-collapsed: 0;
328
320
  line-height: $typography-paragraph-small-line-height;
329
321
  letter-spacing: $typography-paragraph-small-letter-spacing;
330
322
 
323
+ .sectionTitle + & {
324
+ margin-top: var(--spacing-6);
325
+ }
326
+
331
327
  &.dark {
332
328
  color: rgba($color-purple-800-rgb, 0.7);
333
329
  }
@@ -360,30 +356,28 @@ $tab-container-height-medium-and-small-collapsed: 0;
360
356
  }
361
357
 
362
358
  .tag {
363
- @include ca-margin($start: calc(#{$ca-grid} / 2));
364
-
365
359
  display: flex;
366
360
  align-items: center;
361
+ margin-inline: var(--spacing-12) 0;
367
362
 
368
363
  @include title-block-medium-and-small {
369
364
  display: none;
370
365
  }
371
366
 
372
367
  + .pageSwitcherSelectNextToTitle {
373
- @include ca-margin($start: 0);
368
+ margin-inline-start: 0;
374
369
  }
375
370
  }
376
371
 
377
372
  .pageSwitcherSelectNextToTitle {
378
- @include ca-margin($start: calc(#{$ca-grid} / 2));
379
-
380
373
  flex-shrink: 0;
381
- width: 10 * $ca-grid;
374
+ width: var(--spacing-240);
375
+ margin-inline: var(--spacing-12) 0;
382
376
  }
383
377
 
384
378
  .pageSwitcherSelectUnderneathTitle {
385
379
  flex-shrink: 0;
386
- max-width: 10 * $ca-grid;
380
+ max-width: var(--spacing-240);
387
381
  }
388
382
 
389
383
  .navigationTabsContainer {
@@ -558,11 +552,10 @@ $tab-container-height-medium-and-small-collapsed: 0;
558
552
 
559
553
  @media only screen and (max-width: $breadcrumb-breakpoint-width) {
560
554
  position: relative;
555
+ transform: translateY(0);
556
+ margin-inline: 0 var(--spacing-12);
561
557
 
562
- @include ca-margin($end: calc(#{$ca-grid} / 2));
563
558
  @include ca-position($start: 0);
564
-
565
- transform: translateY(0);
566
559
  }
567
560
 
568
561
  @include title-block-medium-and-small {
@@ -77,8 +77,6 @@ $slide-up-duration: 0.4s;
77
77
  }
78
78
 
79
79
  .mobileActionsPrimaryLabel {
80
- @include ca-padding($start: $ca-grid * 0.75);
81
-
82
80
  text-align: left;
83
81
  text-decoration: none;
84
82
  color: $color-white;
@@ -87,6 +85,8 @@ $slide-up-duration: 0.4s;
87
85
  font-size: $typography-button-primary-font-size;
88
86
  line-height: $typography-button-primary-line-height;
89
87
  letter-spacing: $typography-button-primary-letter-spacing;
88
+
89
+ @include ca-padding($start: $ca-grid * 0.75);
90
90
  }
91
91
 
92
92
  .mobileActionsPrimaryButton,
@@ -47,7 +47,7 @@ A disabled Button prevents user interaction. It doesn't appear in the tab order,
47
47
 
48
48
  Use any <LinkTo pageId="components-icons">Icon</LinkTo> component in the `icon` prop.
49
49
 
50
- <Canvas of={ButtonStories.Icon} />
50
+ <Canvas of={ButtonStories.IconStory} />
51
51
 
52
52
  #### Icon position
53
53
 
@@ -8,7 +8,7 @@ import {
8
8
  import { Button, ButtonProps } from "../index"
9
9
 
10
10
  export default {
11
- title: "Actions/Button/v1",
11
+ title: "Actions/Button/Button (v1)",
12
12
  parameters: {
13
13
  chromatic: { disable: false },
14
14
  controls: { disable: true },
@@ -6,7 +6,7 @@ import { Icon } from "~components/__future__/Icon"
6
6
  import { Button } from "../index"
7
7
 
8
8
  const meta = {
9
- title: "Actions/Button/v1",
9
+ title: "Actions/Button/Button (v1)",
10
10
  component: Button,
11
11
  args: {
12
12
  label: "Label",
@@ -9,7 +9,7 @@ import {
9
9
  import { IconButton, IconButtonProps } from "../index"
10
10
 
11
11
  export default {
12
- title: "Actions/IconButton/v1",
12
+ title: "Actions/IconButton/IconButton (v1)",
13
13
  parameters: {
14
14
  chromatic: { disable: false },
15
15
  controls: { disable: true },
@@ -4,7 +4,7 @@ import { Icon } from "~components/__future__/Icon"
4
4
  import { IconButton } from "../index"
5
5
 
6
6
  const meta = {
7
- title: "Actions/IconButton/v1",
7
+ title: "Actions/IconButton/IconButton (v1)",
8
8
  component: IconButton,
9
9
  argTypes: {
10
10
  icon: {
@@ -47,7 +47,7 @@ A disabled Button prevents user interaction. It doesn't appear in the tab order,
47
47
 
48
48
  Use any <LinkTo pageId="components-icons">Icon</LinkTo> component in the `icon` prop.
49
49
 
50
- <Canvas of={ButtonStories.Icon} />
50
+ <Canvas of={ButtonStories.IconStory} />
51
51
 
52
52
  #### Icon position
53
53
 
@@ -6,7 +6,7 @@ import { Icon } from "~components/__future__/Icon"
6
6
  import { Button } from "../index"
7
7
 
8
8
  const meta = {
9
- title: "Actions/Button/v2",
9
+ title: "Actions/Button/Button (v2)",
10
10
  component: Button,
11
11
  args: {
12
12
  label: "Label",
@@ -4,7 +4,7 @@ import { Icon } from "~components/__future__/Icon"
4
4
  import { IconButton } from "../index"
5
5
 
6
6
  const meta = {
7
- title: "Actions/IconButton/v2",
7
+ title: "Actions/IconButton/IconButton (v2)",
8
8
  component: IconButton,
9
9
  argTypes: {
10
10
  icon: {
@@ -3,7 +3,7 @@ import { ResourceLinks, SbContent, KAIOInstallation } from "~storybook/component
3
3
  import * as docsStories from "./Button.docs.stories"
4
4
  import * as exampleStories from "./Button.stories"
5
5
 
6
- <Meta title="Actions/Button/v3/API Specification" />
6
+ <Meta title="Actions/Button/Button (v3)/API Specification" />
7
7
 
8
8
  <SbContent>
9
9
  # Button API Specification (v3)
@@ -5,7 +5,7 @@ import { ChevronDownIcon, ChevronUpIcon } from "~components/Icon"
5
5
  import { Button } from "../index"
6
6
 
7
7
  const meta = {
8
- title: "Actions/Button/v3/Doc Assets",
8
+ title: "Actions/Button/Button (v3)/Doc Assets",
9
9
  component: Button,
10
10
  args: {
11
11
  children: "Label",
@@ -2,7 +2,7 @@ import { Canvas, Meta, Controls } from "@storybook/blocks"
2
2
  import { ResourceLinks, SbContent, Installation } from "~storybook/components"
3
3
  import * as Button from "./Button.stories"
4
4
 
5
- <Meta title="Actions/Button/v3/Usage Guidelines" />
5
+ <Meta title="Actions/Button/Button (v3)/Usage Guidelines" />
6
6
 
7
7
  <SbContent>
8
8
  # Button (v3)
@@ -14,7 +14,7 @@ import { Button } from "../index"
14
14
  const onPressEvent = fn()
15
15
 
16
16
  const meta = {
17
- title: "Actions/Button/v3/Tests",
17
+ title: "Actions/Button/Button (v3)/Tests",
18
18
  component: Button,
19
19
  args: {
20
20
  children: "Label",
@@ -9,7 +9,7 @@ import {
9
9
  import { Button } from "../index"
10
10
 
11
11
  export default {
12
- title: "Actions/Button/v3/Tests",
12
+ title: "Actions/Button/Button (v3)/Tests",
13
13
  parameters: {
14
14
  chromatic: { disable: false },
15
15
  controls: { disable: true },
@@ -6,7 +6,7 @@ import { VisuallyHidden } from "~components/VisuallyHidden"
6
6
  import { Button } from "../index"
7
7
 
8
8
  const meta = {
9
- title: "Actions/Button/v3",
9
+ title: "Actions/Button/Button (v3)",
10
10
  component: Button,
11
11
  args: {
12
12
  children: "Label",
@@ -8,6 +8,7 @@
8
8
  position: relative;
9
9
  display: inline-flex;
10
10
  border-radius: 50%;
11
+ color: rgba($color-purple-800-rgb, 0.7);
11
12
 
12
13
  &:focus,
13
14
  &:focus-visible {
@@ -34,8 +35,6 @@
34
35
  border-radius: 50%;
35
36
  }
36
37
 
37
- color: rgba($color-purple-800-rgb, 0.7);
38
-
39
38
  &:hover,
40
39
  &:focus,
41
40
  &:focus-visible {