@kaizen/components 1.47.5 → 1.47.6

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 (40) hide show
  1. package/dist/cjs/AvatarGroup/AvatarGroup.module.scss.cjs +3 -3
  2. package/dist/cjs/ButtonGroup/ButtonGroup.module.scss.cjs +1 -1
  3. package/dist/cjs/Checkbox/Checkbox/Checkbox.module.scss.cjs +1 -1
  4. package/dist/cjs/Checkbox/CheckboxField/CheckboxField.cjs +2 -1
  5. package/dist/cjs/Checkbox/CheckboxField/CheckboxField.module.scss.cjs +3 -2
  6. package/dist/cjs/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss.cjs +1 -1
  7. package/dist/cjs/Label/Label.module.scss.cjs +1 -1
  8. package/dist/cjs/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss.cjs +1 -1
  9. package/dist/cjs/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss.cjs +3 -3
  10. package/dist/cjs/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss.cjs +1 -1
  11. package/dist/cjs/TitleBlockZen/subcomponents/NavigationTabs.module.scss.cjs +1 -1
  12. package/dist/esm/AvatarGroup/AvatarGroup.module.scss.mjs +3 -3
  13. package/dist/esm/ButtonGroup/ButtonGroup.module.scss.mjs +1 -1
  14. package/dist/esm/Checkbox/Checkbox/Checkbox.module.scss.mjs +1 -1
  15. package/dist/esm/Checkbox/CheckboxField/CheckboxField.mjs +2 -1
  16. package/dist/esm/Checkbox/CheckboxField/CheckboxField.module.scss.mjs +3 -2
  17. package/dist/esm/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss.mjs +1 -1
  18. package/dist/esm/Label/Label.module.scss.mjs +1 -1
  19. package/dist/esm/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss.mjs +1 -1
  20. package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss.mjs +3 -3
  21. package/dist/esm/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss.mjs +1 -1
  22. package/dist/esm/TitleBlockZen/subcomponents/NavigationTabs.module.scss.mjs +1 -1
  23. package/package.json +1 -1
  24. package/src/AvatarGroup/AvatarGroup.module.scss +25 -28
  25. package/src/ButtonGroup/ButtonGroup.module.scss +10 -10
  26. package/src/Checkbox/Checkbox/Checkbox.module.scss +13 -13
  27. package/src/Checkbox/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +47 -72
  28. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +6 -6
  29. package/src/Checkbox/CheckboxField/CheckboxField.tsx +1 -0
  30. package/src/Checkbox/CheckboxField/_docs/CheckboxField.stickersheet.stories.tsx +53 -70
  31. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +8 -11
  32. package/src/Illustration/subcomponents/Base/Base.module.scss +29 -29
  33. package/src/Input/Input/Input.module.scss +1 -1
  34. package/src/Label/Label.module.scss +2 -23
  35. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +1 -1
  36. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +1 -1
  37. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +46 -55
  38. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +15 -1
  39. package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +2 -1
  40. package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +1 -1
@@ -30,36 +30,20 @@
30
30
  border-color: $color-blue-500;
31
31
  inset: calc(-1 * #{$focus-ring-offset});
32
32
  }
33
-
34
- &.disabled {
35
- opacity: 30%;
36
-
37
- &:focus-visible::after {
38
- color: rgba($color-purple-800-rgb, 0.3);
39
- outline-offset: -2px;
40
- background-color: transparent;
41
- border-color: transparent;
42
- opacity: 100%;
43
- outline: $color-purple-800 $border-dashed-border-style
44
- $border-focus-ring-border-width;
45
- }
46
- }
47
33
  }
48
34
 
49
35
  .default {
50
36
  background-color: $color-white;
51
37
  color: $color-purple-800;
52
38
 
53
- &:not(.disabled) {
54
- &:hover:not(.active),
55
- &:focus-visible:not(.active) {
56
- background-color: $color-gray-200;
57
- }
39
+ &:hover,
40
+ &:focus-visible {
41
+ background-color: $color-gray-200;
42
+ }
58
43
 
59
- &.active {
60
- background-color: $color-gray-300;
61
- color: $color-purple-800;
62
- }
44
+ &.active {
45
+ background-color: $color-gray-300;
46
+ color: $color-purple-800;
63
47
  }
64
48
  }
65
49
 
@@ -67,15 +51,13 @@
67
51
  background-color: $color-white;
68
52
  color: $color-blue-500;
69
53
 
70
- &:not(.disabled) {
71
- &:hover:not(.active),
72
- &:focus-visible:not(.active) {
73
- background-color: $color-blue-100;
74
- }
54
+ &:hover,
55
+ &:focus-visible {
56
+ background-color: $color-blue-100;
57
+ }
75
58
 
76
- &.active {
77
- background-color: $color-blue-200;
78
- }
59
+ &.active {
60
+ background-color: $color-blue-200;
79
61
  }
80
62
  }
81
63
 
@@ -83,15 +65,13 @@
83
65
  background-color: $color-blue-500;
84
66
  color: $color-white;
85
67
 
86
- &:not(.disabled) {
87
- &:hover:not(.active),
88
- &:focus-visible:not(.active) {
89
- background-color: $color-blue-600;
90
- }
68
+ &:hover,
69
+ &:focus-visible {
70
+ background-color: $color-blue-600;
71
+ }
91
72
 
92
- &.active {
93
- background-color: $color-blue-700;
94
- }
73
+ &.active {
74
+ background-color: $color-blue-700;
95
75
  }
96
76
  }
97
77
 
@@ -99,15 +79,13 @@
99
79
  background-color: $color-red-500;
100
80
  color: $color-white;
101
81
 
102
- &:not(.disabled) {
103
- &:hover:not(.active),
104
- &:focus-visible:not(.active) {
105
- background-color: $color-red-600;
106
- }
82
+ &:hover,
83
+ &:focus-visible {
84
+ background-color: $color-red-600;
85
+ }
107
86
 
108
- &.active {
109
- background-color: $color-red-700;
110
- }
87
+ &.active {
88
+ background-color: $color-red-700;
111
89
  }
112
90
  }
113
91
 
@@ -115,14 +93,27 @@
115
93
  background-color: $color-white;
116
94
  color: $color-red-600;
117
95
 
118
- &:not(.disabled) {
119
- &:hover:not(.active),
120
- &:focus-visible:not(.active) {
121
- background-color: $color-red-100;
122
- }
96
+ &:hover,
97
+ &:focus-visible {
98
+ background-color: $color-red-100;
99
+ }
100
+
101
+ &.active {
102
+ background-color: $color-red-200;
103
+ }
104
+ }
105
+
106
+ .disabled {
107
+ opacity: 30%;
108
+ pointer-events: none;
123
109
 
124
- &.active {
125
- background-color: $color-red-200;
126
- }
110
+ &:focus-visible::after {
111
+ color: rgba($color-purple-800-rgb, 0.3);
112
+ outline-offset: -2px;
113
+ background-color: transparent;
114
+ border-color: transparent;
115
+ opacity: 100%;
116
+ outline: $color-purple-800 $border-dashed-border-style
117
+ $border-focus-ring-border-width;
127
118
  }
128
119
  }
@@ -52,6 +52,13 @@ const ToggleIconButtonGroup = ({
52
52
  {...props}
53
53
  disabled
54
54
  />
55
+ <ToggleIconButton
56
+ label="bold"
57
+ icon={<BoldIcon role="presentation" />}
58
+ {...props}
59
+ disabled
60
+ data-sb-pseudo-styles="focus"
61
+ />
55
62
  </StickerSheet.Row>
56
63
  )
57
64
 
@@ -59,7 +66,14 @@ const StickerSheetTemplate: StickerSheetStory = {
59
66
  render: () => (
60
67
  <StickerSheet>
61
68
  <StickerSheet.Header
62
- headings={["Default", "Hover", "Active", "Focus", "Disabled"]}
69
+ headings={[
70
+ "Default",
71
+ "Hover",
72
+ "Active",
73
+ "Focus",
74
+ "Disabled",
75
+ "Disabled (Focus)",
76
+ ]}
63
77
  hasVerticalHeadings
64
78
  />
65
79
  <StickerSheet.Body>
@@ -32,7 +32,8 @@
32
32
  }
33
33
 
34
34
  .literal {
35
- &,
35
+ background: none;
36
+
36
37
  &:hover {
37
38
  background: none;
38
39
  }
@@ -104,7 +104,7 @@
104
104
  $border-focus-ring-border-radius;
105
105
  border-width: $border-focus-ring-border-width;
106
106
  border-style: $border-focus-ring-border-style;
107
- inset: 0 $focus-ring-offset $active-tab-marker-height $focus-ring-offset;
107
+ inset: 0 $focus-ring-offset $active-tab-marker-height;
108
108
 
109
109
  @include title-block-medium-and-small {
110
110
  border-radius: $border-focus-ring-border-radius