@warp-ds/css 1.0.0-alpha.17 → 1.0.0-alpha.19

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.
@@ -1,8 +1,8 @@
1
1
  import * as components from './index.js';
2
2
 
3
3
  export const classes = Object.values(components)
4
- .map((e) => {
5
- if (typeof e === 'object') return Object.values(e).map((e) => e.split(/\s/));
6
- return e.split(/\s/);
7
- })
8
- .flat(Infinity);
4
+ .map((e) => {
5
+ if (typeof e === 'object') return Object.values(e).map((e) => e.split(/\s/));
6
+ return e.split(/\s/);
7
+ })
8
+ .flat(Infinity);
@@ -65,7 +65,7 @@ export const box = {
65
65
  bordered: 'border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text',
66
66
  infoClickable: 'hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover',
67
67
  neutralClickable: 'hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover',
68
- borderedClickable: 'hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover'
68
+ borderedClickable: 'hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover',
69
69
  };
70
70
 
71
71
  export const pill = {
@@ -111,7 +111,7 @@ export const step = {
111
111
  export const steps = {
112
112
  steps: 'w-full',
113
113
  stepsHorizontal: 'flex',
114
- }
114
+ };
115
115
 
116
116
  export const card = {
117
117
  card: 'cursor-pointer overflow-hidden relative transition-all',
@@ -264,7 +264,7 @@ export const buttonGroup = {
264
264
  vertical: 'flex-col',
265
265
  nonOutlinedVertical: 'divide-y',
266
266
  nonOutlinedHorizontal: 'divide-x',
267
- }
267
+ };
268
268
 
269
269
  export const buttonGroupItem = {
270
270
  wrapper: 'relative i-text-$color-buttongroup-utility-text i-bg-$color-buttongroup-utility-background hover:i-bg-$color-buttongroup-utility-background-hover active:i-text-$color-buttongroup-utility-text-active active:i-bg-$color-buttongroup-utility-background-active',
@@ -275,7 +275,7 @@ export const buttonGroupItem = {
275
275
  outlinedHorizontalResets: 'py-1 pl-1 last:pr-1 -mr-1 last:mr-0',
276
276
  outlinedSelected: 'i-border-$color-buttongroup-utility-border-active',
277
277
  selected: 'z-30 i-text-$color-buttongroup-utility-text-active! i-bg-$color-buttongroup-utility-background-active!',
278
- }
278
+ };
279
279
 
280
280
  export const modal = {
281
281
  //TODO: this class can be removed when we have the solution for opacity and we can add rgba values to the background of the backdrop
@@ -313,8 +313,8 @@ export const alert = {
313
313
  warning: "i-border-$color-alert-warning-subtle-border i-bg-$color-alert-warning-background i-text-$color-alert-warning-text i-border-l-$color-alert-warning-border",
314
314
  warningIcon: "i-text-$color-alert-warning-icon",
315
315
  info: "i-border-$color-alert-info-subtle-border i-bg-$color-alert-info-background i-text-$color-alert-info-text i-border-l-$color-alert-info-border",
316
- infoIcon: "i-text-$color-alert-info-icon"
317
- }
316
+ infoIcon: "i-text-$color-alert-info-icon",
317
+ };
318
318
 
319
319
  export const input = {
320
320
  default: 'block text-m mb-0 leading-m i-text-$color-input-text-filled i-bg-$color-input-background i-border-$color-input-border hover:i-border-$color-input-border-hover active:i-border-$color-input-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] caret-current',
@@ -325,8 +325,8 @@ export const input = {
325
325
  placeholder: 'placeholder:i-text-$color-input-text-placeholder',
326
326
  wrapper: 'relative',
327
327
  suffix: 'pr-40',
328
- prefix: 'pl-40'
329
- }
328
+ prefix: 'pl-40',
329
+ };
330
330
 
331
331
  export const select = {
332
332
  default: 'block text-m mb-0 leading-m i-text-$color-select-text i-bg-$color-select-background i-border-$color-select-border hover:i-border-$color-select-border-hover active:i-border-$color-select-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] appearance-none pr-32 cursor-pointer caret-current',
@@ -337,19 +337,19 @@ export const select = {
337
337
  selectWrapper: `relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none `,
338
338
  chevron: 'absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon',
339
339
  chevronDisabled: 'opacity-25',
340
- }
340
+ };
341
341
 
342
342
  export const label = {
343
343
  label: 'antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text',
344
344
  labelInvalid: 'i-text-$color-label-text-negative',
345
345
  optional: 'pl-8 font-normal text-s i-text-$color-label-optional-text',
346
- }
346
+ };
347
347
 
348
348
  export const helpText = {
349
349
  helpText: 'text-xs mt-4 block i-text-$color-helptext-text',
350
350
  helpTextValid: 'i-text-$color-helptext-text-positive',
351
- helpTextInvalid: 'i-text-$color-helptext-text-negative'
352
- }
351
+ helpTextInvalid: 'i-text-$color-helptext-text-negative',
352
+ };
353
353
 
354
354
  const prefixSuffixWrapperBase =
355
355
  'absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] ';
@@ -374,7 +374,7 @@ export const breadcrumbs = {
374
374
  link: 'i-text-$color-breadcrumbs-link-text',
375
375
  separator: 'select-none i-text-$color-breadcrumbs-icon',
376
376
  a11y: 'sr-only',
377
- }
377
+ };
378
378
 
379
379
  export const toggle = {
380
380
  field: 'relative text-m',
@@ -414,7 +414,7 @@ export const clickable = {
414
414
  clickable: 'absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset',
415
415
  clickableNotToggle: 'inset-0 absolute',
416
416
  label: `px-12 ${label.label} py-8! cursor-pointer focusable focusable-inset`,
417
- }
417
+ };
418
418
 
419
419
  export const combobox = {
420
420
  wrapper: 'relative',
@@ -424,4 +424,4 @@ export const combobox = {
424
424
  option: 'block cursor-pointer p-8 hover:i-bg-$color-combobox-option-background-hover',
425
425
  optionSelected: 'i-bg-$color-combobox-option-background-selected hover:i-bg-$color-combobox-option-background-selected-hover',
426
426
  a11y: 'sr-only',
427
- }
427
+ };
@@ -1,17 +1,17 @@
1
1
  import { button } from './index.js';
2
2
 
3
3
  export const buttons = {
4
- 'button': button.buttonSecondary,
5
- 'button--secondary': button.buttonSecondary,
6
- 'button--default': button.buttonSecondary,
7
- 'button--small': button.buttonSmall,
8
- 'button--link': button.buttonLink,
9
- 'button--primary': button.buttonPrimary,
10
- 'button--cta': button.buttonPrimary,
11
- 'button--pill': button.buttonPill,
12
- 'button--utility': button.buttonUtility,
13
- 'button--utility-flat': button.buttonUtilityFlat,
14
- 'button--destructive': button.buttonDestructive,
15
- 'button--destructive-flat': button.buttonDestructiveFlat,
16
- 'button--flat': button.buttonFlat,
17
- }
4
+ 'button': button.buttonSecondary,
5
+ 'button--secondary': button.buttonSecondary,
6
+ 'button--default': button.buttonSecondary,
7
+ 'button--small': button.buttonSmall,
8
+ 'button--link': button.buttonLink,
9
+ 'button--primary': button.buttonPrimary,
10
+ 'button--cta': button.buttonPrimary,
11
+ 'button--pill': button.buttonPill,
12
+ 'button--utility': button.buttonUtility,
13
+ 'button--utility-flat': button.buttonUtilityFlat,
14
+ 'button--destructive': button.buttonDestructive,
15
+ 'button--destructive-flat': button.buttonDestructiveFlat,
16
+ 'button--flat': button.buttonFlat,
17
+ };
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@warp-ds/css",
3
3
  "repository": "git@github.com:warp-ds/css.git",
4
- "version": "1.0.0-alpha.17",
4
+ "version": "1.0.0-alpha.19",
5
5
  "scripts": {
6
6
  "build": "pnpm build:tokens && pnpm build:resets && pnpm build:cc",
7
7
  "commit": "cz",
8
8
  "semantic-release": "semantic-release",
9
9
  "build:cc": "cd component-classes && tsc && vite build",
10
10
  "build:tokens": "cd tokens && node index.js",
11
- "build:resets": "cd resets && node index.js"
11
+ "build:resets": "cd resets && node index.js",
12
+ "lint:fix": "eslint . --fix",
13
+ "lint:check": "eslint ."
12
14
  },
13
15
  "type": "module",
14
16
  "exports": {
@@ -37,12 +39,17 @@
37
39
  "@semantic-release/exec": "^6.0.3",
38
40
  "@semantic-release/git": "^10.0.1",
39
41
  "cz-conventional-changelog": "^3.3.0",
42
+ "@warp-ds/eslint-config": "^0.0.1",
43
+ "eslint": "^8.43.0",
40
44
  "semantic-release": "^20.1.3",
41
45
  "typescript": "^4.9.5",
42
46
  "unocss": "^0.53.1",
43
47
  "vite": "^4.3.9",
44
48
  "vite-plugin-dts": "^2.3.0"
45
49
  },
50
+ "eslintConfig": {
51
+ "extends": "@warp-ds"
52
+ },
46
53
  "config": {
47
54
  "commitizen": {
48
55
  "path": "./node_modules/cz-conventional-changelog"