@warp-ds/css 1.8.0-next.15 → 1.8.0-next.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/component-classes/shortcuts.js +14 -12
- package/package.json +1 -1
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { button } from './index.js';
|
|
2
|
+
|
|
1
3
|
export const buttons = {
|
|
2
|
-
button:
|
|
3
|
-
'button--secondary':
|
|
4
|
-
'button--default':
|
|
4
|
+
button: button.secondary,
|
|
5
|
+
'button--secondary': button.secondary,
|
|
6
|
+
'button--default': button.secondary,
|
|
5
7
|
'button--small': 'px-16! py-6! text-xs!',
|
|
6
|
-
'button--link': 'leading-[24] max-w-max bg-transparent focusable ease-in-out inline
|
|
7
|
-
'button--primary':
|
|
8
|
-
'button--cta':
|
|
9
|
-
'button--pill':
|
|
10
|
-
'button--utility': 'px-[15px] py-[11px] font-bold text-m leading-[24] max-w-max! focusable justify-center transition-colors ease-in-out border rounded-4
|
|
11
|
-
'button--utility-flat': 'py-12 px-16 border-0 font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out
|
|
12
|
-
'button--destructive': 'py-12 px-16 border-0 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out
|
|
13
|
-
'button--destructive-flat': 'py-12 px-16 border-0 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out
|
|
14
|
-
'button--flat': 'py-12 px-16 border-0! font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out
|
|
8
|
+
'button--link': 'leading-[24] max-w-max bg-transparent focusable ease-in-out inline s-text-link! active:underline hover:underline',
|
|
9
|
+
'button--primary': `${button.primary} max-w-max hover:s-text-inverted`,
|
|
10
|
+
'button--cta': `${button.primary} max-w-max hover:s-text-inverted`,
|
|
11
|
+
'button--pill': `${button.pill} max-w-max`,
|
|
12
|
+
'button--utility': 'px-[15px] py-[11px] font-bold text-m leading-[24] max-w-max! focusable justify-center transition-colors ease-in-out border rounded-4 s-text! hover:s-text s-bg! hover:s-bg-hover! s-border! hover:s-border-hover! active:s-border-active!',
|
|
13
|
+
'button--utility-flat': 'py-12 px-16 border-0 font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out s-text! bg-transparent! hover:s-bg-subtle-hover! rounded-4',
|
|
14
|
+
'button--destructive': 'py-12 px-16 border-0 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out s-bg-negative s-text-inverted hover:s-text-inverted hover:s-bg-negative-hover! active:s-bg-negative-active!',
|
|
15
|
+
'button--destructive-flat': 'py-12 px-16 border-0 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out bg-transparent! s-text-negative! hover:s-bg-negative-subtle-hover! active:s-bg-negative-subtle-active!',
|
|
16
|
+
'button--flat': 'py-12 px-16 border-0! font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out bg-transparent! s-text-link! hover:s-bg-hover! active:s-bg-active!',
|
|
15
17
|
};
|
package/package.json
CHANGED