@digigov/css 2.0.0-d0adc9fb → 2.0.0-d2ffc726

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.
@@ -27,7 +27,7 @@
27
27
  @apply md:mb-10 mb-6 text-base-content md:text-lg text-base font-normal antialiased;
28
28
  border-spacing: 0;
29
29
  &.ds-table--vertical-lines {
30
- .ds-table__cell,
30
+ .ds-table__cell.ds-table__cell--border,
31
31
  .ds-table__header {
32
32
  @apply border-l border-r border-solid border-base-300 px-4;
33
33
  }
@@ -79,12 +79,15 @@
79
79
  }
80
80
  &.ds-table--stacked-always {
81
81
  .ds-table__header,
82
- .ds-table__cell {
82
+ .ds-table__cell.ds-table__cell--border {
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
  }
87
86
  }
87
+ .ds-table__header--numeric,
88
+ .ds-table__cell--numeric {
89
+ @apply text-left;
90
+ }
88
91
  .ds-table__head {
89
92
  .ds-table__header {
90
93
  @apply hidden;
@@ -106,11 +109,15 @@
106
109
  }
107
110
  }
108
111
  .ds-table__header,
109
- .ds-table__cell {
112
+ .ds-table__cell.ds-table__cell--border {
110
113
  &:last-child {
111
- @apply border-b-2 sm:border-b border-b-base-content sm:border-b-base-300;
114
+ @apply xsOnly:border-b-2 xsOnly:border-b-base-content;
112
115
  }
113
116
  }
117
+ .ds-table__header--numeric,
118
+ .ds-table__cell--numeric {
119
+ @apply xsOnly:text-left;
120
+ }
114
121
  .ds-table__head {
115
122
  .ds-table__header {
116
123
  @apply hidden sm:table-cell;
@@ -132,11 +139,16 @@
132
139
  }
133
140
  }
134
141
  .ds-table__header,
135
- .ds-table__cell {
142
+ .ds-table__cell.ds-table__cell--border {
136
143
  &:last-child {
137
- @apply border-b-2 md:border-b border-b-base-content md:border-b-base-300;
144
+ @apply xsOnly:border-b-2 smOnly:border-b-2
145
+ xsOnly:border-b-base-content smOnly:border-b-base-content;
138
146
  }
139
147
  }
148
+ .ds-table__header--numeric,
149
+ .ds-table__cell--numeric {
150
+ @apply smOnly:text-left mdOnly:text-left;
151
+ }
140
152
  .ds-table__head {
141
153
  .ds-table__header {
142
154
  @apply hidden md:table-cell;
@@ -151,6 +163,16 @@
151
163
  content: attr(data-label);
152
164
  }
153
165
  }
166
+ &.ds-table--align-top {
167
+ .ds-table__cell {
168
+ @apply align-top;
169
+ }
170
+ }
171
+ &.ds-table--align-bottom {
172
+ .ds-table__cell {
173
+ @apply align-bottom;
174
+ }
175
+ }
154
176
  .ds-table__cell {
155
177
  .ds-body:last-child {
156
178
  @apply mb-0;
@@ -174,7 +196,7 @@
174
196
  @apply border-r border-solid border-base-300 px-4 !important;
175
197
  }
176
198
  }
177
- .ds-table__cell {
199
+ .ds-table__cell.ds-table__cell--border {
178
200
  @apply border-r-0 !important;
179
201
  &:last-child {
180
202
  @apply border-r border-solid border-base-300 px-4 !important;
@@ -212,13 +234,30 @@
212
234
  }
213
235
  }
214
236
  }
215
- .ds-table__header,
216
- .ds-table__cell {
237
+ .ds-table__header {
217
238
  @apply pr-5 py-2.5 pl-0 border-b border-solid border-base-300 text-left align-middle;
218
239
  &:last-child {
219
240
  @apply pr-0;
220
241
  }
221
242
  }
243
+ .ds-table__cell {
244
+ @apply pr-5 py-2.5 pl-0 text-left align-middle;
245
+ &:last-child {
246
+ @apply pr-0;
247
+ }
248
+ &.ds-table__cell--border {
249
+ @apply border-b border-solid border-base-300;
250
+ }
251
+ &.ds-table__cell--break-all {
252
+ @apply break-all;
253
+ }
254
+ &.ds-table__cell--warning {
255
+ @apply border-l-4 border-l-warning pl-2;
256
+ }
257
+ &.ds-table__cell--error {
258
+ @apply border-l-5 border-l-error pl-2;
259
+ }
260
+ }
222
261
  .ds-table__header--numeric,
223
262
  .ds-table__cell--numeric {
224
263
  @apply text-right;
@@ -112,9 +112,7 @@
112
112
 
113
113
  /* List */
114
114
  .util-list {
115
- @apply mt-4;
116
-
117
- @apply md:mb-8 mb-4 text-base-content;
115
+ @apply md:mb-8 mb-4 mt-4 text-base-content;
118
116
  }
119
117
  .util-list-bullet {
120
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
  }
@@ -194,6 +179,20 @@
194
179
  &.ds-link--no-underline {
195
180
  @apply no-underline hover:underline;
196
181
  }
182
+ &.ds-link--disabled {
183
+ @apply cursor-not-allowed !important;
184
+ color: var(--color-base-content);
185
+ &:hover {
186
+ color: var(--color-base-content);
187
+ }
188
+ }
189
+ &.ds-link-warning {
190
+ @apply focus:text-link-active;
191
+ color: var(--color-error-text);
192
+ &:hover {
193
+ color: var(--color-error-hover);
194
+ }
195
+ }
197
196
  .ds-heading-xl &,
198
197
  .ds-heading-lg &,
199
198
  .ds-heading-md &,
@@ -4,7 +4,7 @@
4
4
 
5
5
  @layer utilities {
6
6
  .util-warning-text {
7
- @apply flex pb-0;
7
+ @apply flex;
8
8
  }
9
9
  .util-warning-text-text {
10
10
  font-size: var(--warning-text-font-size);
@@ -1,5 +1,7 @@
1
+ @import './warning-text.common.css';
2
+
1
3
  .ds-warning-text {
2
- @apply flex py-4 px-0;
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
- .ds-warning-text__assistive {
19
- @apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden whitespace-nowrap !important;
20
- clip: rect(0 0 0 0) !important;
21
- clip-path: inset(50%) !important;
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
  }
@@ -22,3 +22,5 @@
22
22
  @import './components/loader.native';
23
23
  @import './components/stack.native';
24
24
  @import './components/chip.native';
25
+ @import './components/skeleton.native';
26
+ @import './components/accordion.native';