@daasboard/ui 0.0.0-stage → 0.1.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 (110) hide show
  1. package/LICENSE +5 -0
  2. package/README.md +6 -2
  3. package/dist/LICENSE-lucide.txt +43 -0
  4. package/dist/color/color.d.ts +34 -0
  5. package/dist/color/color.js +106 -0
  6. package/dist/color/edit.d.ts +34 -0
  7. package/dist/color/edit.js +40 -0
  8. package/dist/color/gradient.d.ts +39 -0
  9. package/dist/color/gradient.js +129 -0
  10. package/dist/color/index.d.ts +3 -0
  11. package/dist/color/index.js +3 -0
  12. package/dist/controls/buttons.d.ts +54 -0
  13. package/dist/controls/buttons.js +95 -0
  14. package/dist/controls/font-picker.d.ts +35 -0
  15. package/dist/controls/font-picker.js +178 -0
  16. package/dist/controls/index.d.ts +43 -0
  17. package/dist/controls/index.js +32 -0
  18. package/dist/controls/number-field.d.ts +60 -0
  19. package/dist/controls/number-field.js +190 -0
  20. package/dist/controls/place.d.ts +10 -0
  21. package/dist/controls/place.js +77 -0
  22. package/dist/controls/popover.d.ts +84 -0
  23. package/dist/controls/popover.js +366 -0
  24. package/dist/controls/shared.d.ts +30 -0
  25. package/dist/controls/shared.js +134 -0
  26. package/dist/controls/slider.d.ts +82 -0
  27. package/dist/controls/slider.js +241 -0
  28. package/dist/controls/swatch.d.ts +25 -0
  29. package/dist/controls/swatch.js +38 -0
  30. package/dist/controls/tooltip.d.ts +19 -0
  31. package/dist/controls/tooltip.js +84 -0
  32. package/dist/controls/typed.d.ts +28 -0
  33. package/dist/controls/typed.js +126 -0
  34. package/dist/element.d.ts +40 -0
  35. package/dist/element.js +78 -0
  36. package/dist/host.d.ts +99 -0
  37. package/dist/host.js +1 -0
  38. package/dist/icons/index.d.ts +7 -0
  39. package/dist/icons/index.js +31 -0
  40. package/dist/icons/lucide.d.ts +851 -0
  41. package/dist/icons/lucide.js +90 -0
  42. package/dist/index.d.ts +18 -0
  43. package/dist/index.js +16 -0
  44. package/dist/keys.d.ts +30 -0
  45. package/dist/keys.js +122 -0
  46. package/dist/mount.d.ts +11 -0
  47. package/dist/mount.js +96 -0
  48. package/dist/options.d.ts +152 -0
  49. package/dist/options.js +78 -0
  50. package/dist/palette.d.ts +6 -0
  51. package/dist/palette.js +9 -0
  52. package/dist/picker/handles.d.ts +7 -0
  53. package/dist/picker/handles.js +8 -0
  54. package/dist/picker/index.d.ts +21 -0
  55. package/dist/picker/index.js +20 -0
  56. package/dist/picker/palette.d.ts +8 -0
  57. package/dist/picker/palette.js +14 -0
  58. package/dist/picker/picker.d.ts +63 -0
  59. package/dist/picker/picker.js +561 -0
  60. package/dist/picker/solid-editor.d.ts +60 -0
  61. package/dist/picker/solid-editor.js +330 -0
  62. package/dist/picker/stop-bar.d.ts +27 -0
  63. package/dist/picker/stop-bar.js +140 -0
  64. package/dist/prefs.d.ts +6 -0
  65. package/dist/prefs.js +34 -0
  66. package/dist/recents.d.ts +9 -0
  67. package/dist/recents.js +140 -0
  68. package/dist/root.d.ts +31 -0
  69. package/dist/root.js +526 -0
  70. package/dist/scheduler.d.ts +21 -0
  71. package/dist/scheduler.js +132 -0
  72. package/dist/strings.d.ts +284 -0
  73. package/dist/strings.js +287 -0
  74. package/dist/surface.d.ts +27 -0
  75. package/dist/surface.js +8 -0
  76. package/dist/surfaces/context-menu/index.d.ts +2 -0
  77. package/dist/surfaces/context-menu/index.js +2 -0
  78. package/dist/surfaces/context-menu/items.d.ts +14 -0
  79. package/dist/surfaces/context-menu/items.js +38 -0
  80. package/dist/surfaces/context-menu/menu.d.ts +16 -0
  81. package/dist/surfaces/context-menu/menu.js +135 -0
  82. package/dist/surfaces/pane/index.d.ts +16 -0
  83. package/dist/surfaces/pane/index.js +19 -0
  84. package/dist/surfaces/pane/model.d.ts +41 -0
  85. package/dist/surfaces/pane/model.js +139 -0
  86. package/dist/surfaces/pane/outlet.d.ts +16 -0
  87. package/dist/surfaces/pane/outlet.js +20 -0
  88. package/dist/surfaces/pane/pane.d.ts +40 -0
  89. package/dist/surfaces/pane/pane.js +1429 -0
  90. package/dist/surfaces/pane/placement.d.ts +11 -0
  91. package/dist/surfaces/pane/placement.js +62 -0
  92. package/dist/surfaces/pane/text-field.d.ts +16 -0
  93. package/dist/surfaces/pane/text-field.js +20 -0
  94. package/dist/surfaces/selection-toolbar/index.d.ts +2 -0
  95. package/dist/surfaces/selection-toolbar/index.js +2 -0
  96. package/dist/surfaces/selection-toolbar/items.d.ts +37 -0
  97. package/dist/surfaces/selection-toolbar/items.js +183 -0
  98. package/dist/surfaces/selection-toolbar/toolbar.d.ts +27 -0
  99. package/dist/surfaces/selection-toolbar/toolbar.js +956 -0
  100. package/dist/surfaces/tools/index.d.ts +2 -0
  101. package/dist/surfaces/tools/index.js +2 -0
  102. package/dist/surfaces/tools/keys.d.ts +11 -0
  103. package/dist/surfaces/tools/keys.js +21 -0
  104. package/dist/surfaces/tools/model.d.ts +48 -0
  105. package/dist/surfaces/tools/model.js +155 -0
  106. package/dist/surfaces/tools/toolbar.d.ts +27 -0
  107. package/dist/surfaces/tools/toolbar.js +502 -0
  108. package/dist/theme.d.ts +26 -0
  109. package/dist/theme.js +47 -0
  110. package/package.json +31 -3
@@ -0,0 +1,21 @@
1
+ import type { UiFrameStats } from "./host.js";
2
+ export interface FrameSource {
3
+ request(cb: () => void): number;
4
+ cancel(handle: number): void;
5
+ }
6
+ export interface Flushable {
7
+ flushUpdate(): void;
8
+ }
9
+ export declare const FRAME_WINDOW = 120;
10
+ export declare function animationFrames(win: Pick<Window, "requestAnimationFrame" | "cancelAnimationFrame">): FrameSource;
11
+ export declare class UiScheduler {
12
+ #private;
13
+ constructor(source: FrameSource, clock: () => number);
14
+ lead(el: Flushable): void;
15
+ read<T>(fn: () => T): T;
16
+ enqueue(el: Flushable): Promise<void>;
17
+ stats(): UiFrameStats;
18
+ get scheduled(): boolean;
19
+ get disposed(): boolean;
20
+ dispose(): void;
21
+ }
@@ -0,0 +1,132 @@
1
+ export const FRAME_WINDOW = 120;
2
+ const MAX_PASSES = 8;
3
+ export function animationFrames(win) {
4
+ return { request: (cb) => win.requestAnimationFrame(() => cb()), cancel: (h) => win.cancelAnimationFrame(h) };
5
+ }
6
+ export class UiScheduler {
7
+ #pending = new Set();
8
+ #first = null;
9
+ #handle = null;
10
+ #settle = null;
11
+ #settled = null;
12
+ #samples = new Float64Array(FRAME_WINDOW);
13
+ #outside = new Float64Array(FRAME_WINDOW);
14
+ #readMs = 0;
15
+ #frames = 0;
16
+ #lastMs = 0;
17
+ #lastOutsideMs = 0;
18
+ #running = false;
19
+ #isDisposed = false;
20
+ #source;
21
+ #clock;
22
+ constructor(source, clock) {
23
+ this.#source = source;
24
+ this.#clock = clock;
25
+ }
26
+ lead(el) {
27
+ this.#first = el;
28
+ }
29
+ read(fn) {
30
+ const start = this.#clock();
31
+ try {
32
+ return fn();
33
+ }
34
+ finally {
35
+ this.#readMs += this.#clock() - start;
36
+ }
37
+ }
38
+ enqueue(el) {
39
+ if (this.#isDisposed)
40
+ return Promise.resolve();
41
+ this.#pending.add(el);
42
+ if (!this.#running)
43
+ this.#request();
44
+ return (this.#settled ??= new Promise((resolve) => (this.#settle = resolve)));
45
+ }
46
+ #request() {
47
+ if (this.#handle === null && !this.#isDisposed)
48
+ this.#handle = this.#source.request(this.#run);
49
+ }
50
+ #run = () => {
51
+ this.#handle = null;
52
+ if (this.#isDisposed)
53
+ return;
54
+ this.#running = true;
55
+ this.#readMs = 0;
56
+ const start = this.#clock();
57
+ let failure = null;
58
+ try {
59
+ for (let pass = 0; pass < MAX_PASSES && this.#pending.size > 0; pass++) {
60
+ const first = this.#first;
61
+ const batch = first && this.#pending.delete(first) ? [first, ...this.#pending] : [...this.#pending];
62
+ this.#pending.clear();
63
+ for (const el of batch) {
64
+ try {
65
+ el.flushUpdate();
66
+ }
67
+ catch (error) {
68
+ failure ??= { error };
69
+ }
70
+ }
71
+ }
72
+ }
73
+ finally {
74
+ this.#running = false;
75
+ const ms = this.#clock() - start;
76
+ this.#record(ms, ms - this.#readMs);
77
+ const settle = this.#settle;
78
+ this.#settle = null;
79
+ this.#settled = null;
80
+ if (this.#pending.size > 0)
81
+ this.#request();
82
+ settle?.();
83
+ }
84
+ if (failure)
85
+ throw failure.error;
86
+ };
87
+ #record(ms, outsideMs) {
88
+ this.#samples[this.#frames % FRAME_WINDOW] = ms;
89
+ this.#outside[this.#frames % FRAME_WINDOW] = outsideMs;
90
+ this.#frames++;
91
+ this.#lastMs = ms;
92
+ this.#lastOutsideMs = outsideMs;
93
+ }
94
+ stats() {
95
+ const n = Math.min(this.#frames, FRAME_WINDOW);
96
+ const quantiles = (samples) => {
97
+ const sorted = Array.from(samples.subarray(0, n)).sort((a, b) => a - b);
98
+ return {
99
+ median: n === 0 ? 0 : (sorted[(n - 1) >> 1] + sorted[n >> 1]) / 2,
100
+ p95: sorted[Math.ceil(.95 * n) - 1] ?? 0,
101
+ };
102
+ };
103
+ const all = quantiles(this.#samples);
104
+ const outside = quantiles(this.#outside);
105
+ return {
106
+ frames: this.#frames,
107
+ lastMs: this.#lastMs,
108
+ medianMs: all.median,
109
+ p95Ms: all.p95,
110
+ lastOutsideReadsMs: this.#lastOutsideMs,
111
+ outsideReadsMedianMs: outside.median,
112
+ outsideReadsP95Ms: outside.p95,
113
+ };
114
+ }
115
+ get scheduled() {
116
+ return this.#handle !== null;
117
+ }
118
+ get disposed() {
119
+ return this.#isDisposed;
120
+ }
121
+ dispose() {
122
+ this.#isDisposed = true;
123
+ if (this.#handle !== null)
124
+ this.#source.cancel(this.#handle);
125
+ this.#handle = null;
126
+ this.#pending.clear();
127
+ const settle = this.#settle;
128
+ this.#settle = null;
129
+ this.#settled = null;
130
+ settle?.();
131
+ }
132
+ }
@@ -0,0 +1,284 @@
1
+ export declare const DEFAULT_STRINGS: {
2
+ readonly "surface.tools": "Tools";
3
+ readonly "surface.selection": "Selection";
4
+ readonly "surface.textFormatting": "Text formatting";
5
+ readonly "surface.properties": "Properties";
6
+ readonly "pane.show": "Show properties";
7
+ readonly "pane.hide": "Hide properties";
8
+ readonly "pane.layout": "Layout";
9
+ readonly "pane.appearance": "Appearance";
10
+ readonly "pane.text": "Text";
11
+ readonly "pane.fill": "Fill";
12
+ readonly "pane.stroke": "Stroke";
13
+ readonly "pane.connector": "Connector";
14
+ readonly "pane.effects": "Effects";
15
+ readonly "pane.link": "Link";
16
+ readonly "pane.other": "Other";
17
+ readonly "pane.layoutMore": "More layout options";
18
+ readonly "pane.lockRatio": "Keep aspect ratio";
19
+ readonly "pane.corners": "Individual corners";
20
+ readonly "pane.textMore": "More text options";
21
+ readonly "pane.paddingX": "Horizontal padding";
22
+ readonly "pane.paddingY": "Vertical padding";
23
+ readonly "pane.paddingSides": "Padding per side";
24
+ readonly "pane.layer": "Layer";
25
+ readonly "pane.addFill": "Add fill";
26
+ readonly "pane.removeFill": "Remove fill";
27
+ readonly "pane.addStroke": "Add stroke";
28
+ readonly "pane.removeStroke": "Remove stroke";
29
+ readonly "pane.strokeMore": "More stroke options";
30
+ readonly "pane.strokeSides": "Visible sides";
31
+ readonly "pane.swapEnds": "Swap arrowheads";
32
+ readonly "pane.addEffect": "Add effect";
33
+ readonly "pane.removeEffect": "Remove effect";
34
+ readonly "pane.dropShadow": "Drop shadow";
35
+ readonly "pane.url": "Paste a link";
36
+ readonly "short.x": "X";
37
+ readonly "short.y": "Y";
38
+ readonly "short.w": "W";
39
+ readonly "short.h": "H";
40
+ readonly "short.blur": "B";
41
+ readonly "short.spread": "S";
42
+ readonly "short.paddingX": "H";
43
+ readonly "short.paddingY": "V";
44
+ readonly "short.left": "L";
45
+ readonly "short.right": "R";
46
+ readonly "short.top": "T";
47
+ readonly "short.bottom": "B";
48
+ readonly "short.topLeft": "TL";
49
+ readonly "short.topRight": "TR";
50
+ readonly "short.bottomLeft": "BL";
51
+ readonly "short.bottomRight": "BR";
52
+ readonly "command.alignLeft": "Align left";
53
+ readonly "command.alignCenter": "Align horizontal centers";
54
+ readonly "command.alignRight": "Align right";
55
+ readonly "command.alignTop": "Align top";
56
+ readonly "command.alignMiddle": "Align vertical centers";
57
+ readonly "command.alignBottom": "Align bottom";
58
+ readonly "command.distributeHorizontal": "Distribute horizontally";
59
+ readonly "command.distributeVertical": "Distribute vertically";
60
+ readonly "option.none": "None";
61
+ readonly "option.left": "Left";
62
+ readonly "option.center": "Center";
63
+ readonly "option.right": "Right";
64
+ readonly "option.justify": "Justify";
65
+ readonly "option.top": "Top";
66
+ readonly "option.middle": "Middle";
67
+ readonly "option.bottom": "Bottom";
68
+ readonly "option.inside": "Inside";
69
+ readonly "option.outside": "Outside";
70
+ readonly "option.upper": "Uppercase";
71
+ readonly "option.lower": "Lowercase";
72
+ readonly "option.bullet": "Bullets";
73
+ readonly "option.number": "Numbers";
74
+ readonly "option.task": "Tasks";
75
+ readonly "option.straight": "Straight";
76
+ readonly "option.ortho": "Elbow";
77
+ readonly "option.curve": "Curved";
78
+ readonly "option.solid": "Solid";
79
+ readonly "option.dash": "Dash";
80
+ readonly "option.longDash": "Long dash";
81
+ readonly "option.shortDash": "Short dash";
82
+ readonly "option.dot": "Dot";
83
+ readonly "option.dashDot": "Dash dot";
84
+ readonly "option.dashDotDot": "Dash dot dot";
85
+ readonly "option.butt": "Butt";
86
+ readonly "option.round": "Round";
87
+ readonly "option.square": "Square";
88
+ readonly "option.miter": "Miter";
89
+ readonly "option.bevel": "Bevel";
90
+ readonly "option.arrow": "Arrow";
91
+ readonly "option.triangle": "Triangle";
92
+ readonly "option.triangle-open": "Open triangle";
93
+ readonly "option.triangle-skinny": "Narrow triangle";
94
+ readonly "option.circle": "Circle";
95
+ readonly "option.circle-open": "Open circle";
96
+ readonly "option.diamond": "Diamond";
97
+ readonly "option.diamond-open": "Open diamond";
98
+ readonly "option.square-open": "Open square";
99
+ readonly "option.bar": "Bar";
100
+ readonly "option.crow": "Crow's foot";
101
+ readonly "tools.more": "More tools";
102
+ readonly "tools.options": "Tool options";
103
+ readonly "tools.colors": "Sticky colors";
104
+ readonly "tools.quickActions": "Quick actions";
105
+ readonly "sticky.yellow": "Yellow";
106
+ readonly "sticky.red": "Red";
107
+ readonly "sticky.orange": "Orange";
108
+ readonly "sticky.green": "Green";
109
+ readonly "sticky.blue": "Blue";
110
+ readonly "sticky.violet": "Violet";
111
+ readonly "tool.select": "Select";
112
+ readonly "tool.hand": "Hand";
113
+ readonly "tool.rect": "Rectangle";
114
+ readonly "tool.ellipse": "Ellipse";
115
+ readonly "tool.diamond": "Diamond";
116
+ readonly "tool.star": "Star";
117
+ readonly "tool.arrow-left": "Left arrow";
118
+ readonly "tool.arrow-right": "Right arrow";
119
+ readonly "tool.arrow-double": "Double arrow";
120
+ readonly "tool.speech-bubble": "Speech bubble";
121
+ readonly "tool.database": "Database";
122
+ readonly "tool.triangle": "Triangle";
123
+ readonly "tool.text": "Text";
124
+ readonly "tool.image": "Insert image";
125
+ readonly "tool.sticky": "Sticky note";
126
+ readonly "tool.connector": "Connector";
127
+ readonly "tool.frame": "Frame";
128
+ readonly "tool.section": "Section";
129
+ readonly "zoom.menu": "Zoom options";
130
+ readonly "zoom.percent": "{value} %";
131
+ readonly "zoom.in": "Zoom in";
132
+ readonly "zoom.out": "Zoom out";
133
+ readonly "zoom.fit": "Zoom to fit";
134
+ readonly "zoom.selection": "Zoom to selection";
135
+ readonly "command.undo": "Undo";
136
+ readonly "command.redo": "Redo";
137
+ readonly "command.delete": "Delete";
138
+ readonly "command.duplicate": "Duplicate";
139
+ readonly "command.selectAll": "Select all";
140
+ readonly "command.bringToFront": "Bring to front";
141
+ readonly "command.bringForward": "Bring forward";
142
+ readonly "command.sendBackward": "Send backward";
143
+ readonly "command.sendToBack": "Send to back";
144
+ readonly "command.lock": "Lock";
145
+ readonly "command.unlock": "Unlock";
146
+ readonly "surface.contextMenu": "Actions";
147
+ readonly "command.cut": "Cut";
148
+ readonly "command.copy": "Copy";
149
+ readonly "command.paste": "Paste";
150
+ readonly "command.pasteHere": "Paste here";
151
+ readonly "value.mixed": "Mixed";
152
+ readonly "value.none": "None";
153
+ readonly "color.area": "Saturation and brightness";
154
+ readonly "color.saturation": "Saturation";
155
+ readonly "color.brightness": "Brightness";
156
+ readonly "font.search": "Search fonts";
157
+ readonly "font.families": "Font families";
158
+ readonly "font.weight": "Weight";
159
+ readonly "weight.100": "Thin";
160
+ readonly "weight.200": "Extra light";
161
+ readonly "weight.300": "Light";
162
+ readonly "weight.400": "Regular";
163
+ readonly "weight.500": "Medium";
164
+ readonly "weight.600": "Semibold";
165
+ readonly "weight.700": "Bold";
166
+ readonly "weight.800": "Extra bold";
167
+ readonly "weight.900": "Black";
168
+ readonly "color.palette": "Palette";
169
+ readonly "color.space": "Color space";
170
+ readonly "color.hue": "Hue";
171
+ readonly "color.alpha": "Opacity";
172
+ readonly "color.none": "No color";
173
+ readonly "color.transparent": "Transparent";
174
+ readonly "color.format": "Format";
175
+ readonly "color.hex": "Hex";
176
+ readonly "color.rgb": "RGB";
177
+ readonly "color.hsl": "HSL";
178
+ readonly "color.red": "Red";
179
+ readonly "color.green": "Green";
180
+ readonly "color.blue": "Blue";
181
+ readonly "color.lightness": "Lightness";
182
+ readonly "color.eyedropper": "Pick a color from the screen";
183
+ readonly "color.recents": "Recent colors";
184
+ readonly "paint.type": "Paint type";
185
+ readonly "paint.solid": "Solid";
186
+ readonly "paint.gradient": "Gradient";
187
+ readonly "paint.linear": "Linear";
188
+ readonly "paint.radial": "Radial";
189
+ readonly "paint.angle": "Angle";
190
+ readonly "paint.rotate": "Rotate 90°";
191
+ readonly "paint.flip": "Flip";
192
+ readonly "paint.centerX": "Center X";
193
+ readonly "paint.centerY": "Center Y";
194
+ readonly "paint.radius": "Radius";
195
+ readonly "paint.centerX.short": "X";
196
+ readonly "paint.centerY.short": "Y";
197
+ readonly "paint.radius.short": "R";
198
+ readonly "paint.stops": "Stops";
199
+ readonly "paint.stop": "Stop";
200
+ readonly "paint.addStop": "Add stop";
201
+ readonly "paint.removeStop": "Remove stop";
202
+ readonly "paint.position": "Position";
203
+ readonly "paint.stopColor": "Stop color";
204
+ readonly "paint.back": "Back to the gradient";
205
+ readonly "selection.stickyColor": "Sticky color";
206
+ readonly "selection.borderStyle": "Border style";
207
+ readonly "selection.lineEnds": "Line ends";
208
+ readonly "selection.connectorType": "Connector type";
209
+ readonly "selection.moreStyles": "More text styles";
210
+ readonly "selection.textOptions": "Text options";
211
+ readonly "selection.more": "More";
212
+ readonly "selection.locationAndSize": "Location and size";
213
+ readonly "selection.multipleFills": "Multiple fills";
214
+ readonly "selection.swap": "Swap the ends";
215
+ readonly "selection.sizeDown": "Decrease font size";
216
+ readonly "selection.sizeUp": "Increase font size";
217
+ readonly "selection.corners": "Individual corners";
218
+ readonly "selection.sides": "Visible sides";
219
+ readonly "selection.padding": "Padding";
220
+ readonly "selection.presets": "Presets";
221
+ readonly "side.top": "Top";
222
+ readonly "side.right": "Right";
223
+ readonly "side.bottom": "Bottom";
224
+ readonly "side.left": "Left";
225
+ readonly "side.top.short": "T";
226
+ readonly "side.right.short": "R";
227
+ readonly "side.bottom.short": "B";
228
+ readonly "side.left.short": "L";
229
+ readonly "shadow.x.short": "X";
230
+ readonly "shadow.y.short": "Y";
231
+ readonly "shadow.blur.short": "B";
232
+ readonly "shadow.spread.short": "S";
233
+ readonly "connector.rounded": "Rounded";
234
+ readonly "connector.sharp": "Sharp";
235
+ readonly "connector.line": "Line";
236
+ readonly "connector.curved": "Curved";
237
+ readonly "list.none": "No list";
238
+ readonly "list.bullet": "Bulleted list";
239
+ readonly "list.number": "Numbered list";
240
+ readonly "list.task": "Task list";
241
+ readonly "align.left": "Align left";
242
+ readonly "align.center": "Align center";
243
+ readonly "align.right": "Align right";
244
+ readonly "align.justify": "Justify";
245
+ readonly "valign.top": "Align top";
246
+ readonly "valign.middle": "Align middle";
247
+ readonly "valign.bottom": "Align bottom";
248
+ readonly "case.none": "As typed";
249
+ readonly "case.upper": "Uppercase";
250
+ readonly "case.lower": "Lowercase";
251
+ readonly "dash.solid": "Solid";
252
+ readonly "dash.dash": "Dashed";
253
+ readonly "dash.longDash": "Long dashes";
254
+ readonly "dash.shortDash": "Short dashes";
255
+ readonly "dash.dot": "Dotted";
256
+ readonly "dash.dashDot": "Dash dot";
257
+ readonly "dash.dashDotDot": "Dash dot dot";
258
+ readonly "arrow.none": "None";
259
+ readonly "arrow.arrow": "Arrow";
260
+ readonly "arrow.triangle": "Triangle";
261
+ readonly "arrow.triangle-open": "Open triangle";
262
+ readonly "arrow.triangle-skinny": "Narrow triangle";
263
+ readonly "arrow.circle": "Circle";
264
+ readonly "arrow.circle-open": "Open circle";
265
+ readonly "arrow.diamond": "Diamond";
266
+ readonly "arrow.diamond-open": "Open diamond";
267
+ readonly "arrow.square": "Square";
268
+ readonly "arrow.square-open": "Open square";
269
+ readonly "arrow.bar": "Bar";
270
+ readonly "arrow.crow": "Crow's foot";
271
+ };
272
+ export type StringKey = keyof typeof DEFAULT_STRINGS;
273
+ export type UiStrings = {
274
+ [K in StringKey]: string;
275
+ } & {
276
+ [K in `key:${string}`]: string;
277
+ };
278
+ export declare class Strings {
279
+ private readonly overrides;
280
+ constructor(overrides?: Partial<UiStrings>);
281
+ t(key: StringKey): string;
282
+ label(descriptorKey: string, registryLabel: string): string;
283
+ option(descriptorKey: string, value: string): string;
284
+ }