@kaizen/components 1.4.22-canary.0 → 1.4.22-canary.3

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 (84) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/__future__/index.d.ts +0 -2
  3. package/dist/__future__/index.js +1 -5
  4. package/dist/esm/__future__/index.js +0 -4
  5. package/dist/iife/Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss +100 -0
  6. package/dist/iife/Layout.module-MZ6JYT46-MZ6JYT46.scss +58 -0
  7. package/dist/iife/Menu.module-N76N74LN-N76N74LN.scss +111 -0
  8. package/dist/iife/Text.module-SXGFOHGJ-SXGFOHGJ.scss +173 -0
  9. package/dist/iife/__future__/index.js +128 -40023
  10. package/dist/iife/index.js +495 -35
  11. package/package.json +32 -32
  12. package/dist/iife/Badge.module-5JDAQSAV.scss +0 -106
  13. package/dist/iife/Checkbox.module-L2DRIMTV.scss +0 -155
  14. package/dist/iife/CheckboxField.module-MS76TDL7.scss +0 -46
  15. package/dist/iife/CheckboxGroup.module-AHAPICAN.scss +0 -13
  16. package/dist/iife/ClearButton.module-KVNHOLVT.scss +0 -79
  17. package/dist/iife/Divider.module-YXIUJPD4.scss +0 -40
  18. package/dist/iife/FieldGroup.module-SUPERNC6.scss +0 -10
  19. package/dist/iife/FieldMessage.module-6CWQV65E.scss +0 -73
  20. package/dist/iife/FilterTriggerButton.module-LGSTEFAE.scss +0 -5
  21. package/dist/iife/GenericButton.module-NIOY5S5X.scss +0 -113
  22. package/dist/iife/Heading.module-WIR3ANFU.scss +0 -104
  23. package/dist/iife/Input.module-FBWZRX37.scss +0 -336
  24. package/dist/iife/InputRange.module-RGISUI4D.scss +0 -181
  25. package/dist/iife/InputSearch.module-YAL2OSZP.scss +0 -238
  26. package/dist/iife/Label.module-QP4J7I5H.scss +0 -118
  27. package/dist/iife/ListBox.module-5GNTZUCX.scss +0 -18
  28. package/dist/iife/ListBox.module-RXUZV2C4.scss +0 -14
  29. package/dist/iife/ListBoxSection.module-53ABDKRS.scss +0 -3
  30. package/dist/iife/ListBoxSection.module-D2PXJRKU.scss +0 -20
  31. package/dist/iife/LoadMoreButton.module-ANUUS5ER.scss +0 -5
  32. package/dist/iife/LoadingGraphic.module-URCRSF4P.scss +0 -10
  33. package/dist/iife/LoadingHeading.module-OV5P5QHZ.scss +0 -67
  34. package/dist/iife/LoadingInput.module-7NL2PX46.scss +0 -9
  35. package/dist/iife/LoadingParagraph.module-43NZVIEE.scss +0 -50
  36. package/dist/iife/LoadingSpinner.module-VMTNZETE.scss +0 -31
  37. package/dist/iife/MenuFooter.module-7J44RW5D.scss +0 -9
  38. package/dist/iife/MenuLoadingSkeleton.module-DH3I5Z2J.scss +0 -9
  39. package/dist/iife/MenuPopup.module-NQRYVXAG.scss +0 -27
  40. package/dist/iife/MultiSelectOption.module-TIZIGUVB.scss +0 -115
  41. package/dist/iife/NoResults.module-3FUWBVUH.scss +0 -3
  42. package/dist/iife/Option.module-O2QRLWHC.scss +0 -87
  43. package/dist/iife/Overlay.module-W7K5DWH6.scss +0 -24
  44. package/dist/iife/Paragraph.module-J7DMUCVE.scss +0 -71
  45. package/dist/iife/Radio.module-DCWPHVKW.scss +0 -99
  46. package/dist/iife/RadioField.module-C2XRADW5.scss +0 -50
  47. package/dist/iife/RadioGroup.module-PDLRO572.scss +0 -23
  48. package/dist/iife/RemovableFilterTrigger.module-SJ37V6UZ.scss +0 -29
  49. package/dist/iife/SearchField.module-2EV6HGZE.scss +0 -6
  50. package/dist/iife/SearchInput.module-RQEF3FWR.scss +0 -6
  51. package/dist/iife/SectionDivider.module-AN4OA4O3.scss +0 -3
  52. package/dist/iife/Select.module-WOGFQRYI.scss +0 -8
  53. package/dist/iife/SelectionControlButton.module-HO7BZ2UP.scss +0 -81
  54. package/dist/iife/Slider.module-EIBFJ2LP.scss +0 -42
  55. package/dist/iife/Tab.module-4S535DQG.scss +0 -105
  56. package/dist/iife/TabList.module-FVWF5RCV.scss +0 -11
  57. package/dist/iife/TabPanel.module-2YHJE4CY.scss +0 -14
  58. package/dist/iife/TextArea.module-JLTW3M73.scss +0 -138
  59. package/dist/iife/TextAreaField.module-4K35MSCT.scss +0 -20
  60. package/dist/iife/TextField.module-KFAPVZZK.scss +0 -49
  61. package/dist/iife/ToggleSwitch.module-3YDF4MLF.scss +0 -128
  62. package/dist/iife/ToggleSwitchField.module-BJOL7O7U.scss +0 -15
  63. package/dist/iife/Tooltip.module-YU7VOTNZ.scss +0 -184
  64. package/dist/iife/TriggerButton.module-ML4U7VQL.scss +0 -139
  65. package/dist/iife/TriggerButtonBase.module-QFRV6YZQ.scss +0 -14
  66. package/dist/iife/arrow-backward.icon-DGOZ655M.svg +0 -17
  67. package/dist/iife/arrow-forward.icon-MO6IWNHW.svg +0 -17
  68. package/dist/iife/caution-white.icon-7QPLIIHQ.svg +0 -1
  69. package/dist/iife/check.icon-CYCBCOVT.svg +0 -17
  70. package/dist/iife/chevron-down.icon-COG3GAYR.svg +0 -17
  71. package/dist/iife/chevron-up.icon-O5VRF5BX.svg +0 -17
  72. package/dist/iife/clear.icon-OD6PWTJH.svg +0 -17
  73. package/dist/iife/end.icon-4DQDOQVX.svg +0 -1
  74. package/dist/iife/exclamation-white.icon-WX7P4EOV.svg +0 -19
  75. package/dist/iife/loading-skeleton.module-RZXSULUO.scss +0 -26
  76. package/dist/iife/minus.icon-7B6G432O.svg +0 -17
  77. package/dist/iife/search.icon-ML7HSFID.svg +0 -17
  78. package/dist/iife/start.icon-JC4OAMAZ.svg +0 -1
  79. package/dist/iife/success.icon-QNKK4XJE.svg +0 -17
  80. /package/dist/iife/{Icon.module-VD7NKLAR.scss → Icon.module-VD7NKLAR-VD7NKLAR.scss} +0 -0
  81. /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
  82. /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.scss} +0 -0
  83. /package/dist/iife/{SkipLink.module-KAZA7PAL.scss → SkipLink.module-KAZA7PAL-KAZA7PAL.scss} +0 -0
  84. /package/dist/iife/{VisuallyHidden.module-E5JUNEF5.scss → VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.4.22-canary.0+95edeaebc",
3
+ "version": "1.4.22-canary.3+67c597aa1",
4
4
  "description": "Kaizen component library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -28,49 +28,49 @@
28
28
  },
29
29
  "homepage": "https://github.com/cultureamp/kaizen-design-system#readme",
30
30
  "dependencies": {
31
- "@kaizen/a11y": "^1.7.0",
31
+ "@kaizen/a11y": "^1.7.1-canary.3+67c597aa1",
32
32
  "@kaizen/brand": "^1.5.4",
33
- "@kaizen/brand-moment": "^1.12.65",
34
- "@kaizen/button": "^2.0.21",
33
+ "@kaizen/brand-moment": "^1.12.66-canary.3+67c597aa1",
34
+ "@kaizen/button": "^2.0.22-canary.3+67c597aa1",
35
35
  "@kaizen/component-base": "^1.1.3",
36
- "@kaizen/component-library": "^16.4.0",
37
- "@kaizen/date-picker": "^5.19.2",
36
+ "@kaizen/component-library": "^16.4.1-canary.3+67c597aa1",
37
+ "@kaizen/date-picker": "^5.19.3-canary.3+67c597aa1",
38
38
  "@kaizen/design-tokens": "^10.3.1",
39
- "@kaizen/draft-avatar": "^2.8.27",
39
+ "@kaizen/draft-avatar": "^2.8.28-canary.3+67c597aa1",
40
40
  "@kaizen/draft-badge": "^1.13.6",
41
41
  "@kaizen/draft-card": "^3.2.6",
42
- "@kaizen/draft-collapsible": "^3.5.20",
42
+ "@kaizen/draft-collapsible": "^3.5.21-canary.3+67c597aa1",
43
43
  "@kaizen/draft-divider": "^2.2.6",
44
- "@kaizen/draft-empty-state": "^5.3.27",
45
- "@kaizen/draft-filter-menu-button": "^2.6.33",
46
- "@kaizen/draft-form": "^10.3.1",
47
- "@kaizen/draft-guidance-block": "^6.1.16",
44
+ "@kaizen/draft-empty-state": "^5.3.28-canary.3+67c597aa1",
45
+ "@kaizen/draft-filter-menu-button": "^2.6.34-canary.3+67c597aa1",
46
+ "@kaizen/draft-form": "^10.3.2-canary.3+67c597aa1",
47
+ "@kaizen/draft-guidance-block": "^6.1.17-canary.3+67c597aa1",
48
48
  "@kaizen/draft-hero-card": "^2.2.15",
49
- "@kaizen/draft-illustration": "^6.0.18",
50
- "@kaizen/draft-likert-scale-legacy": "^1.10.41",
51
- "@kaizen/draft-menu": "^4.8.32",
52
- "@kaizen/draft-modal": "^10.6.2",
49
+ "@kaizen/draft-illustration": "^6.0.19-canary.3+67c597aa1",
50
+ "@kaizen/draft-likert-scale-legacy": "^1.10.42-canary.3+67c597aa1",
51
+ "@kaizen/draft-menu": "^4.8.33-canary.3+67c597aa1",
52
+ "@kaizen/draft-modal": "^10.6.3-canary.3+67c597aa1",
53
53
  "@kaizen/draft-page-layout": "^2.3.7",
54
- "@kaizen/draft-popover": "^5.3.1",
55
- "@kaizen/draft-select": "^2.10.22",
56
- "@kaizen/draft-table": "^5.6.17",
57
- "@kaizen/draft-tabs": "^5.2.27",
58
- "@kaizen/draft-tag": "^3.4.1",
59
- "@kaizen/draft-tile": "^5.9.27",
60
- "@kaizen/draft-title-block-zen": "^7.9.7",
61
- "@kaizen/draft-tooltip": "^5.4.29",
54
+ "@kaizen/draft-popover": "^5.3.2-canary.3+67c597aa1",
55
+ "@kaizen/draft-select": "^2.10.23-canary.3+67c597aa1",
56
+ "@kaizen/draft-table": "^5.6.18-canary.3+67c597aa1",
57
+ "@kaizen/draft-tabs": "^5.2.28-canary.3+67c597aa1",
58
+ "@kaizen/draft-tag": "^3.4.2-canary.3+67c597aa1",
59
+ "@kaizen/draft-tile": "^5.9.28-canary.3+67c597aa1",
60
+ "@kaizen/draft-title-block-zen": "^7.9.8-canary.3+67c597aa1",
61
+ "@kaizen/draft-tooltip": "^5.4.30-canary.3+67c597aa1",
62
62
  "@kaizen/draft-well": "^4.3.3",
63
63
  "@kaizen/hosted-assets": "^2.0.1",
64
64
  "@kaizen/loading-skeleton": "^2.0.2",
65
65
  "@kaizen/loading-spinner": "^2.3.6",
66
- "@kaizen/notification": "^1.4.1",
67
- "@kaizen/pagination": "^1.6.27",
68
- "@kaizen/progress-bar": "^2.3.20",
66
+ "@kaizen/notification": "^1.4.2-canary.3+67c597aa1",
67
+ "@kaizen/pagination": "^1.6.28-canary.3+67c597aa1",
68
+ "@kaizen/progress-bar": "^2.3.21-canary.3+67c597aa1",
69
69
  "@kaizen/responsive": "^1.8.5",
70
- "@kaizen/rich-text-editor": "^1.19.31",
71
- "@kaizen/select": "^6.13.8",
72
- "@kaizen/split-button": "^1.3.34",
73
- "@kaizen/tabs": "^1.5.31",
70
+ "@kaizen/rich-text-editor": "^1.19.32-canary.3+67c597aa1",
71
+ "@kaizen/select": "^6.13.9-canary.3+67c597aa1",
72
+ "@kaizen/split-button": "^1.3.35-canary.3+67c597aa1",
73
+ "@kaizen/tabs": "^1.5.32-canary.3+67c597aa1",
74
74
  "@kaizen/tailwind": "^0.5.1",
75
75
  "@kaizen/typography": "^2.3.6",
76
76
  "classnames": "^2.3.2"
@@ -85,5 +85,5 @@
85
85
  "peerDependencies": {
86
86
  "react": "^16.14.0 || ^17.0.0 || ^18.0.0"
87
87
  },
88
- "gitHead": "95edeaebc7e483222b1dc1cc52ab2e04723e2abe"
88
+ "gitHead": "67c597aa16007790e6a1cb1a04fc0c800fcdae4b"
89
89
  }
@@ -1,106 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/animation";
2
- @import "~@kaizen/design-tokens/sass/typography";
3
- @import "~@kaizen/design-tokens/sass/color";
4
- @import "~@kaizen/design-tokens/sass/spacing";
5
- @import "./variables";
6
-
7
- $small: $spacing-md;
8
-
9
- .badge {
10
- border-radius: $spacing-sm;
11
- color: $color-purple-800;
12
- display: inline-block;
13
- position: relative;
14
- font-family: $typography-paragraph-extra-small-font-family;
15
- font-size: $typography-paragraph-extra-small-font-size;
16
- font-weight: $typography-paragraph-bold-font-weight;
17
- letter-spacing: $typography-paragraph-extra-small-letter-spacing;
18
- line-height: $typography-paragraph-extra-small-line-height;
19
- padding: 1px $spacing-xs;
20
- min-width: 8px;
21
- text-align: center;
22
- }
23
-
24
- .badge.large {
25
- display: inline-flex;
26
- justify-content: center;
27
- border-radius: $spacing-xl;
28
- font-size: $typography-data-medium-font-size;
29
- line-height: $typography-data-medium-line-height;
30
- letter-spacing: $typography-data-medium-letter-spacing;
31
- padding: 2px 1.875rem;
32
- width: 24px;
33
- }
34
-
35
- .default {
36
- background-color: $dt-color-background-default;
37
- color: $color-purple-800;
38
- }
39
-
40
- .active {
41
- background-color: $color-blue-500;
42
- color: $color-white;
43
- }
44
-
45
- .reversed.active {
46
- background-color: $color-green-300;
47
- color: $color-purple-800;
48
- }
49
-
50
- .dark {
51
- background-color: rgba($color-purple-700-rgb, 0.1);
52
- color: $color-purple-800;
53
- }
54
-
55
- .dot {
56
- background-color: $color-green-300;
57
- padding: $spacing-xs;
58
- min-width: unset;
59
- }
60
- .dot.large {
61
- background-color: $color-green-300;
62
- padding: 1.875rem;
63
- width: unset;
64
- }
65
-
66
- .reversed.dot {
67
- background-color: $color-green-300;
68
- }
69
-
70
- .reversed.dark {
71
- background-color: $color-purple-700;
72
- color: $color-white;
73
- }
74
-
75
- .reversed {
76
- background-color: rgba($color-white-rgb, 0.1);
77
- color: $color-white;
78
- }
79
-
80
- $badge-duration-timing: ($animation-duration-slow / 2)
81
- $animation-easing-function-ease-in;
82
-
83
- $badge-transition: transform $badge-duration-timing,
84
- background-color $badge-duration-timing;
85
-
86
- .animation {
87
- display: inherit;
88
- .badge {
89
- transition: $badge-transition;
90
- transform-origin: center;
91
- transform: scale3d(1, 1, 1);
92
- }
93
- &.animationOn .badge {
94
- transform: scale3d(1.35, 1.35, 1.35);
95
- &.dark {
96
- background-color: rgba($color-purple-700-rgb, 0.2);
97
- }
98
- &.active {
99
- background-color: $color-blue-500;
100
- color: $color-white;
101
- }
102
- &.dot {
103
- background-color: $color-green-300;
104
- }
105
- }
106
- }
@@ -1,155 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/color";
2
- @import "~@kaizen/design-tokens/sass/border";
3
- @import "~@kaizen/component-library/styles/mixins/forms";
4
- @import "../../variables";
5
-
6
- $checkbox-size: 24px;
7
- $icon-size: 24px;
8
- $focus-ring-offset: 2px;
9
-
10
- $dt-color-checkbox-background-color-checked: $color-gray-500;
11
-
12
- // override bootstrap styles
13
- .checkbox.checkbox {
14
- @include form-input-visually-hidden();
15
- width: $checkbox-size;
16
- height: $checkbox-size;
17
- margin: 0;
18
- }
19
-
20
- .icon {
21
- height: $checkbox-size;
22
- width: $checkbox-size;
23
- position: absolute;
24
- top: 50%;
25
- transform: translateY(-50%);
26
- // .icon is inside .box so .box's border-box rule means
27
- // .icon sits to the right of .box's left-side border
28
- left: calc(-1 * #{$border-solid-border-width});
29
- color: $color-white;
30
- }
31
-
32
- .icon.reversed {
33
- color: $dt-color-form-color-icon-reversed;
34
- }
35
-
36
- .box {
37
- display: block;
38
- position: relative;
39
- pointer-events: none;
40
- background: $color-white;
41
- height: $checkbox-size;
42
- width: $checkbox-size;
43
- top: 0;
44
- border: $border-solid-border-width $border-solid-border-style
45
- $dt-color-form-border-color;
46
- border-radius: $border-solid-border-radius;
47
- box-sizing: border-box;
48
- background-color: white;
49
- border-color: $dt-color-form-border-color;
50
-
51
- .checkbox:checked + &,
52
- .checkbox:indeterminate + & {
53
- background: $dt-color-checkbox-background-color-checked;
54
- background-color: $dt-color-form-border-color;
55
- }
56
-
57
- .checkbox:focus + & {
58
- background: white;
59
- border-color: $dt-color-form-border-color-hover;
60
- }
61
-
62
- .checkbox:checked:focus + &,
63
- .checkbox:indeterminate:focus + & {
64
- background: $dt-color-form-border-color-hover;
65
- border-color: $dt-color-form-border-color-hover;
66
- }
67
-
68
- @media (hover: hover) and (pointer: fine) {
69
- .checkbox:checked:not([disabled]):hover + &,
70
- .checkbox:indeterminate:not([disabled]):hover + & {
71
- background: $dt-color-form-border-color-hover;
72
- border-color: $dt-color-form-border-color-hover;
73
- }
74
-
75
- .checkbox:not([disabled]):hover + & {
76
- border-color: $dt-color-form-border-color-hover;
77
- }
78
- }
79
-
80
- .checkbox:focus + &::after {
81
- content: "";
82
- box-sizing: border-box;
83
- position: absolute;
84
- background: transparent;
85
- border-radius: $border-focus-ring-border-radius;
86
- border-width: $border-focus-ring-border-width;
87
- border-style: $border-focus-ring-border-style;
88
- border-color: $dt-color-form-border-color-focus;
89
- top: -$focus-ring-offset - ($checkbox-size / 8);
90
- left: -$focus-ring-offset - ($checkbox-size / 8);
91
- width: calc(
92
- #{$checkbox-size} + #{$focus-ring-offset} + #{$border-solid-border-width} *
93
- 2
94
- );
95
- height: calc(
96
- #{$checkbox-size} + #{$focus-ring-offset} + #{$border-solid-border-width} *
97
- 2
98
- );
99
- }
100
- }
101
-
102
- .box.reversed {
103
- border: $border-solid-border-width $border-solid-border-style
104
- rgba($color-white-rgb, 0.65);
105
- background: transparent;
106
-
107
- .checkbox:not([checked]):focus + & {
108
- border-color: $color-white;
109
- background: rgba($color-white-rgb, 0.1);
110
- }
111
-
112
- @media (hover: hover) and (pointer: fine) {
113
- .checkbox:not([checked]):not([disabled]):hover + & {
114
- border-color: $color-white;
115
- background: rgba($color-white-rgb, 0.1);
116
- }
117
- }
118
-
119
- .checkbox:checked + &,
120
- .checkbox:indeterminate + & {
121
- background: rgba($color-white-rgb, 0.65);
122
- }
123
-
124
- .checkbox:checked:focus + &,
125
- .checkbox:indeterminate:focus + & {
126
- background: $color-white;
127
- border-color: $color-white;
128
- }
129
-
130
- @media (hover: hover) and (pointer: fine) {
131
- .checkbox:indeterminate:not([disabled]):hover + &,
132
- .checkbox:checked:not([disabled]):hover + & {
133
- background: $color-white;
134
- border-color: $color-white;
135
- }
136
- }
137
-
138
- .checkbox:focus + &::after {
139
- border-color: $dt-color-form-border-color-reversed-focus;
140
- }
141
- }
142
-
143
- .box.error {
144
- border-color: $color-red-300;
145
-
146
- .checkbox:not([checked]):focus + & {
147
- border-color: $color-red-300;
148
- }
149
-
150
- @media (hover: hover) and (pointer: fine) {
151
- .checkbox:not([checked]):hover + & {
152
- border-color: $color-red-300;
153
- }
154
- }
155
- }
@@ -1,46 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/color";
2
- @import "~@kaizen/design-tokens/sass/spacing";
3
- @import "~@kaizen/design-tokens/sass/typography";
4
- @import "../variables";
5
-
6
- // -----------------------------------------------
7
- // Checkbox Field
8
- // -----------------------------------------------
9
- ///////////////////////////////////////////////////
10
- // LAYOUT
11
- ///////////////////////////////////////////////////
12
- .container {
13
- position: relative;
14
- margin-bottom: $spacing-xs;
15
-
16
- label {
17
- // This is to override bootstrap styles. Remove when appropriate
18
- padding-top: 0;
19
- -webkit-tap-highlight-color: transparent;
20
- }
21
-
22
- &.noBottomMargin {
23
- margin-bottom: 0;
24
- }
25
-
26
- @media (hover: hover) and (pointer: fine) {
27
- label:hover {
28
- input:not([disabled]) + div {
29
- border-color: $dt-color-form-border-color;
30
- background-color: $color-gray-100;
31
- }
32
- }
33
- }
34
-
35
- &.checked,
36
- &.mixed {
37
- label {
38
- font-family: $typography-paragraph-body-font-family;
39
- font-size: $typography-paragraph-body-font-size;
40
- line-height: $typography-paragraph-body-line-height;
41
- letter-spacing: $typography-paragraph-body-letter-spacing;
42
- font-weight: $typography-paragraph-bold-font-weight;
43
- position: static;
44
- }
45
- }
46
- }
@@ -1,13 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/spacing";
2
-
3
- .checkboxGroupLabel {
4
- margin-bottom: $spacing-sm;
5
- }
6
- .checkboxGroupContainer {
7
- display: flex;
8
- flex-direction: column;
9
- margin-bottom: $spacing-sm;
10
- &.noBottomMargin {
11
- margin-bottom: 0;
12
- }
13
- }
@@ -1,79 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/border";
2
- @import "~@kaizen/design-tokens/sass/color";
3
- @import "../../mixins";
4
-
5
- // Polyfill
6
- $polyfill--focus-visible: ":global(.js-focus-visible) &:global(.focus-visible)";
7
-
8
- // Classnames to simulate pseudo states in storybook
9
- $story-className--clear-button-hover: ":global(.story__clear-button-hover)";
10
-
11
- // Combined pseudo state classes
12
- $selectors--clear-button-hover: "&:hover, &#{$story-className--clear-button-hover}";
13
- $selectors--clear-button-focus: "&:focus-visible, #{$polyfill--focus-visible}";
14
-
15
- .clearButton {
16
- @include button-reset;
17
-
18
- position: relative;
19
- display: inline-flex;
20
-
21
- #{$selectors--clear-button-hover} {
22
- cursor: pointer;
23
- }
24
-
25
- &:focus {
26
- outline: none;
27
- }
28
-
29
- #{$selectors--clear-button-focus} {
30
- &::after {
31
- $focus-ring-offset: -1px;
32
-
33
- content: "";
34
- position: absolute;
35
- background: transparent;
36
- border-width: $border-focus-ring-border-width;
37
- border-style: $border-focus-ring-border-style;
38
- border-radius: 50%;
39
- top: $focus-ring-offset;
40
- left: $focus-ring-offset;
41
- right: $focus-ring-offset;
42
- bottom: $focus-ring-offset;
43
- }
44
- }
45
- }
46
-
47
- ///////////////////////////////////////////////////
48
- // THEMES
49
- ///////////////////////////////////////////////////
50
-
51
- .default {
52
- color: $color-gray-500;
53
-
54
- #{$selectors--clear-button-hover},
55
- #{$selectors--clear-button-focus} {
56
- color: $color-purple-800;
57
- }
58
-
59
- #{$selectors--clear-button-focus} {
60
- &::after {
61
- border-color: $color-blue-500;
62
- }
63
- }
64
- }
65
-
66
- .reversed {
67
- color: rgba($color-white-rgb, 0.8);
68
-
69
- #{$selectors--clear-button-hover},
70
- #{$selectors--clear-button-focus} {
71
- color: $color-white;
72
- }
73
-
74
- #{$selectors--clear-button-focus} {
75
- &::after {
76
- border-color: $color-blue-300;
77
- }
78
- }
79
- }
@@ -1,40 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/border";
2
- @import "~@kaizen/design-tokens/sass/color";
3
-
4
- // 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.
5
-
6
- $dt-content-border-color: rgba($color-gray-600-rgb, 0.1);
7
-
8
- .wrapper {
9
- width: 100%;
10
- border: 0;
11
- margin: 0;
12
- border-radius: $border-solid-border-radius;
13
- // This is here to protect against a global style in a consumer.
14
- // https://github.com/cultureamp/murmur/blob/master/app/assets/stylesheets/legacy/modules/_body.scss
15
- visibility: visible;
16
- }
17
-
18
- .content {
19
- border-top: 1px solid;
20
- border-color: $dt-content-border-color;
21
-
22
- &.reversed {
23
- border-color: rgba($color-white-rgb, 0.1);
24
- }
25
- }
26
-
27
- .canvas {
28
- border-top: 1px solid;
29
- border-bottom: 1px solid;
30
- border-color: rgba($color-gray-600-rgb, 0.1);
31
-
32
- &.reversed {
33
- border-color: rgba($color-white-rgb, 0.1);
34
- }
35
- }
36
-
37
- .menuSeparator {
38
- @extend .content;
39
- margin: 5px 0;
40
- }
@@ -1,10 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/spacing";
2
-
3
- .group {
4
- margin-bottom: $spacing-md;
5
- }
6
-
7
- .inline {
8
- display: inline;
9
- margin-bottom: 0;
10
- }
@@ -1,73 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/spacing";
2
- @import "~@kaizen/design-tokens/sass/color";
3
- @import "~@kaizen/design-tokens/sass/border";
4
- @import "../../variables";
5
-
6
- $message-icon-size: 1.25rem;
7
- $validation-message-padding: 0.5625rem;
8
-
9
- .message {
10
- display: flex;
11
- position: relative;
12
- align-items: center;
13
- gap: $spacing-xs;
14
- }
15
-
16
- .default {
17
- color: $dt-color-form-text-color-label;
18
-
19
- &.reversed {
20
- color: $dt-color-form-text-color-label-reversed;
21
- }
22
- }
23
-
24
- .error,
25
- .caution {
26
- border-radius: $border-solid-border-radius;
27
- padding: $validation-message-padding;
28
- color: $color-purple-800;
29
- }
30
-
31
- .error {
32
- background: $color-red-100;
33
- opacity: 1;
34
-
35
- &.reversed {
36
- background: $color-red-300;
37
- }
38
- }
39
-
40
- .caution {
41
- background: $color-yellow-100;
42
- opacity: 1;
43
-
44
- &.reversed {
45
- background: $color-yellow-400;
46
- }
47
- }
48
-
49
- .positionBottom {
50
- margin-top: $spacing-xs;
51
- }
52
-
53
- .positionTop {
54
- margin-bottom: $spacing-xs;
55
- }
56
-
57
- .warningIcon {
58
- display: inline-flex;
59
- width: $message-icon-size;
60
- align-self: flex-start;
61
-
62
- .error & {
63
- color: $color-red-500;
64
- }
65
-
66
- .caution & {
67
- color: $color-yellow-500;
68
- }
69
-
70
- .reversed & {
71
- color: $color-purple-800;
72
- }
73
- }
@@ -1,5 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/typography";
2
-
3
- .hasSelectedValues {
4
- font-weight: $typography-button-primary-font-weight;
5
- }