@imaginario27/air-ui-ds 1.1.0 → 1.1.1
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.
|
@@ -44,14 +44,14 @@ const colorClass = computed(() => {
|
|
|
44
44
|
|
|
45
45
|
const iconColorClass = computed(() => {
|
|
46
46
|
const iconVariants = {
|
|
47
|
-
[ColorAccent.NEUTRAL]: 'text-icon-neutral-subtle-on-subtler-bg',
|
|
48
|
-
[ColorAccent.SUCCESS]: 'text-icon-success',
|
|
49
|
-
[ColorAccent.WARNING]: 'text-icon-warning-on-bg',
|
|
50
|
-
[ColorAccent.DANGER]: 'text-icon-danger',
|
|
51
|
-
[ColorAccent.INFO]: 'text-icon-info',
|
|
52
|
-
[ColorAccent.PRIMARY_BRAND]: 'text-icon-primary-brand-default',
|
|
53
|
-
[ColorAccent.SECONDARY_BRAND]: 'text-icon-secondary-brand-default',
|
|
47
|
+
[ColorAccent.NEUTRAL]: '!text-icon-neutral-subtle-on-subtler-bg',
|
|
48
|
+
[ColorAccent.SUCCESS]: '!text-icon-success',
|
|
49
|
+
[ColorAccent.WARNING]: '!text-icon-warning-on-bg',
|
|
50
|
+
[ColorAccent.DANGER]: '!text-icon-danger',
|
|
51
|
+
[ColorAccent.INFO]: '!text-icon-info',
|
|
52
|
+
[ColorAccent.PRIMARY_BRAND]: '!text-icon-primary-brand-default',
|
|
53
|
+
[ColorAccent.SECONDARY_BRAND]: '!text-icon-secondary-brand-default',
|
|
54
54
|
}
|
|
55
|
-
return iconVariants[props.color as ColorAccent] || 'text-icon-neutral-subtle-on-subtler-bg'
|
|
55
|
+
return iconVariants[props.color as ColorAccent] || '!text-icon-neutral-subtle-on-subtler-bg'
|
|
56
56
|
})
|
|
57
57
|
</script>
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
<div class="animate-spin">
|
|
30
30
|
<Icon
|
|
31
31
|
name="mdi:loading"
|
|
32
|
-
:iconClass="iconSizeClass"
|
|
32
|
+
:iconClass="[iconSizeClass, iconColorClass]"
|
|
33
33
|
/>
|
|
34
34
|
</div>
|
|
35
35
|
|
|
36
|
-
<span :class="[
|
|
36
|
+
<span :class="['font-semibold', textSizeClass, textClass]">
|
|
37
37
|
{{ loadingText }}
|
|
38
38
|
</span>
|
|
39
39
|
</template>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/>
|
|
54
54
|
</template>
|
|
55
55
|
|
|
56
|
-
<span :class="[
|
|
56
|
+
<span :class="['font-semibold', textSizeClass, textClass]">
|
|
57
57
|
{{ text }}
|
|
58
58
|
</span>
|
|
59
59
|
|
|
@@ -314,20 +314,20 @@ const textSizeClass = computed(() => {
|
|
|
314
314
|
|
|
315
315
|
const iconColorClass = computed(() => {
|
|
316
316
|
const variant = {
|
|
317
|
-
[ButtonStyleType.PRIMARY_BRAND_FILLED]: 'text-text-neutral-on-filled',
|
|
318
|
-
[ButtonStyleType.PRIMARY_BRAND_SOFT]: 'text-icon-primary-brand-on-soft-bg',
|
|
319
|
-
[ButtonStyleType.PRIMARY_BRAND_TRANSPARENT]: 'text-text-primary-brand-default',
|
|
320
|
-
[ButtonStyleType.SECONDARY_BRAND_FILLED]: 'text-text-neutral-on-filled',
|
|
321
|
-
[ButtonStyleType.NEUTRAL_FILLED]: 'text-text-neutral-on-neutral-filled-bg',
|
|
322
|
-
[ButtonStyleType.NEUTRAL_OUTLINED]: 'text-text-default',
|
|
323
|
-
[ButtonStyleType.NEUTRAL_TRANSPARENT]: 'text-text-default',
|
|
324
|
-
[ButtonStyleType.NEUTRAL_TRANSPARENT_SUBTLE]: 'text-text-neutral-subtler',
|
|
325
|
-
[ButtonStyleType.DELETE_FILLED]: 'text-text-neutral-on-filled',
|
|
326
|
-
[ButtonStyleType.DELETE_SOFT]: 'text-text-delete',
|
|
327
|
-
[ButtonStyleType.DELETE_OUTLINED]: 'text-text-delete',
|
|
328
|
-
[ButtonStyleType.DELETE_TRANSPARENT]: 'text-text-delete',
|
|
317
|
+
[ButtonStyleType.PRIMARY_BRAND_FILLED]: '!text-text-neutral-on-filled',
|
|
318
|
+
[ButtonStyleType.PRIMARY_BRAND_SOFT]: '!text-icon-primary-brand-on-soft-bg',
|
|
319
|
+
[ButtonStyleType.PRIMARY_BRAND_TRANSPARENT]: '!text-text-primary-brand-default',
|
|
320
|
+
[ButtonStyleType.SECONDARY_BRAND_FILLED]: '!text-text-neutral-on-filled',
|
|
321
|
+
[ButtonStyleType.NEUTRAL_FILLED]: '!text-text-neutral-on-neutral-filled-bg',
|
|
322
|
+
[ButtonStyleType.NEUTRAL_OUTLINED]: '!text-text-default',
|
|
323
|
+
[ButtonStyleType.NEUTRAL_TRANSPARENT]: '!text-text-default',
|
|
324
|
+
[ButtonStyleType.NEUTRAL_TRANSPARENT_SUBTLE]: '!text-text-neutral-subtler',
|
|
325
|
+
[ButtonStyleType.DELETE_FILLED]: '!text-text-neutral-on-filled',
|
|
326
|
+
[ButtonStyleType.DELETE_SOFT]: '!text-text-delete',
|
|
327
|
+
[ButtonStyleType.DELETE_OUTLINED]: '!text-text-delete',
|
|
328
|
+
[ButtonStyleType.DELETE_TRANSPARENT]: '!text-text-delete',
|
|
329
329
|
}
|
|
330
|
-
return variant[props.styleType as ButtonStyleType] || 'text-text-default'
|
|
330
|
+
return variant[props.styleType as ButtonStyleType] || '!text-text-default'
|
|
331
331
|
})
|
|
332
332
|
|
|
333
333
|
const horizontalPaddingClass = computed(() => {
|
|
@@ -232,20 +232,20 @@ const iconSizeClass = computed(() => {
|
|
|
232
232
|
|
|
233
233
|
const iconColorClass = computed(() => {
|
|
234
234
|
const variant = {
|
|
235
|
-
[ButtonStyleType.PRIMARY_BRAND_FILLED]: 'text-text-neutral-on-filled',
|
|
236
|
-
[ButtonStyleType.PRIMARY_BRAND_SOFT]: 'text-icon-primary-brand-on-soft-bg',
|
|
237
|
-
[ButtonStyleType.PRIMARY_BRAND_TRANSPARENT]: 'text-text-primary-brand-default',
|
|
238
|
-
[ButtonStyleType.SECONDARY_BRAND_FILLED]: 'text-text-neutral-on-filled',
|
|
239
|
-
[ButtonStyleType.NEUTRAL_FILLED]: 'text-text-neutral-on-neutral-filled-bg',
|
|
240
|
-
[ButtonStyleType.NEUTRAL_OUTLINED]: 'text-text-default',
|
|
241
|
-
[ButtonStyleType.NEUTRAL_TRANSPARENT]: 'text-text-default',
|
|
242
|
-
[ButtonStyleType.NEUTRAL_TRANSPARENT_SUBTLE]: 'text-text-neutral-subtler',
|
|
243
|
-
[ButtonStyleType.DELETE_FILLED]: 'text-text-neutral-on-filled',
|
|
244
|
-
[ButtonStyleType.DELETE_SOFT]: 'text-text-delete',
|
|
245
|
-
[ButtonStyleType.DELETE_OUTLINED]: 'text-text-delete',
|
|
246
|
-
[ButtonStyleType.DELETE_TRANSPARENT]: 'text-text-delete',
|
|
235
|
+
[ButtonStyleType.PRIMARY_BRAND_FILLED]: '!text-text-neutral-on-filled',
|
|
236
|
+
[ButtonStyleType.PRIMARY_BRAND_SOFT]: '!text-icon-primary-brand-on-soft-bg',
|
|
237
|
+
[ButtonStyleType.PRIMARY_BRAND_TRANSPARENT]: '!text-text-primary-brand-default',
|
|
238
|
+
[ButtonStyleType.SECONDARY_BRAND_FILLED]: '!text-text-neutral-on-filled',
|
|
239
|
+
[ButtonStyleType.NEUTRAL_FILLED]: '!text-text-neutral-on-neutral-filled-bg',
|
|
240
|
+
[ButtonStyleType.NEUTRAL_OUTLINED]: '!text-text-default',
|
|
241
|
+
[ButtonStyleType.NEUTRAL_TRANSPARENT]: '!text-text-default',
|
|
242
|
+
[ButtonStyleType.NEUTRAL_TRANSPARENT_SUBTLE]: '!text-text-neutral-subtler',
|
|
243
|
+
[ButtonStyleType.DELETE_FILLED]: '!text-text-neutral-on-filled',
|
|
244
|
+
[ButtonStyleType.DELETE_SOFT]: '!text-text-delete',
|
|
245
|
+
[ButtonStyleType.DELETE_OUTLINED]: '!text-text-delete',
|
|
246
|
+
[ButtonStyleType.DELETE_TRANSPARENT]: '!text-text-delete',
|
|
247
247
|
}
|
|
248
|
-
return variant[props.styleType as ButtonStyleType] || 'text-text-default'
|
|
248
|
+
return variant[props.styleType as ButtonStyleType] || '!text-text-default'
|
|
249
249
|
})
|
|
250
250
|
|
|
251
251
|
// Props for the dynamic component
|
|
@@ -94,19 +94,19 @@ const iconContainerClass = computed(() => {
|
|
|
94
94
|
})
|
|
95
95
|
|
|
96
96
|
const iconColorClass = computed(() => {
|
|
97
|
-
if (props.styleType === IconContainerStyleType.FILLED) return 'text-icon-neutral-on-filled-bg'
|
|
97
|
+
if (props.styleType === IconContainerStyleType.FILLED) return '!text-icon-neutral-on-filled-bg'
|
|
98
98
|
|
|
99
99
|
const iconVariants = {
|
|
100
|
-
[ColorAccent.NEUTRAL]: 'text-icon-neutral-subtle-on-subtler-bg',
|
|
101
|
-
[ColorAccent.SUCCESS]: 'text-icon-success',
|
|
102
|
-
[ColorAccent.WARNING]: 'text-icon-warning-on-bg',
|
|
103
|
-
[ColorAccent.DANGER]: 'text-icon-danger',
|
|
104
|
-
[ColorAccent.INFO]: 'text-icon-info',
|
|
105
|
-
[ColorAccent.PRIMARY_BRAND]: 'text-icon-primary-brand-default',
|
|
106
|
-
[ColorAccent.SECONDARY_BRAND]: 'text-icon-secondary-brand-default',
|
|
100
|
+
[ColorAccent.NEUTRAL]: '!text-icon-neutral-subtle-on-subtler-bg',
|
|
101
|
+
[ColorAccent.SUCCESS]: '!text-icon-success',
|
|
102
|
+
[ColorAccent.WARNING]: '!text-icon-warning-on-bg',
|
|
103
|
+
[ColorAccent.DANGER]: '!text-icon-danger',
|
|
104
|
+
[ColorAccent.INFO]: '!text-icon-info',
|
|
105
|
+
[ColorAccent.PRIMARY_BRAND]: '!text-icon-primary-brand-default',
|
|
106
|
+
[ColorAccent.SECONDARY_BRAND]: '!text-icon-secondary-brand-default',
|
|
107
107
|
}
|
|
108
|
-
return iconVariants[props.color as ColorAccent] || 'text-icon-neutral-subtle-on-subtler-bg'
|
|
109
108
|
|
|
109
|
+
return iconVariants[props.color as ColorAccent] || '!text-icon-neutral-subtle-on-subtler-bg'
|
|
110
110
|
})
|
|
111
111
|
|
|
112
112
|
const iconContainerSizeClass = computed(() => {
|