@warp-ds/css 1.0.0-alpha.10 → 1.0.0-alpha.12

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.
@@ -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-s',
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
  };
@@ -224,25 +224,25 @@ export const expandable = {
224
224
  export const button = {
225
225
  // Buttontypes
226
226
  buttonSecondary:
227
- 'py-10 px-14 border-2 font-bold rounded-8 leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active', // .button, .button--secondary, .button--default. using tailwind ease-in-out instead of fabric transition-timing-function: cubic-bezier(0.46, 0.03, 0.52, 0.96)
227
+ 'py-10 px-14 border-2 font-bold rounded-8 text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active', // .button, .button--secondary, .button--default. using tailwind ease-in-out instead of fabric transition-timing-function: cubic-bezier(0.46, 0.03, 0.52, 0.96)
228
228
  buttonPrimary:
229
- 'py-12 px-16 border-0 font-bold rounded-8 leading-[24] max-w-max focusable justify-center transition-colors ease-in-out 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', // .button--primary, .button--cta
229
+ '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 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', // .button--primary, .button--cta
230
230
  buttonFlat:
231
- 'py-12 px-16 border-0! font-bold rounded-8 leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-quiet-background! i-text-$color-button-quiet-text! hover:i-bg-$color-button-quiet-background-hover! active:i-bg-$color-button-quiet-background-active!', // .button--quiet, .button--flat
231
+ '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 i-bg-$color-button-quiet-background! i-text-$color-button-quiet-text! hover:i-bg-$color-button-quiet-background-hover! active:i-bg-$color-button-quiet-background-active!', // .button--quiet, .button--flat
232
232
  buttonDestructive:
233
- 'py-12 px-16 border-0 font-bold rounded-8 leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover! active:i-bg-$color-button-negative-background-active!', // .button--destructive
233
+ '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 i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover! active:i-bg-$color-button-negative-background-active!', // .button--destructive
234
234
  buttonDestructiveFlat:
235
- 'py-12 px-16 border-0 font-bold rounded-8 leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-quiet-background! i-text-$color-button-negative-quiet-text! hover:i-bg-$color-button-negative-quiet-background-hover! active:i-bg-$color-button-negative-quiet-background-active!', // .button--destructive-flat
235
+ '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 i-bg-$color-button-negative-quiet-background! i-text-$color-button-negative-quiet-text! hover:i-bg-$color-button-negative-quiet-background-hover! active:i-bg-$color-button-negative-quiet-background-active!', // .button--destructive-flat
236
236
  buttonUtility:
237
- 'px-[15px] py-[11px] font-bold leading-[24] max-w-max focusable justify-center transition-colors ease-in-out border rounded-4 i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover! active:i-border-$color-button-utility-border-active!', // .button--utility
237
+ 'px-[15px] py-[11px] font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out border rounded-4 i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover! active:i-border-$color-button-utility-border-active!', // .button--utility
238
238
  buttonUtilityFlat:
239
- 'py-12 px-16 bg-transparent border-0 font-bold leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover rounded-4', // .button--utility-flat
239
+ 'py-12 px-16 bg-transparent border-0 font-bold text-m leading-[24] max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover rounded-4', // .button--utility-flat
240
240
  buttonPill:
241
- 'font-bold 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);
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 s-text-link active:underline hover:underline', //.button--link /* Buttons pretending to be links, (Should rather inherit the actual link setup in the future?) */
244
- // Sizestuff
245
- buttonSmall: 'px-16 py-6 text-xs leading-xs', // .button--small
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
+ 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
248
248
  buttonSmallUtility: 'py-7 px-15', // .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:s-text-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
- 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',
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
- 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'
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:s-text-inverted 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`,
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 s-bg-default 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',
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 s-bg-default shadow-m',
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:s-bg-hover',
424
- optionSelected: 's-bg-selected',
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
- "version": "1.0.0-alpha.10",
3
+ "repository": "git@github.com:warp-ds/css.git",
4
+ "version": "1.0.0-alpha.12",
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
  }