@digigov/css 2.0.0-113e6661 → 2.0.0-18c66302
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/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/index.js +99 -69
- package/package.json +13 -13
- package/postcss.config.js +4 -4
- package/src/base/index.css +1 -0
- package/src/base/index.native.css +0 -0
- package/src/base/postcss.config.js +11 -10
- package/src/base/tailwind.config.js +4 -11
- package/src/components/accordion.common.css +29 -0
- package/src/components/accordion.css +9 -7
- package/src/components/accordion.native.css +27 -0
- package/src/components/autocomplete.css +1 -3
- package/src/components/blockquote.common.css +11 -11
- package/src/components/blockquote.css +6 -6
- package/src/components/blockquote.native.css +4 -1
- package/src/components/breadcrumbs.css +1 -1
- package/src/components/button.css +1 -1
- package/src/components/button.native.css +6 -7
- package/src/components/card.common.css +30 -30
- package/src/components/card.css +1 -1
- package/src/components/checkboxes.common.css +13 -13
- package/src/components/checkboxes.native.css +2 -3
- package/src/components/chip.common.css +19 -0
- package/src/components/chip.css +5 -4
- package/src/components/chip.native.css +15 -0
- package/src/components/code.css +7 -7
- package/src/components/copy-to-clipboard.css +1 -1
- package/src/components/copy-to-clipboard.native.css +2 -4
- package/src/components/details.common.css +23 -23
- package/src/components/details.native.css +8 -0
- package/src/components/drawer.css +20 -3
- package/src/components/dropdown.common.css +19 -19
- package/src/components/dropdown.native.css +10 -11
- package/src/components/filter.css +71 -22
- package/src/components/footer.css +8 -7
- package/src/components/form.common.css +75 -76
- package/src/components/form.css +7 -3
- package/src/components/form.native.css +102 -53
- package/src/components/header.common.css +32 -33
- package/src/components/header.css +9 -13
- package/src/components/header.native.css +5 -10
- package/src/components/kitchensink.css +2 -2
- package/src/components/layout.common.css +2 -2
- package/src/components/layout.css +1 -1
- package/src/components/layout.native.css +1 -0
- package/src/components/loader.common.css +7 -0
- package/src/components/loader.css +3 -1
- package/src/components/loader.native.css +5 -0
- package/src/components/modal.common.css +16 -0
- package/src/components/modal.css +19 -15
- package/src/components/modal.native.css +18 -0
- package/src/components/nav.common.css +18 -18
- package/src/components/nav.native.css +4 -6
- package/src/components/notification-banner.common.css +2 -2
- package/src/components/notification-banner.css +20 -2
- package/src/components/pagination.css +19 -3
- package/src/components/panel.common.css +26 -26
- package/src/components/panel.native.css +8 -2
- package/src/components/phase-banner.native.css +0 -1
- package/src/components/postcss.config.js +7 -6
- package/src/components/radios.common.css +1 -1
- package/src/components/radios.native.css +2 -3
- package/src/components/skeleton.common.css +20 -0
- package/src/components/skeleton.css +7 -10
- package/src/components/skeleton.native.css +53 -0
- package/src/components/stack.common.css +67 -0
- package/src/components/stack.css +23 -21
- package/src/components/stack.native.css +68 -0
- package/src/components/summary-list.common.css +5 -2
- package/src/components/summary-list.css +10 -7
- package/src/components/summary-list.native.css +5 -1
- package/src/components/svg-icons.common.css +1 -1
- package/src/components/svg-icons.native.css +2 -3
- package/src/components/table.css +17 -4
- package/src/components/test.css +2 -2
- package/src/components/typography.common.css +2 -7
- package/src/components/typography.css +9 -18
- package/src/components/typography.native.css +31 -0
- package/src/components/warning-text.common.css +1 -1
- package/src/components/warning-text.css +8 -6
- package/src/index.native.css +7 -1
- package/src/utilities/gap.css +141 -0
- package/src/utilities/index.css +6 -3
- package/src/utilities/index.native.css +6 -2
- package/src/utilities/layout.css +1 -1
- package/src/utilities/layout.native.css +1 -1
- package/src/utilities/margin.css +4299 -0
- package/src/utilities/padding.css +4299 -0
- package/src/utilities/postcss.config.js +7 -6
- package/src/utilities/print.css +1 -1
- package/src/utilities/utilities.css +3 -2378
- package/tailwind.config.js +102 -106
- package/theming.js +121 -0
- package/defaultTheme/accordion.json +0 -16
- package/defaultTheme/back-to-top.json +0 -27
- package/defaultTheme/brandConfig.json +0 -147
- package/defaultTheme/breadcrumbs.json +0 -8
- package/defaultTheme/button.json +0 -94
- package/defaultTheme/card.json +0 -23
- package/defaultTheme/form.json +0 -132
- package/defaultTheme/globals.json +0 -81
- package/defaultTheme/index.js +0 -27
- package/defaultTheme/layout.json +0 -55
- package/defaultTheme/misc.json +0 -68
- package/defaultTheme/panel.json +0 -48
- package/defaultTheme/phase-banner.json +0 -8
- package/defaultTheme/radios.json +0 -8
- package/defaultTheme/summary-list.json +0 -8
- package/defaultTheme/typography.json +0 -295
- package/src/utilities/spacing.css +0 -2133
- package/themes.plugin.js +0 -148
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@import './stack.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-stack {
|
|
4
|
+
@apply util-stack;
|
|
5
|
+
}
|
|
6
|
+
.ds-stack--row {
|
|
7
|
+
@apply util-stack--row;
|
|
8
|
+
}
|
|
9
|
+
.ds-stack--reverse-row {
|
|
10
|
+
@apply util-stack--reverse-row;
|
|
11
|
+
}
|
|
12
|
+
.ds-stack--col-reverse {
|
|
13
|
+
@apply util-stack--col-reverse;
|
|
14
|
+
}
|
|
15
|
+
.ds-stack--nowrap {
|
|
16
|
+
@apply util-stack--nowrap;
|
|
17
|
+
}
|
|
18
|
+
.ds-stack--justify-flex-start {
|
|
19
|
+
@apply util-stack--justify-flex-start;
|
|
20
|
+
}
|
|
21
|
+
.ds-stack--justify-flex-end {
|
|
22
|
+
@apply util-stack--justify-flex-end;
|
|
23
|
+
}
|
|
24
|
+
.ds-stack--justify-center {
|
|
25
|
+
@apply util-stack--justify-center;
|
|
26
|
+
}
|
|
27
|
+
.ds-stack--justify-space-between {
|
|
28
|
+
@apply util-stack--justify-space-between;
|
|
29
|
+
}
|
|
30
|
+
.ds-stack--justify-space-around {
|
|
31
|
+
@apply util-stack--justify-space-around;
|
|
32
|
+
}
|
|
33
|
+
.ds-stack--justify-space-evenly {
|
|
34
|
+
@apply util-stack--justify-space-evenly;
|
|
35
|
+
}
|
|
36
|
+
.ds-stack--align-stretch {
|
|
37
|
+
@apply util-stack--align-stretch;
|
|
38
|
+
}
|
|
39
|
+
.ds-stack--align-flex-start {
|
|
40
|
+
@apply util-stack--align-flex-start;
|
|
41
|
+
}
|
|
42
|
+
.ds-stack--align-flex-end {
|
|
43
|
+
@apply util-stack--align-flex-end;
|
|
44
|
+
}
|
|
45
|
+
.ds-stack--align-center {
|
|
46
|
+
@apply util-stack--align-center;
|
|
47
|
+
}
|
|
48
|
+
.ds-stack--align-baseline {
|
|
49
|
+
@apply util-stack--align-baseline;
|
|
50
|
+
}
|
|
51
|
+
.ds-stack--content-flex-start {
|
|
52
|
+
@apply util-stack--content-flex-start;
|
|
53
|
+
}
|
|
54
|
+
.ds-stack--content-flex-end {
|
|
55
|
+
@apply util-stack--content-flex-end;
|
|
56
|
+
}
|
|
57
|
+
.ds-stack--content-center {
|
|
58
|
+
@apply util-stack--content-center;
|
|
59
|
+
}
|
|
60
|
+
.ds-stack--content-space-between {
|
|
61
|
+
@apply util-stack--content-space-between;
|
|
62
|
+
}
|
|
63
|
+
.ds-stack--content-space-around {
|
|
64
|
+
@apply util-stack--content-space-around;
|
|
65
|
+
}
|
|
66
|
+
.ds-stack--content-space-evenly {
|
|
67
|
+
justify-content: 'space-evenly';
|
|
68
|
+
}
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
font-size: var(--summary-list-font-size);
|
|
10
10
|
}
|
|
11
11
|
.util-summary-list__row {
|
|
12
|
-
@apply
|
|
12
|
+
@apply border-b border-base-300 print:flex print:flex-row print:flex-nowrap;
|
|
13
|
+
}
|
|
14
|
+
.util-summary-list__row--no-border {
|
|
15
|
+
@apply border-0;
|
|
13
16
|
}
|
|
14
17
|
.util-summary-list__key {
|
|
15
18
|
@apply mb-1 sm:w-3/12;
|
|
@@ -23,7 +26,7 @@
|
|
|
23
26
|
.util-summary-list__actions {
|
|
24
27
|
@apply sm:w-3/12 sm:pr-0 sm:text-right;
|
|
25
28
|
}
|
|
26
|
-
|
|
29
|
+
|
|
27
30
|
.util-summary-list__key--sm-3 {
|
|
28
31
|
@apply sm:w-3/12;
|
|
29
32
|
}
|
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
.ds-summary-list {
|
|
5
5
|
@apply util-summary-list sm:table sm:table-fixed util-summary-list-text;
|
|
6
6
|
&.ds-summary-list--no-border {
|
|
7
|
-
> .ds-summary-list__row
|
|
8
|
-
@apply border-
|
|
7
|
+
> .ds-summary-list__row {
|
|
8
|
+
@apply border-0 pb-0;
|
|
9
|
+
&:last-child {
|
|
10
|
+
@apply mb-0;
|
|
11
|
+
}
|
|
9
12
|
}
|
|
10
13
|
.ds-summary-list__key,
|
|
11
14
|
.ds-summary-list__value,
|
|
12
15
|
.ds-summary-list__actions {
|
|
13
|
-
@apply
|
|
16
|
+
@apply border-0 pb-0 sm:pb-2;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
16
19
|
&.ds-summary-list--no-last-border {
|
|
@@ -26,12 +29,12 @@
|
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
.ds-summary-list__row {
|
|
29
|
-
@apply
|
|
32
|
+
@apply util-summary-list__row sm:flex block pb-4 mb-4 sm:pb-0 sm:mb-0 sm:border-0;
|
|
30
33
|
&.ds-summary-list__row--no-border {
|
|
31
34
|
.ds-summary-list__key,
|
|
32
35
|
.ds-summary-list__value,
|
|
33
36
|
.ds-summary-list__actions {
|
|
34
|
-
@apply
|
|
37
|
+
@apply border-0 pb-0 sm:pb-2;
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
}
|
|
@@ -118,7 +121,6 @@
|
|
|
118
121
|
@apply sm:flex-1;
|
|
119
122
|
}
|
|
120
123
|
|
|
121
|
-
|
|
122
124
|
/* When there is only one child */
|
|
123
125
|
.ds-summary-list__key:only-child,
|
|
124
126
|
.ds-summary-list__value:only-child,
|
|
@@ -127,7 +129,8 @@
|
|
|
127
129
|
}
|
|
128
130
|
.ds-summary-list__key,
|
|
129
131
|
.ds-summary-list__value {
|
|
130
|
-
@apply break-words;
|
|
132
|
+
/* @apply break-all break-words; */
|
|
133
|
+
overflow-wrap: anywhere;
|
|
131
134
|
}
|
|
132
135
|
.ds-summary-list__key,
|
|
133
136
|
.ds-summary-list__value,
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
@apply util-summary-list-text;
|
|
9
9
|
}
|
|
10
10
|
.ds-summary-list__row {
|
|
11
|
-
@apply
|
|
11
|
+
@apply border-b border-base-300 pb-2 flex mb-2;
|
|
12
|
+
row-gap: 0.5rem;
|
|
13
|
+
}
|
|
14
|
+
.ds-summary-list__row--no-border {
|
|
15
|
+
@apply util-summary-list__row--no-border;
|
|
12
16
|
}
|
|
13
17
|
.ds-summary-list__key {
|
|
14
18
|
@apply util-summary-list__key;
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.ds-svg-icon {
|
|
4
4
|
@apply util-svg-icon;
|
|
5
|
-
flex-
|
|
6
|
-
flex-wrap:'wrap';
|
|
5
|
+
flex-flow: 'row' 'wrap';
|
|
7
6
|
}
|
|
8
7
|
.ds-svg-icon--base-content {
|
|
9
8
|
@apply util-svg-icon--base-content;
|
|
@@ -52,4 +51,4 @@
|
|
|
52
51
|
}
|
|
53
52
|
.ds-svg-icon--xl {
|
|
54
53
|
@apply util-svg-icon--xl;
|
|
55
|
-
}
|
|
54
|
+
}
|
package/src/components/table.css
CHANGED
|
@@ -81,9 +81,12 @@
|
|
|
81
81
|
.ds-table__header,
|
|
82
82
|
.ds-table__cell {
|
|
83
83
|
&:last-child {
|
|
84
|
-
@apply border-b-2;
|
|
85
|
-
border-bottom-color: rgb(var(--color-base-content-rgb));
|
|
84
|
+
@apply border-b-2 border-b-base-content;
|
|
86
85
|
}
|
|
86
|
+
}
|
|
87
|
+
.ds-table__header--numeric,
|
|
88
|
+
.ds-table__cell--numeric {
|
|
89
|
+
@apply text-left;
|
|
87
90
|
}
|
|
88
91
|
.ds-table__head {
|
|
89
92
|
.ds-table__header {
|
|
@@ -98,6 +101,7 @@
|
|
|
98
101
|
@apply block font-semibold mb-2;
|
|
99
102
|
content: attr(data-label);
|
|
100
103
|
}
|
|
104
|
+
|
|
101
105
|
}
|
|
102
106
|
&.ds-table--stacked-sm {
|
|
103
107
|
@media (min-width: 640px) {
|
|
@@ -108,9 +112,13 @@
|
|
|
108
112
|
.ds-table__header,
|
|
109
113
|
.ds-table__cell {
|
|
110
114
|
&:last-child {
|
|
111
|
-
@apply border-b-2
|
|
115
|
+
@apply xsOnly:border-b-2 xsOnly:border-b-base-content;
|
|
112
116
|
}
|
|
113
117
|
}
|
|
118
|
+
.ds-table__header--numeric,
|
|
119
|
+
.ds-table__cell--numeric {
|
|
120
|
+
@apply xsOnly:text-left;
|
|
121
|
+
}
|
|
114
122
|
.ds-table__head {
|
|
115
123
|
.ds-table__header {
|
|
116
124
|
@apply hidden sm:table-cell;
|
|
@@ -134,9 +142,14 @@
|
|
|
134
142
|
.ds-table__header,
|
|
135
143
|
.ds-table__cell {
|
|
136
144
|
&:last-child {
|
|
137
|
-
@apply border-b-2
|
|
145
|
+
@apply xsOnly:border-b-2 smOnly:border-b-2
|
|
146
|
+
xsOnly:border-b-base-content smOnly:border-b-base-content;
|
|
138
147
|
}
|
|
139
148
|
}
|
|
149
|
+
.ds-table__header--numeric,
|
|
150
|
+
.ds-table__cell--numeric {
|
|
151
|
+
@apply smOnly:text-left mdOnly:text-left;
|
|
152
|
+
}
|
|
140
153
|
.ds-table__head {
|
|
141
154
|
.ds-table__header {
|
|
142
155
|
@apply hidden md:table-cell;
|
package/src/components/test.css
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
.util-link {
|
|
53
53
|
@apply focus:bg-focus;
|
|
54
|
-
padding: var(--link-padding);
|
|
54
|
+
padding: var(--link-padding-y) var(--link-padding-x);
|
|
55
55
|
}
|
|
56
56
|
.util-link-text {
|
|
57
57
|
/* @apply focus:text-link-active underline; */
|
|
@@ -59,9 +59,6 @@
|
|
|
59
59
|
color: var(--link-color);
|
|
60
60
|
font-size: var(--link-font-size);
|
|
61
61
|
line-height: var(--link-line-height);
|
|
62
|
-
/* &:focus {
|
|
63
|
-
text-decoration: none !important;
|
|
64
|
-
} */
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
.util-caption-xl {
|
|
@@ -115,9 +112,7 @@
|
|
|
115
112
|
|
|
116
113
|
/* List */
|
|
117
114
|
.util-list {
|
|
118
|
-
@apply mt-4;
|
|
119
|
-
|
|
120
|
-
@apply md:mb-8 mb-4 text-base-content;
|
|
115
|
+
@apply md:mb-8 mb-4 mt-4 text-base-content;
|
|
121
116
|
}
|
|
122
117
|
.util-list-bullet {
|
|
123
118
|
@apply pl-4;
|
|
@@ -60,21 +60,6 @@
|
|
|
60
60
|
@apply opacity-70 text-white print:text-base-content;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
.ds-code {
|
|
64
|
-
@apply text-sm sm:text-base bg-base-100;
|
|
65
|
-
&.ds-code--attr {
|
|
66
|
-
@apply text-info;
|
|
67
|
-
}
|
|
68
|
-
&.ds-code--string {
|
|
69
|
-
@apply text-success;
|
|
70
|
-
}
|
|
71
|
-
&.ds-code--keyword {
|
|
72
|
-
@apply text-warning;
|
|
73
|
-
}
|
|
74
|
-
&.ds-code--name {
|
|
75
|
-
@apply text-tertiary;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
63
|
.ds-\!-font-size-14 {
|
|
79
64
|
@apply text-xs md:text-sm !important;
|
|
80
65
|
}
|
|
@@ -106,8 +91,7 @@
|
|
|
106
91
|
@apply util-font-weight-bold-text;
|
|
107
92
|
}
|
|
108
93
|
.ds-list {
|
|
109
|
-
@apply list-none list-outside
|
|
110
|
-
@apply md:mb-8 mb-4 text-base-content;
|
|
94
|
+
@apply list-none list-outside md:mb-8 mb-4 text-base-content;
|
|
111
95
|
font-size: var(--list-font-size);
|
|
112
96
|
line-height: var(--list-line-height);
|
|
113
97
|
&.ds-list--bullet {
|
|
@@ -130,6 +114,9 @@
|
|
|
130
114
|
&:last-child {
|
|
131
115
|
@apply mb-0;
|
|
132
116
|
}
|
|
117
|
+
> button.ds-link:only-child {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
}
|
|
133
120
|
}
|
|
134
121
|
}
|
|
135
122
|
.ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
@@ -175,7 +162,7 @@
|
|
|
175
162
|
}
|
|
176
163
|
|
|
177
164
|
.ds-link {
|
|
178
|
-
@apply focus:text-link-active util-link util-link-text cursor-pointer;
|
|
165
|
+
@apply focus:text-link-active util-link util-link-text cursor-pointer text-left;
|
|
179
166
|
letter-spacing: var(--link-letter-spacing);
|
|
180
167
|
&:hover {
|
|
181
168
|
text-decoration-thickness: 2px;
|
|
@@ -192,6 +179,9 @@
|
|
|
192
179
|
&.ds-link--no-underline {
|
|
193
180
|
@apply no-underline hover:underline;
|
|
194
181
|
}
|
|
182
|
+
&.ds-link-warning {
|
|
183
|
+
color: var(--color-error-text);
|
|
184
|
+
}
|
|
195
185
|
.ds-heading-xl &,
|
|
196
186
|
.ds-heading-lg &,
|
|
197
187
|
.ds-heading-md &,
|
|
@@ -279,6 +269,7 @@
|
|
|
279
269
|
}
|
|
280
270
|
}
|
|
281
271
|
button.ds-link {
|
|
272
|
+
@apply text-left;
|
|
282
273
|
.ds-svg-icon {
|
|
283
274
|
@apply ml-1;
|
|
284
275
|
}
|
|
@@ -12,33 +12,51 @@
|
|
|
12
12
|
.ds-heading-xl__text {
|
|
13
13
|
@apply util-heading-xl-text;
|
|
14
14
|
margin-bottom: var(--heading-xl-margin-bottom);
|
|
15
|
+
line-height: calc(
|
|
16
|
+
var(--heading-xl-line-height) * var(--heading-xl-font-size)
|
|
17
|
+
);
|
|
15
18
|
}
|
|
16
19
|
.ds-heading-lg__text {
|
|
17
20
|
@apply util-heading-lg-text;
|
|
18
21
|
margin-bottom: var(--heading-lg-margin-bottom);
|
|
22
|
+
line-height: calc(
|
|
23
|
+
var(--heading-lg-line-height) * var(--heading-lg-font-size)
|
|
24
|
+
);
|
|
19
25
|
}
|
|
20
26
|
.ds-heading-md__text {
|
|
21
27
|
@apply util-heading-md-text;
|
|
22
28
|
margin-bottom: var(--heading-md-margin-bottom);
|
|
29
|
+
line-height: calc(
|
|
30
|
+
var(--heading-md-line-height) * var(--heading-md-font-size)
|
|
31
|
+
);
|
|
23
32
|
}
|
|
24
33
|
.ds-heading-sm__text {
|
|
25
34
|
@apply util-heading-sm-text;
|
|
26
35
|
margin-bottom: var(--heading-sm-margin-bottom);
|
|
36
|
+
line-height: calc(
|
|
37
|
+
var(--heading-sm-line-height) * var(--heading-sm-font-size)
|
|
38
|
+
);
|
|
27
39
|
}
|
|
28
40
|
.ds-heading-xs__text {
|
|
29
41
|
@apply util-heading-xs-text;
|
|
30
42
|
margin-bottom: var(--heading-xs-margin-bottom);
|
|
43
|
+
line-height: calc(
|
|
44
|
+
var(--heading-xs-line-height) * var(--heading-xs-font-size)
|
|
45
|
+
);
|
|
31
46
|
}
|
|
32
47
|
|
|
33
48
|
/* Paragraph */
|
|
34
49
|
.ds-body__text {
|
|
35
50
|
@apply util-body-text;
|
|
51
|
+
line-height: calc(var(--body-line-height) * var(--body-font-size));
|
|
36
52
|
}
|
|
37
53
|
.ds-body--lg__text {
|
|
38
54
|
@apply util-body-lg-text;
|
|
55
|
+
line-height: calc(var(--body--lg-line-height) * var(--body--lg-font-size));
|
|
39
56
|
}
|
|
40
57
|
.ds-body--sm__text {
|
|
41
58
|
@apply util-body-sm-text;
|
|
59
|
+
line-height: calc(var(--body__sm-line-height) * var(--body__sm-font-size));
|
|
42
60
|
}
|
|
43
61
|
|
|
44
62
|
/* Hint */
|
|
@@ -47,12 +65,15 @@
|
|
|
47
65
|
}
|
|
48
66
|
.ds-hint__text {
|
|
49
67
|
@apply util-hint-text;
|
|
68
|
+
line-height: calc(var(--hint-line-height) * var(--hint-font-size));
|
|
50
69
|
}
|
|
51
70
|
.ds-hint--lg__text {
|
|
52
71
|
@apply util-hint-lg-text;
|
|
72
|
+
line-height: calc(var(--hint--lg-line-height) * var(--hint--lg-font-size));
|
|
53
73
|
}
|
|
54
74
|
.ds-hint--sm__text {
|
|
55
75
|
@apply util-hint-sm-text;
|
|
76
|
+
line-height: calc(var(--hint--sm-line-height) * var(--hint--sm-font-size));
|
|
56
77
|
}
|
|
57
78
|
|
|
58
79
|
/* Link */
|
|
@@ -61,6 +82,7 @@
|
|
|
61
82
|
}
|
|
62
83
|
.ds-link__text {
|
|
63
84
|
@apply util-link-text;
|
|
85
|
+
line-height: calc(var(--link-line-height) * var(--link-font-size));
|
|
64
86
|
}
|
|
65
87
|
|
|
66
88
|
/* HeadingCaption */
|
|
@@ -69,18 +91,27 @@
|
|
|
69
91
|
}
|
|
70
92
|
.ds-caption-xl__text {
|
|
71
93
|
@apply util-caption-xl-text;
|
|
94
|
+
line-height: calc(
|
|
95
|
+
var(--caption-xl-line-height) * var(--caption-xl-font-size)
|
|
96
|
+
);
|
|
72
97
|
}
|
|
73
98
|
.ds-caption-lg {
|
|
74
99
|
@apply util-caption-lg;
|
|
75
100
|
}
|
|
76
101
|
.ds-caption-lg__text {
|
|
77
102
|
@apply util-caption-lg-text;
|
|
103
|
+
line-height: calc(
|
|
104
|
+
var(--caption-lg-line-height) * var(--caption-lg-font-size)
|
|
105
|
+
);
|
|
78
106
|
}
|
|
79
107
|
.ds-caption-md {
|
|
80
108
|
@apply util-caption-md;
|
|
81
109
|
}
|
|
82
110
|
.ds-caption-md__text {
|
|
83
111
|
@apply util-caption-md-text;
|
|
112
|
+
line-height: calc(
|
|
113
|
+
var(--caption-md-line-height) * var(--caption-md-font-size)
|
|
114
|
+
);
|
|
84
115
|
}
|
|
85
116
|
|
|
86
117
|
.ds-list {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
@import './warning-text.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-warning-text {
|
|
2
|
-
@apply
|
|
4
|
+
@apply util-warning-text py-4 px-0;
|
|
3
5
|
font-size: var(--warning-text-font-size);
|
|
4
6
|
&.ds-warning-text--dense,
|
|
5
7
|
.ds-dense & {
|
|
@@ -15,9 +17,9 @@
|
|
|
15
17
|
.ds-warning-text__content {
|
|
16
18
|
@apply flex items-center;
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
}
|
|
21
|
+
.ds-warning-text__assistive {
|
|
22
|
+
@apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden whitespace-nowrap !important;
|
|
23
|
+
clip: rect(0 0 0 0) !important;
|
|
24
|
+
clip-path: inset(50%) !important;
|
|
23
25
|
}
|
package/src/index.native.css
CHANGED
|
@@ -17,4 +17,10 @@
|
|
|
17
17
|
@import './components/warning-text.native';
|
|
18
18
|
@import './components/form.native';
|
|
19
19
|
@import './components/checkboxes.native';
|
|
20
|
-
@import './components/radios.native';
|
|
20
|
+
@import './components/radios.native';
|
|
21
|
+
@import './components/modal.native';
|
|
22
|
+
@import './components/loader.native';
|
|
23
|
+
@import './components/stack.native';
|
|
24
|
+
@import './components/chip.native';
|
|
25
|
+
@import './components/skeleton.native';
|
|
26
|
+
@import './components/accordion.native';
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
.ds-gap-1 {
|
|
2
|
+
@apply gap-1;
|
|
3
|
+
}
|
|
4
|
+
.ds-gap-2 {
|
|
5
|
+
@apply gap-2;
|
|
6
|
+
}
|
|
7
|
+
.ds-gap-4 {
|
|
8
|
+
@apply gap-4;
|
|
9
|
+
}
|
|
10
|
+
.ds-gap-6 {
|
|
11
|
+
@apply gap-6;
|
|
12
|
+
}
|
|
13
|
+
.ds-gap-8 {
|
|
14
|
+
@apply gap-8;
|
|
15
|
+
}
|
|
16
|
+
.ds-gap-10 {
|
|
17
|
+
@apply gap-10;
|
|
18
|
+
}
|
|
19
|
+
.ds-gap-12 {
|
|
20
|
+
@apply gap-12;
|
|
21
|
+
}
|
|
22
|
+
.ds-gap-xs-1 {
|
|
23
|
+
@apply gap-1;
|
|
24
|
+
}
|
|
25
|
+
.ds-gap-xs-2 {
|
|
26
|
+
@apply gap-2;
|
|
27
|
+
}
|
|
28
|
+
.ds-gap-xs-4 {
|
|
29
|
+
@apply gap-4;
|
|
30
|
+
}
|
|
31
|
+
.ds-gap-xs-5 {
|
|
32
|
+
@apply gap-5;
|
|
33
|
+
}
|
|
34
|
+
.ds-gap-xs-6 {
|
|
35
|
+
@apply gap-6;
|
|
36
|
+
}
|
|
37
|
+
.ds-gap-xs-8 {
|
|
38
|
+
@apply gap-8;
|
|
39
|
+
}
|
|
40
|
+
.ds-gap-xs-10 {
|
|
41
|
+
@apply gap-10;
|
|
42
|
+
}
|
|
43
|
+
.ds-gap-xs-12 {
|
|
44
|
+
@apply gap-12;
|
|
45
|
+
}
|
|
46
|
+
.ds-gap-sm-1 {
|
|
47
|
+
@apply sm:gap-1;
|
|
48
|
+
}
|
|
49
|
+
.ds-gap-sm-2 {
|
|
50
|
+
@apply sm:gap-2;
|
|
51
|
+
}
|
|
52
|
+
.ds-gap-sm-4 {
|
|
53
|
+
@apply sm:gap-4;
|
|
54
|
+
}
|
|
55
|
+
.ds-gap-sm-5 {
|
|
56
|
+
@apply sm:gap-5;
|
|
57
|
+
}
|
|
58
|
+
.ds-gap-sm-6 {
|
|
59
|
+
@apply sm:gap-6;
|
|
60
|
+
}
|
|
61
|
+
.ds-gap-sm-8 {
|
|
62
|
+
@apply sm:gap-8;
|
|
63
|
+
}
|
|
64
|
+
.ds-gap-sm-10 {
|
|
65
|
+
@apply sm:gap-10;
|
|
66
|
+
}
|
|
67
|
+
.ds-gap-sm-12 {
|
|
68
|
+
@apply sm:gap-12;
|
|
69
|
+
}
|
|
70
|
+
.ds-gap-md-1 {
|
|
71
|
+
@apply md:gap-1;
|
|
72
|
+
}
|
|
73
|
+
.ds-gap-md-2 {
|
|
74
|
+
@apply md:gap-2;
|
|
75
|
+
}
|
|
76
|
+
.ds-gap-md-4 {
|
|
77
|
+
@apply md:gap-4;
|
|
78
|
+
}
|
|
79
|
+
.ds-gap-md-5 {
|
|
80
|
+
@apply md:gap-5;
|
|
81
|
+
}
|
|
82
|
+
.ds-gap-md-6 {
|
|
83
|
+
@apply md:gap-6;
|
|
84
|
+
}
|
|
85
|
+
.ds-gap-md-8 {
|
|
86
|
+
@apply md:gap-8;
|
|
87
|
+
}
|
|
88
|
+
.ds-gap-md-10 {
|
|
89
|
+
@apply md:gap-10;
|
|
90
|
+
}
|
|
91
|
+
.ds-gap-md-12 {
|
|
92
|
+
@apply md:gap-12;
|
|
93
|
+
}
|
|
94
|
+
.ds-gap-lg-1 {
|
|
95
|
+
@apply lg:gap-1;
|
|
96
|
+
}
|
|
97
|
+
.ds-gap-lg-2 {
|
|
98
|
+
@apply lg:gap-2;
|
|
99
|
+
}
|
|
100
|
+
.ds-gap-lg-4 {
|
|
101
|
+
@apply lg:gap-4;
|
|
102
|
+
}
|
|
103
|
+
.ds-gap-lg-5 {
|
|
104
|
+
@apply lg:gap-5;
|
|
105
|
+
}
|
|
106
|
+
.ds-gap-lg-6 {
|
|
107
|
+
@apply lg:gap-6;
|
|
108
|
+
}
|
|
109
|
+
.ds-gap-lg-8 {
|
|
110
|
+
@apply lg:gap-8;
|
|
111
|
+
}
|
|
112
|
+
.ds-gap-lg-10 {
|
|
113
|
+
@apply lg:gap-10;
|
|
114
|
+
}
|
|
115
|
+
.ds-gap-lg-12 {
|
|
116
|
+
@apply lg:gap-12;
|
|
117
|
+
}
|
|
118
|
+
.ds-gap-xl-1 {
|
|
119
|
+
@apply xl:gap-1;
|
|
120
|
+
}
|
|
121
|
+
.ds-gap-xl-2 {
|
|
122
|
+
@apply xl:gap-2;
|
|
123
|
+
}
|
|
124
|
+
.ds-gap-xl-4 {
|
|
125
|
+
@apply xl:gap-4;
|
|
126
|
+
}
|
|
127
|
+
.ds-gap-xl-5 {
|
|
128
|
+
@apply xl:gap-5;
|
|
129
|
+
}
|
|
130
|
+
.ds-gap-xl-6 {
|
|
131
|
+
@apply xl:gap-6;
|
|
132
|
+
}
|
|
133
|
+
.ds-gap-xl-8 {
|
|
134
|
+
@apply xl:gap-8;
|
|
135
|
+
}
|
|
136
|
+
.ds-gap-xl-10 {
|
|
137
|
+
@apply xl:gap-10;
|
|
138
|
+
}
|
|
139
|
+
.ds-gap-xl-12 {
|
|
140
|
+
@apply xl:gap-12;
|
|
141
|
+
}
|
package/src/utilities/index.css
CHANGED
package/src/utilities/layout.css
CHANGED