@dynamic-framework/ui-react 2.0.0-dev.6 → 2.0.0-dev.8
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/css/dynamic-ui-non-root.css +127 -510
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +62 -556
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +188 -1065
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +152 -98
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +150 -96
- package/dist/index.js.map +1 -1
- package/dist/types/components/DIconBase/DIconBase.d.ts +10 -2
- package/dist/types/components/DInput/DInput.d.ts +2 -1
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +3 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +3 -2
- package/dist/types/components/DInputPhone/DInputPhone.d.ts +1 -1
- package/dist/types/components/config.d.ts +0 -2
- package/dist/types/hooks/useResponsiveProp.d.ts +35 -0
- package/package.json +16 -25
- package/src/style/abstracts/_mixins.scss +34 -16
- package/src/style/abstracts/variables/_colors.scss +8 -2
- package/src/style/base/_buttons.scss +11 -125
- package/src/style/base/_label.scss +0 -4
- package/src/style/components/_d-datepicker.scss +23 -4
- package/src/style/root/_root.scss +94 -88
- package/dist/types/components/DBarChart/DBarChart.d.ts +0 -9
- package/dist/types/components/DMinimalLineChart/DMinimalLineChart.d.ts +0 -9
- package/dist/types/components/DMultiLineChart/DMultiLineChart.d.ts +0 -9
- package/dist/types/components/DPieChart/DPieChart.d.ts +0 -9
- package/dist/types/components/DRadialBarChart/DRadialBarChart.d.ts +0 -6
|
@@ -221,94 +221,100 @@
|
|
|
221
221
|
--#{$prefix}btn-sm-border-radius: #{$btn-border-radius-sm};
|
|
222
222
|
|
|
223
223
|
@each $color, $value in $theme-colors {
|
|
224
|
-
@if $color
|
|
225
|
-
@
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
224
|
+
@if not map-has-key($theme-colors-extra, $color) {
|
|
225
|
+
@if $color == "light" {
|
|
226
|
+
@include df-button-variant-variables(
|
|
227
|
+
"light",
|
|
228
|
+
$default-color: var(--#{$prefix}gray-25),
|
|
229
|
+
$default-text-color: color-contrast-var(map-get($all-colors, gray-100)),
|
|
230
|
+
$hover-color: var(--#{$prefix}gray-50),
|
|
231
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
232
|
+
$focus-color: var(--#{$prefix}gray-200),
|
|
233
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
234
|
+
$active-color: var(--#{$prefix}gray-300),
|
|
235
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-300)),
|
|
236
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-100-rgb),
|
|
237
|
+
);
|
|
238
|
+
@include df-button-outline-variant-variables(
|
|
239
|
+
"light",
|
|
240
|
+
$default-color: var(--#{$prefix}gray-100),
|
|
241
|
+
$hover-color: var(--#{$prefix}gray-200),
|
|
242
|
+
$focus-color: var(--#{$prefix}gray-200),
|
|
243
|
+
$active-color: var(--#{$prefix}gray-300),
|
|
244
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-100-rgb),
|
|
245
|
+
);
|
|
246
|
+
@include df-button-link-variant-variables(
|
|
247
|
+
"light",
|
|
248
|
+
$default-color: var(--#{$prefix}gray-100),
|
|
249
|
+
$hover-text-color: var(--#{$prefix}gray-200),
|
|
250
|
+
$focus-text-color: var(--#{$prefix}gray-200),
|
|
251
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-300)),
|
|
252
|
+
$active-bg-color: var(--#{$prefix}gray-300),
|
|
253
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-100-rgb),
|
|
254
|
+
);
|
|
255
|
+
} @else if $color == "dark" {
|
|
256
|
+
@include df-button-variant-variables(
|
|
257
|
+
"dark",
|
|
258
|
+
$default-color: var(--#{$prefix}gray-900),
|
|
259
|
+
$default-text-color: color-contrast-var(map-get($all-colors, gray-900)),
|
|
260
|
+
$hover-color: var(--#{$prefix}gray-800),
|
|
261
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
262
|
+
$focus-color: var(--#{$prefix}gray-800),
|
|
263
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
264
|
+
$active-color: var(--#{$prefix}gray-700),
|
|
265
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-700)),
|
|
266
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-900-rgb),
|
|
267
|
+
);
|
|
268
|
+
@include df-button-outline-variant-variables(
|
|
269
|
+
"dark",
|
|
270
|
+
$default-color: var(--#{$prefix}gray-900),
|
|
271
|
+
$hover-color: var(--#{$prefix}gray-800),
|
|
272
|
+
$focus-color: var(--#{$prefix}gray-800),
|
|
273
|
+
$active-color: var(--#{$prefix}gray-700),
|
|
274
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-900-rgb),
|
|
275
|
+
);
|
|
276
|
+
@include df-button-link-variant-variables(
|
|
277
|
+
"dark",
|
|
278
|
+
$default-color: var(--#{$prefix}gray-900),
|
|
279
|
+
$hover-text-color: var(--#{$prefix}gray-800),
|
|
280
|
+
$focus-text-color: var(--#{$prefix}gray-800),
|
|
281
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-700)),
|
|
282
|
+
$active-bg-color: var(--#{$prefix}gray-700),
|
|
283
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-900-rgb),
|
|
284
|
+
);
|
|
285
|
+
|
|
286
|
+
} @else if $color == "secondary" {
|
|
287
|
+
@include df-button-variant-variables(
|
|
288
|
+
"secondary",
|
|
289
|
+
$default-color: var(--#{$prefix}secondary-50),
|
|
290
|
+
$default-text-color: var(--#{$prefix}secondary-700),
|
|
291
|
+
$hover-color: var(--#{$prefix}secondary-100),
|
|
292
|
+
$hover-text-color: var(--#{$prefix}secondary-700),
|
|
293
|
+
$focus-color: var(--#{$prefix}secondary-100),
|
|
294
|
+
$focus-text-color: var(--#{$prefix}secondary-700),
|
|
295
|
+
$active-color: var(--#{$prefix}secondary-100),
|
|
296
|
+
$active-text-color: var(--#{$prefix}secondary-700),
|
|
297
|
+
$focus-shadow-rgb: var(--#{$prefix}secondary-100-rgb),
|
|
298
|
+
);
|
|
299
|
+
@include df-button-outline-variant-variables(
|
|
300
|
+
"secondary",
|
|
301
|
+
$default-color: var(--#{$prefix}secondary-500),
|
|
302
|
+
$default-border-color: var(--#{$prefix}secondary-200),
|
|
303
|
+
$hover-color: var(--#{$prefix}secondary-700),
|
|
304
|
+
$hover-border-color: var(--#{$prefix}secondary-400),
|
|
305
|
+
$focus-color: var(--#{$prefix}secondary-700),
|
|
306
|
+
$active-color: var(--#{$prefix}secondary-700),
|
|
307
|
+
$active-border-color: var(--#{$prefix}secondary-600),
|
|
308
|
+
);
|
|
309
|
+
@include df-button-link-variant-variables(
|
|
310
|
+
"secondary",
|
|
311
|
+
$active-bg-color: var(--#{$prefix}secondary-100),
|
|
312
|
+
);
|
|
313
|
+
} @else {
|
|
314
|
+
@include df-button-variant-variables($color);
|
|
315
|
+
@include df-button-outline-variant-variables($color);
|
|
316
|
+
@include df-button-link-variant-variables($color);
|
|
317
|
+
}
|
|
312
318
|
}
|
|
313
319
|
}
|
|
314
320
|
|