@voxel51/voodo 1.3.0 → 2.0.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.
Files changed (84) hide show
  1. package/dist/components/Button/Button.d.ts.map +1 -1
  2. package/dist/components/Datepicker/DatepickerInput.d.ts.map +1 -1
  3. package/dist/components/Dropzone/Dropzone.d.ts +34 -0
  4. package/dist/components/Dropzone/Dropzone.d.ts.map +1 -0
  5. package/dist/components/Dropzone/index.d.ts +2 -0
  6. package/dist/components/Dropzone/index.d.ts.map +1 -0
  7. package/dist/components/FormField/FormField.d.ts +2 -0
  8. package/dist/components/FormField/FormField.d.ts.map +1 -1
  9. package/dist/components/IconAction/IconAction.d.ts +20 -0
  10. package/dist/components/IconAction/IconAction.d.ts.map +1 -0
  11. package/dist/components/IconAction/index.d.ts +2 -0
  12. package/dist/components/IconAction/index.d.ts.map +1 -0
  13. package/dist/components/Icons/Spinner.d.ts.map +1 -1
  14. package/dist/components/Icons/icons.d.ts +9 -1
  15. package/dist/components/Icons/icons.d.ts.map +1 -1
  16. package/dist/components/Input/Input.d.ts.map +1 -1
  17. package/dist/components/Menu/MenuIconTextItem.d.ts.map +1 -1
  18. package/dist/components/StepRail/StepRail.d.ts +36 -0
  19. package/dist/components/StepRail/StepRail.d.ts.map +1 -0
  20. package/dist/components/StepRail/index.d.ts +2 -0
  21. package/dist/components/StepRail/index.d.ts.map +1 -0
  22. package/dist/components/TextAction/TextAction.d.ts +22 -0
  23. package/dist/components/TextAction/TextAction.d.ts.map +1 -0
  24. package/dist/components/TextAction/index.d.ts +2 -0
  25. package/dist/components/TextAction/index.d.ts.map +1 -0
  26. package/dist/components/TextArea/TextArea.d.ts.map +1 -1
  27. package/dist/components/Toast/Toast.d.ts +7 -1
  28. package/dist/components/Toast/Toast.d.ts.map +1 -1
  29. package/dist/components/ToastContainer/ToastContainer.d.ts +8 -0
  30. package/dist/components/ToastContainer/ToastContainer.d.ts.map +1 -1
  31. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  32. package/dist/components/UploadList/UploadList.d.ts +36 -0
  33. package/dist/components/UploadList/UploadList.d.ts.map +1 -0
  34. package/dist/components/UploadList/index.d.ts +2 -0
  35. package/dist/components/UploadList/index.d.ts.map +1 -0
  36. package/dist/components/index.d.ts +5 -0
  37. package/dist/components/index.d.ts.map +1 -1
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +4699 -4090
  43. package/dist/index.js.map +1 -1
  44. package/dist/palette-C24I0BcT.js +655 -0
  45. package/dist/palette-C24I0BcT.js.map +1 -0
  46. package/dist/palette-yXRdZevG.cjs +2 -0
  47. package/dist/palette-yXRdZevG.cjs.map +1 -0
  48. package/dist/styles/color-classes.d.ts +1 -1
  49. package/dist/styles/color-classes.d.ts.map +1 -1
  50. package/dist/theme/cssVar.d.ts +128 -105
  51. package/dist/theme/cssVar.d.ts.map +1 -1
  52. package/dist/theme/mui.d.ts +15 -15
  53. package/dist/theme/mui.d.ts.map +1 -1
  54. package/dist/theme/tokens/colors.d.ts +297 -227
  55. package/dist/theme/tokens/colors.d.ts.map +1 -1
  56. package/dist/theme/tokens/gradients.d.ts +6 -0
  57. package/dist/theme/tokens/gradients.d.ts.map +1 -0
  58. package/dist/theme/tokens/index.d.ts +288 -220
  59. package/dist/theme/tokens/index.d.ts.map +1 -1
  60. package/dist/theme/tokens/palette.d.ts +64 -5
  61. package/dist/theme/tokens/palette.d.ts.map +1 -1
  62. package/dist/theme/tokens/spacing.d.ts +48 -0
  63. package/dist/theme/tokens/spacing.d.ts.map +1 -1
  64. package/dist/theme/tokens/typography.d.ts +64 -5
  65. package/dist/theme/tokens/typography.d.ts.map +1 -1
  66. package/dist/theme/useColorPalette.d.ts +16 -10
  67. package/dist/theme/useColorPalette.d.ts.map +1 -1
  68. package/dist/tokens.cjs +1 -1
  69. package/dist/tokens.cjs.map +1 -1
  70. package/dist/tokens.js +23 -38
  71. package/dist/tokens.js.map +1 -1
  72. package/dist/types/color.d.ts +272 -237
  73. package/dist/types/color.d.ts.map +1 -1
  74. package/dist/types/variant.d.ts +2 -0
  75. package/dist/types/variant.d.ts.map +1 -1
  76. package/dist/util/classes.d.ts.map +1 -1
  77. package/dist/util/formatBytes.d.ts +14 -0
  78. package/dist/util/formatBytes.d.ts.map +1 -0
  79. package/dist/voodo.css +1 -1
  80. package/package.json +9 -2
  81. package/dist/palette-B91vdbSd.js +0 -479
  82. package/dist/palette-B91vdbSd.js.map +0 -1
  83. package/dist/palette-dgN5vIc-.cjs +0 -2
  84. package/dist/palette-dgN5vIc-.cjs.map +0 -1
@@ -1,9 +1,68 @@
1
- export declare const paletteSlots: {
2
- readonly dark: string[];
3
- readonly light: string[];
1
+ /**
2
+ * The visualization palettes — the colors handed out when something needs a
3
+ * series of distinguishable colors.
4
+ *
5
+ * Figma splits these into two groups, and the distinction matters:
6
+ *
7
+ * - `viz-overlay` is **mode-independent** (identical in both themes). These
8
+ * are marks drawn *on media* — looker's detection boxes, masks, keypoints.
9
+ * The image behind them does not get lighter when the UI does, so neither
10
+ * may they, or a label that read well over a dark photo stops reading.
11
+ * - `viz-chart` **varies by mode**. These are marks drawn *on the UI* —
12
+ * histograms, plots, legends — and must hold contrast against a surface
13
+ * that does change.
14
+ *
15
+ * Pick by what the color is drawn onto, not by which list is nearer to hand.
16
+ *
17
+ * This module is pure data with no React or CSS dependency, so it is safe to
18
+ * import from workers and other non-UI contexts via `@voxel51/voodo/tokens`.
19
+ */
20
+ /**
21
+ * Pool order. **Code-side, not a Figma token.**
22
+ *
23
+ * Figma's `palette/1-brand … 18-mint` numbered the slots, so the order was the
24
+ * design's to state and code just read the numbers off. `viz-chart` and
25
+ * `viz-overlay` are keyed by hue with no ordering, so the sequence has to live
26
+ * here until Figma expresses it again.
27
+ *
28
+ * Ordered for separation between *adjacent* slots, since a pool is consumed by
29
+ * index and neighbours are what land side by side. `neutral` sorts last: it
30
+ * reads as "no category" and should be the last color a dataset reaches for.
31
+ * Brand orange is deliberately absent — Figma dropped it from both viz groups,
32
+ * and a data series colored like the primary action is a real ambiguity.
33
+ */
34
+ declare const POOL_ORDER: readonly ["blue", "green", "purple", "pink", "yellow", "teal", "red", "lime", "magenta", "neutral"];
35
+ export type VizHue = (typeof POOL_ORDER)[number];
36
+ /**
37
+ * Hue names in pool order. The slot list, for anything that labels slots.
38
+ *
39
+ * @deprecated This used to be `{ dark, light }` lists of Figma's numbered
40
+ * `palette/*` slot keys. The viz groups are keyed by hue and carry no mode
41
+ * split, so it is now a single flat list; callers indexing `.dark` / `.light`
42
+ * need updating. Prefer {@link overlayPool} / {@link chartPool} with
43
+ * {@link VizHue}.
44
+ */
45
+ export declare const paletteSlots: readonly VizHue[];
46
+ /**
47
+ * Mode-independent overlay colors, in pool order. The right pool for anything
48
+ * drawn over media.
49
+ */
50
+ export declare const overlayPool: readonly string[];
51
+ /** Chart colors in pool order, per mode. */
52
+ export declare const chartPool: {
53
+ readonly dark: readonly string[];
54
+ readonly light: readonly string[];
4
55
  };
56
+ /**
57
+ * @deprecated Figma's `palette/*` group was replaced by `viz-chart` and
58
+ * `viz-overlay` in the 2026-09-05 token release. This alias keeps the old
59
+ * import working and resolves to the **chart** pool; if the colors are drawn
60
+ * over media, move to `overlayPool` instead — that is a behaviour change, not
61
+ * a rename, and it is the one this split exists to make visible.
62
+ */
5
63
  export declare const palettePool: {
6
- readonly dark: string[];
7
- readonly light: string[];
64
+ readonly dark: readonly string[];
65
+ readonly light: readonly string[];
8
66
  };
67
+ export {};
9
68
  //# sourceMappingURL=palette.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/palette.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,eAAO,MAAM,WAAW;;;CAGd,CAAC"}
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/palette.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,UAAU,qGAWN,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAOjD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,MAAM,EAAe,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,MAAM,EAExC,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;CAAY,CAAC"}
@@ -1,4 +1,52 @@
1
+ /**
2
+ * Spacing.
3
+ *
4
+ * Two tiers, because Figma's names are values and Tailwind's are too.
5
+ *
6
+ * `spacing` mirrors the Figma `spacing/*` scale verbatim — Figma re-keyed it
7
+ * from steps to raw pixels, so `spacing/16` means 16px and not the 64px that
8
+ * the identically-named step used to mean.
9
+ *
10
+ * `spacingRole` is the tier Figma's Primitives collection does not have yet,
11
+ * and is what consumers bind to. Only these reach CSS: see the note below.
12
+ */
13
+ /** The Figma `spacing/*` scale. Keys are pixel values, not steps. */
1
14
  export declare const spacing: {
15
+ readonly 2: "2px";
16
+ readonly 4: "4px";
17
+ readonly 6: "6px";
18
+ readonly 8: "8px";
19
+ readonly 10: "10px";
20
+ readonly 12: "12px";
21
+ readonly 16: "16px";
22
+ readonly 20: "20px";
23
+ readonly 24: "24px";
24
+ readonly 32: "32px";
25
+ readonly 40: "40px";
26
+ readonly 48: "48px";
27
+ readonly 64: "64px";
28
+ };
29
+ /**
30
+ * Named spacing roles — the public surface.
31
+ *
32
+ * **These, and only these, are emitted as `--spacing-*` custom properties.**
33
+ * Tailwind v4 derives every numeric spacing utility from a single multiplier
34
+ * (`--spacing: 0.25rem`), so `py-2` is `calc(var(--spacing) * 2)` = 8px — but
35
+ * only while `--spacing-2` is undefined. Emitting the numeric scale above
36
+ * would define it, silently redefining `py-2` as 2px and doing the same to 71
37
+ * other numeric utilities, with no error from tsc, eslint or the suite.
38
+ *
39
+ * Values are unchanged from the previous t-shirt scale, so this tier is a
40
+ * rename of nothing.
41
+ *
42
+ * Kept in `rem`, not the `px` of the Figma scale above. These are the values
43
+ * that reach the browser, and `rem` scales with the user's root font size --
44
+ * emitting `4px` where `0.25rem` used to be would quietly opt every spacing
45
+ * utility out of browser text-size settings. Converting the scale to `rem` is
46
+ * a real decision about whether Figma's pixels are pixels or ratios, and it
47
+ * belongs with the spacing audit, not here.
48
+ */
49
+ export declare const spacingRole: {
2
50
  readonly xs: "0.25rem";
3
51
  readonly sm: "0.5rem";
4
52
  readonly md: "1rem";
@@ -1 +1 @@
1
- {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/spacing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;CAMV,CAAC"}
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/spacing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,qEAAqE;AACrE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;CAcV,CAAC;AAEX;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
@@ -1,8 +1,58 @@
1
+ /**
2
+ * Typography.
3
+ *
4
+ * Same two-tier split as spacing, and for the same reason: Figma re-keyed
5
+ * `font-size` and `line-height` from t-shirt names to pixel values, and the
6
+ * role names Tailwind emits (`text-sm`, `text-lg`) have to keep meaning what
7
+ * they mean today.
8
+ */
9
+ /** The Figma `font-size/*` scale. Keys are pixel values. */
10
+ export declare const fontSize: {
11
+ readonly 9: "9px";
12
+ readonly 11: "11px";
13
+ readonly 12: "12px";
14
+ readonly 13: "13px";
15
+ readonly 14: "14px";
16
+ readonly 15: "15px";
17
+ readonly 16: "16px";
18
+ readonly 18: "18px";
19
+ readonly 23: "23px";
20
+ };
21
+ /** The Figma `line-height/*` scale. Keys are pixel values. */
22
+ export declare const lineHeight: {
23
+ readonly 12: "12px";
24
+ readonly 16: "16px";
25
+ readonly 20: "20px";
26
+ readonly 24: "24px";
27
+ readonly 28: "28px";
28
+ readonly 36: "36px";
29
+ readonly 44: "44px";
30
+ readonly 52: "52px";
31
+ };
1
32
  export declare const typography: {
2
33
  readonly fontFamily: {
3
34
  readonly sans: readonly ["Palanquin", "sans-serif"];
4
- readonly mono: readonly ["monospace"];
35
+ readonly mono: readonly ["Roboto Mono", "monospace"];
5
36
  };
37
+ /**
38
+ * Named size roles — the public surface, and the only tier emitted as
39
+ * `--text-*`.
40
+ *
41
+ * Emitting the numeric scale instead would leave `--text-sm` and `--text-lg`
42
+ * undefined, and Tailwind would quietly fall back to its own built-in scale
43
+ * across 41 call sites.
44
+ *
45
+ * Values are deliberately unchanged from the previous scale, so this tier is
46
+ * a rename of nothing.
47
+ *
48
+ * Figma added `font-size/14` and `/16` and nothing consumes them yet. They
49
+ * are almost certainly the new body and heading sizes, but re-pointing `md`
50
+ * and `lg` at them in isolation makes type look worse, not better: the
51
+ * line-heights these sizes are paired with are raw Tailwind numbers
52
+ * (`text-md/5`), not tokens, so the size moves and the leading does not.
53
+ * Size and leading have to be tokenised together, against Figma's 12 text
54
+ * styles. Until then this tier holds still.
55
+ */
6
56
  readonly fontSize: {
7
57
  readonly xxs: "9px";
8
58
  readonly xs: "11px";
@@ -12,11 +62,20 @@ export declare const typography: {
12
62
  readonly xl: "18px";
13
63
  readonly xxl: "23px";
14
64
  };
65
+ /**
66
+ * Figma's `font-weight/*` scale, verbatim.
67
+ *
68
+ * The previous map (light 300, normal 400, semibold 500, bold 600) matched
69
+ * no Figma variable — `semibold` was a step light of Figma's, and `light`
70
+ * had no counterpart at all. Nothing reads these: they are not emitted as
71
+ * custom properties and the `font-*` utilities in use come from Tailwind's
72
+ * own scale, so this corrects the data without moving any pixels.
73
+ */
15
74
  readonly fontWeight: {
16
- readonly light: 300;
17
- readonly normal: 400;
18
- readonly semibold: 500;
19
- readonly bold: 600;
75
+ readonly regular: 400;
76
+ readonly medium: 500;
77
+ readonly semibold: 600;
78
+ readonly bold: 700;
20
79
  };
21
80
  };
22
81
  //# sourceMappingURL=typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/typography.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAoBb,CAAC"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,4DAA4D;AAC5D,eAAO,MAAM,QAAQ;;;;;;;;;;CAUX,CAAC;AAEX,8DAA8D;AAC9D,eAAO,MAAM,UAAU;;;;;;;;;CASb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;IASrB;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;IAWH;;;;;;;;OAQG;;;;;;;CAOK,CAAC"}
@@ -1,18 +1,24 @@
1
- import { colors } from './tokens/colors';
1
+ import { VizHue } from './tokens/palette';
2
2
  /** Resolved color mode. Mirrors the `.dark` class contract in `tailwind.css`. */
3
3
  export type ColorMode = "dark" | "light";
4
4
  /**
5
- * The palette's own token shape — every numbered slot and named alias the
6
- * tokens define. Derived rather than enumerated, so a palette of N colors
7
- * types correctly without touching this file.
5
+ * The chart group's token shape. Keyed by `VizHue` rather than by
6
+ * `typeof colors.dark…` so both modes satisfy it — the per-mode types are
7
+ * disjoint unions of hex literals, and only the key set is common to them.
8
8
  */
9
- type PaletteColors = typeof colors.dark.content.palette;
10
- export interface ColorPalette extends PaletteColors {
9
+ type ChartColors = Record<VizHue, string>;
10
+ export interface ColorPalette extends ChartColors {
11
11
  /**
12
- * The ordered slots as an array — the shape wanted by anything that assigns
13
- * colors by index (label coloring, chart series, legends).
12
+ * Chart hues in pool order — for anything that assigns colors by index and
13
+ * draws onto the UI (chart series, legends, histograms).
14
14
  */
15
15
  pool: readonly string[];
16
+ /**
17
+ * Overlay hues in pool order — for marks drawn *over media* (looker's boxes,
18
+ * masks, keypoints). Identical in both modes on purpose: the image behind
19
+ * them does not change with the theme.
20
+ */
21
+ overlay: readonly string[];
16
22
  }
17
23
  /**
18
24
  * The currently active color mode, tracked by observing the `.dark` class on
@@ -33,7 +39,7 @@ export declare const useColorMode: () => ColorMode;
33
39
  /**
34
40
  * Resolved palette colors as literal hex strings for the active color mode.
35
41
  *
36
- * Prefer `cssVar.color.palette.*` for anything that styles the DOM — CSS
42
+ * Prefer `cssVar.color["viz-chart"].*` for anything that styles the DOM — CSS
37
43
  * variables react to the theme without re-rendering React. Reach for this hook
38
44
  * only where a literal value is required and a `var(--…)` cannot be used:
39
45
  * canvas and WebGL (the looker overlays), charting libraries that parse colors
@@ -42,7 +48,7 @@ export declare const useColorMode: () => ColorMode;
42
48
  * @example
43
49
  * ```tsx
44
50
  * const palette = useColorPalette();
45
- * ctx.strokeStyle = palette.pool[index % palette.pool.length];
51
+ * ctx.strokeStyle = palette.overlay[index % palette.overlay.length];
46
52
  * ctx.fillStyle = palette.teal;
47
53
  * ```
48
54
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useColorPalette.d.ts","sourceRoot":"","sources":["../../src/theme/useColorPalette.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,iFAAiF;AACjF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC;;;;GAIG;AACH,KAAK,aAAa,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;AAExD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD;;;OAGG;IACH,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CACzB;AAwBD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,QAAO,SACiC,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,QAAO,YAOlC,CAAC"}
1
+ {"version":3,"file":"useColorPalette.d.ts","sourceRoot":"","sources":["../../src/theme/useColorPalette.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEvE,iFAAiF;AACjF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC;;;;GAIG;AACH,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1C,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C;;;OAGG;IACH,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B;AAwBD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,QAAO,SACiC,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,QAAO,YAWlC,CAAC"}
package/dist/tokens.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./palette-dgN5vIc-.cjs"),e={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem"},o={fontFamily:{sans:["Palanquin","sans-serif"],mono:["monospace"]},fontSize:{xxs:"9px",xs:"11px",sm:"12px",md:"13px",lg:"15px",xl:"18px",xxl:"23px"},fontWeight:{light:300,normal:400,semibold:500,bold:600}},s={colors:t.colors,spacing:e,transitions:t.transitions,typography:o};exports.colors=t.colors;exports.palettePool=t.palettePool;exports.paletteSlots=t.paletteSlots;exports.primitives=t.primitives;exports.transitions=t.transitions;exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./palette-yXRdZevG.cjs"),i={action:{expressive:`linear-gradient(105deg, ${e.primitives.expressive["orange-default"]}, ${e.primitives.expressive["pink-default"]} 55%, ${e.primitives.expressive["purple-default"]})`}},t={colors:e.colors,gradients:i,spacing:e.spacing,spacingRole:e.spacingRole,transitions:e.transitions,typography:e.typography};exports.chartPool=e.chartPool;exports.colors=e.colors;exports.fontSize=e.fontSize;exports.lineHeight=e.lineHeight;exports.overlayPool=e.overlayPool;exports.palettePool=e.palettePool;exports.paletteSlots=e.paletteSlots;exports.primitives=e.primitives;exports.spacingRole=e.spacingRole;exports.transitions=e.transitions;exports.default=t;
2
2
  //# sourceMappingURL=tokens.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.cjs","sources":["../src/theme/tokens/spacing.ts","../src/theme/tokens/typography.ts","../src/theme/tokens/index.ts"],"sourcesContent":["export const spacing = {\n xs: \"0.25rem\",\n sm: \"0.5rem\",\n md: \"1rem\",\n lg: \"1.5rem\",\n xl: \"2rem\",\n} as const;\n","export const typography = {\n fontFamily: {\n sans: [\"Palanquin\", \"sans-serif\"],\n mono: [\"monospace\"],\n },\n fontSize: {\n xxs: \"9px\",\n xs: \"11px\",\n sm: \"12px\",\n md: \"13px\",\n lg: \"15px\",\n xl: \"18px\",\n xxl: \"23px\",\n },\n fontWeight: {\n light: 300,\n normal: 400,\n semibold: 500,\n bold: 600,\n },\n} as const;\n","import { colors } from \"./colors\";\nimport { spacing } from \"./spacing\";\nimport { transitions } from \"./transitions\";\nimport { typography } from \"./typography\";\n\nexport { transitions };\n// Named explicitly: `export *` does not forward the default export, so without\n// this line `colors` and `primitives` are unreachable from the package root.\nexport { colors, primitives } from \"./colors\";\nexport { palettePool, paletteSlots } from \"./palette\";\n\nexport default {\n colors,\n spacing,\n transitions,\n typography,\n};\n"],"names":["spacing","typography","index","colors","transitions"],"mappings":"sJAAaA,EAAU,CACrB,GAAI,UACJ,GAAI,SACJ,GAAI,OACJ,GAAI,SACJ,GAAI,MACN,ECNaC,EAAa,CACxB,WAAY,CACV,KAAM,CAAC,YAAa,YAAY,EAChC,KAAM,CAAC,WAAW,CAAA,EAEpB,SAAU,CACR,IAAK,MACL,GAAI,OACJ,GAAI,OACJ,GAAI,OACJ,GAAI,OACJ,GAAI,OACJ,IAAK,MAAA,EAEP,WAAY,CACV,MAAO,IACP,OAAQ,IACR,SAAU,IACV,KAAM,GAAA,CAEV,ECTAC,EAAe,CAAA,OACbC,EAAAA,OACA,QAAAH,EAAA,YACAI,EAAAA,YACA,WAAAH,CACF"}
1
+ {"version":3,"file":"tokens.cjs","sources":["../src/theme/tokens/gradients.ts","../src/theme/tokens/index.ts"],"sourcesContent":["import { primitives } from \"./colors\";\n\n// The expressive gradient's stops are Figma's `expressive/*-default`\n// primitives (the same values the `interactive/expressive-default-*` tokens\n// resolve to), so the gradient re-tones with the brand ramp.\nexport const gradients = {\n action: {\n expressive: `linear-gradient(105deg, ${primitives.expressive[\"orange-default\"]}, ${primitives.expressive[\"pink-default\"]} 55%, ${primitives.expressive[\"purple-default\"]})`,\n },\n} as const;\n","import { colors } from \"./colors\";\nimport { gradients } from \"./gradients\";\nimport { spacing, spacingRole } from \"./spacing\";\nimport { transitions } from \"./transitions\";\nimport { typography } from \"./typography\";\n\nexport { transitions };\n// Named explicitly: `export *` does not forward the default export, so without\n// this line `colors` and `primitives` are unreachable from the package root.\nexport { colors, primitives } from \"./colors\";\nexport {\n chartPool,\n overlayPool,\n palettePool,\n paletteSlots,\n type VizHue,\n} from \"./palette\";\nexport { fontSize, lineHeight } from \"./typography\";\nexport { spacingRole } from \"./spacing\";\n\nexport default {\n colors,\n gradients,\n spacing,\n spacingRole,\n transitions,\n typography,\n};\n"],"names":["gradients","primitives","index","colors","spacing","spacingRole","transitions","typography"],"mappings":"sJAKaA,EAAY,CACvB,OAAQ,CACN,WAAY,2BAA2BC,EAAAA,WAAW,WAAW,gBAAgB,CAAC,KAAKA,EAAAA,WAAW,WAAW,cAAc,CAAC,SAASA,EAAAA,WAAW,WAAW,gBAAgB,CAAC,GAAA,CAE5K,ECWAC,EAAe,CAAA,OACbC,EAAAA,OACA,UAAAH,EAAA,QACAI,EAAAA,QAAA,YACAC,EAAAA,YAAA,YACAC,EAAAA,YAAA,WACAC,EAAAA,UACF"}
package/dist/tokens.js CHANGED
@@ -1,43 +1,28 @@
1
- import { t as s, c as o } from "./palette-B91vdbSd.js";
2
- import { p as l, a as n, b as r } from "./palette-B91vdbSd.js";
3
- const t = {
4
- xs: "0.25rem",
5
- sm: "0.5rem",
6
- md: "1rem",
7
- lg: "1.5rem",
8
- xl: "2rem"
9
- }, a = {
10
- fontFamily: {
11
- sans: ["Palanquin", "sans-serif"],
12
- mono: ["monospace"]
13
- },
14
- fontSize: {
15
- xxs: "9px",
16
- xs: "11px",
17
- sm: "12px",
18
- md: "13px",
19
- lg: "15px",
20
- xl: "18px",
21
- xxl: "23px"
22
- },
23
- fontWeight: {
24
- light: 300,
25
- normal: 400,
26
- semibold: 500,
27
- bold: 600
1
+ import { d as e, t as s, e as a, s as t, g as o, a as i } from "./palette-C24I0BcT.js";
2
+ import { c as g, f as c, l as f, o as x, p as v, b as u } from "./palette-C24I0BcT.js";
3
+ const r = {
4
+ action: {
5
+ expressive: `linear-gradient(105deg, ${e.expressive["orange-default"]}, ${e.expressive["pink-default"]} 55%, ${e.expressive["purple-default"]})`
28
6
  }
29
- }, m = {
30
- colors: o,
31
- spacing: t,
32
- transitions: s,
33
- typography: a
7
+ }, l = {
8
+ colors: i,
9
+ gradients: r,
10
+ spacing: o,
11
+ spacingRole: t,
12
+ transitions: a,
13
+ typography: s
34
14
  };
35
15
  export {
36
- o as colors,
37
- m as default,
38
- l as palettePool,
39
- n as paletteSlots,
40
- r as primitives,
41
- s as transitions
16
+ g as chartPool,
17
+ i as colors,
18
+ l as default,
19
+ c as fontSize,
20
+ f as lineHeight,
21
+ x as overlayPool,
22
+ v as palettePool,
23
+ u as paletteSlots,
24
+ e as primitives,
25
+ t as spacingRole,
26
+ a as transitions
42
27
  };
43
28
  //# sourceMappingURL=tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sources":["../src/theme/tokens/spacing.ts","../src/theme/tokens/typography.ts","../src/theme/tokens/index.ts"],"sourcesContent":["export const spacing = {\n xs: \"0.25rem\",\n sm: \"0.5rem\",\n md: \"1rem\",\n lg: \"1.5rem\",\n xl: \"2rem\",\n} as const;\n","export const typography = {\n fontFamily: {\n sans: [\"Palanquin\", \"sans-serif\"],\n mono: [\"monospace\"],\n },\n fontSize: {\n xxs: \"9px\",\n xs: \"11px\",\n sm: \"12px\",\n md: \"13px\",\n lg: \"15px\",\n xl: \"18px\",\n xxl: \"23px\",\n },\n fontWeight: {\n light: 300,\n normal: 400,\n semibold: 500,\n bold: 600,\n },\n} as const;\n","import { colors } from \"./colors\";\nimport { spacing } from \"./spacing\";\nimport { transitions } from \"./transitions\";\nimport { typography } from \"./typography\";\n\nexport { transitions };\n// Named explicitly: `export *` does not forward the default export, so without\n// this line `colors` and `primitives` are unreachable from the package root.\nexport { colors, primitives } from \"./colors\";\nexport { palettePool, paletteSlots } from \"./palette\";\n\nexport default {\n colors,\n spacing,\n transitions,\n typography,\n};\n"],"names":["spacing","typography","index","colors","transitions"],"mappings":";;AAAO,MAAMA,IAAU;AAAA,EACrB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GCNaC,IAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,aAAa,YAAY;AAAA,IAChC,MAAM,CAAC,WAAW;AAAA,EAAA;AAAA,EAEpB,UAAU;AAAA,IACR,KAAK;AAAA,IACL,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,KAAK;AAAA,EAAA;AAAA,EAEP,YAAY;AAAA,IACV,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,MAAM;AAAA,EAAA;AAEV,GCTAC,IAAe;AAAA,EACb,QAAAC;AAAA,EACA,SAAAH;AAAA,EACA,aAAAI;AAAA,EACA,YAAAH;AACF;"}
1
+ {"version":3,"file":"tokens.js","sources":["../src/theme/tokens/gradients.ts","../src/theme/tokens/index.ts"],"sourcesContent":["import { primitives } from \"./colors\";\n\n// The expressive gradient's stops are Figma's `expressive/*-default`\n// primitives (the same values the `interactive/expressive-default-*` tokens\n// resolve to), so the gradient re-tones with the brand ramp.\nexport const gradients = {\n action: {\n expressive: `linear-gradient(105deg, ${primitives.expressive[\"orange-default\"]}, ${primitives.expressive[\"pink-default\"]} 55%, ${primitives.expressive[\"purple-default\"]})`,\n },\n} as const;\n","import { colors } from \"./colors\";\nimport { gradients } from \"./gradients\";\nimport { spacing, spacingRole } from \"./spacing\";\nimport { transitions } from \"./transitions\";\nimport { typography } from \"./typography\";\n\nexport { transitions };\n// Named explicitly: `export *` does not forward the default export, so without\n// this line `colors` and `primitives` are unreachable from the package root.\nexport { colors, primitives } from \"./colors\";\nexport {\n chartPool,\n overlayPool,\n palettePool,\n paletteSlots,\n type VizHue,\n} from \"./palette\";\nexport { fontSize, lineHeight } from \"./typography\";\nexport { spacingRole } from \"./spacing\";\n\nexport default {\n colors,\n gradients,\n spacing,\n spacingRole,\n transitions,\n typography,\n};\n"],"names":["gradients","primitives","index","colors","spacing","spacingRole","transitions","typography"],"mappings":";;AAKO,MAAMA,IAAY;AAAA,EACvB,QAAQ;AAAA,IACN,YAAY,2BAA2BC,EAAW,WAAW,gBAAgB,CAAC,KAAKA,EAAW,WAAW,cAAc,CAAC,SAASA,EAAW,WAAW,gBAAgB,CAAC;AAAA,EAAA;AAE5K,GCWAC,IAAe;AAAA,EACb,QAAAC;AAAA,EACA,WAAAH;AAAA,EACA,SAAAI;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC;AACF;"}