@iyulab/u-widgets 0.11.0 → 0.11.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iyulab/u-widgets",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Declarative, data-driven widget system for visualization and input",
5
5
  "type": "module",
6
6
  "module": "./dist/u-widgets.js",
@@ -1,64 +0,0 @@
1
- import { css as e } from "lit";
2
- const g = e`
3
- :host {
4
- /* ── Colors (Light defaults) ── */
5
- --u-widget-bg: #fff;
6
- --u-widget-surface: #f1f5f9;
7
- --u-widget-text: #1a1a2e;
8
- --u-widget-text-secondary: #64748b;
9
- --u-widget-border: #e2e8f0;
10
- --u-widget-primary: #4f46e5;
11
- --u-widget-positive: #16a34a;
12
- --u-widget-negative: #dc2626;
13
- --u-widget-warning: #d97706;
14
-
15
- /* ── Spacing ── */
16
- --u-widget-gap: 16px;
17
- --u-widget-radius: 6px;
18
-
19
- /* ── Typography ── */
20
- --u-widget-font-family: system-ui, -apple-system, sans-serif;
21
- --u-widget-font-size: 0.875rem;
22
-
23
- /* ── Chart ── */
24
- --u-widget-chart-height: 300px;
25
-
26
- /* ── Shadow ── */
27
- --u-widget-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
28
- --u-widget-shadow-hover: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
29
- }
30
-
31
- @media (prefers-color-scheme: dark) {
32
- :host(:not([theme="light"])) {
33
- --u-widget-bg: #1e1e2e;
34
- --u-widget-surface: #2a2a3e;
35
- --u-widget-text: #e2e8f0;
36
- --u-widget-text-secondary: #94a3b8;
37
- --u-widget-border: #374151;
38
- --u-widget-primary: #818cf8;
39
- --u-widget-positive: #4ade80;
40
- --u-widget-negative: #f87171;
41
- --u-widget-warning: #fbbf24;
42
- --u-widget-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
43
- --u-widget-shadow-hover: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
44
- }
45
- }
46
-
47
- :host([theme="dark"]) {
48
- --u-widget-bg: #1e1e2e;
49
- --u-widget-surface: #2a2a3e;
50
- --u-widget-text: #e2e8f0;
51
- --u-widget-text-secondary: #94a3b8;
52
- --u-widget-border: #374151;
53
- --u-widget-primary: #818cf8;
54
- --u-widget-positive: #4ade80;
55
- --u-widget-negative: #f87171;
56
- --u-widget-warning: #fbbf24;
57
- --u-widget-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
58
- --u-widget-shadow-hover: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
59
- }
60
- `;
61
- export {
62
- g as t
63
- };
64
- //# sourceMappingURL=tokens-byMop3gk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens-byMop3gk.js","sources":["../src/styles/tokens.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * Shared CSS custom property tokens for all u-widget elements.\n *\n * **Token categories:**\n * - Colors: bg, surface, text, text-secondary, border, primary, positive, negative, warning\n * - Spacing: gap, radius\n * - Typography: font-family, font-size\n * - Chart: chart-height, chart-color-1..10\n *\n * **Theme modes:**\n * 1. Light mode: `:host` sets explicit color defaults for all tokens.\n * 2. Dark mode via `prefers-color-scheme: dark` (automatic, unless `theme=\"light\"`)\n * 3. Dark mode via `theme=\"dark\"` attribute (manual override)\n *\n * Host applications can override any `--u-widget-*` variable by styling the\n * element directly (e.g., `u-widget { --u-widget-text: blue; }`).\n * The `theme=\"dark\"` attribute is still useful for component-specific overrides\n * (e.g., code syntax highlight colors).\n */\nexport const themeStyles = css`\n :host {\n /* ── Colors (Light defaults) ── */\n --u-widget-bg: #fff;\n --u-widget-surface: #f1f5f9;\n --u-widget-text: #1a1a2e;\n --u-widget-text-secondary: #64748b;\n --u-widget-border: #e2e8f0;\n --u-widget-primary: #4f46e5;\n --u-widget-positive: #16a34a;\n --u-widget-negative: #dc2626;\n --u-widget-warning: #d97706;\n\n /* ── Spacing ── */\n --u-widget-gap: 16px;\n --u-widget-radius: 6px;\n\n /* ── Typography ── */\n --u-widget-font-family: system-ui, -apple-system, sans-serif;\n --u-widget-font-size: 0.875rem;\n\n /* ── Chart ── */\n --u-widget-chart-height: 300px;\n\n /* ── Shadow ── */\n --u-widget-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);\n --u-widget-shadow-hover: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);\n }\n\n @media (prefers-color-scheme: dark) {\n :host(:not([theme=\"light\"])) {\n --u-widget-bg: #1e1e2e;\n --u-widget-surface: #2a2a3e;\n --u-widget-text: #e2e8f0;\n --u-widget-text-secondary: #94a3b8;\n --u-widget-border: #374151;\n --u-widget-primary: #818cf8;\n --u-widget-positive: #4ade80;\n --u-widget-negative: #f87171;\n --u-widget-warning: #fbbf24;\n --u-widget-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);\n --u-widget-shadow-hover: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);\n }\n }\n\n :host([theme=\"dark\"]) {\n --u-widget-bg: #1e1e2e;\n --u-widget-surface: #2a2a3e;\n --u-widget-text: #e2e8f0;\n --u-widget-text-secondary: #94a3b8;\n --u-widget-border: #374151;\n --u-widget-primary: #818cf8;\n --u-widget-positive: #4ade80;\n --u-widget-negative: #f87171;\n --u-widget-warning: #fbbf24;\n --u-widget-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);\n --u-widget-shadow-hover: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);\n }\n`;\n"],"names":["themeStyles","css"],"mappings":";AAqBO,MAAMA,IAAcC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}