@warp-ds/css 1.1.0-next.3 → 1.1.0
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.
|
@@ -282,6 +282,8 @@ export namespace button {
|
|
|
282
282
|
export const linkAsButton: string;
|
|
283
283
|
const a11y_3: string;
|
|
284
284
|
export { a11y_3 as a11y };
|
|
285
|
+
export const fullWidth: string;
|
|
286
|
+
export const contentWidth: string;
|
|
285
287
|
}
|
|
286
288
|
export namespace buttonGroup {
|
|
287
289
|
const wrapper_3: string;
|
|
@@ -238,7 +238,7 @@ export const expandable = {
|
|
|
238
238
|
titleType: 'h4',
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
-
const buttonDefaultStyling = 'font-bold
|
|
241
|
+
const buttonDefaultStyling = 'font-bold focusable justify-center transition-colors ease-in-out';
|
|
242
242
|
|
|
243
243
|
const buttonColors = {
|
|
244
244
|
primary: 'i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active',
|
|
@@ -261,7 +261,7 @@ const buttonTypes = {
|
|
|
261
261
|
negative: `border-0 rounded-8 ${buttonDefaultStyling}`,
|
|
262
262
|
pill:
|
|
263
263
|
`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,
|
|
264
|
-
link: `
|
|
264
|
+
link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${buttonColors.link}`,
|
|
265
265
|
};
|
|
266
266
|
|
|
267
267
|
const buttonSizes = {
|
|
@@ -289,7 +289,7 @@ const buttonVariants = {
|
|
|
289
289
|
utilityQuiet: `border-0 rounded-4 ${buttonDefaultStyling}`,
|
|
290
290
|
negativeQuiet: `border-0 rounded-8 ${buttonDefaultStyling}`,
|
|
291
291
|
isDisabled:
|
|
292
|
-
`font-bold
|
|
292
|
+
`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${buttonColors.disabled}`, // .button:disabled, .button--is-disabled
|
|
293
293
|
};
|
|
294
294
|
|
|
295
295
|
export const button = {
|
|
@@ -363,6 +363,8 @@ export const button = {
|
|
|
363
363
|
linkSmall: `${buttonSizes.linkSmall} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,
|
|
364
364
|
linkAsButton: 'inline-block hover:no-underline',
|
|
365
365
|
a11y: 'sr-only',
|
|
366
|
+
fullWidth: "w-full max-w-full",
|
|
367
|
+
contentWidth: "max-w-max",
|
|
366
368
|
};
|
|
367
369
|
|
|
368
370
|
export const buttonGroup = {
|