tamga-ui 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.
- package/LICENSE +21 -0
- package/README.md +172 -0
- package/dist/blocks/count-row.d.ts +29 -0
- package/dist/blocks/count-row.d.ts.map +1 -0
- package/dist/blocks/count-row.js +19 -0
- package/dist/blocks/filter-bar.d.ts +123 -0
- package/dist/blocks/filter-bar.d.ts.map +1 -0
- package/dist/blocks/filter-bar.js +74 -0
- package/dist/blocks/index.d.ts +24 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +23 -0
- package/dist/blocks/save-bar.d.ts +31 -0
- package/dist/blocks/save-bar.d.ts.map +1 -0
- package/dist/blocks/save-bar.js +21 -0
- package/dist/components/a11y.d.ts +21 -0
- package/dist/components/a11y.d.ts.map +1 -0
- package/dist/components/a11y.js +159 -0
- package/dist/components/advanced-input.d.ts +115 -0
- package/dist/components/advanced-input.d.ts.map +1 -0
- package/dist/components/advanced-input.js +189 -0
- package/dist/components/avatar.d.ts +63 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +54 -0
- package/dist/components/badge.d.ts +37 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +29 -0
- package/dist/components/bar.d.ts +32 -0
- package/dist/components/bar.d.ts.map +1 -0
- package/dist/components/bar.js +33 -0
- package/dist/components/button.d.ts +45 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +56 -0
- package/dist/components/chart.d.ts +43 -0
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +41 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +16 -0
- package/dist/components/chrome.d.ts +87 -0
- package/dist/components/chrome.d.ts.map +1 -0
- package/dist/components/chrome.js +107 -0
- package/dist/components/combobox.d.ts +31 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.js +62 -0
- package/dist/components/control-base.d.ts +7 -0
- package/dist/components/control-base.d.ts.map +1 -0
- package/dist/components/control-base.js +6 -0
- package/dist/components/data-table.d.ts +68 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +50 -0
- package/dist/components/date-picker.d.ts +52 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +73 -0
- package/dist/components/disclosure.d.ts +31 -0
- package/dist/components/disclosure.d.ts.map +1 -0
- package/dist/components/disclosure.js +32 -0
- package/dist/components/display.d.ts +188 -0
- package/dist/components/display.d.ts.map +1 -0
- package/dist/components/display.js +190 -0
- package/dist/components/empty-state.d.ts +150 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state.js +113 -0
- package/dist/components/error-state.d.ts +38 -0
- package/dist/components/error-state.d.ts.map +1 -0
- package/dist/components/error-state.js +16 -0
- package/dist/components/file-upload.d.ts +34 -0
- package/dist/components/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload.js +34 -0
- package/dist/components/gauge.d.ts +47 -0
- package/dist/components/gauge.d.ts.map +1 -0
- package/dist/components/gauge.js +65 -0
- package/dist/components/icon.d.ts +32 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/icon.js +20 -0
- package/dist/components/icons.d.ts +19 -0
- package/dist/components/icons.d.ts.map +1 -0
- package/dist/components/icons.js +39 -0
- package/dist/components/input.d.ts +35 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +41 -0
- package/dist/components/layout.d.ts +133 -0
- package/dist/components/layout.d.ts.map +1 -0
- package/dist/components/layout.js +132 -0
- package/dist/components/link.d.ts +22 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/link.js +2 -0
- package/dist/components/live-scope.d.ts +15 -0
- package/dist/components/live-scope.d.ts.map +1 -0
- package/dist/components/live-scope.js +67 -0
- package/dist/components/log-view.d.ts +34 -0
- package/dist/components/log-view.d.ts.map +1 -0
- package/dist/components/log-view.js +30 -0
- package/dist/components/number-input.d.ts +26 -0
- package/dist/components/number-input.d.ts.map +1 -0
- package/dist/components/number-input.js +57 -0
- package/dist/components/overlay.d.ts +257 -0
- package/dist/components/overlay.d.ts.map +1 -0
- package/dist/components/overlay.js +276 -0
- package/dist/components/pagination.d.ts +38 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +46 -0
- package/dist/components/pie.d.ts +40 -0
- package/dist/components/pie.d.ts.map +1 -0
- package/dist/components/pie.js +74 -0
- package/dist/components/primitives.d.ts +96 -0
- package/dist/components/primitives.d.ts.map +1 -0
- package/dist/components/primitives.js +81 -0
- package/dist/components/progress.d.ts +29 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +16 -0
- package/dist/components/radio-group.d.ts +17 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +23 -0
- package/dist/components/rail-link.d.ts +24 -0
- package/dist/components/rail-link.d.ts.map +1 -0
- package/dist/components/rail-link.js +24 -0
- package/dist/components/rich-text.d.ts +51 -0
- package/dist/components/rich-text.d.ts.map +1 -0
- package/dist/components/rich-text.js +147 -0
- package/dist/components/section.d.ts +15 -0
- package/dist/components/section.d.ts.map +1 -0
- package/dist/components/section.js +8 -0
- package/dist/components/segmented.d.ts +13 -0
- package/dist/components/segmented.d.ts.map +1 -0
- package/dist/components/segmented.js +12 -0
- package/dist/components/skeleton.d.ts +69 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +67 -0
- package/dist/components/slider.d.ts +18 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +15 -0
- package/dist/components/sparkline.d.ts +17 -0
- package/dist/components/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline.js +19 -0
- package/dist/components/spinner.d.ts +15 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +22 -0
- package/dist/components/stacked-bar.d.ts +21 -0
- package/dist/components/stacked-bar.d.ts.map +1 -0
- package/dist/components/stacked-bar.js +41 -0
- package/dist/components/surface.d.ts +76 -0
- package/dist/components/surface.d.ts.map +1 -0
- package/dist/components/surface.js +49 -0
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +13 -0
- package/dist/components/tabs.d.ts +47 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +12 -0
- package/dist/components/timeline-strip.d.ts +19 -0
- package/dist/components/timeline-strip.d.ts.map +1 -0
- package/dist/components/timeline-strip.js +14 -0
- package/dist/components/tone.d.ts +58 -0
- package/dist/components/tone.d.ts.map +1 -0
- package/dist/components/tone.js +70 -0
- package/dist/components/tree-select.d.ts +26 -0
- package/dist/components/tree-select.d.ts.map +1 -0
- package/dist/components/tree-select.js +59 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +70 -0
- package/dist/kit.css +2248 -0
- package/dist/lib/cn.d.ts +10 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +12 -0
- package/dist/lib/color.d.ts +68 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +134 -0
- package/dist/lib/palette.d.ts +84 -0
- package/dist/lib/palette.d.ts.map +1 -0
- package/dist/lib/palette.js +193 -0
- package/dist/lib/scroll-lock.d.ts +19 -0
- package/dist/lib/scroll-lock.d.ts.map +1 -0
- package/dist/lib/scroll-lock.js +33 -0
- package/dist/patterns/app-shell.d.ts +36 -0
- package/dist/patterns/app-shell.d.ts.map +1 -0
- package/dist/patterns/app-shell.js +14 -0
- package/dist/patterns/auth-template.d.ts +36 -0
- package/dist/patterns/auth-template.d.ts.map +1 -0
- package/dist/patterns/auth-template.js +40 -0
- package/dist/patterns/detail-template.d.ts +52 -0
- package/dist/patterns/detail-template.d.ts.map +1 -0
- package/dist/patterns/detail-template.js +11 -0
- package/dist/patterns/index.d.ts +18 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/patterns/index.js +17 -0
- package/dist/patterns/list-template.d.ts +32 -0
- package/dist/patterns/list-template.d.ts.map +1 -0
- package/dist/patterns/list-template.js +8 -0
- package/dist/patterns/overview-template.d.ts +26 -0
- package/dist/patterns/overview-template.d.ts.map +1 -0
- package/dist/patterns/overview-template.js +8 -0
- package/dist/patterns/public-template.d.ts +28 -0
- package/dist/patterns/public-template.d.ts.map +1 -0
- package/dist/patterns/public-template.js +7 -0
- package/dist/patterns/settings-template.d.ts +50 -0
- package/dist/patterns/settings-template.d.ts.map +1 -0
- package/dist/patterns/settings-template.js +33 -0
- package/dist/patterns/shared.d.ts +40 -0
- package/dist/patterns/shared.d.ts.map +1 -0
- package/dist/patterns/shared.js +29 -0
- package/dist/patterns/wizard-template.d.ts +28 -0
- package/dist/patterns/wizard-template.d.ts.map +1 -0
- package/dist/patterns/wizard-template.js +15 -0
- package/dist/styles.css +5 -0
- package/dist/theme.css +812 -0
- package/package.json +87 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tone scale — layer 3 of the palette.
|
|
3
|
+
*
|
|
4
|
+
* Gerekçe: docs/gerekce/06-isaret-ve-ton.md
|
|
5
|
+
*/
|
|
6
|
+
export const tones = {
|
|
7
|
+
positive: {
|
|
8
|
+
fg: "var(--color-resolved)",
|
|
9
|
+
/* the classic status-strip green */
|
|
10
|
+
mark: "var(--color-resolved)",
|
|
11
|
+
bg: "var(--color-resolved-bg)",
|
|
12
|
+
},
|
|
13
|
+
caution: {
|
|
14
|
+
fg: "var(--color-warn)",
|
|
15
|
+
mark: "var(--color-warn)",
|
|
16
|
+
bg: "var(--color-warn-bg)",
|
|
17
|
+
},
|
|
18
|
+
danger: {
|
|
19
|
+
fg: "var(--color-critical)",
|
|
20
|
+
mark: "var(--color-critical)",
|
|
21
|
+
bg: "var(--color-critical-bg)",
|
|
22
|
+
},
|
|
23
|
+
neutral: {
|
|
24
|
+
fg: "var(--color-silent)",
|
|
25
|
+
mark: "var(--color-line)",
|
|
26
|
+
bg: "var(--color-chart-fill)",
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
export function toneOf(tone) {
|
|
30
|
+
return tones[tone];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* How loudly a tone asks for the screen's single pulse (see live-scope).
|
|
34
|
+
*
|
|
35
|
+
* `null` means "never pulses". Only `danger` breathes, and the reasoning is the
|
|
36
|
+
* same in every domain the kit serves: too few signals is a smaller failure
|
|
37
|
+
* than a signal that has stopped meaning anything. `caution` already carries
|
|
38
|
+
* its own colour; the pulse stays reserved for "look here, now".
|
|
39
|
+
*
|
|
40
|
+
* A product that ranks its own states more finely passes an explicit rank
|
|
41
|
+
* instead — this is the DEFAULT, not the policy.
|
|
42
|
+
*/
|
|
43
|
+
export const TONE_RANK = {
|
|
44
|
+
danger: 90,
|
|
45
|
+
caution: null,
|
|
46
|
+
positive: null,
|
|
47
|
+
neutral: null,
|
|
48
|
+
};
|
|
49
|
+
export function rankOf(tone, override) {
|
|
50
|
+
return override === undefined ? TONE_RANK[tone] : override;
|
|
51
|
+
}
|
|
52
|
+
/** Layer 1 — neutral ramp, for anything that is not reporting a state. */
|
|
53
|
+
export const neutral = {
|
|
54
|
+
page: "var(--color-page)",
|
|
55
|
+
surface: "var(--color-shell)",
|
|
56
|
+
hover: "var(--color-hover)",
|
|
57
|
+
chartFill: "var(--color-chart-fill)",
|
|
58
|
+
line: "var(--color-line)",
|
|
59
|
+
edge: "var(--color-edge)",
|
|
60
|
+
lineStrong: "var(--color-edge)",
|
|
61
|
+
muted: "var(--color-ink-faint)",
|
|
62
|
+
body: "var(--color-ink-soft)",
|
|
63
|
+
title: "var(--color-ink)",
|
|
64
|
+
};
|
|
65
|
+
/** Layer 2 — interaction only. */
|
|
66
|
+
export const accent = {
|
|
67
|
+
fg: "var(--color-accent)",
|
|
68
|
+
bg: "var(--color-accent-bg)",
|
|
69
|
+
ink: "var(--color-accent-ink)",
|
|
70
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ağaç seçici — HİYERARŞİK ÇOKLU SEÇİM.
|
|
3
|
+
*
|
|
4
|
+
* Gerekçe: docs/gerekce/01-form-ve-girdi.md
|
|
5
|
+
*/
|
|
6
|
+
export type TreeNode = {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
children?: TreeNode[];
|
|
10
|
+
};
|
|
11
|
+
export declare function TreeSelect({ nodes, value, onChange, labels, searchable, height, className, }: {
|
|
12
|
+
nodes: readonly TreeNode[];
|
|
13
|
+
/** The ids of the selected nodes. TR: Seçili düğüm id'leri. */
|
|
14
|
+
value: readonly string[];
|
|
15
|
+
onChange: (next: string[]) => void;
|
|
16
|
+
labels: {
|
|
17
|
+
search: string;
|
|
18
|
+
empty: string;
|
|
19
|
+
expand: string;
|
|
20
|
+
collapse: string;
|
|
21
|
+
};
|
|
22
|
+
searchable?: boolean;
|
|
23
|
+
height?: number;
|
|
24
|
+
className?: string;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=tree-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["../../src/components/tree-select.tsx"],"names":[],"mappings":"AAQA;;;;GAIG;AAEH,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB,CAAC;AAoBF,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,MAAM,EACN,UAAiB,EACjB,MAAY,EACZ,SAAS,GACV,EAAE;IACD,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC3B,+DAA+D;IAC/D,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAqHA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo, useState } from "react";
|
|
4
|
+
import { cn } from "../lib/cn.js";
|
|
5
|
+
import { Checkbox } from "./checkbox.js";
|
|
6
|
+
import { Icon } from "./icon.js";
|
|
7
|
+
import { CaretDown, CaretRight, Search } from "./icons.js";
|
|
8
|
+
/** Bir düğümün ve altındaki her şeyin id'leri. */
|
|
9
|
+
function altIdler(node) {
|
|
10
|
+
return [node.id, ...(node.children ?? []).flatMap(altIdler)];
|
|
11
|
+
}
|
|
12
|
+
/** Aramaya uyan düğümler ve onların ataları. */
|
|
13
|
+
function suz(nodes, q) {
|
|
14
|
+
if (!q)
|
|
15
|
+
return nodes;
|
|
16
|
+
const alt = q.toLocaleLowerCase("tr");
|
|
17
|
+
const gez = (n) => {
|
|
18
|
+
const cocuklar = (n.children ?? []).map(gez).filter((c) => c !== null);
|
|
19
|
+
const kendi = n.label.toLocaleLowerCase("tr").includes(alt);
|
|
20
|
+
if (!kendi && cocuklar.length === 0)
|
|
21
|
+
return null;
|
|
22
|
+
return { ...n, children: kendi ? n.children : cocuklar };
|
|
23
|
+
};
|
|
24
|
+
return nodes.map(gez).filter((n) => n !== null);
|
|
25
|
+
}
|
|
26
|
+
export function TreeSelect({ nodes, value, onChange, labels, searchable = true, height = 320, className, }) {
|
|
27
|
+
const [q, setQ] = useState("");
|
|
28
|
+
/* Kapalı olanlar tutuluyor, açık olanlar değil: varsayılan AÇIK.
|
|
29
|
+
Bir kategori ağacı kapalı açıldığında kullanıcı önce her dalı tıklamak
|
|
30
|
+
zorunda kalıyor, ve aradığı şeyin nerede olduğunu bilmiyor. */
|
|
31
|
+
const [kapali, setKapali] = useState(new Set());
|
|
32
|
+
const gorunen = useMemo(() => suz([...nodes], q), [nodes, q]);
|
|
33
|
+
const secili = useMemo(() => new Set(value), [value]);
|
|
34
|
+
function cevir(node, acikMi) {
|
|
35
|
+
const etkilenen = altIdler(node);
|
|
36
|
+
const next = new Set(secili);
|
|
37
|
+
for (const id of etkilenen) {
|
|
38
|
+
if (acikMi)
|
|
39
|
+
next.add(id);
|
|
40
|
+
else
|
|
41
|
+
next.delete(id);
|
|
42
|
+
}
|
|
43
|
+
onChange([...next]);
|
|
44
|
+
}
|
|
45
|
+
function Dal({ node, derinlik }) {
|
|
46
|
+
const cocuklar = node.children ?? [];
|
|
47
|
+
const acik = !kapali.has(node.id);
|
|
48
|
+
const isaretli = secili.has(node.id);
|
|
49
|
+
return (_jsxs("li", { role: "none", children: [_jsxs("div", { className: "flex items-center gap-1.5 rounded-(--radius-mark) py-1 hover:bg-[var(--color-hover)]", style: { paddingLeft: `${derinlik * 18}px` }, children: [cocuklar.length > 0 ? (_jsx("button", { type: "button", className: "tamga-mini-btn size-5 shrink-0", "aria-label": acik ? labels.collapse : labels.expand, "aria-expanded": acik, onClick: () => {
|
|
50
|
+
const next = new Set(kapali);
|
|
51
|
+
if (acik)
|
|
52
|
+
next.add(node.id);
|
|
53
|
+
else
|
|
54
|
+
next.delete(node.id);
|
|
55
|
+
setKapali(next);
|
|
56
|
+
}, children: _jsx(Icon, { icon: acik ? CaretDown : CaretRight, size: "xs" }) })) : (_jsx("span", { className: "size-5 shrink-0", "aria-hidden": true })), _jsx(Checkbox, { className: "min-w-0 flex-1", checked: isaretli, onChange: (v) => cevir(node, v), label: _jsx("span", { className: cn("truncate", isaretli ? "text-ink" : "text-ink-soft"), children: node.label }) })] }), acik && cocuklar.length > 0 && (_jsx("ul", { role: "group", children: cocuklar.map((c) => (_jsx(Dal, { node: c, derinlik: derinlik + 1 }, c.id))) }))] }));
|
|
57
|
+
}
|
|
58
|
+
return (_jsxs("div", { className: cn("flex flex-col gap-2", className), children: [searchable && (_jsxs("span", { className: "relative flex items-center", children: [_jsx(Icon, { icon: Search, size: "xs", "aria-hidden": true, className: "pointer-events-none absolute left-2.5 text-ink-faint" }), _jsx("input", { type: "search", className: "tamga-input w-full", "data-leading": "true", placeholder: labels.search, value: q, onChange: (e) => setQ(e.target.value) })] })), _jsx("div", { className: "overflow-y-auto p-1", style: { maxHeight: height }, children: gorunen.length === 0 ? (_jsx("p", { className: "py-6 text-center text-ink-faint", children: labels.empty })) : (_jsx("ul", { role: "tree", className: "flex flex-col", children: gorunen.map((n) => (_jsx(Dal, { node: n, derinlik: 0 }, n.id))) })) })] }));
|
|
59
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kit's public surface.
|
|
3
|
+
*
|
|
4
|
+
* Everything a consumer can import lives here. A component that is not exported
|
|
5
|
+
* from this file is an implementation detail and may change without a major
|
|
6
|
+
* version — that is the contract the `exports` map in package.json enforces.
|
|
7
|
+
*/
|
|
8
|
+
export { cn } from "./lib/cn.js";
|
|
9
|
+
export { type Tone, type ToneStyle, tones, toneOf, TONE_RANK, rankOf, neutral, accent, } from "./components/tone.js";
|
|
10
|
+
export { useFocusTrap, useListKeys } from "./components/a11y.js";
|
|
11
|
+
export { Button, buttonVariants, type ButtonProps, IconButton, iconButtonVariants, MiniButton, } from "./components/button.js";
|
|
12
|
+
export { Input, inputVariants, type InputProps, Textarea, type TextareaProps } from "./components/input.js";
|
|
13
|
+
export { Checkbox } from "./components/checkbox.js";
|
|
14
|
+
export { RadioGroup } from "./components/radio-group.js";
|
|
15
|
+
export { Switch } from "./components/switch.js";
|
|
16
|
+
export { Segmented } from "./components/segmented.js";
|
|
17
|
+
export { Tabs, type TabItem } from "./components/tabs.js";
|
|
18
|
+
export { RichText, type RichTextFormat } from "./components/rich-text.js";
|
|
19
|
+
export { TreeSelect, type TreeNode } from "./components/tree-select.js";
|
|
20
|
+
export { Card, CardHead, CardBody, Table, Label } from "./components/surface.js";
|
|
21
|
+
export { Pagination, pageWindow } from "./components/pagination.js";
|
|
22
|
+
export { SortHeader, SelectAll, SelectRow, SelectionBar, type SortDirection } from "./components/data-table.js";
|
|
23
|
+
export { Sparkline } from "./components/sparkline.js";
|
|
24
|
+
export { TimelineStrip } from "./components/timeline-strip.js";
|
|
25
|
+
export { NumberInput } from "./components/number-input.js";
|
|
26
|
+
export { Combobox, type ComboOption } from "./components/combobox.js";
|
|
27
|
+
export { FileUpload, type UploadItem } from "./components/file-upload.js";
|
|
28
|
+
export { DatePicker, Calendar, type DateISO, type DateRange } from "./components/date-picker.js";
|
|
29
|
+
export { Avatar, AvatarStack } from "./components/avatar.js";
|
|
30
|
+
export { StatusChip, Delta, Dot } from "./components/badge.js";
|
|
31
|
+
export { Icon, type IconSize } from "./components/icon.js";
|
|
32
|
+
export { Progress } from "./components/progress.js";
|
|
33
|
+
export { SectionHead } from "./components/section.js";
|
|
34
|
+
export { Spinner } from "./components/spinner.js";
|
|
35
|
+
export { ScoreRing, ScoreMeter, ScoreMatrix, type ScoreProps } from "./components/gauge.js";
|
|
36
|
+
export { Separator, Beacon, Alert, Breadcrumb, Field, Select, Sheet, } from "./components/primitives.js";
|
|
37
|
+
export { DropdownMenu, type MenuItem, Popover, Tooltip, Toast, type ToastTone, ToastViewport, ConfirmDialog, Dialog, } from "./components/overlay.js";
|
|
38
|
+
export { type Art, type EmptyLayout, type EmptyRoute, SaysBubble, EmptyNote, EmptyState, EmptyTile, EmptyBlank, } from "./components/empty-state.js";
|
|
39
|
+
export { ErrorState } from "./components/error-state.js";
|
|
40
|
+
export { LiveScope, useLiveClaim } from "./components/live-scope.js";
|
|
41
|
+
export { Skeleton, SkeletonText, SkeletonRows, SkeletonKpi, SkeletonCard, SkeletonTable, SkeletonOptions, SkeletonPanel, SkeletonPageBand, } from "./components/skeleton.js";
|
|
42
|
+
export { Surface, ScrollX, Rise, Swap, ListRow, CellActions, PageBand, Link, } from "./components/layout.js";
|
|
43
|
+
export { ThemeToggle, LocaleSwitcher, LogoTile } from "./components/chrome.js";
|
|
44
|
+
export { RailLink } from "./components/rail-link.js";
|
|
45
|
+
export { Slider } from "./components/slider.js";
|
|
46
|
+
export { Accordion, Collapsible } from "./components/disclosure.js";
|
|
47
|
+
export { Descriptions, Kpi, KpiGrid, Code, Kbd, Badge, Steps } from "./components/display.js";
|
|
48
|
+
export { PasswordInput, SecretField, TagsInput, MultiSelect, ScheduleInput, } from "./components/advanced-input.js";
|
|
49
|
+
export { LineChart, type Series } from "./components/chart.js";
|
|
50
|
+
export { PieChart, type PieSlice } from "./components/pie.js";
|
|
51
|
+
export { BarChart, type Bar } from "./components/bar.js";
|
|
52
|
+
export { StackedBarChart, type StackSeries } from "./components/stacked-bar.js";
|
|
53
|
+
export { LogView, type LogLine } from "./components/log-view.js";
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,EACL,MAAM,EACN,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,GACP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGjE,OAAO,EACL,MAAM,EACN,cAAc,EACd,KAAK,WAAW,EAChB,UAAU,EACV,kBAAkB,EAClB,UAAU,GACX,MAAM,wBAAw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AAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGhD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAG9F,OAAO,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,EACX,aAAa,GACd,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,KAAK,GAAG,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kit's public surface.
|
|
3
|
+
*
|
|
4
|
+
* Everything a consumer can import lives here. A component that is not exported
|
|
5
|
+
* from this file is an implementation detail and may change without a major
|
|
6
|
+
* version — that is the contract the `exports` map in package.json enforces.
|
|
7
|
+
*/
|
|
8
|
+
/* --- foundations ------------------------------------------------------- */
|
|
9
|
+
export { cn } from "./lib/cn.js";
|
|
10
|
+
export { tones, toneOf, TONE_RANK, rankOf, neutral, accent, } from "./components/tone.js";
|
|
11
|
+
export { useFocusTrap, useListKeys } from "./components/a11y.js";
|
|
12
|
+
/* --- controls ---------------------------------------------------------- */
|
|
13
|
+
export { Button, buttonVariants, IconButton, iconButtonVariants, MiniButton, } from "./components/button.js";
|
|
14
|
+
export { Input, inputVariants, Textarea } from "./components/input.js";
|
|
15
|
+
/* --- seçim kontrolleri -------------------------------------------------- */
|
|
16
|
+
export { Checkbox } from "./components/checkbox.js";
|
|
17
|
+
export { RadioGroup } from "./components/radio-group.js";
|
|
18
|
+
export { Switch } from "./components/switch.js";
|
|
19
|
+
export { Segmented } from "./components/segmented.js";
|
|
20
|
+
export { Tabs } from "./components/tabs.js";
|
|
21
|
+
export { RichText } from "./components/rich-text.js";
|
|
22
|
+
export { TreeSelect } from "./components/tree-select.js";
|
|
23
|
+
/* --- yüzeyler ----------------------------------------------------------- */
|
|
24
|
+
export { Card, CardHead, CardBody, Table, Label } from "./components/surface.js";
|
|
25
|
+
/* --- veri ---------------------------------------------------------------- */
|
|
26
|
+
export { Pagination, pageWindow } from "./components/pagination.js";
|
|
27
|
+
export { SortHeader, SelectAll, SelectRow, SelectionBar } from "./components/data-table.js";
|
|
28
|
+
export { Sparkline } from "./components/sparkline.js";
|
|
29
|
+
export { TimelineStrip } from "./components/timeline-strip.js";
|
|
30
|
+
/* --- gelişmiş girdi ------------------------------------------------------ */
|
|
31
|
+
export { NumberInput } from "./components/number-input.js";
|
|
32
|
+
export { Combobox } from "./components/combobox.js";
|
|
33
|
+
export { FileUpload } from "./components/file-upload.js";
|
|
34
|
+
export { DatePicker, Calendar } from "./components/date-picker.js";
|
|
35
|
+
/* --- display ----------------------------------------------------------- */
|
|
36
|
+
export { Avatar, AvatarStack } from "./components/avatar.js";
|
|
37
|
+
export { StatusChip, Delta, Dot } from "./components/badge.js";
|
|
38
|
+
export { Icon } from "./components/icon.js";
|
|
39
|
+
export { Progress } from "./components/progress.js";
|
|
40
|
+
export { SectionHead } from "./components/section.js";
|
|
41
|
+
export { Spinner } from "./components/spinner.js";
|
|
42
|
+
export { ScoreRing, ScoreMeter, ScoreMatrix } from "./components/gauge.js";
|
|
43
|
+
/* --- structure & overlays ---------------------------------------------- */
|
|
44
|
+
export { Separator, Beacon, Alert, Breadcrumb, Field, Select, Sheet, } from "./components/primitives.js";
|
|
45
|
+
export { DropdownMenu, Popover, Tooltip, Toast, ToastViewport, ConfirmDialog, Dialog, } from "./components/overlay.js";
|
|
46
|
+
/* --- boş durum sistemi -------------------------------------------------- */
|
|
47
|
+
export { SaysBubble, EmptyNote, EmptyState, EmptyTile, EmptyBlank, } from "./components/empty-state.js";
|
|
48
|
+
/* --- states ------------------------------------------------------------ */
|
|
49
|
+
export { ErrorState } from "./components/error-state.js";
|
|
50
|
+
export { LiveScope, useLiveClaim } from "./components/live-scope.js";
|
|
51
|
+
export { Skeleton, SkeletonText, SkeletonRows, SkeletonKpi, SkeletonCard, SkeletonTable, SkeletonOptions, SkeletonPanel, SkeletonPageBand, } from "./components/skeleton.js";
|
|
52
|
+
/* --- düzen ve kabuk ---------------------------------------------------- *
|
|
53
|
+
* Buradan aşağısı, sınıfı olup bileşeni olmayan şeylerin kapandığı yer.
|
|
54
|
+
* Gerekçesi `components/layout.tsx`'in başında. */
|
|
55
|
+
export { Surface, ScrollX, Rise, Swap, ListRow, CellActions, PageBand, Link, } from "./components/layout.js";
|
|
56
|
+
export { ThemeToggle, LocaleSwitcher, LogoTile } from "./components/chrome.js";
|
|
57
|
+
export { RailLink } from "./components/rail-link.js";
|
|
58
|
+
export { Slider } from "./components/slider.js";
|
|
59
|
+
/* --- açılır bölümler --------------------------------------------------- */
|
|
60
|
+
export { Accordion, Collapsible } from "./components/disclosure.js";
|
|
61
|
+
/* --- okunacak şeyler --------------------------------------------------- */
|
|
62
|
+
export { Descriptions, Kpi, KpiGrid, Code, Kbd, Badge, Steps } from "./components/display.js";
|
|
63
|
+
/* --- gelişmiş girdiler ------------------------------------------------- */
|
|
64
|
+
export { PasswordInput, SecretField, TagsInput, MultiSelect, ScheduleInput, } from "./components/advanced-input.js";
|
|
65
|
+
/* --- grafik ve günlük -------------------------------------------------- */
|
|
66
|
+
export { LineChart } from "./components/chart.js";
|
|
67
|
+
export { PieChart } from "./components/pie.js";
|
|
68
|
+
export { BarChart } from "./components/bar.js";
|
|
69
|
+
export { StackedBarChart } from "./components/stacked-bar.js";
|
|
70
|
+
export { LogView } from "./components/log-view.js";
|