@hanzo/ui 8.27.19 → 8.27.22
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/dist/backends/gui/item.cjs +2 -3
- package/dist/backends/gui/item.d.ts.map +1 -1
- package/dist/backends/gui/item.js +1 -2
- package/dist/backends/gui/item.js.map +1 -1
- package/dist/backends/gui/press.cjs +29 -0
- package/dist/backends/gui/press.d.ts +28 -0
- package/dist/backends/gui/press.d.ts.map +1 -0
- package/dist/backends/gui/press.js +26 -0
- package/dist/backends/gui/press.js.map +1 -0
- package/dist/backends/gui/toggle-group.cjs +2 -3
- package/dist/backends/gui/toggle-group.d.ts.map +1 -1
- package/dist/backends/gui/toggle-group.js +1 -2
- package/dist/backends/gui/toggle-group.js.map +1 -1
- package/dist/backends/gui/toggle.cjs +3 -4
- package/dist/backends/gui/toggle.d.ts.map +1 -1
- package/dist/backends/gui/toggle.js +1 -2
- package/dist/backends/gui/toggle.js.map +1 -1
- package/dist/catalog/Shelf.cjs +76 -0
- package/dist/catalog/Shelf.d.ts +55 -0
- package/dist/catalog/Shelf.d.ts.map +1 -0
- package/dist/catalog/Shelf.js +74 -0
- package/dist/catalog/Shelf.js.map +1 -0
- package/dist/catalog/Tile.cjs +72 -0
- package/dist/catalog/Tile.d.ts +56 -0
- package/dist/catalog/Tile.d.ts.map +1 -0
- package/dist/catalog/Tile.js +67 -0
- package/dist/catalog/Tile.js.map +1 -0
- package/dist/catalog/index.cjs +23 -0
- package/dist/catalog/index.d.ts +16 -0
- package/dist/catalog/index.d.ts.map +1 -0
- package/dist/catalog/index.js +16 -0
- package/dist/catalog/index.js.map +1 -0
- package/dist/chat/Home.cjs +30 -0
- package/dist/chat/Home.d.ts +35 -0
- package/dist/chat/Home.d.ts.map +1 -0
- package/dist/chat/Home.js +28 -0
- package/dist/chat/Home.js.map +1 -0
- package/dist/chat/SessionRail.cjs +165 -37
- package/dist/chat/SessionRail.d.ts +92 -14
- package/dist/chat/SessionRail.d.ts.map +1 -1
- package/dist/chat/SessionRail.js +165 -39
- package/dist/chat/SessionRail.js.map +1 -1
- package/dist/chat/index.cjs +6 -1
- package/dist/chat/index.d.ts +2 -1
- package/dist/chat/index.d.ts.map +1 -1
- package/dist/chat/index.js +2 -1
- package/dist/chat/index.js.map +1 -1
- package/dist/gallery.cjs +78 -2
- package/dist/gallery.d.ts +13 -0
- package/dist/gallery.d.ts.map +1 -1
- package/dist/gallery.html +47 -3
- package/dist/gallery.js +78 -3
- package/dist/gallery.js.map +1 -1
- package/dist/models/ModelSelector.cjs +19 -4
- package/dist/models/ModelSelector.d.ts +10 -1
- package/dist/models/ModelSelector.d.ts.map +1 -1
- package/dist/models/ModelSelector.js +20 -5
- package/dist/models/ModelSelector.js.map +1 -1
- package/dist/models/catalog.cjs +19 -0
- package/dist/models/catalog.d.ts +13 -0
- package/dist/models/catalog.d.ts.map +1 -1
- package/dist/models/catalog.js +18 -0
- package/dist/models/catalog.js.map +1 -1
- package/dist/models/index.cjs +2 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/product/ChipSelect.cjs +2 -3
- package/dist/product/ChipSelect.d.ts.map +1 -1
- package/dist/product/ChipSelect.js +1 -2
- package/dist/product/ChipSelect.js.map +1 -1
- package/dist/product/MenuRow.cjs +2 -1
- package/dist/product/MenuRow.d.ts +11 -7
- package/dist/product/MenuRow.d.ts.map +1 -1
- package/dist/product/MenuRow.js +3 -2
- package/dist/product/MenuRow.js.map +1 -1
- package/dist/product/OrgSwitcher.cjs +16 -5
- package/dist/product/OrgSwitcher.d.ts.map +1 -1
- package/dist/product/OrgSwitcher.js +16 -5
- package/dist/product/OrgSwitcher.js.map +1 -1
- package/dist/product/UserMenu.cjs +19 -27
- package/dist/product/UserMenu.d.ts +2 -21
- package/dist/product/UserMenu.d.ts.map +1 -1
- package/dist/product/UserMenu.js +23 -31
- package/dist/product/UserMenu.js.map +1 -1
- package/dist/product/account.cjs +37 -0
- package/dist/product/account.d.ts +55 -0
- package/dist/product/account.d.ts.map +1 -0
- package/dist/product/account.js +35 -0
- package/dist/product/account.js.map +1 -0
- package/dist/product/menu/roving.cjs +4 -1
- package/dist/product/menu/roving.d.ts +8 -3
- package/dist/product/menu/roving.d.ts.map +1 -1
- package/dist/product/menu/roving.js +4 -1
- package/dist/product/menu/roving.js.map +1 -1
- package/dist/settings/Section.cjs +71 -0
- package/dist/settings/Section.d.ts +78 -0
- package/dist/settings/Section.d.ts.map +1 -0
- package/dist/settings/Section.js +62 -0
- package/dist/settings/Section.js.map +1 -0
- package/dist/settings/Settings.cjs +54 -0
- package/dist/settings/Settings.d.ts +50 -0
- package/dist/settings/Settings.d.ts.map +1 -0
- package/dist/settings/Settings.js +52 -0
- package/dist/settings/Settings.js.map +1 -0
- package/dist/settings/index.cjs +26 -0
- package/dist/settings/index.d.ts +15 -0
- package/dist/settings/index.d.ts.map +1 -0
- package/dist/settings/index.js +15 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/styles.css +44 -0
- package/package.json +19 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Settings = Settings;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
/**
|
|
7
|
+
* Settings — a settings page: every section listed by group, and the chosen one
|
|
8
|
+
* in a readable column.
|
|
9
|
+
*
|
|
10
|
+
* Settings │ General
|
|
11
|
+
* Settings │ ─────────────────────────
|
|
12
|
+
* General ◀ │ (the section, as `children`, 760px at most)
|
|
13
|
+
* Account │
|
|
14
|
+
* Code │
|
|
15
|
+
* Environments │
|
|
16
|
+
*
|
|
17
|
+
* From `md` up the sections are a 220px column on the left, grouped under quiet
|
|
18
|
+
* labels, the current one marked `aria-current="page"`. Below `md` that column
|
|
19
|
+
* is gone and the same sections are a row of chips over the content — every
|
|
20
|
+
* section one press away on a phone, with no drawer to open first.
|
|
21
|
+
*
|
|
22
|
+
* Presentational: which section is open comes in as `active`, a choice goes out
|
|
23
|
+
* through `onPick`, and the section itself is the host's `children` — the page
|
|
24
|
+
* never learns what a section holds. A section is its own address in the host,
|
|
25
|
+
* so it can be linked to and survives a reload.
|
|
26
|
+
*
|
|
27
|
+
* The section's own parts — heading, groups, bordered lists, fields, the quiet
|
|
28
|
+
* lines — are in `./Section`, so every section reads as one page.
|
|
29
|
+
*/
|
|
30
|
+
const gui_1 = require("@hanzo/gui");
|
|
31
|
+
const react_1 = require("react");
|
|
32
|
+
const press_1 = require("../backends/gui/press.cjs");
|
|
33
|
+
const slot_1 = require("../backends/gui/slot.cjs");
|
|
34
|
+
/** The nav column's width, px. */
|
|
35
|
+
const NAV = 220;
|
|
36
|
+
/** The content column's measure, px — a form reads badly any wider. */
|
|
37
|
+
const MEASURE = 760;
|
|
38
|
+
function Settings({ entries, groups, active, onPick, title = 'Settings', children, ...rest }) {
|
|
39
|
+
const id = (0, react_1.useId)();
|
|
40
|
+
const order = groups ?? [...new Set(entries.map((e) => e.group))];
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(gui_1.XStack, { ...(0, slot_1.slot)('settings'), flex: 1, minH: 0, minW: 0, ...rest, children: [(0, jsx_runtime_1.jsx)(gui_1.YStack, { ...(0, slot_1.slot)('settings-nav'), role: "navigation", "aria-label": title, width: NAV, shrink: 0, minH: 0, borderRightWidth: 1, borderColor: "$borderColor", "$max-md": { display: 'none' }, children: (0, jsx_runtime_1.jsx)(gui_1.ScrollView, { flex: 1, minH: 0, overflowY: "auto", showsVerticalScrollIndicator: false, children: (0, jsx_runtime_1.jsxs)(gui_1.YStack, { px: "$2", py: "$4", gap: "$4", children: [(0, jsx_runtime_1.jsx)(gui_1.SizableText, { size: "$4", color: "$ink", px: "$2", children: title }), order.map((g, i) => {
|
|
42
|
+
const list = entries.filter((e) => e.group === g);
|
|
43
|
+
if (!list.length)
|
|
44
|
+
return null;
|
|
45
|
+
const head = `${id}-group-${i}`;
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(gui_1.YStack, { gap: "$0.5", children: [(0, jsx_runtime_1.jsx)(gui_1.SizableText, { id: head, size: "$1", color: "$soft", px: "$2", pb: "$1", children: g }), (0, jsx_runtime_1.jsx)(gui_1.YStack, { role: "list", "aria-labelledby": head, gap: "$0.5", children: list.map((e) => {
|
|
47
|
+
const on = e.id === active;
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(gui_1.YStack, { role: "listitem", children: (0, jsx_runtime_1.jsx)(gui_1.XStack, { ...(0, slot_1.slot)('settings-entry'), ...(0, press_1.press)(() => onPick(e.id)), "aria-current": on ? 'page' : undefined, px: "$2", py: "$1.5", rounded: "$2", cursor: "pointer", bg: on ? '$hover' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: press_1.RING, children: (0, jsx_runtime_1.jsx)(gui_1.SizableText, { size: "$2", color: on ? '$ink' : '$soft', numberOfLines: 1, children: e.label }) }) }, e.id));
|
|
49
|
+
}) })] }, g));
|
|
50
|
+
})] }) }) }), (0, jsx_runtime_1.jsxs)(gui_1.ScrollView, { flex: 1, minW: 0, minH: 0, overflowY: "auto", children: [(0, jsx_runtime_1.jsx)(gui_1.XStack, { ...(0, slot_1.slot)('settings-chips'), role: "navigation", "aria-label": title, flexWrap: "wrap", gap: "$1.5", px: "$4", pt: "$3", $md: { display: 'none' }, children: entries.map((e) => {
|
|
51
|
+
const on = e.id === active;
|
|
52
|
+
return ((0, jsx_runtime_1.jsx)(gui_1.XStack, { ...(0, slot_1.slot)('settings-chip'), ...(0, press_1.press)(() => onPick(e.id)), "aria-current": on ? 'page' : undefined, px: "$2.5", py: "$1", rounded: "$10", cursor: "pointer", borderWidth: 1, borderColor: on ? '$ink' : '$borderColor', hoverStyle: { bg: '$hover' }, focusVisibleStyle: press_1.RING, children: (0, jsx_runtime_1.jsx)(gui_1.SizableText, { size: "$1", color: on ? '$ink' : '$soft', children: e.label }) }, e.id));
|
|
53
|
+
}) }), (0, jsx_runtime_1.jsx)(gui_1.YStack, { ...(0, slot_1.slot)('settings-body'), width: "100%", maxW: MEASURE, self: "center", px: "$5", py: "$6", children: children })] })] }));
|
|
54
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings — a settings page: every section listed by group, and the chosen one
|
|
3
|
+
* in a readable column.
|
|
4
|
+
*
|
|
5
|
+
* Settings │ General
|
|
6
|
+
* Settings │ ─────────────────────────
|
|
7
|
+
* General ◀ │ (the section, as `children`, 760px at most)
|
|
8
|
+
* Account │
|
|
9
|
+
* Code │
|
|
10
|
+
* Environments │
|
|
11
|
+
*
|
|
12
|
+
* From `md` up the sections are a 220px column on the left, grouped under quiet
|
|
13
|
+
* labels, the current one marked `aria-current="page"`. Below `md` that column
|
|
14
|
+
* is gone and the same sections are a row of chips over the content — every
|
|
15
|
+
* section one press away on a phone, with no drawer to open first.
|
|
16
|
+
*
|
|
17
|
+
* Presentational: which section is open comes in as `active`, a choice goes out
|
|
18
|
+
* through `onPick`, and the section itself is the host's `children` — the page
|
|
19
|
+
* never learns what a section holds. A section is its own address in the host,
|
|
20
|
+
* so it can be linked to and survives a reload.
|
|
21
|
+
*
|
|
22
|
+
* The section's own parts — heading, groups, bordered lists, fields, the quiet
|
|
23
|
+
* lines — are in `./Section`, so every section reads as one page.
|
|
24
|
+
*/
|
|
25
|
+
import { XStack } from '@hanzo/gui';
|
|
26
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
27
|
+
type Row = Omit<ComponentProps<typeof XStack>, 'children'>;
|
|
28
|
+
/** One section of the page, as the nav lists it. */
|
|
29
|
+
export interface Entry {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
/** The group it is listed under. */
|
|
33
|
+
group: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SettingsProps<E extends Entry = Entry> extends Row {
|
|
36
|
+
/** Every section, in the order the page lists them. */
|
|
37
|
+
entries: readonly E[];
|
|
38
|
+
/** The groups, in order. Omitted, they are the entries' own, in first-seen order. */
|
|
39
|
+
groups?: readonly string[];
|
|
40
|
+
/** The open section's id. */
|
|
41
|
+
active: E['id'];
|
|
42
|
+
onPick: (id: E['id']) => void;
|
|
43
|
+
/** The page's name — the nav's heading and its landmark name. */
|
|
44
|
+
title?: string;
|
|
45
|
+
/** The open section. */
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export declare function Settings<E extends Entry>({ entries, groups, active, onPick, title, children, ...rest }: SettingsProps<E>): import("react").JSX.Element;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=Settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../src/settings/Settings.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAA2B,MAAM,EAAU,MAAM,YAAY,CAAA;AACpE,OAAO,EAAS,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKlE,KAAK,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC,CAAA;AAQ1D,oDAAoD;AACpD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,CAAE,SAAQ,GAAG;IACjE,uDAAuD;IACvD,OAAO,EAAE,SAAS,CAAC,EAAE,CAAA;IACrB,qFAAqF;IACrF,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B,6BAA6B;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAA;IACf,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,CAAA;IAC7B,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wBAAwB;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,KAAK,EAAE,EACxC,OAAO,EACP,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAkB,EAClB,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,aAAa,CAAC,CAAC,CAAC,+BA2GlB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* Settings — a settings page: every section listed by group, and the chosen one
|
|
5
|
+
* in a readable column.
|
|
6
|
+
*
|
|
7
|
+
* Settings │ General
|
|
8
|
+
* Settings │ ─────────────────────────
|
|
9
|
+
* General ◀ │ (the section, as `children`, 760px at most)
|
|
10
|
+
* Account │
|
|
11
|
+
* Code │
|
|
12
|
+
* Environments │
|
|
13
|
+
*
|
|
14
|
+
* From `md` up the sections are a 220px column on the left, grouped under quiet
|
|
15
|
+
* labels, the current one marked `aria-current="page"`. Below `md` that column
|
|
16
|
+
* is gone and the same sections are a row of chips over the content — every
|
|
17
|
+
* section one press away on a phone, with no drawer to open first.
|
|
18
|
+
*
|
|
19
|
+
* Presentational: which section is open comes in as `active`, a choice goes out
|
|
20
|
+
* through `onPick`, and the section itself is the host's `children` — the page
|
|
21
|
+
* never learns what a section holds. A section is its own address in the host,
|
|
22
|
+
* so it can be linked to and survives a reload.
|
|
23
|
+
*
|
|
24
|
+
* The section's own parts — heading, groups, bordered lists, fields, the quiet
|
|
25
|
+
* lines — are in `./Section`, so every section reads as one page.
|
|
26
|
+
*/
|
|
27
|
+
import { ScrollView, SizableText, XStack, YStack } from '@hanzo/gui';
|
|
28
|
+
import { useId } from 'react';
|
|
29
|
+
import { press, RING } from '../backends/gui/press.js';
|
|
30
|
+
import { slot } from '../backends/gui/slot.js';
|
|
31
|
+
/** The nav column's width, px. */
|
|
32
|
+
const NAV = 220;
|
|
33
|
+
/** The content column's measure, px — a form reads badly any wider. */
|
|
34
|
+
const MEASURE = 760;
|
|
35
|
+
export function Settings({ entries, groups, active, onPick, title = 'Settings', children, ...rest }) {
|
|
36
|
+
const id = useId();
|
|
37
|
+
const order = groups ?? [...new Set(entries.map((e) => e.group))];
|
|
38
|
+
return (_jsxs(XStack, { ...slot('settings'), flex: 1, minH: 0, minW: 0, ...rest, children: [_jsx(YStack, { ...slot('settings-nav'), role: "navigation", "aria-label": title, width: NAV, shrink: 0, minH: 0, borderRightWidth: 1, borderColor: "$borderColor", "$max-md": { display: 'none' }, children: _jsx(ScrollView, { flex: 1, minH: 0, overflowY: "auto", showsVerticalScrollIndicator: false, children: _jsxs(YStack, { px: "$2", py: "$4", gap: "$4", children: [_jsx(SizableText, { size: "$4", color: "$ink", px: "$2", children: title }), order.map((g, i) => {
|
|
39
|
+
const list = entries.filter((e) => e.group === g);
|
|
40
|
+
if (!list.length)
|
|
41
|
+
return null;
|
|
42
|
+
const head = `${id}-group-${i}`;
|
|
43
|
+
return (_jsxs(YStack, { gap: "$0.5", children: [_jsx(SizableText, { id: head, size: "$1", color: "$soft", px: "$2", pb: "$1", children: g }), _jsx(YStack, { role: "list", "aria-labelledby": head, gap: "$0.5", children: list.map((e) => {
|
|
44
|
+
const on = e.id === active;
|
|
45
|
+
return (_jsx(YStack, { role: "listitem", children: _jsx(XStack, { ...slot('settings-entry'), ...press(() => onPick(e.id)), "aria-current": on ? 'page' : undefined, px: "$2", py: "$1.5", rounded: "$2", cursor: "pointer", bg: on ? '$hover' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: _jsx(SizableText, { size: "$2", color: on ? '$ink' : '$soft', numberOfLines: 1, children: e.label }) }) }, e.id));
|
|
46
|
+
}) })] }, g));
|
|
47
|
+
})] }) }) }), _jsxs(ScrollView, { flex: 1, minW: 0, minH: 0, overflowY: "auto", children: [_jsx(XStack, { ...slot('settings-chips'), role: "navigation", "aria-label": title, flexWrap: "wrap", gap: "$1.5", px: "$4", pt: "$3", $md: { display: 'none' }, children: entries.map((e) => {
|
|
48
|
+
const on = e.id === active;
|
|
49
|
+
return (_jsx(XStack, { ...slot('settings-chip'), ...press(() => onPick(e.id)), "aria-current": on ? 'page' : undefined, px: "$2.5", py: "$1", rounded: "$10", cursor: "pointer", borderWidth: 1, borderColor: on ? '$ink' : '$borderColor', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: _jsx(SizableText, { size: "$1", color: on ? '$ink' : '$soft', children: e.label }) }, e.id));
|
|
50
|
+
}) }), _jsx(YStack, { ...slot('settings-body'), width: "100%", maxW: MEASURE, self: "center", px: "$5", py: "$6", children: children })] })] }));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=Settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../src/settings/Settings.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACpE,OAAO,EAAE,KAAK,EAAuC,MAAM,OAAO,CAAA;AAElE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAI3C,kCAAkC;AAClC,MAAM,GAAG,GAAG,GAAG,CAAA;AAEf,uEAAuE;AACvE,MAAM,OAAO,GAAG,GAAG,CAAA;AAwBnB,MAAM,UAAU,QAAQ,CAAkB,EACxC,OAAO,EACP,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,GAAG,UAAU,EA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AC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,YACzF,QAAQ,GACF,IACE,IACN,CACV,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Soft = exports.Row = exports.Once = exports.Note = exports.Heading = exports.Group = exports.Field = exports.Card = exports.Settings = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @hanzo/ui/settings — a settings page, and what its sections are drawn from.
|
|
6
|
+
*
|
|
7
|
+
* `Settings` is the page: the sections grouped in a column from `md` up, a row
|
|
8
|
+
* of chips below it, and the open section in a 760px column. The section is the
|
|
9
|
+
* host's `children`, drawn from `Heading`, `Group`, `Card` + `Row`, `Field`,
|
|
10
|
+
* `Soft`, `Note` and `Once`, so every section of every surface reads as one
|
|
11
|
+
* page.
|
|
12
|
+
*
|
|
13
|
+
* Props in, callbacks out: which section is open is the host's (its address),
|
|
14
|
+
* and nothing here fetches.
|
|
15
|
+
*/
|
|
16
|
+
var Settings_1 = require("./Settings.cjs");
|
|
17
|
+
Object.defineProperty(exports, "Settings", { enumerable: true, get: function () { return Settings_1.Settings; } });
|
|
18
|
+
var Section_1 = require("./Section.cjs");
|
|
19
|
+
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Section_1.Card; } });
|
|
20
|
+
Object.defineProperty(exports, "Field", { enumerable: true, get: function () { return Section_1.Field; } });
|
|
21
|
+
Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return Section_1.Group; } });
|
|
22
|
+
Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return Section_1.Heading; } });
|
|
23
|
+
Object.defineProperty(exports, "Note", { enumerable: true, get: function () { return Section_1.Note; } });
|
|
24
|
+
Object.defineProperty(exports, "Once", { enumerable: true, get: function () { return Section_1.Once; } });
|
|
25
|
+
Object.defineProperty(exports, "Row", { enumerable: true, get: function () { return Section_1.Row; } });
|
|
26
|
+
Object.defineProperty(exports, "Soft", { enumerable: true, get: function () { return Section_1.Soft; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hanzo/ui/settings — a settings page, and what its sections are drawn from.
|
|
3
|
+
*
|
|
4
|
+
* `Settings` is the page: the sections grouped in a column from `md` up, a row
|
|
5
|
+
* of chips below it, and the open section in a 760px column. The section is the
|
|
6
|
+
* host's `children`, drawn from `Heading`, `Group`, `Card` + `Row`, `Field`,
|
|
7
|
+
* `Soft`, `Note` and `Once`, so every section of every surface reads as one
|
|
8
|
+
* page.
|
|
9
|
+
*
|
|
10
|
+
* Props in, callbacks out: which section is open is the host's (its address),
|
|
11
|
+
* and nothing here fetches.
|
|
12
|
+
*/
|
|
13
|
+
export { Settings, type Entry, type SettingsProps } from './Settings.js';
|
|
14
|
+
export { Card, Field, Group, Heading, Note, Once, Row, Soft, type GroupProps, type HeadingProps, type OnceProps, type RowProps, } from './Section.js';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACrE,OAAO,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,QAAQ,GACd,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hanzo/ui/settings — a settings page, and what its sections are drawn from.
|
|
3
|
+
*
|
|
4
|
+
* `Settings` is the page: the sections grouped in a column from `md` up, a row
|
|
5
|
+
* of chips below it, and the open section in a 760px column. The section is the
|
|
6
|
+
* host's `children`, drawn from `Heading`, `Group`, `Card` + `Row`, `Field`,
|
|
7
|
+
* `Soft`, `Note` and `Once`, so every section of every surface reads as one
|
|
8
|
+
* page.
|
|
9
|
+
*
|
|
10
|
+
* Props in, callbacks out: which section is open is the host's (its address),
|
|
11
|
+
* and nothing here fetches.
|
|
12
|
+
*/
|
|
13
|
+
export { Settings } from './Settings.js';
|
|
14
|
+
export { Card, Field, Group, Heading, Note, Once, Row, Soft, } from './Section.js';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,QAAQ,EAAkC,MAAM,YAAY,CAAA;AACrE,OAAO,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,GAKL,MAAM,WAAW,CAAA"}
|
package/dist/styles.css
CHANGED
|
@@ -3139,6 +3139,7 @@ a svg,
|
|
|
3139
3139
|
:root.t_dark .t_light .t_yellow_SwitchThumb, :root.t_dark .t_light .t_yellow_Tooltip, :root.t_dark .t_light .t_yellow_accent, :root.t_light .t_yellow_SwitchThumb, :root.t_light .t_yellow_Tooltip, :root.t_light .t_yellow_accent, .tm_xxt {--accentBackground:var(--t16);--accentColor:var(--t26);--background0:var(--t1051);--background02:var(--t1036);--background04:var(--t1037);--background06:var(--t1038);--background08:var(--t1039);--color1:var(--t1050);--color2:var(--t1049);--color3:var(--t1048);--color4:var(--t595);--color5:var(--t1047);--color6:var(--t1046);--color7:var(--t1045);--color8:var(--t1044);--color9:var(--t1043);--color10:var(--t1042);--color11:var(--t1041);--color12:var(--t1040);--color0:var(--t1035);--color02:var(--t1068);--color04:var(--t1069);--color06:var(--t1070);--color08:var(--t1071);--color:var(--t1040);--colorHover:var(--t1040);--colorPress:var(--t1040);--colorFocus:var(--t1071);--background:var(--t1049);--backgroundHover:var(--t1050);--backgroundPress:var(--t1048);--backgroundFocus:var(--t1048);--backgroundActive:var(--t1049);--borderColor:var(--t595);--borderColorHover:var(--t1048);--borderColorFocus:var(--t595);--borderColorPress:var(--t1047);--placeholderColor:var(--t1043);--colorTransparent:var(--t1035);--color01:var(--t1056);--color0075:var(--t1057);--color005:var(--t1058);--color0025:var(--t1059);--color002:var(--t1060);--color001:var(--t1061);--background01:var(--t1062);--background0075:var(--t1063);--background005:var(--t1064);--background0025:var(--t1065);--background002:var(--t1066);--background001:var(--t1067);--outlineColor:var(--t739);}
|
|
3140
3140
|
.t_light_yellow_SwitchThumb ::selection, .t_light_yellow_Tooltip ::selection, .t_light_yellow_accent ::selection{background:var(--color5);color:var(--color11)}
|
|
3141
3141
|
:root ._WebkitBoxOrient-vertical{-webkit-box-orient:vertical;}
|
|
3142
|
+
:root ._WebkitLineClamp-2{-webkit-line-clamp:2;}
|
|
3142
3143
|
:root ._WebkitLineClamp-3{-webkit-line-clamp:3;}
|
|
3143
3144
|
:root ._aspectRatio-1--6{aspect-ratio:1.6;}
|
|
3144
3145
|
:root ._aspectRatio-1--77777777771627090080{aspect-ratio:1.7777777777777777;}
|
|
@@ -3201,6 +3202,7 @@ a svg,
|
|
|
3201
3202
|
@media (hover) {:root:root ._bg-0hover-panel:hover{background-color:var(--panel) !important;}}
|
|
3202
3203
|
@media (hover) {:root:root ._bg-0hover-raised:hover{background-color:var(--raised) !important;}}
|
|
3203
3204
|
@media (hover) {:root:root ._bg-0hover-rim:hover{background-color:var(--rim) !important;}}
|
|
3205
|
+
@media (hover) {:root:root ._bg-0hover-transparent:hover{background-color:transparent !important;}}
|
|
3204
3206
|
:root ._bg-accentBackg108704142{background-color:var(--accentBackground);}
|
|
3205
3207
|
:root ._bg-background{background-color:var(--background);}
|
|
3206
3208
|
:root ._bg-backgroundA94988999{background-color:var(--backgroundActive);}
|
|
@@ -3238,6 +3240,8 @@ a svg,
|
|
|
3238
3240
|
@media (hover) {:root:root ._borderBottomColor-0hover-borderColor69916956._borderBottomColor-0hover-borderColor69916956:hover{border-bottom-color:var(--borderColorHover) !important;}}
|
|
3239
3241
|
@media (hover) {:root:root ._borderBottomColor-0hover-bound._borderBottomColor-0hover-bound:hover{border-bottom-color:var(--bound) !important;}}
|
|
3240
3242
|
@media (hover) {:root:root ._borderBottomColor-0hover-dim._borderBottomColor-0hover-dim:hover{border-bottom-color:var(--dim) !important;}}
|
|
3243
|
+
@media (hover) {:root:root ._borderBottomColor-0hover-edge._borderBottomColor-0hover-edge:hover{border-bottom-color:var(--edge) !important;}}
|
|
3244
|
+
@media (hover) {:root:root ._borderBottomColor-0hover-ink._borderBottomColor-0hover-ink:hover{border-bottom-color:var(--ink) !important;}}
|
|
3241
3245
|
@media (hover) {:root:root ._borderBottomColor-0hover-rim._borderBottomColor-0hover-rim:hover{border-bottom-color:var(--rim) !important;}}
|
|
3242
3246
|
@media (hover) {:root:root ._borderBottomColor-0hover-transparent._borderBottomColor-0hover-transparent:hover{border-bottom-color:transparent !important;}}
|
|
3243
3247
|
:root ._borderBottomColor-borderColor._borderBottomColor-borderColor{border-bottom-color:var(--borderColor);}
|
|
@@ -3263,6 +3267,8 @@ a svg,
|
|
|
3263
3267
|
@media (hover) {:root:root ._borderLeftColor-0hover-borderColor69916956._borderLeftColor-0hover-borderColor69916956:hover{border-left-color:var(--borderColorHover) !important;}}
|
|
3264
3268
|
@media (hover) {:root:root ._borderLeftColor-0hover-bound._borderLeftColor-0hover-bound:hover{border-left-color:var(--bound) !important;}}
|
|
3265
3269
|
@media (hover) {:root:root ._borderLeftColor-0hover-dim._borderLeftColor-0hover-dim:hover{border-left-color:var(--dim) !important;}}
|
|
3270
|
+
@media (hover) {:root:root ._borderLeftColor-0hover-edge._borderLeftColor-0hover-edge:hover{border-left-color:var(--edge) !important;}}
|
|
3271
|
+
@media (hover) {:root:root ._borderLeftColor-0hover-ink._borderLeftColor-0hover-ink:hover{border-left-color:var(--ink) !important;}}
|
|
3266
3272
|
@media (hover) {:root:root ._borderLeftColor-0hover-rim._borderLeftColor-0hover-rim:hover{border-left-color:var(--rim) !important;}}
|
|
3267
3273
|
@media (hover) {:root:root ._borderLeftColor-0hover-transparent._borderLeftColor-0hover-transparent:hover{border-left-color:transparent !important;}}
|
|
3268
3274
|
:root ._borderLeftColor-borderColor._borderLeftColor-borderColor{border-left-color:var(--borderColor);}
|
|
@@ -3270,6 +3276,7 @@ a svg,
|
|
|
3270
3276
|
:root ._borderLeftColor-color12._borderLeftColor-color12{border-left-color:var(--color12);}
|
|
3271
3277
|
:root ._borderLeftColor-faint._borderLeftColor-faint{border-left-color:var(--faint);}
|
|
3272
3278
|
:root ._borderLeftColor-green3._borderLeftColor-green3{border-left-color:var(--green3);}
|
|
3279
|
+
:root ._borderLeftColor-ink._borderLeftColor-ink{border-left-color:var(--ink);}
|
|
3273
3280
|
:root ._borderLeftColor-rim._borderLeftColor-rim{border-left-color:var(--rim);}
|
|
3274
3281
|
:root ._borderLeftColor-transparent._borderLeftColor-transparent{border-left-color:transparent;}
|
|
3275
3282
|
:root ._borderLeftWidth-0px._borderLeftWidth-0px{border-left-width:0px;}
|
|
@@ -3286,6 +3293,8 @@ a svg,
|
|
|
3286
3293
|
@media (hover) {:root:root ._brc-0hover-borderColor69916956._brc-0hover-borderColor69916956:hover{border-right-color:var(--borderColorHover) !important;}}
|
|
3287
3294
|
@media (hover) {:root:root ._brc-0hover-bound._brc-0hover-bound:hover{border-right-color:var(--bound) !important;}}
|
|
3288
3295
|
@media (hover) {:root:root ._brc-0hover-dim._brc-0hover-dim:hover{border-right-color:var(--dim) !important;}}
|
|
3296
|
+
@media (hover) {:root:root ._brc-0hover-edge._brc-0hover-edge:hover{border-right-color:var(--edge) !important;}}
|
|
3297
|
+
@media (hover) {:root:root ._brc-0hover-ink._brc-0hover-ink:hover{border-right-color:var(--ink) !important;}}
|
|
3289
3298
|
@media (hover) {:root:root ._brc-0hover-rim._brc-0hover-rim:hover{border-right-color:var(--rim) !important;}}
|
|
3290
3299
|
@media (hover) {:root:root ._brc-0hover-transparent._brc-0hover-transparent:hover{border-right-color:transparent !important;}}
|
|
3291
3300
|
:root ._brc-borderColor._brc-borderColor{border-right-color:var(--borderColor);}
|
|
@@ -3293,6 +3302,7 @@ a svg,
|
|
|
3293
3302
|
:root ._brc-color12._brc-color12{border-right-color:var(--color12);}
|
|
3294
3303
|
:root ._brc-faint._brc-faint{border-right-color:var(--faint);}
|
|
3295
3304
|
:root ._brc-green3._brc-green3{border-right-color:var(--green3);}
|
|
3305
|
+
:root ._brc-ink._brc-ink{border-right-color:var(--ink);}
|
|
3296
3306
|
:root ._brc-rim._brc-rim{border-right-color:var(--rim);}
|
|
3297
3307
|
:root ._brc-transparent._brc-transparent{border-right-color:transparent;}
|
|
3298
3308
|
:root ._brs-solid._brs-solid{border-right-style:solid;}
|
|
@@ -3310,6 +3320,8 @@ a svg,
|
|
|
3310
3320
|
@media (hover) {:root:root ._btc-0hover-borderColor69916956._btc-0hover-borderColor69916956:hover{border-top-color:var(--borderColorHover) !important;}}
|
|
3311
3321
|
@media (hover) {:root:root ._btc-0hover-bound._btc-0hover-bound:hover{border-top-color:var(--bound) !important;}}
|
|
3312
3322
|
@media (hover) {:root:root ._btc-0hover-dim._btc-0hover-dim:hover{border-top-color:var(--dim) !important;}}
|
|
3323
|
+
@media (hover) {:root:root ._btc-0hover-edge._btc-0hover-edge:hover{border-top-color:var(--edge) !important;}}
|
|
3324
|
+
@media (hover) {:root:root ._btc-0hover-ink._btc-0hover-ink:hover{border-top-color:var(--ink) !important;}}
|
|
3313
3325
|
@media (hover) {:root:root ._btc-0hover-rim._btc-0hover-rim:hover{border-top-color:var(--rim) !important;}}
|
|
3314
3326
|
@media (hover) {:root:root ._btc-0hover-transparent._btc-0hover-transparent:hover{border-top-color:transparent !important;}}
|
|
3315
3327
|
:root ._btc-borderColor._btc-borderColor{border-top-color:var(--borderColor);}
|
|
@@ -3317,6 +3329,7 @@ a svg,
|
|
|
3317
3329
|
:root ._btc-color12._btc-color12{border-top-color:var(--color12);}
|
|
3318
3330
|
:root ._btc-faint._btc-faint{border-top-color:var(--faint);}
|
|
3319
3331
|
:root ._btc-green3._btc-green3{border-top-color:var(--green3);}
|
|
3332
|
+
:root ._btc-ink._btc-ink{border-top-color:var(--ink);}
|
|
3320
3333
|
:root ._btc-rim._btc-rim{border-top-color:var(--rim);}
|
|
3321
3334
|
:root ._btc-transparent._btc-transparent{border-top-color:transparent;}
|
|
3322
3335
|
:root ._btlr-0px{border-top-left-radius:0px;}
|
|
@@ -3366,6 +3379,8 @@ a svg,
|
|
|
3366
3379
|
:root ._col-accentColor{color:var(--accentColor);}
|
|
3367
3380
|
:root ._col-bad{color:var(--bad);}
|
|
3368
3381
|
:root ._col-color{color:var(--color);}
|
|
3382
|
+
:root ._col-color11{color:var(--color11);}
|
|
3383
|
+
:root ._col-color12{color:var(--color12);}
|
|
3369
3384
|
:root ._col-faint{color:var(--faint);}
|
|
3370
3385
|
:root ._col-green11{color:var(--green11);}
|
|
3371
3386
|
:root ._col-ink{color:var(--ink);}
|
|
@@ -3402,8 +3417,10 @@ a svg,
|
|
|
3402
3417
|
:root ._fs-f-size-2{font-size:var(--f-size-2);}
|
|
3403
3418
|
:root ._fs-f-size-3{font-size:var(--f-size-3);}
|
|
3404
3419
|
:root ._fs-f-size-4{font-size:var(--f-size-4);}
|
|
3420
|
+
:root ._fs-f-size-5{font-size:var(--f-size-5);}
|
|
3405
3421
|
:root ._fs-f-size-6{font-size:var(--f-size-6);}
|
|
3406
3422
|
:root ._fs-f-size-7{font-size:var(--f-size-7);}
|
|
3423
|
+
:root ._fs-f-size-8{font-size:var(--f-size-8);}
|
|
3407
3424
|
:root ._fs-f-size-9{font-size:var(--f-size-9);}
|
|
3408
3425
|
:root ._fw-500{font-weight:500;}
|
|
3409
3426
|
:root ._fw-600{font-weight:600;}
|
|
@@ -3411,7 +3428,9 @@ a svg,
|
|
|
3411
3428
|
:root ._fw-f-weight-2{font-weight:var(--f-weight-2);}
|
|
3412
3429
|
:root ._fw-f-weight-3{font-weight:var(--f-weight-3);}
|
|
3413
3430
|
:root ._fw-f-weight-4{font-weight:var(--f-weight-4);}
|
|
3431
|
+
:root ._fw-f-weight-6{font-weight:var(--f-weight-6);}
|
|
3414
3432
|
:root ._fw-f-weight-7{font-weight:var(--f-weight-7);}
|
|
3433
|
+
:root ._fw-f-weight-8{font-weight:var(--f-weight-8);}
|
|
3415
3434
|
:root ._fwr-nowrap{flex-wrap:nowrap;}
|
|
3416
3435
|
:root ._fwr-wrap{flex-wrap:wrap;}
|
|
3417
3436
|
:root ._gap-0px{gap:0px;}
|
|
@@ -3420,6 +3439,7 @@ a svg,
|
|
|
3420
3439
|
:root ._gap-24px{gap:24px;}
|
|
3421
3440
|
:root ._gap-2px{gap:2px;}
|
|
3422
3441
|
:root ._gap-8px{gap:8px;}
|
|
3442
|
+
@media (max-width: 767.98px){:root:root:root:root:root:root:root ._gap-_maxmd_c-space-3{gap:var(--c-space-3);}}
|
|
3423
3443
|
@media (min-width: 768px){:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root ._gap-_md_c-space-3{gap:var(--c-space-3);}}
|
|
3424
3444
|
:root ._gap-c-space-0{gap:var(--c-space-0);}
|
|
3425
3445
|
:root ._gap-c-space-0--53{gap:var(--c-space-0--5);}
|
|
@@ -3428,6 +3448,9 @@ a svg,
|
|
|
3428
3448
|
:root ._gap-c-space-2{gap:var(--c-space-2);}
|
|
3429
3449
|
:root ._gap-c-space-2--53{gap:var(--c-space-2--5);}
|
|
3430
3450
|
:root ._gap-c-space-3{gap:var(--c-space-3);}
|
|
3451
|
+
:root ._gap-c-space-4{gap:var(--c-space-4);}
|
|
3452
|
+
:root ._gap-c-space-5{gap:var(--c-space-5);}
|
|
3453
|
+
:root ._gap-c-space-6{gap:var(--c-space-6);}
|
|
3431
3454
|
:root ._gap-calc6pxvar-1380234971{gap:calc(6px * var(--radius-scale, 1));}
|
|
3432
3455
|
:root ._gap-calc8pxvar-1380234971{gap:calc(8px * var(--radius-scale, 1));}
|
|
3433
3456
|
:root ._grow-0{flex-grow:0;}
|
|
@@ -3445,6 +3468,7 @@ a svg,
|
|
|
3445
3468
|
:root ._height-24px{height:24px;}
|
|
3446
3469
|
:root ._height-28px{height:28px;}
|
|
3447
3470
|
:root ._height-32px{height:32px;}
|
|
3471
|
+
:root ._height-34px{height:34px;}
|
|
3448
3472
|
:root ._height-36px{height:36px;}
|
|
3449
3473
|
:root ._height-40px{height:40px;}
|
|
3450
3474
|
:root ._height-44px{height:44px;}
|
|
@@ -3477,16 +3501,21 @@ a svg,
|
|
|
3477
3501
|
:root ._lh-f-lineHeigh112921{line-height:var(--f-lineHeight-2);}
|
|
3478
3502
|
:root ._lh-f-lineHeigh112922{line-height:var(--f-lineHeight-3);}
|
|
3479
3503
|
:root ._lh-f-lineHeigh112923{line-height:var(--f-lineHeight-4);}
|
|
3504
|
+
:root ._lh-f-lineHeigh112924{line-height:var(--f-lineHeight-5);}
|
|
3480
3505
|
:root ._lh-f-lineHeigh112925{line-height:var(--f-lineHeight-6);}
|
|
3481
3506
|
:root ._lh-f-lineHeigh112926{line-height:var(--f-lineHeight-7);}
|
|
3507
|
+
:root ._lh-f-lineHeigh112927{line-height:var(--f-lineHeight-8);}
|
|
3482
3508
|
:root ._lh-f-lineHeigh112928{line-height:var(--f-lineHeight-9);}
|
|
3483
3509
|
:root ._lh-f-lineHeigh3500568{line-height:var(--f-lineHeight-10);}
|
|
3484
3510
|
:root ._lh-f-lineHeigh3500569{line-height:var(--f-lineHeight-11);}
|
|
3485
3511
|
:root ._ls-0--6px{letter-spacing:0.6px;}
|
|
3486
3512
|
:root ._ls-1--5px{letter-spacing:1.5px;}
|
|
3513
|
+
:root ._ls-1px{letter-spacing:1px;}
|
|
3487
3514
|
:root ._ls-f-letterSpa1360334197{letter-spacing:var(--f-letterSpacing-9);}
|
|
3515
|
+
:root ._ls-f-letterSpa1360334198{letter-spacing:var(--f-letterSpacing-8);}
|
|
3488
3516
|
:root ._ls-f-letterSpa1360334199{letter-spacing:var(--f-letterSpacing-7);}
|
|
3489
3517
|
:root ._ls-f-letterSpa1360334200{letter-spacing:var(--f-letterSpacing-6);}
|
|
3518
|
+
:root ._ls-f-letterSpa1360334201{letter-spacing:var(--f-letterSpacing-5);}
|
|
3490
3519
|
:root ._ls-f-letterSpa1360334202{letter-spacing:var(--f-letterSpacing-4);}
|
|
3491
3520
|
:root ._ls-f-letterSpa1360334203{letter-spacing:var(--f-letterSpacing-3);}
|
|
3492
3521
|
:root ._ls-f-letterSpa1360334204{letter-spacing:var(--f-letterSpacing-2);}
|
|
@@ -3502,6 +3531,7 @@ a svg,
|
|
|
3502
3531
|
:root ._maxH-initial{max-height:initial;}
|
|
3503
3532
|
:root ._maxW-0px{max-width:0px;}
|
|
3504
3533
|
:root ._maxW-10037{max-width:100%;}
|
|
3534
|
+
:root ._maxW-1080px{max-width:1080px;}
|
|
3505
3535
|
:root ._maxW-16px{max-width:16px;}
|
|
3506
3536
|
:root ._maxW-180px{max-width:180px;}
|
|
3507
3537
|
:root ._maxW-200px{max-width:200px;}
|
|
@@ -3510,9 +3540,11 @@ a svg,
|
|
|
3510
3540
|
:root ._maxW-360px{max-width:360px;}
|
|
3511
3541
|
:root ._maxW-600px{max-width:600px;}
|
|
3512
3542
|
:root ._maxW-720px{max-width:720px;}
|
|
3543
|
+
:root ._maxW-760px{max-width:760px;}
|
|
3513
3544
|
:root ._maxW-768px{max-width:768px;}
|
|
3514
3545
|
:root ._maxW-8537{max-width:85%;}
|
|
3515
3546
|
:root ._maxW-c-size-1{max-width:var(--c-size-1);}
|
|
3547
|
+
:root ._mb--1px{margin-bottom:-1px;}
|
|
3516
3548
|
:root ._mb-0px{margin-bottom:0px;}
|
|
3517
3549
|
:root ._minH-0px{min-height:0px;}
|
|
3518
3550
|
:root ._minH-16px{min-height:16px;}
|
|
@@ -3587,16 +3619,19 @@ a svg,
|
|
|
3587
3619
|
:root ._pb-7px{padding-bottom:7px;}
|
|
3588
3620
|
:root ._pb-8px{padding-bottom:8px;}
|
|
3589
3621
|
:root ._pb-9px{padding-bottom:9px;}
|
|
3622
|
+
@media (max-width: 767.98px){:root:root:root:root:root:root:root ._pb-_maxmd_c-space-4{padding-bottom:var(--c-space-4);}}
|
|
3590
3623
|
@media (min-width: 768px){:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root ._pb-_md_c-space-3{padding-bottom:var(--c-space-3);}}
|
|
3591
3624
|
@media (min-width: 768px){:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root ._pb-_md_c-space-8{padding-bottom:var(--c-space-8);}}
|
|
3592
3625
|
:root ._pb-c-space-1{padding-bottom:var(--c-space-1);}
|
|
3593
3626
|
:root ._pb-c-space-1--53{padding-bottom:var(--c-space-1--5);}
|
|
3627
|
+
:root ._pb-c-space-10{padding-bottom:var(--c-space-10);}
|
|
3594
3628
|
:root ._pb-c-space-11{padding-bottom:var(--c-space-11);}
|
|
3595
3629
|
:root ._pb-c-space-2{padding-bottom:var(--c-space-2);}
|
|
3596
3630
|
:root ._pb-c-space-2--53{padding-bottom:var(--c-space-2--5);}
|
|
3597
3631
|
:root ._pb-c-space-3{padding-bottom:var(--c-space-3);}
|
|
3598
3632
|
:root ._pb-c-space-3--53{padding-bottom:var(--c-space-3--5);}
|
|
3599
3633
|
:root ._pb-c-space-4{padding-bottom:var(--c-space-4);}
|
|
3634
|
+
:root ._pb-c-space-5{padding-bottom:var(--c-space-5);}
|
|
3600
3635
|
:root ._pb-c-space-6{padding-bottom:var(--c-space-6);}
|
|
3601
3636
|
:root ._pe-boxnone{pointer-events:none !important;}
|
|
3602
3637
|
:root ._pe-none{pointer-events:none !important;}
|
|
@@ -3608,6 +3643,7 @@ a svg,
|
|
|
3608
3643
|
:root ._pl-2px{padding-left:2px;}
|
|
3609
3644
|
:root ._pl-3px{padding-left:3px;}
|
|
3610
3645
|
:root ._pl-8px{padding-left:8px;}
|
|
3646
|
+
@media (max-width: 767.98px){:root:root:root:root:root:root:root ._pl-_maxmd_c-space-4{padding-left:var(--c-space-4);}}
|
|
3611
3647
|
@media (min-width: 768px){:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root ._pl-_md_c-space-4{padding-left:var(--c-space-4);}}
|
|
3612
3648
|
:root ._pl-c-space-1{padding-left:var(--c-space-1);}
|
|
3613
3649
|
:root ._pl-c-space-1--53{padding-left:var(--c-space-1--5);}
|
|
@@ -3615,6 +3651,7 @@ a svg,
|
|
|
3615
3651
|
:root ._pl-c-space-2--53{padding-left:var(--c-space-2--5);}
|
|
3616
3652
|
:root ._pl-c-space-3{padding-left:var(--c-space-3);}
|
|
3617
3653
|
:root ._pl-c-space-4{padding-left:var(--c-space-4);}
|
|
3654
|
+
:root ._pl-c-space-5{padding-left:var(--c-space-5);}
|
|
3618
3655
|
:root ._pl-c-space-6{padding-left:var(--c-space-6);}
|
|
3619
3656
|
:root ._pl-c-space-tru101{padding-left:var(--c-space-true);}
|
|
3620
3657
|
:root ._pos-absolute{position:absolute;}
|
|
@@ -3627,6 +3664,7 @@ a svg,
|
|
|
3627
3664
|
:root ._pr-36px{padding-right:36px;}
|
|
3628
3665
|
:root ._pr-3px{padding-right:3px;}
|
|
3629
3666
|
:root ._pr-8px{padding-right:8px;}
|
|
3667
|
+
@media (max-width: 767.98px){:root:root:root:root:root:root:root ._pr-_maxmd_c-space-4{padding-right:var(--c-space-4);}}
|
|
3630
3668
|
@media (min-width: 768px){:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root ._pr-_md_c-space-3{padding-right:var(--c-space-3);}}
|
|
3631
3669
|
@media (min-width: 768px){:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root ._pr-_md_c-space-4{padding-right:var(--c-space-4);}}
|
|
3632
3670
|
:root ._pr-c-space-1{padding-right:var(--c-space-1);}
|
|
@@ -3635,6 +3673,7 @@ a svg,
|
|
|
3635
3673
|
:root ._pr-c-space-2--53{padding-right:var(--c-space-2--5);}
|
|
3636
3674
|
:root ._pr-c-space-3{padding-right:var(--c-space-3);}
|
|
3637
3675
|
:root ._pr-c-space-4{padding-right:var(--c-space-4);}
|
|
3676
|
+
:root ._pr-c-space-5{padding-right:var(--c-space-5);}
|
|
3638
3677
|
:root ._pr-c-space-6{padding-right:var(--c-space-6);}
|
|
3639
3678
|
:root ._pr-c-space-tru101{padding-right:var(--c-space-true);}
|
|
3640
3679
|
:root ._pt-0px{padding-top:0px;}
|
|
@@ -3646,6 +3685,7 @@ a svg,
|
|
|
3646
3685
|
:root ._pt-7px{padding-top:7px;}
|
|
3647
3686
|
:root ._pt-8px{padding-top:8px;}
|
|
3648
3687
|
:root ._pt-9px{padding-top:9px;}
|
|
3688
|
+
@media (max-width: 767.98px){:root:root:root:root:root:root:root ._pt-_maxmd_c-space-4{padding-top:var(--c-space-4);}}
|
|
3649
3689
|
@media (min-width: 768px){:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root:root ._pt-_md_c-space-8{padding-top:var(--c-space-8);}}
|
|
3650
3690
|
:root ._pt-c-space-1{padding-top:var(--c-space-1);}
|
|
3651
3691
|
:root ._pt-c-space-1--53{padding-top:var(--c-space-1--5);}
|
|
@@ -3655,10 +3695,12 @@ a svg,
|
|
|
3655
3695
|
:root ._pt-c-space-3{padding-top:var(--c-space-3);}
|
|
3656
3696
|
:root ._pt-c-space-3--53{padding-top:var(--c-space-3--5);}
|
|
3657
3697
|
:root ._pt-c-space-4{padding-top:var(--c-space-4);}
|
|
3698
|
+
:root ._pt-c-space-5{padding-top:var(--c-space-5);}
|
|
3658
3699
|
:root ._pt-c-space-6{padding-top:var(--c-space-6);}
|
|
3659
3700
|
:root ._r-0px{right:0px;}
|
|
3660
3701
|
:root ._r-12px{right:12px;}
|
|
3661
3702
|
:root ._r-6037{right:60%;}
|
|
3703
|
+
:root ._rowGap-c-space-3{row-gap:var(--c-space-3);}
|
|
3662
3704
|
:root ._select-auto{user-select:auto;-webkit-user-select:auto;}
|
|
3663
3705
|
:root ._select-none{user-select:none;-webkit-user-select:none;}
|
|
3664
3706
|
:root ._self-center{align-self:center;}
|
|
@@ -3671,6 +3713,7 @@ a svg,
|
|
|
3671
3713
|
:root ._t-0px{top:0px;}
|
|
3672
3714
|
:root ._t-5037{top:50%;}
|
|
3673
3715
|
@media (hover) {:root:root ._td-0hover-underline:hover{text-decoration-line:underline !important;}}
|
|
3716
|
+
:root ._td-underline{text-decoration-line:underline;}
|
|
3674
3717
|
:root ._text-center{text-align:center;}
|
|
3675
3718
|
:root ._textOverflow-ellipsis{text-overflow:ellipsis;}
|
|
3676
3719
|
:root ._tr-rotate0deg1281{transform:rotate(0deg);}
|
|
@@ -3691,6 +3734,7 @@ a svg,
|
|
|
3691
3734
|
:root ._width-16px{width:16px;}
|
|
3692
3735
|
:root ._width-20037{width:200%;}
|
|
3693
3736
|
:root ._width-20px{width:20px;}
|
|
3737
|
+
:root ._width-220px{width:220px;}
|
|
3694
3738
|
:root ._width-22px{width:22px;}
|
|
3695
3739
|
:root ._width-24px{width:24px;}
|
|
3696
3740
|
:root ._width-260px{width:260px;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "8.27.
|
|
3
|
+
"version": "8.27.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Hanzo UI — the one canonical Hanzo component library, on @hanzo/gui + @hanzo/design. ONE substrate: every component renders through @hanzo/gui primitives, so the same import works on web, native (expo) and desktop (Tauri). Self-contained (theme.css), presentational, host-agnostic, clean-room.",
|
|
6
6
|
"exports": {
|
|
@@ -33,12 +33,30 @@
|
|
|
33
33
|
"require": "./dist/models/index.cjs",
|
|
34
34
|
"default": "./dist/models/index.js"
|
|
35
35
|
},
|
|
36
|
+
"./models/catalog": {
|
|
37
|
+
"types": "./dist/models/catalog.d.ts",
|
|
38
|
+
"import": "./dist/models/catalog.js",
|
|
39
|
+
"require": "./dist/models/catalog.cjs",
|
|
40
|
+
"default": "./dist/models/catalog.js"
|
|
41
|
+
},
|
|
36
42
|
"./chat": {
|
|
37
43
|
"types": "./dist/chat/index.d.ts",
|
|
38
44
|
"import": "./dist/chat/index.js",
|
|
39
45
|
"require": "./dist/chat/index.cjs",
|
|
40
46
|
"default": "./dist/chat/index.js"
|
|
41
47
|
},
|
|
48
|
+
"./settings": {
|
|
49
|
+
"types": "./dist/settings/index.d.ts",
|
|
50
|
+
"import": "./dist/settings/index.js",
|
|
51
|
+
"require": "./dist/settings/index.cjs",
|
|
52
|
+
"default": "./dist/settings/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./catalog": {
|
|
55
|
+
"types": "./dist/catalog/index.d.ts",
|
|
56
|
+
"import": "./dist/catalog/index.js",
|
|
57
|
+
"require": "./dist/catalog/index.cjs",
|
|
58
|
+
"default": "./dist/catalog/index.js"
|
|
59
|
+
},
|
|
42
60
|
"./backdrop": {
|
|
43
61
|
"types": "./dist/backdrop/index.d.ts",
|
|
44
62
|
"import": "./dist/backdrop/index.js",
|