@luxalgo/vela-ui 0.2.0 → 0.4.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.
- package/CHANGELOG.md +153 -91
- package/LICENSE +201 -201
- package/NOTICE +28 -28
- package/README.md +86 -86
- package/cli/engine.mjs +282 -282
- package/cli/index.mjs +154 -154
- package/dist/badge.js +1 -1
- package/dist/bar-chart.d.ts +1 -1
- package/dist/bar-chart.js +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.js +4 -4
- package/dist/callout-bubble.d.ts +1 -1
- package/dist/callout-bubble.js +4 -4
- package/dist/card.d.ts +52 -0
- package/dist/card.js +179 -0
- package/dist/checkbox.js +5 -5
- package/dist/{chunk-B5ZSRUDQ.js → chunk-BWSOMG3G.js} +2 -2
- package/dist/{chunk-G7IQLY3A.js → chunk-C3PXY2SW.js} +5 -0
- package/dist/{chunk-CC3DDNFC.js → chunk-DXDCKZ2M.js} +4 -4
- package/dist/chunk-GUIYFQ27.js +30 -0
- package/dist/{chunk-WGULXRWD.js → chunk-KUWTI2PE.js} +4 -4
- package/dist/{chunk-Z5PINFQO.js → chunk-QGWAN3EP.js} +5 -5
- package/dist/{chunk-V2Q4MRMS.js → chunk-RH53NQGE.js} +30 -4
- package/dist/{chunk-WBGSYCV2.js → chunk-SKFAYTDK.js} +4 -4
- package/dist/{chunk-MJ4RUGX7.js → chunk-TGJNHUYV.js} +3 -3
- package/dist/{chunk-WXH3EFV5.js → chunk-VC7SVSDK.js} +4 -4
- package/dist/{chunk-7VMN7NKJ.js → chunk-YT2BSP7O.js} +3 -3
- package/dist/collapsible.d.ts +1 -1
- package/dist/collapsible.js +3 -3
- package/dist/color-picker.js +5 -5
- package/dist/context-menu.js +5 -5
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.js +1 -1
- package/dist/date-picker.d.ts +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/dialog.d.ts +9 -1
- package/dist/dialog.js +15 -5
- package/dist/donut.d.ts +1 -1
- package/dist/donut.js +1 -1
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.js +2 -2
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +5 -5
- package/dist/empty.d.ts +1 -1
- package/dist/empty.js +2 -2
- package/dist/field.js +13 -13
- package/dist/{stat.d.ts → figure.d.ts} +9 -9
- package/dist/figure.js +41 -0
- package/dist/glyph-select.js +5 -5
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.js +3 -3
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -3
- package/dist/input-group.d.ts +1 -1
- package/dist/input-group.js +4 -4
- package/dist/input.js +2 -2
- package/dist/item.d.ts +1 -1
- package/dist/item.js +2 -2
- package/dist/kbd.d.ts +1 -1
- package/dist/kbd.js +2 -2
- package/dist/line-chart.d.ts +1 -1
- package/dist/line-chart.js +1 -1
- package/dist/manifest.json +691 -74
- package/dist/month-grid.js +1 -1
- package/dist/number-input.d.ts +1 -1
- package/dist/number-input.js +5 -5
- package/dist/popover.js +3 -3
- package/dist/scatter-chart.d.ts +1 -1
- package/dist/scatter-chart.js +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.js +7 -7
- package/dist/slider.d.ts +1 -1
- package/dist/slider.js +2 -2
- package/dist/sort-button.js +4 -4
- package/dist/sparkline.d.ts +1 -1
- package/dist/sparkline.js +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +3 -3
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +4 -4
- package/dist/text-area.d.ts +1 -1
- package/dist/text-area.js +2 -2
- package/dist/theme-TefB8vtl.d.ts +341 -0
- package/dist/theme.d.ts +42 -192
- package/dist/theme.js +1 -1
- package/dist/theme.schema.json +321 -30
- package/dist/toast.d.ts +49 -0
- package/dist/toast.js +463 -0
- package/dist/toggle-group.d.ts +1 -1
- package/dist/toggle-group.js +4 -4
- package/dist/tooltip.js +2 -2
- package/dist/treemap.d.ts +80 -0
- package/dist/treemap.js +470 -0
- package/dist/zag.d.ts +11 -2
- package/dist/zag.js +1 -1
- package/docs/theming.md +217 -217
- package/docs/what-to-change.md +20 -20
- package/docs/writing-a-component.md +250 -250
- package/llms.txt +6 -3
- package/package.json +90 -90
- package/registry/badge.ts +119 -119
- package/registry/bar-chart.ts +215 -215
- package/registry/button.ts +387 -379
- package/registry/callout-bubble.ts +347 -347
- package/registry/card.ts +379 -0
- package/registry/checkbox.ts +234 -234
- package/registry/collapsible.ts +271 -271
- package/registry/color-picker.ts +582 -582
- package/registry/context-menu.ts +208 -208
- package/registry/data-table.ts +215 -215
- package/registry/date-picker.ts +483 -483
- package/registry/dialog.ts +551 -535
- package/registry/donut.ts +145 -145
- package/registry/drawer.ts +636 -636
- package/registry/dropdown-menu.ts +762 -762
- package/registry/empty.ts +91 -91
- package/registry/field.ts +584 -584
- package/registry/{stat.ts → figure.ts} +96 -96
- package/registry/glyph-select.ts +268 -268
- package/registry/hover-card.ts +222 -222
- package/registry/input-group.ts +229 -229
- package/registry/input.ts +181 -181
- package/registry/item.ts +376 -376
- package/registry/kbd.ts +64 -64
- package/registry/line-chart.ts +218 -218
- package/registry/month-grid.ts +328 -328
- package/registry/number-input.ts +443 -443
- package/registry/popover.ts +368 -368
- package/registry/scatter-chart.ts +221 -221
- package/registry/select.ts +620 -620
- package/registry/slider.ts +259 -259
- package/registry/sort-button.ts +189 -189
- package/registry/sparkline.ts +114 -114
- package/registry/switch.ts +205 -205
- package/registry/tabs.ts +426 -426
- package/registry/text-area.ts +186 -186
- package/registry/toast.ts +965 -0
- package/registry/toggle-group.ts +295 -295
- package/registry/tooltip.ts +156 -156
- package/registry/treemap.ts +847 -0
- package/skills/theming-vela-ui/SKILL.md +137 -137
- package/skills/using-vela-ui-components/SKILL.md +139 -137
- package/skills/writing-vela-ui-components/SKILL.md +163 -163
- package/src/components/badge.ts +119 -119
- package/src/components/bar-chart.ts +215 -215
- package/src/components/button.ts +387 -379
- package/src/components/callout-bubble.ts +347 -347
- package/src/components/card.ts +379 -0
- package/src/components/checkbox.ts +234 -234
- package/src/components/collapsible.ts +271 -271
- package/src/components/color-picker.ts +582 -582
- package/src/components/context-menu.ts +208 -208
- package/src/components/data-table.ts +215 -215
- package/src/components/date-picker.ts +483 -483
- package/src/components/dialog.ts +551 -535
- package/src/components/donut.ts +145 -145
- package/src/components/drawer.ts +636 -636
- package/src/components/dropdown-menu.ts +762 -762
- package/src/components/empty.ts +91 -91
- package/src/components/field.ts +584 -584
- package/src/components/{stat.ts → figure.ts} +96 -96
- package/src/components/glyph-select.ts +268 -268
- package/src/components/hover-card.ts +222 -222
- package/src/components/input-group.ts +229 -229
- package/src/components/input.ts +181 -181
- package/src/components/item.ts +376 -376
- package/src/components/kbd.ts +64 -64
- package/src/components/line-chart.ts +218 -218
- package/src/components/month-grid.ts +328 -328
- package/src/components/number-input.ts +443 -443
- package/src/components/popover.ts +368 -368
- package/src/components/scatter-chart.ts +221 -221
- package/src/components/select.ts +620 -620
- package/src/components/slider.ts +259 -259
- package/src/components/sort-button.ts +189 -189
- package/src/components/sparkline.ts +114 -114
- package/src/components/switch.ts +205 -205
- package/src/components/tabs.ts +426 -426
- package/src/components/text-area.ts +186 -186
- package/src/components/toast.ts +965 -0
- package/src/components/toggle-group.ts +295 -295
- package/src/components/tooltip.ts +156 -156
- package/src/components/treemap.ts +847 -0
- package/src/index.ts +24 -24
- package/src/lib/calendar.ts +117 -117
- package/src/lib/chart.ts +72 -72
- package/src/lib/color.ts +89 -89
- package/src/lib/component-index.ts +163 -151
- package/src/lib/css.ts +48 -48
- package/src/lib/define.ts +45 -45
- package/src/lib/dispose.ts +36 -36
- package/src/lib/h.ts +55 -55
- package/src/lib/headless.ts +16 -16
- package/src/lib/i18n.ts +30 -30
- package/src/lib/icons.ts +244 -237
- package/src/lib/kit-text.ts +26 -26
- package/src/lib/page.ts +24 -24
- package/src/lib/palette.ts +81 -81
- package/src/lib/placement.ts +188 -188
- package/src/lib/scope.ts +135 -135
- package/src/lib/styles.ts +53 -53
- package/src/lib/surface-events.ts +31 -31
- package/src/lib/surface-exit.ts +87 -87
- package/src/lib/t.ts +68 -68
- package/src/lib/theme.ts +684 -664
- package/src/lib/tokens.ts +110 -110
- package/src/lib/variants.ts +32 -32
- package/src/lib/zag.ts +61 -46
- package/stylelint/index.mjs +60 -60
- package/stylelint/lint.mjs +81 -81
- package/stylelint/plugin.mjs +115 -115
- package/dist/chunk-P4MTEMT7.js +0 -23
- package/dist/stat.js +0 -41
- package/dist/{chunk-U3EH42YY.js → chunk-5BJV5FY5.js} +1 -1
- package/dist/{chunk-E2FE6V2N.js → chunk-ALAHGSLC.js} +1 -1
- package/dist/{chunk-C3ICYMI3.js → chunk-FYVQO5TN.js} +1 -1
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { DropdownMenu, createDropdownMenu, dropdownMenuController, dropdownMenuDef } from './chunk-
|
|
2
|
-
import './chunk-G7IQLY3A.js';
|
|
1
|
+
export { DropdownMenu, createDropdownMenu, dropdownMenuController, dropdownMenuDef } from './chunk-KUWTI2PE.js';
|
|
3
2
|
import './chunk-FVH6L7FM.js';
|
|
4
3
|
import './chunk-FN2BUFNM.js';
|
|
5
4
|
import './chunk-J2QJATCD.js';
|
|
6
5
|
import './chunk-S7USVSYP.js';
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-RH53NQGE.js';
|
|
8
7
|
import './chunk-TAKSIV57.js';
|
|
9
8
|
import './chunk-MMTMOV6R.js';
|
|
10
9
|
import './chunk-3Q32K4PE.js';
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-GUIYFQ27.js';
|
|
11
|
+
import './chunk-C3PXY2SW.js';
|
|
12
12
|
import './chunk-Q6WTDVH6.js';
|
|
13
|
+
import './chunk-6QCILIT2.js';
|
|
13
14
|
import './chunk-VMCR3S2A.js';
|
|
14
15
|
import './chunk-XBEL4K33.js';
|
|
15
16
|
import './chunk-2GQIZM5Z.js';
|
|
16
17
|
import './chunk-BXMWQIBO.js';
|
|
17
18
|
import './chunk-X66RJAIS.js';
|
|
18
|
-
import './chunk-6QCILIT2.js';
|
package/dist/empty.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ComponentDef } from './define-D5u3F5Dj.js';
|
|
2
2
|
import './t.js';
|
|
3
3
|
|
|
4
|
-
declare const emptyDef: ComponentDef<"empty", "
|
|
4
|
+
declare const emptyDef: ComponentDef<"empty", "title" | "root" | "icon" | "description", "icon-radius">;
|
|
5
5
|
interface EmptyProps {
|
|
6
6
|
/** Icon id from the kit's registry, shown in a tile above the title. */
|
|
7
7
|
icon?: string;
|
package/dist/empty.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { iconEl } from './chunk-
|
|
1
|
+
import { iconEl } from './chunk-C3PXY2SW.js';
|
|
2
2
|
import { h } from './chunk-Q6WTDVH6.js';
|
|
3
|
+
import { t } from './chunk-6QCILIT2.js';
|
|
3
4
|
import { defineComponent } from './chunk-VMCR3S2A.js';
|
|
4
5
|
import { defineStyles, css } from './chunk-XBEL4K33.js';
|
|
5
6
|
import './chunk-2GQIZM5Z.js';
|
|
6
7
|
import './chunk-BXMWQIBO.js';
|
|
7
8
|
import './chunk-X66RJAIS.js';
|
|
8
|
-
import { t } from './chunk-6QCILIT2.js';
|
|
9
9
|
|
|
10
10
|
// src/components/empty.ts
|
|
11
11
|
var emptyDef = defineComponent({
|
package/dist/field.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { TextArea } from './chunk-
|
|
2
|
-
import { NumberInput } from './chunk-
|
|
3
|
-
import { Select } from './chunk-
|
|
4
|
-
import { widthField } from './chunk-
|
|
5
|
-
import { Input } from './chunk-
|
|
6
|
-
import {
|
|
7
|
-
import './chunk-LZWZV2ZS.js';
|
|
8
|
-
import './chunk-G7IQLY3A.js';
|
|
9
|
-
import { ColorField } from './chunk-MJ4RUGX7.js';
|
|
1
|
+
import { TextArea } from './chunk-ALAHGSLC.js';
|
|
2
|
+
import { NumberInput } from './chunk-VC7SVSDK.js';
|
|
3
|
+
import { Select } from './chunk-QGWAN3EP.js';
|
|
4
|
+
import { widthField } from './chunk-YT2BSP7O.js';
|
|
5
|
+
import { Input } from './chunk-5BJV5FY5.js';
|
|
6
|
+
import { ColorField } from './chunk-TGJNHUYV.js';
|
|
10
7
|
import './chunk-FVH6L7FM.js';
|
|
11
8
|
import './chunk-FN2BUFNM.js';
|
|
12
|
-
import './chunk-
|
|
9
|
+
import './chunk-BWSOMG3G.js';
|
|
13
10
|
import './chunk-J2QJATCD.js';
|
|
14
11
|
import './chunk-S7USVSYP.js';
|
|
15
|
-
import './chunk-
|
|
12
|
+
import './chunk-RH53NQGE.js';
|
|
16
13
|
import './chunk-TAKSIV57.js';
|
|
17
14
|
import './chunk-MMTMOV6R.js';
|
|
18
15
|
import './chunk-3Q32K4PE.js';
|
|
16
|
+
import { Checkbox } from './chunk-SKFAYTDK.js';
|
|
19
17
|
import { disposeWithin } from './chunk-A72NWYNP.js';
|
|
20
|
-
import './chunk-
|
|
18
|
+
import './chunk-GUIYFQ27.js';
|
|
19
|
+
import './chunk-C3PXY2SW.js';
|
|
20
|
+
import './chunk-LZWZV2ZS.js';
|
|
21
21
|
import './chunk-Q6WTDVH6.js';
|
|
22
|
+
import { t } from './chunk-6QCILIT2.js';
|
|
22
23
|
import { defineComponent } from './chunk-VMCR3S2A.js';
|
|
23
24
|
import { defineStyles, css } from './chunk-XBEL4K33.js';
|
|
24
25
|
import { injectStyles } from './chunk-2GQIZM5Z.js';
|
|
25
26
|
import './chunk-BXMWQIBO.js';
|
|
26
27
|
import './chunk-X66RJAIS.js';
|
|
27
|
-
import { t } from './chunk-6QCILIT2.js';
|
|
28
28
|
|
|
29
29
|
// src/components/field.ts
|
|
30
30
|
var FIELD_GAP_PX = 16;
|
|
@@ -2,12 +2,12 @@ import { V as VariantFn, a as VariantProps } from './variants-B4stUBnY.js';
|
|
|
2
2
|
import { C as ComponentDef } from './define-D5u3F5Dj.js';
|
|
3
3
|
import './t.js';
|
|
4
4
|
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const figureDef: ComponentDef<"figure", "label" | "sub" | "root" | "value", never>;
|
|
6
|
+
declare const figureVariants: VariantFn<{
|
|
7
7
|
readonly tone: readonly ["neutral", "profit", "loss"];
|
|
8
8
|
}>;
|
|
9
|
-
type
|
|
10
|
-
interface
|
|
9
|
+
type FigureTone = (typeof figureVariants.spec.tone)[number];
|
|
10
|
+
interface FigureProps extends VariantProps<typeof figureVariants> {
|
|
11
11
|
label: string;
|
|
12
12
|
/** The figure (default `—`). */
|
|
13
13
|
value?: string;
|
|
@@ -16,14 +16,14 @@ interface StatProps extends VariantProps<typeof statVariants> {
|
|
|
16
16
|
/** Extra class names (layout hooks). */
|
|
17
17
|
className?: string;
|
|
18
18
|
}
|
|
19
|
-
interface
|
|
19
|
+
interface FigureHandle {
|
|
20
20
|
readonly el: HTMLElement;
|
|
21
21
|
/** A new figure, its tone and its line (`null` hides the line). */
|
|
22
|
-
set(value: string, tone?:
|
|
22
|
+
set(value: string, tone?: FigureTone, sub?: string | null): void;
|
|
23
23
|
destroy(): void;
|
|
24
24
|
}
|
|
25
25
|
/** The tone of a signed figure: a gain, a loss, or neither. */
|
|
26
|
-
declare function toneOf(n: number):
|
|
27
|
-
declare function
|
|
26
|
+
declare function toneOf(n: number): FigureTone;
|
|
27
|
+
declare function createFigure(props: FigureProps): FigureHandle;
|
|
28
28
|
|
|
29
|
-
export { type
|
|
29
|
+
export { type FigureHandle, type FigureProps, type FigureTone, createFigure, figureDef, figureVariants, toneOf };
|
package/dist/figure.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { variants } from './chunk-LZWZV2ZS.js';
|
|
2
|
+
import { h } from './chunk-Q6WTDVH6.js';
|
|
3
|
+
import { t } from './chunk-6QCILIT2.js';
|
|
4
|
+
import { defineComponent } from './chunk-VMCR3S2A.js';
|
|
5
|
+
import { defineStyles, css } from './chunk-XBEL4K33.js';
|
|
6
|
+
import './chunk-2GQIZM5Z.js';
|
|
7
|
+
import './chunk-BXMWQIBO.js';
|
|
8
|
+
import './chunk-X66RJAIS.js';
|
|
9
|
+
|
|
10
|
+
// src/components/figure.ts
|
|
11
|
+
var figureDef = defineComponent({
|
|
12
|
+
name: "figure",
|
|
13
|
+
parts: ["root", "label", "value", "sub"]
|
|
14
|
+
});
|
|
15
|
+
var figureVariants = variants({ tone: ["neutral", "profit", "loss"] });
|
|
16
|
+
function toneOf(n) {
|
|
17
|
+
return n > 0 ? "profit" : n < 0 ? "loss" : "neutral";
|
|
18
|
+
}
|
|
19
|
+
var injectStyles = defineStyles(
|
|
20
|
+
"vela-ui-figure",
|
|
21
|
+
css`@layer vela.ui{[data-slot=figure]:where(:not([hidden])){flex-direction:column;gap:3px;min-width:0;display:flex}[data-slot=figure-label]{color:${t.fg.muted};white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}[data-slot=figure-value]{color:${t.fg.bright};font-variant-numeric:tabular-nums;white-space:nowrap;font-size:14px;font-weight:600}[data-slot=figure-value]:is([data-tone=profit]>*){color:${t.profit}}[data-slot=figure-value]:is([data-tone=loss]>*){color:${t.loss}}[data-slot=figure-sub]{color:${t.fg.muted};font-variant-numeric:tabular-nums;font-size:11px}}`
|
|
22
|
+
);
|
|
23
|
+
function createFigure(props) {
|
|
24
|
+
injectStyles(document);
|
|
25
|
+
const value = h("span", { slot: figureDef.slot("value"), text: props.value ?? "\u2014" });
|
|
26
|
+
const sub = h("span", { slot: figureDef.slot("sub"), text: props.sub ?? "" });
|
|
27
|
+
sub.hidden = !props.sub;
|
|
28
|
+
const el = h("div", { className: props.className, slot: figureDef.slot("root"), attrs: figureVariants(props) }, h("span", { slot: figureDef.slot("label"), text: props.label }), value, sub);
|
|
29
|
+
return {
|
|
30
|
+
el,
|
|
31
|
+
set(next, tone = "neutral", line = null) {
|
|
32
|
+
value.textContent = next;
|
|
33
|
+
el.setAttribute("data-tone", tone);
|
|
34
|
+
sub.textContent = line ?? "";
|
|
35
|
+
sub.hidden = !line;
|
|
36
|
+
},
|
|
37
|
+
destroy: () => el.remove()
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { createFigure, figureDef, figureVariants, toneOf };
|
package/dist/glyph-select.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { GlyphSelect, WIDTH_FIELD_OPTIONS, closeWidthPopover, createGlyphSelect, glyphSelectController, glyphSelectDef, lineWidthGlyph, widthField, widthFieldOptions } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-B5ZSRUDQ.js';
|
|
1
|
+
export { GlyphSelect, WIDTH_FIELD_OPTIONS, closeWidthPopover, createGlyphSelect, glyphSelectController, glyphSelectDef, lineWidthGlyph, widthField, widthFieldOptions } from './chunk-YT2BSP7O.js';
|
|
2
|
+
import './chunk-BWSOMG3G.js';
|
|
4
3
|
import './chunk-J2QJATCD.js';
|
|
5
4
|
import './chunk-S7USVSYP.js';
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-RH53NQGE.js';
|
|
7
6
|
import './chunk-TAKSIV57.js';
|
|
8
7
|
import './chunk-MMTMOV6R.js';
|
|
9
8
|
import './chunk-3Q32K4PE.js';
|
|
10
9
|
import './chunk-A72NWYNP.js';
|
|
10
|
+
import './chunk-C3PXY2SW.js';
|
|
11
11
|
import './chunk-Q6WTDVH6.js';
|
|
12
|
+
import './chunk-6QCILIT2.js';
|
|
12
13
|
import './chunk-VMCR3S2A.js';
|
|
13
14
|
import './chunk-XBEL4K33.js';
|
|
14
15
|
import './chunk-2GQIZM5Z.js';
|
|
15
16
|
import './chunk-BXMWQIBO.js';
|
|
16
17
|
import './chunk-X66RJAIS.js';
|
|
17
|
-
import './chunk-6QCILIT2.js';
|
package/dist/hover-card.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { C as ComponentDef } from './define-D5u3F5Dj.js';
|
|
|
2
2
|
import { PlacementProps, Side } from './placement.js';
|
|
3
3
|
import './t.js';
|
|
4
4
|
|
|
5
|
-
declare const hoverCardDef: ComponentDef<"hover-card", "
|
|
5
|
+
declare const hoverCardDef: ComponentDef<"hover-card", "body" | "title" | "root" | "icon" | "heading" | "description" | "hint", "width" | "shadow" | "radius" | "icon-radius" | "wide-width">;
|
|
6
6
|
interface HoverCardContent {
|
|
7
7
|
title: string;
|
|
8
8
|
description?: string;
|
package/dist/hover-card.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { shortcutKeys } from './chunk-
|
|
2
|
-
import { iconEl } from './chunk-G7IQLY3A.js';
|
|
1
|
+
import { shortcutKeys } from './chunk-FYVQO5TN.js';
|
|
3
2
|
import { viewportRect, placePopover, intersectRects } from './chunk-3Q32K4PE.js';
|
|
3
|
+
import { iconEl } from './chunk-C3PXY2SW.js';
|
|
4
4
|
import { h } from './chunk-Q6WTDVH6.js';
|
|
5
|
+
import { t } from './chunk-6QCILIT2.js';
|
|
5
6
|
import { defineComponent } from './chunk-VMCR3S2A.js';
|
|
6
7
|
import { defineStyles, css } from './chunk-XBEL4K33.js';
|
|
7
8
|
import './chunk-2GQIZM5Z.js';
|
|
8
9
|
import './chunk-BXMWQIBO.js';
|
|
9
10
|
import './chunk-X66RJAIS.js';
|
|
10
|
-
import { t } from './chunk-6QCILIT2.js';
|
|
11
11
|
|
|
12
12
|
// src/components/hover-card.ts
|
|
13
13
|
var hoverCardDef = defineComponent({
|
package/dist/icons.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { icon, iconAt, iconEl, iconMarkup, registerIcon, svg16, svg24, svg24Solid } from './chunk-
|
|
1
|
+
export { icon, iconAt, iconEl, iconMarkup, registerIcon, svg16, svg24, svg24Solid } from './chunk-C3PXY2SW.js';
|
|
2
2
|
import './chunk-X66RJAIS.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { V as VariantFn, a as VariantProps, b as VariantSpec, c as VariantValues
|
|
|
5
5
|
export { C as ComponentDef, d as defineComponent } from './define-D5u3F5Dj.js';
|
|
6
6
|
export { disposeWithin, ownTeardown } from './dispose.js';
|
|
7
7
|
export { Align, CollisionBoundary, PlacementProps, Side, placePopover, zagPositioning } from './placement.js';
|
|
8
|
-
export { ComponentDefs, ComponentSettings, CreateThemeOptions, DARK_CHART, LIGHT_CHART, TOKEN_NAMES, ThemeInput, ThemeSettings, ThemedChart, TokenName, UiTheme, applyTheme, checkTheme, createTheme } from './theme.js';
|
|
8
|
+
export { C as ComponentDefs, a as ComponentSettings, b as CreateThemeOptions, D as DARK_CHART, L as LIGHT_CHART, T as TOKEN_NAMES, c as ThemeInput, d as ThemeSettings, e as ThemedChart, f as TokenName, U as UiTheme, g as applyTheme, h as checkTheme, i as createTheme } from './theme-TefB8vtl.js';
|
|
9
9
|
export { ChartTheme } from './tokens.js';
|
|
10
10
|
export { LAYER_ORDER, injectLayerOrder } from './styles.js';
|
|
11
11
|
import './badge.js';
|
|
@@ -13,6 +13,7 @@ import './bar-chart.js';
|
|
|
13
13
|
import './button.js';
|
|
14
14
|
import './callout-bubble.js';
|
|
15
15
|
import './popover.js';
|
|
16
|
+
import './card.js';
|
|
16
17
|
import './color-picker.js';
|
|
17
18
|
import './i18n.js';
|
|
18
19
|
import './data-table.js';
|
|
@@ -33,7 +34,7 @@ import '@zag-js/menu';
|
|
|
33
34
|
import './number-input.js';
|
|
34
35
|
import './scatter-chart.js';
|
|
35
36
|
import './sparkline.js';
|
|
36
|
-
import './
|
|
37
|
+
import './figure.js';
|
|
37
38
|
import './checkbox.js';
|
|
38
39
|
import './collapsible.js';
|
|
39
40
|
import './tabs.js';
|
|
@@ -48,4 +49,5 @@ import './switch.js';
|
|
|
48
49
|
import './toggle-group.js';
|
|
49
50
|
import './tooltip.js';
|
|
50
51
|
import '@zag-js/tooltip';
|
|
52
|
+
import './treemap.js';
|
|
51
53
|
import './color.js';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { DARK_CHART, LIGHT_CHART, TOKEN_NAMES, applyTheme, checkTheme, createTheme } from './chunk-V2Q4MRMS.js';
|
|
1
|
+
export { DARK_CHART, LIGHT_CHART, TOKEN_NAMES, applyTheme, checkTheme, createTheme } from './chunk-RH53NQGE.js';
|
|
3
2
|
import './chunk-TAKSIV57.js';
|
|
4
3
|
import './chunk-MMTMOV6R.js';
|
|
5
4
|
export { placePopover, zagPositioning } from './chunk-3Q32K4PE.js';
|
|
6
5
|
export { disposeWithin, ownTeardown } from './chunk-A72NWYNP.js';
|
|
6
|
+
export { variants } from './chunk-LZWZV2ZS.js';
|
|
7
7
|
export { addSlot, append, h } from './chunk-Q6WTDVH6.js';
|
|
8
|
+
export { t, tokenNames } from './chunk-6QCILIT2.js';
|
|
8
9
|
export { defineComponent } from './chunk-VMCR3S2A.js';
|
|
9
10
|
export { css, defineStyles } from './chunk-XBEL4K33.js';
|
|
10
11
|
export { LAYER_ORDER, injectLayerOrder } from './chunk-2GQIZM5Z.js';
|
|
11
12
|
import './chunk-BXMWQIBO.js';
|
|
12
13
|
import './chunk-X66RJAIS.js';
|
|
13
|
-
export { t, tokenNames } from './chunk-6QCILIT2.js';
|
package/dist/input-group.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface InputGroupAddon {
|
|
|
20
20
|
onClick: (e: MouseEvent) => void;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
declare const inputGroupDef: ComponentDef<"input-group", "
|
|
23
|
+
declare const inputGroupDef: ComponentDef<"input-group", "text" | "root" | "control" | "addon", "height" | "radius" | "height-sm" | "focus-ring">;
|
|
24
24
|
declare const inputGroupVariants: VariantFn<{
|
|
25
25
|
readonly size: readonly ["md", "sm"];
|
|
26
26
|
}>;
|
package/dist/input-group.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createButton } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { createButton } from './chunk-DXDCKZ2M.js';
|
|
2
|
+
import './chunk-FYVQO5TN.js';
|
|
3
|
+
import { iconEl } from './chunk-C3PXY2SW.js';
|
|
3
4
|
import { variants } from './chunk-LZWZV2ZS.js';
|
|
4
|
-
import { iconEl } from './chunk-G7IQLY3A.js';
|
|
5
5
|
import { h } from './chunk-Q6WTDVH6.js';
|
|
6
|
+
import { t } from './chunk-6QCILIT2.js';
|
|
6
7
|
import { defineComponent } from './chunk-VMCR3S2A.js';
|
|
7
8
|
import { defineStyles, css } from './chunk-XBEL4K33.js';
|
|
8
9
|
import './chunk-2GQIZM5Z.js';
|
|
9
10
|
import './chunk-BXMWQIBO.js';
|
|
10
11
|
import './chunk-X66RJAIS.js';
|
|
11
|
-
import { t } from './chunk-6QCILIT2.js';
|
|
12
12
|
|
|
13
13
|
// src/components/input-group.ts
|
|
14
14
|
var inputGroupDef = defineComponent({
|
package/dist/input.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Input, TEXT_CSS, TEXT_STYLE_ID, createInput, inputController, inputDef, inputVariants } from './chunk-
|
|
1
|
+
export { Input, TEXT_CSS, TEXT_STYLE_ID, createInput, inputController, inputDef, inputVariants } from './chunk-5BJV5FY5.js';
|
|
2
2
|
import './chunk-LZWZV2ZS.js';
|
|
3
3
|
import './chunk-Q6WTDVH6.js';
|
|
4
|
+
import './chunk-6QCILIT2.js';
|
|
4
5
|
import './chunk-VMCR3S2A.js';
|
|
5
6
|
import './chunk-XBEL4K33.js';
|
|
6
7
|
import './chunk-2GQIZM5Z.js';
|
|
7
8
|
import './chunk-BXMWQIBO.js';
|
|
8
9
|
import './chunk-X66RJAIS.js';
|
|
9
|
-
import './chunk-6QCILIT2.js';
|
package/dist/item.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { a as VariantProps, V as VariantFn } from './variants-B4stUBnY.js';
|
|
|
3
3
|
import { C as ComponentDef } from './define-D5u3F5Dj.js';
|
|
4
4
|
import './t.js';
|
|
5
5
|
|
|
6
|
-
declare const itemDef: ComponentDef<"item", "
|
|
6
|
+
declare const itemDef: ComponentDef<"item", "meta" | "title" | "root" | "group" | "content" | "actions" | "description" | "media", "radius" | "gap">;
|
|
7
7
|
declare const itemVariants: VariantFn<{
|
|
8
8
|
readonly variant: readonly ["default", "outline", "muted"];
|
|
9
9
|
readonly size: readonly ["default", "sm"];
|
package/dist/item.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { iconEl } from './chunk-C3PXY2SW.js';
|
|
1
2
|
import { variants } from './chunk-LZWZV2ZS.js';
|
|
2
|
-
import { iconEl } from './chunk-G7IQLY3A.js';
|
|
3
3
|
import { h, append } from './chunk-Q6WTDVH6.js';
|
|
4
|
+
import { t } from './chunk-6QCILIT2.js';
|
|
4
5
|
import { defineComponent } from './chunk-VMCR3S2A.js';
|
|
5
6
|
import { defineStyles, css } from './chunk-XBEL4K33.js';
|
|
6
7
|
import './chunk-2GQIZM5Z.js';
|
|
7
8
|
import './chunk-BXMWQIBO.js';
|
|
8
9
|
import './chunk-X66RJAIS.js';
|
|
9
|
-
import { t } from './chunk-6QCILIT2.js';
|
|
10
10
|
|
|
11
11
|
// src/components/item.ts
|
|
12
12
|
var itemDef = defineComponent({
|
package/dist/kbd.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ComponentDef } from './define-D5u3F5Dj.js';
|
|
2
2
|
import './t.js';
|
|
3
3
|
|
|
4
|
-
declare const kbdDef: ComponentDef<"kbd", "root", "
|
|
4
|
+
declare const kbdDef: ComponentDef<"kbd", "root", "shadow" | "radius">;
|
|
5
5
|
interface KbdProps {
|
|
6
6
|
/** The key's label (`Alt`, `⌘`, `K`). */
|
|
7
7
|
text: string;
|
package/dist/kbd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { createKbd, kbdDef, shortcutKeys } from './chunk-
|
|
1
|
+
export { createKbd, kbdDef, shortcutKeys } from './chunk-FYVQO5TN.js';
|
|
2
2
|
import './chunk-Q6WTDVH6.js';
|
|
3
|
+
import './chunk-6QCILIT2.js';
|
|
3
4
|
import './chunk-VMCR3S2A.js';
|
|
4
5
|
import './chunk-XBEL4K33.js';
|
|
5
6
|
import './chunk-2GQIZM5Z.js';
|
|
6
7
|
import './chunk-BXMWQIBO.js';
|
|
7
8
|
import './chunk-X66RJAIS.js';
|
|
8
|
-
import './chunk-6QCILIT2.js';
|
package/dist/line-chart.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ComponentDef } from './define-D5u3F5Dj.js';
|
|
2
2
|
import './t.js';
|
|
3
3
|
|
|
4
|
-
declare const lineChartDef: ComponentDef<"line-chart", "
|
|
4
|
+
declare const lineChartDef: ComponentDef<"line-chart", "area" | "label" | "line" | "root" | "tip" | "dot", "tip-radius" | "tip-shadow" | "tip-z" | "tip-bg" | "stroke-width">;
|
|
5
5
|
interface LinePoint {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
package/dist/line-chart.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { chartFrame, niceStep, showTip, escapeXml } from './chunk-A2FJ7Y7D.js';
|
|
2
|
+
import { t } from './chunk-6QCILIT2.js';
|
|
2
3
|
import { defineComponent } from './chunk-VMCR3S2A.js';
|
|
3
4
|
import { defineStyles, css } from './chunk-XBEL4K33.js';
|
|
4
5
|
import './chunk-2GQIZM5Z.js';
|
|
5
6
|
import './chunk-BXMWQIBO.js';
|
|
6
7
|
import { pageUid } from './chunk-X66RJAIS.js';
|
|
7
|
-
import { t } from './chunk-6QCILIT2.js';
|
|
8
8
|
|
|
9
9
|
// src/components/line-chart.ts
|
|
10
10
|
var lineChartDef = defineComponent({
|