@pantoken/css 0.2.6 → 0.2.7

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/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { i as buildCssFile, n as leanCss, r as toCss, t as css } from "./src-7owOg5z_.mjs";
1
+ import { i as buildCssFile, n as leanCss, r as toCss, t as css } from "./src-DGq2ZbhV.mjs";
2
2
  export { buildCssFile, css, css as default, leanCss, toCss };
package/dist/inject.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as css } from "./src-7owOg5z_.mjs";
1
+ import { t as css } from "./src-DGq2ZbhV.mjs";
2
2
  //#region src/inject.ts
3
3
  /**
4
4
  * `@pantoken/css/inject` — a DOM side-effect entry. Importing it injects the pantoken stylesheet
@@ -1,6 +1,19 @@
1
- import { checkPlugins, definePlugin } from "@pantoken/plugin-kit";
2
1
  import { tokens } from "@pantoken/tokens";
2
+ import { checkPlugins, definePlugin } from "@pantoken/plugin-kit";
3
3
  import { elevationDeclarations, focusOutlineDeclarations } from "@pantoken/utils";
4
+ //#region src/foundation.ts
5
+ /**
6
+ * The elevation (`--instui-elevation-*`) and focus-outline (`--instui-focus-outline-*`) composite
7
+ * custom properties shared by the ready-made token sheets and docs-only themed token sheet.
8
+ */
9
+ const foundationPlugin = definePlugin({
10
+ name: "pantoken-foundation",
11
+ css: () => ({
12
+ marker: "pantoken foundation — elevation + focus-outline custom properties",
13
+ declarations: [...elevationDeclarations(), ...focusOutlineDeclarations()]
14
+ })
15
+ });
16
+ //#endregion
4
17
  //#region src/emit.ts
5
18
  function renderSection(scope, { layer, pairs }) {
6
19
  const declarations = [
@@ -176,19 +189,6 @@ function appendContribution(c, prepends, appends) {
176
189
  * @beta
177
190
  */
178
191
  /**
179
- * The elevation (`--instui-elevation-*`) and focus-outline (`--instui-focus-outline-*`) composite custom
180
- * properties. Their pure builders live in `@pantoken/utils`, so this package (which sits below
181
- * `@pantoken/components`) owns the emission without an upward dependency. The values are contextual
182
- * (`var(...)`), so they land as `:root` declarations in both the typed and lean builds.
183
- */
184
- const foundationPlugin = definePlugin({
185
- name: "pantoken-foundation",
186
- css: () => ({
187
- marker: "pantoken foundation — elevation + focus-outline custom properties",
188
- declarations: [...elevationDeclarations(), ...focusOutlineDeclarations()]
189
- })
190
- });
191
- /**
192
192
  * The ready-made `rebrand` stylesheet string (typed: concrete tokens as `@property` registrations).
193
193
  *
194
194
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantoken/css",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Emit Instructure design tokens as @property-typed CSS with light-dark() and icon data-URIs, from the pantoken IR.",
5
5
  "homepage": "https://pantoken.iywahl.com",
6
6
  "bugs": "https://github.com/thedannywahl/pantoken/issues",