mates 0.1.0-beta.10 → 0.1.0-beta.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.
|
@@ -34,10 +34,9 @@ export type ThemeAtomType = AtomType<ThemeValue> & {
|
|
|
34
34
|
readonly name: "themeAtom";
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* The singleton reactive theme atom.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
* returns the same instance with no side-effects.
|
|
39
|
+
* Use directly — it is the atom, not a factory.
|
|
41
40
|
*
|
|
42
41
|
* - Reads the initial theme from `localStorage["mates-theme"]`.
|
|
43
42
|
* - Falls back to the OS color-scheme preference when no value is stored.
|
|
@@ -47,13 +46,14 @@ export type ThemeAtomType = AtomType<ThemeValue> & {
|
|
|
47
46
|
* "auto" mode, re-notifying all subscribers so derived UIs update.
|
|
48
47
|
*
|
|
49
48
|
* @example
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
49
|
+
* import { themeAtom } from "mates";
|
|
50
|
+
*
|
|
51
|
+
* themeAtom.setToDark();
|
|
52
|
+
* themeAtom.toggle(); // → "light"
|
|
53
|
+
* themeAtom.setToAuto(); // follows OS
|
|
54
|
+
* themeAtom.resolved; // "light" | "dark" — never "auto"
|
|
55
|
+
* themeAtom(); // read current value: "light" | "dark" | "auto"
|
|
56
|
+
* themeAtom.val; // same
|
|
57
57
|
*/
|
|
58
|
-
export declare
|
|
58
|
+
export declare const themeAtom: ThemeAtomType;
|
|
59
59
|
//# sourceMappingURL=themeAtom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeAtom.d.ts","sourceRoot":"","sources":["../../../lib/Mutables/Extended Atoms/themeAtom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAA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
1
|
-
{"version":3,"file":"x-x.d.ts","sourceRoot":"","sources":["../../lib/Template/x-x.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-x.d.ts","sourceRoot":"","sources":["../../lib/Template/x-x.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,2BAA2B,CAAC;AAahF,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,CAAC,MAAM,CAAsB;IAE7B,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,IAAI,SAAe;IAC1B,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,WAAW,CAEV;IACT,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAU;IAE3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/B,MAAM,EAAE,GAAG,CAAC,UAAU,GAAG,EAAE,MAAM,GAAG,CAAC,CAAa;IAEzD,gFAAgF;IACzE,UAAU,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,EAAE,CAAM;IAEpD,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,EAAE,KAAK,EAAE,GAAG;IAIvC,WAAW,SAAM;IAExB,iGAAiG;IAC1F,MAAM,SAAK;IAClB,sEAAsE;IAC/D,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAQ;IACjD,kFAAkF;IAC3E,cAAc,SAAK;IAE1B,+CAA+C;IACxC,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,EAAE,CAAM;IACzD,2EAA2E;IACpE,WAAW,EAAE,OAAO,CAAQ;IAG5B,qBAAqB,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,CAAa;IACnD,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI;IAKjC,aAAa,EAAE,IAAI,GAAG,gBAAgB,CAAQ;IAC9C,UAAU,EAAE,IAAI,GAAG,gBAAgB,CAAQ;;IAwBlD,IAAI,KAAK,CAAC,GAAG,qBAAA,EAGZ;IAED,IAAI,KAAK,wBAER;IAEM,OAAO,EAAE,GAAG,CAAC;IAEpB,OAAO,CAAC,cAAc,CAAS;IAM/B;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAmBxB,IAAI,IAAI,CAAC,GAAG,KAAA,EAyBX;IAED,IAAI,IAAI,QAEP;IAMD,gBAAgB;IAIhB,iBAAiB;IAgCjB,oBAAoB;IAqBpB,OAAO,CAAC,qBAAqB,CAa3B;IAEF,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ;IAazC,OAAO;IA6CP,OAAO,CAAC,eAAe;IAqFvB,OAAO,CAAC,kBAAkB;CA0E3B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1499,10 +1499,9 @@ type ThemeAtomType = AtomType<ThemeValue> & {
|
|
|
1499
1499
|
readonly name: "themeAtom";
|
|
1500
1500
|
};
|
|
1501
1501
|
/**
|
|
1502
|
-
*
|
|
1502
|
+
* The singleton reactive theme atom.
|
|
1503
1503
|
*
|
|
1504
|
-
*
|
|
1505
|
-
* returns the same instance with no side-effects.
|
|
1504
|
+
* Use directly — it is the atom, not a factory.
|
|
1506
1505
|
*
|
|
1507
1506
|
* - Reads the initial theme from `localStorage["mates-theme"]`.
|
|
1508
1507
|
* - Falls back to the OS color-scheme preference when no value is stored.
|
|
@@ -1512,15 +1511,16 @@ type ThemeAtomType = AtomType<ThemeValue> & {
|
|
|
1512
1511
|
* "auto" mode, re-notifying all subscribers so derived UIs update.
|
|
1513
1512
|
*
|
|
1514
1513
|
* @example
|
|
1515
|
-
*
|
|
1516
|
-
*
|
|
1517
|
-
*
|
|
1518
|
-
*
|
|
1519
|
-
*
|
|
1520
|
-
*
|
|
1521
|
-
*
|
|
1522
|
-
|
|
1523
|
-
|
|
1514
|
+
* import { themeAtom } from "mates";
|
|
1515
|
+
*
|
|
1516
|
+
* themeAtom.setToDark();
|
|
1517
|
+
* themeAtom.toggle(); // → "light"
|
|
1518
|
+
* themeAtom.setToAuto(); // follows OS
|
|
1519
|
+
* themeAtom.resolved; // "light" | "dark" — never "auto"
|
|
1520
|
+
* themeAtom(); // read current value: "light" | "dark" | "auto"
|
|
1521
|
+
* themeAtom.val; // same
|
|
1522
|
+
*/
|
|
1523
|
+
declare const themeAtom: ThemeAtomType;
|
|
1524
1524
|
|
|
1525
1525
|
/**
|
|
1526
1526
|
* A flat map of token names to CSS values.
|