@warp-ds/css 1.0.0-alpha.11 → 1.0.0-alpha.13
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/index.js +16 -16
- package/package.json +4 -2
|
@@ -140,7 +140,7 @@ export const switchToggle = {
|
|
|
140
140
|
trackDisabled: 'i-bg-$color-switch-track-background-disabled',
|
|
141
141
|
handle: 'absolute transform-gpu h-16 w-16 top-4 left-4 rounded-full transition-transform',
|
|
142
142
|
handleSelected: 'translate-x-20',
|
|
143
|
-
handleNotDisabled: 'i-bg-$color-switch-handle-background shadow-
|
|
143
|
+
handleNotDisabled: 'i-bg-$color-switch-handle-background i-shadow-$shadow-switch-handle',
|
|
144
144
|
handleDisabled: 'i-bg-$color-switch-handle-background-disabled',
|
|
145
145
|
a11y: 'sr-only',
|
|
146
146
|
};
|
|
@@ -240,8 +240,8 @@ export const button = {
|
|
|
240
240
|
buttonPill:
|
|
241
241
|
'font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out rounded-full! min-h-[44px] min-w-[44px] border-0! p-4 i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover acive:i-bg-$color-button-pill-background-active inline-flex items-center justify-center hover:bg-clip-padding', // .button--pill missing: hover:background-color: rgba(var(--f-blue-600-rgb), 0.1) , and: hover:border-color: hsla(0, 0%, 100%, 0.4);
|
|
242
242
|
buttonLink:
|
|
243
|
-
'leading-[24] max-w-max focusable ease-in-out inline
|
|
244
|
-
//
|
|
243
|
+
'leading-[24] max-w-max focusable ease-in-out inline i-text-$color-button-link-text active:underline hover:underline', //.button--link /* Buttons pretending to be links, (Should rather inherit the actual link setup in the future?) */
|
|
244
|
+
// Size stuff
|
|
245
245
|
buttonSmall: 'px-16 py-6 text-xs', // .button--small
|
|
246
246
|
buttonSmallOverride: 'py-8', // .button--small.button--primary, .button--small.button--destructive, .button--small.button--destructive-flat, .button--small.button--order, .button--small.button--quiet
|
|
247
247
|
buttonSmallSecondary: 'py-6', // .button--small.button--secondary
|
|
@@ -322,7 +322,7 @@ export const input = {
|
|
|
322
322
|
disabled: 'i-bg-$color-input-background-disabled i-border-$color-input-border-disabled hover:i-border-$color-input-border-disabled! i-text-$color-input-text-disabled pointer-events-none',
|
|
323
323
|
invalid: 'i-border-$color-input-border-error i-text-$color-input-text-error!',
|
|
324
324
|
readOnly: 'pl-0 bg-transparent border-0 pointer-events-none i-text-$color-input-text-read-only',
|
|
325
|
-
placeholder: 'placeholder:
|
|
325
|
+
placeholder: 'placeholder:i-text-$color-input-text-placeholder',
|
|
326
326
|
wrapper: 'relative',
|
|
327
327
|
suffix: 'pr-40',
|
|
328
328
|
prefix: 'pl-40'
|
|
@@ -340,15 +340,15 @@ export const select = {
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
export const label = {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
label: 'antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text',
|
|
344
|
+
labelInvalid: 'i-text-$color-label-text-negative',
|
|
345
|
+
optional: 'pl-8 font-normal text-s i-text-$color-label-optional-text',
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
export const helpText = {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
helpText: 'text-xs mt-4 block i-text-$color-helptext-text',
|
|
350
|
+
helpTextValid: 'i-text-$color-helptext-text-positive',
|
|
351
|
+
helpTextInvalid: 'i-text-$color-helptext-text-negative'
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
const prefixSuffixWrapperBase =
|
|
@@ -387,7 +387,7 @@ export const toggle = {
|
|
|
387
387
|
label: 'cursor-pointer text-m i-text-$color-label-text py-2 pl-28 select-none relative block before:block before:border before:absolute before:transition-all before:left-0 before:w-20 before:h-20 before:top-2',
|
|
388
388
|
deadToggleLabel: '-mt-2',
|
|
389
389
|
noContent: `before:content-[""]`,
|
|
390
|
-
indeterminate: `leading-[11] before:
|
|
390
|
+
indeterminate: `leading-[11] before:i-text-$color-checkbox-icon before:text-center before:font-bold before:content-["-"] peer-indeterminate:before:i-border-$color-checkbox-border-active peer-indeterminate:before:i-bg-$color-checkbox-background-active peer-indeterminate:hover:before:i-border-$color-checkbox-border-hover peer-indeterminate:hover:before:i-bg-$color-checkbox-background-active-hover`,
|
|
391
391
|
labelDisabled: 'pointer-events-none',
|
|
392
392
|
checkbox: 'before:rounded-2 hover:before:i-border-$color-checkbox-border-hover hover:before:i-bg-$color-checkbox-background-hover',
|
|
393
393
|
checkboxChecked: 'peer-checked:before:i-border-$color-checkbox-border-active peer-checked:before:i-bg-$color-checkbox-background-active peer-checked:peer-hover:before:i-border-$color-checkbox-border-active-hover peer-checked:peer-hover:before:i-bg-$color-checkbox-background-active-hover',
|
|
@@ -401,7 +401,7 @@ export const toggle = {
|
|
|
401
401
|
labelRadioBorder: 'i-border-$color-radio-border',
|
|
402
402
|
radioButtons: 'inline-flex relative font-bold rounded-8',
|
|
403
403
|
radioButtonsGroup: 'group',
|
|
404
|
-
radioButtonsLabel: 'peer-hover:peer-not-checked:i-bg-$color-buttongroup-primary-background-hover peer-checked:i-text-$color-buttongroup-primary-text-active peer-checked:i-bg-$color-buttongroup-primary-background-active peer-checked:i-border-$color-buttongroup-primary-border-active block relative text-s font-bold cursor-pointer i-text-$color-buttongroup-primary-text text-center
|
|
404
|
+
radioButtonsLabel: 'peer-hover:peer-not-checked:i-bg-$color-buttongroup-primary-background-hover peer-checked:i-text-$color-buttongroup-primary-text-active peer-checked:i-bg-$color-buttongroup-primary-background-active peer-checked:i-border-$color-buttongroup-primary-border-active block relative text-s font-bold cursor-pointer i-text-$color-buttongroup-primary-text text-center i-bg-$color-buttongroup-primary-background border-2 i-border-$color-buttongroup-primary-border py-8 pl-12 pr-14 group-first-of-type:rounded-tl-8 group-first-of-type:rounded-bl-8 group-last-of-type:rounded-tr-8 group-last-of-type:rounded-br-8 group-not-last-of-type:border-r-0 peer-checked:z-10 group-not-first:-ml-2',
|
|
405
405
|
radioButtonsJustified: 'flex!',
|
|
406
406
|
radioButtonsGroupJustified: 'grow-1 shrink-0 basis-auto',
|
|
407
407
|
radioButtonsLabelSmall: 'text-xs py-[5px]! px-[8px]!',
|
|
@@ -412,15 +412,15 @@ export const toggle = {
|
|
|
412
412
|
export const clickable = {
|
|
413
413
|
clickable: 'absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset',
|
|
414
414
|
clickableNotToggle: 'inset-0 absolute',
|
|
415
|
-
label: `px-12 ${label.label} py-8! cursor-pointer focusable focusable-inset`,
|
|
415
|
+
label: `px-12 ${label.label} py-8! cursor-pointer focusable focusable-inset`,
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
export const combobox = {
|
|
419
419
|
wrapper: 'relative',
|
|
420
|
-
combobox: 'absolute left-0 right-0 pb-8 rounded-8
|
|
420
|
+
combobox: 'absolute left-0 right-0 pb-8 rounded-8 i-bg-$color-combobox-background i-shadow-$shadow-combobox',
|
|
421
421
|
textMatch: 'font-bold',
|
|
422
422
|
listbox: 'm-0 p-0 select-none list-none',
|
|
423
|
-
option: 'block cursor-pointer p-8 hover:
|
|
424
|
-
optionSelected: '
|
|
423
|
+
option: 'block cursor-pointer p-8 hover:i-bg-$color-combobox-option-background-hover',
|
|
424
|
+
optionSelected: 'i-bg-$color-combobox-option-background-selected hover:i-bg-$color-combobox-option-background-selected-hover',
|
|
425
425
|
a11y: 'sr-only',
|
|
426
426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-ds/css",
|
|
3
|
-
"
|
|
3
|
+
"repository": "git@github.com:warp-ds/css.git",
|
|
4
|
+
"version": "1.0.0-alpha.13",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"build": "pnpm build:tokens && pnpm build:resets && pnpm build:cc",
|
|
6
7
|
"commit": "cz",
|
|
@@ -54,5 +55,6 @@
|
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"registry": "https://registry.npmjs.org/",
|
|
56
57
|
"access": "public"
|
|
57
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"license": "Apache-2.0"
|
|
58
60
|
}
|