@kaizen/components 2.3.6 → 2.4.0
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.
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/src/Container/Container.cjs +1 -1
- package/dist/cjs/src/Container/{Container.module.scss.cjs → Container.module.css.cjs} +1 -1
- package/dist/cjs/src/Content/Content.cjs +1 -1
- package/dist/cjs/src/Content/{Content.module.scss.cjs → Content.module.css.cjs} +1 -1
- package/dist/cjs/src/Divider/Divider.cjs +1 -1
- package/dist/cjs/src/Divider/Divider.module.css.cjs +10 -0
- package/dist/cjs/src/ErrorPage/ErrorPage.cjs +1 -1
- package/dist/cjs/src/ErrorPage/ErrorPage.module.css.cjs +6 -0
- package/dist/cjs/src/Illustration/Spot/Spot.cjs +9 -0
- package/dist/cjs/src/Tag/Tag.cjs +1 -1
- package/dist/cjs/src/Tag/Tag.module.css.cjs +30 -0
- package/dist/cjs/src/TimeField/TimeField.cjs +6 -1
- package/dist/cjs/src/VisuallyHidden/VisuallyHidden.cjs +1 -1
- package/dist/cjs/src/VisuallyHidden/{VisuallyHidden.module.scss.cjs → VisuallyHidden.module.css.cjs} +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/src/Container/Container.mjs +1 -1
- package/dist/esm/src/Container/Container.module.css.mjs +4 -0
- package/dist/esm/src/Content/Content.mjs +1 -1
- package/dist/esm/src/Content/{Content.module.scss.mjs → Content.module.css.mjs} +1 -1
- package/dist/esm/src/Divider/Divider.mjs +1 -1
- package/dist/esm/src/Divider/Divider.module.css.mjs +8 -0
- package/dist/esm/src/ErrorPage/ErrorPage.mjs +1 -1
- package/dist/esm/src/ErrorPage/ErrorPage.module.css.mjs +4 -0
- package/dist/esm/src/Illustration/Spot/Spot.mjs +8 -1
- package/dist/esm/src/Tag/Tag.mjs +1 -1
- package/dist/esm/src/Tag/Tag.module.css.mjs +28 -0
- package/dist/esm/src/TimeField/TimeField.mjs +7 -2
- package/dist/esm/src/VisuallyHidden/VisuallyHidden.mjs +1 -1
- package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.css.mjs +4 -0
- package/dist/styles.css +220 -151
- package/dist/types/Illustration/Spot/Spot.d.ts +5 -0
- package/package.json +1 -1
- package/src/Container/Container.tsx +1 -1
- package/src/Content/Content.module.css +15 -0
- package/src/Content/Content.tsx +1 -1
- package/src/Content/_docs/Content.stories.tsx +1 -1
- package/src/Content/_variables.css +5 -0
- package/src/Divider/Divider.module.css +41 -0
- package/src/Divider/Divider.tsx +1 -1
- package/src/ErrorPage/ErrorPage.module.css +5 -0
- package/src/ErrorPage/ErrorPage.tsx +1 -1
- package/src/Illustration/Spot/Spot.tsx +6 -0
- package/src/Illustration/Spot/_docs/Spot.stickersheet.stories.tsx +22 -0
- package/src/Tag/Tag.module.css +217 -0
- package/src/Tag/Tag.tsx +1 -1
- package/src/TimeField/TimeField.tsx +8 -2
- package/src/TitleBlock/TitleBlock.module.scss +14 -12
- package/src/VisuallyHidden/VisuallyHidden.tsx +1 -1
- package/dist/cjs/src/Divider/Divider.module.scss.cjs +0 -10
- package/dist/cjs/src/ErrorPage/ErrorPage.module.scss.cjs +0 -6
- package/dist/cjs/src/Tag/Tag.module.scss.cjs +0 -30
- package/dist/esm/src/Container/Container.module.scss.mjs +0 -4
- package/dist/esm/src/Divider/Divider.module.scss.mjs +0 -8
- package/dist/esm/src/ErrorPage/ErrorPage.module.scss.mjs +0 -4
- package/dist/esm/src/Tag/Tag.module.scss.mjs +0 -28
- package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.scss.mjs +0 -4
- package/src/Content/Content.module.scss +0 -17
- package/src/Content/_variables.scss +0 -3
- package/src/Divider/Divider.module.scss +0 -39
- package/src/ErrorPage/ErrorPage.module.scss +0 -7
- package/src/Tag/Tag.module.scss +0 -215
- /package/src/Container/{Container.module.scss → Container.module.css} +0 -0
- /package/src/VisuallyHidden/{VisuallyHidden.module.scss → VisuallyHidden.module.css} +0 -0
package/src/Tag/Tag.module.scss
DELETED
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
@import '~@kaizen/design-tokens/sass/border';
|
|
2
|
-
@import '~@kaizen/design-tokens/sass/color';
|
|
3
|
-
@import '~@kaizen/design-tokens/sass/typography';
|
|
4
|
-
@import '~@kaizen/design-tokens/sass/spacing';
|
|
5
|
-
@import '../../styles/utils/button-reset';
|
|
6
|
-
|
|
7
|
-
@layer kz-components {
|
|
8
|
-
$medium: calc(#{$spacing-md} * 1.25);
|
|
9
|
-
$small: $spacing-md;
|
|
10
|
-
|
|
11
|
-
.root {
|
|
12
|
-
margin-inline-end: calc(#{$spacing-md} * 0.5);
|
|
13
|
-
font-size: $typography-paragraph-small-font-size;
|
|
14
|
-
font-weight: $typography-paragraph-small-font-weight;
|
|
15
|
-
letter-spacing: $typography-paragraph-small-letter-spacing;
|
|
16
|
-
color: $color-purple-800;
|
|
17
|
-
display: inline-block;
|
|
18
|
-
border: $border-borderless-border-width $border-borderless-border-style
|
|
19
|
-
$border-borderless-border-color;
|
|
20
|
-
border-radius: calc(#{$spacing-md} * 0.75);
|
|
21
|
-
padding: 0 calc(#{$spacing-md} * 0.4);
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
|
|
24
|
-
&.profile {
|
|
25
|
-
padding-left: calc(#{$spacing-md} * 0.2);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.layoutContainer {
|
|
30
|
-
height: 100%;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.validationIcon {
|
|
36
|
-
align-items: center;
|
|
37
|
-
display: flex;
|
|
38
|
-
color: $color-white;
|
|
39
|
-
margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.profile {
|
|
43
|
-
margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
|
|
44
|
-
display: inline-flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.textContent {
|
|
49
|
-
margin-top: -1px;
|
|
50
|
-
font-family: $typography-paragraph-small-font-family;
|
|
51
|
-
font-weight: $typography-paragraph-small-font-weight;
|
|
52
|
-
font-size: $typography-paragraph-small-font-size;
|
|
53
|
-
line-height: $typography-paragraph-small-line-height;
|
|
54
|
-
letter-spacing: $typography-paragraph-small-letter-spacing;
|
|
55
|
-
white-space: nowrap;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.iconWrapper {
|
|
59
|
-
--icon-size: 16;
|
|
60
|
-
|
|
61
|
-
position: relative;
|
|
62
|
-
height: 16px;
|
|
63
|
-
width: 16px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.dismissButton {
|
|
67
|
-
@include button-reset;
|
|
68
|
-
|
|
69
|
-
position: relative;
|
|
70
|
-
display: flex;
|
|
71
|
-
height: 100%;
|
|
72
|
-
align-items: center;
|
|
73
|
-
padding: 0 $spacing-xs;
|
|
74
|
-
margin-inline: -0.225rem -0.6625rem;
|
|
75
|
-
color: rgba($color-purple-800-rgb, 0.7);
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
|
|
78
|
-
&:hover {
|
|
79
|
-
color: $color-purple-800;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&:active {
|
|
83
|
-
color: $color-purple-800;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
svg {
|
|
87
|
-
position: relative;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&:focus {
|
|
91
|
-
outline: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:focus-visible .iconWrapper {
|
|
95
|
-
color: $color-purple-800;
|
|
96
|
-
|
|
97
|
-
&::after {
|
|
98
|
-
$focus-ring-offset: calc((#{$border-focus-ring-border-width}));
|
|
99
|
-
|
|
100
|
-
content: '';
|
|
101
|
-
position: absolute;
|
|
102
|
-
background: transparent;
|
|
103
|
-
border-radius: 50%;
|
|
104
|
-
border-width: $border-focus-ring-border-width;
|
|
105
|
-
border-style: $border-focus-ring-border-style;
|
|
106
|
-
border-color: $color-blue-500;
|
|
107
|
-
inset: calc(-1 * #{$focus-ring-offset});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.background {
|
|
113
|
-
// As our icons are only one-tone, this span places
|
|
114
|
-
// a white background under the dismissible icon to
|
|
115
|
-
// give the illusion of a background colour that is
|
|
116
|
-
// different to the rest of the tag
|
|
117
|
-
position: absolute;
|
|
118
|
-
display: inline-block;
|
|
119
|
-
width: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
|
|
120
|
-
height: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
|
|
121
|
-
background-color: white;
|
|
122
|
-
left: 10px;
|
|
123
|
-
top: 10px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.truncate {
|
|
127
|
-
text-overflow: ellipsis;
|
|
128
|
-
overflow-x: hidden;
|
|
129
|
-
white-space: nowrap;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.inline {
|
|
133
|
-
margin: 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.medium {
|
|
137
|
-
height: $medium;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.small {
|
|
141
|
-
height: $small;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.default {
|
|
145
|
-
background-color: $color-gray-300;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.sentimentPositive {
|
|
149
|
-
background-color: $color-green-100;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.sentimentNeutral {
|
|
153
|
-
background-color: $color-gray-300;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.sentimentNegative {
|
|
157
|
-
background-color: $color-red-100;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.sentimentNone {
|
|
161
|
-
background-color: $color-white;
|
|
162
|
-
border-color: $color-gray-300;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.validationPositive {
|
|
166
|
-
background-color: $color-green-100;
|
|
167
|
-
|
|
168
|
-
.validationIcon {
|
|
169
|
-
color: $color-green-500;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.validationInformative {
|
|
174
|
-
background-color: $color-blue-100;
|
|
175
|
-
|
|
176
|
-
.validationIcon {
|
|
177
|
-
color: $color-blue-500;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.validationNegative {
|
|
182
|
-
background-color: $color-red-100;
|
|
183
|
-
|
|
184
|
-
.validationIcon {
|
|
185
|
-
color: $color-red-500;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.validationCautionary {
|
|
190
|
-
background-color: $color-yellow-100;
|
|
191
|
-
|
|
192
|
-
.validationIcon {
|
|
193
|
-
color: var(--color-yellow-700);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.statusLive {
|
|
198
|
-
background-color: $color-green-100;
|
|
199
|
-
color: $color-purple-800;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.statusAction {
|
|
203
|
-
background-color: $color-orange-100;
|
|
204
|
-
color: $color-purple-800;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.statusClosed {
|
|
208
|
-
background-color: $color-red-100;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.statusDraft {
|
|
212
|
-
background-color: $color-blue-100;
|
|
213
|
-
color: $color-purple-800;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
File without changes
|
|
File without changes
|