@ixfx/components 0.5.19 → 0.5.20

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 (217) hide show
  1. package/bundle/index.d.ts +95 -115
  2. package/bundle/index.d.ts.map +1 -1
  3. package/bundle/index.js +484 -325
  4. package/bundle/index.js.map +1 -1
  5. package/dist/ac-text.d.ts +7 -12
  6. package/dist/ac-text.d.ts.map +1 -1
  7. package/dist/ac-text.js +5 -4
  8. package/dist/ac-text.js.map +1 -1
  9. package/dist/{button-CphdEaZd.js → button-pcDaCemT.js} +2 -2
  10. package/dist/{button-CphdEaZd.js.map → button-pcDaCemT.js.map} +1 -1
  11. package/dist/button.d.ts +3 -2
  12. package/dist/button.d.ts.map +1 -1
  13. package/dist/button.js +1 -1
  14. package/dist/checkbox.d.ts +1 -0
  15. package/dist/checkbox.d.ts.map +1 -1
  16. package/dist/checkbox.js +2 -2
  17. package/dist/checkbox.js.map +1 -1
  18. package/dist/{colour-picker-37NyVenk.js → colour-picker-D43Q96r0.js} +28 -15
  19. package/dist/colour-picker-D43Q96r0.js.map +1 -0
  20. package/dist/colour-picker.d.ts +1 -1
  21. package/dist/colour-picker.js +1 -1
  22. package/dist/{crumb-navigation-BrB0r14u.js → crumb-navigation-Pif-kupA.js} +10 -9
  23. package/dist/{crumb-navigation-BrB0r14u.js.map → crumb-navigation-Pif-kupA.js.map} +1 -1
  24. package/dist/crumbs.d.ts +2 -4
  25. package/dist/crumbs.d.ts.map +1 -1
  26. package/dist/crumbs.js +1 -1
  27. package/dist/data-display.d.ts +2 -1
  28. package/dist/data-display.d.ts.map +1 -1
  29. package/dist/data-display.js +23 -25
  30. package/dist/data-display.js.map +1 -1
  31. package/dist/{decorate-VRK8rslU.js → decorate-DdjvVHS-.js} +2 -2
  32. package/dist/{decorate-VRK8rslU.js.map → decorate-DdjvVHS-.js.map} +1 -1
  33. package/dist/editable-label.d.ts +2 -1
  34. package/dist/editable-label.d.ts.map +1 -1
  35. package/dist/editable-label.js +2 -2
  36. package/dist/editable-label.js.map +1 -1
  37. package/dist/fallbacks-DEE1nCTt.js +406 -0
  38. package/dist/fallbacks-DEE1nCTt.js.map +1 -0
  39. package/dist/{hex-editor-Bk6rxhfg.js → hex-editor-B-UI4OZu.js} +8 -6
  40. package/dist/{hex-editor-Bk6rxhfg.js.map → hex-editor-B-UI4OZu.js.map} +1 -1
  41. package/dist/{hex-editor-Caq8vNQk.d.ts → hex-editor-CMIxtNgT.d.ts} +3 -2
  42. package/dist/hex-editor-CMIxtNgT.d.ts.map +1 -0
  43. package/dist/hex.d.ts +1 -1
  44. package/dist/hex.js +1 -1
  45. package/dist/highlight-B-eQrhhb.js.map +1 -1
  46. package/dist/{icon-BUwP1CZ1.d.ts → icon-Bd5BiU4b.d.ts} +4 -3
  47. package/dist/icon-Bd5BiU4b.d.ts.map +1 -0
  48. package/dist/{icon-DG9Lm3LT.js → icon-CK14NUcE.js} +5 -7
  49. package/dist/{icon-DG9Lm3LT.js.map → icon-CK14NUcE.js.map} +1 -1
  50. package/dist/icons.d.ts +2 -2
  51. package/dist/icons.js +1 -1
  52. package/dist/{incr-search-2pz21xtR.js → incr-search-CeERfijK.js} +6 -9
  53. package/dist/{incr-search-2pz21xtR.js.map → incr-search-CeERfijK.js.map} +1 -1
  54. package/dist/incr-search.d.ts +1 -1
  55. package/dist/incr-search.js +1 -1
  56. package/dist/{index-D9u_Q7-b.d.ts → index-BslNaMLo.d.ts} +3 -3
  57. package/dist/index-BslNaMLo.d.ts.map +1 -0
  58. package/dist/{index-DkhBGHgF.d.ts → index-Cdmrn0SZ.d.ts} +11 -11
  59. package/dist/index-Cdmrn0SZ.d.ts.map +1 -0
  60. package/dist/{index-BUB5SICW.d.ts → index-CkMIKEWp.d.ts} +4 -3
  61. package/dist/index-CkMIKEWp.d.ts.map +1 -0
  62. package/dist/{index-RqMh1i-O.d.ts → index-D87kRcEs.d.ts} +1 -2
  63. package/dist/index-D87kRcEs.d.ts.map +1 -0
  64. package/dist/{index-BKAlRgbq.d.ts → index-DrKRD8_a.d.ts} +7 -4
  65. package/dist/index-DrKRD8_a.d.ts.map +1 -0
  66. package/dist/{index-BeuCXtiO.d.ts → index-tX6fKF8m.d.ts} +3 -3
  67. package/dist/index-tX6fKF8m.d.ts.map +1 -0
  68. package/dist/index.d.ts +48 -53
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +126 -118
  71. package/dist/index.js.map +1 -1
  72. package/dist/interaction-_Y2qO3QI.js +1 -0
  73. package/dist/{labelled-input-base-hoKGwyKT.js → labelled-input-base-9K_w3oLj.js} +2 -2
  74. package/dist/{labelled-input-base-hoKGwyKT.js.map → labelled-input-base-9K_w3oLj.js.map} +1 -1
  75. package/dist/{labelled-input-base-Dp_9KP0G.d.ts → labelled-input-base-ORb1rGq6.d.ts} +3 -2
  76. package/dist/labelled-input-base-ORb1rGq6.d.ts.map +1 -0
  77. package/dist/labelled-radial-input.d.ts +5 -4
  78. package/dist/labelled-radial-input.d.ts.map +1 -1
  79. package/dist/labelled-radial-input.js +4 -4
  80. package/dist/labelled-radial-input.js.map +1 -1
  81. package/dist/labelled-range-input.d.ts +1 -1
  82. package/dist/labelled-range-input.js +2 -2
  83. package/dist/labelled-range-input.js.map +1 -1
  84. package/dist/led.d.ts +2 -2
  85. package/dist/led.d.ts.map +1 -1
  86. package/dist/led.js +3 -5
  87. package/dist/led.js.map +1 -1
  88. package/dist/{menu-CdwSe_XN.js → menu-BiFarLUA.js} +9 -8
  89. package/dist/{menu-CdwSe_XN.js.map → menu-BiFarLUA.js.map} +1 -1
  90. package/dist/{menu-item-BG5w7fi4.d.ts → menu-item-AtoP6bD4.d.ts} +4 -4
  91. package/dist/menu-item-AtoP6bD4.d.ts.map +1 -0
  92. package/dist/{menu-item-CrmUwIoJ.js → menu-item-yHSPV8nS.js} +10 -9
  93. package/dist/{menu-item-CrmUwIoJ.js.map → menu-item-yHSPV8nS.js.map} +1 -1
  94. package/dist/menu.d.ts +2 -2
  95. package/dist/menu.js +2 -2
  96. package/dist/miller.d.ts +5 -7
  97. package/dist/miller.d.ts.map +1 -1
  98. package/dist/miller.js +26 -24
  99. package/dist/miller.js.map +1 -1
  100. package/dist/narrowed-text.d.ts +2 -1
  101. package/dist/narrowed-text.d.ts.map +1 -1
  102. package/dist/narrowed-text.js +14 -15
  103. package/dist/narrowed-text.js.map +1 -1
  104. package/dist/panel.d.ts +1 -1
  105. package/dist/panel.d.ts.map +1 -1
  106. package/dist/panel.js +3 -3
  107. package/dist/panel.js.map +1 -1
  108. package/dist/plots.d.ts +1 -1
  109. package/dist/plots.js +1 -1
  110. package/dist/polar-pad.d.ts +2 -1
  111. package/dist/polar-pad.d.ts.map +1 -1
  112. package/dist/polar-pad.js +3 -3
  113. package/dist/polar-pad.js.map +1 -1
  114. package/dist/{radial-input-CVxGH-Cp.js → radial-input-C4f-2Bya.js} +15 -25
  115. package/dist/{radial-input-CVxGH-Cp.js.map → radial-input-C4f-2Bya.js.map} +1 -1
  116. package/dist/{radial-input-BhZeyyP-.d.ts → radial-input-Dhu5ZGP5.d.ts} +3 -2
  117. package/dist/radial-input-Dhu5ZGP5.d.ts.map +1 -0
  118. package/dist/radial-input.d.ts +1 -1
  119. package/dist/radial-input.js +1 -1
  120. package/dist/range-input.d.ts +3 -2
  121. package/dist/range-input.d.ts.map +1 -1
  122. package/dist/range-input.js +3 -3
  123. package/dist/range-input.js.map +1 -1
  124. package/dist/range.d.ts +3 -2
  125. package/dist/range.d.ts.map +1 -1
  126. package/dist/range.js +3 -3
  127. package/dist/range.js.map +1 -1
  128. package/dist/selecthorizontal.d.ts +2 -1
  129. package/dist/selecthorizontal.d.ts.map +1 -1
  130. package/dist/selecthorizontal.js +2 -2
  131. package/dist/selecthorizontal.js.map +1 -1
  132. package/dist/{slider-input-TidGhvXt.d.ts → slider-input-BEaztT-g.d.ts} +3 -2
  133. package/dist/slider-input-BEaztT-g.d.ts.map +1 -0
  134. package/dist/{slider-input-CzmSVgm7.js → slider-input-SW7e2Ac2.js} +28 -31
  135. package/dist/{slider-input-CzmSVgm7.js.map → slider-input-SW7e2Ac2.js.map} +1 -1
  136. package/dist/slider-input.d.ts +1 -1
  137. package/dist/slider-input.js +1 -1
  138. package/dist/snap-container.d.ts +2 -1
  139. package/dist/snap-container.d.ts.map +1 -1
  140. package/dist/snap-container.js +5 -6
  141. package/dist/snap-container.js.map +1 -1
  142. package/dist/split-layout.d.ts +2 -1
  143. package/dist/split-layout.d.ts.map +1 -1
  144. package/dist/split-layout.js +4 -6
  145. package/dist/split-layout.js.map +1 -1
  146. package/dist/swipe.d.ts +2 -1
  147. package/dist/swipe.d.ts.map +1 -1
  148. package/dist/swipe.js +4 -5
  149. package/dist/swipe.js.map +1 -1
  150. package/dist/{tab-list-Beuh2nom.d.ts → tab-list-B8v9KntS.d.ts} +4 -4
  151. package/dist/tab-list-B8v9KntS.d.ts.map +1 -0
  152. package/dist/{tab-list-mAoD6L0e.js → tab-list-CR0v53KJ.js} +3 -3
  153. package/dist/{tab-list-mAoD6L0e.js.map → tab-list-CR0v53KJ.js.map} +1 -1
  154. package/dist/tabs.d.ts +1 -1
  155. package/dist/tabs.js +1 -1
  156. package/dist/{tickled-controller-BF2Ea0DE.d.ts → tickled-controller-JDOR9B8V.d.ts} +9 -6
  157. package/dist/tickled-controller-JDOR9B8V.d.ts.map +1 -0
  158. package/dist/{tickled-styles-fNDdqf6l.js → tickled-styles-Bgo_Lpw-.js} +28 -28
  159. package/dist/tickled-styles-Bgo_Lpw-.js.map +1 -0
  160. package/dist/{timeline-B2fgDL4U.js → timeline-CdSI003L.js} +3 -3
  161. package/dist/{timeline-B2fgDL4U.js.map → timeline-CdSI003L.js.map} +1 -1
  162. package/dist/timeline.d.ts +1 -1
  163. package/dist/timeline.js +1 -1
  164. package/dist/{tooltip-BlvBUQxx.d.ts → tooltip-BMTSUPBU.d.ts} +3 -2
  165. package/dist/tooltip-BMTSUPBU.d.ts.map +1 -0
  166. package/dist/{tree-BtiiDX1a.js → tree-CqPhQRHo.js} +11 -10
  167. package/dist/{tree-BtiiDX1a.js.map → tree-CqPhQRHo.js.map} +1 -1
  168. package/dist/{tree-component-DQ9vzdy5.d.ts → tree-component-CDLO1ITF.d.ts} +124 -8
  169. package/dist/tree-component-CDLO1ITF.d.ts.map +1 -0
  170. package/dist/tree.d.ts +4 -9
  171. package/dist/tree.d.ts.map +1 -1
  172. package/dist/tree.js +1 -1
  173. package/dist/types-DSfbtHs3.d.ts +8 -0
  174. package/dist/types-DSfbtHs3.d.ts.map +1 -0
  175. package/dist/{wheel-nudge-DgMTRYlh.d.ts → wheel-nudge-C-ra_1os.d.ts} +2 -1
  176. package/dist/wheel-nudge-C-ra_1os.d.ts.map +1 -0
  177. package/dist/{wheel-nudge-BlSCe_hD.js → wheel-nudge-Dhzi5nHc.js} +2 -2
  178. package/dist/{wheel-nudge-BlSCe_hD.js.map → wheel-nudge-Dhzi5nHc.js.map} +1 -1
  179. package/dist/{xy-axis-CxHC8z5E.js → xy-axis-BpA2eJq6.js} +4 -6
  180. package/dist/{xy-axis-CxHC8z5E.js.map → xy-axis-BpA2eJq6.js.map} +1 -1
  181. package/dist/{xy-axis-5KhVTNoX.d.ts → xy-axis-CtDDQzGZ.d.ts} +6 -8
  182. package/dist/xy-axis-CtDDQzGZ.d.ts.map +1 -0
  183. package/dist/xy-pad.d.ts +2 -1
  184. package/dist/xy-pad.d.ts.map +1 -1
  185. package/dist/xy-pad.js +3 -3
  186. package/dist/xy-pad.js.map +1 -1
  187. package/docs-user/ac-token.md +7 -1
  188. package/docs-user/colour-picker.md +8 -4
  189. package/docs-user/menu.md +11 -8
  190. package/package.json +1 -1
  191. package/dist/colour-picker-37NyVenk.js.map +0 -1
  192. package/dist/fallbacks-DPgPEqo8.js +0 -218
  193. package/dist/fallbacks-DPgPEqo8.js.map +0 -1
  194. package/dist/hex-editor-Caq8vNQk.d.ts.map +0 -1
  195. package/dist/icon-BUwP1CZ1.d.ts.map +0 -1
  196. package/dist/index-BKAlRgbq.d.ts.map +0 -1
  197. package/dist/index-BUB5SICW.d.ts.map +0 -1
  198. package/dist/index-BeuCXtiO.d.ts.map +0 -1
  199. package/dist/index-D9u_Q7-b.d.ts.map +0 -1
  200. package/dist/index-DkhBGHgF.d.ts.map +0 -1
  201. package/dist/index-RqMh1i-O.d.ts.map +0 -1
  202. package/dist/interaction-D6efrBLo.js +0 -1
  203. package/dist/labelled-input-base-Dp_9KP0G.d.ts.map +0 -1
  204. package/dist/menu-item-BG5w7fi4.d.ts.map +0 -1
  205. package/dist/radial-input-BhZeyyP-.d.ts.map +0 -1
  206. package/dist/slider-input-TidGhvXt.d.ts.map +0 -1
  207. package/dist/tab-list-Beuh2nom.d.ts.map +0 -1
  208. package/dist/tickled-controller-BF2Ea0DE.d.ts.map +0 -1
  209. package/dist/tickled-styles-fNDdqf6l.js.map +0 -1
  210. package/dist/tooltip-BlvBUQxx.d.ts.map +0 -1
  211. package/dist/tree-component-DQ9vzdy5.d.ts.map +0 -1
  212. package/dist/types-DO3gt5vg.d.ts +0 -130
  213. package/dist/types-DO3gt5vg.d.ts.map +0 -1
  214. package/dist/wheel-nudge-DgMTRYlh.d.ts.map +0 -1
  215. package/dist/xy-axis-5KhVTNoX.d.ts.map +0 -1
  216. /package/bundle/{rolldown-runtime-D7D4PA-g.js → chunk-D7D4PA-g.js} +0 -0
  217. /package/dist/{rolldown-runtime-D7D4PA-g.js → chunk-D7D4PA-g.js} +0 -0
@@ -0,0 +1,406 @@
1
+ import { css } from "lit";
2
+ //#region src/styles/fallbacks.ts
3
+ /**
4
+ * Default fallback values for theme CSS variables.
5
+ *
6
+ * Uses `@property` to register each variable with an initial value that acts
7
+ * as a fallback. This means:
8
+ * - If the theme CSS (`src/style.css`) is loaded, its `:root` values cascade
9
+ * in and override these defaults.
10
+ * - If no theme CSS is loaded, these initial values ensure components still
11
+ * have visible backgrounds, text colours, etc.
12
+ *
13
+ * `@property` registration is document-global — it is not scoped per shadow
14
+ * root — so this is registered exactly once (via `_registerThemeFallbacksOnce`
15
+ * below) rather than adopted into every component's shadow-root stylesheet.
16
+ * Registering the same `@property` rule repeatedly across many shadow roots
17
+ * causes Chrome to log "Ignored @property rule" for every repeat.
18
+ */
19
+ const _themeFallbacksCss = css`
20
+ @property --surface-0 {
21
+ syntax: '<color>';
22
+ inherits: true;
23
+ initial-value: oklch(5% 0.02 240);
24
+ }
25
+ @property --surface-1 {
26
+ syntax: '<color>';
27
+ inherits: true;
28
+ initial-value: oklch(8% 0.02 240);
29
+ }
30
+ @property --surface-2 {
31
+ syntax: '<color>';
32
+ inherits: true;
33
+ initial-value: oklch(12% 0.02 240);
34
+ }
35
+ @property --surface-2-text {
36
+ syntax: '<color>';
37
+ inherits: true;
38
+ initial-value: #fff;
39
+ }
40
+ @property --surface-3 {
41
+ syntax: '<color>';
42
+ inherits: true;
43
+ initial-value: oklch(15% 0.02 240);
44
+ }
45
+ @property --surface-3-text {
46
+ syntax: '<color>';
47
+ inherits: true;
48
+ initial-value: oklch(75% 0.02 240);
49
+ }
50
+ @property --surface-4 {
51
+ syntax: '<color>';
52
+ inherits: true;
53
+ initial-value: oklch(22% 0.02 240);
54
+ }
55
+ @property --surface-4-text {
56
+ syntax: '<color>';
57
+ inherits: true;
58
+ initial-value: #fff;
59
+ }
60
+ @property --surface-5 {
61
+ syntax: '<color>';
62
+ inherits: true;
63
+ initial-value: oklch(19% 0.02 240);
64
+ }
65
+ @property --surface-5-text {
66
+ syntax: '<color>';
67
+ inherits: true;
68
+ initial-value: #fff;
69
+ }
70
+ @property --surface-6 {
71
+ syntax: '<color>';
72
+ inherits: true;
73
+ initial-value: oklch(35% 0.02 240);
74
+ }
75
+ @property --surface-6-text {
76
+ syntax: '<color>';
77
+ inherits: true;
78
+ initial-value: #fff;
79
+ }
80
+ @property --surface-muted-text {
81
+ syntax: '<color>';
82
+ inherits: true;
83
+ initial-value: oklch(55% 0.02 240);
84
+ }
85
+ @property --content {
86
+ syntax: '<color>';
87
+ inherits: true;
88
+ initial-value: oklch(10% 0.01 240);
89
+ }
90
+ @property --content-text {
91
+ syntax: '<color>';
92
+ inherits: true;
93
+ initial-value: #fff;
94
+ }
95
+ @property --accent {
96
+ syntax: '<color>';
97
+ inherits: true;
98
+ initial-value: oklch(60% 0.15 140);
99
+ }
100
+ @property --accent-text {
101
+ syntax: '<color>';
102
+ inherits: true;
103
+ initial-value: #fff;
104
+ }
105
+ @property --error {
106
+ syntax: '<color>';
107
+ inherits: true;
108
+ initial-value: oklch(60% 0.15 20);
109
+ }
110
+ @property --error-text {
111
+ syntax: '<color>';
112
+ inherits: true;
113
+ initial-value: #fff;
114
+ }
115
+ @property --border {
116
+ syntax: '*';
117
+ inherits: true;
118
+ initial-value: 1px solid oklch(25% 0.02 240);
119
+ }
120
+ @property --border-subtle {
121
+ syntax: '*';
122
+ inherits: true;
123
+ initial-value: 1px solid oklch(18% 0.02 240);
124
+ }
125
+ @property --disabled-opacity {
126
+ syntax: '<number>';
127
+ inherits: true;
128
+ initial-value: 0.5;
129
+ }
130
+ @property --transition {
131
+ syntax: '<time>';
132
+ inherits: true;
133
+ initial-value: 0.15s;
134
+ }
135
+ @property --prominence-idle-opacity {
136
+ syntax: '<number>';
137
+ inherits: true;
138
+ initial-value: 0.6;
139
+ }
140
+ @property --prominence-idle-saturate {
141
+ syntax: '<number>';
142
+ inherits: true;
143
+ initial-value: 0.4;
144
+ }
145
+ @property --prominence-tickled-opacity {
146
+ syntax: '<number>';
147
+ inherits: true;
148
+ initial-value: 0.85;
149
+ }
150
+ @property --prominence-tickled-saturate {
151
+ syntax: '<number>';
152
+ inherits: true;
153
+ initial-value: 0.8;
154
+ }
155
+ @property --prominence-disabled-opacity {
156
+ syntax: '<number>';
157
+ inherits: true;
158
+ initial-value: 0.3;
159
+ }
160
+ @property --prominence-disabled-saturate {
161
+ syntax: '<number>';
162
+ inherits: true;
163
+ initial-value: 0.1;
164
+ }
165
+ @property --crumb-item-bg {
166
+ syntax: '<color>';
167
+ inherits: true;
168
+ initial-value: transparent;
169
+ }
170
+ @property --crumb-item-bg-tickled {
171
+ syntax: '<color>';
172
+ inherits: true;
173
+ initial-value: var(--surface-5);
174
+ }
175
+ @property --crumb-item-text-tickled {
176
+ syntax: '<color>';
177
+ inherits: true;
178
+ initial-value: inherit;
179
+ }
180
+ @property --crumb-item-border {
181
+ syntax: '*';
182
+ inherits: true;
183
+ initial-value: 1px solid transparent;
184
+ }
185
+ @property --crumb-item-border-tickled {
186
+ syntax: '<color>';
187
+ inherits: true;
188
+ initial-value: var(--accent);
189
+ }
190
+ @property --crumb-item-padding {
191
+ syntax: '*';
192
+ inherits: true;
193
+ initial-value: var(--space-xs);
194
+ }
195
+ @property --crumb-item-border-radius {
196
+ syntax: '<length>';
197
+ inherits: true;
198
+ initial-value: var(--radius-m);
199
+ }
200
+ @property --crumb-item-gap {
201
+ syntax: '<length>';
202
+ inherits: true;
203
+ initial-value: var(--space-xs);
204
+ }
205
+ @property --crumb-separator {
206
+ syntax: '<color>';
207
+ inherits: true;
208
+ initial-value: var(--surface-muted-text);
209
+ }
210
+ @property --crumb-truncate-min-width {
211
+ syntax: '<length>';
212
+ inherits: true;
213
+ initial-value: 5ch;
214
+ }
215
+ @property --space-xs {
216
+ syntax: '<length>';
217
+ inherits: true;
218
+ initial-value: 3px;
219
+ }
220
+ @property --space-s {
221
+ syntax: '<length>';
222
+ inherits: true;
223
+ initial-value: 4px;
224
+ }
225
+ @property --space-m {
226
+ syntax: '<length>';
227
+ inherits: true;
228
+ initial-value: 8px;
229
+ }
230
+ @property --space-l {
231
+ syntax: '<length>';
232
+ inherits: true;
233
+ initial-value: 12px;
234
+ }
235
+ @property --space-xl {
236
+ syntax: '<length>';
237
+ inherits: true;
238
+ initial-value: 16px;
239
+ }
240
+ @property --space-2xl {
241
+ syntax: '<length>';
242
+ inherits: true;
243
+ initial-value: 20px;
244
+ }
245
+ @property --text-xs {
246
+ syntax: '<length>';
247
+ inherits: true;
248
+ initial-value: 10px;
249
+ }
250
+ @property --text-s {
251
+ syntax: '<length>';
252
+ inherits: true;
253
+ initial-value: 11px;
254
+ }
255
+ @property --text-m {
256
+ syntax: '<length>';
257
+ inherits: true;
258
+ initial-value: 12px;
259
+ }
260
+ @property --text-l {
261
+ syntax: '<length>';
262
+ inherits: true;
263
+ initial-value: 13px;
264
+ }
265
+ @property --text-xl {
266
+ syntax: '<length>';
267
+ inherits: true;
268
+ initial-value: 16px;
269
+ }
270
+ @property --text-2xl {
271
+ syntax: '<length>';
272
+ inherits: true;
273
+ initial-value: 20px;
274
+ }
275
+ @property --font-weight-bold {
276
+ syntax: '<number>';
277
+ inherits: true;
278
+ initial-value: 600;
279
+ }
280
+ @property --radius-s {
281
+ syntax: '<length>';
282
+ inherits: true;
283
+ initial-value: 3px;
284
+ }
285
+ @property --radius-m {
286
+ syntax: '<length>';
287
+ inherits: true;
288
+ initial-value: 4px;
289
+ }
290
+ @property --radius-l {
291
+ syntax: '<length>';
292
+ inherits: true;
293
+ initial-value: 6px;
294
+ }
295
+ @property --radius-xl {
296
+ syntax: '<length>';
297
+ inherits: true;
298
+ initial-value: 8px;
299
+ }
300
+ @property --shadow-m {
301
+ syntax: '*';
302
+ inherits: true;
303
+ initial-value: 0 4px 12px rgba(0, 0, 0, 0.3);
304
+ }
305
+ @property --shadow-l {
306
+ syntax: '*';
307
+ inherits: true;
308
+ initial-value: 0 4px 24px rgba(0, 0, 0, 0.5);
309
+ }
310
+ @property --item-bg {
311
+ syntax: '<color>';
312
+ inherits: true;
313
+ initial-value: transparent;
314
+ }
315
+ @property --item-bg-tickled {
316
+ syntax: '<color>';
317
+ inherits: true;
318
+ initial-value: oklch(19% 0.02 240);
319
+ }
320
+ @property --item-bg-selected {
321
+ syntax: '<color>';
322
+ inherits: true;
323
+ initial-value: oklch(60% 0.15 140);
324
+ }
325
+ @property --item-bg-selected-tickled {
326
+ syntax: '<color>';
327
+ inherits: true;
328
+ initial-value: color-mix(in oklch, oklch(60% 0.15 140) 80%, oklch(0% 0 0));
329
+ }
330
+ @property --item-text-tickled {
331
+ syntax: '<color>';
332
+ inherits: true;
333
+ initial-value: #fff;
334
+ }
335
+ @property --item-text-selected {
336
+ syntax: '<color>';
337
+ inherits: true;
338
+ initial-value: #fff;
339
+ }
340
+ @property --item-border {
341
+ syntax: '*';
342
+ inherits: true;
343
+ initial-value: 1px solid oklch(19% 0.02 240);
344
+ }
345
+ @property --item-border-tickled {
346
+ syntax: '*';
347
+ inherits: true;
348
+ initial-value: 1px solid color-mix(in oklch, oklch(60% 0.15 140) 40%, transparent);
349
+ }
350
+ @property --item-border-selected {
351
+ syntax: '*';
352
+ inherits: true;
353
+ initial-value: 1px dashed oklch(60% 0.15 140);
354
+ }
355
+ @property --item-border-active {
356
+ syntax: '*';
357
+ inherits: true;
358
+ initial-value: 2px solid oklch(60% 0.15 140);
359
+ }
360
+ @property --item-border-dragged {
361
+ syntax: '*';
362
+ inherits: true;
363
+ initial-value: 2px dotted color-mix(in oklch, oklch(60% 0.15 140) 80%, transparent);
364
+ }
365
+ @property --item-border-disabled {
366
+ syntax: '*';
367
+ inherits: true;
368
+ initial-value: 1px solid oklch(22% 0.02 240);
369
+ }
370
+ @property --item-padding {
371
+ syntax: '*';
372
+ inherits: true;
373
+ initial-value: 4px 8px;
374
+ }
375
+ @property --item-border-radius {
376
+ syntax: '<length>';
377
+ inherits: true;
378
+ initial-value: 4px;
379
+ }
380
+ @property --item-icon-spacing {
381
+ syntax: '<length>';
382
+ inherits: true;
383
+ initial-value: 4px;
384
+ }
385
+ `;
386
+ let _themeFallbacksRegistered = false;
387
+ function _registerThemeFallbacksOnce() {
388
+ if (_themeFallbacksRegistered || typeof document === `undefined`) return;
389
+ _themeFallbacksRegistered = true;
390
+ const styleEl = document.createElement(`style`);
391
+ styleEl.textContent = _themeFallbacksCss.cssText;
392
+ document.head.append(styleEl);
393
+ }
394
+ _registerThemeFallbacksOnce();
395
+ /**
396
+ * Spread this into any component whose styles reference theme variables.
397
+ * It is an empty stylesheet — the actual `@property` rules are registered
398
+ * once at the document level as a side effect of importing this module — so
399
+ * this exists only to keep the familiar `static styles = [themeFallbacks, ...]`
400
+ * pattern working across all consuming components.
401
+ */
402
+ const themeFallbacks = css``;
403
+ //#endregion
404
+ export { themeFallbacks as t };
405
+
406
+ //# sourceMappingURL=fallbacks-DEE1nCTt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fallbacks-DEE1nCTt.js","names":[],"sources":["../src/styles/fallbacks.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * Default fallback values for theme CSS variables.\n *\n * Uses `@property` to register each variable with an initial value that acts\n * as a fallback. This means:\n * - If the theme CSS (`src/style.css`) is loaded, its `:root` values cascade\n * in and override these defaults.\n * - If no theme CSS is loaded, these initial values ensure components still\n * have visible backgrounds, text colours, etc.\n *\n * `@property` registration is document-global — it is not scoped per shadow\n * root — so this is registered exactly once (via `_registerThemeFallbacksOnce`\n * below) rather than adopted into every component's shadow-root stylesheet.\n * Registering the same `@property` rule repeatedly across many shadow roots\n * causes Chrome to log \"Ignored @property rule\" for every repeat.\n */\nconst _themeFallbacksCss = css`\n @property --surface-0 {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(5% 0.02 240);\n }\n @property --surface-1 {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(8% 0.02 240);\n }\n @property --surface-2 {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(12% 0.02 240);\n }\n @property --surface-2-text {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --surface-3 {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(15% 0.02 240);\n }\n @property --surface-3-text {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(75% 0.02 240);\n }\n @property --surface-4 {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(22% 0.02 240);\n }\n @property --surface-4-text {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --surface-5 {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(19% 0.02 240);\n }\n @property --surface-5-text {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --surface-6 {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(35% 0.02 240);\n }\n @property --surface-6-text {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --surface-muted-text {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(55% 0.02 240);\n }\n @property --content {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(10% 0.01 240);\n }\n @property --content-text {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --accent {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(60% 0.15 140);\n }\n @property --accent-text {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --error {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(60% 0.15 20);\n }\n @property --error-text {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --border {\n syntax: '*';\n inherits: true;\n initial-value: 1px solid oklch(25% 0.02 240);\n }\n @property --border-subtle {\n syntax: '*';\n inherits: true;\n initial-value: 1px solid oklch(18% 0.02 240);\n }\n @property --disabled-opacity {\n syntax: '<number>';\n inherits: true;\n initial-value: 0.5;\n }\n @property --transition {\n syntax: '<time>';\n inherits: true;\n initial-value: 0.15s;\n }\n @property --prominence-idle-opacity {\n syntax: '<number>';\n inherits: true;\n initial-value: 0.6;\n }\n @property --prominence-idle-saturate {\n syntax: '<number>';\n inherits: true;\n initial-value: 0.4;\n }\n @property --prominence-tickled-opacity {\n syntax: '<number>';\n inherits: true;\n initial-value: 0.85;\n }\n @property --prominence-tickled-saturate {\n syntax: '<number>';\n inherits: true;\n initial-value: 0.8;\n }\n @property --prominence-disabled-opacity {\n syntax: '<number>';\n inherits: true;\n initial-value: 0.3;\n }\n @property --prominence-disabled-saturate {\n syntax: '<number>';\n inherits: true;\n initial-value: 0.1;\n }\n @property --crumb-item-bg {\n syntax: '<color>';\n inherits: true;\n initial-value: transparent;\n }\n @property --crumb-item-bg-tickled {\n syntax: '<color>';\n inherits: true;\n initial-value: var(--surface-5);\n }\n @property --crumb-item-text-tickled {\n syntax: '<color>';\n inherits: true;\n initial-value: inherit;\n }\n @property --crumb-item-border {\n syntax: '*';\n inherits: true;\n initial-value: 1px solid transparent;\n }\n @property --crumb-item-border-tickled {\n syntax: '<color>';\n inherits: true;\n initial-value: var(--accent);\n }\n @property --crumb-item-padding {\n syntax: '*';\n inherits: true;\n initial-value: var(--space-xs);\n }\n @property --crumb-item-border-radius {\n syntax: '<length>';\n inherits: true;\n initial-value: var(--radius-m);\n }\n @property --crumb-item-gap {\n syntax: '<length>';\n inherits: true;\n initial-value: var(--space-xs);\n }\n @property --crumb-separator {\n syntax: '<color>';\n inherits: true;\n initial-value: var(--surface-muted-text);\n }\n @property --crumb-truncate-min-width {\n syntax: '<length>';\n inherits: true;\n initial-value: 5ch;\n }\n @property --space-xs {\n syntax: '<length>';\n inherits: true;\n initial-value: 3px;\n }\n @property --space-s {\n syntax: '<length>';\n inherits: true;\n initial-value: 4px;\n }\n @property --space-m {\n syntax: '<length>';\n inherits: true;\n initial-value: 8px;\n }\n @property --space-l {\n syntax: '<length>';\n inherits: true;\n initial-value: 12px;\n }\n @property --space-xl {\n syntax: '<length>';\n inherits: true;\n initial-value: 16px;\n }\n @property --space-2xl {\n syntax: '<length>';\n inherits: true;\n initial-value: 20px;\n }\n @property --text-xs {\n syntax: '<length>';\n inherits: true;\n initial-value: 10px;\n }\n @property --text-s {\n syntax: '<length>';\n inherits: true;\n initial-value: 11px;\n }\n @property --text-m {\n syntax: '<length>';\n inherits: true;\n initial-value: 12px;\n }\n @property --text-l {\n syntax: '<length>';\n inherits: true;\n initial-value: 13px;\n }\n @property --text-xl {\n syntax: '<length>';\n inherits: true;\n initial-value: 16px;\n }\n @property --text-2xl {\n syntax: '<length>';\n inherits: true;\n initial-value: 20px;\n }\n @property --font-weight-bold {\n syntax: '<number>';\n inherits: true;\n initial-value: 600;\n }\n @property --radius-s {\n syntax: '<length>';\n inherits: true;\n initial-value: 3px;\n }\n @property --radius-m {\n syntax: '<length>';\n inherits: true;\n initial-value: 4px;\n }\n @property --radius-l {\n syntax: '<length>';\n inherits: true;\n initial-value: 6px;\n }\n @property --radius-xl {\n syntax: '<length>';\n inherits: true;\n initial-value: 8px;\n }\n @property --shadow-m {\n syntax: '*';\n inherits: true;\n initial-value: 0 4px 12px rgba(0, 0, 0, 0.3);\n }\n @property --shadow-l {\n syntax: '*';\n inherits: true;\n initial-value: 0 4px 24px rgba(0, 0, 0, 0.5);\n }\n @property --item-bg {\n syntax: '<color>';\n inherits: true;\n initial-value: transparent;\n }\n @property --item-bg-tickled {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(19% 0.02 240);\n }\n @property --item-bg-selected {\n syntax: '<color>';\n inherits: true;\n initial-value: oklch(60% 0.15 140);\n }\n @property --item-bg-selected-tickled {\n syntax: '<color>';\n inherits: true;\n initial-value: color-mix(in oklch, oklch(60% 0.15 140) 80%, oklch(0% 0 0));\n }\n @property --item-text-tickled {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --item-text-selected {\n syntax: '<color>';\n inherits: true;\n initial-value: #fff;\n }\n @property --item-border {\n syntax: '*';\n inherits: true;\n initial-value: 1px solid oklch(19% 0.02 240);\n }\n @property --item-border-tickled {\n syntax: '*';\n inherits: true;\n initial-value: 1px solid color-mix(in oklch, oklch(60% 0.15 140) 40%, transparent);\n }\n @property --item-border-selected {\n syntax: '*';\n inherits: true;\n initial-value: 1px dashed oklch(60% 0.15 140);\n }\n @property --item-border-active {\n syntax: '*';\n inherits: true;\n initial-value: 2px solid oklch(60% 0.15 140);\n }\n @property --item-border-dragged {\n syntax: '*';\n inherits: true;\n initial-value: 2px dotted color-mix(in oklch, oklch(60% 0.15 140) 80%, transparent);\n }\n @property --item-border-disabled {\n syntax: '*';\n inherits: true;\n initial-value: 1px solid oklch(22% 0.02 240);\n }\n @property --item-padding {\n syntax: '*';\n inherits: true;\n initial-value: 4px 8px;\n }\n @property --item-border-radius {\n syntax: '<length>';\n inherits: true;\n initial-value: 4px;\n }\n @property --item-icon-spacing {\n syntax: '<length>';\n inherits: true;\n initial-value: 4px;\n }\n`;\n\nlet _themeFallbacksRegistered = false;\n\nfunction _registerThemeFallbacksOnce(): void {\n if (_themeFallbacksRegistered || typeof document === `undefined`)\n return;\n _themeFallbacksRegistered = true;\n const styleEl = document.createElement(`style`);\n styleEl.textContent = _themeFallbacksCss.cssText;\n document.head.append(styleEl);\n}\n\n_registerThemeFallbacksOnce();\n\n/**\n * Spread this into any component whose styles reference theme variables.\n * It is an empty stylesheet — the actual `@property` rules are registered\n * once at the document level as a side effect of importing this module — so\n * this exists only to keep the familiar `static styles = [themeFallbacks, ...]`\n * pattern working across all consuming components.\n */\nexport const themeFallbacks = css``;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgX9B,IAAI,4BAA4B;AAEhC,SAAS,8BAAoC;CAC3C,IAAI,6BAA6B,OAAO,aAAa,aACnD;CACF,4BAA4B;CAC5B,MAAM,UAAU,SAAS,cAAc,OAAO;CAC9C,QAAQ,cAAc,mBAAmB;CACzC,SAAS,KAAK,OAAO,OAAO;AAC9B;AAEA,4BAA4B;;;;;;;;AAS5B,MAAa,iBAAiB,GAAG"}
@@ -1,11 +1,11 @@
1
- import { n as safeCustomElement, t as __decorate } from "./decorate-VRK8rslU.js";
1
+ import { n as safeCustomElement, t as __decorate } from "./decorate-DdjvVHS-.js";
2
2
  import { LitElement, css, html } from "lit";
3
3
  import { property, state } from "lit/decorators.js";
4
4
  import { Colour } from "@ixfx/visual";
5
5
  import { repeat } from "lit/directives/repeat.js";
6
6
  import { styleMap } from "lit/directives/style-map.js";
7
7
  //#region src/hex/colour.ts
8
- const WHITESPACE_BYTES = /* @__PURE__ */ new Set([
8
+ const WHITESPACE_BYTES = new Set([
9
9
  9,
10
10
  10,
11
11
  11,
@@ -54,7 +54,7 @@ function clamp(value) {
54
54
  function writeByte(store, pos, value) {
55
55
  const clampedValue = clamp(value);
56
56
  const before = store.data[pos];
57
- const diff = /* @__PURE__ */ new Map([[pos, {
57
+ const diff = new Map([[pos, {
58
58
  before,
59
59
  after: clampedValue
60
60
  }]]);
@@ -263,7 +263,9 @@ function extendRectangular(sel, dir, columns, _dataLength, anchorX = 0, anchorY
263
263
  height += 1;
264
264
  }
265
265
  break;
266
- case `down`: height += 1;
266
+ case `down`:
267
+ height += 1;
268
+ break;
267
269
  }
268
270
  return {
269
271
  kind: `rectangular`,
@@ -309,7 +311,7 @@ let IxfxHexEditorElement = class IxfxHexEditorElement extends LitElement {
309
311
  this._containerH = 0;
310
312
  this._shadeMap = null;
311
313
  this._focusSide = null;
312
- this._store = createHexStore(/* @__PURE__ */ new Uint8Array(0));
314
+ this._store = createHexStore(new Uint8Array(0));
313
315
  this._undoStack = createUndoRedoStack();
314
316
  this._copyBuffer = null;
315
317
  this._rowHeight = 24;
@@ -1142,4 +1144,4 @@ IxfxHexEditorElement = __decorate([safeCustomElement(`ixfx-hex-editor`)], IxfxHe
1142
1144
  //#endregion
1143
1145
  export { IxfxHexEditorElement as t };
1144
1146
 
1145
- //# sourceMappingURL=hex-editor-Bk6rxhfg.js.map
1147
+ //# sourceMappingURL=hex-editor-B-UI4OZu.js.map