@morlay/dsh-sandbox-local 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/client.cjs +458 -1491
  2. package/package.json +2 -2
package/dist/client.cjs CHANGED
@@ -938,7 +938,7 @@ window.__ModuleLoader__.load({
938
938
  return this.#ns;
939
939
  }
940
940
  refresh() {
941
- this.#store.set(this.#project());
941
+ this.#sync();
942
942
  }
943
943
  dispose() {
944
944
  for (const dispose of this.#disposers.splice(0)) dispose();
@@ -1458,1212 +1458,37 @@ window.__ModuleLoader__.load({
1458
1458
  return prefix.every((segment, index) => path[index] === segment);
1459
1459
  }
1460
1460
  //#endregion
1461
- //#region ../../client/ui-primitives/src/client/styling/toolkit.ts
1462
- function isUndefined(value) {
1463
- return value === void 0;
1464
- }
1465
- function isNull(value) {
1466
- return value === null;
1467
- }
1468
- function isString(value) {
1469
- return typeof value === "string";
1470
- }
1471
- function isFunction(value) {
1472
- return typeof value === "function";
1473
- }
1474
- function isPlainObject(value) {
1475
- return typeof value === "object" && value !== null && !Array.isArray(value);
1476
- }
1477
- function toMerged(target, source) {
1478
- if (!isPlainObject(target) || !isPlainObject(source)) return source;
1479
- const result = { ...target };
1480
- for (const [key, value] of Object.entries(source)) result[key] = key in result ? toMerged(result[key], value) : value;
1481
- return result;
1482
- }
1483
- function mapKeys(source, map) {
1484
- const result = {};
1485
- for (const [key, value] of Object.entries(source)) result[map(key, value)] = value;
1486
- return result;
1487
- }
1488
- //#endregion
1489
- //#region ../../client/ui-primitives/src/client/styling/token.ts
1490
- const cssVarSymbol = Symbol("cssVar");
1491
- const tokensSymbol = Symbol("tokens");
1492
- const tokenInstSymbol = Symbol("tokenInst");
1493
- const SELF = "$";
1494
- function tokenVars(token, tokens, path) {
1495
- const reserved = /* @__PURE__ */ new Set([
1496
- "constructor",
1497
- "toJSON",
1498
- "__proto__"
1499
- ]);
1500
- return new Proxy(() => {}, {
1501
- apply() {
1502
- return Token.fallbackVar(token.cssVar(path));
1503
- },
1504
- get(_target, property) {
1505
- if (property === Symbol.toPrimitive || property === Symbol.toStringTag || property === "toString") return () => `var(${token.cssVar(path)})`;
1506
- if (property === "valueOf") return () => Token.fallbackVar(token.cssVar(path));
1507
- if (property === tokenInstSymbol) return token;
1508
- if (property === tokensSymbol) return tokens;
1509
- if (property === cssVarSymbol) return token.cssVar(path);
1510
- if (!isString(property) || reserved.has(property)) return void 0;
1511
- const next = tokens[property];
1512
- if (isUndefined(next)) return void 0;
1513
- return tokenVars(token, next, [...path, property]);
1514
- }
1515
- });
1516
- }
1517
- var Token = class Token {
1518
- prefix;
1519
- static vars(tokens, options = {}) {
1520
- return tokenVars(new Token(options.prefix ?? ""), tokens, []);
1521
- }
1522
- static extendsVars(vars, extra) {
1523
- const tokens = vars[tokensSymbol] ?? {};
1524
- return Token.vars(toMerged(tokens, extra));
1525
- }
1526
- static assignVars(vars, overwrites) {
1527
- const tokens = overwrites ?? vars[tokensSymbol] ?? {};
1528
- const token = vars[tokenInstSymbol] ?? new Token("");
1529
- const result = {};
1530
- for (const [name, value] of flattenTokens(token, tokens, [])) result[name] = token.normalize(value);
1531
- return result;
1532
- }
1533
- static variants(variants) {
1534
- return mapKeys(variants, (key) => `&[data-variant="${key}"]`);
1535
- }
1536
- static val(strings, ...values) {
1537
- return function* () {
1538
- for (let index = 0; index < strings.length; index += 1) {
1539
- const literal = strings[index];
1540
- if (literal) yield literal;
1541
- if (index >= values.length) continue;
1542
- const value = values[index];
1543
- yield* isFunction(value) ? value() : [value];
1544
- }
1545
- };
1546
- }
1547
- static calc(strings, ...values) {
1548
- return combinator("calc(", ")", strings, values);
1549
- }
1550
- static min(strings, ...values) {
1551
- return combinator("min(", ")", strings, values);
1552
- }
1553
- static max(strings, ...values) {
1554
- return combinator("max(", ")", strings, values);
1555
- }
1556
- static url(strings, ...values) {
1557
- return combinator("url(", ")", strings, values);
1558
- }
1559
- static colorMix(strings, ...values) {
1560
- return combinator("color-mix(", ")", strings, values);
1561
- }
1562
- static colorScale(color, options = {}) {
1563
- const channel = (name, amount, max) => Token.calc`${name} + (${String(max)} - ${name}) * max(${amount}, 0) + ${name} * min(${amount}, 0)`;
1564
- const mix = (from, to, amount) => Token.colorMix`in srgb, ${from}, ${to} ${Token.calc`${amount} * 100%`}`;
1565
- let result = color;
1566
- if (!isUndefined(options.alpha) || !isUndefined(options.lightness) || !isUndefined(options.saturation)) result = Token.val`hsl(from ${result} h ${isUndefined(options.saturation) ? "s" : channel("s", options.saturation, 100)} ${isUndefined(options.lightness) ? "l" : channel("l", options.lightness, 100)} / ${isUndefined(options.alpha) ? "alpha" : channel("alpha", options.alpha, 1)})`;
1567
- if (!isUndefined(options.whiteness)) result = mix(result, "white", options.whiteness);
1568
- if (!isUndefined(options.blackness)) result = mix(result, "black", options.blackness);
1569
- return result;
1570
- }
1571
- static fallbackVar(value, ...fallbacks) {
1572
- return Object.assign(function* () {
1573
- yield "var(";
1574
- for (const [index, item] of [value, ...fallbacks].entries()) {
1575
- if (index > 0) yield ", ";
1576
- yield* asIterable(item);
1577
- }
1578
- yield ")";
1579
- }, { [cssVarSymbol]: value });
1580
- }
1581
- static collect(value) {
1582
- const iterable = isFunction(value) ? value() : value;
1583
- let result = "";
1584
- for (const item of iterable) result += `${item}`;
1585
- return result;
1586
- }
1587
- constructor(prefix = "") {
1588
- this.prefix = prefix;
1589
- }
1590
- prop = (key) => key.startsWith("--") ? key : kebabCase(key);
1591
- normalize = (input) => {
1592
- const value = isFunction(input) ? input() : input;
1593
- if (typeof value === "number") return `${value}`;
1594
- if (typeof value === "string") return value;
1595
- if (isUndefined(value) || isNull(value)) return "";
1596
- if (isFunction(value)) return Token.collect(value);
1597
- if (isPlainObject(value) && Symbol.iterator in value) return Token.collect(value);
1598
- return "";
1599
- };
1600
- cssVar = (paths) => `--${[this.prefix, ...paths].filter(Boolean).join("-")}`;
1461
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/schema-form/schema-form.module.css.mjs
1462
+ const css$16 = ".B1Faoa_editorRoot{width:100%;color:var(--dsw-alias-label-primary);flex-direction:column;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:14px;line-height:22px;display:flex}.B1Faoa_lineRow{white-space:nowrap;align-items:flex-start;gap:6px;min-height:22px;padding-right:8px;display:flex}.B1Faoa_lineRow:hover{background:var(--dsw-alias-bg-layer-2)}.B1Faoa_lineRow[data-selected=true]{background:var(--dsw-alias-bg-layer-3)}.B1Faoa_lineRow[data-dirty=true]{box-shadow:inset 2px 0 0 var(--dsw-alias-brand-primary)}.B1Faoa_lineRow[data-overridden=true]{box-shadow:inset 2px 0 0 var(--dsw-elevation-stroke-color)}.B1Faoa_lineRow[data-dirty=true] [data-role=key],.B1Faoa_lineRow[data-overridden=true] [data-role=key]{color:var(--dsw-alias-brand-primary)}.B1Faoa_lineRow[data-invalid=true]{background:color-mix(in srgb, var(--dsw-alias-state-error-secondary) 12%, transparent);box-shadow:inset 2px 0 0 var(--dsw-alias-state-error-primary)}.B1Faoa_lineRow[data-invalid=true] [data-role=key]{color:var(--dsw-alias-state-error-primary)}.B1Faoa_lineRow:hover [data-role=actions]{opacity:1}.B1Faoa_lineBody{flex:1;align-items:center;gap:6px;min-width:0;min-height:22px;display:flex}.B1Faoa_lineNumber{text-align:right;width:32px;color:var(--dsw-alias-label-caption);user-select:none;cursor:pointer;flex:none;line-height:22px}.B1Faoa_lineFold{width:14px;height:22px;color:var(--dsw-alias-label-caption);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.B1Faoa_lineFold:hover{color:var(--dsw-alias-label-secondary)}.B1Faoa_lineFoldSpacer{flex:none;width:14px}.B1Faoa_lineKey{color:var(--dsw-alias-label-primary);flex:none}.B1Faoa_lineKey[data-index=true]{color:var(--dsw-alias-label-caption)}.B1Faoa_lineToken{color:var(--dsw-alias-label-caption);flex:none}.B1Faoa_lineValue{text-overflow:ellipsis;cursor:text;min-width:0;color:var(--dsw-alias-state-business-primary);display:block;overflow:hidden}.B1Faoa_lineValue[data-tone=number]{color:var(--dsw-alias-state-warn-primary)}.B1Faoa_lineValue[data-tone=boolean]{color:var(--dsw-alias-state-success-primary)}.B1Faoa_lineValue[data-tone=empty]{color:var(--dsw-alias-label-caption)}.B1Faoa_valueSlot{flex:0 auto;min-width:0;display:block;overflow:hidden}.B1Faoa_valueTrigger{min-width:0;font:inherit;text-align:left;cursor:pointer;color:var(--dsw-alias-label-caption);background:0 0;border:0;align-items:center;gap:2px;padding:0;display:inline-flex}.B1Faoa_valueTrigger:disabled{cursor:default}.B1Faoa_valueTrigger:focus-visible{outline:none}.B1Faoa_compactInput{flex:auto;min-width:0;display:inline-flex}.B1Faoa_compactInput>span{border-radius:4px;width:100%;height:22px;padding:0 6px}.B1Faoa_compactInput input{font-size:14px;line-height:22px}.B1Faoa_compactTextField{background:var(--dsw-alias-bg-layer-1);min-width:0;box-shadow:0 0 0 .5px var(--dsw-elevation-stroke-color);border:0;border-radius:4px;flex:auto;padding:0 6px;display:inline-flex}.B1Faoa_compactTextField:focus-within{--dsw-elevation-stroke-color:var(--dsw-alias-brand-primary)}.B1Faoa_compactTextField>textarea{resize:none;field-sizing:content;width:100%;min-height:20px;max-height:240px;color:var(--dsw-alias-label-primary);background:0 0;border:0;outline:none;flex:1;padding:0;font-family:inherit;font-size:14px;line-height:22px}.B1Faoa_lineComment{text-overflow:ellipsis;min-width:0;color:var(--dsw-alias-label-tertiary);flex:auto;font-family:inherit;font-size:12px;overflow:hidden}.B1Faoa_lineInvalid{text-overflow:ellipsis;min-width:0;color:var(--dsw-alias-state-error-primary);flex:0 auto;font-family:inherit;font-size:12px;overflow:hidden}.B1Faoa_lineActions{opacity:0;flex:none;align-items:center;gap:4px;display:inline-flex}.B1Faoa_lineActions>button{width:20px;height:20px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;padding:0;display:inline-flex}.B1Faoa_lineActions>button:hover{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary)}.B1Faoa_lineActions>button:disabled{cursor:not-allowed;color:var(--dsw-alias-label-dimmed)}.B1Faoa_hoverActions[data-editing=true]{opacity:1;gap:6px}.B1Faoa_hoverActions[data-editing=true]>button{box-shadow:0 0 0 .5px var(--dsw-elevation-stroke-color);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.B1Faoa_hoverActions[data-editing=true]>button:first-of-type{color:var(--dsw-alias-state-success-primary)}.B1Faoa_addWrap{flex:auto;align-items:center;gap:6px;min-width:0;margin-left:6px;display:inline-flex;position:relative}.B1Faoa_addWrap[data-invalid=true] input{border-color:var(--dsw-alias-state-error-primary)}.B1Faoa_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}";
1463
+ const tagId$16 = "@morlay/dsh-sandbox-local/schema-form.module.css";
1464
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/schema-form.module.css\"]") === null) {
1465
+ const tag = document.createElement("style");
1466
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
1467
+ tag.dataset.pluginCss = tagId$16;
1468
+ tag.textContent = css$16;
1469
+ document.head.appendChild(tag);
1470
+ }
1471
+ var schema_form_module_css_default = {
1472
+ "hint": "B1Faoa_hint",
1473
+ "lineKey": "B1Faoa_lineKey",
1474
+ "lineInvalid": "B1Faoa_lineInvalid",
1475
+ "compactTextField": "B1Faoa_compactTextField",
1476
+ "lineBody": "B1Faoa_lineBody",
1477
+ "lineActions": "B1Faoa_lineActions",
1478
+ "hoverActions": "B1Faoa_hoverActions",
1479
+ "valueTrigger": "B1Faoa_valueTrigger",
1480
+ "lineComment": "B1Faoa_lineComment",
1481
+ "lineFoldSpacer": "B1Faoa_lineFoldSpacer",
1482
+ "lineToken": "B1Faoa_lineToken",
1483
+ "lineFold": "B1Faoa_lineFold",
1484
+ "lineNumber": "B1Faoa_lineNumber",
1485
+ "lineRow": "B1Faoa_lineRow",
1486
+ "editorRoot": "B1Faoa_editorRoot",
1487
+ "lineValue": "B1Faoa_lineValue",
1488
+ "valueSlot": "B1Faoa_valueSlot",
1489
+ "compactInput": "B1Faoa_compactInput",
1490
+ "addWrap": "B1Faoa_addWrap"
1601
1491
  };
1602
- function combinator(open, close, strings, values) {
1603
- return function* () {
1604
- yield open;
1605
- yield* Token.val(strings, ...values)();
1606
- yield close;
1607
- };
1608
- }
1609
- function* asIterable(value) {
1610
- const resolved = isFunction(value) ? value() : value;
1611
- const variable = resolved?.[cssVarSymbol];
1612
- if (!isUndefined(variable)) {
1613
- yield variable;
1614
- return;
1615
- }
1616
- if (typeof resolved === "object" && resolved !== null && Symbol.iterator in resolved) {
1617
- yield* resolved;
1618
- return;
1619
- }
1620
- yield resolved;
1621
- }
1622
- function* flattenTokens(token, value, parents) {
1623
- for (const [property, child] of Object.entries(value)) {
1624
- if (property === SELF) continue;
1625
- if (isPlainObject(child)) {
1626
- yield* flattenTokens(token, child, [...parents, property]);
1627
- continue;
1628
- }
1629
- yield [token.cssVar([...parents, property]), child];
1630
- }
1631
- }
1632
- function kebabCase(value) {
1633
- return value.replace(/([A-Z])/g, "-$1").toLowerCase();
1634
- }
1635
- //#endregion
1636
- //#region ../../client/ui-primitives/src/client/styling/styling.ts
1637
- var Styling = class Styling {
1638
- static create() {
1639
- return new Styling();
1640
- }
1641
- static toRule(sheet) {
1642
- return sheet.selector === void 0 ? sheet.contents.join("") : `${sheet.selector} {${sheet.contents.join("")} }`;
1643
- }
1644
- #token = new Token();
1645
- #sheets = /* @__PURE__ */ new Map();
1646
- #injected = /* @__PURE__ */ new Set();
1647
- props = (...styles) => {
1648
- const merged = mergeStyles(styles);
1649
- if (Object.keys(merged).length === 0) return {};
1650
- const sheet = this.#sheet(2, this.#rules(merged));
1651
- return sheet === void 0 ? {} : { [`data-css-${sheet.id}`]: "" };
1652
- };
1653
- keyframes = (frames = {}) => {
1654
- return this.#sheet(1, this.#rules(frames))?.id ?? "anim-none";
1655
- };
1656
- injectGlobals = (styles = {}) => {
1657
- for (const [name, style] of Object.entries(styles)) this.#sheet(0, this.#rules(style), name);
1658
- };
1659
- className = (...styles) => {
1660
- const merged = mergeStyles(styles);
1661
- if (Object.keys(merged).length === 0) return "";
1662
- const sheet = this.#sheet(3, this.#rules(merged));
1663
- return sheet === void 0 ? "" : `cls-${sheet.id}`;
1664
- };
1665
- sheets = () => [...this.#sheets.values()].map((sheet) => Styling.toRule(sheet));
1666
- #sheet(type, rules, selector) {
1667
- let hash = 0;
1668
- const contents = [];
1669
- for (const rule of rules) {
1670
- contents.push(rule);
1671
- hash = incrementalHash(rule, hash);
1672
- }
1673
- if (selector !== void 0) hash = incrementalHash(selector, hash);
1674
- if (hash === 0) return void 0;
1675
- let id = selector ?? "";
1676
- if (type === 2) id = `s${hash.toString(36)}`;
1677
- if (type === 3) id = `c${hash.toString(36)}`;
1678
- if (type === 0) id = `g${hash.toString(36)}`;
1679
- if (type === 1) id = `a${hash.toString(36)}`;
1680
- let resolvedSelector = selector;
1681
- if (resolvedSelector === void 0) {
1682
- if (type === 1) resolvedSelector = `@keyframes ${id}`;
1683
- if (type === 2) resolvedSelector = `[data-css-${id}]`;
1684
- if (type === 3) resolvedSelector = `.cls-${id}`;
1685
- }
1686
- const sheet = {
1687
- id,
1688
- contents,
1689
- selector: resolvedSelector
1690
- };
1691
- const existing = this.#sheets.get(id);
1692
- if (existing !== void 0 && existing.contents.join("") === contents.join("")) return existing;
1693
- this.#sheets.set(id, sheet);
1694
- this.#inject(sheet);
1695
- return sheet;
1696
- }
1697
- #inject(sheet) {
1698
- if (this.#injected.has(sheet.id)) return;
1699
- this.#injected.add(sheet.id);
1700
- if (typeof document === "undefined") return;
1701
- const element = document.createElement("style");
1702
- element.setAttribute("data-css", sheet.id);
1703
- element.textContent = Styling.toRule(sheet);
1704
- document.head.appendChild(element);
1705
- }
1706
- *#rules(styles) {
1707
- const nested = /* @__PURE__ */ new Map();
1708
- for (const [key, value] of Object.entries(styles)) {
1709
- if (isNull(value) || isUndefined(value)) continue;
1710
- if (isPlainObject(value)) {
1711
- nested.set(key, value);
1712
- continue;
1713
- }
1714
- yield ` ${this.#token.prop(key)}: ${this.#token.normalize(value)};`;
1715
- }
1716
- for (const [key, value] of nested.entries()) {
1717
- yield ` ${key} {`;
1718
- yield* this.#rules(value);
1719
- yield " }";
1720
- }
1721
- }
1722
- };
1723
- function mergeStyles(styles) {
1724
- return styles.reduce((accumulated, style) => style ? toMerged(accumulated, style) : accumulated, {});
1725
- }
1726
- function incrementalHash(value, previous = 0) {
1727
- let hash = previous;
1728
- for (let index = 0; index < value.length; index += 1) {
1729
- hash = (hash << 5) - hash + value.charCodeAt(index);
1730
- hash &= 2147483647;
1731
- }
1732
- return hash;
1733
- }
1734
- const STYLING_SINGLETON = Symbol.for("@morlay/dsh-client-ui-primitives/styling");
1735
- const globalScope = globalThis;
1736
- const styling = globalScope[STYLING_SINGLETON] ??= Styling.create();
1737
- //#endregion
1738
- //#region ../../client/ui-primitives/src/client/styling/styled.tsx
1739
- const sxSymbol = Symbol("styled.sx");
1740
- function styled(Component, defaultProps = {}) {
1741
- return (...styles) => {
1742
- const sx = styles.reduce((merged, style) => toMerged(merged, style), {});
1743
- const Styled = (0, react.forwardRef)((props, ref) => {
1744
- const styleProps = (0, react.useMemo)(() => styling.props(sx), []);
1745
- return (0, react.createElement)(Component, {
1746
- ...defaultProps,
1747
- ...props,
1748
- ...styleProps,
1749
- ref
1750
- });
1751
- });
1752
- Styled.displayName = `styled(${typeof Component === "string" ? Component : Component.displayName ?? Component.name ?? "Component"})`;
1753
- return Object.assign(Styled, { [sxSymbol]: sx });
1754
- };
1755
- }
1756
- //#endregion
1757
- //#region ../../client/ui-primitives/src/client/theme.ts
1758
- const dsw = Token.vars({
1759
- alias: {
1760
- bg: {
1761
- base: "var(--dsw-static-neutral-bluish-00)",
1762
- document: {
1763
- preview: "var(--dsw-static-neutral-bluish-100)",
1764
- selection: "color-mix(in srgb, var(--dsw-static-blue-500) 40%, transparent)"
1765
- },
1766
- layer: {
1767
- "1": "var(--dsw-static-neutral-bluish-00)",
1768
- "2": "var(--dsw-static-neutral-bluish-00)",
1769
- "3": "var(--dsw-static-neutral-bluish-00)"
1770
- },
1771
- mask: {
1772
- "1": "rgba(0, 0, 0, 0.24)",
1773
- "2": "rgba(0, 0, 0, 0.12)",
1774
- "3": "rgba(0, 0, 0, 0.48)",
1775
- drop: "rgba(255, 255, 255, 0.7)",
1776
- photo: "rgba(0, 0, 0, 0.88)"
1777
- },
1778
- module: { platform: "var(--dsw-static-neutral-bluish-60)" },
1779
- multi: { select: "var(--dsw-static-neutral-bluish-60)" },
1780
- overlay: "var(--dsw-static-neutral-bluish-150)",
1781
- skeleton: "rgba(0, 0, 0, 0.04)"
1782
- },
1783
- border: {
1784
- inverted: "rgba(0, 0, 0, 0)",
1785
- inverted2: "rgba(0, 0, 0, 0)",
1786
- l1: "rgba(0, 0, 0, 0.04)",
1787
- l2: {
1788
- $: "rgba(0, 0, 0, 0.1)",
1789
- darkmode: { thin: "rgba(0, 0, 0, 0.1)" }
1790
- },
1791
- l3: "rgba(0, 0, 0, 0.12)",
1792
- l4: "rgba(0, 0, 0, 0.16)"
1793
- },
1794
- brand: {
1795
- primary: {
1796
- $: "var(--dsw-static-neutral-bluish-1000)",
1797
- invert: "var(--dsw-static-neutral-bluish-1000)",
1798
- new: { colorprimary: { new: { color: "rgb(65, 118, 230)" } } }
1799
- },
1800
- text: "var(--dsw-static-neutral-bluish-1000)"
1801
- },
1802
- button: {
1803
- contrast: { fill: "var(--dsw-static-neutral-bluish-700)" },
1804
- elevated: { fill: "var(--dsw-static-neutral-bluish-00)" },
1805
- floating: {
1806
- fill: "var(--dsw-static-neutral-bluish-00)",
1807
- hover: "var(--dsw-static-neutral-bluish-75)"
1808
- },
1809
- ghost: { active: {
1810
- border: "var(--dsw-static-neutral-bluish-500)",
1811
- fill: "var(--dsw-static-neutral-bluish-100)",
1812
- hover: "var(--dsw-static-neutral-bluish-150)"
1813
- } },
1814
- info: {
1815
- fill: "var(--dsw-static-deepseek-500)",
1816
- hover: "var(--dsw-static-deepseek-400)"
1817
- },
1818
- primary: {
1819
- dimmed: "var(--dsw-static-neutral-bluish-100)",
1820
- fill: "var(--dsw-alias-brand-primary)",
1821
- hover: "var(--dsw-static-neutral-bluish-750)"
1822
- },
1823
- tool: { bar: {
1824
- fill: {
1825
- $: "rgba(84, 85, 87, 0.5)",
1826
- invisible: "rgba(31, 31, 31, 0.36)"
1827
- },
1828
- hover: "rgba(84, 85, 87, 0.6)"
1829
- } }
1830
- },
1831
- code: { diff: {
1832
- added: "var(--dsw-static-green-500-a08)",
1833
- deleted: "var(--dsw-static-red-600-a08)"
1834
- } },
1835
- file: { diff: {
1836
- added: {
1837
- bg: "rgb(230, 244, 231)",
1838
- gutter: "rgb(237, 247, 237)",
1839
- marker: "rgb(1, 162, 65)"
1840
- },
1841
- deleted: {
1842
- bg: "rgb(252, 230, 226)",
1843
- gutter: "rgb(253, 236, 233)",
1844
- marker: "rgb(186, 39, 35)"
1845
- }
1846
- } },
1847
- interactive: { bg: {
1848
- active: "rgba(38, 49, 72, 0.1)",
1849
- hover: {
1850
- $: "rgba(38, 49, 72, 0.06)",
1851
- accent: "rgba(38, 49, 72, 0.14)",
1852
- danger: "rgba(236, 19, 19, 0.05)",
1853
- solid: "var(--dsw-static-neutral-bluish-75)"
1854
- }
1855
- } },
1856
- label: {
1857
- caption: "var(--dsw-static-neutral-bluish-400)",
1858
- deep: { diving: {
1859
- $: "color-mix(in srgb, var(--dsw-static-deepseek-500) 70%, var(--dsw-static-blue-950))",
1860
- shimmer: "color-mix(in srgb, var(--dsw-static-deepseek-500) 30%, var(--dsw-static-blue-950))"
1861
- } },
1862
- dimmed: "var(--dsw-static-neutral-bluish-200)",
1863
- document: { preview: "var(--dsw-static-neutral-bluish-700)" },
1864
- primary: {
1865
- $: "var(--dsw-static-neutral-bluish-1000)",
1866
- bluish: "var(--dsw-static-blue-900)",
1867
- dimmed: "var(--dsw-static-neutral-bluish-950)",
1868
- foreground: "var(--dsw-static-neutral-bluish-00)",
1869
- inverted: "var(--dsw-static-neutral-bluish-00)"
1870
- },
1871
- secondary: "var(--dsw-static-neutral-bluish-700)",
1872
- shimmer: "color-mix(in srgb, var(--dsw-static-neutral-1000) 30%, transparent)",
1873
- tertiary: "var(--dsw-static-neutral-bluish-600)"
1874
- },
1875
- link: "var(--dsw-static-deepseek-500)",
1876
- markdown: {
1877
- citation: "var(--dsw-static-neutral-bluish-100)",
1878
- code: {
1879
- block: {
1880
- $: "var(--dsw-static-neutral-bluish-50)",
1881
- banner: "var(--dsw-static-neutral-bluish-50)"
1882
- },
1883
- segment: {
1884
- selected: "var(--dsw-static-neutral-bluish-00)",
1885
- unselected: "var(--dsw-static-neutral-bluish-75)"
1886
- }
1887
- },
1888
- inline: { code: "var(--dsw-static-neutral-50)" },
1889
- placeholder: "var(--dsw-static-neutral-bluish-60)",
1890
- tag: "var(--dsw-static-neutral-bluish-75)"
1891
- },
1892
- menu: {
1893
- group: { header: { fill: "rgba(248, 249, 250, 0.94)" } },
1894
- icon: "var(--dsw-static-neutral-bluish-800)"
1895
- },
1896
- onboarding: {
1897
- accent: "rgb(57, 100, 254)",
1898
- card: { fill: "color-mix(in srgb, var(--dsw-static-neutral-bluish-00) 80%, transparent)" },
1899
- checkbox: { border: "color-mix(in srgb, var(--dsw-static-neutral-bluish-1000) 20%, transparent)" },
1900
- secondary: { fill: "var(--dsw-static-neutral-bluish-00)" }
1901
- },
1902
- scrollbar: {
1903
- bg: {
1904
- l1: "var(--dsw-static-neutral-200)",
1905
- l2: "var(--dsw-static-neutral-200)"
1906
- },
1907
- hover: {
1908
- l1: "var(--dsw-static-neutral-300)",
1909
- l2: "var(--dsw-static-neutral-300)"
1910
- }
1911
- },
1912
- settings: { card: {
1913
- fill: "var(--dsw-alias-bg-layer-2)",
1914
- stroke: "var(--dsw-alias-border-l4)"
1915
- } },
1916
- state: {
1917
- business: {
1918
- primary: "var(--dsw-static-deepseek-500)",
1919
- tertiary: "var(--dsw-static-deepseek-100)"
1920
- },
1921
- error: {
1922
- primary: "var(--dsw-static-red-600)",
1923
- secondary: "var(--dsw-static-red-400)"
1924
- },
1925
- idle: { primary: "var(--dsw-static-neutral-300)" },
1926
- success: {
1927
- primary: "var(--dsw-static-green-500)",
1928
- secondary: "var(--dsw-static-green-400)",
1929
- tertiary: "var(--dsw-static-green-100)"
1930
- },
1931
- warn: {
1932
- label: "var(--dsw-static-amber-600)",
1933
- primary: "var(--dsw-static-amber-500)",
1934
- secondary: "var(--dsw-static-amber-400)",
1935
- tertiary: "var(--dsw-static-amber-100)"
1936
- }
1937
- },
1938
- switch: { thumb: "var(--dsw-static-neutral-bluish-00)" },
1939
- toast: {
1940
- bg: "var(--dsw-static-neutral-bluish-800)",
1941
- label: "var(--dsw-static-neutral-bluish-00)"
1942
- },
1943
- tooltip: {
1944
- bg: "var(--dsw-static-neutral-bluish-850)",
1945
- key: { bg: "color-mix(in srgb, var(--dsw-alias-tooltip-bg), white 18%)" }
1946
- },
1947
- turn: { trigger: { bg: {
1948
- $: "var(--dsw-alias-markdown-code-block)",
1949
- hover: "var(--dsw-alias-interactive-bg-hover)"
1950
- } } }
1951
- },
1952
- corner: { shape: "superellipse(1.5)" },
1953
- elevation: {
1954
- panel: "var(--dsw-elevation-stroke), 0 3px 8px 0 rgba(0, 0, 0, 0.03), 0 0 16px 0 rgba(0, 0, 0, 0.02)",
1955
- prominent: "var(--dsw-elevation-stroke), 0 3px 8px 0 rgba(0, 0, 0, 0.04), 0 0 20px 0 rgba(0, 0, 0, 0.05)",
1956
- soft: "var(--dsw-elevation-stroke), 0 4px 16px 0 rgba(0, 0, 0, 0.03), 0 0 24px 0 rgba(0, 0, 0, 0.03)",
1957
- stroke: {
1958
- $: "0 0 0 0.5px var(--dsw-elevation-stroke-color)",
1959
- color: "var(--dsw-alias-border-l4)"
1960
- }
1961
- },
1962
- focus: { ring: {
1963
- color: "transparent",
1964
- width: "2px"
1965
- } },
1966
- font: {
1967
- base: {
1968
- "16": {
1969
- $: "16px/24px var(--dsw-font-family)",
1970
- font: {
1971
- family: "var(--dsw-font-family)",
1972
- size: "16px",
1973
- style: "normal",
1974
- weight: "400"
1975
- },
1976
- line: { height: "24px" }
1977
- },
1978
- strong: { "16": {
1979
- $: "500 16px/24px var(--dsw-font-family)",
1980
- font: {
1981
- family: "var(--dsw-font-family)",
1982
- size: "16px",
1983
- style: "normal",
1984
- weight: "500"
1985
- },
1986
- line: { height: "24px" }
1987
- } }
1988
- },
1989
- family: {
1990
- $: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',\n 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif",
1991
- brand: "'Montserrat', var(--dsw-font-family)"
1992
- },
1993
- l: { "20": {
1994
- $: "500 20px/28px var(--dsw-font-family)",
1995
- font: {
1996
- family: "var(--dsw-font-family)",
1997
- size: "20px",
1998
- style: "normal",
1999
- weight: "500"
2000
- },
2001
- line: { height: "28px" }
2002
- } },
2003
- m: { "18": {
2004
- $: "500 16px/28px var(--dsw-font-family)",
2005
- font: {
2006
- family: "var(--dsw-font-family)",
2007
- size: "16px",
2008
- style: "normal",
2009
- weight: "500"
2010
- },
2011
- line: { height: "28px" }
2012
- } },
2013
- markdown: {
2014
- base: {
2015
- $: "var(--dsh-content-font-size, 14px) / calc(24px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2016
- font: {
2017
- family: "var(--dsw-font-family)",
2018
- size: "var(--dsh-content-font-size, 14px)",
2019
- style: "normal",
2020
- weight: "400"
2021
- },
2022
- italic: {
2023
- $: "italic var(--dsh-content-font-size, 14px) / calc(24px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2024
- font: {
2025
- family: "var(--dsw-font-family)",
2026
- size: "var(--dsh-content-font-size, 14px)",
2027
- style: "italic",
2028
- weight: "400"
2029
- },
2030
- line: { height: "calc(24px + var(--dsh-content-font-delta))" }
2031
- },
2032
- line: { height: "calc(24px + var(--dsh-content-font-delta))" },
2033
- strong: {
2034
- $: "600 var(--dsh-content-font-size, 14px) / calc(24px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2035
- font: {
2036
- family: "var(--dsw-font-family)",
2037
- size: "var(--dsh-content-font-size, 14px)",
2038
- style: "normal",
2039
- weight: "600"
2040
- },
2041
- italic: {
2042
- $: "italic 600 var(--dsh-content-font-size, 14px) / calc(24px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2043
- font: {
2044
- family: "var(--dsw-font-family)",
2045
- size: "var(--dsh-content-font-size, 14px)",
2046
- style: "italic",
2047
- weight: "600"
2048
- },
2049
- line: { height: "calc(24px + var(--dsh-content-font-delta))" }
2050
- },
2051
- line: { height: "calc(24px + var(--dsh-content-font-delta))" }
2052
- }
2053
- },
2054
- code: {
2055
- $: "12px/19px var(--ds-font-family-code)",
2056
- block: {
2057
- $: "11px/19px var(--ds-font-family-code)",
2058
- font: {
2059
- family: "var(--ds-font-family-code)",
2060
- size: "11px",
2061
- style: "normal",
2062
- weight: "400"
2063
- },
2064
- line: { height: "19px" },
2065
- small: {
2066
- $: "11px/16px var(--ds-font-family-code)",
2067
- font: {
2068
- family: "var(--ds-font-family-code)",
2069
- size: "11px",
2070
- style: "normal",
2071
- weight: "400"
2072
- },
2073
- line: { height: "16px" }
2074
- }
2075
- },
2076
- font: {
2077
- family: "var(--ds-font-family-code)",
2078
- size: "12px",
2079
- style: "normal",
2080
- weight: "400"
2081
- },
2082
- line: { height: "19px" }
2083
- },
2084
- h1: {
2085
- $: "700 calc(21px + var(--dsh-content-font-delta)) / calc(30px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2086
- font: {
2087
- family: "var(--dsw-font-family)",
2088
- size: "calc(21px + var(--dsh-content-font-delta))",
2089
- style: "normal",
2090
- weight: "700"
2091
- },
2092
- line: { height: "calc(30px + var(--dsh-content-font-delta))" }
2093
- },
2094
- h2: {
2095
- $: "700 calc(19px + var(--dsh-content-font-delta)) / calc(28px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2096
- font: {
2097
- family: "var(--dsw-font-family)",
2098
- size: "calc(19px + var(--dsh-content-font-delta))",
2099
- style: "normal",
2100
- weight: "700"
2101
- },
2102
- line: { height: "calc(28px + var(--dsh-content-font-delta))" }
2103
- },
2104
- h3: {
2105
- $: "700 calc(18px + var(--dsh-content-font-delta)) / calc(26px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2106
- font: {
2107
- family: "var(--dsw-font-family)",
2108
- size: "calc(18px + var(--dsh-content-font-delta))",
2109
- style: "normal",
2110
- weight: "700"
2111
- },
2112
- line: { height: "calc(26px + var(--dsh-content-font-delta))" }
2113
- },
2114
- h4: {
2115
- $: "600 var(--dsh-content-font-size, 14px) / calc(24px + var(--dsh-content-font-delta)) var(--dsw-font-family)",
2116
- font: {
2117
- family: "var(--dsw-font-family)",
2118
- size: "var(--dsh-content-font-size, 14px)",
2119
- style: "normal",
2120
- weight: "600"
2121
- },
2122
- line: { height: "calc(24px + var(--dsh-content-font-delta))" }
2123
- },
2124
- small: {
2125
- $: "12px/20px var(--dsw-font-family)",
2126
- font: {
2127
- family: "var(--dsw-font-family)",
2128
- size: "12px",
2129
- style: "normal",
2130
- weight: "400"
2131
- },
2132
- italic: {
2133
- $: "italic 12px/20px var(--dsw-font-family)",
2134
- font: {
2135
- family: "var(--dsw-font-family)",
2136
- size: "12px",
2137
- style: "italic",
2138
- weight: "400"
2139
- },
2140
- line: { height: "20px" }
2141
- },
2142
- line: { height: "20px" },
2143
- strong: {
2144
- $: "600 12px/20px var(--dsw-font-family)",
2145
- font: {
2146
- family: "var(--dsw-font-family)",
2147
- size: "12px",
2148
- style: "normal",
2149
- weight: "600"
2150
- },
2151
- italic: {
2152
- $: "italic 600 12px/20px var(--dsw-font-family)",
2153
- font: {
2154
- family: "var(--dsw-font-family)",
2155
- size: "12px",
2156
- style: "italic",
2157
- weight: "600"
2158
- },
2159
- line: { height: "20px" }
2160
- },
2161
- line: { height: "20px" }
2162
- }
2163
- },
2164
- table: {
2165
- $: "var(--dsh-content-font-size-secondary, 13px)/calc(22px + var(--dsh-content-font-delta-secondary, 0px)) var(--dsw-font-family)",
2166
- font: {
2167
- family: "var(--dsw-font-family)",
2168
- size: "var(--dsh-content-font-size-secondary, 13px)",
2169
- style: "normal",
2170
- weight: "400"
2171
- },
2172
- head: {
2173
- $: "500 var(--dsh-content-font-size-secondary, 13px)/calc(22px + var(--dsh-content-font-delta-secondary, 0px)) var(--dsw-font-family)",
2174
- font: {
2175
- family: "var(--dsw-font-family)",
2176
- size: "var(--dsh-content-font-size-secondary, 13px)",
2177
- style: "normal",
2178
- weight: "500"
2179
- },
2180
- line: { height: "calc(22px + var(--dsh-content-font-delta-secondary, 0px))" }
2181
- },
2182
- line: { height: "calc(22px + var(--dsh-content-font-delta-secondary, 0px))" }
2183
- }
2184
- },
2185
- s: {
2186
- "14": {
2187
- $: "14px/22px var(--dsw-font-family)",
2188
- font: {
2189
- family: "var(--dsw-font-family)",
2190
- size: "14px",
2191
- style: "normal",
2192
- weight: "400"
2193
- },
2194
- line: { height: "22px" }
2195
- },
2196
- strong: { "14": {
2197
- $: "500 14px/22px var(--dsw-font-family)",
2198
- font: {
2199
- family: "var(--dsw-font-family)",
2200
- size: "14px",
2201
- style: "normal",
2202
- weight: "500"
2203
- },
2204
- line: { height: "22px" }
2205
- } }
2206
- },
2207
- xl: { "24": {
2208
- $: "600 24px/32px var(--dsw-font-family)",
2209
- font: {
2210
- family: "var(--dsw-font-family)",
2211
- size: "24px",
2212
- style: "normal",
2213
- weight: "600"
2214
- },
2215
- line: { height: "32px" }
2216
- } },
2217
- xs: {
2218
- "13": {
2219
- $: "13px/20px var(--dsw-font-family)",
2220
- font: {
2221
- family: "var(--dsw-font-family)",
2222
- size: "13px",
2223
- style: "normal",
2224
- weight: "400"
2225
- },
2226
- line: { height: "20px" }
2227
- },
2228
- strong: { "13": {
2229
- $: "500 13px/20px var(--dsw-font-family)",
2230
- font: {
2231
- family: "var(--dsw-font-family)",
2232
- size: "13px",
2233
- style: "normal",
2234
- weight: "500"
2235
- },
2236
- line: { height: "20px" }
2237
- } }
2238
- },
2239
- xxs: {
2240
- "12": {
2241
- $: "12px/18px var(--dsw-font-family)",
2242
- font: {
2243
- family: "var(--dsw-font-family)",
2244
- size: "12px",
2245
- style: "normal",
2246
- weight: "400"
2247
- },
2248
- line: { height: "18px" }
2249
- },
2250
- strong: { "12": {
2251
- $: "500 12px/18px var(--dsw-font-family)",
2252
- font: {
2253
- family: "var(--dsw-font-family)",
2254
- size: "12px",
2255
- style: "normal",
2256
- weight: "500"
2257
- },
2258
- line: { height: "18px" }
2259
- } }
2260
- },
2261
- xxxs: {
2262
- "11": {
2263
- $: "11px/14px var(--dsw-font-family)",
2264
- font: {
2265
- family: "var(--dsw-font-family)",
2266
- size: "11px",
2267
- style: "normal",
2268
- weight: "400"
2269
- },
2270
- line: { height: "14px" }
2271
- },
2272
- strong: { "11": {
2273
- $: "500 11px/14px var(--dsw-font-family)",
2274
- font: {
2275
- family: "var(--dsw-font-family)",
2276
- size: "11px",
2277
- style: "normal",
2278
- weight: "500"
2279
- },
2280
- line: { height: "14px" }
2281
- } }
2282
- }
2283
- },
2284
- gradient: { onboarding: {
2285
- blue: { stops: "#3964fe 18.75%, #398efe 51.78%, #6dccff 86.252%, #3964fe" },
2286
- cyan: { stops: "#0293b4 21.154%, #2dc8eb 50.954%, #aff0ff 85.326%, #0293b4" },
2287
- violet: { stops: "#2a2fb6 33.102%, #8b76f6 50.954%, #c5c0ff 85.326%, #2a2fb6" }
2288
- } },
2289
- linear: {
2290
- gradient: { think: "linear-gradient(180deg, #fff 20.19%, rgba(255, 255, 255, 0) 100%)" },
2291
- think: { select: "linear-gradient(180deg, #f5f6f7 20.19%, rgba(245, 246, 247, 0) 100%)" }
2292
- },
2293
- mask: { blur: "none" },
2294
- menu: {
2295
- backdrop: { filter: "blur(40px) saturate(150%)" },
2296
- surface: { fill: "rgba(248, 249, 250, 0.58)" }
2297
- },
2298
- radius: {
2299
- lg: "16px",
2300
- md: "12px",
2301
- panel: "28px",
2302
- sm: "8px",
2303
- xl: "20px",
2304
- xs: "4px"
2305
- },
2306
- shadow: {
2307
- lv1: {
2308
- $: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
2309
- blur: "0 4px 12px 0 rgba(0, 0, 0, 0.02)"
2310
- },
2311
- lv2: "0 4px 12px 0 rgba(0, 0, 0, 0.02), 0 2px 8px 0 rgba(0, 0, 0, 0.04)",
2312
- lv3: "0 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.02), 0 12px 32px 0 rgba(0, 0, 0, 0.08)"
2313
- },
2314
- specific: {
2315
- bubble: {
2316
- $: "var(--dsw-static-deepseek-50)",
2317
- highlight: "var(--dsw-static-deepseek-200)"
2318
- },
2319
- input: { major: "var(--dsw-static-neutral-bluish-00)" },
2320
- login: { input: "var(--dsw-static-neutral-bluish-50)" },
2321
- menu: "var(--dsw-menu-surface-fill)",
2322
- selector: "var(--dsw-static-neutral-bluish-60)",
2323
- sidebar: {
2324
- fill: "var(--dsw-static-neutral-bluish-50)",
2325
- nav: { item: {
2326
- active: {
2327
- $: "var(--dsw-static-neutral-bluish-100)",
2328
- accent: "var(--dsw-static-deepseek-100)"
2329
- },
2330
- hover: "var(--dsw-static-neutral-bluish-75)"
2331
- } }
2332
- },
2333
- tip: "var(--dsw-static-neutral-bluish-60)"
2334
- },
2335
- static: {
2336
- amber: {
2337
- "100": "rgb(254, 245, 231)",
2338
- "400": "rgb(247, 173, 49)",
2339
- "500": "rgb(245, 158, 11)",
2340
- "600": "rgb(221, 134, 41)",
2341
- "900": "rgb(39, 36, 31)"
2342
- },
2343
- blue: {
2344
- "50": "rgb(239, 246, 255)",
2345
- "75": "rgb(229, 240, 255)",
2346
- "100": "rgb(219, 234, 254)",
2347
- "300": "rgb(147, 197, 253)",
2348
- "400": "rgb(96, 165, 250)",
2349
- "450": "rgb(77, 147, 248)",
2350
- "500": "rgb(59, 130, 246)",
2351
- "600": "rgb(37, 99, 235)",
2352
- "800": "rgb(30, 64, 175)",
2353
- "900": "rgb(14, 48, 116)",
2354
- "950": "rgb(23, 37, 84)",
2355
- "50p": "rgb(234, 243, 255)"
2356
- },
2357
- deepseek: {
2358
- "50": "rgb(237, 243, 254)",
2359
- "100": "rgb(228, 237, 253)",
2360
- "200": "rgb(211, 226, 255)",
2361
- "300": "rgb(183, 200, 254)",
2362
- "400": "rgb(122, 170, 255)",
2363
- "450": "rgb(86, 134, 254)",
2364
- "500": "rgb(65, 118, 230)",
2365
- "600": "rgb(72, 104, 178)",
2366
- "700": { delete: "rgb(47, 76, 143)" },
2367
- "800": "rgb(52, 65, 91)",
2368
- "900": "rgb(40, 49, 66)"
2369
- },
2370
- green: {
2371
- "100": "rgb(230, 250, 237)",
2372
- "400": "rgb(78, 209, 126)",
2373
- "500": {
2374
- $: "rgb(34, 197, 94)",
2375
- a08: "rgb(34 197 94 / 8%)",
2376
- a12: "rgb(34 197 94 / 12%)"
2377
- },
2378
- "900": "rgb(35, 60, 44)"
2379
- },
2380
- neutral: {
2381
- "50": "rgb(250, 250, 250)",
2382
- "100": "rgb(245, 245, 245)",
2383
- "150": "rgb(237, 237, 237)",
2384
- "200": "rgb(229, 229, 229)",
2385
- "250": "rgb(220, 220, 220)",
2386
- "300": "rgb(212, 212, 212)",
2387
- "400": "rgb(162, 164, 166)",
2388
- "500": "rgb(127, 130, 135)",
2389
- "550": "rgb(101, 103, 107)",
2390
- "600": "rgb(84, 85, 87)",
2391
- "700": "rgb(60, 60, 61)",
2392
- "800": "rgb(41, 41, 41)",
2393
- "850": "rgb(33, 33, 35)",
2394
- "900": "rgb(15, 15, 15)",
2395
- "1000": "rgb(0, 0, 0)",
2396
- "00": "rgb(255, 255, 255)",
2397
- bluish: {
2398
- "50": "rgb(249, 250, 251)",
2399
- "60": "rgb(245, 246, 247)",
2400
- "75": "rgb(241, 243, 245)",
2401
- "100": "rgb(235, 238, 242)",
2402
- "150": "rgb(233, 236, 242)",
2403
- "200": "rgb(225, 229, 238)",
2404
- "300": "rgb(207, 211, 214)",
2405
- "400": "rgb(173, 178, 184)",
2406
- "500": "rgb(151, 157, 166)",
2407
- "600": "rgb(129, 133, 140)",
2408
- "700": "rgb(97, 102, 107)",
2409
- "750": "rgb(67, 69, 74)",
2410
- "800": "rgb(53, 54, 56)",
2411
- "850": "rgb(44, 44, 46)",
2412
- "875": "rgb(35, 35, 36)",
2413
- "900": "rgb(27, 27, 28)",
2414
- "950": "rgb(21, 21, 23)",
2415
- "1000": "rgb(15, 17, 21)",
2416
- "00": "rgb(255, 255, 255)"
2417
- }
2418
- },
2419
- red: {
2420
- "50": "rgb(254, 242, 242)",
2421
- "100": "rgb(254, 226, 226)",
2422
- "400": {
2423
- $: "rgb(242, 90, 90)",
2424
- a12: "rgb(242 90 90 / 12%)"
2425
- },
2426
- "500": "rgb(239, 68, 68)",
2427
- "600": {
2428
- $: "rgb(236, 19, 19)",
2429
- a08: "rgb(236 19 19 / 8%)"
2430
- },
2431
- "900": "rgb(87, 12, 12)"
2432
- }
2433
- }
2434
- }, { prefix: "dsw" });
2435
- //#endregion
2436
- //#region ../../client/ui-primitives/src/client/schema-form/styles.ts
2437
- const MONO = "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, monospace";
2438
- const ROW = "22px";
2439
- const GAP = "6px";
2440
- const ACTION = "20px";
2441
- const ACTION_GAP = "4px";
2442
- const FOLD = "14px";
2443
- const NUMBER = "32px";
2444
- const PAD = "8px";
2445
- const HAIRLINE = dsw.elevation.stroke;
2446
- const LINE = dsw.elevation.stroke.color;
2447
- const EDGE = "2px";
2448
- const ERROR_WASH = `color-mix(in srgb, ${String(dsw.alias.state.error.secondary)} 12%, transparent)`;
2449
- const EditorRoot = styled("div")({
2450
- display: "flex",
2451
- flexDirection: "column",
2452
- width: "100%",
2453
- fontFamily: MONO,
2454
- fontSize: "14px",
2455
- lineHeight: ROW,
2456
- color: dsw.alias.label.primary
2457
- });
2458
- const LineRow = styled("div")({
2459
- display: "flex",
2460
- alignItems: "flex-start",
2461
- gap: GAP,
2462
- minHeight: ROW,
2463
- paddingRight: PAD,
2464
- whiteSpace: "nowrap",
2465
- "&:hover": { background: dsw.alias.bg.layer["2"] },
2466
- "&[data-selected='true']": { background: dsw.alias.bg.layer["3"] },
2467
- "&[data-dirty='true']": { boxShadow: `inset ${EDGE} 0 0 ${String(dsw.alias.brand.primary)}` },
2468
- "&[data-overridden='true']": { boxShadow: `inset ${EDGE} 0 0 ${String(LINE)}` },
2469
- "&[data-dirty='true'] [data-role='key']": { color: dsw.alias.brand.primary },
2470
- "&[data-overridden='true'] [data-role='key']": { color: dsw.alias.brand.primary },
2471
- "&[data-invalid='true']": {
2472
- background: ERROR_WASH,
2473
- boxShadow: `inset ${EDGE} 0 0 ${String(dsw.alias.state.error.primary)}`
2474
- },
2475
- "&[data-invalid='true'] [data-role='key']": { color: dsw.alias.state.error.primary },
2476
- "&:hover [data-role='actions']": { opacity: 1 }
2477
- });
2478
- const LineBody = styled("div")({
2479
- display: "flex",
2480
- alignItems: "center",
2481
- gap: GAP,
2482
- flex: 1,
2483
- minWidth: 0,
2484
- minHeight: ROW
2485
- });
2486
- const LineNumber = styled("span")({
2487
- flex: "none",
2488
- width: NUMBER,
2489
- lineHeight: ROW,
2490
- textAlign: "right",
2491
- color: dsw.alias.label.caption,
2492
- userSelect: "none",
2493
- cursor: "pointer"
2494
- });
2495
- const LineFold = styled("button")({
2496
- display: "inline-flex",
2497
- alignItems: "center",
2498
- justifyContent: "center",
2499
- flex: "none",
2500
- width: FOLD,
2501
- height: ROW,
2502
- padding: 0,
2503
- border: 0,
2504
- background: "none",
2505
- color: dsw.alias.label.caption,
2506
- cursor: "pointer",
2507
- "&:hover": { color: dsw.alias.label.secondary }
2508
- });
2509
- const LineFoldSpacer = styled("span")({
2510
- flex: "none",
2511
- width: FOLD
2512
- });
2513
- const LineKey = styled("span")({
2514
- flex: "none",
2515
- color: dsw.alias.label.primary,
2516
- "&[data-index='true']": { color: dsw.alias.label.caption }
2517
- });
2518
- const LineToken = styled("span")({
2519
- flex: "none",
2520
- color: dsw.alias.label.caption
2521
- });
2522
- const LineValue = styled("span")({
2523
- display: "block",
2524
- minWidth: 0,
2525
- overflow: "hidden",
2526
- textOverflow: "ellipsis",
2527
- cursor: "text",
2528
- color: dsw.alias.state.business.primary,
2529
- "&[data-tone='number']": { color: dsw.alias.state.warn.primary },
2530
- "&[data-tone='boolean']": { color: dsw.alias.state.success.primary },
2531
- "&[data-tone='empty']": { color: dsw.alias.label.caption }
2532
- });
2533
- const ValueSlot = styled("span")({
2534
- display: "block",
2535
- flex: "0 1 auto",
2536
- minWidth: 0,
2537
- overflow: "hidden"
2538
- });
2539
- const ValueTrigger = styled("button")({
2540
- display: "inline-flex",
2541
- alignItems: "center",
2542
- gap: "2px",
2543
- minWidth: 0,
2544
- padding: 0,
2545
- border: 0,
2546
- background: "none",
2547
- font: "inherit",
2548
- textAlign: "left",
2549
- cursor: "pointer",
2550
- color: dsw.alias.label.caption,
2551
- "&:disabled": { cursor: "default" },
2552
- "&:focus-visible": { outline: "none" }
2553
- });
2554
- const CompactInput = styled("span")({
2555
- display: "inline-flex",
2556
- flex: "1 1 auto",
2557
- minWidth: 0,
2558
- "& > span": {
2559
- width: "100%",
2560
- height: ROW,
2561
- padding: "0 6px",
2562
- borderRadius: "4px"
2563
- },
2564
- "& input": {
2565
- fontSize: "14px",
2566
- lineHeight: ROW
2567
- }
2568
- });
2569
- const CompactTextField = styled("span")({
2570
- display: "inline-flex",
2571
- flex: "1 1 auto",
2572
- minWidth: 0,
2573
- padding: "0 6px",
2574
- borderRadius: "4px",
2575
- background: dsw.alias.bg.layer["1"],
2576
- border: 0,
2577
- boxShadow: HAIRLINE,
2578
- "&:focus-within": { "--dsw-elevation-stroke-color": dsw.alias.brand.primary },
2579
- "& > textarea": {
2580
- flex: 1,
2581
- width: "100%",
2582
- minHeight: ACTION,
2583
- maxHeight: "240px",
2584
- padding: 0,
2585
- border: 0,
2586
- outline: "none",
2587
- background: "transparent",
2588
- resize: "none",
2589
- fieldSizing: "content",
2590
- fontFamily: "inherit",
2591
- fontSize: "14px",
2592
- lineHeight: ROW,
2593
- color: dsw.alias.label.primary
2594
- }
2595
- });
2596
- const LineComment = styled("span")({
2597
- flex: "1 1 auto",
2598
- minWidth: 0,
2599
- overflow: "hidden",
2600
- textOverflow: "ellipsis",
2601
- color: dsw.alias.label.tertiary,
2602
- fontFamily: "inherit",
2603
- fontSize: "12px"
2604
- });
2605
- const LineInvalid = styled("span")({
2606
- flex: "0 1 auto",
2607
- minWidth: 0,
2608
- overflow: "hidden",
2609
- textOverflow: "ellipsis",
2610
- color: dsw.alias.state.error.primary,
2611
- fontFamily: "inherit",
2612
- fontSize: "12px"
2613
- });
2614
- const HoverActions = styled(styled("span")({
2615
- display: "inline-flex",
2616
- alignItems: "center",
2617
- gap: ACTION_GAP,
2618
- flex: "none",
2619
- opacity: 0,
2620
- "& > button": {
2621
- display: "inline-flex",
2622
- alignItems: "center",
2623
- justifyContent: "center",
2624
- width: ACTION,
2625
- height: ACTION,
2626
- padding: 0,
2627
- border: 0,
2628
- borderRadius: "4px",
2629
- background: "none",
2630
- color: dsw.alias.label.secondary,
2631
- cursor: "pointer",
2632
- "&:hover": {
2633
- background: dsw.alias.bg.layer["3"],
2634
- color: dsw.alias.label.primary
2635
- },
2636
- "&:disabled": {
2637
- cursor: "not-allowed",
2638
- color: dsw.alias.label.dimmed
2639
- }
2640
- }
2641
- }))({ "&[data-editing='true']": {
2642
- opacity: 1,
2643
- gap: GAP,
2644
- "& > button": {
2645
- boxShadow: HAIRLINE,
2646
- background: dsw.alias.bg.layer["1"],
2647
- color: dsw.alias.label.primary,
2648
- "&:first-of-type": { color: dsw.alias.state.success.primary }
2649
- }
2650
- } });
2651
- const AddWrap = styled("span")({
2652
- position: "relative",
2653
- display: "inline-flex",
2654
- alignItems: "center",
2655
- gap: GAP,
2656
- flex: "1 1 auto",
2657
- minWidth: 0,
2658
- marginLeft: GAP,
2659
- "&[data-invalid='true'] input": { borderColor: dsw.alias.state.error.primary }
2660
- });
2661
- const Hint$1 = styled("p")({
2662
- margin: 0,
2663
- fontSize: "12px",
2664
- lineHeight: 1.5,
2665
- color: dsw.alias.label.tertiary
2666
- });
2667
1492
  //#endregion
2668
1493
  //#region ../../client/ui-primitives/src/client/schema-form/TruncatedTooltip.tsx
2669
1494
  function TruncatedTooltip({ label, children }) {
@@ -2721,7 +1546,8 @@ window.__ModuleLoader__.load({
2721
1546
  owner,
2722
1547
  options: owner.options
2723
1548
  });
2724
- if (owner.node.meta.secret) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineValue, {
1549
+ if (owner.node.meta.secret) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1550
+ className: schema_form_module_css_default.lineValue,
2725
1551
  "data-tone": "empty",
2726
1552
  title: owner.hint,
2727
1553
  children: owner.secretConfigured ? "••••••" : ""
@@ -2729,7 +1555,8 @@ window.__ModuleLoader__.load({
2729
1555
  const text = tokenText(owner.value);
2730
1556
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TruncatedTooltip, {
2731
1557
  label: text,
2732
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineValue, {
1558
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1559
+ className: schema_form_module_css_default.lineValue,
2733
1560
  "data-tone": owner.node.readOnly === null ? tokenTone(owner.value) : "empty",
2734
1561
  children: text
2735
1562
  })
@@ -2759,14 +1586,16 @@ window.__ModuleLoader__.load({
2759
1586
  onClose: () => {
2760
1587
  setOpen(false);
2761
1588
  },
2762
- anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ValueTrigger, {
1589
+ anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
1590
+ className: schema_form_module_css_default.valueTrigger,
2763
1591
  type: "button",
2764
1592
  disabled: owner.disabled,
2765
1593
  "aria-label": owner.label,
2766
1594
  onClick: () => {
2767
1595
  setOpen(true);
2768
1596
  },
2769
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineValue, {
1597
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1598
+ className: schema_form_module_css_default.lineValue,
2770
1599
  "data-tone": current === void 0 ? tokenTone(owner.value) : tokenTone(current.value),
2771
1600
  children: label
2772
1601
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { size: 14 })]
@@ -2895,6 +1724,11 @@ window.__ModuleLoader__.load({
2895
1724
  }
2896
1725
  }
2897
1726
  //#endregion
1727
+ //#region ../../client/ui-primitives/src/client/controls/classes.ts
1728
+ function classes(...names) {
1729
+ return names.filter((name) => typeof name === "string" && name !== "").join(" ");
1730
+ }
1731
+ //#endregion
2898
1732
  //#region ../../client/ui-primitives/src/client/schema-form/Editor.tsx
2899
1733
  function Editor(props) {
2900
1734
  const { ns, state, face, t, resolveText, renderField } = props;
@@ -2910,9 +1744,10 @@ window.__ModuleLoader__.load({
2910
1744
  t
2911
1745
  ]);
2912
1746
  const disabled = !state.writable || !state.available;
2913
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EditorRoot, {
1747
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1748
+ className: schema_form_module_css_default.editorRoot,
2914
1749
  "data-editor": "schema-form",
2915
- children: lines.map((line, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Row, {
1750
+ children: lines.map((line, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Row$1, {
2916
1751
  line,
2917
1752
  n: index + 1,
2918
1753
  ns,
@@ -2973,20 +1808,26 @@ window.__ModuleLoader__.load({
2973
1808
  toggled
2974
1809
  ]);
2975
1810
  }
2976
- function Row({ line, n, ns, state, face, fold, t, resolveText, disabled, editing, selected, dismissed, onEdit, onAdded, onDismiss, onSelect, renderField }) {
1811
+ function Row$1({ line, n, ns, state, face, fold, t, resolveText, disabled, editing, selected, dismissed, onEdit, onAdded, onDismiss, onSelect, renderField }) {
2977
1812
  const key = fieldKey(line.path);
2978
1813
  const indent = { paddingLeft: `${String(line.depth * 14)}px` };
2979
- const body = line.kind === "comment" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineFoldSpacer, { "data-role": "fold" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TruncatedTooltip, {
1814
+ const body = line.kind === "comment" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1815
+ className: schema_form_module_css_default.lineFoldSpacer,
1816
+ "data-role": "fold"
1817
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TruncatedTooltip, {
2980
1818
  label: line.text,
2981
- children: line.invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineInvalid, {
1819
+ children: line.invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1820
+ className: schema_form_module_css_default.lineInvalid,
2982
1821
  "data-role": "comment",
2983
1822
  children: `// ${line.text}`
2984
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineComment, {
1823
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1824
+ className: schema_form_module_css_default.lineComment,
2985
1825
  "data-role": "comment",
2986
1826
  children: `// ${line.text}`
2987
1827
  })
2988
1828
  })] }) : line.kind === "open" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
2989
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineFold, {
1829
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1830
+ className: schema_form_module_css_default.lineFold,
2990
1831
  "data-role": "fold",
2991
1832
  type: "button",
2992
1833
  "aria-expanded": !line.collapsed,
@@ -3002,7 +1843,10 @@ window.__ModuleLoader__.load({
3002
1843
  t,
3003
1844
  disabled
3004
1845
  }),
3005
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineToken, { children: line.shape === "object" ? line.collapsed ? "{…}" : "{" : line.collapsed ? "[…]" : "[" }),
1846
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1847
+ className: schema_form_module_css_default.lineToken,
1848
+ children: line.shape === "object" ? line.collapsed ? "{…}" : "{" : line.collapsed ? "[…]" : "["
1849
+ }),
3006
1850
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VariantSelect, {
3007
1851
  control: line.variants,
3008
1852
  path: line.path,
@@ -3011,8 +1855,14 @@ window.__ModuleLoader__.load({
3011
1855
  t
3012
1856
  })
3013
1857
  ] }) : line.kind === "close" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
3014
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineFoldSpacer, { "data-role": "fold" }),
3015
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineToken, { children: line.shape === "object" ? "}" : "]" }),
1858
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1859
+ className: schema_form_module_css_default.lineFoldSpacer,
1860
+ "data-role": "fold"
1861
+ }),
1862
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1863
+ className: schema_form_module_css_default.lineToken,
1864
+ children: line.shape === "object" ? "}" : "]"
1865
+ }),
3016
1866
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddLine, {
3017
1867
  line,
3018
1868
  state,
@@ -3035,20 +1885,23 @@ window.__ModuleLoader__.load({
3035
1885
  onDismiss,
3036
1886
  renderField
3037
1887
  });
3038
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(LineRow, {
1888
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1889
+ className: schema_form_module_css_default.lineRow,
3039
1890
  "data-line": line.kind,
3040
1891
  "data-field-path": line.path.join("."),
3041
1892
  "data-selected": selected === key ? "true" : void 0,
3042
1893
  "data-dirty": line.kind === "field" && line.field.staged ? "true" : void 0,
3043
1894
  "data-overridden": line.kind === "field" && line.field.overridden && !line.field.staged ? "true" : void 0,
3044
1895
  "data-invalid": line.kind === "field" && (line.field.invalid !== void 0 || state.invalidAt.has(key)) ? "true" : void 0,
3045
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineNumber, {
1896
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1897
+ className: schema_form_module_css_default.lineNumber,
3046
1898
  "data-role": "number",
3047
1899
  onClick: () => {
3048
1900
  onSelect(line.path);
3049
1901
  },
3050
1902
  children: n
3051
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineBody, {
1903
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1904
+ className: schema_form_module_css_default.lineBody,
3052
1905
  "data-role": "body",
3053
1906
  style: indent,
3054
1907
  children: body
@@ -3093,49 +1946,63 @@ window.__ModuleLoader__.load({
3093
1946
  const text = line.field.text ?? valueText(line.field.value);
3094
1947
  const multiline = isMultiline(line.field.value) || /[\r\n]/.test(text);
3095
1948
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
3096
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineFoldSpacer, { "data-role": "fold" }),
3097
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineKey, {
1949
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1950
+ className: schema_form_module_css_default.lineFoldSpacer,
1951
+ "data-role": "fold"
1952
+ }),
1953
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1954
+ className: schema_form_module_css_default.lineKey,
3098
1955
  "data-role": "key",
3099
1956
  "data-index": member?.index === void 0 ? void 0 : "true",
3100
1957
  title: member?.key ?? line.node.key,
3101
1958
  children: member?.key ?? line.node.key
3102
1959
  }),
3103
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineToken, { children: member?.index === void 0 ? ": " : " " }),
3104
- isEditing ? multiline ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CompactTextField, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
3105
- autoFocus: !missing,
3106
- rows: 1,
3107
- "aria-label": owner.label,
3108
- value: text,
3109
- onChange: (event) => {
3110
- owner.onEditText(event.target.value);
3111
- },
3112
- onKeyDown: (event) => {
3113
- if (event.key === "Escape") {
3114
- face.revert(line.path);
3115
- onEdit(void 0);
1960
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1961
+ className: schema_form_module_css_default.lineToken,
1962
+ children: member?.index === void 0 ? ": " : " "
1963
+ }),
1964
+ isEditing ? multiline ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1965
+ className: schema_form_module_css_default.compactTextField,
1966
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
1967
+ autoFocus: !missing,
1968
+ rows: 1,
1969
+ "aria-label": owner.label,
1970
+ value: text,
1971
+ onChange: (event) => {
1972
+ owner.onEditText(event.target.value);
1973
+ },
1974
+ onKeyDown: (event) => {
1975
+ if (event.key === "Escape") {
1976
+ face.revert(line.path);
1977
+ onEdit(void 0);
1978
+ }
3116
1979
  }
3117
- }
3118
- }) }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CompactInput, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
3119
- autoFocus: !missing,
3120
- type: "text",
3121
- "aria-label": owner.label,
3122
- placeholder: missing ? t("empty") : "",
3123
- value: text,
3124
- onBlur: () => {
3125
- if (!missing) onEdit(void 0);
3126
- },
3127
- onChange: (event) => {
3128
- owner.onEditText(event.target.value);
3129
- },
3130
- onKeyDown: (event) => {
3131
- if (event.key === "Enter" && !missing) onEdit(void 0);
3132
- if (event.key === "Escape") {
3133
- face.revert(line.path);
3134
- onEdit(void 0);
1980
+ })
1981
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1982
+ className: schema_form_module_css_default.compactInput,
1983
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
1984
+ autoFocus: !missing,
1985
+ type: "text",
1986
+ "aria-label": owner.label,
1987
+ placeholder: missing ? t("empty") : "",
1988
+ value: text,
1989
+ onBlur: () => {
1990
+ if (!missing) onEdit(void 0);
1991
+ },
1992
+ onChange: (event) => {
1993
+ owner.onEditText(event.target.value);
1994
+ },
1995
+ onKeyDown: (event) => {
1996
+ if (event.key === "Enter" && !missing) onEdit(void 0);
1997
+ if (event.key === "Escape") {
1998
+ face.revert(line.path);
1999
+ onEdit(void 0);
2000
+ }
3135
2001
  }
3136
- }
3137
- }) }) : null,
3138
- isEditing || line.variantsStandIn ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueSlot, {
2002
+ })
2003
+ }) : null,
2004
+ isEditing || line.variantsStandIn ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2005
+ className: schema_form_module_css_default.valueSlot,
3139
2006
  "data-role": "value",
3140
2007
  onClick: () => {
3141
2008
  if (editable) onEdit(key);
@@ -3149,7 +2016,8 @@ window.__ModuleLoader__.load({
3149
2016
  disabled,
3150
2017
  t
3151
2018
  }),
3152
- isEditing ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HoverActions, {
2019
+ isEditing ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2020
+ className: classes(schema_form_module_css_default.lineActions, schema_form_module_css_default.hoverActions),
3153
2021
  "data-role": "actions",
3154
2022
  "data-editing": "true",
3155
2023
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
@@ -3172,7 +2040,8 @@ window.__ModuleLoader__.load({
3172
2040
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { size: 14 })
3173
2041
  })]
3174
2042
  }) : null,
3175
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HoverActions, {
2043
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2044
+ className: classes(schema_form_module_css_default.lineActions, schema_form_module_css_default.hoverActions),
3176
2045
  "data-role": "actions",
3177
2046
  children: [
3178
2047
  line.field.staged && !disabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
@@ -3238,7 +2107,8 @@ window.__ModuleLoader__.load({
3238
2107
  onClose: () => {
3239
2108
  setOpen(false);
3240
2109
  },
3241
- anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ValueTrigger, {
2110
+ anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
2111
+ className: schema_form_module_css_default.valueTrigger,
3242
2112
  type: "button",
3243
2113
  "data-role": "variant",
3244
2114
  disabled,
@@ -3246,7 +2116,8 @@ window.__ModuleLoader__.load({
3246
2116
  onClick: () => {
3247
2117
  setOpen(true);
3248
2118
  },
3249
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineValue, {
2119
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2120
+ className: schema_form_module_css_default.lineValue,
3250
2121
  "data-tone": "empty",
3251
2122
  children: current?.label ?? ""
3252
2123
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { size: 14 })]
@@ -3259,14 +2130,19 @@ window.__ModuleLoader__.load({
3259
2130
  if (key === "") return null;
3260
2131
  const indexed = member !== void 0 && member.index !== void 0;
3261
2132
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
3262
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineKey, {
2133
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2134
+ className: schema_form_module_css_default.lineKey,
3263
2135
  "data-role": "key",
3264
2136
  "data-index": indexed ? "true" : void 0,
3265
2137
  title: key,
3266
2138
  children: key
3267
2139
  }),
3268
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineToken, { children: indexed ? " " : ": " }),
3269
- member === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HoverActions, {
2140
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2141
+ className: schema_form_module_css_default.lineToken,
2142
+ children: indexed ? " " : ": "
2143
+ }),
2144
+ member === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2145
+ className: classes(schema_form_module_css_default.lineActions, schema_form_module_css_default.hoverActions),
3270
2146
  "data-role": "actions",
3271
2147
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RemoveLineButton, {
3272
2148
  member,
@@ -3329,7 +2205,8 @@ window.__ModuleLoader__.load({
3329
2205
  setText("");
3330
2206
  setOpen(false);
3331
2207
  };
3332
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AddWrap, {
2208
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2209
+ className: schema_form_module_css_default.addWrap,
3333
2210
  "data-add": spec.kind,
3334
2211
  "data-invalid": invalid ? "true" : void 0,
3335
2212
  children: [
@@ -3349,35 +2226,44 @@ window.__ModuleLoader__.load({
3349
2226
  onClose: () => {
3350
2227
  setOpen(false);
3351
2228
  },
3352
- anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CompactInput, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
3353
- value: text,
3354
- placeholder: label,
3355
- "aria-label": label,
3356
- disabled,
3357
- onFocus: () => {
3358
- setOpen(true);
3359
- },
3360
- onChange: (event) => {
3361
- setText(event.target.value);
3362
- setInvalid(false);
3363
- setOpen(true);
3364
- },
3365
- onKeyDown: (event) => {
3366
- if (event.key === "Enter") {
3367
- event.preventDefault();
3368
- commit(matched.length === 1 && spec.kind === "prop" ? matched[0]?.key : void 0);
3369
- }
3370
- if (event.key === "Escape") {
3371
- setText("");
3372
- setOpen(false);
2229
+ anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2230
+ className: schema_form_module_css_default.compactInput,
2231
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
2232
+ value: text,
2233
+ placeholder: label,
2234
+ "aria-label": label,
2235
+ disabled,
2236
+ onFocus: () => {
2237
+ setOpen(true);
2238
+ },
2239
+ onChange: (event) => {
2240
+ setText(event.target.value);
2241
+ setInvalid(false);
2242
+ setOpen(true);
2243
+ },
2244
+ onKeyDown: (event) => {
2245
+ if (event.key === "Enter") {
2246
+ event.preventDefault();
2247
+ commit(matched.length === 1 && spec.kind === "prop" ? matched[0]?.key : void 0);
2248
+ }
2249
+ if (event.key === "Escape") {
2250
+ setText("");
2251
+ setOpen(false);
2252
+ }
3373
2253
  }
3374
- }
3375
- }) })
2254
+ })
2255
+ })
3376
2256
  }),
3377
- invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineInvalid, { children: t("unknownProperty") }) : null,
2257
+ invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2258
+ className: schema_form_module_css_default.lineInvalid,
2259
+ children: t("unknownProperty")
2260
+ }) : null,
3378
2261
  !invalid && matched.length === 1 && matched[0]?.description !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TruncatedTooltip, {
3379
2262
  label: resolveText(matched[0].description),
3380
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LineComment, { children: resolveText(matched[0].description) })
2263
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2264
+ className: schema_form_module_css_default.lineComment,
2265
+ children: resolveText(matched[0].description)
2266
+ })
3381
2267
  }) : null
3382
2268
  ]
3383
2269
  });
@@ -3395,7 +2281,8 @@ window.__ModuleLoader__.load({
3395
2281
  save: t("save"),
3396
2282
  saving: t("saving")
3397
2283
  };
3398
- if (!state.configured) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint$1, {
2284
+ if (!state.configured) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2285
+ className: schema_form_module_css_default.hint,
3399
2286
  role: "status",
3400
2287
  children: t("noSchema")
3401
2288
  });
@@ -3418,7 +2305,8 @@ window.__ModuleLoader__.load({
3418
2305
  ...owner,
3419
2306
  onEditText: withParse(owner, t)
3420
2307
  } }) })
3421
- }), state.violation === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint$1, {
2308
+ }), state.violation === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2309
+ className: schema_form_module_css_default.hint,
3422
2310
  role: "alert",
3423
2311
  "data-violation": "true",
3424
2312
  children: t("notSaved", { message: state.violation.message })
@@ -3543,205 +2431,284 @@ window.__ModuleLoader__.load({
3543
2431
  }, "ui-schema-form: row registrations");
3544
2432
  }
3545
2433
  //#endregion
3546
- //#region ../../client/ui-primitives/src/client/styling/focus.ts
3547
- const focusRing = `${String(dsw.focus.ring.width)} solid ${Token.collect(Token.fallbackVar(dsw.focus.ring.color, String(dsw.alias.state.business.primary)))}`;
3548
- //#endregion
3549
- //#region ../../client/ui-primitives/src/client/settings-form/fields.styles.ts
3550
- const helpButtonHoverBackground = "var(--dsw-alias-bg-layer-4)";
3551
- const styles$1 = {
3552
- field: {
3553
- display: "flex",
3554
- flexDirection: "column",
3555
- gap: "6px",
3556
- padding: "12px 0",
3557
- "& + &": { borderTop: `0.5px solid ${String(dsw.alias.border.l2)}` }
3558
- },
3559
- head: {
3560
- display: "flex",
3561
- alignItems: "center",
3562
- gap: "8px"
3563
- },
3564
- label: {
3565
- flex: 1,
3566
- minWidth: 0,
3567
- fontSize: "13px",
3568
- fontWeight: 500,
3569
- lineHeight: 1.5,
3570
- color: dsw.alias.label.primary
3571
- },
3572
- groupLabel: { flex: "0 1 auto" },
3573
- labelGroup: {
3574
- display: "flex",
3575
- alignItems: "center",
3576
- gap: "4px",
3577
- flex: 1,
3578
- minWidth: 0
3579
- },
3580
- helpButton: {
3581
- display: "inline-flex",
3582
- alignItems: "center",
3583
- justifyContent: "center",
3584
- flex: "none",
3585
- width: "24px",
3586
- height: "24px",
3587
- padding: 0,
3588
- border: 0,
3589
- borderRadius: "6px",
3590
- background: "none",
3591
- color: dsw.alias.label.tertiary,
3592
- cursor: "pointer",
3593
- "&:hover": {
3594
- background: helpButtonHoverBackground,
3595
- color: dsw.alias.label.secondary
3596
- },
3597
- "&[aria-expanded='true']": {
3598
- background: helpButtonHoverBackground,
3599
- color: dsw.alias.label.secondary
3600
- },
3601
- "&:focus-visible": {
3602
- outline: focusRing,
3603
- outlineOffset: "1px"
3604
- }
3605
- },
3606
- help: {
3607
- padding: "10px 0 0",
3608
- fontSize: "12px",
3609
- lineHeight: 1.6,
3610
- color: dsw.alias.label.secondary,
3611
- "& > p": { margin: 0 },
3612
- "& > p + p": { marginTop: "8px" }
3613
- },
3614
- badges: {
3615
- display: "inline-flex",
3616
- alignItems: "center",
3617
- gap: "8px"
3618
- },
3619
- badge: {
3620
- display: "inline-flex",
3621
- alignItems: "center",
3622
- borderRadius: "999px",
3623
- cornerShape: "round",
3624
- padding: "1px 8px",
3625
- fontSize: "11px",
3626
- lineHeight: "17px",
3627
- fontWeight: 500,
3628
- whiteSpace: "nowrap"
3629
- },
3630
- badgeNeutral: {
3631
- background: dsw.alias.bg.module.platform,
3632
- color: dsw.alias.label.secondary
3633
- },
3634
- badgeQuiet: { color: dsw.alias.label.tertiary },
3635
- reset: {
3636
- border: "none",
3637
- background: "none",
3638
- padding: 0,
3639
- font: "inherit",
3640
- fontSize: "12px",
3641
- lineHeight: 1.5,
3642
- color: dsw.alias.label.secondary,
3643
- cursor: "pointer",
3644
- "&:hover:not(:disabled)": { color: dsw.alias.label.primary },
3645
- "&:disabled": { cursor: "default" }
3646
- },
3647
- input: {
3648
- height: "34px",
3649
- padding: "0 12px",
3650
- border: `0.5px solid ${String(dsw.alias.border.l4)}`,
3651
- borderRadius: "8px",
3652
- background: dsw.alias.bg.layer["3"],
3653
- font: "inherit",
3654
- fontSize: "13px",
3655
- lineHeight: 1.5,
3656
- color: dsw.alias.label.primary,
3657
- "&:focus-visible": {
3658
- outline: "none",
3659
- borderColor: dsw.alias.state.business.primary
3660
- },
3661
- "&:disabled": {
3662
- color: dsw.alias.label.tertiary,
3663
- cursor: "default"
3664
- },
3665
- "&[aria-invalid='true']": { borderColor: dsw.alias.state.error.primary }
3666
- },
3667
- invalid: {
3668
- margin: 0,
3669
- fontSize: "12px",
3670
- lineHeight: 1.5,
3671
- color: dsw.alias.state.error.primary
3672
- },
3673
- hint: {
3674
- margin: 0,
3675
- fontSize: "12px",
3676
- lineHeight: 1.5,
3677
- color: dsw.alias.label.tertiary
3678
- }
2434
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/layout/layout.module.css.mjs
2435
+ const css$15 = ".e_G4ZW_stack{flex-direction:column;min-width:0;display:flex}.e_G4ZW_row{flex-direction:row;align-items:center;min-width:0;display:flex}.e_G4ZW_gap0{gap:0}.e_G4ZW_gap2{gap:2px}.e_G4ZW_gap4{gap:4px}.e_G4ZW_gap6{gap:6px}.e_G4ZW_gap8{gap:8px}.e_G4ZW_gap10{gap:10px}.e_G4ZW_gap12{gap:12px}.e_G4ZW_gap14{gap:14px}.e_G4ZW_gap16{gap:16px}.e_G4ZW_alignStart{align-items:flex-start}.e_G4ZW_alignCenter{align-items:center}.e_G4ZW_alignEnd{align-items:flex-end}.e_G4ZW_justifyBetween{justify-content:space-between}.e_G4ZW_justifyEnd{justify-content:flex-end}.e_G4ZW_justifyCenter{justify-content:center}.e_G4ZW_wrap{flex-wrap:wrap}.e_G4ZW_grow{flex:auto;min-width:0}.e_G4ZW_push{margin-left:auto}.e_G4ZW_fill{box-sizing:border-box;width:100%;height:100%;overflow:hidden}.e_G4ZW_scroll{flex:auto;min-height:0;overflow-y:auto}.e_G4ZW_plain{margin:0;padding:0;list-style:none}.e_G4ZW_padNone{padding:0}.e_G4ZW_padCard{padding:8px 12px}.e_G4ZW_padBody{padding:8px 0}.e_G4ZW_padPage{padding:24px 28px}.e_G4ZW_padRow{padding:10px 12px}.e_G4ZW_padBlocking{padding:32px 40px}.e_G4ZW_text{margin:0}.e_G4ZW_sizeXs{font-size:11px;line-height:1.5}.e_G4ZW_sizeSm{font-size:12px;line-height:18px}.e_G4ZW_sizeMd{font-size:13px;line-height:20px}.e_G4ZW_sizeBase{font-size:14px;line-height:24px}.e_G4ZW_sizeLg{font-size:16px;line-height:24px}.e_G4ZW_tonePrimary{color:var(--dsw-alias-label-primary)}.e_G4ZW_toneSecondary{color:var(--dsw-alias-label-secondary)}.e_G4ZW_toneTertiary{color:var(--dsw-alias-label-tertiary)}.e_G4ZW_toneDanger{color:var(--dsw-alias-label-error,var(--dsw-alias-label-primary))}.e_G4ZW_weightMedium{font-weight:500}.e_G4ZW_strong{font-weight:600}.e_G4ZW_mono{word-break:break-all;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace}.e_G4ZW_truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.e_G4ZW_tabular{font-variant-numeric:tabular-nums}.e_G4ZW_boxed{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-base);border-radius:10px}.e_G4ZW_fixed{flex:none}.e_G4ZW_gapWide{gap:6px 20px}.e_G4ZW_narrow{min-width:0;max-width:min(calc(var(--dsh-chat-content-width,748px) * .702), 82%)}.e_G4ZW_wSearch{flex:none;width:360px;max-width:100%}";
2436
+ const tagId$15 = "@morlay/dsh-sandbox-local/layout.module.css";
2437
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/layout.module.css\"]") === null) {
2438
+ const tag = document.createElement("style");
2439
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2440
+ tag.dataset.pluginCss = tagId$15;
2441
+ tag.textContent = css$15;
2442
+ document.head.appendChild(tag);
2443
+ }
2444
+ var layout_module_css_default = {
2445
+ "narrow": "e_G4ZW_narrow",
2446
+ "wSearch": "e_G4ZW_wSearch",
2447
+ "padBody": "e_G4ZW_padBody",
2448
+ "padNone": "e_G4ZW_padNone",
2449
+ "fixed": "e_G4ZW_fixed",
2450
+ "toneSecondary": "e_G4ZW_toneSecondary",
2451
+ "alignCenter": "e_G4ZW_alignCenter",
2452
+ "wrap": "e_G4ZW_wrap",
2453
+ "grow": "e_G4ZW_grow",
2454
+ "sizeMd": "e_G4ZW_sizeMd",
2455
+ "padBlocking": "e_G4ZW_padBlocking",
2456
+ "tabular": "e_G4ZW_tabular",
2457
+ "gap8": "e_G4ZW_gap8",
2458
+ "gap4": "e_G4ZW_gap4",
2459
+ "gap6": "e_G4ZW_gap6",
2460
+ "weightMedium": "e_G4ZW_weightMedium",
2461
+ "sizeLg": "e_G4ZW_sizeLg",
2462
+ "mono": "e_G4ZW_mono",
2463
+ "gapWide": "e_G4ZW_gapWide",
2464
+ "plain": "e_G4ZW_plain",
2465
+ "truncate": "e_G4ZW_truncate",
2466
+ "tonePrimary": "e_G4ZW_tonePrimary",
2467
+ "row": "e_G4ZW_row",
2468
+ "justifyBetween": "e_G4ZW_justifyBetween",
2469
+ "stack": "e_G4ZW_stack",
2470
+ "alignEnd": "e_G4ZW_alignEnd",
2471
+ "padCard": "e_G4ZW_padCard",
2472
+ "fill": "e_G4ZW_fill",
2473
+ "sizeSm": "e_G4ZW_sizeSm",
2474
+ "gap2": "e_G4ZW_gap2",
2475
+ "gap16": "e_G4ZW_gap16",
2476
+ "gap0": "e_G4ZW_gap0",
2477
+ "alignStart": "e_G4ZW_alignStart",
2478
+ "padRow": "e_G4ZW_padRow",
2479
+ "text": "e_G4ZW_text",
2480
+ "sizeBase": "e_G4ZW_sizeBase",
2481
+ "boxed": "e_G4ZW_boxed",
2482
+ "gap10": "e_G4ZW_gap10",
2483
+ "push": "e_G4ZW_push",
2484
+ "scroll": "e_G4ZW_scroll",
2485
+ "justifyEnd": "e_G4ZW_justifyEnd",
2486
+ "gap12": "e_G4ZW_gap12",
2487
+ "sizeXs": "e_G4ZW_sizeXs",
2488
+ "toneTertiary": "e_G4ZW_toneTertiary",
2489
+ "toneDanger": "e_G4ZW_toneDanger",
2490
+ "gap14": "e_G4ZW_gap14",
2491
+ "strong": "e_G4ZW_strong",
2492
+ "padPage": "e_G4ZW_padPage",
2493
+ "justifyCenter": "e_G4ZW_justifyCenter"
3679
2494
  };
3680
- styled("div")(styles$1.field);
3681
- styled("div")(styles$1.head);
3682
- styled("div")(styles$1.labelGroup);
3683
- styled("label")(styles$1.label, styles$1.groupLabel);
3684
- styled("label")(styles$1.label);
3685
- styled("button")(styles$1.helpButton);
3686
- styled("div")(styles$1.help);
3687
- styled("span")(styles$1.badges);
3688
- styled("span")(styles$1.badge, styles$1.badgeNeutral);
3689
- styled("span")(styles$1.badge, styles$1.badgeQuiet);
3690
- styled("button")(styles$1.reset);
3691
- styled("input")(styles$1.input);
3692
- styled("p")(styles$1.invalid);
3693
- styled("p")(styles$1.hint);
3694
- const styles = {
3695
- form: {
3696
- display: "flex",
3697
- flexDirection: "column"
3698
- },
3699
- notice: {
3700
- margin: "0 0 12px",
3701
- fontSize: "12px",
3702
- lineHeight: 1.5,
3703
- color: dsw.alias.label.tertiary
3704
- },
3705
- footer: {
3706
- display: "flex",
3707
- alignItems: "center",
3708
- gap: "8px",
3709
- paddingTop: "16px"
3710
- },
3711
- failed: {
3712
- flex: 1,
3713
- minWidth: 0,
3714
- margin: 0,
3715
- fontSize: "12px",
3716
- lineHeight: 1.5,
3717
- color: "var(--dsw-alias-label-error)"
3718
- },
3719
- save: {
3720
- appearance: "none",
3721
- border: "1px solid transparent",
3722
- borderRadius: "8px",
3723
- padding: "5px 14px",
3724
- font: "inherit",
3725
- fontSize: "13px",
3726
- lineHeight: 1.5,
3727
- cursor: "pointer",
3728
- background: dsw.alias.label.primary,
3729
- color: dsw.alias.bg.layer["3"],
3730
- "&:disabled": {
3731
- opacity: .4,
3732
- cursor: "default"
3733
- },
3734
- "&:focus-visible": {
3735
- outline: focusRing,
3736
- outlineOffset: "1px"
3737
- }
3738
- }
2495
+ //#endregion
2496
+ //#region ../../client/ui-primitives/src/client/layout/scales.ts
2497
+ function gapClass(css, gap) {
2498
+ if (gap === void 0) return void 0;
2499
+ return gap === "wide" ? css.gapWide : css[`gap${gap}`];
2500
+ }
2501
+ function alignClass(css, align) {
2502
+ if (align === void 0 || align === "stretch") return void 0;
2503
+ if (align === "start") return css.alignStart;
2504
+ return align === "center" ? css.alignCenter : css.alignEnd;
2505
+ }
2506
+ function justifyClass(css, justify) {
2507
+ if (justify === void 0) return void 0;
2508
+ if (justify === "between") return css.justifyBetween;
2509
+ if (justify === "end") return css.justifyEnd;
2510
+ return justify === "center" ? css.justifyCenter : void 0;
2511
+ }
2512
+ function padClass(css, pad) {
2513
+ if (pad === void 0 || pad === "none") return void 0;
2514
+ if (pad === "card") return css.padCard;
2515
+ if (pad === "body") return css.padBody;
2516
+ if (pad === "page") return css.padPage;
2517
+ return pad === "row" ? css.padRow : css.padBlocking;
2518
+ }
2519
+ (0, react.forwardRef)(function Row({ as: Element = "div", gap, align, justify, wrap = false, grow = false, boxed = false, fixed = false, narrow = false, push = false, plain = false, pad, className, children, ...rest }, ref) {
2520
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Element, {
2521
+ ref,
2522
+ className: classes(layout_module_css_default.row, gapClass(layout_module_css_default, gap), alignClass(layout_module_css_default, align), justifyClass(layout_module_css_default, justify), padClass(layout_module_css_default, pad), wrap ? layout_module_css_default.wrap : void 0, grow ? layout_module_css_default.grow : void 0, boxed ? layout_module_css_default.boxed : void 0, fixed ? layout_module_css_default.fixed : void 0, narrow ? layout_module_css_default.narrow : void 0, push ? layout_module_css_default.push : void 0, boxed ? layout_module_css_default.boxed : void 0, fixed ? layout_module_css_default.fixed : void 0, plain ? layout_module_css_default.plain : void 0, className),
2523
+ ...rest,
2524
+ children
2525
+ });
2526
+ });
2527
+ (0, react.forwardRef)(function Stack({ as: Element = "div", gap, align, pad, grow = false, boxed = false, fixed = false, narrow = false, fill = false, scroll = false, plain = false, className, children, ...rest }, ref) {
2528
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Element, {
2529
+ ref,
2530
+ className: classes(layout_module_css_default.stack, gapClass(layout_module_css_default, gap), alignClass(layout_module_css_default, align), padClass(layout_module_css_default, pad), grow ? layout_module_css_default.grow : void 0, boxed ? layout_module_css_default.boxed : void 0, fixed ? layout_module_css_default.fixed : void 0, narrow ? layout_module_css_default.narrow : void 0, fill ? layout_module_css_default.fill : void 0, scroll ? layout_module_css_default.scroll : void 0, plain ? layout_module_css_default.plain : void 0, className),
2531
+ ...rest,
2532
+ children
2533
+ });
2534
+ });
2535
+ //#endregion
2536
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/settings-form/SettingsFieldRow.module.css.mjs
2537
+ const css$14 = "._72UBVa_row{flex-direction:column;display:flex}._72UBVa_row[data-divider=true]{border-top:.5px solid var(--dsw-alias-border-l2)}._72UBVa_body{flex-direction:column;gap:6px;padding:12px 0;display:flex}._72UBVa_inline{flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;display:flex}._72UBVa_text{flex-direction:column;gap:2px;min-width:0;display:flex}._72UBVa_label{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;font-size:13px;font-weight:500;line-height:1.5;display:flex}._72UBVa_badge{corner-shape:round;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);border-radius:999px;align-items:center;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}._72UBVa_reset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;line-height:1.5}._72UBVa_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}._72UBVa_reset:disabled{cursor:default}._72UBVa_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}._72UBVa_invalid{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:1.5}";
2538
+ const tagId$14 = "@morlay/dsh-sandbox-local/SettingsFieldRow.module.css";
2539
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/SettingsFieldRow.module.css\"]") === null) {
2540
+ const tag = document.createElement("style");
2541
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2542
+ tag.dataset.pluginCss = tagId$14;
2543
+ tag.textContent = css$14;
2544
+ document.head.appendChild(tag);
2545
+ }
2546
+ //#endregion
2547
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/Bubble.module.css.mjs
2548
+ const css$13 = ".dtkLCG_bubble{background:var(--dsw-specific-bubble);border-radius:var(--dsw-radius-xl);max-width:100%;font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-primary);white-space:pre-wrap;word-break:break-word;padding:10px 16px}";
2549
+ const tagId$13 = "@morlay/dsh-sandbox-local/Bubble.module.css";
2550
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/Bubble.module.css\"]") === null) {
2551
+ const tag = document.createElement("style");
2552
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2553
+ tag.dataset.pluginCss = tagId$13;
2554
+ tag.textContent = css$13;
2555
+ document.head.appendChild(tag);
2556
+ }
2557
+ //#endregion
2558
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/Button.module.css.mjs
2559
+ const css$12 = ".WFViLq_label{white-space:nowrap}.WFViLq_danger{--dsw-alias-button-primary-fill:var(--dsw-alias-state-error-primary)}";
2560
+ const tagId$12 = "@morlay/dsh-sandbox-local/Button.module.css";
2561
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/Button.module.css\"]") === null) {
2562
+ const tag = document.createElement("style");
2563
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2564
+ tag.dataset.pluginCss = tagId$12;
2565
+ tag.textContent = css$12;
2566
+ document.head.appendChild(tag);
2567
+ }
2568
+ var Button_module_css_default = {
2569
+ "label": "WFViLq_label",
2570
+ "danger": "WFViLq_danger"
3739
2571
  };
3740
- styled("div")(styles.form);
3741
- styled("p")(styles.notice);
3742
- styled("div")(styles.footer);
3743
- styled("p")(styles.failed);
3744
- styled("button")(styles.save);
2572
+ (0, react.forwardRef)(function Button({ className, tone, ...rest }, ref) {
2573
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
2574
+ ref,
2575
+ "data-role": "button",
2576
+ className: classes(className, Button_module_css_default.label, tone === "danger" ? Button_module_css_default.danger : void 0),
2577
+ ...rest
2578
+ });
2579
+ });
2580
+ //#endregion
2581
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/DisclosureRow.module.css.mjs
2582
+ const css$11 = ".MBWCEG_content{flex:auto;min-width:0}.MBWCEG_contentLayout{align-items:center;gap:8px;width:100%;min-width:0;display:flex}";
2583
+ const tagId$11 = "@morlay/dsh-sandbox-local/DisclosureRow.module.css";
2584
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/DisclosureRow.module.css\"]") === null) {
2585
+ const tag = document.createElement("style");
2586
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2587
+ tag.dataset.pluginCss = tagId$11;
2588
+ tag.textContent = css$11;
2589
+ document.head.appendChild(tag);
2590
+ }
2591
+ //#endregion
2592
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/SearchInput.module.css.mjs
2593
+ const css$10 = ".KiR4MG_search{flex:none;width:360px;max-width:100%}.KiR4MG_full{flex:none;width:100%}";
2594
+ const tagId$10 = "@morlay/dsh-sandbox-local/SearchInput.module.css";
2595
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/SearchInput.module.css\"]") === null) {
2596
+ const tag = document.createElement("style");
2597
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2598
+ tag.dataset.pluginCss = tagId$10;
2599
+ tag.textContent = css$10;
2600
+ document.head.appendChild(tag);
2601
+ }
2602
+ //#endregion
2603
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/SeatButton.module.css.mjs
2604
+ const css$9 = ".HcNbhG_seat{border-radius:var(--dsw-radius-sm);min-width:0;max-width:min(100%,240px);min-height:28px;color:var(--dsw-alias-label-primary);white-space:nowrap;cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;padding:0 8px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex}.HcNbhG_seat:not(:disabled):hover,.HcNbhG_seat[aria-expanded=true],.HcNbhG_expanded{background:var(--dsw-alias-interactive-bg-hover)}.HcNbhG_seat:disabled{cursor:default;color:var(--dsw-alias-label-quaternary)}.HcNbhG_icon{color:var(--dsw-alias-label-primary);flex:none;align-items:center;display:inline-flex}.HcNbhG_label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.HcNbhG_chevron{color:var(--dsw-alias-label-caption);flex:none;display:inline-flex}";
2605
+ const tagId$9 = "@morlay/dsh-sandbox-local/SeatButton.module.css";
2606
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/SeatButton.module.css\"]") === null) {
2607
+ const tag = document.createElement("style");
2608
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2609
+ tag.dataset.pluginCss = tagId$9;
2610
+ tag.textContent = css$9;
2611
+ document.head.appendChild(tag);
2612
+ }
2613
+ //#endregion
2614
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/Spinner.module.css.mjs
2615
+ const css$8 = ".HGVDmW_spinner{border:2px solid var(--dsw-alias-border-l2);border-top-color:var(--dsw-alias-label-primary);border-radius:50%;width:28px;height:28px;animation:.9s linear infinite HGVDmW_spin}@keyframes HGVDmW_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";
2616
+ const tagId$8 = "@morlay/dsh-sandbox-local/Spinner.module.css";
2617
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/Spinner.module.css\"]") === null) {
2618
+ const tag = document.createElement("style");
2619
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2620
+ tag.dataset.pluginCss = tagId$8;
2621
+ tag.textContent = css$8;
2622
+ document.head.appendChild(tag);
2623
+ }
2624
+ //#endregion
2625
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/Tabs.module.css.mjs
2626
+ const css$7 = ".GO-36q_tabs{z-index:1;flex:none;gap:36px;margin-top:10px;padding-left:8px;display:flex;position:relative}.GO-36q_tab{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;padding:0 0 9px;font-size:13px;font-weight:500;line-height:16px;position:relative}.GO-36q_tab:after{content:\"\";background:0 0;border-radius:2px;height:2px;position:absolute;bottom:-1px;left:0;right:0}.GO-36q_tabActive{color:var(--dsw-alias-state-business-primary)}.GO-36q_tabActive:after{background:var(--dsw-alias-state-business-primary)}.GO-36q_tab:disabled{cursor:not-allowed;opacity:.4}";
2627
+ const tagId$7 = "@morlay/dsh-sandbox-local/Tabs.module.css";
2628
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/Tabs.module.css\"]") === null) {
2629
+ const tag = document.createElement("style");
2630
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2631
+ tag.dataset.pluginCss = tagId$7;
2632
+ tag.textContent = css$7;
2633
+ document.head.appendChild(tag);
2634
+ }
2635
+ //#endregion
2636
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/TimeLabel.module.css.mjs
2637
+ const css$6 = "._3IuWPG_label{color:var(--dsw-alias-label-tertiary);white-space:nowrap;opacity:0;padding:0;font-size:14px;line-height:24px;transition:opacity 80ms}[data-time-hover-root]:hover ._3IuWPG_label,[data-time-hover-root]:focus-within ._3IuWPG_label{opacity:1}";
2638
+ const tagId$6 = "@morlay/dsh-sandbox-local/TimeLabel.module.css";
2639
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/TimeLabel.module.css\"]") === null) {
2640
+ const tag = document.createElement("style");
2641
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2642
+ tag.dataset.pluginCss = tagId$6;
2643
+ tag.textContent = css$6;
2644
+ document.head.appendChild(tag);
2645
+ }
2646
+ //#endregion
2647
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/VisuallyHidden.module.css.mjs
2648
+ const css$5 = ".YAvv4W_hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
2649
+ const tagId$5 = "@morlay/dsh-sandbox-local/VisuallyHidden.module.css";
2650
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/VisuallyHidden.module.css\"]") === null) {
2651
+ const tag = document.createElement("style");
2652
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2653
+ tag.dataset.pluginCss = tagId$5;
2654
+ tag.textContent = css$5;
2655
+ document.head.appendChild(tag);
2656
+ }
2657
+ //#endregion
2658
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/IconButton.module.css.mjs
2659
+ const css$4 = ".I3t6Ga_iconButton{box-sizing:border-box;width:28px;height:28px;color:var(--dsw-alias-label-secondary);border-radius:var(--dsw-radius-sm);cursor:pointer;background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.I3t6Ga_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.I3t6Ga_iconButton:disabled{cursor:not-allowed;opacity:.4}.I3t6Ga_iconButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.I3t6Ga_sm{width:20px;height:20px;padding:0}.I3t6Ga_circle{color:var(--dsw-alias-label-tertiary);border-radius:28px;padding:6px}.I3t6Ga_circle:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}";
2660
+ const tagId$4 = "@morlay/dsh-sandbox-local/IconButton.module.css";
2661
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/IconButton.module.css\"]") === null) {
2662
+ const tag = document.createElement("style");
2663
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2664
+ tag.dataset.pluginCss = tagId$4;
2665
+ tag.textContent = css$4;
2666
+ document.head.appendChild(tag);
2667
+ }
2668
+ //#endregion
2669
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/ModelRouteList.module.css.mjs
2670
+ const css$3 = "._2eBkWq_list{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);gap:6px;min-width:0;max-height:280px;margin:0;padding:10px;display:grid;overflow:auto}._2eBkWq_group{gap:6px;display:grid}._2eBkWq_group+._2eBkWq_group{border-top:.5px solid var(--dsw-alias-border-l3);margin-top:4px;padding-top:10px}._2eBkWq_provider{color:var(--dsw-alias-label-tertiary);padding:0 6px;font-size:11px;font-weight:500}._2eBkWq_item{border-radius:var(--dsw-radius-md);cursor:pointer;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:6px;display:grid}._2eBkWq_item:hover{background:var(--dsw-alias-bg-layer-4)}._2eBkWq_item:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}._2eBkWq_item[aria-disabled=true]{cursor:not-allowed;opacity:.4}._2eBkWq_picked{background:var(--dsw-alias-interactive-bg-hover)}._2eBkWq_text{min-width:0}._2eBkWq_name{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-size:13px;display:block;overflow:hidden}._2eBkWq_id{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-tertiary);margin-top:2px;font-size:11px;display:block;overflow:hidden}._2eBkWq_notice{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}._2eBkWq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:1.5}";
2671
+ const tagId$3 = "@morlay/dsh-sandbox-local/ModelRouteList.module.css";
2672
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/ModelRouteList.module.css\"]") === null) {
2673
+ const tag = document.createElement("style");
2674
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2675
+ tag.dataset.pluginCss = tagId$3;
2676
+ tag.textContent = css$3;
2677
+ document.head.appendChild(tag);
2678
+ }
2679
+ //#endregion
2680
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/MultilineField.module.css.mjs
2681
+ const css$2 = "._stHfW_multiline{box-sizing:border-box;width:100%;min-height:64px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-3);border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);resize:vertical;padding:6px 12px;font-family:inherit;font-size:13px;line-height:1.5}._stHfW_multiline:disabled{cursor:not-allowed;opacity:.4}._stHfW_multiline:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}";
2682
+ const tagId$2 = "@morlay/dsh-sandbox-local/MultilineField.module.css";
2683
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/MultilineField.module.css\"]") === null) {
2684
+ const tag = document.createElement("style");
2685
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2686
+ tag.dataset.pluginCss = tagId$2;
2687
+ tag.textContent = css$2;
2688
+ document.head.appendChild(tag);
2689
+ }
2690
+ //#endregion
2691
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/SearchSelect.module.css.mjs
2692
+ const css$1 = ".BtUTmW_trigger{white-space:nowrap;height:32px}.BtUTmW_searchRow{border-bottom:.5px solid var(--dsw-alias-border-l2);align-items:center;padding:4px 8px 8px;display:flex}.BtUTmW_searchInput{width:100%;color:var(--dsw-alias-label-primary);background:0 0;border:none;outline:none;padding:2px 0;font-family:inherit;font-size:13px;line-height:1.5}.BtUTmW_empty{color:var(--dsw-alias-label-tertiary);margin:0;padding:8px;font-size:12px;line-height:1.5}";
2693
+ const tagId$1 = "@morlay/dsh-sandbox-local/SearchSelect.module.css";
2694
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/SearchSelect.module.css\"]") === null) {
2695
+ const tag = document.createElement("style");
2696
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2697
+ tag.dataset.pluginCss = tagId$1;
2698
+ tag.textContent = css$1;
2699
+ document.head.appendChild(tag);
2700
+ }
2701
+ //#endregion
2702
+ //#region \0dsh-css-modules:/Users/morlay/src/github.com/morlay/dsh-plugin/packages/client/ui-primitives/src/client/controls/TagInput.module.css.mjs
2703
+ const css = ".Is5kta_row{align-items:flex-start;gap:8px;width:100%;display:flex}.Is5kta_anchor{flex:auto;width:100%;min-width:0;display:flex}.Is5kta_box{box-sizing:border-box;background:var(--dsw-alias-bg-layer-3);border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);flex-flow:wrap;align-items:center;gap:4px 6px;width:100%;min-height:32px;padding:4px 8px;display:flex}.Is5kta_input{min-width:120px;color:var(--dsw-alias-label-primary);background:0 0;border:none;outline:none;flex:120px;padding:2px 0;font-family:inherit;font-size:13px;line-height:1.5}.Is5kta_chip{corner-shape:round;white-space:nowrap;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);border-radius:999px;align-items:center;gap:2px;padding:1px 4px 1px 8px;font-size:11px;font-weight:500;line-height:17px;display:inline-flex}.Is5kta_chipRemove{box-sizing:border-box;width:14px;height:14px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0;line-height:1;display:inline-flex}.Is5kta_chipRemove:hover:not(:disabled){color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.Is5kta_chipRemove:disabled{cursor:not-allowed;opacity:.4}.Is5kta_chipRemove:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:0}.Is5kta_empty{color:var(--dsw-alias-label-tertiary);margin:0;padding:8px;font-size:12px;line-height:1.5}";
2704
+ const tagId = "@morlay/dsh-sandbox-local/TagInput.module.css";
2705
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=\"@morlay/dsh-sandbox-local/TagInput.module.css\"]") === null) {
2706
+ const tag = document.createElement("style");
2707
+ tag.dataset.plugin = "@morlay/dsh-sandbox-local";
2708
+ tag.dataset.pluginCss = tagId;
2709
+ tag.textContent = css;
2710
+ document.head.appendChild(tag);
2711
+ }
3745
2712
  //#endregion
3746
2713
  //#region ../../../node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js
3747
2714
  /**