boss-css 0.0.20 → 0.0.22

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.
Files changed (148) hide show
  1. package/dist/ai/server.d.cts +9 -0
  2. package/dist/ai/server.d.mts +9 -0
  3. package/dist/ai/skills.d.cts +13 -0
  4. package/dist/ai/skills.d.mts +13 -0
  5. package/dist/api/browser.d.cts +7 -0
  6. package/dist/api/browser.d.mts +7 -0
  7. package/dist/api/config.d.cts +6 -0
  8. package/dist/api/config.d.mts +6 -0
  9. package/dist/api/dictionary.d.cts +29 -0
  10. package/dist/api/dictionary.d.mts +29 -0
  11. package/dist/api/noopCss.d.cts +29 -0
  12. package/dist/api/noopCss.d.mts +29 -0
  13. package/dist/api/server.d.cts +7 -0
  14. package/dist/api/server.d.mts +7 -0
  15. package/dist/cli/index.d.cts +1 -0
  16. package/dist/cli/index.d.mts +1 -0
  17. package/dist/compile/runtime.d.cts +5 -0
  18. package/dist/compile/runtime.d.mts +5 -0
  19. package/dist/cx/index.d.cts +15 -0
  20. package/dist/cx/index.d.mts +15 -0
  21. package/dist/detect-fw/index.d.cts +47 -0
  22. package/dist/detect-fw/index.d.mts +47 -0
  23. package/dist/dev/client.d.cts +10 -0
  24. package/dist/dev/client.d.mts +10 -0
  25. package/dist/dev/plugin/browser.d.cts +7 -0
  26. package/dist/dev/plugin/browser.d.mts +7 -0
  27. package/dist/dev/plugin/server.d.cts +8 -0
  28. package/dist/dev/plugin/server.d.mts +8 -0
  29. package/dist/dev/runtime.d.cts +1 -0
  30. package/dist/dev/runtime.d.mts +1 -0
  31. package/dist/dev/server.d.cts +16 -0
  32. package/dist/dev/server.d.mts +16 -0
  33. package/dist/devtools-app/index.mjs +192 -192
  34. package/dist/eslint-plugin/index.d.cts +1472 -0
  35. package/dist/eslint-plugin/index.d.mts +1473 -0
  36. package/dist/fontsource/directory.d.cts +19 -0
  37. package/dist/fontsource/directory.d.mts +19 -0
  38. package/dist/fontsource/server.d.cts +7 -0
  39. package/dist/fontsource/server.d.mts +7 -0
  40. package/dist/fontsource/types.d.cts +37 -0
  41. package/dist/fontsource/types.d.mts +37 -0
  42. package/dist/index.d.cts +6 -0
  43. package/dist/index.d.mts +6 -0
  44. package/dist/merge/index.d.cts +18 -0
  45. package/dist/merge/index.d.mts +18 -0
  46. package/dist/native/browser.d.cts +7 -0
  47. package/dist/native/browser.d.mts +7 -0
  48. package/dist/native/server.d.cts +9 -0
  49. package/dist/native/server.d.mts +9 -0
  50. package/dist/parser/classname/server.d.cts +7 -0
  51. package/dist/parser/classname/server.d.mts +7 -0
  52. package/dist/parser/jsx/browser.d.cts +7 -0
  53. package/dist/parser/jsx/browser.d.mts +7 -0
  54. package/dist/parser/jsx/native.d.cts +7 -0
  55. package/dist/parser/jsx/native.d.mts +7 -0
  56. package/dist/parser/jsx/runtime.d.cts +2 -0
  57. package/dist/parser/jsx/runtime.d.mts +2 -0
  58. package/dist/parser/jsx/server.d.cts +9 -0
  59. package/dist/parser/jsx/server.d.mts +9 -0
  60. package/dist/postcss/index.d.cts +12 -0
  61. package/dist/postcss/index.d.mts +12 -0
  62. package/dist/prop/at/runtime-only.d.cts +8 -0
  63. package/dist/prop/at/runtime-only.d.mts +8 -0
  64. package/dist/prop/at/server.d.cts +13 -0
  65. package/dist/prop/at/server.d.mts +13 -0
  66. package/dist/prop/bosswind/browser.d.cts +8 -0
  67. package/dist/prop/bosswind/browser.d.mts +8 -0
  68. package/dist/prop/bosswind/runtime-only.d.cts +8 -0
  69. package/dist/prop/bosswind/runtime-only.d.mts +8 -0
  70. package/dist/prop/bosswind/server.d.cts +9 -0
  71. package/dist/prop/bosswind/server.d.mts +9 -0
  72. package/dist/prop/bosswind/shared.d.cts +11 -0
  73. package/dist/prop/bosswind/shared.d.mts +11 -0
  74. package/dist/prop/child/runtime-only.d.cts +8 -0
  75. package/dist/prop/child/runtime-only.d.mts +8 -0
  76. package/dist/prop/child/server.d.cts +9 -0
  77. package/dist/prop/child/server.d.mts +9 -0
  78. package/dist/prop/css/runtime-only.d.cts +5 -0
  79. package/dist/prop/css/runtime-only.d.mts +5 -0
  80. package/dist/prop/css/server.d.cts +9 -0
  81. package/dist/prop/css/server.d.mts +9 -0
  82. package/dist/prop/pseudo/runtime-only.d.cts +8 -0
  83. package/dist/prop/pseudo/runtime-only.d.mts +8 -0
  84. package/dist/prop/pseudo/server.d.cts +9 -0
  85. package/dist/prop/pseudo/server.d.mts +9 -0
  86. package/dist/reset/server.d.cts +7 -0
  87. package/dist/reset/server.d.mts +7 -0
  88. package/dist/runtime/index.d.cts +20 -0
  89. package/dist/runtime/index.d.mts +20 -0
  90. package/dist/runtime/preact.d.cts +2 -0
  91. package/dist/runtime/preact.d.mts +2 -0
  92. package/dist/runtime/qwik.d.cts +8 -0
  93. package/dist/runtime/qwik.d.mts +8 -0
  94. package/dist/runtime/react.d.cts +2 -0
  95. package/dist/runtime/react.d.mts +2 -0
  96. package/dist/runtime/solid.d.cts +6 -0
  97. package/dist/runtime/solid.d.mts +6 -0
  98. package/dist/runtime/stencil.d.cts +7 -0
  99. package/dist/runtime/stencil.d.mts +7 -0
  100. package/dist/runtime/style.d.cts +4 -0
  101. package/dist/runtime/style.d.mts +4 -0
  102. package/dist/shared/types.d.cts +96 -0
  103. package/dist/shared/types.d.mts +96 -0
  104. package/dist/strategy/classic/runtime-only.d.cts +7 -0
  105. package/dist/strategy/classic/runtime-only.d.mts +7 -0
  106. package/dist/strategy/classname-first/browser.d.cts +7 -0
  107. package/dist/strategy/classname-first/browser.d.mts +7 -0
  108. package/dist/strategy/classname-first/runtime-only.d.cts +7 -0
  109. package/dist/strategy/classname-first/runtime-only.d.mts +7 -0
  110. package/dist/strategy/classname-first/server.d.cts +9 -0
  111. package/dist/strategy/classname-first/server.d.mts +9 -0
  112. package/dist/strategy/classname-only/server.d.cts +8 -0
  113. package/dist/strategy/classname-only/server.d.mts +8 -0
  114. package/dist/strategy/inline-first/browser.d.cts +7 -0
  115. package/dist/strategy/inline-first/browser.d.mts +7 -0
  116. package/dist/strategy/inline-first/runtime-only.d.cts +7 -0
  117. package/dist/strategy/inline-first/runtime-only.d.mts +7 -0
  118. package/dist/strategy/inline-first/server.d.cts +9 -0
  119. package/dist/strategy/inline-first/server.d.mts +9 -0
  120. package/dist/strategy/runtime/runtime-only.d.cts +9 -0
  121. package/dist/strategy/runtime/runtime-only.d.mts +9 -0
  122. package/dist/strategy/runtime/server.d.cts +9 -0
  123. package/dist/strategy/runtime/server.d.mts +9 -0
  124. package/dist/strategy/runtime-only/css.d.cts +43 -0
  125. package/dist/strategy/runtime-only/css.d.mts +43 -0
  126. package/dist/tasks/build.d.cts +23 -0
  127. package/dist/tasks/build.d.mts +23 -0
  128. package/dist/tasks/compile.d.cts +31 -0
  129. package/dist/tasks/compile.d.mts +31 -0
  130. package/dist/tasks/postcss.cjs +8 -13
  131. package/dist/tasks/postcss.d.cts +10 -0
  132. package/dist/tasks/postcss.d.mts +10 -0
  133. package/dist/tasks/postcss.mjs +8 -13
  134. package/dist/tasks/session.d.cts +12 -0
  135. package/dist/tasks/session.d.mts +12 -0
  136. package/dist/tasks/watch.d.cts +17 -0
  137. package/dist/tasks/watch.d.mts +17 -0
  138. package/dist/types/Plugin.d.cts +251 -0
  139. package/dist/types/Plugin.d.mts +251 -0
  140. package/dist/use/token/browser.d.cts +16 -0
  141. package/dist/use/token/browser.d.mts +16 -0
  142. package/dist/use/token/propMap.d.cts +8 -0
  143. package/dist/use/token/propMap.d.mts +8 -0
  144. package/dist/use/token/runtime-only.d.cts +22 -0
  145. package/dist/use/token/runtime-only.d.mts +22 -0
  146. package/dist/use/token/server.d.cts +19 -0
  147. package/dist/use/token/server.d.mts +19 -0
  148. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { Plugin } from "../../types/Plugin.mjs";
2
+
3
+ //#region src/use/token/browser.d.ts
4
+ type TokenFn = (() => string) & {
5
+ IS_TOKEN_FN?: boolean;
6
+ };
7
+ type TokenProxy = TokenFn & {
8
+ [key: string]: TokenProxy;
9
+ };
10
+ declare const tokenVars: (input?: Record<string, unknown>) => Record<string, string | number>;
11
+ declare const onInit: Plugin<'onInit'>;
12
+ declare const create: (currentKey?: string) => TokenProxy;
13
+ declare const tokenPaths: Set<unknown>;
14
+ declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
15
+ //#endregion
16
+ export { TokenProxy, create, onBrowserObjectStart, onInit, tokenPaths, tokenVars };
@@ -0,0 +1,8 @@
1
+ //#region src/use/token/propMap.d.ts
2
+ declare const propMap: Map<string, string[] | Set<string>>;
3
+ declare const getTokenGroupsForProp: (prop: string) => string[];
4
+ declare const getTokenGroupForProp: (prop: string) => string;
5
+ declare const setTokenPropGroups: (groups: Record<string, string[]>) => void;
6
+ declare const getTokenPropGroups: () => Record<string, string[]>;
7
+ //#endregion
8
+ export { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, propMap, setTokenPropGroups };
@@ -0,0 +1,8 @@
1
+ //#region src/use/token/propMap.d.ts
2
+ declare const propMap: Map<string, string[] | Set<string>>;
3
+ declare const getTokenGroupsForProp: (prop: string) => string[];
4
+ declare const getTokenGroupForProp: (prop: string) => string;
5
+ declare const setTokenPropGroups: (groups: Record<string, string[]>) => void;
6
+ declare const getTokenPropGroups: () => Record<string, string[]>;
7
+ //#endregion
8
+ export { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, propMap, setTokenPropGroups };
@@ -0,0 +1,22 @@
1
+ import { BossBrowserApi, Plugin } from "../../types/Plugin.cjs";
2
+
3
+ //#region src/use/token/runtime-only.d.ts
4
+ type TokenFn = (() => string) & {
5
+ IS_TOKEN_FN?: boolean;
6
+ };
7
+ type TokenProxy = TokenFn & {
8
+ [key: string]: TokenProxy;
9
+ };
10
+ declare const tokenVars: (input?: Record<string, unknown>) => Record<string, string | number>;
11
+ declare const onInit: Plugin<'onInit'>;
12
+ declare const create: (currentKey?: string) => TokenProxy;
13
+ declare const tokenPaths: Set<string>;
14
+ declare const resolveRuntimeToken: (api: BossBrowserApi, prop: string, value: unknown) => {
15
+ value: string | Record<string, any>;
16
+ selectorValue: string | Record<string, any>;
17
+ tokenKey: string;
18
+ tokenPath: string;
19
+ } | null;
20
+ declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
21
+ //#endregion
22
+ export { TokenProxy, create, onBrowserObjectStart, onInit, resolveRuntimeToken, tokenPaths, tokenVars };
@@ -0,0 +1,22 @@
1
+ import { BossBrowserApi, Plugin } from "../../types/Plugin.mjs";
2
+
3
+ //#region src/use/token/runtime-only.d.ts
4
+ type TokenFn = (() => string) & {
5
+ IS_TOKEN_FN?: boolean;
6
+ };
7
+ type TokenProxy = TokenFn & {
8
+ [key: string]: TokenProxy;
9
+ };
10
+ declare const tokenVars: (input?: Record<string, unknown>) => Record<string, string | number>;
11
+ declare const onInit: Plugin<'onInit'>;
12
+ declare const create: (currentKey?: string) => TokenProxy;
13
+ declare const tokenPaths: Set<string>;
14
+ declare const resolveRuntimeToken: (api: BossBrowserApi, prop: string, value: unknown) => {
15
+ value: string | Record<string, any>;
16
+ selectorValue: string | Record<string, any>;
17
+ tokenKey: string;
18
+ tokenPath: string;
19
+ } | null;
20
+ declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
21
+ //#endregion
22
+ export { TokenProxy, create, onBrowserObjectStart, onInit, resolveRuntimeToken, tokenPaths, tokenVars };
@@ -0,0 +1,19 @@
1
+ import { Plugin } from "../../types/Plugin.cjs";
2
+ import { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, propMap, setTokenPropGroups } from "./propMap.cjs";
3
+
4
+ //#region src/use/token/server.d.ts
5
+ declare const name = "token";
6
+ type TokenGroup = Record<string, unknown>;
7
+ type TokenValueMap = Map<string, TokenGroup> & {
8
+ asObject?: () => Record<string, TokenGroup>;
9
+ };
10
+ type TokenInput = Record<string, unknown>;
11
+ type TokenInputResolver = (values: TokenValueMap) => TokenInput;
12
+ declare const getTokens: () => TokenInput;
13
+ declare const set: (input: TokenInput | TokenInputResolver) => void;
14
+ declare const onBoot: Plugin<'onBoot'>;
15
+ declare const onReady: Plugin<'onReady'>;
16
+ declare const onParse: Plugin<'onParse'>;
17
+ declare const onPropTree: Plugin<'onPropTree'>;
18
+ //#endregion
19
+ export { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, getTokens, name, onBoot, onParse, onPropTree, onReady, propMap, set, setTokenPropGroups };
@@ -0,0 +1,19 @@
1
+ import { Plugin } from "../../types/Plugin.mjs";
2
+ import { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, propMap, setTokenPropGroups } from "./propMap.mjs";
3
+
4
+ //#region src/use/token/server.d.ts
5
+ declare const name = "token";
6
+ type TokenGroup = Record<string, unknown>;
7
+ type TokenValueMap = Map<string, TokenGroup> & {
8
+ asObject?: () => Record<string, TokenGroup>;
9
+ };
10
+ type TokenInput = Record<string, unknown>;
11
+ type TokenInputResolver = (values: TokenValueMap) => TokenInput;
12
+ declare const getTokens: () => TokenInput;
13
+ declare const set: (input: TokenInput | TokenInputResolver) => void;
14
+ declare const onBoot: Plugin<'onBoot'>;
15
+ declare const onReady: Plugin<'onReady'>;
16
+ declare const onParse: Plugin<'onParse'>;
17
+ declare const onPropTree: Plugin<'onPropTree'>;
18
+ //#endregion
19
+ export { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, getTokens, name, onBoot, onParse, onPropTree, onReady, propMap, set, setTokenPropGroups };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boss-css",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "Polymorphic, usage-driven CSS-in-JS.",
5
5
  "bin": {
6
6
  "boss": "./dist/cli/index.cjs",