@nearform/quantum 1.11.2 → 1.13.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 +95 -1
- package/dist/animations/index.d.ts +9 -0
- package/dist/animations/index.js +6 -1
- package/dist/animations/index.js.map +1 -1
- package/dist/colors/border.js +1 -1
- package/dist/colors/border.js.map +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/Accordion/index.js.map +1 -1
- package/dist/components/AppHeader/index.d.ts +5 -2
- package/dist/components/AppHeader/index.js +2 -2
- package/dist/components/AppHeader/index.js.map +1 -1
- package/dist/components/BackLink/index.d.ts +1 -0
- package/dist/components/BackLink/index.js +14 -2
- package/dist/components/BackLink/index.js.map +1 -1
- package/dist/components/Badge/index.js +12 -2
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Card/index.d.ts +7 -3
- package/dist/components/Card/index.js +18 -4
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/NativeSelect/index.d.ts +23 -0
- package/dist/components/NativeSelect/index.js +98 -0
- package/dist/components/NativeSelect/index.js.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +15 -0
- package/dist/components/ProgressBar/index.js +65 -0
- package/dist/components/ProgressBar/index.js.map +1 -0
- package/dist/components/Select/index.d.ts +1 -4
- package/dist/components/Select/index.js +6 -73
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/triggerVariants.d.ts +9 -0
- package/dist/components/Select/triggerVariants.js +76 -0
- package/dist/components/Select/triggerVariants.js.map +1 -0
- package/dist/components/Separator/index.d.ts +11 -0
- package/dist/components/Separator/index.js +79 -0
- package/dist/components/Separator/index.js.map +1 -0
- package/dist/components/Spinner/index.d.ts +10 -0
- package/dist/components/Spinner/index.js +81 -0
- package/dist/components/Spinner/index.js.map +1 -0
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/ThemeToggle/index.d.ts +1 -1
- package/dist/components/ThemeToggle/index.js +6 -8
- package/dist/components/ThemeToggle/index.js.map +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +5 -3
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/components/WebsiteHeader/index.d.ts +5 -2
- package/dist/components/WebsiteHeader/index.js +2 -2
- package/dist/components/WebsiteHeader/index.js.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -1
- package/dist/esm/animations/index.d.ts +9 -0
- package/dist/esm/animations/index.js +6 -1
- package/dist/esm/animations/index.js.map +1 -1
- package/dist/esm/colors/border.js +1 -1
- package/dist/esm/colors/border.js.map +1 -1
- package/dist/esm/components/Accordion/index.js +1 -1
- package/dist/esm/components/Accordion/index.js.map +1 -1
- package/dist/esm/components/AppHeader/index.d.ts +5 -2
- package/dist/esm/components/AppHeader/index.js +2 -2
- package/dist/esm/components/AppHeader/index.js.map +1 -1
- package/dist/esm/components/BackLink/index.d.ts +1 -0
- package/dist/esm/components/BackLink/index.js +15 -3
- package/dist/esm/components/BackLink/index.js.map +1 -1
- package/dist/esm/components/Badge/index.js +12 -2
- package/dist/esm/components/Badge/index.js.map +1 -1
- package/dist/esm/components/Card/index.d.ts +7 -3
- package/dist/esm/components/Card/index.js +18 -4
- package/dist/esm/components/Card/index.js.map +1 -1
- package/dist/esm/components/NativeSelect/index.d.ts +23 -0
- package/dist/esm/components/NativeSelect/index.js +62 -0
- package/dist/esm/components/NativeSelect/index.js.map +1 -0
- package/dist/esm/components/ProgressBar/index.d.ts +15 -0
- package/dist/esm/components/ProgressBar/index.js +29 -0
- package/dist/esm/components/ProgressBar/index.js.map +1 -0
- package/dist/esm/components/Select/index.d.ts +1 -4
- package/dist/esm/components/Select/index.js +5 -72
- package/dist/esm/components/Select/index.js.map +1 -1
- package/dist/esm/components/Select/triggerVariants.d.ts +9 -0
- package/dist/esm/components/Select/triggerVariants.js +73 -0
- package/dist/esm/components/Select/triggerVariants.js.map +1 -0
- package/dist/esm/components/Separator/index.d.ts +11 -0
- package/dist/esm/components/Separator/index.js +42 -0
- package/dist/esm/components/Separator/index.js.map +1 -0
- package/dist/esm/components/Spinner/index.d.ts +10 -0
- package/dist/esm/components/Spinner/index.js +44 -0
- package/dist/esm/components/Spinner/index.js.map +1 -0
- package/dist/esm/components/Table/index.js +1 -1
- package/dist/esm/components/Table/index.js.map +1 -1
- package/dist/esm/components/ThemeToggle/index.d.ts +1 -1
- package/dist/esm/components/ThemeToggle/index.js +1 -3
- package/dist/esm/components/ThemeToggle/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.d.ts +1 -0
- package/dist/esm/components/Tooltip/index.js +5 -3
- package/dist/esm/components/Tooltip/index.js.map +1 -1
- package/dist/esm/components/WebsiteHeader/index.d.ts +5 -2
- package/dist/esm/components/WebsiteHeader/index.js +2 -2
- package/dist/esm/components/WebsiteHeader/index.js.map +1 -1
- package/dist/esm/components/index.d.ts +4 -0
- package/dist/esm/components/index.js +4 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/theme-init.d.ts +23 -0
- package/dist/esm/theme-init.js +24 -0
- package/dist/esm/theme-init.js.map +1 -0
- package/dist/esm/theme.d.ts +15 -0
- package/dist/esm/theme.js +7 -1
- package/dist/esm/theme.js.map +1 -1
- package/dist/global.css +168 -12
- package/dist/theme-init.d.ts +23 -0
- package/dist/theme-init.js +27 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.js +7 -1
- package/dist/theme.js.map +1 -1
- package/package.json +11 -1
|
@@ -24,16 +24,20 @@ export * from './Label/index.js';
|
|
|
24
24
|
export * from './Link/index.js';
|
|
25
25
|
export * from './Meter/index.js';
|
|
26
26
|
export * from './Modal/index.js';
|
|
27
|
+
export * from './NativeSelect/index.js';
|
|
27
28
|
export * from './Navigation/index.js';
|
|
28
29
|
export * from './Notice/index.js';
|
|
29
30
|
export * from './PageHeader/index.js';
|
|
30
31
|
export * from './Pagination/index.js';
|
|
31
32
|
export * from './Password/index.js';
|
|
32
33
|
export * from './Popover/index.js';
|
|
34
|
+
export * from './ProgressBar/index.js';
|
|
33
35
|
export * from './Radio/index.js';
|
|
34
36
|
export * from './Select/index.js';
|
|
37
|
+
export * from './Separator/index.js';
|
|
35
38
|
export * from './Slider/index.js';
|
|
36
39
|
export * from './SortAndShow/index.js';
|
|
40
|
+
export * from './Spinner/index.js';
|
|
37
41
|
export * from './SplitButton/index.js';
|
|
38
42
|
export * from './Stats/index.js';
|
|
39
43
|
export * from './Stepper/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAuB,CAAA;AACrC,cAAc,sBAAuB,CAAA;AACrC,cAAc,mBAAoB,CAAA;AAClC,cAAc,qBAAsB,CAAA;AACpC,cAAc,uBAAwB,CAAA;AACtC,cAAc,kBAAmB,CAAA;AACjC,cAAc,mBAAoB,CAAA;AAClC,cAAc,wBAAyB,CAAA;AACvC,cAAc,qBAAsB,CAAA;AACpC,cAAc,iBAAkB,CAAA;AAChC,cAAc,iBAAkB,CAAA;AAChC,cAAc,qBAAsB,CAAA;AACpC,cAAc,0BAA2B,CAAA;AACzC,cAAc,sBAAuB,CAAA;AACrC,cAAc,sBAAuB,CAAA;AACrC,cAAc,qBAAsB,CAAA;AACpC,cAAc,iBAAkB,CAAA;AAChC,cAAc,yBAA0B,CAAA;AACxC,cAAc,sBAAuB,CAAA;AACrC,cAAc,uBAAwB,CAAA;AACtC,cAAc,uBAAwB,CAAA;AACtC,cAAc,kBAAmB,CAAA;AACjC,cAAc,kBAAmB,CAAA;AACjC,cAAc,iBAAkB,CAAA;AAChC,cAAc,kBAAmB,CAAA;AACjC,cAAc,kBAAmB,CAAA;AACjC,cAAc,uBAAwB,CAAA;AACtC,cAAc,mBAAoB,CAAA;AAClC,cAAc,uBAAwB,CAAA;AACtC,cAAc,uBAAwB,CAAA;AACtC,cAAc,qBAAsB,CAAA;AACpC,cAAc,oBAAqB,CAAA;AACnC,cAAc,kBAAmB,CAAA;AACjC,cAAc,mBAAoB,CAAA;AAClC,cAAc,mBAAoB,CAAA;AAClC,cAAc,wBAAyB,CAAA;AACvC,cAAc,wBAAyB,CAAA;AACvC,cAAc,kBAAmB,CAAA;AACjC,cAAc,oBAAqB,CAAA;AACnC,cAAc,mBAAoB,CAAA;AAClC,cAAc,2BAA4B,CAAA;AAC1C,cAAc,mBAAoB,CAAA;AAClC,cAAc,kBAAmB,CAAA;AACjC,cAAc,iBAAkB,CAAA;AAChC,cAAc,qBAAsB,CAAA;AACpC,cAAc,wBAAyB,CAAA;AACvC,cAAc,kBAAmB,CAAA;AACjC,cAAc,uBAAwB,CAAA;AACtC,cAAc,oBAAqB,CAAA;AACnC,cAAc,0BAA2B,CAAA;AACzC,cAAc,0BAA2B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAuB,CAAA;AACrC,cAAc,sBAAuB,CAAA;AACrC,cAAc,mBAAoB,CAAA;AAClC,cAAc,qBAAsB,CAAA;AACpC,cAAc,uBAAwB,CAAA;AACtC,cAAc,kBAAmB,CAAA;AACjC,cAAc,mBAAoB,CAAA;AAClC,cAAc,wBAAyB,CAAA;AACvC,cAAc,qBAAsB,CAAA;AACpC,cAAc,iBAAkB,CAAA;AAChC,cAAc,iBAAkB,CAAA;AAChC,cAAc,qBAAsB,CAAA;AACpC,cAAc,0BAA2B,CAAA;AACzC,cAAc,sBAAuB,CAAA;AACrC,cAAc,sBAAuB,CAAA;AACrC,cAAc,qBAAsB,CAAA;AACpC,cAAc,iBAAkB,CAAA;AAChC,cAAc,yBAA0B,CAAA;AACxC,cAAc,sBAAuB,CAAA;AACrC,cAAc,uBAAwB,CAAA;AACtC,cAAc,uBAAwB,CAAA;AACtC,cAAc,kBAAmB,CAAA;AACjC,cAAc,kBAAmB,CAAA;AACjC,cAAc,iBAAkB,CAAA;AAChC,cAAc,kBAAmB,CAAA;AACjC,cAAc,kBAAmB,CAAA;AACjC,cAAc,yBAA0B,CAAA;AACxC,cAAc,uBAAwB,CAAA;AACtC,cAAc,mBAAoB,CAAA;AAClC,cAAc,uBAAwB,CAAA;AACtC,cAAc,uBAAwB,CAAA;AACtC,cAAc,qBAAsB,CAAA;AACpC,cAAc,oBAAqB,CAAA;AACnC,cAAc,wBAAyB,CAAA;AACvC,cAAc,kBAAmB,CAAA;AACjC,cAAc,mBAAoB,CAAA;AAClC,cAAc,sBAAuB,CAAA;AACrC,cAAc,mBAAoB,CAAA;AAClC,cAAc,wBAAyB,CAAA;AACvC,cAAc,oBAAqB,CAAA;AACnC,cAAc,wBAAyB,CAAA;AACvC,cAAc,kBAAmB,CAAA;AACjC,cAAc,oBAAqB,CAAA;AACnC,cAAc,mBAAoB,CAAA;AAClC,cAAc,2BAA4B,CAAA;AAC1C,cAAc,mBAAoB,CAAA;AAClC,cAAc,kBAAmB,CAAA;AACjC,cAAc,iBAAkB,CAAA;AAChC,cAAc,qBAAsB,CAAA;AACpC,cAAc,wBAAyB,CAAA;AACvC,cAAc,kBAAmB,CAAA;AACjC,cAAc,uBAAwB,CAAA;AACtC,cAAc,oBAAqB,CAAA;AACnC,cAAc,0BAA2B,CAAA;AACzC,cAAc,0BAA2B,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The theme a page should open in, applied before it first paints.
|
|
3
|
+
*
|
|
4
|
+
* `ThemeToggle` reads and writes the same key, but it runs after React has
|
|
5
|
+
* rendered, so a page that waits for it shows the light theme for a frame
|
|
6
|
+
* before switching. `themeInitScript` closes that gap: inline it in the page's
|
|
7
|
+
* `<head>`, ahead of the stylesheet, and the `.dark` class is set first.
|
|
8
|
+
*
|
|
9
|
+
* It lives here rather than beside `ThemeToggle`, with no imports, so that it
|
|
10
|
+
* can be loaded on its own as `@nearform/quantum/theme-init`, from a build
|
|
11
|
+
* config that injects it into a static `index.html` (Vite's
|
|
12
|
+
* `transformIndexHtml`, for one) without loading React or any component.
|
|
13
|
+
*/
|
|
14
|
+
/** The `localStorage` key that holds the chosen theme, `'light'` or `'dark'`. */
|
|
15
|
+
export declare const THEME_STORAGE_KEY = "theme";
|
|
16
|
+
/** The media query for the operating system's dark preference. */
|
|
17
|
+
export declare const DARK_SCHEME_QUERY = "(prefers-color-scheme: dark)";
|
|
18
|
+
/**
|
|
19
|
+
* The script to inline, as a string. A stored choice wins; otherwise it follows
|
|
20
|
+
* the operating system. It never throws: storage can be blocked and
|
|
21
|
+
* `matchMedia` can be missing, and the page then opens light.
|
|
22
|
+
*/
|
|
23
|
+
export declare const themeInitScript = "(function(){try{var t=localStorage.getItem('theme');document.documentElement.classList.toggle('dark',t==='dark'||(t!=='light'&&matchMedia('(prefers-color-scheme: dark)').matches))}catch(e){}})()";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The theme a page should open in, applied before it first paints.
|
|
3
|
+
*
|
|
4
|
+
* `ThemeToggle` reads and writes the same key, but it runs after React has
|
|
5
|
+
* rendered, so a page that waits for it shows the light theme for a frame
|
|
6
|
+
* before switching. `themeInitScript` closes that gap: inline it in the page's
|
|
7
|
+
* `<head>`, ahead of the stylesheet, and the `.dark` class is set first.
|
|
8
|
+
*
|
|
9
|
+
* It lives here rather than beside `ThemeToggle`, with no imports, so that it
|
|
10
|
+
* can be loaded on its own as `@nearform/quantum/theme-init`, from a build
|
|
11
|
+
* config that injects it into a static `index.html` (Vite's
|
|
12
|
+
* `transformIndexHtml`, for one) without loading React or any component.
|
|
13
|
+
*/
|
|
14
|
+
/** The `localStorage` key that holds the chosen theme, `'light'` or `'dark'`. */
|
|
15
|
+
export const THEME_STORAGE_KEY = 'theme';
|
|
16
|
+
/** The media query for the operating system's dark preference. */
|
|
17
|
+
export const DARK_SCHEME_QUERY = '(prefers-color-scheme: dark)';
|
|
18
|
+
/**
|
|
19
|
+
* The script to inline, as a string. A stored choice wins; otherwise it follows
|
|
20
|
+
* the operating system. It never throws: storage can be blocked and
|
|
21
|
+
* `matchMedia` can be missing, and the page then opens light.
|
|
22
|
+
*/
|
|
23
|
+
export const themeInitScript = `(function(){try{var t=localStorage.getItem('${THEME_STORAGE_KEY}');document.documentElement.classList.toggle('dark',t==='dark'||(t!=='light'&&matchMedia('${DARK_SCHEME_QUERY}').matches))}catch(e){}})()`;
|
|
24
|
+
//# sourceMappingURL=theme-init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-init.js","sourceRoot":"","sources":["../../src/theme-init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAA;AAExC,kEAAkE;AAClE,MAAM,CAAC,MAAM,iBAAiB,GAAG,8BAA8B,CAAA;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,+CAA+C,iBAAiB,6FAA6F,iBAAiB,6BAA6B,CAAA"}
|
package/dist/esm/theme.d.ts
CHANGED
|
@@ -401,6 +401,12 @@ declare const _default: {
|
|
|
401
401
|
none: string;
|
|
402
402
|
};
|
|
403
403
|
fontFamily: {
|
|
404
|
+
/**
|
|
405
|
+
* We name the typeface but do not ship it: see "Loading the typeface" in
|
|
406
|
+
* the README. `'Inter Variable'` is the family `@fontsource-variable/inter`
|
|
407
|
+
* registers, the usual way to self-host it, so loading that package is
|
|
408
|
+
* enough on its own. Google Fonts and a local install register `'Inter'`.
|
|
409
|
+
*/
|
|
404
410
|
sans: string[];
|
|
405
411
|
};
|
|
406
412
|
strokeWidth: {
|
|
@@ -428,10 +434,19 @@ declare const _default: {
|
|
|
428
434
|
height: string;
|
|
429
435
|
};
|
|
430
436
|
};
|
|
437
|
+
progressIndeterminate: {
|
|
438
|
+
from: {
|
|
439
|
+
transform: string;
|
|
440
|
+
};
|
|
441
|
+
to: {
|
|
442
|
+
transform: string;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
431
445
|
};
|
|
432
446
|
animation: {
|
|
433
447
|
slideDown: string;
|
|
434
448
|
slideUp: string;
|
|
449
|
+
progressIndeterminate: string;
|
|
435
450
|
};
|
|
436
451
|
};
|
|
437
452
|
};
|
package/dist/esm/theme.js
CHANGED
|
@@ -38,7 +38,13 @@ export default {
|
|
|
38
38
|
none: '0px 0px'
|
|
39
39
|
},
|
|
40
40
|
fontFamily: {
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* We name the typeface but do not ship it: see "Loading the typeface" in
|
|
43
|
+
* the README. `'Inter Variable'` is the family `@fontsource-variable/inter`
|
|
44
|
+
* registers, the usual way to self-host it, so loading that package is
|
|
45
|
+
* enough on its own. Google Fonts and a local install register `'Inter'`.
|
|
46
|
+
*/
|
|
47
|
+
sans: ["'Inter'", "'Inter Variable'", ...defaultTheme.fontFamily.sans]
|
|
42
48
|
},
|
|
43
49
|
strokeWidth: {
|
|
44
50
|
0: '0px',
|
package/dist/esm/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,0BAA0B,CAAA;AACnD,OAAO,UAAU,MAAM,uBAAuB,CAAA;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAe;IACb,MAAM;IACN,SAAS,EAAE;QACT,EAAE,EAAE,qCAAqC;QACzC,OAAO,EAAE,sCAAsC;QAC/C,EAAE,EAAE,sCAAsC;QAC1C,EAAE,EAAE,qCAAqC;QACzC,EAAE,EAAE,wCAAwC;QAC5C,KAAK,EAAE,yCAAyC;QAChD,IAAI,EAAE,kCAAkC;QACxC,GAAG,EAAE,kCAAkC;QACvC,KAAK,EAAE,mCAAmC;QAC1C,UAAU,EACR,6EAA6E;QAC/E,YAAY,EAAE,yBAAyB;QACvC,IAAI,EAAE,SAAS;KAChB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,CAAC,SAAS,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,0BAA0B,CAAA;AACnD,OAAO,UAAU,MAAM,uBAAuB,CAAA;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAe;IACb,MAAM;IACN,SAAS,EAAE;QACT,EAAE,EAAE,qCAAqC;QACzC,OAAO,EAAE,sCAAsC;QAC/C,EAAE,EAAE,sCAAsC;QAC1C,EAAE,EAAE,qCAAqC;QACzC,EAAE,EAAE,wCAAwC;QAC5C,KAAK,EAAE,yCAAyC;QAChD,IAAI,EAAE,kCAAkC;QACxC,GAAG,EAAE,kCAAkC;QACvC,KAAK,EAAE,mCAAmC;QAC1C,UAAU,EACR,6EAA6E;QAC/E,YAAY,EAAE,yBAAyB;QACvC,IAAI,EAAE,SAAS;KAChB;IACD,UAAU,EAAE;QACV;;;;;WAKG;QACH,IAAI,EAAE,CAAC,SAAS,EAAE,kBAAkB,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC;KACvE;IACD,WAAW,EAAE;QACX,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;KACT;IACD,MAAM,EAAE;QACN,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC;CACF,CAAA"}
|
package/dist/global.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@layer theme {
|
|
6
6
|
:root, :host {
|
|
7
7
|
--spacing: 0.25rem;
|
|
8
|
+
--container-xs: 20rem;
|
|
8
9
|
--container-md: 28rem;
|
|
9
10
|
--container-lg: 32rem;
|
|
10
11
|
--text-xs: 0.75rem;
|
|
@@ -32,6 +33,8 @@
|
|
|
32
33
|
--radius-lg: 0.5rem;
|
|
33
34
|
--radius-xl: 0.75rem;
|
|
34
35
|
--radius-2xl: 1rem;
|
|
36
|
+
--animate-spin: spin 1s linear infinite;
|
|
37
|
+
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
35
38
|
--default-transition-duration: 150ms;
|
|
36
39
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
37
40
|
--default-font-family: var(--font-sans);
|
|
@@ -64,7 +67,7 @@
|
|
|
64
67
|
--color-accent-hover-dark: #97a1b8;
|
|
65
68
|
--color-border: #6B7280;
|
|
66
69
|
--color-border-dark: #6B7280;
|
|
67
|
-
--color-border-hover: #
|
|
70
|
+
--color-border-hover: #1F2A37;
|
|
68
71
|
--color-border-hover-dark: #97a1b8;
|
|
69
72
|
--color-border-focus: #0c3d60;
|
|
70
73
|
--color-border-focus-dark: #9CA3AF;
|
|
@@ -91,7 +94,7 @@
|
|
|
91
94
|
--color-button-secondary-disabled: #F9FAFB;
|
|
92
95
|
--color-button-secondary-disabled-dark: #1F2A37;
|
|
93
96
|
--color-button-secondary-border-dark: #6B7280;
|
|
94
|
-
--color-button-secondary-border-hover: #
|
|
97
|
+
--color-button-secondary-border-hover: #1F2A37;
|
|
95
98
|
--color-button-secondary-border-hover-dark: #97a1b8;
|
|
96
99
|
--color-button-secondary-border-disabled: #f4f8fa;
|
|
97
100
|
--color-button-tertiary-hover: #F9FAFB;
|
|
@@ -136,10 +139,11 @@
|
|
|
136
139
|
--color-brandMidnight-100: #000e38;
|
|
137
140
|
--color-brandGreen-30: #b2f7e1;
|
|
138
141
|
--color-brandGreen-100: #03e5a4;
|
|
139
|
-
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
142
|
+
--font-sans: 'Inter', 'Inter Variable', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
140
143
|
--stroke-width-1: 1px;
|
|
141
144
|
--animate-slideDown: slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
142
145
|
--animate-slideUp: slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
146
|
+
--animate-progressIndeterminate: progressIndeterminate 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
149
|
@layer base {
|
|
@@ -348,6 +352,9 @@
|
|
|
348
352
|
.inset-x-0 {
|
|
349
353
|
inset-inline: 0px;
|
|
350
354
|
}
|
|
355
|
+
.inset-y-0 {
|
|
356
|
+
inset-block: 0px;
|
|
357
|
+
}
|
|
351
358
|
.top-0 {
|
|
352
359
|
top: 0px;
|
|
353
360
|
}
|
|
@@ -369,6 +376,9 @@
|
|
|
369
376
|
.bottom-0 {
|
|
370
377
|
bottom: 0px;
|
|
371
378
|
}
|
|
379
|
+
.left-0 {
|
|
380
|
+
left: 0px;
|
|
381
|
+
}
|
|
372
382
|
.left-\[50\%\] {
|
|
373
383
|
left: 50%;
|
|
374
384
|
}
|
|
@@ -523,6 +533,9 @@
|
|
|
523
533
|
width: calc(var(--spacing) * 8);
|
|
524
534
|
height: calc(var(--spacing) * 8);
|
|
525
535
|
}
|
|
536
|
+
.h-0 {
|
|
537
|
+
height: 0px;
|
|
538
|
+
}
|
|
526
539
|
.h-1\.5 {
|
|
527
540
|
height: calc(var(--spacing) * 1.5);
|
|
528
541
|
}
|
|
@@ -592,6 +605,9 @@
|
|
|
592
605
|
.h-\[50px\] {
|
|
593
606
|
height: 50px;
|
|
594
607
|
}
|
|
608
|
+
.h-auto {
|
|
609
|
+
height: auto;
|
|
610
|
+
}
|
|
595
611
|
.h-full {
|
|
596
612
|
height: 100%;
|
|
597
613
|
}
|
|
@@ -619,6 +635,9 @@
|
|
|
619
635
|
.min-h-14 {
|
|
620
636
|
min-height: calc(var(--spacing) * 14);
|
|
621
637
|
}
|
|
638
|
+
.w-0 {
|
|
639
|
+
width: 0px;
|
|
640
|
+
}
|
|
622
641
|
.w-0\.5 {
|
|
623
642
|
width: calc(var(--spacing) * 0.5);
|
|
624
643
|
}
|
|
@@ -631,6 +650,9 @@
|
|
|
631
650
|
.w-2\.5 {
|
|
632
651
|
width: calc(var(--spacing) * 2.5);
|
|
633
652
|
}
|
|
653
|
+
.w-2\/5 {
|
|
654
|
+
width: calc(2 / 5 * 100%);
|
|
655
|
+
}
|
|
634
656
|
.w-3 {
|
|
635
657
|
width: calc(var(--spacing) * 3);
|
|
636
658
|
}
|
|
@@ -689,6 +711,9 @@
|
|
|
689
711
|
.max-w-md {
|
|
690
712
|
max-width: var(--container-md);
|
|
691
713
|
}
|
|
714
|
+
.max-w-xs {
|
|
715
|
+
max-width: var(--container-xs);
|
|
716
|
+
}
|
|
692
717
|
.min-w-0 {
|
|
693
718
|
min-width: 0px;
|
|
694
719
|
}
|
|
@@ -762,6 +787,15 @@
|
|
|
762
787
|
.rotate-180 {
|
|
763
788
|
rotate: 180deg;
|
|
764
789
|
}
|
|
790
|
+
.transform {
|
|
791
|
+
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
792
|
+
}
|
|
793
|
+
.animate-progressIndeterminate {
|
|
794
|
+
animation: var(--animate-progressIndeterminate);
|
|
795
|
+
}
|
|
796
|
+
.animate-spin {
|
|
797
|
+
animation: var(--animate-spin);
|
|
798
|
+
}
|
|
765
799
|
.cursor-default {
|
|
766
800
|
cursor: default;
|
|
767
801
|
}
|
|
@@ -777,6 +811,14 @@
|
|
|
777
811
|
.resize-none {
|
|
778
812
|
resize: none;
|
|
779
813
|
}
|
|
814
|
+
.scroll-my-1\.5 {
|
|
815
|
+
scroll-margin-block: calc(var(--spacing) * 1.5);
|
|
816
|
+
}
|
|
817
|
+
.appearance-none {
|
|
818
|
+
-webkit-appearance: none;
|
|
819
|
+
-moz-appearance: none;
|
|
820
|
+
appearance: none;
|
|
821
|
+
}
|
|
780
822
|
.grid-cols-1 {
|
|
781
823
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
782
824
|
}
|
|
@@ -987,6 +1029,10 @@
|
|
|
987
1029
|
border-style: var(--tw-border-style);
|
|
988
1030
|
border-width: 2px;
|
|
989
1031
|
}
|
|
1032
|
+
.border-\[3px\] {
|
|
1033
|
+
border-style: var(--tw-border-style);
|
|
1034
|
+
border-width: 3px;
|
|
1035
|
+
}
|
|
990
1036
|
.border-t {
|
|
991
1037
|
border-top-style: var(--tw-border-style);
|
|
992
1038
|
border-top-width: 1px;
|
|
@@ -1026,6 +1072,9 @@
|
|
|
1026
1072
|
.border-button-primary {
|
|
1027
1073
|
border-color: var(--color-button-primary);
|
|
1028
1074
|
}
|
|
1075
|
+
.border-current {
|
|
1076
|
+
border-color: currentcolor;
|
|
1077
|
+
}
|
|
1029
1078
|
.border-feedback-error {
|
|
1030
1079
|
border-color: var(--color-feedback-error);
|
|
1031
1080
|
}
|
|
@@ -1038,6 +1087,9 @@
|
|
|
1038
1087
|
.border-grey-200 {
|
|
1039
1088
|
border-color: var(--color-grey-200);
|
|
1040
1089
|
}
|
|
1090
|
+
.border-grey-300 {
|
|
1091
|
+
border-color: var(--color-grey-300);
|
|
1092
|
+
}
|
|
1041
1093
|
.border-primary-30 {
|
|
1042
1094
|
border-color: var(--color-primary-30);
|
|
1043
1095
|
}
|
|
@@ -1047,6 +1099,9 @@
|
|
|
1047
1099
|
.border-white {
|
|
1048
1100
|
border-color: var(--color-white);
|
|
1049
1101
|
}
|
|
1102
|
+
.border-t-transparent {
|
|
1103
|
+
border-top-color: transparent;
|
|
1104
|
+
}
|
|
1050
1105
|
.bg-accent {
|
|
1051
1106
|
background-color: var(--color-accent);
|
|
1052
1107
|
}
|
|
@@ -1077,6 +1132,9 @@
|
|
|
1077
1132
|
.bg-blue-50 {
|
|
1078
1133
|
background-color: var(--color-blue-50);
|
|
1079
1134
|
}
|
|
1135
|
+
.bg-blue-500 {
|
|
1136
|
+
background-color: var(--color-blue-500);
|
|
1137
|
+
}
|
|
1080
1138
|
.bg-border {
|
|
1081
1139
|
background-color: var(--color-border);
|
|
1082
1140
|
}
|
|
@@ -1101,6 +1159,12 @@
|
|
|
1101
1159
|
.bg-feedback-error {
|
|
1102
1160
|
background-color: var(--color-feedback-error);
|
|
1103
1161
|
}
|
|
1162
|
+
.bg-feedback-success {
|
|
1163
|
+
background-color: var(--color-feedback-success);
|
|
1164
|
+
}
|
|
1165
|
+
.bg-feedback-warning {
|
|
1166
|
+
background-color: var(--color-feedback-warning);
|
|
1167
|
+
}
|
|
1104
1168
|
.bg-foreground {
|
|
1105
1169
|
background-color: var(--color-foreground);
|
|
1106
1170
|
}
|
|
@@ -1255,6 +1319,9 @@
|
|
|
1255
1319
|
.pr-3 {
|
|
1256
1320
|
padding-right: calc(var(--spacing) * 3);
|
|
1257
1321
|
}
|
|
1322
|
+
.pr-8 {
|
|
1323
|
+
padding-right: calc(var(--spacing) * 8);
|
|
1324
|
+
}
|
|
1258
1325
|
.pr-10 {
|
|
1259
1326
|
padding-right: calc(var(--spacing) * 10);
|
|
1260
1327
|
}
|
|
@@ -1507,6 +1574,11 @@
|
|
|
1507
1574
|
.outline-brandGreen-100 {
|
|
1508
1575
|
outline-color: var(--color-brandGreen-100);
|
|
1509
1576
|
}
|
|
1577
|
+
.transition-\[width\] {
|
|
1578
|
+
transition-property: width;
|
|
1579
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1580
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1581
|
+
}
|
|
1510
1582
|
.transition-colors {
|
|
1511
1583
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
1512
1584
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -1539,17 +1611,26 @@
|
|
|
1539
1611
|
--tw-ease: cubic-bezier(0.87, 0, 0.13, 1);
|
|
1540
1612
|
transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
|
|
1541
1613
|
}
|
|
1614
|
+
.forced-color-adjust-none {
|
|
1615
|
+
forced-color-adjust: none;
|
|
1616
|
+
}
|
|
1542
1617
|
.select-none {
|
|
1543
1618
|
-webkit-user-select: none;
|
|
1544
1619
|
-moz-user-select: none;
|
|
1545
1620
|
user-select: none;
|
|
1546
1621
|
}
|
|
1622
|
+
.group-has-\[\>\[data-orientation\=vertical\]\[data-state\=visible\]\]\/scroll\:pr-4\.5:is(:where(.group\/scroll):has( > [data-orientation=vertical][data-state=visible]) *) {
|
|
1623
|
+
padding-right: calc(var(--spacing) * 4.5);
|
|
1624
|
+
}
|
|
1547
1625
|
.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state="open"] *) {
|
|
1548
1626
|
rotate: 180deg;
|
|
1549
1627
|
}
|
|
1550
1628
|
.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled ~ *) {
|
|
1551
1629
|
cursor: not-allowed;
|
|
1552
1630
|
}
|
|
1631
|
+
.peer-disabled\:opacity-50:is(:where(.peer):disabled ~ *) {
|
|
1632
|
+
opacity: 50%;
|
|
1633
|
+
}
|
|
1553
1634
|
.peer-disabled\:opacity-70:is(:where(.peer):disabled ~ *) {
|
|
1554
1635
|
opacity: 70%;
|
|
1555
1636
|
}
|
|
@@ -1994,15 +2075,9 @@
|
|
|
1994
2075
|
.data-\[highlighted\]\:bg-button-tertiary-hover[data-highlighted] {
|
|
1995
2076
|
background-color: var(--color-button-tertiary-hover);
|
|
1996
2077
|
}
|
|
1997
|
-
.data-\[highlighted\]\:
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
}
|
|
2001
|
-
.data-\[highlighted\]\:-outline-offset-2[data-highlighted] {
|
|
2002
|
-
outline-offset: calc(2px * -1);
|
|
2003
|
-
}
|
|
2004
|
-
.data-\[highlighted\]\:outline-current[data-highlighted] {
|
|
2005
|
-
outline-color: currentcolor;
|
|
2078
|
+
.data-\[highlighted\]\:shadow-brandGreen[data-highlighted] {
|
|
2079
|
+
--tw-shadow: 0px 0px 0px 4px var(--tw-shadow-color, #03e5a4), 0px 0px 0px 6px var(--tw-shadow-color, var(--quantum-focus-ring, #000e38));
|
|
2080
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2006
2081
|
}
|
|
2007
2082
|
.data-\[orientation\=horizontal\]\:flex-col[data-orientation="horizontal"] {
|
|
2008
2083
|
flex-direction: column;
|
|
@@ -2120,6 +2195,20 @@
|
|
|
2120
2195
|
--tw-translate-x: var(--radix-toast-swipe-move-x);
|
|
2121
2196
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
2122
2197
|
}
|
|
2198
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2199
|
+
.motion-reduce\:left-\[30\%\] {
|
|
2200
|
+
left: 30%;
|
|
2201
|
+
}
|
|
2202
|
+
.motion-reduce\:animate-none {
|
|
2203
|
+
animation: none;
|
|
2204
|
+
}
|
|
2205
|
+
.motion-reduce\:animate-pulse {
|
|
2206
|
+
animation: var(--animate-pulse);
|
|
2207
|
+
}
|
|
2208
|
+
.motion-reduce\:transition-none {
|
|
2209
|
+
transition-property: none;
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2123
2212
|
@media (width >= 40rem) {
|
|
2124
2213
|
.sm\:flex {
|
|
2125
2214
|
display: flex;
|
|
@@ -2256,6 +2345,12 @@
|
|
|
2256
2345
|
.dark\:bg-feedback-error-dark:is(.dark, .dark *) {
|
|
2257
2346
|
background-color: var(--color-feedback-error-dark);
|
|
2258
2347
|
}
|
|
2348
|
+
.dark\:bg-feedback-success-dark:is(.dark, .dark *) {
|
|
2349
|
+
background-color: var(--color-feedback-success-dark);
|
|
2350
|
+
}
|
|
2351
|
+
.dark\:bg-feedback-warning-dark:is(.dark, .dark *) {
|
|
2352
|
+
background-color: var(--color-feedback-warning-dark);
|
|
2353
|
+
}
|
|
2259
2354
|
.dark\:bg-foreground-dark:is(.dark, .dark *) {
|
|
2260
2355
|
background-color: var(--color-foreground-dark);
|
|
2261
2356
|
}
|
|
@@ -2316,6 +2411,16 @@
|
|
|
2316
2411
|
.dark\:text-white:is(.dark, .dark *) {
|
|
2317
2412
|
color: var(--color-white);
|
|
2318
2413
|
}
|
|
2414
|
+
.dark\:\[color-scheme\:dark\]:is(.dark, .dark *) {
|
|
2415
|
+
color-scheme: dark;
|
|
2416
|
+
}
|
|
2417
|
+
.dark\:ring-1:is(.dark, .dark *) {
|
|
2418
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2419
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2420
|
+
}
|
|
2421
|
+
.dark\:ring-grey-400:is(.dark, .dark *) {
|
|
2422
|
+
--tw-ring-color: var(--color-grey-400);
|
|
2423
|
+
}
|
|
2319
2424
|
.dark\:group-data-\[state\=active\]\:bg-background-dark:is(.dark, .dark *):is(:where(.group)[data-state="active"] *) {
|
|
2320
2425
|
background-color: var(--color-background-dark);
|
|
2321
2426
|
}
|
|
@@ -2552,6 +2657,10 @@
|
|
|
2552
2657
|
.dark\:data-\[highlighted\]\:bg-button-tertiary-hover-dark:is(.dark, .dark *)[data-highlighted] {
|
|
2553
2658
|
background-color: var(--color-button-tertiary-hover-dark);
|
|
2554
2659
|
}
|
|
2660
|
+
.dark\:data-\[highlighted\]\:shadow-brandGreen10:is(.dark, .dark *)[data-highlighted] {
|
|
2661
|
+
--tw-shadow: 0px 0px 0px 4px var(--tw-shadow-color, #e5fcf5);
|
|
2662
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2663
|
+
}
|
|
2555
2664
|
.dark\:data-\[selected\=true\]\:text-accent-dark:is(.dark, .dark *)[data-selected="true"] {
|
|
2556
2665
|
color: var(--color-accent-dark);
|
|
2557
2666
|
}
|
|
@@ -2608,6 +2717,10 @@
|
|
|
2608
2717
|
.forced-colors\:bg-\[repeating-linear-gradient\(45deg\,CanvasText\,CanvasText_2px\,Canvas_2px\,Canvas_4px\)\] {
|
|
2609
2718
|
background-image: repeating-linear-gradient(45deg,CanvasText,CanvasText 2px,Canvas 2px,Canvas 4px);
|
|
2610
2719
|
}
|
|
2720
|
+
.forced-colors\:ring-0 {
|
|
2721
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2722
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2723
|
+
}
|
|
2611
2724
|
}
|
|
2612
2725
|
.\[\&_svg\]\:size-3\.5 svg {
|
|
2613
2726
|
width: calc(var(--spacing) * 3.5);
|
|
@@ -2903,6 +3016,26 @@
|
|
|
2903
3016
|
inherits: false;
|
|
2904
3017
|
initial-value: 0;
|
|
2905
3018
|
}
|
|
3019
|
+
@property --tw-rotate-x {
|
|
3020
|
+
syntax: "*";
|
|
3021
|
+
inherits: false;
|
|
3022
|
+
}
|
|
3023
|
+
@property --tw-rotate-y {
|
|
3024
|
+
syntax: "*";
|
|
3025
|
+
inherits: false;
|
|
3026
|
+
}
|
|
3027
|
+
@property --tw-rotate-z {
|
|
3028
|
+
syntax: "*";
|
|
3029
|
+
inherits: false;
|
|
3030
|
+
}
|
|
3031
|
+
@property --tw-skew-x {
|
|
3032
|
+
syntax: "*";
|
|
3033
|
+
inherits: false;
|
|
3034
|
+
}
|
|
3035
|
+
@property --tw-skew-y {
|
|
3036
|
+
syntax: "*";
|
|
3037
|
+
inherits: false;
|
|
3038
|
+
}
|
|
2906
3039
|
@property --tw-space-y-reverse {
|
|
2907
3040
|
syntax: "*";
|
|
2908
3041
|
inherits: false;
|
|
@@ -3033,6 +3166,16 @@
|
|
|
3033
3166
|
initial-value: "";
|
|
3034
3167
|
inherits: false;
|
|
3035
3168
|
}
|
|
3169
|
+
@keyframes spin {
|
|
3170
|
+
to {
|
|
3171
|
+
transform: rotate(360deg);
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
@keyframes pulse {
|
|
3175
|
+
50% {
|
|
3176
|
+
opacity: 0.5;
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3036
3179
|
@keyframes slideDown {
|
|
3037
3180
|
from {
|
|
3038
3181
|
height: 0;
|
|
@@ -3049,12 +3192,25 @@
|
|
|
3049
3192
|
height: 0;
|
|
3050
3193
|
}
|
|
3051
3194
|
}
|
|
3195
|
+
@keyframes progressIndeterminate {
|
|
3196
|
+
from {
|
|
3197
|
+
transform: translateX(-100%);
|
|
3198
|
+
}
|
|
3199
|
+
to {
|
|
3200
|
+
transform: translateX(250%);
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3052
3203
|
@layer properties {
|
|
3053
3204
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
3054
3205
|
*, ::before, ::after, ::backdrop {
|
|
3055
3206
|
--tw-translate-x: 0;
|
|
3056
3207
|
--tw-translate-y: 0;
|
|
3057
3208
|
--tw-translate-z: 0;
|
|
3209
|
+
--tw-rotate-x: initial;
|
|
3210
|
+
--tw-rotate-y: initial;
|
|
3211
|
+
--tw-rotate-z: initial;
|
|
3212
|
+
--tw-skew-x: initial;
|
|
3213
|
+
--tw-skew-y: initial;
|
|
3058
3214
|
--tw-space-y-reverse: 0;
|
|
3059
3215
|
--tw-space-x-reverse: 0;
|
|
3060
3216
|
--tw-border-style: solid;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The theme a page should open in, applied before it first paints.
|
|
3
|
+
*
|
|
4
|
+
* `ThemeToggle` reads and writes the same key, but it runs after React has
|
|
5
|
+
* rendered, so a page that waits for it shows the light theme for a frame
|
|
6
|
+
* before switching. `themeInitScript` closes that gap: inline it in the page's
|
|
7
|
+
* `<head>`, ahead of the stylesheet, and the `.dark` class is set first.
|
|
8
|
+
*
|
|
9
|
+
* It lives here rather than beside `ThemeToggle`, with no imports, so that it
|
|
10
|
+
* can be loaded on its own as `@nearform/quantum/theme-init`, from a build
|
|
11
|
+
* config that injects it into a static `index.html` (Vite's
|
|
12
|
+
* `transformIndexHtml`, for one) without loading React or any component.
|
|
13
|
+
*/
|
|
14
|
+
/** The `localStorage` key that holds the chosen theme, `'light'` or `'dark'`. */
|
|
15
|
+
export declare const THEME_STORAGE_KEY = "theme";
|
|
16
|
+
/** The media query for the operating system's dark preference. */
|
|
17
|
+
export declare const DARK_SCHEME_QUERY = "(prefers-color-scheme: dark)";
|
|
18
|
+
/**
|
|
19
|
+
* The script to inline, as a string. A stored choice wins; otherwise it follows
|
|
20
|
+
* the operating system. It never throws: storage can be blocked and
|
|
21
|
+
* `matchMedia` can be missing, and the page then opens light.
|
|
22
|
+
*/
|
|
23
|
+
export declare const themeInitScript = "(function(){try{var t=localStorage.getItem('theme');document.documentElement.classList.toggle('dark',t==='dark'||(t!=='light'&&matchMedia('(prefers-color-scheme: dark)').matches))}catch(e){}})()";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The theme a page should open in, applied before it first paints.
|
|
4
|
+
*
|
|
5
|
+
* `ThemeToggle` reads and writes the same key, but it runs after React has
|
|
6
|
+
* rendered, so a page that waits for it shows the light theme for a frame
|
|
7
|
+
* before switching. `themeInitScript` closes that gap: inline it in the page's
|
|
8
|
+
* `<head>`, ahead of the stylesheet, and the `.dark` class is set first.
|
|
9
|
+
*
|
|
10
|
+
* It lives here rather than beside `ThemeToggle`, with no imports, so that it
|
|
11
|
+
* can be loaded on its own as `@nearform/quantum/theme-init`, from a build
|
|
12
|
+
* config that injects it into a static `index.html` (Vite's
|
|
13
|
+
* `transformIndexHtml`, for one) without loading React or any component.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.themeInitScript = exports.DARK_SCHEME_QUERY = exports.THEME_STORAGE_KEY = void 0;
|
|
17
|
+
/** The `localStorage` key that holds the chosen theme, `'light'` or `'dark'`. */
|
|
18
|
+
exports.THEME_STORAGE_KEY = 'theme';
|
|
19
|
+
/** The media query for the operating system's dark preference. */
|
|
20
|
+
exports.DARK_SCHEME_QUERY = '(prefers-color-scheme: dark)';
|
|
21
|
+
/**
|
|
22
|
+
* The script to inline, as a string. A stored choice wins; otherwise it follows
|
|
23
|
+
* the operating system. It never throws: storage can be blocked and
|
|
24
|
+
* `matchMedia` can be missing, and the page then opens light.
|
|
25
|
+
*/
|
|
26
|
+
exports.themeInitScript = `(function(){try{var t=localStorage.getItem('${exports.THEME_STORAGE_KEY}');document.documentElement.classList.toggle('dark',t==='dark'||(t!=='light'&&matchMedia('${exports.DARK_SCHEME_QUERY}').matches))}catch(e){}})()`;
|
|
27
|
+
//# sourceMappingURL=theme-init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-init.js","sourceRoot":"","sources":["../src/theme-init.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEH,iFAAiF;AACpE,QAAA,iBAAiB,GAAG,OAAO,CAAA;AAExC,kEAAkE;AACrD,QAAA,iBAAiB,GAAG,8BAA8B,CAAA;AAE/D;;;;GAIG;AACU,QAAA,eAAe,GAAG,+CAA+C,QAAA,iBAAiB,6FAA6F,QAAA,iBAAiB,6BAA6B,CAAA"}
|
package/dist/theme.js
CHANGED
|
@@ -43,7 +43,13 @@ exports.default = {
|
|
|
43
43
|
none: '0px 0px'
|
|
44
44
|
},
|
|
45
45
|
fontFamily: {
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* We name the typeface but do not ship it: see "Loading the typeface" in
|
|
48
|
+
* the README. `'Inter Variable'` is the family `@fontsource-variable/inter`
|
|
49
|
+
* registers, the usual way to self-host it, so loading that package is
|
|
50
|
+
* enough on its own. Google Fonts and a local install register `'Inter'`.
|
|
51
|
+
*/
|
|
52
|
+
sans: ["'Inter'", "'Inter Variable'", ...defaultTheme_1.default.fontFamily.sans]
|
|
47
53
|
},
|
|
48
54
|
strokeWidth: {
|
|
49
55
|
0: '0px',
|
package/dist/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";;;;;AAAA,4EAAmD;AACnD,qEAA8C;AAC9C,iEAAsC;AAEtC;;;;;;;;;;;;;;;;;;;GAmBG;kBACY;IACb,MAAM,EAAN,kBAAM;IACN,SAAS,EAAE;QACT,EAAE,EAAE,qCAAqC;QACzC,OAAO,EAAE,sCAAsC;QAC/C,EAAE,EAAE,sCAAsC;QAC1C,EAAE,EAAE,qCAAqC;QACzC,EAAE,EAAE,wCAAwC;QAC5C,KAAK,EAAE,yCAAyC;QAChD,IAAI,EAAE,kCAAkC;QACxC,GAAG,EAAE,kCAAkC;QACvC,KAAK,EAAE,mCAAmC;QAC1C,UAAU,EACR,6EAA6E;QAC/E,YAAY,EAAE,yBAAyB;QACvC,IAAI,EAAE,SAAS;KAChB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,CAAC,SAAS,EAAE,GAAG,sBAAY,CAAC,UAAU,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";;;;;AAAA,4EAAmD;AACnD,qEAA8C;AAC9C,iEAAsC;AAEtC;;;;;;;;;;;;;;;;;;;GAmBG;kBACY;IACb,MAAM,EAAN,kBAAM;IACN,SAAS,EAAE;QACT,EAAE,EAAE,qCAAqC;QACzC,OAAO,EAAE,sCAAsC;QAC/C,EAAE,EAAE,sCAAsC;QAC1C,EAAE,EAAE,qCAAqC;QACzC,EAAE,EAAE,wCAAwC;QAC5C,KAAK,EAAE,yCAAyC;QAChD,IAAI,EAAE,kCAAkC;QACxC,GAAG,EAAE,kCAAkC;QACvC,KAAK,EAAE,mCAAmC;QAC1C,UAAU,EACR,6EAA6E;QAC/E,YAAY,EAAE,yBAAyB;QACvC,IAAI,EAAE,SAAS;KAChB;IACD,UAAU,EAAE;QACV;;;;;WAKG;QACH,IAAI,EAAE,CAAC,SAAS,EAAE,kBAAkB,EAAE,GAAG,sBAAY,CAAC,UAAU,CAAC,IAAI,CAAC;KACvE;IACD,WAAW,EAAE;QACX,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;KACT;IACD,MAAM,EAAE;QACN,SAAS,EAAE,kBAAU,CAAC,SAAS;QAC/B,SAAS,EAAE,kBAAU,CAAC,SAAS;KAChC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nearform/quantum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Component library based on the Quantum Design System",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -23,6 +23,16 @@
|
|
|
23
23
|
"import": "./dist/esm/tailwind-plugin.js",
|
|
24
24
|
"require": "./dist/tailwind-plugin.js"
|
|
25
25
|
},
|
|
26
|
+
"./theme-init": {
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/esm/theme-init.d.ts",
|
|
29
|
+
"default": "./dist/esm/theme-init.js"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/theme-init.d.ts",
|
|
33
|
+
"default": "./dist/theme-init.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
26
36
|
"./global.css": "./dist/global.css"
|
|
27
37
|
},
|
|
28
38
|
"scripts": {
|