@warp-ds/css 1.0.1 → 1.1.0-next.2

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/README.md CHANGED
@@ -11,9 +11,9 @@ The CSS files should be used directly from Eik. This is because we can alias rel
11
11
 
12
12
  We publish 3 css files.
13
13
 
14
- - Resets <link href="https://assets.finn.no/pkg/@warp-ds/css/[VERSION]/resets.css" rel="stylesheet" />
15
- - Components css <link href="https://assets.finn.no/pkg/@warp-ds/css/[VERSION]/components.css" rel="stylesheet" />
16
- - Brand css with tokens <link href="https://assets.finn.no/pkg/@warp-ds/css/[VERSION]/tokens/[BRANDNAME e.g. tori-fi].css" rel="stylesheet" />
14
+ - Resets: `https://assets.finn.no/pkg/@warp-ds/css/v1/resets.css`
15
+ - Components css: `https://assets.finn.no/pkg/@warp-ds/css/v1/components.css`
16
+ - Brand css with tokens: `https://assets.finn.no/pkg/@warp-ds/css/v1/tokens/[BRANDNAME e.g. tori-fi].css`
17
17
 
18
18
  ## Usage (npm)
19
19
 
@@ -33,6 +33,27 @@ export namespace ribbon {
33
33
  export const roundedTopRightBottomLeft: string;
34
34
  export const roundedTopLeftBottomRight: string;
35
35
  }
36
+ export namespace badge {
37
+ const base_2: string;
38
+ export { base_2 as base };
39
+ const neutral_1: string;
40
+ export { neutral_1 as neutral };
41
+ const info_1: string;
42
+ export { info_1 as info };
43
+ export const positive: string;
44
+ const warning_1: string;
45
+ export { warning_1 as warning };
46
+ export const negative: string;
47
+ const disabled_1: string;
48
+ export { disabled_1 as disabled };
49
+ export const price: string;
50
+ export const notification: string;
51
+ export const positionBase: string;
52
+ export const positionTL: string;
53
+ export const positionTR: string;
54
+ export const positionBR: string;
55
+ export const positionBL: string;
56
+ }
36
57
  export namespace slider {
37
58
  const wrapper_1: string;
38
59
  export { wrapper_1 as wrapper };
@@ -47,10 +68,10 @@ export namespace slider {
47
68
  export namespace box {
48
69
  export const box: string;
49
70
  export const bleed: string;
50
- const info_1: string;
51
- export { info_1 as info };
52
- const neutral_1: string;
53
- export { neutral_1 as neutral };
71
+ const info_2: string;
72
+ export { info_2 as info };
73
+ const neutral_2: string;
74
+ export { neutral_2 as neutral };
54
75
  export const bordered: string;
55
76
  export const infoClickable: string;
56
77
  export const neutralClickable: string;
@@ -137,10 +158,12 @@ export namespace toast {
137
158
  const wrapper_2: string;
138
159
  export { wrapper_2 as wrapper };
139
160
  export const toast: string;
140
- export const positive: string;
141
- const warning_1: string;
142
- export { warning_1 as warning };
143
- export const negative: string;
161
+ const positive_1: string;
162
+ export { positive_1 as positive };
163
+ const warning_2: string;
164
+ export { warning_2 as warning };
165
+ const negative_1: string;
166
+ export { negative_1 as negative };
144
167
  export const icon: string;
145
168
  export const iconPositive: string;
146
169
  export const iconWarning: string;
@@ -236,8 +259,8 @@ export namespace button {
236
259
  export const utilitySmallLoading: string;
237
260
  export const utilityQuietLoading: string;
238
261
  export const utilitySmallQuietLoading: string;
239
- const negative_1: string;
240
- export { negative_1 as negative };
262
+ const negative_2: string;
263
+ export { negative_2 as negative };
241
264
  export const negativeDisabled: string;
242
265
  export const negativeQuiet: string;
243
266
  export const negativeQuietDisabled: string;
@@ -306,25 +329,25 @@ export namespace alert {
306
329
  export { title_2 as title };
307
330
  const icon_2: string;
308
331
  export { icon_2 as icon };
309
- const negative_2: string;
310
- export { negative_2 as negative };
332
+ const negative_3: string;
333
+ export { negative_3 as negative };
311
334
  export const negativeIcon: string;
312
- const positive_1: string;
313
- export { positive_1 as positive };
335
+ const positive_2: string;
336
+ export { positive_2 as positive };
314
337
  export const positiveIcon: string;
315
- const warning_2: string;
316
- export { warning_2 as warning };
338
+ const warning_3: string;
339
+ export { warning_3 as warning };
317
340
  export const warningIcon: string;
318
- const info_2: string;
319
- export { info_2 as info };
341
+ const info_3: string;
342
+ export { info_3 as info };
320
343
  export const infoIcon: string;
321
344
  }
322
345
  export namespace input {
323
346
  const _default: string;
324
347
  export { _default as default };
325
348
  export const textArea: string;
326
- const disabled_1: string;
327
- export { disabled_1 as disabled };
349
+ const disabled_2: string;
350
+ export { disabled_2 as disabled };
328
351
  export const invalid: string;
329
352
  export const readOnly: string;
330
353
  export const placeholder: string;
@@ -336,8 +359,8 @@ export namespace input {
336
359
  export namespace select {
337
360
  const _default_1: string;
338
361
  export { _default_1 as default };
339
- const disabled_2: string;
340
- export { disabled_2 as disabled };
362
+ const disabled_3: string;
363
+ export { disabled_3 as disabled };
341
364
  const invalid_1: string;
342
365
  export { invalid_1 as invalid };
343
366
  const readOnly_1: string;
@@ -25,6 +25,7 @@ export const pageIndicator = {
25
25
  active: 'i-bg-$color-pageindicator-background-selected',
26
26
  };
27
27
 
28
+ // Deprecated: Use Badge component
28
29
  export const ribbon = {
29
30
  base: 'py-4 px-8 border rounded-4 inline-flex last:mb-0',
30
31
  info: 'i-border-$color-badge-info-background i-bg-$color-badge-info-background i-text-$color-badge-info-text',
@@ -38,6 +39,23 @@ export const ribbon = {
38
39
  roundedTopLeftBottomRight: 'rounded-tl-0 rounded-br-0',
39
40
  };
40
41
 
42
+ export const badge = {
43
+ base: 'py-4 px-8 border-0 rounded-4 text-xs inline-flex',
44
+ neutral: 'i-bg-$color-badge-neutral-background i-text-$color-badge-neutral-text',
45
+ info: 'i-bg-$color-badge-info-background i-text-$color-badge-info-text',
46
+ positive: 'i-bg-$color-badge-positive-background i-text-$color-badge-positive-text',
47
+ warning: 'i-bg-$color-badge-warning-background i-text-$color-badge-warning-text',
48
+ negative: 'i-bg-$color-badge-negative-background i-text-$color-badge-negative-text',
49
+ disabled: 'i-bg-$color-badge-disabled-background i-text-$color-badge-disabled-text',
50
+ price: 'i-bg-$color-badge-price-background i-text-$color-badge-price-text',
51
+ notification: 'i-bg-$color-badge-notification-background i-text-$color-badge-notification-text',
52
+ positionBase: 'absolute backdrop-blur',
53
+ positionTL: 'rounded-tl-0 rounded-tr-0 rounded-bl-0 top-0 left-0',
54
+ positionTR: 'rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0',
55
+ positionBR: 'rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0',
56
+ positionBL: 'rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0',
57
+ };
58
+
41
59
  export const slider = {
42
60
  wrapper: 'touch-pan-y relative w-full h-44 py-2',
43
61
  track:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/css",
3
3
  "repository": "git@github.com:warp-ds/css.git",
4
- "version": "1.0.1",
4
+ "version": "1.1.0-next.2",
5
5
  "scripts": {
6
6
  "build": "pnpm build:tokens && pnpm build:resets && pnpm build:cc",
7
7
  "commit": "cz",