@kvell-group/ui 1.18.15 → 1.18.16
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/package.json
CHANGED
|
@@ -148,3 +148,31 @@
|
|
|
148
148
|
padding-inline: rem(4px);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
+
|
|
152
|
+
.root[data-variant='link'] {
|
|
153
|
+
--button-bg: transparent;
|
|
154
|
+
--button-hover: transparent;
|
|
155
|
+
--button-color: var(--color-text-base-primary);
|
|
156
|
+
--button-hover-color: var(--color-text-base-secondary);
|
|
157
|
+
--button-radius: var(--mantine-radius-xs);
|
|
158
|
+
--button-height-sm: rem(20px);
|
|
159
|
+
--button-height-md: rem(24px);
|
|
160
|
+
padding-inline: 0;
|
|
161
|
+
|
|
162
|
+
&:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
|
|
163
|
+
background: none;
|
|
164
|
+
|
|
165
|
+
& .section svg {
|
|
166
|
+
fill: var(--color-text-base-quaternary);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&[data-size='md'] {
|
|
171
|
+
font-size: var(--mantine-font-size-body-s);
|
|
172
|
+
letter-spacing: var(--mantine-spacing-body-s);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
& .label {
|
|
176
|
+
padding-inline: rem(2px);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -2,12 +2,14 @@ export const PRIMARY_BUTTON_VARIANT = 'primary' as const
|
|
|
2
2
|
export const SECONDARY_BUTTON_VARIANT = 'secondary' as const
|
|
3
3
|
export const TERTIARY_BUTTON_VARIANT = 'tertiary' as const
|
|
4
4
|
export const GHOST_BUTTON_VARIANT = 'ghost' as const
|
|
5
|
+
export const LINK_BUTTON_VARIANT = 'link' as const
|
|
5
6
|
|
|
6
7
|
export const ButtonVariants = [
|
|
7
8
|
PRIMARY_BUTTON_VARIANT,
|
|
8
9
|
SECONDARY_BUTTON_VARIANT,
|
|
9
10
|
TERTIARY_BUTTON_VARIANT,
|
|
10
11
|
GHOST_BUTTON_VARIANT,
|
|
12
|
+
LINK_BUTTON_VARIANT,
|
|
11
13
|
]
|
|
12
14
|
|
|
13
15
|
// ----------------------------------------------------------------------
|