@nearform/quantum 1.1.2 → 1.3.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.
- package/README.md +21 -1
- package/dist/global.css +108 -117
- package/dist/global.css.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.js +183 -123
- package/dist/index.js.map +1 -1
- package/dist/tailwind-plugin.js +1 -1
- package/dist/tailwind-plugin.js.map +1 -1
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Quantum Component Library
|
|
2
2
|
|
|
3
|
-
 [](https://www.figma.com/
|
|
3
|
+
 [](https://www.figma.com/design/XFbhstkgQFz8ZefAU3w2p4/1.-Quantum-Design-System?m=auto&node-id=1-5&t=nMe5iB6lqqJ52oc4-1)
|
|
4
4
|
|
|
5
5
|
> A React component library based on the Quantum Design System
|
|
6
6
|
|
|
@@ -48,3 +48,23 @@ To run Storybook tests for the project, run:
|
|
|
48
48
|
```js
|
|
49
49
|
npm run test-storybook
|
|
50
50
|
```
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
Just import:
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
import { Button, ButtonGroup } from '@nearform/quantum'
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
And use:
|
|
61
|
+
|
|
62
|
+
```jsx
|
|
63
|
+
<ButtonGroup>
|
|
64
|
+
<Button>One</Button>
|
|
65
|
+
<Button>Two</Button>
|
|
66
|
+
<Button>Three</Button>
|
|
67
|
+
</ButtonGroup>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
[](https://www.nearform.com/contact/?utm_source=open-source&utm_medium=banner&utm_campaign=os-project-pages)
|
package/dist/global.css
CHANGED
|
@@ -3,6 +3,114 @@
|
|
|
3
3
|
/* src/global.css */
|
|
4
4
|
*,
|
|
5
5
|
::before,
|
|
6
|
+
::after {
|
|
7
|
+
--tw-border-spacing-x: 0;
|
|
8
|
+
--tw-border-spacing-y: 0;
|
|
9
|
+
--tw-translate-x: 0;
|
|
10
|
+
--tw-translate-y: 0;
|
|
11
|
+
--tw-rotate: 0;
|
|
12
|
+
--tw-skew-x: 0;
|
|
13
|
+
--tw-skew-y: 0;
|
|
14
|
+
--tw-scale-x: 1;
|
|
15
|
+
--tw-scale-y: 1;
|
|
16
|
+
--tw-pan-x: ;
|
|
17
|
+
--tw-pan-y: ;
|
|
18
|
+
--tw-pinch-zoom: ;
|
|
19
|
+
--tw-scroll-snap-strictness: proximity;
|
|
20
|
+
--tw-gradient-from-position: ;
|
|
21
|
+
--tw-gradient-via-position: ;
|
|
22
|
+
--tw-gradient-to-position: ;
|
|
23
|
+
--tw-ordinal: ;
|
|
24
|
+
--tw-slashed-zero: ;
|
|
25
|
+
--tw-numeric-figure: ;
|
|
26
|
+
--tw-numeric-spacing: ;
|
|
27
|
+
--tw-numeric-fraction: ;
|
|
28
|
+
--tw-ring-inset: ;
|
|
29
|
+
--tw-ring-offset-width: 0px;
|
|
30
|
+
--tw-ring-offset-color: #fff;
|
|
31
|
+
--tw-ring-color: rgb(63 131 248 / 0.5);
|
|
32
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
33
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
34
|
+
--tw-shadow: 0 0 #0000;
|
|
35
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
36
|
+
--tw-blur: ;
|
|
37
|
+
--tw-brightness: ;
|
|
38
|
+
--tw-contrast: ;
|
|
39
|
+
--tw-grayscale: ;
|
|
40
|
+
--tw-hue-rotate: ;
|
|
41
|
+
--tw-invert: ;
|
|
42
|
+
--tw-saturate: ;
|
|
43
|
+
--tw-sepia: ;
|
|
44
|
+
--tw-drop-shadow: ;
|
|
45
|
+
--tw-backdrop-blur: ;
|
|
46
|
+
--tw-backdrop-brightness: ;
|
|
47
|
+
--tw-backdrop-contrast: ;
|
|
48
|
+
--tw-backdrop-grayscale: ;
|
|
49
|
+
--tw-backdrop-hue-rotate: ;
|
|
50
|
+
--tw-backdrop-invert: ;
|
|
51
|
+
--tw-backdrop-opacity: ;
|
|
52
|
+
--tw-backdrop-saturate: ;
|
|
53
|
+
--tw-backdrop-sepia: ;
|
|
54
|
+
--tw-contain-size: ;
|
|
55
|
+
--tw-contain-layout: ;
|
|
56
|
+
--tw-contain-paint: ;
|
|
57
|
+
--tw-contain-style: ;
|
|
58
|
+
}
|
|
59
|
+
::backdrop {
|
|
60
|
+
--tw-border-spacing-x: 0;
|
|
61
|
+
--tw-border-spacing-y: 0;
|
|
62
|
+
--tw-translate-x: 0;
|
|
63
|
+
--tw-translate-y: 0;
|
|
64
|
+
--tw-rotate: 0;
|
|
65
|
+
--tw-skew-x: 0;
|
|
66
|
+
--tw-skew-y: 0;
|
|
67
|
+
--tw-scale-x: 1;
|
|
68
|
+
--tw-scale-y: 1;
|
|
69
|
+
--tw-pan-x: ;
|
|
70
|
+
--tw-pan-y: ;
|
|
71
|
+
--tw-pinch-zoom: ;
|
|
72
|
+
--tw-scroll-snap-strictness: proximity;
|
|
73
|
+
--tw-gradient-from-position: ;
|
|
74
|
+
--tw-gradient-via-position: ;
|
|
75
|
+
--tw-gradient-to-position: ;
|
|
76
|
+
--tw-ordinal: ;
|
|
77
|
+
--tw-slashed-zero: ;
|
|
78
|
+
--tw-numeric-figure: ;
|
|
79
|
+
--tw-numeric-spacing: ;
|
|
80
|
+
--tw-numeric-fraction: ;
|
|
81
|
+
--tw-ring-inset: ;
|
|
82
|
+
--tw-ring-offset-width: 0px;
|
|
83
|
+
--tw-ring-offset-color: #fff;
|
|
84
|
+
--tw-ring-color: rgb(63 131 248 / 0.5);
|
|
85
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
86
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
87
|
+
--tw-shadow: 0 0 #0000;
|
|
88
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
89
|
+
--tw-blur: ;
|
|
90
|
+
--tw-brightness: ;
|
|
91
|
+
--tw-contrast: ;
|
|
92
|
+
--tw-grayscale: ;
|
|
93
|
+
--tw-hue-rotate: ;
|
|
94
|
+
--tw-invert: ;
|
|
95
|
+
--tw-saturate: ;
|
|
96
|
+
--tw-sepia: ;
|
|
97
|
+
--tw-drop-shadow: ;
|
|
98
|
+
--tw-backdrop-blur: ;
|
|
99
|
+
--tw-backdrop-brightness: ;
|
|
100
|
+
--tw-backdrop-contrast: ;
|
|
101
|
+
--tw-backdrop-grayscale: ;
|
|
102
|
+
--tw-backdrop-hue-rotate: ;
|
|
103
|
+
--tw-backdrop-invert: ;
|
|
104
|
+
--tw-backdrop-opacity: ;
|
|
105
|
+
--tw-backdrop-saturate: ;
|
|
106
|
+
--tw-backdrop-sepia: ;
|
|
107
|
+
--tw-contain-size: ;
|
|
108
|
+
--tw-contain-layout: ;
|
|
109
|
+
--tw-contain-paint: ;
|
|
110
|
+
--tw-contain-style: ;
|
|
111
|
+
}
|
|
112
|
+
*,
|
|
113
|
+
::before,
|
|
6
114
|
::after {
|
|
7
115
|
box-sizing: border-box;
|
|
8
116
|
border-width: 0;
|
|
@@ -227,114 +335,6 @@ video {
|
|
|
227
335
|
[hidden] {
|
|
228
336
|
display: none;
|
|
229
337
|
}
|
|
230
|
-
*,
|
|
231
|
-
::before,
|
|
232
|
-
::after {
|
|
233
|
-
--tw-border-spacing-x: 0;
|
|
234
|
-
--tw-border-spacing-y: 0;
|
|
235
|
-
--tw-translate-x: 0;
|
|
236
|
-
--tw-translate-y: 0;
|
|
237
|
-
--tw-rotate: 0;
|
|
238
|
-
--tw-skew-x: 0;
|
|
239
|
-
--tw-skew-y: 0;
|
|
240
|
-
--tw-scale-x: 1;
|
|
241
|
-
--tw-scale-y: 1;
|
|
242
|
-
--tw-pan-x: ;
|
|
243
|
-
--tw-pan-y: ;
|
|
244
|
-
--tw-pinch-zoom: ;
|
|
245
|
-
--tw-scroll-snap-strictness: proximity;
|
|
246
|
-
--tw-gradient-from-position: ;
|
|
247
|
-
--tw-gradient-via-position: ;
|
|
248
|
-
--tw-gradient-to-position: ;
|
|
249
|
-
--tw-ordinal: ;
|
|
250
|
-
--tw-slashed-zero: ;
|
|
251
|
-
--tw-numeric-figure: ;
|
|
252
|
-
--tw-numeric-spacing: ;
|
|
253
|
-
--tw-numeric-fraction: ;
|
|
254
|
-
--tw-ring-inset: ;
|
|
255
|
-
--tw-ring-offset-width: 0px;
|
|
256
|
-
--tw-ring-offset-color: #fff;
|
|
257
|
-
--tw-ring-color: rgb(63 131 248 / 0.5);
|
|
258
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
259
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
260
|
-
--tw-shadow: 0 0 #0000;
|
|
261
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
262
|
-
--tw-blur: ;
|
|
263
|
-
--tw-brightness: ;
|
|
264
|
-
--tw-contrast: ;
|
|
265
|
-
--tw-grayscale: ;
|
|
266
|
-
--tw-hue-rotate: ;
|
|
267
|
-
--tw-invert: ;
|
|
268
|
-
--tw-saturate: ;
|
|
269
|
-
--tw-sepia: ;
|
|
270
|
-
--tw-drop-shadow: ;
|
|
271
|
-
--tw-backdrop-blur: ;
|
|
272
|
-
--tw-backdrop-brightness: ;
|
|
273
|
-
--tw-backdrop-contrast: ;
|
|
274
|
-
--tw-backdrop-grayscale: ;
|
|
275
|
-
--tw-backdrop-hue-rotate: ;
|
|
276
|
-
--tw-backdrop-invert: ;
|
|
277
|
-
--tw-backdrop-opacity: ;
|
|
278
|
-
--tw-backdrop-saturate: ;
|
|
279
|
-
--tw-backdrop-sepia: ;
|
|
280
|
-
--tw-contain-size: ;
|
|
281
|
-
--tw-contain-layout: ;
|
|
282
|
-
--tw-contain-paint: ;
|
|
283
|
-
--tw-contain-style: ;
|
|
284
|
-
}
|
|
285
|
-
::backdrop {
|
|
286
|
-
--tw-border-spacing-x: 0;
|
|
287
|
-
--tw-border-spacing-y: 0;
|
|
288
|
-
--tw-translate-x: 0;
|
|
289
|
-
--tw-translate-y: 0;
|
|
290
|
-
--tw-rotate: 0;
|
|
291
|
-
--tw-skew-x: 0;
|
|
292
|
-
--tw-skew-y: 0;
|
|
293
|
-
--tw-scale-x: 1;
|
|
294
|
-
--tw-scale-y: 1;
|
|
295
|
-
--tw-pan-x: ;
|
|
296
|
-
--tw-pan-y: ;
|
|
297
|
-
--tw-pinch-zoom: ;
|
|
298
|
-
--tw-scroll-snap-strictness: proximity;
|
|
299
|
-
--tw-gradient-from-position: ;
|
|
300
|
-
--tw-gradient-via-position: ;
|
|
301
|
-
--tw-gradient-to-position: ;
|
|
302
|
-
--tw-ordinal: ;
|
|
303
|
-
--tw-slashed-zero: ;
|
|
304
|
-
--tw-numeric-figure: ;
|
|
305
|
-
--tw-numeric-spacing: ;
|
|
306
|
-
--tw-numeric-fraction: ;
|
|
307
|
-
--tw-ring-inset: ;
|
|
308
|
-
--tw-ring-offset-width: 0px;
|
|
309
|
-
--tw-ring-offset-color: #fff;
|
|
310
|
-
--tw-ring-color: rgb(63 131 248 / 0.5);
|
|
311
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
312
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
313
|
-
--tw-shadow: 0 0 #0000;
|
|
314
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
315
|
-
--tw-blur: ;
|
|
316
|
-
--tw-brightness: ;
|
|
317
|
-
--tw-contrast: ;
|
|
318
|
-
--tw-grayscale: ;
|
|
319
|
-
--tw-hue-rotate: ;
|
|
320
|
-
--tw-invert: ;
|
|
321
|
-
--tw-saturate: ;
|
|
322
|
-
--tw-sepia: ;
|
|
323
|
-
--tw-drop-shadow: ;
|
|
324
|
-
--tw-backdrop-blur: ;
|
|
325
|
-
--tw-backdrop-brightness: ;
|
|
326
|
-
--tw-backdrop-contrast: ;
|
|
327
|
-
--tw-backdrop-grayscale: ;
|
|
328
|
-
--tw-backdrop-hue-rotate: ;
|
|
329
|
-
--tw-backdrop-invert: ;
|
|
330
|
-
--tw-backdrop-opacity: ;
|
|
331
|
-
--tw-backdrop-saturate: ;
|
|
332
|
-
--tw-backdrop-sepia: ;
|
|
333
|
-
--tw-contain-size: ;
|
|
334
|
-
--tw-contain-layout: ;
|
|
335
|
-
--tw-contain-paint: ;
|
|
336
|
-
--tw-contain-style: ;
|
|
337
|
-
}
|
|
338
338
|
.sr-only {
|
|
339
339
|
position: absolute;
|
|
340
340
|
width: 1px;
|
|
@@ -640,11 +640,6 @@ video {
|
|
|
640
640
|
margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
|
|
641
641
|
margin-bottom: calc(0px * var(--tw-space-y-reverse));
|
|
642
642
|
}
|
|
643
|
-
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
|
644
|
-
--tw-space-y-reverse: 0;
|
|
645
|
-
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
646
|
-
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
|
|
647
|
-
}
|
|
648
643
|
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
|
|
649
644
|
--tw-space-y-reverse: 0;
|
|
650
645
|
margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -905,10 +900,6 @@ video {
|
|
|
905
900
|
padding-left: 2rem;
|
|
906
901
|
padding-right: 2rem;
|
|
907
902
|
}
|
|
908
|
-
.py-0 {
|
|
909
|
-
padding-top: 0px;
|
|
910
|
-
padding-bottom: 0px;
|
|
911
|
-
}
|
|
912
903
|
.py-0\.5 {
|
|
913
904
|
padding-top: 0.125rem;
|
|
914
905
|
padding-bottom: 0.125rem;
|