@nordmanai/nif 0.2.10 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +273 -260
- package/dist/styles.css +1 -1
- package/dist/ui/components/nm-form-field/nm-form-field.d.ts +12 -2
- package/dist/ui/components/nm-sidebar/nm-sidebar.d.ts +8 -2
- package/package.json +1 -1
- package/registry/index.json +1 -1
- package/registry/ui/components/nm-form-field/nm-form-field.css +22 -0
- package/registry/ui/components/nm-form-field/nm-form-field.tsx +28 -3
- package/registry/ui/components/nm-sidebar/nm-sidebar.css +2 -1
- package/registry/ui/components/nm-sidebar/nm-sidebar.tsx +22 -3
- package/registry/ui/styles/tokens.css +4 -0
package/dist/index.js
CHANGED
|
@@ -30703,22 +30703,24 @@ function jB({ className: e, variant: t = "legend", ...n }) {
|
|
|
30703
30703
|
...n
|
|
30704
30704
|
});
|
|
30705
30705
|
}
|
|
30706
|
-
function MB({ className: e,
|
|
30706
|
+
function MB({ className: e, columns: t = 1, ...n }) {
|
|
30707
30707
|
return /* @__PURE__ */ b("div", {
|
|
30708
30708
|
"data-slot": "field-group",
|
|
30709
|
+
"data-columns": t > 1 ? t : void 0,
|
|
30709
30710
|
className: F("nm-field-group", e),
|
|
30710
|
-
...
|
|
30711
|
+
...n
|
|
30711
30712
|
});
|
|
30712
30713
|
}
|
|
30713
|
-
function NB({ className: e, orientation: t = "vertical", invalid: n, disabled: r,
|
|
30714
|
+
function NB({ className: e, orientation: t = "vertical", invalid: n, disabled: r, span: i, ...a }) {
|
|
30714
30715
|
return /* @__PURE__ */ b("div", {
|
|
30715
30716
|
"data-slot": "field",
|
|
30716
30717
|
role: "group",
|
|
30717
30718
|
"data-orientation": t,
|
|
30719
|
+
"data-span": i,
|
|
30718
30720
|
"data-invalid": n ? "" : void 0,
|
|
30719
30721
|
"data-disabled": r ? "" : void 0,
|
|
30720
30722
|
className: F("nm-form-field", e),
|
|
30721
|
-
...
|
|
30723
|
+
...a
|
|
30722
30724
|
});
|
|
30723
30725
|
}
|
|
30724
30726
|
function PB({ className: e, ...t }) {
|
|
@@ -31747,19 +31749,22 @@ function wH({ className: e, side: t = "top", sideOffset: n = 4, align: r = "cent
|
|
|
31747
31749
|
// src/ui/components/nm-sidebar/nm-sidebar.tsx
|
|
31748
31750
|
var TH = i(null), EH = "[data-slot=\"sidebar\"], [data-slot=\"sidebar-trigger\"], [data-slot=\"tooltip-content\"], [role=\"menu\"], [role=\"dialog\"]";
|
|
31749
31751
|
function DH() {
|
|
31752
|
+
return s(TH);
|
|
31753
|
+
}
|
|
31754
|
+
function OH() {
|
|
31750
31755
|
let e = s(TH);
|
|
31751
31756
|
if (!e) throw Error("useSidebar must be used within a NmSidebarProvider.");
|
|
31752
31757
|
return e;
|
|
31753
31758
|
}
|
|
31754
|
-
function
|
|
31759
|
+
function kH(e) {
|
|
31755
31760
|
let [t, n] = p(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
|
|
31756
31761
|
return c(() => {
|
|
31757
31762
|
let t = window.matchMedia(e), r = () => n(t.matches);
|
|
31758
31763
|
return r(), t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
31759
31764
|
}, [e]), t;
|
|
31760
31765
|
}
|
|
31761
|
-
function
|
|
31762
|
-
let h =
|
|
31766
|
+
function AH({ defaultOpen: e = !0, open: t, onOpenChange: n, shortcut: r = !0, peek: i = !0, height: a = "fill", className: s, style: l, children: u, ...m }) {
|
|
31767
|
+
let h = kH(yH), [g, _] = p(!1), [v, y] = p(e), [x, S] = p(!1), [C, w] = p("offcanvas"), T = f(null), E = f(null), D = t ?? v, O = o((e) => {
|
|
31763
31768
|
n?.(e), t ?? y(e), S(!1);
|
|
31764
31769
|
}, [n, t]), k = o(() => {
|
|
31765
31770
|
h ? _((e) => !e) : O(!D);
|
|
@@ -31840,8 +31845,8 @@ function kH({ defaultOpen: e = !0, open: t, onOpenChange: n, shortcut: r = !0, p
|
|
|
31840
31845
|
})
|
|
31841
31846
|
});
|
|
31842
31847
|
}
|
|
31843
|
-
function
|
|
31844
|
-
let { isMobile: s, state: l, openMobile: u, setOpenMobile: d, peek: f, peekIn: p, peekOut: m, setCollapsible: h } =
|
|
31848
|
+
function jH({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", label: r = "Sidebar", className: i, children: a, ...o }) {
|
|
31849
|
+
let { isMobile: s, state: l, openMobile: u, setOpenMobile: d, peek: f, peekIn: p, peekOut: m, setCollapsible: h } = OH();
|
|
31845
31850
|
if (c(() => h(n), [n, h]), n === "none") return /* @__PURE__ */ b("div", {
|
|
31846
31851
|
"data-slot": "sidebar",
|
|
31847
31852
|
"data-side": e,
|
|
@@ -31891,8 +31896,8 @@ function AH({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
31891
31896
|
})
|
|
31892
31897
|
});
|
|
31893
31898
|
}
|
|
31894
|
-
function
|
|
31895
|
-
let { open: c, isMobile: l, toggleSidebar: u, peekIn: d, peekOut: f } =
|
|
31899
|
+
function MH({ className: e, label: t, icon: n = "panel-left", tooltip: r = !0, onClick: i, onPointerEnter: a, onPointerLeave: o, ...s }) {
|
|
31900
|
+
let { open: c, isMobile: l, toggleSidebar: u, peekIn: d, peekOut: f } = OH(), p = t ?? (c || l ? "Close sidebar" : "Open sidebar"), m = /* @__PURE__ */ b(UC, {
|
|
31896
31901
|
"data-slot": "sidebar-trigger",
|
|
31897
31902
|
glyph: n,
|
|
31898
31903
|
label: p,
|
|
@@ -31914,8 +31919,8 @@ function jH({ className: e, label: t, icon: n = "panel-left", tooltip: r = !0, o
|
|
|
31914
31919
|
children: [p, /* @__PURE__ */ b(KB, { children: "⌘B" })]
|
|
31915
31920
|
})] }) : m;
|
|
31916
31921
|
}
|
|
31917
|
-
function
|
|
31918
|
-
let { toggleSidebar: r } =
|
|
31922
|
+
function NH({ className: e, label: t = "Toggle sidebar", ...n }) {
|
|
31923
|
+
let { toggleSidebar: r } = OH();
|
|
31919
31924
|
return /* @__PURE__ */ b("button", {
|
|
31920
31925
|
type: "button",
|
|
31921
31926
|
"data-slot": "sidebar-rail",
|
|
@@ -31927,56 +31932,61 @@ function MH({ className: e, label: t = "Toggle sidebar", ...n }) {
|
|
|
31927
31932
|
...n
|
|
31928
31933
|
});
|
|
31929
31934
|
}
|
|
31930
|
-
function
|
|
31931
|
-
return
|
|
31932
|
-
|
|
31933
|
-
|
|
31934
|
-
|
|
31935
|
+
function PH({ className: e, render: t, ref: n, ...r }) {
|
|
31936
|
+
return Si({
|
|
31937
|
+
render: t,
|
|
31938
|
+
ref: n,
|
|
31939
|
+
defaultTagName: "main",
|
|
31940
|
+
props: {
|
|
31941
|
+
"data-slot": "sidebar-inset",
|
|
31942
|
+
className: F("nm-sidebar__inset", e),
|
|
31943
|
+
...r
|
|
31944
|
+
}
|
|
31935
31945
|
});
|
|
31936
31946
|
}
|
|
31937
|
-
function
|
|
31947
|
+
function FH({ className: e, ...t }) {
|
|
31938
31948
|
return /* @__PURE__ */ b(dN, {
|
|
31939
31949
|
"data-slot": "sidebar-input",
|
|
31940
31950
|
className: F("nm-sidebar__input", e),
|
|
31941
31951
|
...t
|
|
31942
31952
|
});
|
|
31943
31953
|
}
|
|
31944
|
-
function
|
|
31954
|
+
function IH({ className: e, ...t }) {
|
|
31945
31955
|
return /* @__PURE__ */ b("div", {
|
|
31946
31956
|
"data-slot": "sidebar-header",
|
|
31947
31957
|
className: F("nm-sidebar__header", e),
|
|
31948
31958
|
...t
|
|
31949
31959
|
});
|
|
31950
31960
|
}
|
|
31951
|
-
function
|
|
31961
|
+
function LH({ className: e, ...t }) {
|
|
31952
31962
|
return /* @__PURE__ */ b("div", {
|
|
31953
31963
|
"data-slot": "sidebar-footer",
|
|
31954
31964
|
className: F("nm-sidebar__footer", e),
|
|
31955
31965
|
...t
|
|
31956
31966
|
});
|
|
31957
31967
|
}
|
|
31958
|
-
function
|
|
31968
|
+
function RH({ className: e, ...t }) {
|
|
31959
31969
|
return /* @__PURE__ */ b(cD, {
|
|
31960
31970
|
"data-slot": "sidebar-separator",
|
|
31961
31971
|
className: F("nm-sidebar__separator", e),
|
|
31962
31972
|
...t
|
|
31963
31973
|
});
|
|
31964
31974
|
}
|
|
31965
|
-
function
|
|
31975
|
+
function zH({ className: e, ...t }) {
|
|
31966
31976
|
return /* @__PURE__ */ b("div", {
|
|
31967
31977
|
"data-slot": "sidebar-content",
|
|
31968
31978
|
className: F("nm-sidebar__content", e),
|
|
31969
31979
|
...t
|
|
31970
31980
|
});
|
|
31971
31981
|
}
|
|
31972
|
-
function
|
|
31982
|
+
function BH({ className: e, ...t }) {
|
|
31973
31983
|
return /* @__PURE__ */ b("div", {
|
|
31974
31984
|
"data-slot": "sidebar-group",
|
|
31975
31985
|
className: F("nm-sidebar__group", e),
|
|
31976
31986
|
...t
|
|
31977
31987
|
});
|
|
31978
31988
|
}
|
|
31979
|
-
function
|
|
31989
|
+
function VH({ className: e, render: t, ref: n, ...r }) {
|
|
31980
31990
|
return Si({
|
|
31981
31991
|
render: t,
|
|
31982
31992
|
ref: n,
|
|
@@ -31988,7 +31998,7 @@ function BH({ className: e, render: t, ref: n, ...r }) {
|
|
|
31988
31998
|
}
|
|
31989
31999
|
});
|
|
31990
32000
|
}
|
|
31991
|
-
function
|
|
32001
|
+
function HH({ className: e, ...t }) {
|
|
31992
32002
|
return /* @__PURE__ */ b(aM, {
|
|
31993
32003
|
"data-slot": "sidebar-group-action",
|
|
31994
32004
|
tone: "quiet",
|
|
@@ -31996,29 +32006,29 @@ function VH({ className: e, ...t }) {
|
|
|
31996
32006
|
...t
|
|
31997
32007
|
});
|
|
31998
32008
|
}
|
|
31999
|
-
function
|
|
32009
|
+
function UH({ className: e, ...t }) {
|
|
32000
32010
|
return /* @__PURE__ */ b("div", {
|
|
32001
32011
|
"data-slot": "sidebar-group-content",
|
|
32002
32012
|
className: F("nm-sidebar__group-content", e),
|
|
32003
32013
|
...t
|
|
32004
32014
|
});
|
|
32005
32015
|
}
|
|
32006
|
-
function
|
|
32016
|
+
function WH({ className: e, ...t }) {
|
|
32007
32017
|
return /* @__PURE__ */ b("ul", {
|
|
32008
32018
|
"data-slot": "sidebar-menu",
|
|
32009
32019
|
className: F("nm-sidebar__menu", e),
|
|
32010
32020
|
...t
|
|
32011
32021
|
});
|
|
32012
32022
|
}
|
|
32013
|
-
function
|
|
32023
|
+
function GH({ className: e, ...t }) {
|
|
32014
32024
|
return /* @__PURE__ */ b("li", {
|
|
32015
32025
|
"data-slot": "sidebar-menu-item",
|
|
32016
32026
|
className: F("nm-sidebar__menu-item", e),
|
|
32017
32027
|
...t
|
|
32018
32028
|
});
|
|
32019
32029
|
}
|
|
32020
|
-
function
|
|
32021
|
-
let { isMobile: c, state: l, peek: u } =
|
|
32030
|
+
function KH({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ref: o, ...s }) {
|
|
32031
|
+
let { isMobile: c, state: l, peek: u } = OH(), d = Si({
|
|
32022
32032
|
render: e,
|
|
32023
32033
|
ref: o,
|
|
32024
32034
|
defaultTagName: "button",
|
|
@@ -32039,7 +32049,7 @@ function GH({ render: e, isActive: t = !1, variant: n = "default", size: r = "de
|
|
|
32039
32049
|
...typeof i == "string" ? { children: i } : i
|
|
32040
32050
|
}) : null] });
|
|
32041
32051
|
}
|
|
32042
|
-
function
|
|
32052
|
+
function qH({ className: e, showOnHover: t = !1, ...n }) {
|
|
32043
32053
|
return /* @__PURE__ */ b(aM, {
|
|
32044
32054
|
"data-slot": "sidebar-menu-action",
|
|
32045
32055
|
"data-show-on-hover": t ? "" : void 0,
|
|
@@ -32048,7 +32058,7 @@ function KH({ className: e, showOnHover: t = !1, ...n }) {
|
|
|
32048
32058
|
...n
|
|
32049
32059
|
});
|
|
32050
32060
|
}
|
|
32051
|
-
function
|
|
32061
|
+
function JH({ className: e, ...t }) {
|
|
32052
32062
|
return /* @__PURE__ */ b(CC, {
|
|
32053
32063
|
"data-slot": "sidebar-menu-badge",
|
|
32054
32064
|
size: "sm",
|
|
@@ -32056,7 +32066,7 @@ function qH({ className: e, ...t }) {
|
|
|
32056
32066
|
...t
|
|
32057
32067
|
});
|
|
32058
32068
|
}
|
|
32059
|
-
function
|
|
32069
|
+
function YH({ title: e, description: t, className: n, ...r }) {
|
|
32060
32070
|
return /* @__PURE__ */ x("span", {
|
|
32061
32071
|
"data-slot": "sidebar-menu-text",
|
|
32062
32072
|
className: F("nm-sidebar__text", n),
|
|
@@ -32064,7 +32074,7 @@ function JH({ title: e, description: t, className: n, ...r }) {
|
|
|
32064
32074
|
children: [/* @__PURE__ */ b("span", { children: e }), t == null ? null : /* @__PURE__ */ b("span", { children: t })]
|
|
32065
32075
|
});
|
|
32066
32076
|
}
|
|
32067
|
-
function
|
|
32077
|
+
function XH({ className: e, showIcon: t = !1, ...n }) {
|
|
32068
32078
|
let [r] = p(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
32069
32079
|
return /* @__PURE__ */ x("div", {
|
|
32070
32080
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -32076,36 +32086,39 @@ function YH({ className: e, showIcon: t = !1, ...n }) {
|
|
|
32076
32086
|
})]
|
|
32077
32087
|
});
|
|
32078
32088
|
}
|
|
32079
|
-
function
|
|
32089
|
+
function ZH({ className: e, ...t }) {
|
|
32080
32090
|
return /* @__PURE__ */ b("ul", {
|
|
32081
32091
|
"data-slot": "sidebar-menu-sub",
|
|
32082
32092
|
className: F("nm-sidebar__menu-sub", e),
|
|
32083
32093
|
...t
|
|
32084
32094
|
});
|
|
32085
32095
|
}
|
|
32086
|
-
function
|
|
32096
|
+
function QH({ className: e, ...t }) {
|
|
32087
32097
|
return /* @__PURE__ */ b("li", {
|
|
32088
32098
|
"data-slot": "sidebar-menu-sub-item",
|
|
32089
32099
|
className: F("nm-sidebar__menu-sub-item", e),
|
|
32090
32100
|
...t
|
|
32091
32101
|
});
|
|
32092
32102
|
}
|
|
32093
|
-
function
|
|
32103
|
+
function $H({ render: e, size: t = "default", isActive: n = !1, disabled: r = !1, className: i, ref: a, ...o }) {
|
|
32094
32104
|
return Si({
|
|
32095
32105
|
render: e,
|
|
32096
|
-
ref:
|
|
32106
|
+
ref: a,
|
|
32097
32107
|
defaultTagName: "a",
|
|
32098
32108
|
props: {
|
|
32099
32109
|
"data-slot": "sidebar-menu-sub-button",
|
|
32100
32110
|
"data-size": t,
|
|
32101
32111
|
"data-active": n ? "" : void 0,
|
|
32112
|
+
"data-disabled": r ? "" : void 0,
|
|
32113
|
+
"aria-disabled": r ? !0 : void 0,
|
|
32114
|
+
disabled: r ? !0 : void 0,
|
|
32102
32115
|
"aria-current": n ? "page" : void 0,
|
|
32103
|
-
className: F("nm-sidebar__menu-sub-button",
|
|
32104
|
-
...
|
|
32116
|
+
className: F("nm-sidebar__menu-sub-button", i),
|
|
32117
|
+
...o
|
|
32105
32118
|
}
|
|
32106
32119
|
});
|
|
32107
32120
|
}
|
|
32108
|
-
function
|
|
32121
|
+
function eU({ className: e, menu: t = !1, ...n }) {
|
|
32109
32122
|
return /* @__PURE__ */ b(G, {
|
|
32110
32123
|
id: "chevron",
|
|
32111
32124
|
"data-menu": t ? "" : void 0,
|
|
@@ -32114,7 +32127,7 @@ function $H({ className: e, menu: t = !1, ...n }) {
|
|
|
32114
32127
|
});
|
|
32115
32128
|
}
|
|
32116
32129
|
// src/ui/components/nm-slider/nm-slider.tsx
|
|
32117
|
-
function
|
|
32130
|
+
function tU({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, label: a, output: o, ...s }) {
|
|
32118
32131
|
let c = Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], l = /* @__PURE__ */ b(Up.Root, {
|
|
32119
32132
|
"data-slot": "slider",
|
|
32120
32133
|
className: F("nm-slider", e),
|
|
@@ -32155,7 +32168,7 @@ function eU({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
32155
32168
|
}) : l;
|
|
32156
32169
|
}
|
|
32157
32170
|
// src/ui/components/nm-spinner/nm-spinner.tsx
|
|
32158
|
-
function
|
|
32171
|
+
function nU({ className: e, ...t }) {
|
|
32159
32172
|
return /* @__PURE__ */ b("span", {
|
|
32160
32173
|
role: "status",
|
|
32161
32174
|
"aria-live": "polite",
|
|
@@ -32165,14 +32178,14 @@ function tU({ className: e, ...t }) {
|
|
|
32165
32178
|
});
|
|
32166
32179
|
}
|
|
32167
32180
|
// src/ui/components/nm-status-bar/nm-status-bar.tsx
|
|
32168
|
-
function
|
|
32181
|
+
function rU({ className: e, ...t }) {
|
|
32169
32182
|
return /* @__PURE__ */ b("footer", {
|
|
32170
32183
|
"data-slot": "status-bar",
|
|
32171
32184
|
className: F("nm-status-bar", e),
|
|
32172
32185
|
...t
|
|
32173
32186
|
});
|
|
32174
32187
|
}
|
|
32175
|
-
function
|
|
32188
|
+
function iU({ className: e, onClick: t, children: n, ...r }) {
|
|
32176
32189
|
let i = F("nm-status-bar__item", e);
|
|
32177
32190
|
return t ? /* @__PURE__ */ b("button", {
|
|
32178
32191
|
type: "button",
|
|
@@ -32187,7 +32200,7 @@ function rU({ className: e, onClick: t, children: n, ...r }) {
|
|
|
32187
32200
|
children: n
|
|
32188
32201
|
});
|
|
32189
32202
|
}
|
|
32190
|
-
function
|
|
32203
|
+
function aU({ className: e, ...t }) {
|
|
32191
32204
|
return /* @__PURE__ */ b("span", {
|
|
32192
32205
|
"aria-hidden": "true",
|
|
32193
32206
|
"data-slot": "status-bar-spacer",
|
|
@@ -32196,7 +32209,7 @@ function iU({ className: e, ...t }) {
|
|
|
32196
32209
|
});
|
|
32197
32210
|
}
|
|
32198
32211
|
// src/ui/components/nm-switch/nm-switch.tsx
|
|
32199
|
-
function
|
|
32212
|
+
function oU({ className: e, ...t }) {
|
|
32200
32213
|
return /* @__PURE__ */ b(ae.Root, {
|
|
32201
32214
|
"data-slot": "switch",
|
|
32202
32215
|
className: F("nm-switch", e),
|
|
@@ -32208,13 +32221,13 @@ function aU({ className: e, ...t }) {
|
|
|
32208
32221
|
});
|
|
32209
32222
|
}
|
|
32210
32223
|
// src/ui/components/nm-table/nm-table.tsx
|
|
32211
|
-
var
|
|
32224
|
+
var sU = [
|
|
32212
32225
|
"default",
|
|
32213
32226
|
"striped",
|
|
32214
32227
|
"lined",
|
|
32215
32228
|
"plain"
|
|
32216
|
-
],
|
|
32217
|
-
function
|
|
32229
|
+
], cU = ["default", "sm"];
|
|
32230
|
+
function lU({ className: e, variant: t = "default", size: n = "default", stickyHeader: r, maxHeight: i, ...a }) {
|
|
32218
32231
|
return /* @__PURE__ */ b("div", {
|
|
32219
32232
|
"data-slot": "table-container",
|
|
32220
32233
|
"data-sticky": r ? "" : void 0,
|
|
@@ -32229,28 +32242,28 @@ function cU({ className: e, variant: t = "default", size: n = "default", stickyH
|
|
|
32229
32242
|
})
|
|
32230
32243
|
});
|
|
32231
32244
|
}
|
|
32232
|
-
function
|
|
32245
|
+
function uU({ className: e, ...t }) {
|
|
32233
32246
|
return /* @__PURE__ */ b("thead", {
|
|
32234
32247
|
"data-slot": "table-header",
|
|
32235
32248
|
className: F("nm-table__header", e),
|
|
32236
32249
|
...t
|
|
32237
32250
|
});
|
|
32238
32251
|
}
|
|
32239
|
-
function
|
|
32252
|
+
function dU({ className: e, ...t }) {
|
|
32240
32253
|
return /* @__PURE__ */ b("tbody", {
|
|
32241
32254
|
"data-slot": "table-body",
|
|
32242
32255
|
className: F("nm-table__body", e),
|
|
32243
32256
|
...t
|
|
32244
32257
|
});
|
|
32245
32258
|
}
|
|
32246
|
-
function
|
|
32259
|
+
function fU({ className: e, ...t }) {
|
|
32247
32260
|
return /* @__PURE__ */ b("tfoot", {
|
|
32248
32261
|
"data-slot": "table-footer",
|
|
32249
32262
|
className: F("nm-table__footer", e),
|
|
32250
32263
|
...t
|
|
32251
32264
|
});
|
|
32252
32265
|
}
|
|
32253
|
-
function
|
|
32266
|
+
function pU({ className: e, selected: t, disabled: n, ...r }) {
|
|
32254
32267
|
return /* @__PURE__ */ b("tr", {
|
|
32255
32268
|
"data-slot": "table-row",
|
|
32256
32269
|
"data-selected": t ? "" : void 0,
|
|
@@ -32262,7 +32275,7 @@ function fU({ className: e, selected: t, disabled: n, ...r }) {
|
|
|
32262
32275
|
...r
|
|
32263
32276
|
});
|
|
32264
32277
|
}
|
|
32265
|
-
function
|
|
32278
|
+
function mU({ className: e, textAlign: t = "start", sort: n, onSort: r, children: i, ...a }) {
|
|
32266
32279
|
return /* @__PURE__ */ b("th", {
|
|
32267
32280
|
"data-slot": "table-head",
|
|
32268
32281
|
"data-align": t,
|
|
@@ -32282,7 +32295,7 @@ function pU({ className: e, textAlign: t = "start", sort: n, onSort: r, children
|
|
|
32282
32295
|
}) : i
|
|
32283
32296
|
});
|
|
32284
32297
|
}
|
|
32285
|
-
function
|
|
32298
|
+
function hU({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
32286
32299
|
return /* @__PURE__ */ b("td", {
|
|
32287
32300
|
"data-slot": "table-cell",
|
|
32288
32301
|
"data-align": t,
|
|
@@ -32291,7 +32304,7 @@ function mU({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
|
32291
32304
|
...r
|
|
32292
32305
|
});
|
|
32293
32306
|
}
|
|
32294
|
-
function
|
|
32307
|
+
function gU({ className: e, ...t }) {
|
|
32295
32308
|
return /* @__PURE__ */ b("caption", {
|
|
32296
32309
|
"data-slot": "table-caption",
|
|
32297
32310
|
className: F("nm-table__caption", e),
|
|
@@ -32299,17 +32312,17 @@ function hU({ className: e, ...t }) {
|
|
|
32299
32312
|
});
|
|
32300
32313
|
}
|
|
32301
32314
|
// src/ui/config/nm-tabs.ts
|
|
32302
|
-
var
|
|
32315
|
+
var _U = {
|
|
32303
32316
|
root: "nm-tabs",
|
|
32304
32317
|
item: "nm-tabs__item"
|
|
32305
|
-
},
|
|
32306
|
-
function
|
|
32307
|
-
return
|
|
32308
|
-
className:
|
|
32318
|
+
}, vU = W("interface-nm-tabs");
|
|
32319
|
+
function yU(e) {
|
|
32320
|
+
return vU.debug("render", e.label, { value: e.value }), /* @__PURE__ */ b("div", {
|
|
32321
|
+
className: _U.root,
|
|
32309
32322
|
role: "tablist",
|
|
32310
32323
|
"aria-label": e.label,
|
|
32311
32324
|
children: e.items.map((t) => /* @__PURE__ */ b("button", {
|
|
32312
|
-
className:
|
|
32325
|
+
className: _U.item,
|
|
32313
32326
|
type: "button",
|
|
32314
32327
|
role: "tab",
|
|
32315
32328
|
"aria-selected": t.id === e.value,
|
|
@@ -32318,27 +32331,27 @@ function vU(e) {
|
|
|
32318
32331
|
}, t.id))
|
|
32319
32332
|
});
|
|
32320
32333
|
}
|
|
32321
|
-
function
|
|
32334
|
+
function bU(e) {
|
|
32322
32335
|
return /* @__PURE__ */ b(ch.Root, {
|
|
32323
32336
|
"data-slot": "tabs",
|
|
32324
32337
|
...e
|
|
32325
32338
|
});
|
|
32326
32339
|
}
|
|
32327
|
-
function
|
|
32340
|
+
function xU({ className: e, ...t }) {
|
|
32328
32341
|
return /* @__PURE__ */ b(ch.List, {
|
|
32329
32342
|
"data-slot": "tabs-list",
|
|
32330
|
-
className: F(
|
|
32343
|
+
className: F(_U.root, e),
|
|
32331
32344
|
...t
|
|
32332
32345
|
});
|
|
32333
32346
|
}
|
|
32334
|
-
function
|
|
32347
|
+
function SU({ className: e, ...t }) {
|
|
32335
32348
|
return /* @__PURE__ */ b(ch.Tab, {
|
|
32336
32349
|
"data-slot": "tabs-trigger",
|
|
32337
|
-
className: F(
|
|
32350
|
+
className: F(_U.item, e),
|
|
32338
32351
|
...t
|
|
32339
32352
|
});
|
|
32340
32353
|
}
|
|
32341
|
-
function
|
|
32354
|
+
function CU({ className: e, ...t }) {
|
|
32342
32355
|
return /* @__PURE__ */ b(ch.Panel, {
|
|
32343
32356
|
"data-slot": "tabs-content",
|
|
32344
32357
|
className: F("nm-tabs__panel", e),
|
|
@@ -32346,12 +32359,12 @@ function SU({ className: e, ...t }) {
|
|
|
32346
32359
|
});
|
|
32347
32360
|
}
|
|
32348
32361
|
// src/ui/components/nm-toggle/nm-toggle.tsx
|
|
32349
|
-
var
|
|
32362
|
+
var wU = ["default", "outline"], TU = [
|
|
32350
32363
|
"sm",
|
|
32351
32364
|
"default",
|
|
32352
32365
|
"lg"
|
|
32353
32366
|
];
|
|
32354
|
-
function
|
|
32367
|
+
function EU({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
32355
32368
|
return /* @__PURE__ */ b(vh, {
|
|
32356
32369
|
"data-slot": "toggle",
|
|
32357
32370
|
"data-variant": t,
|
|
@@ -32361,21 +32374,21 @@ function TU({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
32361
32374
|
});
|
|
32362
32375
|
}
|
|
32363
32376
|
// src/ui/config/nm-top-bar.ts
|
|
32364
|
-
var
|
|
32377
|
+
var DU = {
|
|
32365
32378
|
root: "nm-header",
|
|
32366
32379
|
end: "nm-header__end"
|
|
32367
|
-
},
|
|
32368
|
-
function
|
|
32369
|
-
return
|
|
32380
|
+
}, OU = W("interface-nm-top-bar");
|
|
32381
|
+
function kU(e) {
|
|
32382
|
+
return OU.debug("render", "top-bar", {
|
|
32370
32383
|
end: e.end != null,
|
|
32371
32384
|
menu: e.menu != null
|
|
32372
32385
|
}), /* @__PURE__ */ x("header", {
|
|
32373
|
-
className:
|
|
32386
|
+
className: DU.root,
|
|
32374
32387
|
children: [
|
|
32375
32388
|
e.menu,
|
|
32376
32389
|
e.children,
|
|
32377
32390
|
e.end == null ? null : /* @__PURE__ */ b("div", {
|
|
32378
|
-
className:
|
|
32391
|
+
className: DU.end,
|
|
32379
32392
|
"data-hidden-narrow": e.endHidden === !0 ? "true" : "false",
|
|
32380
32393
|
children: e.end
|
|
32381
32394
|
})
|
|
@@ -32383,12 +32396,12 @@ function OU(e) {
|
|
|
32383
32396
|
});
|
|
32384
32397
|
}
|
|
32385
32398
|
// src/ui/config/nordman-login.ts
|
|
32386
|
-
var
|
|
32399
|
+
var AU = {
|
|
32387
32400
|
signIn: "signIn",
|
|
32388
32401
|
register: "register",
|
|
32389
32402
|
forgot: "forgot",
|
|
32390
32403
|
reset: "reset"
|
|
32391
|
-
},
|
|
32404
|
+
}, jU = "nm-login-form", MU = {
|
|
32392
32405
|
username: "username",
|
|
32393
32406
|
password: "password",
|
|
32394
32407
|
displayName: "displayName",
|
|
@@ -32396,11 +32409,11 @@ var kU = {
|
|
|
32396
32409
|
registerPassword: "register-password",
|
|
32397
32410
|
confirmPassword: "confirm-password",
|
|
32398
32411
|
resetPassword: "reset-password"
|
|
32399
|
-
},
|
|
32412
|
+
}, NU = {
|
|
32400
32413
|
viewBox: "0 0 24 24",
|
|
32401
32414
|
show: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",
|
|
32402
32415
|
hide: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"
|
|
32403
|
-
},
|
|
32416
|
+
}, PU = "nordman", FU = {
|
|
32404
32417
|
skip: "Hoppa till innehållet",
|
|
32405
32418
|
identifier: "Email",
|
|
32406
32419
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -32433,7 +32446,7 @@ var kU = {
|
|
|
32433
32446
|
registerEmailInUse: "Det finns redan ett konto med den här e-postadressen.",
|
|
32434
32447
|
registerDone: "Kolla mejlet för att bekräfta kontot.",
|
|
32435
32448
|
registerDoneReady: "Kontot är skapat. Logga in."
|
|
32436
|
-
},
|
|
32449
|
+
}, IU = {
|
|
32437
32450
|
skip: "Skip to content",
|
|
32438
32451
|
identifier: "Email",
|
|
32439
32452
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -32467,13 +32480,13 @@ var kU = {
|
|
|
32467
32480
|
registerDone: "Check your email to confirm the account.",
|
|
32468
32481
|
registerDoneReady: "The account is created. Log in."
|
|
32469
32482
|
};
|
|
32470
|
-
function
|
|
32471
|
-
return dV(e ?? cV()) ?
|
|
32483
|
+
function LU(e) {
|
|
32484
|
+
return dV(e ?? cV()) ? IU : FU;
|
|
32472
32485
|
}
|
|
32473
32486
|
var $ = new Proxy({}, { get(e, t) {
|
|
32474
|
-
return
|
|
32475
|
-
} }),
|
|
32476
|
-
function
|
|
32487
|
+
return LU()[t];
|
|
32488
|
+
} }), RU = W("interface-nordman-login-reveal");
|
|
32489
|
+
function zU(e) {
|
|
32477
32490
|
let t = e.revealed ? $.hidePassword : $.showPassword;
|
|
32478
32491
|
return /* @__PURE__ */ b("button", {
|
|
32479
32492
|
className: "nm-login__reveal",
|
|
@@ -32482,22 +32495,22 @@ function RU(e) {
|
|
|
32482
32495
|
"aria-pressed": e.revealed,
|
|
32483
32496
|
"data-testid": "cta-reveal-password",
|
|
32484
32497
|
onClick: () => {
|
|
32485
|
-
|
|
32498
|
+
RU.debug("toggle", e.revealed ? "hide" : "show"), e.onToggle();
|
|
32486
32499
|
},
|
|
32487
32500
|
children: /* @__PURE__ */ b("svg", {
|
|
32488
32501
|
className: "nm-login__reveal-icon",
|
|
32489
|
-
viewBox:
|
|
32502
|
+
viewBox: NU.viewBox,
|
|
32490
32503
|
"aria-hidden": "true",
|
|
32491
32504
|
focusable: "false",
|
|
32492
32505
|
children: /* @__PURE__ */ b("path", {
|
|
32493
|
-
d: e.revealed ?
|
|
32506
|
+
d: e.revealed ? NU.hide : NU.show,
|
|
32494
32507
|
fill: "currentColor"
|
|
32495
32508
|
})
|
|
32496
32509
|
})
|
|
32497
32510
|
});
|
|
32498
32511
|
}
|
|
32499
32512
|
// src/ui/components/nordman-login-field/nordman-login-field.tsx
|
|
32500
|
-
function
|
|
32513
|
+
function BU(e) {
|
|
32501
32514
|
let t = e.type === "password", [n, r] = p(!1), i = t && n ? "text" : e.type, a = /* @__PURE__ */ b("input", {
|
|
32502
32515
|
className: t ? "nm-login__control nm-login__control--secret" : "nm-login__control",
|
|
32503
32516
|
id: e.id,
|
|
@@ -32519,7 +32532,7 @@ function zU(e) {
|
|
|
32519
32532
|
}), e.accessory]
|
|
32520
32533
|
}), t ? /* @__PURE__ */ x("div", {
|
|
32521
32534
|
className: "nm-login__control-wrap",
|
|
32522
|
-
children: [a, /* @__PURE__ */ b(
|
|
32535
|
+
children: [a, /* @__PURE__ */ b(zU, {
|
|
32523
32536
|
revealed: n,
|
|
32524
32537
|
onToggle: () => r((e) => !e)
|
|
32525
32538
|
})]
|
|
@@ -32527,43 +32540,43 @@ function zU(e) {
|
|
|
32527
32540
|
});
|
|
32528
32541
|
}
|
|
32529
32542
|
// src/ui/components/nordman-login-register/nordman-login-register.tsx
|
|
32530
|
-
var
|
|
32531
|
-
function
|
|
32543
|
+
var VU = W("interface-nordman-login-register");
|
|
32544
|
+
function HU(e) {
|
|
32532
32545
|
function t(t) {
|
|
32533
32546
|
t.preventDefault();
|
|
32534
32547
|
let n = new FormData(t.currentTarget);
|
|
32535
|
-
|
|
32536
|
-
username: String(n.get(
|
|
32537
|
-
displayName: String(n.get(
|
|
32538
|
-
password: String(n.get(
|
|
32548
|
+
VU.debug("submit", "start"), e.onRegister({
|
|
32549
|
+
username: String(n.get(MU.registerUsername) ?? ""),
|
|
32550
|
+
displayName: String(n.get(MU.displayName) ?? ""),
|
|
32551
|
+
password: String(n.get(MU.registerPassword) ?? "")
|
|
32539
32552
|
});
|
|
32540
32553
|
}
|
|
32541
32554
|
return /* @__PURE__ */ x("form", {
|
|
32542
32555
|
className: "nm-login__form",
|
|
32543
|
-
id:
|
|
32556
|
+
id: jU,
|
|
32544
32557
|
onSubmit: t,
|
|
32545
32558
|
children: [
|
|
32546
|
-
/* @__PURE__ */ b(
|
|
32547
|
-
id:
|
|
32548
|
-
name:
|
|
32559
|
+
/* @__PURE__ */ b(BU, {
|
|
32560
|
+
id: MU.registerUsername,
|
|
32561
|
+
name: MU.registerUsername,
|
|
32549
32562
|
label: $.identifier,
|
|
32550
32563
|
type: "email",
|
|
32551
32564
|
autoComplete: "email",
|
|
32552
32565
|
placeholder: $.identifierPlaceholder,
|
|
32553
32566
|
required: !0
|
|
32554
32567
|
}),
|
|
32555
|
-
/* @__PURE__ */ b(
|
|
32556
|
-
id:
|
|
32557
|
-
name:
|
|
32568
|
+
/* @__PURE__ */ b(BU, {
|
|
32569
|
+
id: MU.displayName,
|
|
32570
|
+
name: MU.displayName,
|
|
32558
32571
|
label: $.displayName,
|
|
32559
32572
|
type: "text",
|
|
32560
32573
|
autoComplete: "name",
|
|
32561
32574
|
minLength: 3,
|
|
32562
32575
|
required: !0
|
|
32563
32576
|
}),
|
|
32564
|
-
/* @__PURE__ */ b(
|
|
32565
|
-
id:
|
|
32566
|
-
name:
|
|
32577
|
+
/* @__PURE__ */ b(BU, {
|
|
32578
|
+
id: MU.registerPassword,
|
|
32579
|
+
name: MU.registerPassword,
|
|
32567
32580
|
label: $.password,
|
|
32568
32581
|
type: "password",
|
|
32569
32582
|
autoComplete: "new-password",
|
|
@@ -32586,32 +32599,32 @@ function VU(e) {
|
|
|
32586
32599
|
});
|
|
32587
32600
|
}
|
|
32588
32601
|
// src/ui/components/nordman-login-sign-in/nordman-login-sign-in.tsx
|
|
32589
|
-
var
|
|
32590
|
-
function
|
|
32602
|
+
var UU = W("interface-nordman-login-sign-in");
|
|
32603
|
+
function WU(e) {
|
|
32591
32604
|
function t(t) {
|
|
32592
32605
|
t.preventDefault();
|
|
32593
|
-
let n = new FormData(t.currentTarget), r = String(n.get(
|
|
32594
|
-
|
|
32606
|
+
let n = new FormData(t.currentTarget), r = String(n.get(MU.username) ?? ""), i = String(n.get(MU.password) ?? "");
|
|
32607
|
+
UU.debug("submit", "start"), e.onSignIn({
|
|
32595
32608
|
username: r,
|
|
32596
32609
|
password: i
|
|
32597
32610
|
});
|
|
32598
32611
|
}
|
|
32599
32612
|
return /* @__PURE__ */ x("form", {
|
|
32600
32613
|
className: "nm-login__form",
|
|
32601
|
-
id:
|
|
32614
|
+
id: jU,
|
|
32602
32615
|
onSubmit: t,
|
|
32603
32616
|
children: [
|
|
32604
|
-
/* @__PURE__ */ b(
|
|
32605
|
-
id:
|
|
32606
|
-
name:
|
|
32617
|
+
/* @__PURE__ */ b(BU, {
|
|
32618
|
+
id: MU.username,
|
|
32619
|
+
name: MU.username,
|
|
32607
32620
|
label: $.identifier,
|
|
32608
32621
|
type: "text",
|
|
32609
32622
|
autoComplete: "username",
|
|
32610
32623
|
placeholder: $.identifierPlaceholder
|
|
32611
32624
|
}),
|
|
32612
|
-
/* @__PURE__ */ b(
|
|
32613
|
-
id:
|
|
32614
|
-
name:
|
|
32625
|
+
/* @__PURE__ */ b(BU, {
|
|
32626
|
+
id: MU.password,
|
|
32627
|
+
name: MU.password,
|
|
32615
32628
|
label: $.password,
|
|
32616
32629
|
type: "password",
|
|
32617
32630
|
autoComplete: "current-password",
|
|
@@ -32641,12 +32654,12 @@ function UU(e) {
|
|
|
32641
32654
|
});
|
|
32642
32655
|
}
|
|
32643
32656
|
// src/ui/components/nordman-login-forgot/nordman-login-forgot.tsx
|
|
32644
|
-
var
|
|
32645
|
-
function
|
|
32657
|
+
var GU = W("interface-nordman-login-forgot");
|
|
32658
|
+
function KU(e) {
|
|
32646
32659
|
function t(t) {
|
|
32647
32660
|
t.preventDefault();
|
|
32648
|
-
let n = new FormData(t.currentTarget), r = String(n.get(
|
|
32649
|
-
|
|
32661
|
+
let n = new FormData(t.currentTarget), r = String(n.get(MU.username) ?? "");
|
|
32662
|
+
GU.debug("submit", "start"), e.onRequestReset({ identifier: r });
|
|
32650
32663
|
}
|
|
32651
32664
|
return e.sent ? /* @__PURE__ */ b("p", {
|
|
32652
32665
|
className: "nm-login__notice",
|
|
@@ -32654,11 +32667,11 @@ function GU(e) {
|
|
|
32654
32667
|
children: $.forgotSent
|
|
32655
32668
|
}) : /* @__PURE__ */ x("form", {
|
|
32656
32669
|
className: "nm-login__form",
|
|
32657
|
-
id:
|
|
32670
|
+
id: jU,
|
|
32658
32671
|
onSubmit: t,
|
|
32659
|
-
children: [/* @__PURE__ */ b(
|
|
32660
|
-
id:
|
|
32661
|
-
name:
|
|
32672
|
+
children: [/* @__PURE__ */ b(BU, {
|
|
32673
|
+
id: MU.username,
|
|
32674
|
+
name: MU.username,
|
|
32662
32675
|
label: $.identifier,
|
|
32663
32676
|
type: "text",
|
|
32664
32677
|
autoComplete: "username",
|
|
@@ -32678,7 +32691,7 @@ function GU(e) {
|
|
|
32678
32691
|
});
|
|
32679
32692
|
}
|
|
32680
32693
|
// src/ui/components/nordman-login-google/nordman-login-google.tsx
|
|
32681
|
-
function
|
|
32694
|
+
function qU(e) {
|
|
32682
32695
|
return uV(), /* @__PURE__ */ b("div", {
|
|
32683
32696
|
className: "nm-login__google-wrap",
|
|
32684
32697
|
children: /* @__PURE__ */ b(kC, {
|
|
@@ -32694,17 +32707,17 @@ function KU(e) {
|
|
|
32694
32707
|
});
|
|
32695
32708
|
}
|
|
32696
32709
|
// src/ui/components/nordman-login-reset/nordman-login-reset.tsx
|
|
32697
|
-
var
|
|
32698
|
-
function
|
|
32710
|
+
var JU = W("interface-nordman-login-reset");
|
|
32711
|
+
function YU(e) {
|
|
32699
32712
|
let [t, n] = p(!1);
|
|
32700
32713
|
function r(t) {
|
|
32701
32714
|
t.preventDefault();
|
|
32702
|
-
let r = new FormData(t.currentTarget), i = String(r.get(
|
|
32703
|
-
i === String(r.get(
|
|
32715
|
+
let r = new FormData(t.currentTarget), i = String(r.get(MU.resetPassword) ?? "");
|
|
32716
|
+
i === String(r.get(MU.confirmPassword) ?? "") ? (n(!1), JU.debug("submit", "start"), e.onResetPassword({ password: i })) : (JU.warn("submit", "mismatch"), n(!0));
|
|
32704
32717
|
}
|
|
32705
32718
|
return /* @__PURE__ */ x("form", {
|
|
32706
32719
|
className: "nm-login__form",
|
|
32707
|
-
id:
|
|
32720
|
+
id: jU,
|
|
32708
32721
|
onSubmit: r,
|
|
32709
32722
|
children: [
|
|
32710
32723
|
t ? /* @__PURE__ */ b("p", {
|
|
@@ -32712,18 +32725,18 @@ function JU(e) {
|
|
|
32712
32725
|
role: "alert",
|
|
32713
32726
|
children: $.mismatch
|
|
32714
32727
|
}) : null,
|
|
32715
|
-
/* @__PURE__ */ b(
|
|
32716
|
-
id:
|
|
32717
|
-
name:
|
|
32728
|
+
/* @__PURE__ */ b(BU, {
|
|
32729
|
+
id: MU.resetPassword,
|
|
32730
|
+
name: MU.resetPassword,
|
|
32718
32731
|
label: $.password,
|
|
32719
32732
|
type: "password",
|
|
32720
32733
|
autoComplete: "new-password",
|
|
32721
32734
|
placeholder: $.passwordPlaceholder,
|
|
32722
32735
|
minLength: e.passwordMin
|
|
32723
32736
|
}),
|
|
32724
|
-
/* @__PURE__ */ b(
|
|
32725
|
-
id:
|
|
32726
|
-
name:
|
|
32737
|
+
/* @__PURE__ */ b(BU, {
|
|
32738
|
+
id: MU.confirmPassword,
|
|
32739
|
+
name: MU.confirmPassword,
|
|
32727
32740
|
label: $.confirmPassword,
|
|
32728
32741
|
type: "password",
|
|
32729
32742
|
autoComplete: "new-password",
|
|
@@ -32745,12 +32758,12 @@ function JU(e) {
|
|
|
32745
32758
|
});
|
|
32746
32759
|
}
|
|
32747
32760
|
// src/ui/components/nordman-login-hero/nordman-login-hero.tsx
|
|
32748
|
-
var
|
|
32761
|
+
var XU = {
|
|
32749
32762
|
square: "glow",
|
|
32750
32763
|
triangle: "glow tri",
|
|
32751
32764
|
circle: "glow circle"
|
|
32752
32765
|
};
|
|
32753
|
-
function
|
|
32766
|
+
function ZU(e) {
|
|
32754
32767
|
let t = f(null);
|
|
32755
32768
|
return c(() => {
|
|
32756
32769
|
let n = window.NordmanUI;
|
|
@@ -32762,51 +32775,51 @@ function XU(e) {
|
|
|
32762
32775
|
}), () => r.abort();
|
|
32763
32776
|
}, [e.shape]), /* @__PURE__ */ b("div", {
|
|
32764
32777
|
ref: t,
|
|
32765
|
-
className:
|
|
32778
|
+
className: XU[e.shape],
|
|
32766
32779
|
"aria-hidden": "true",
|
|
32767
32780
|
children: /* @__PURE__ */ b("i", {})
|
|
32768
32781
|
});
|
|
32769
32782
|
}
|
|
32770
32783
|
// src/ui/components/nordman-login/nordman-login.tsx
|
|
32771
|
-
function
|
|
32772
|
-
return e.view ===
|
|
32784
|
+
function QU(e) {
|
|
32785
|
+
return e.view === AU.register ? /* @__PURE__ */ b(HU, {
|
|
32773
32786
|
pending: e.pending,
|
|
32774
32787
|
passwordMin: e.passwordMin,
|
|
32775
32788
|
onRegister: e.onRegister
|
|
32776
|
-
}) : e.view ===
|
|
32789
|
+
}) : e.view === AU.forgot ? /* @__PURE__ */ b(KU, {
|
|
32777
32790
|
pending: e.pending,
|
|
32778
32791
|
sent: e.sent,
|
|
32779
32792
|
onRequestReset: e.onRequestReset
|
|
32780
|
-
}) : e.view ===
|
|
32793
|
+
}) : e.view === AU.reset ? /* @__PURE__ */ b(YU, {
|
|
32781
32794
|
pending: e.pending,
|
|
32782
32795
|
passwordMin: e.passwordMin,
|
|
32783
32796
|
onResetPassword: e.onResetPassword
|
|
32784
|
-
}) : e.googleOnly ? /* @__PURE__ */ b(
|
|
32797
|
+
}) : e.googleOnly ? /* @__PURE__ */ b(qU, {
|
|
32785
32798
|
pending: e.pending,
|
|
32786
32799
|
onContinueWithGoogle: () => e.onContinueWithGoogle?.()
|
|
32787
|
-
}) : /* @__PURE__ */ b(
|
|
32800
|
+
}) : /* @__PURE__ */ b(WU, {
|
|
32788
32801
|
pending: e.pending,
|
|
32789
32802
|
passwordMin: e.passwordMin,
|
|
32790
|
-
onForgot: () => e.onView(
|
|
32803
|
+
onForgot: () => e.onView(AU.forgot),
|
|
32791
32804
|
onSignIn: e.onSignIn
|
|
32792
32805
|
});
|
|
32793
32806
|
}
|
|
32794
|
-
function
|
|
32795
|
-
let t = e.view ===
|
|
32807
|
+
function $U(e) {
|
|
32808
|
+
let t = e.view === AU.register, n = e.view === AU.signIn;
|
|
32796
32809
|
return c(() => {
|
|
32797
|
-
document.documentElement.dataset.interface =
|
|
32810
|
+
document.documentElement.dataset.interface = PU;
|
|
32798
32811
|
}, []), /* @__PURE__ */ x("div", {
|
|
32799
32812
|
className: e.googleOnly ? "nm-login nm-login--google-only" : "nm-login",
|
|
32800
32813
|
"data-testid": "nordman-login",
|
|
32801
32814
|
children: [
|
|
32802
32815
|
/* @__PURE__ */ b("a", {
|
|
32803
32816
|
className: "nm-login__skip",
|
|
32804
|
-
href: `#${
|
|
32817
|
+
href: `#${jU}`,
|
|
32805
32818
|
children: $.skip
|
|
32806
32819
|
}),
|
|
32807
32820
|
/* @__PURE__ */ b("div", {
|
|
32808
32821
|
className: "nm-login__visual",
|
|
32809
|
-
children: /* @__PURE__ */ b(
|
|
32822
|
+
children: /* @__PURE__ */ b(ZU, { shape: e.shape })
|
|
32810
32823
|
}),
|
|
32811
32824
|
/* @__PURE__ */ b("section", {
|
|
32812
32825
|
className: "nm-login__panel",
|
|
@@ -32822,11 +32835,11 @@ function QU(e) {
|
|
|
32822
32835
|
role: "alert",
|
|
32823
32836
|
children: e.error
|
|
32824
32837
|
}) : null,
|
|
32825
|
-
e.notice && e.view !==
|
|
32838
|
+
e.notice && e.view !== AU.forgot ? /* @__PURE__ */ b("p", {
|
|
32826
32839
|
className: "nm-login__notice",
|
|
32827
32840
|
children: e.notice
|
|
32828
32841
|
}) : null,
|
|
32829
|
-
e.children ??
|
|
32842
|
+
e.children ?? QU(e),
|
|
32830
32843
|
e.after,
|
|
32831
32844
|
e.children == null && e.hideSwitch !== !0 && !e.googleOnly ? /* @__PURE__ */ x("p", {
|
|
32832
32845
|
className: "nm-login__switch",
|
|
@@ -32836,7 +32849,7 @@ function QU(e) {
|
|
|
32836
32849
|
/* @__PURE__ */ b("button", {
|
|
32837
32850
|
className: "nm-login__switch-action",
|
|
32838
32851
|
type: "button",
|
|
32839
|
-
onClick: () => e.onView(t || !n ?
|
|
32852
|
+
onClick: () => e.onView(t || !n ? AU.signIn : AU.register),
|
|
32840
32853
|
children: n ? $.registerAction : $.signInAction
|
|
32841
32854
|
})
|
|
32842
32855
|
]
|
|
@@ -32848,9 +32861,9 @@ function QU(e) {
|
|
|
32848
32861
|
});
|
|
32849
32862
|
}
|
|
32850
32863
|
// src/ui/components/nordman-toggle/nordman-toggle.tsx
|
|
32851
|
-
var
|
|
32852
|
-
function
|
|
32853
|
-
return
|
|
32864
|
+
var eW = W("interface-nordman-toggle");
|
|
32865
|
+
function tW(e) {
|
|
32866
|
+
return eW.debug("render", e.active, { items: e.items.length }), /* @__PURE__ */ b("nav", {
|
|
32854
32867
|
className: "nm-toggle",
|
|
32855
32868
|
"data-testid": e.testId,
|
|
32856
32869
|
children: e.items.map((t) => /* @__PURE__ */ b("a", {
|
|
@@ -32863,12 +32876,12 @@ function eW(e) {
|
|
|
32863
32876
|
});
|
|
32864
32877
|
}
|
|
32865
32878
|
// src/ui/config/nm-app-panel.ts
|
|
32866
|
-
var
|
|
32879
|
+
var nW = {
|
|
32867
32880
|
code: "code",
|
|
32868
32881
|
preview: "preview",
|
|
32869
32882
|
environment: "environment",
|
|
32870
32883
|
machine: "machine"
|
|
32871
|
-
},
|
|
32884
|
+
}, rW = {
|
|
32872
32885
|
code: "/interface/app-panel/code.svg",
|
|
32873
32886
|
play: "/interface/app-panel/play.svg",
|
|
32874
32887
|
ellipsis: "/interface/app-panel/ellipsis.svg",
|
|
@@ -32877,7 +32890,7 @@ var tW = {
|
|
|
32877
32890
|
network: "/interface/app-panel/network.svg",
|
|
32878
32891
|
message: "/interface/app-panel/message.svg",
|
|
32879
32892
|
copy: "/interface/app-panel/copy.svg"
|
|
32880
|
-
},
|
|
32893
|
+
}, iW = {
|
|
32881
32894
|
root: "nm-app-panel",
|
|
32882
32895
|
body: "nm-app-panel__body",
|
|
32883
32896
|
canvas: "nm-app-panel__canvas",
|
|
@@ -32892,35 +32905,35 @@ var tW = {
|
|
|
32892
32905
|
blocked: "nm-app-panel__blocked",
|
|
32893
32906
|
blockedTitle: "nm-app-panel__blocked-title",
|
|
32894
32907
|
blockedBody: "nm-app-panel__blocked-body"
|
|
32895
|
-
},
|
|
32908
|
+
}, aW = {
|
|
32896
32909
|
root: "nm-logs-panel",
|
|
32897
32910
|
body: "nm-logs-panel__body"
|
|
32898
|
-
},
|
|
32911
|
+
}, oW = ["left", "right"], sW = [
|
|
32899
32912
|
.22,
|
|
32900
32913
|
1,
|
|
32901
32914
|
.36,
|
|
32902
32915
|
1
|
|
32903
|
-
],
|
|
32904
|
-
function cW() {
|
|
32905
|
-
return lW();
|
|
32906
|
-
}
|
|
32916
|
+
], cW = .25;
|
|
32907
32917
|
function lW() {
|
|
32908
|
-
|
|
32918
|
+
return uW();
|
|
32919
|
+
}
|
|
32920
|
+
function uW() {
|
|
32921
|
+
if (typeof document > "u") return cW;
|
|
32909
32922
|
let e = getComputedStyle(document.documentElement).getPropertyValue("--reveal").trim();
|
|
32910
|
-
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) :
|
|
32923
|
+
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) : cW;
|
|
32911
32924
|
}
|
|
32912
|
-
function
|
|
32925
|
+
function dW(e) {
|
|
32913
32926
|
return e ? { duration: 0 } : {
|
|
32914
|
-
duration:
|
|
32915
|
-
ease: [...
|
|
32927
|
+
duration: uW(),
|
|
32928
|
+
ease: [...sW]
|
|
32916
32929
|
};
|
|
32917
32930
|
}
|
|
32918
|
-
function
|
|
32931
|
+
function fW() {
|
|
32919
32932
|
let e = v();
|
|
32920
|
-
return d(() =>
|
|
32933
|
+
return d(() => dW(e === !0), [e]);
|
|
32921
32934
|
}
|
|
32922
32935
|
// src/ui/config/nm-header-icons.ts
|
|
32923
|
-
var
|
|
32936
|
+
var pW = [
|
|
32924
32937
|
"chat",
|
|
32925
32938
|
"bot",
|
|
32926
32939
|
"app",
|
|
@@ -32932,7 +32945,7 @@ var fW = [
|
|
|
32932
32945
|
"play",
|
|
32933
32946
|
"schedule",
|
|
32934
32947
|
"search"
|
|
32935
|
-
],
|
|
32948
|
+
], mW = {
|
|
32936
32949
|
chat: "/interface/header/chat.svg",
|
|
32937
32950
|
bot: "/interface/header/bot.svg",
|
|
32938
32951
|
app: "/interface/header/app.svg",
|
|
@@ -32944,16 +32957,16 @@ var fW = [
|
|
|
32944
32957
|
play: "/interface/header/play.svg",
|
|
32945
32958
|
schedule: "/interface/header/schedule.svg",
|
|
32946
32959
|
search: "/interface/header/search.svg"
|
|
32947
|
-
},
|
|
32960
|
+
}, hW = { root: "nm-icon-border" }, gW = /* @__PURE__ */ "activity.app-window.archive-restore.arrow-down.arrow-left-right.arrow-right-left.arrow-up-down.arrow-up-left.ban.beaker.bitcoin.bone.book-copy.bookmark.bookmark-plus.calendar-days.chart-column.chart-column-increasing.chart-line.check-check.chevron-left.chevron-right.chevron-up.chevrons-up-down.circle.circle-alert.circle-check-big.circle-dashed.circle-dot.circle-plus.circle-question-mark.circle-x.clock-3.clock-4.cloud-sun.code-xml.copy-check.corner-down-right.database.dices.earth.external-link.eye.eye-off.fast-forward.feather.file-clock.file-code.file-image.file-json.file-pen-line.file-plus-2.file-question-mark.file-search.file-spreadsheet.file-type-2.file-up.file-x-2.files.film.folder-kanban.funnel-x.git-branch-plus.git-commit-horizontal.git-fork.graduation-cap.grip-vertical.history.image-off.image-up.info.key-round.keyboard.laptop.layers.layout-dashboard.library.life-buoy.lightbulb.link.link-2-off.list.list-tree.map-pin.message-circle-question-mark.message-square.message-square-plus.message-square-text.messages-square.minimize-2.mouse-pointer-click.newspaper.notebook-pen.octagon-pause.paperclip.pen-line.pen-tool.pin-off.plane-takeoff.plug-zap.qr-code.radio.refresh-cw.rocket.rotate-cw.scale.scan-search.scroll-text.send.share-2.shield.shield-check.shield-ellipsis.shopping-bag.sliders-horizontal.sparkles.square-pen.square-slash.square-terminal.star.table-2.text-quote.trash.trending-up.triangle-alert.trophy.type.user.user-check.users.utensils-crossed.variable.video.wand-sparkles.zap.zap-off.zoom-in.zoom-out".split("."), _W = "--nm-radius-scale", vW = {
|
|
32948
32961
|
sm: 4,
|
|
32949
32962
|
md: 8,
|
|
32950
32963
|
lg: 12
|
|
32951
|
-
},
|
|
32964
|
+
}, yW = {
|
|
32952
32965
|
row: "--nm-space-4",
|
|
32953
32966
|
menu: "--nm-space-8",
|
|
32954
32967
|
field: "--nm-space-12",
|
|
32955
32968
|
composer: "--nm-space-24"
|
|
32956
|
-
},
|
|
32969
|
+
}, bW = {
|
|
32957
32970
|
sm: "--nm-radius-sm",
|
|
32958
32971
|
md: "--nm-radius-md",
|
|
32959
32972
|
lg: "--nm-radius-lg",
|
|
@@ -32962,17 +32975,17 @@ var fW = [
|
|
|
32962
32975
|
field: "--nm-field-radius",
|
|
32963
32976
|
menu: "--nm-menu-radius",
|
|
32964
32977
|
row: "--nm-row-radius"
|
|
32965
|
-
},
|
|
32978
|
+
}, xW = {
|
|
32966
32979
|
control: "calc(var(--nm-icon-control) / 2 * var(--nm-radius-scale))",
|
|
32967
32980
|
composer: "var(--nm-radius-lg)",
|
|
32968
32981
|
field: "var(--nm-control-r)",
|
|
32969
32982
|
menu: "var(--nm-radius-lg)",
|
|
32970
32983
|
row: "var(--nm-control-r)"
|
|
32971
|
-
},
|
|
32984
|
+
}, SW = {
|
|
32972
32985
|
sm: "calc(4px * var(--nm-radius-scale))",
|
|
32973
32986
|
md: "calc(8px * var(--nm-radius-scale))",
|
|
32974
32987
|
lg: "calc(12px * var(--nm-radius-scale))"
|
|
32975
|
-
},
|
|
32988
|
+
}, CW = {
|
|
32976
32989
|
pad: "--nm-menu-pad",
|
|
32977
32990
|
menuRadius: "--nm-control-menu-radius",
|
|
32978
32991
|
optionRadius: "--nm-control-option-radius",
|
|
@@ -32982,7 +32995,7 @@ var fW = [
|
|
|
32982
32995
|
panelItemRadius: "--nm-panel-item-radius",
|
|
32983
32996
|
rowInline: "--nm-row-inline",
|
|
32984
32997
|
rowInlineEnd: "--nm-row-inline-end"
|
|
32985
|
-
},
|
|
32998
|
+
}, wW = [
|
|
32986
32999
|
"plus",
|
|
32987
33000
|
"folder",
|
|
32988
33001
|
"chats",
|
|
@@ -32993,7 +33006,7 @@ var fW = [
|
|
|
32993
33006
|
"settings",
|
|
32994
33007
|
"search",
|
|
32995
33008
|
"plusSm"
|
|
32996
|
-
],
|
|
33009
|
+
], TW = {
|
|
32997
33010
|
plus: "/interface/rail/plus.svg",
|
|
32998
33011
|
folder: "/interface/rail/folder.svg",
|
|
32999
33012
|
chats: "/interface/rail/chats.svg",
|
|
@@ -33004,29 +33017,29 @@ var fW = [
|
|
|
33004
33017
|
settings: "/interface/rail/settings.svg",
|
|
33005
33018
|
search: "/interface/rail/search.svg",
|
|
33006
33019
|
plusSm: "/interface/rail/plus-sm.svg"
|
|
33007
|
-
},
|
|
33020
|
+
}, EW = 750, DW = 7e3, OW = 500;
|
|
33008
33021
|
// src/ui/lib/appearance/appearanceState.ts
|
|
33009
|
-
function
|
|
33022
|
+
function kW(e) {
|
|
33010
33023
|
return typeof e == "string" && Pz.includes(e);
|
|
33011
33024
|
}
|
|
33012
|
-
function
|
|
33025
|
+
function AW(e) {
|
|
33013
33026
|
return typeof e == "string" && Vz.includes(e);
|
|
33014
33027
|
}
|
|
33015
|
-
function
|
|
33028
|
+
function jW(e) {
|
|
33016
33029
|
return typeof e == "string" && Gz.includes(e);
|
|
33017
33030
|
}
|
|
33018
|
-
function
|
|
33031
|
+
function MW(e, t, n, r) {
|
|
33019
33032
|
let i = typeof e == "number" ? e : Number(e);
|
|
33020
33033
|
return Number.isFinite(i) ? Math.min(n, Math.max(t, Math.round(i))) : r;
|
|
33021
33034
|
}
|
|
33022
|
-
function
|
|
33035
|
+
function NW() {
|
|
33023
33036
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
33024
33037
|
}
|
|
33025
|
-
function
|
|
33038
|
+
function PW(e, t = NW()) {
|
|
33026
33039
|
return e === "light" ? "light" : e === "dark" || t ? "dark" : "light";
|
|
33027
33040
|
}
|
|
33028
|
-
function
|
|
33029
|
-
return
|
|
33041
|
+
function FW() {
|
|
33042
|
+
return UW({
|
|
33030
33043
|
mode: Jz.mode,
|
|
33031
33044
|
themePresetId: Jz.themePresetId,
|
|
33032
33045
|
accentPreset: Jz.accentPreset,
|
|
@@ -33042,98 +33055,98 @@ function PW() {
|
|
|
33042
33055
|
borders: Jz.borders
|
|
33043
33056
|
});
|
|
33044
33057
|
}
|
|
33045
|
-
function
|
|
33058
|
+
function IW(e, t) {
|
|
33046
33059
|
let n = Xz(e) ?? Xz(Jz.themePresetId), r = t === "dark" ? n.dark : n.light;
|
|
33047
33060
|
return {
|
|
33048
33061
|
backgroundHex: r.canvas,
|
|
33049
33062
|
foregroundHex: r.foreground
|
|
33050
33063
|
};
|
|
33051
33064
|
}
|
|
33052
|
-
var
|
|
33065
|
+
var LW = {
|
|
33053
33066
|
"#000000/#ffffff": "dark",
|
|
33054
33067
|
"#fcfaf6/#0a0a0a": "light"
|
|
33055
33068
|
};
|
|
33056
|
-
function
|
|
33057
|
-
let r =
|
|
33069
|
+
function RW(e, t, n) {
|
|
33070
|
+
let r = LW[`${t}/${n}`.toLowerCase()];
|
|
33058
33071
|
return e !== Jz.themePresetId || r == null ? {
|
|
33059
33072
|
backgroundHex: t,
|
|
33060
33073
|
foregroundHex: n
|
|
33061
|
-
} :
|
|
33074
|
+
} : IW(e, r);
|
|
33062
33075
|
}
|
|
33063
|
-
function
|
|
33064
|
-
let t =
|
|
33076
|
+
function zW(e) {
|
|
33077
|
+
let t = FW();
|
|
33065
33078
|
if (!e || typeof e != "object") return t;
|
|
33066
|
-
let n = e, r = typeof n.themePresetId == "string" && Xz(n.themePresetId) ? n.themePresetId : t.themePresetId, i =
|
|
33079
|
+
let n = e, r = typeof n.themePresetId == "string" && Xz(n.themePresetId) ? n.themePresetId : t.themePresetId, i = RW(r, bz(typeof n.backgroundHex == "string" ? n.backgroundHex : t.backgroundHex, t.backgroundHex), bz(typeof n.foregroundHex == "string" ? n.foregroundHex : t.foregroundHex, t.foregroundHex));
|
|
33067
33080
|
return {
|
|
33068
|
-
mode:
|
|
33081
|
+
mode: kW(n.mode) ? n.mode : t.mode,
|
|
33069
33082
|
themePresetId: r,
|
|
33070
|
-
accentPreset:
|
|
33083
|
+
accentPreset: jW(n.accentPreset) ? n.accentPreset : t.accentPreset,
|
|
33071
33084
|
customAccentHex: bz(typeof n.customAccentHex == "string" ? n.customAccentHex : t.customAccentHex, t.customAccentHex),
|
|
33072
33085
|
...i,
|
|
33073
|
-
uiFontSizePx:
|
|
33074
|
-
uiFontWeight: Math.round(
|
|
33075
|
-
uiIconSizePx:
|
|
33076
|
-
uiRadiusPercent:
|
|
33077
|
-
uiSpacePercent:
|
|
33078
|
-
contrast:
|
|
33079
|
-
borders:
|
|
33086
|
+
uiFontSizePx: MW(n.uiFontSizePx, Fz.min, Fz.max, t.uiFontSizePx),
|
|
33087
|
+
uiFontWeight: Math.round(MW(n.uiFontWeight, Lz.min, Lz.max, t.uiFontWeight) / 100) * 100,
|
|
33088
|
+
uiIconSizePx: MW(n.uiIconSizePx, Rz.min, Rz.max, t.uiIconSizePx),
|
|
33089
|
+
uiRadiusPercent: MW(n.uiRadiusPercent, zz.min, zz.max, t.uiRadiusPercent),
|
|
33090
|
+
uiSpacePercent: MW(n.uiSpacePercent, Bz.min, Bz.max, t.uiSpacePercent),
|
|
33091
|
+
contrast: MW(n.contrast, Wz.min, Wz.max, t.contrast),
|
|
33092
|
+
borders: AW(n.borders) ? n.borders : t.borders
|
|
33080
33093
|
};
|
|
33081
33094
|
}
|
|
33082
|
-
function
|
|
33095
|
+
function BW() {
|
|
33083
33096
|
if (typeof window > "u") return null;
|
|
33084
33097
|
try {
|
|
33085
33098
|
let e = window.localStorage.getItem(Mz);
|
|
33086
|
-
return e ?
|
|
33099
|
+
return e ? zW(JSON.parse(e)) : null;
|
|
33087
33100
|
} catch {
|
|
33088
33101
|
return null;
|
|
33089
33102
|
}
|
|
33090
33103
|
}
|
|
33091
|
-
function
|
|
33104
|
+
function VW(e) {
|
|
33092
33105
|
typeof window < "u" && window.localStorage.setItem(Mz, JSON.stringify(e));
|
|
33093
33106
|
}
|
|
33094
|
-
function
|
|
33107
|
+
function HW(e, t) {
|
|
33095
33108
|
if (e.themePresetId === "custom") return e;
|
|
33096
|
-
let { backgroundHex: n, foregroundHex: r } =
|
|
33109
|
+
let { backgroundHex: n, foregroundHex: r } = IW(e.themePresetId, t), i = Xz(e.themePresetId), a = {
|
|
33097
33110
|
...e,
|
|
33098
33111
|
backgroundHex: bz(n, e.backgroundHex),
|
|
33099
33112
|
foregroundHex: bz(r, e.foregroundHex)
|
|
33100
33113
|
};
|
|
33101
33114
|
return a.accentPreset === "default" && i && (a.customAccentHex = bz(i.swatch, a.customAccentHex)), a;
|
|
33102
33115
|
}
|
|
33103
|
-
function
|
|
33104
|
-
return
|
|
33116
|
+
function UW(e, t = NW()) {
|
|
33117
|
+
return HW(e, PW(e.mode, t));
|
|
33105
33118
|
}
|
|
33106
33119
|
// src/ui/lib/appearance/markTokens.ts
|
|
33107
|
-
var
|
|
33120
|
+
var WW = 4.6, GW = .09, KW = 120, qW = {
|
|
33108
33121
|
min: .4,
|
|
33109
33122
|
max: .7
|
|
33110
|
-
},
|
|
33111
|
-
function
|
|
33123
|
+
}, JW = .02;
|
|
33124
|
+
function YW(e, t, n, r) {
|
|
33112
33125
|
let i = n[0] ?? "#000000", a = Tz(i, "#FFFFFF") > Tz(i, "#000000"), o = a ? 1 : -1;
|
|
33113
|
-
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o *
|
|
33126
|
+
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o * JW) {
|
|
33114
33127
|
let i = Dz(e, t, r);
|
|
33115
|
-
if (n.every((e) => Tz(i, e) >=
|
|
33128
|
+
if (n.every((e) => Tz(i, e) >= WW)) return i;
|
|
33116
33129
|
}
|
|
33117
33130
|
return r;
|
|
33118
33131
|
}
|
|
33119
|
-
function
|
|
33120
|
-
let r = Cz(t, n,
|
|
33132
|
+
function XW(e, t, n) {
|
|
33133
|
+
let r = Cz(t, n, GW), { hue: i, saturation: a } = Ez(e), o = Math.min(qW.max, Math.max(qW.min, a)), s = (e) => YW((i + e) % 360, o, [t, r], n);
|
|
33121
33134
|
return {
|
|
33122
33135
|
"--nm-mark-primary": s(0),
|
|
33123
|
-
"--nm-mark-secondary": s(
|
|
33136
|
+
"--nm-mark-secondary": s(KW),
|
|
33124
33137
|
"--nm-mark-tertiary": s(240),
|
|
33125
33138
|
"--nm-mark-surface": r
|
|
33126
33139
|
};
|
|
33127
33140
|
}
|
|
33128
33141
|
// src/ui/lib/appearance/deriveTokens.ts
|
|
33129
|
-
function
|
|
33142
|
+
function ZW(e) {
|
|
33130
33143
|
return e.accentPreset === "custom" || e.accentPreset === "default" && e.themePresetId === "custom" ? bz(e.customAccentHex, "#D2BB9C") : e.accentPreset === "default" ? Xz(e.themePresetId)?.swatch ?? Kz[0].swatch : qz[e.accentPreset];
|
|
33131
33144
|
}
|
|
33132
|
-
function
|
|
33145
|
+
function QW(e, t) {
|
|
33133
33146
|
let n = e / Wz.max, r = t === "dark" ? .06 : .05;
|
|
33134
33147
|
return r + n * ((t === "dark" ? .42 : .38) - r);
|
|
33135
33148
|
}
|
|
33136
|
-
function
|
|
33149
|
+
function $W(e) {
|
|
33137
33150
|
let t = `${e}px`;
|
|
33138
33151
|
return {
|
|
33139
33152
|
"--nm-icon-button": t,
|
|
@@ -33141,18 +33154,18 @@ function QW(e) {
|
|
|
33141
33154
|
"--nm-rail-icon": t
|
|
33142
33155
|
};
|
|
33143
33156
|
}
|
|
33144
|
-
function
|
|
33157
|
+
function eG(e, t) {
|
|
33145
33158
|
let n = t + 16;
|
|
33146
33159
|
return { "--nm-ui-chip-min-height": `${Math.max(n, e + 16)}px` };
|
|
33147
33160
|
}
|
|
33148
|
-
function
|
|
33161
|
+
function tG(e) {
|
|
33149
33162
|
let t = e / zz.default;
|
|
33150
|
-
return { [
|
|
33163
|
+
return { [_W]: String(t) };
|
|
33151
33164
|
}
|
|
33152
|
-
function
|
|
33165
|
+
function nG(e) {
|
|
33153
33166
|
return { "--nm-space-scale": String(e / Bz.default) };
|
|
33154
33167
|
}
|
|
33155
|
-
function
|
|
33168
|
+
function rG(e) {
|
|
33156
33169
|
let t = (t) => String(Math.min(Lz.max, Math.max(Lz.min, e + t)));
|
|
33157
33170
|
return {
|
|
33158
33171
|
"--nm-weight-light": t(-100),
|
|
@@ -33162,7 +33175,7 @@ function nG(e) {
|
|
|
33162
33175
|
"--nm-weight-bold": t(300)
|
|
33163
33176
|
};
|
|
33164
33177
|
}
|
|
33165
|
-
function
|
|
33178
|
+
function iG(e) {
|
|
33166
33179
|
let t = e / Fz.default, n = `${e}px`, r = `${Math.max(Fz.min, e - 2)}px`;
|
|
33167
33180
|
return {
|
|
33168
33181
|
"--nm-type-body": n,
|
|
@@ -33178,7 +33191,7 @@ function rG(e) {
|
|
|
33178
33191
|
"--font-size-sm": r
|
|
33179
33192
|
};
|
|
33180
33193
|
}
|
|
33181
|
-
function
|
|
33194
|
+
function aG(e, t) {
|
|
33182
33195
|
let n = xz(t);
|
|
33183
33196
|
return {
|
|
33184
33197
|
"--text-primary": e["--nm-fg-rgb"],
|
|
@@ -33206,12 +33219,12 @@ function iG(e, t) {
|
|
|
33206
33219
|
"--nordman-accent": n
|
|
33207
33220
|
};
|
|
33208
33221
|
}
|
|
33209
|
-
function
|
|
33222
|
+
function oG(e, t, n, r) {
|
|
33210
33223
|
let i = jz[t];
|
|
33211
33224
|
return e.themePresetId === Kz[0].id && e.contrast === Wz.default && n.toLowerCase() === i.canvas && r.toLowerCase() === i.fg;
|
|
33212
33225
|
}
|
|
33213
|
-
function
|
|
33214
|
-
let n = bz(e.backgroundHex, "#000000"), r = bz(e.foregroundHex, "#ffffff"), i =
|
|
33226
|
+
function sG(e, t) {
|
|
33227
|
+
let n = bz(e.backgroundHex, "#000000"), r = bz(e.foregroundHex, "#ffffff"), i = ZW(e), a = QW(e.contrast, t), o = oG(e, t, n, r) ? jz[t] : null, s = o?.panel ?? Cz(n, r, a), c = o?.raised ?? Cz(n, r, a * .72), l = o?.inset ?? Cz(n, r, a * .85), u = o?.line ?? Cz(n, r, Math.min(.55, a + .12)), d = o?.lineStrong ?? Cz(n, r, Math.min(.6, a + .17)), f = o?.stroke ?? Cz(n, r, Math.min(.65, a + .22)), p = o?.muted ?? Cz(r, n, .22), m = o?.subtle ?? Cz(r, n, .38), h = {
|
|
33215
33228
|
"--nm-canvas": n,
|
|
33216
33229
|
"--nm-fg": r,
|
|
33217
33230
|
"--nm-fg-muted": p,
|
|
@@ -33236,36 +33249,36 @@ function oG(e, t) {
|
|
|
33236
33249
|
"--nm-accent": i,
|
|
33237
33250
|
"--nm-accent-rgb": xz(i),
|
|
33238
33251
|
...Az(i, n, r),
|
|
33239
|
-
...
|
|
33240
|
-
...
|
|
33241
|
-
...
|
|
33242
|
-
|
|
33243
|
-
|
|
33244
|
-
...
|
|
33245
|
-
...
|
|
33252
|
+
...XW(i, n, r),
|
|
33253
|
+
...iG(e.uiFontSizePx),
|
|
33254
|
+
...rG(e.uiFontWeight),
|
|
33255
|
+
...$W(e.uiIconSizePx),
|
|
33256
|
+
...eG(e.uiFontSizePx, e.uiIconSizePx),
|
|
33257
|
+
...tG(e.uiRadiusPercent),
|
|
33258
|
+
...nG(e.uiSpacePercent),
|
|
33246
33259
|
"--nm-border-strength": Hz[e.borders]
|
|
33247
33260
|
};
|
|
33248
33261
|
return {
|
|
33249
33262
|
...h,
|
|
33250
|
-
...
|
|
33263
|
+
...aG(h, i)
|
|
33251
33264
|
};
|
|
33252
33265
|
}
|
|
33253
|
-
function
|
|
33266
|
+
function cG(e) {
|
|
33254
33267
|
return e;
|
|
33255
33268
|
}
|
|
33256
33269
|
// src/ui/lib/appearance/applyAppearance.ts
|
|
33257
|
-
var
|
|
33258
|
-
function
|
|
33270
|
+
var lG = W("interface-appearance-apply");
|
|
33271
|
+
function uG() {
|
|
33259
33272
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
33260
33273
|
}
|
|
33261
|
-
function
|
|
33274
|
+
function dG(e = document.documentElement) {
|
|
33262
33275
|
Yz.forEach((t) => {
|
|
33263
33276
|
e.style.removeProperty(t);
|
|
33264
33277
|
}), e.removeAttribute(Uz);
|
|
33265
33278
|
}
|
|
33266
|
-
function
|
|
33267
|
-
let n =
|
|
33268
|
-
return
|
|
33279
|
+
function fG(e, t = document.documentElement) {
|
|
33280
|
+
let n = PW(e.mode, uG()), r = sG(e, n);
|
|
33281
|
+
return lG.debug("apply", "appearance", {
|
|
33269
33282
|
mode: e.mode,
|
|
33270
33283
|
scheme: n,
|
|
33271
33284
|
theme: e.themePresetId
|
|
@@ -33274,7 +33287,7 @@ function dG(e, t = document.documentElement) {
|
|
|
33274
33287
|
}), t.setAttribute(Uz, e.borders), typeof window < "u" && window.dispatchEvent(new CustomEvent(Nz)), { scheme: n };
|
|
33275
33288
|
}
|
|
33276
33289
|
// src/ui/lib/appearance/readLayoutMetrics.ts
|
|
33277
|
-
function
|
|
33290
|
+
function pG(e, t, n) {
|
|
33278
33291
|
let r = getComputedStyle(e).getPropertyValue(t).trim();
|
|
33279
33292
|
if (!r) return n;
|
|
33280
33293
|
if (r.endsWith("px")) {
|
|
@@ -33287,7 +33300,7 @@ function fG(e, t, n) {
|
|
|
33287
33300
|
}
|
|
33288
33301
|
return n;
|
|
33289
33302
|
}
|
|
33290
|
-
function
|
|
33291
|
-
return
|
|
33303
|
+
function mG(e = document.documentElement) {
|
|
33304
|
+
return pG(e, "--nm-icon-control", 34) + pG(e, "--nm-space-2", 2);
|
|
33292
33305
|
}
|
|
33293
|
-
export { qz as NM_ACCENT_HEX, Gz as NM_ACCENT_PRESETS, cw as NM_AI_BADGE_TONES, K as NM_AI_CLASSES, aw as NM_AI_STATUS, Nz as NM_APPEARANCE_APPLIED_EVENT, Wz as NM_APPEARANCE_CONTRAST, Yz as NM_APPEARANCE_CSS_VARS, Jz as NM_APPEARANCE_DEFAULTS, Pz as NM_APPEARANCE_MODES, Mz as NM_APPEARANCE_STORAGE_KEY, rW as NM_APP_PANEL_CLASSES, nW as NM_APP_PANEL_ICON_SRC, tW as NM_APP_PANEL_TABS, zE as NM_AVATAR_SIZES, KE as NM_BAR_OVERFLOW_CLASSES, qE as NM_BAR_OVERFLOW_TEST_IDS, Uz as NM_BORDER_ATTRIBUTE, Hz as NM_BORDER_STRENGTH, Vz as NM_BORDER_STYLES, EC as NM_BUTTON_CLASSES, TC as NM_BUTTON_SIZES, wC as NM_BUTTON_TONES, vj as NM_CARD_SIZES, _j as NM_CARD_VARIANTS, MC as NM_CHATBOX_ACTION_CLASS, Pj as NM_CHATBOX_CLASSES, Aj as NM_CHATBOX_COMPOSER_ACTION_ICONS, jj as NM_CHATBOX_DURING_RUN_MENU_ICONS, Dj as NM_CHATBOX_ICON_IDS, kj as NM_CHATBOX_ICON_SRC, Oj as NM_CHATBOX_INTEGRATION_ICON_PATH, Mj as NM_CHATBOX_LUCIDE_MAP, Fj as NM_CHATBOX_MENU_MODE, SC as NM_CHIP_SIZES, xC as NM_CHIP_TONES, GC as NM_CODE_BLOCK_SIZES, WC as NM_CODE_BLOCK_VARIANTS, ew as NM_CODE_LANGUAGES, qj as NM_COLLECTION_ACTIONS, Kj as NM_COLLECTION_CLASSES, Hj as NM_COLLECTION_FILES_REFRESH_MS, Gj as NM_COLLECTION_ICON_SRC, Jj as NM_COLLECTION_MEDIA_KINDS, Uj as NM_COLLECTION_SCROLL_IDLE_MS, Wj as NM_COLLECTION_VIEWS, Q as NM_COMPOSER_CLASSES, pz as NM_COMPOSER_COPY, mz as NM_COMPOSER_INLINE_MARK, SW as NM_CONTROL_MENU_CSS_VARS, aW as NM_DRAWER_SIDES, dw as NM_DROPDOWN_ALIGN, q as NM_DROPDOWN_CLASSES, pw as NM_DROPDOWN_GAP_PX, fw as NM_DROPDOWN_REVEAL, mw as NM_DROPDOWN_SCROLL_IDLE_MS, uw as NM_DROPDOWN_TONE, lw as NM_DROPDOWN_TRIGGER, hW as NM_EXTENDED_ICON_IDS, mM as NM_FIELD_CLASSES, fM as NM_FIELD_KINDS, pM as NM_FIELD_LAYOUT, Iz as NM_FONT_WEIGHTS, fW as NM_HEADER_ICON_IDS, pW as NM_HEADER_ICON_SRC, og as NM_ICONS, mW as NM_ICON_BORDER_CLASSES, jC as NM_ICON_BUTTON_CLASSES, AC as NM_ICON_BUTTON_TONES, ag as NM_ICON_IDS, JB as NM_LIST_ITEM_CLASSES, iW as NM_LOGS_PANEL_CLASSES, cC as NM_LUCIDE_EXTENDED, lC as NM_LUCIDE_FILLED_IDS, J as NM_MESSAGE_CLASSES, DT as NM_MESSAGE_ICON_GLYPH, ET as NM_MESSAGE_ICON_IDS, OT as NM_MESSAGE_ICON_SRC, rV as NM_MODAL_ACTION, aV as NM_MODAL_CLASSES, nV as NM_MODAL_FOOTER, iV as NM_MODAL_SCROLL_IDLE_MS, tV as NM_MODAL_SIZE, eV as NM_MODAL_TITLE, YV as NM_PANEL_BAR_CLASSES, JV as NM_PANEL_BAR_LAYOUT, FV as NM_PANEL_MEASURES, PV as NM_PANEL_VARIANTS, tH as NM_QUESTIONNAIRE_CLASSES, eH as NM_QUESTIONNAIRE_COPY, QV as NM_QUESTIONNAIRE_SHORTCUTS, $V as NM_QUESTIONNAIRE_VARIANTS, yW as NM_RADIUS_CSS_VARS, bW as NM_RADIUS_FORMULAS, xW as NM_RADIUS_PRIMITIVE_FORMULAS, _W as NM_RADIUS_PRIMITIVE_PX, gW as NM_RADIUS_SCALE_VAR, vW as NM_RADIUS_SEMANTIC_OFFSET_SPACE, EW as NM_RAIL_FACE_HOLD_MS, CW as NM_RAIL_ICON_IDS, wW as NM_RAIL_ICON_SRC, TW as NM_RAIL_SCROLL_IDLE_MS, DW as NM_RAIL_SEARCH_DEBOUNCE_MS, WV as NM_SEGMENTED_CLASSES, UV as NM_SEGMENTED_TONES, hH as NM_SIDEBAR_BUTTON_SIZES, gH as NM_SIDEBAR_BUTTON_VARIANTS, pH as NM_SIDEBAR_COLLAPSIBLE, yH as NM_SIDEBAR_MOBILE_QUERY, vH as NM_SIDEBAR_PEEK_LEAVE_MS, _H as NM_SIDEBAR_SHORTCUT, dH as NM_SIDEBAR_SIDES, mH as NM_SIDEBAR_STATES, fH as NM_SIDEBAR_VARIANTS, SN as NM_SIDE_PANEL_KINDS, CN as NM_SIDE_PANEL_SIZES, jz as NM_SITE_PALETTE, nM as NM_SMALL_ICON_BUTTON_CLASSES, tM as NM_SMALL_ICON_BUTTON_TONES, sU as NM_TABLE_SIZES, oU as NM_TABLE_VARIANTS, gU as NM_TABS_CLASSES, Kz as NM_THEME_PRESETS, wU as NM_TOGGLE_SIZES, CU as NM_TOGGLE_VARIANTS, sw as NM_TOOL_STATES, EU as NM_TOP_BAR_CLASSES, AT as NM_TRACE_GLYPH_PATHS, kT as NM_TRACE_STATUSES, Fz as NM_UI_FONT_SIZE_PX, Lz as NM_UI_FONT_WEIGHT, Rz as NM_UI_ICON_SIZE_PX, zz as NM_UI_RADIUS_PERCENT, Bz as NM_UI_SPACE_PERCENT, IC as NORDMAN_CHROME_ICONS, FC as NORDMAN_CHROME_ICON_IDS, RC as NORDMAN_ICON_BUTTON_VARIANTS, jU as NORDMAN_LOGIN_FIELDS, AU as NORDMAN_LOGIN_FORM_ID, NU as NORDMAN_LOGIN_INTERFACE, MU as NORDMAN_LOGIN_REVEAL, kU as NORDMAN_LOGIN_VIEWS, EE as NmAlert, kE as NmAlertAction, OE as NmAlertDescription, AE as NmAlertDialog, LE as NmAlertDialogAction, RE as NmAlertDialogCancel, ME as NmAlertDialogContent, IE as NmAlertDialogDescription, PE as NmAlertDialogFooter, NE as NmAlertDialogHeader, FE as NmAlertDialogTitle, jE as NmAlertDialogTrigger, DE as NmAlertTitle, BE as NmAvatar, UE as NmAvatarBadge, HE as NmAvatarFallback, WE as NmAvatarGroup, GE as NmAvatarGroupCount, VE as NmAvatarImage, $T as NmBadge, $E as NmBarOverflow, eD as NmBrandLogo, tD as NmBreadcrumb, sD as NmBreadcrumbEllipsis, rD as NmBreadcrumbItem, iD as NmBreadcrumbLink, nD as NmBreadcrumbList, aD as NmBreadcrumbPage, oD as NmBreadcrumbSeparator, ZT as NmBubble, kC as NmButton, lD as NmButtonGroup, uD as NmButtonGroupSeparator, dD as NmButtonGroupText, gj as NmCalendar, yj as NmCard, Cj as NmCardAction, wj as NmCardContent, Sj as NmCardDescription, Tj as NmCardFooter, bj as NmCardHeader, Ej as NmCardMedia, xj as NmCardTitle, iE as NmChainOfThought, TE as NmChat, Lj as NmChatbox, Nj as NmChatboxIcon, Rj as NmCheckbox, aE as NmCheckpoint, CC as NmChip, qC as NmCodeBlock, XC as NmCodeBlockActions, rw as NmCodeBlockContent, ZC as NmCodeBlockCopyButton, iw as NmCodeBlockFooter, JC as NmCodeBlockHeader, QC as NmCodeBlockLine, YC as NmCodeBlockTitle, zj as NmCollapsible, Vj as NmCollapsibleContent, Bj as NmCollapsibleTrigger, eM as NmCollectionBar, dM as NmCollectionGrid, XN as NmCollectionQuery, $N as NmCollectionRowMenu, tP as NmCollectionTable, cM as NmCollectionTileActions, Zj as NmCollectionTitle, bN as NmColorPicker, vN as NmColorSwatch, hM as NmCombobox, _M as NmComboboxContent, bM as NmComboboxEmpty, xM as NmComboboxGroup, gM as NmComboboxInput, yM as NmComboboxItem, SM as NmComboboxLabel, vM as NmComboboxList, CM as NmComboboxSeparator, $R as NmCommand, dz as NmCommandDescription, ez as NmCommandDialog, iz as NmCommandEmpty, nz as NmCommandFilters, oz as NmCommandGroup, fz as NmCommandIcon, tz as NmCommandInput, cz as NmCommandItem, lz as NmCommandItemActions, rz as NmCommandList, az as NmCommandLoading, sz as NmCommandSeparator, uz as NmCommandShortcut, cB as NmComposer, oE as NmConfirmation, cE as NmContext, lB as NmContextMenu, dB as NmContextMenuContent, uB as NmContextMenuTrigger, hB as NmDatePicker, gB as NmDateRangePicker, bB as NmDateTimePicker, WR as NmDialog, YR as NmDialogBody, KR as NmDialogClose, qR as NmDialogContent, QR as NmDialogDescription, XR as NmDialogFooter, JR as NmDialogHeader, ZR as NmDialogTitle, GR as NmDialogTrigger, xB as NmDrawer, CB as NmDrawerClose, wB as NmDrawerContent, OB as NmDrawerDescription, EB as NmDrawerFooter, TB as NmDrawerHeader, DB as NmDrawerTitle, SB as NmDrawerTrigger, xT as NmDropdown, Uw as NmDropdownBranch, $w as NmDropdownMenu, cT as NmDropdownMenuCheckboxItem, tT as NmDropdownMenuContent, mT as NmDropdownMenuDot, nT as NmDropdownMenuGroup, iT as NmDropdownMenuItem, gT as NmDropdownMenuItems, rT as NmDropdownMenuLabel, lT as NmDropdownMenuRadioGroup, uT as NmDropdownMenuRadioItem, dT as NmDropdownMenuSeparator, fT as NmDropdownMenuShortcut, aT as NmDropdownMenuSub, sT as NmDropdownMenuSubContent, oT as NmDropdownMenuSubTrigger, pT as NmDropdownMenuText, eT as NmDropdownMenuTrigger, Zw as NmDropdownOptions, Bw as NmDropdownPanel, qN as NmField, PB as NmFieldContent, LB as NmFieldDescription, RB as NmFieldError, MB as NmFieldGroup, FB as NmFieldLabel, jB as NmFieldLegend, zB as NmFieldSeparator, AB as NmFieldSet, IB as NmFieldTitle, dE as NmFileTree, NB as NmFormField, BB as NmGallery, VB as NmGalleryItem, ST as NmHoverCard, wT as NmHoverCardContent, CT as NmHoverCardTrigger, G as NmIcon, Xj as NmIconBorder, fE as NmInlineCitation, dN as NmInput, HB as NmInputGroup, UB as NmInputGroupAddon, GB as NmInputGroupInput, WB as NmInputGroupText, eE as NmItem, KB as NmKbd, qB as NmKbdGroup, kB as NmLabel, XB as NmListItem, hC as NmLucide, ZB as NmMenubar, QB as NmMenubarMenu, $B as NmMenubarTrigger, nE as NmMessage, MT as NmMessageActions, FT as NmMessageMeta, kV as NmModal, AV as NmModalAction, pE as NmModelSelector, _B as NmMonthPicker, jV as NmNativeSelect, NV as NmNativeSelectOptGroup, MV as NmNativeSelectOption, IV as NmPanel, BV as NmPanelActions, ZV as NmPanelBar, VV as NmPanelContent, zV as NmPanelDescription, HV as NmPanelFooter, LV as NmPanelHeader, RV as NmPanelTitle, mE as NmPlan, fN as NmPopover, mN as NmPopoverContent, _N as NmPopoverDescription, hN as NmPopoverHeader, gN as NmPopoverTitle, pN as NmPopoverTrigger, TT as NmProgress, xN as NmProse, aH as NmQuestionnaire, hE as NmQueue, oH as NmRadioGroup, sH as NmRadioGroupItem, uH as NmRailIcon, rE as NmReasoning, EN as NmResizeHandle, qV as NmSegmented, wM as NmSelect, DM as NmSelectContent, kM as NmSelectGroup, OM as NmSelectItem, AM as NmSelectLabel, jM as NmSelectSeparator, TM as NmSelectTrigger, EM as NmSelectValue, cD as NmSeparator, tE as NmSheet, LN as NmSidePanel, RN as NmSidePanelBody, zN as NmSidePanelKinds, AH as NmSidebar, $H as NmSidebarChevron, RH as NmSidebarContent, IH as NmSidebarFooter, zH as NmSidebarGroup, VH as NmSidebarGroupAction, HH as NmSidebarGroupContent, BH as NmSidebarGroupLabel, FH as NmSidebarHeader, PH as NmSidebarInput, NH as NmSidebarInset, UH as NmSidebarMenu, KH as NmSidebarMenuAction, qH as NmSidebarMenuBadge, GH as NmSidebarMenuButton, WH as NmSidebarMenuItem, YH as NmSidebarMenuSkeleton, XH as NmSidebarMenuSub, QH as NmSidebarMenuSubButton, ZH as NmSidebarMenuSubItem, JH as NmSidebarMenuText, kH as NmSidebarProvider, MH as NmSidebarRail, LH as NmSidebarSeparator, jH as NmSidebarTrigger, bH as NmSkeleton, eU as NmSlider, aM as NmSmallIconButton, _E as NmSources, tU as NmSpinner, yE as NmStackTrace, nU as NmStatusBar, rU as NmStatusBarItem, iU as NmStatusBarSpacer, CE as NmSubagent, wE as NmSuggestions, aU as NmSwitch, cU as NmTable, uU as NmTableBody, hU as NmTableCaption, mU as NmTableCell, dU as NmTableFooter, pU as NmTableHead, lU as NmTableHeader, fU as NmTableRow, vU as NmTabs, SU as NmTabsContent, bU as NmTabsList, yU as NmTabsRoot, xU as NmTabsTrigger, gE as NmTask, vE as NmTerminal, bE as NmTestResults, NT as NmTextShimmer, UN as NmTextarea, WN as NmTextareaPanel, yB as NmTimePicker, TU as NmToggle, SE as NmTool, DN as NmToolbar, jN as NmToolbarButton, ON as NmToolbarGroup, MN as NmToolbarInput, kN as NmToolbarSeparator, AN as NmToolbarSpacer, SH as NmTooltip, wH as NmTooltipContent, xH as NmTooltipProvider, CH as NmTooltipTrigger, OU as NmTopBar, zT as NmTrace, JT as NmTraceBadge, qT as NmTraceBadges, BT as NmTraceCollapsible, HT as NmTraceCollapsibleContent, VT as NmTraceCollapsibleTrigger, KT as NmTraceDescription, RT as NmTraceGlyph, WT as NmTraceIcon, UT as NmTraceLine, GT as NmTraceTitle, NN as NmWorkspace, FN as NmWorkspaceBody, IN as NmWorkspaceFooter, PN as NmWorkspaceMain, UC as NordmanIconButton, QU as NordmanLogin, zU as NordmanLoginField, GU as NordmanLoginForgot, KU as NordmanLoginGoogle, XU as NordmanLoginHero, VU as NordmanLoginRegister, JU as NordmanLoginReset, RU as NordmanLoginReveal, UU as NordmanLoginSignIn, eW as NordmanToggle, dG as applyAppearanceState, HW as applyThemePresetPalette, uG as clearAppliedAppearance, Tz as contrastRatio, PW as createDefaultAppearanceState, Zz as defaultThemePresetId, oG as deriveAppearanceTokens, _w as dropdownBranchPath, Rw as dropdownPortalHost, Ww as findDropdownItem, Xz as findThemePreset, pC as hasNmLucide, Ez as hexToHsl, xz as hexToRgbTriplet, Dz as hslToHex, yz as isHexColor, hw as isNmDropdownSeparator, fC as isNmIconAnimated, VW as mergeThemePresetColors, Cz as mixHex, yw as nextExpandedBranches, ow as nmAiTraceStatus, DC as nmButtonClassName, PC as nmChatboxActionButtonClassName, F as nmClass, gw as nmDropdownSeparator, Nw as nmDropdownViewportMaxHeight, uW as nmFade, $C as nmHighlightedLines, NC as nmIconButtonClassName, cW as nmSettleSeconds, bz as normalizeHexColor, vw as openDropdownBranch, FW as paletteForPreset, RW as parseAppearanceState, Pw as placeNmDropdownPanel, Fw as placeNmDropdownRowPanel, Iw as placeNmDropdownSubpanel, fG as readCssLengthPx, pG as readNmRailRowStridePx, zW as readStoredAppearanceState, XW as resolveAccentHex, NW as resolveAppearanceScheme, sG as themeModeFromAppearance, ZE as useBarOverflow, dW as useNmFade, wV as useReportSaveDirty, DH as useSidebar, TV as useTrackSave, BW as writeStoredAppearanceState };
|
|
33306
|
+
export { qz as NM_ACCENT_HEX, Gz as NM_ACCENT_PRESETS, cw as NM_AI_BADGE_TONES, K as NM_AI_CLASSES, aw as NM_AI_STATUS, Nz as NM_APPEARANCE_APPLIED_EVENT, Wz as NM_APPEARANCE_CONTRAST, Yz as NM_APPEARANCE_CSS_VARS, Jz as NM_APPEARANCE_DEFAULTS, Pz as NM_APPEARANCE_MODES, Mz as NM_APPEARANCE_STORAGE_KEY, iW as NM_APP_PANEL_CLASSES, rW as NM_APP_PANEL_ICON_SRC, nW as NM_APP_PANEL_TABS, zE as NM_AVATAR_SIZES, KE as NM_BAR_OVERFLOW_CLASSES, qE as NM_BAR_OVERFLOW_TEST_IDS, Uz as NM_BORDER_ATTRIBUTE, Hz as NM_BORDER_STRENGTH, Vz as NM_BORDER_STYLES, EC as NM_BUTTON_CLASSES, TC as NM_BUTTON_SIZES, wC as NM_BUTTON_TONES, vj as NM_CARD_SIZES, _j as NM_CARD_VARIANTS, MC as NM_CHATBOX_ACTION_CLASS, Pj as NM_CHATBOX_CLASSES, Aj as NM_CHATBOX_COMPOSER_ACTION_ICONS, jj as NM_CHATBOX_DURING_RUN_MENU_ICONS, Dj as NM_CHATBOX_ICON_IDS, kj as NM_CHATBOX_ICON_SRC, Oj as NM_CHATBOX_INTEGRATION_ICON_PATH, Mj as NM_CHATBOX_LUCIDE_MAP, Fj as NM_CHATBOX_MENU_MODE, SC as NM_CHIP_SIZES, xC as NM_CHIP_TONES, GC as NM_CODE_BLOCK_SIZES, WC as NM_CODE_BLOCK_VARIANTS, ew as NM_CODE_LANGUAGES, qj as NM_COLLECTION_ACTIONS, Kj as NM_COLLECTION_CLASSES, Hj as NM_COLLECTION_FILES_REFRESH_MS, Gj as NM_COLLECTION_ICON_SRC, Jj as NM_COLLECTION_MEDIA_KINDS, Uj as NM_COLLECTION_SCROLL_IDLE_MS, Wj as NM_COLLECTION_VIEWS, Q as NM_COMPOSER_CLASSES, pz as NM_COMPOSER_COPY, mz as NM_COMPOSER_INLINE_MARK, CW as NM_CONTROL_MENU_CSS_VARS, oW as NM_DRAWER_SIDES, dw as NM_DROPDOWN_ALIGN, q as NM_DROPDOWN_CLASSES, pw as NM_DROPDOWN_GAP_PX, fw as NM_DROPDOWN_REVEAL, mw as NM_DROPDOWN_SCROLL_IDLE_MS, uw as NM_DROPDOWN_TONE, lw as NM_DROPDOWN_TRIGGER, gW as NM_EXTENDED_ICON_IDS, mM as NM_FIELD_CLASSES, fM as NM_FIELD_KINDS, pM as NM_FIELD_LAYOUT, Iz as NM_FONT_WEIGHTS, pW as NM_HEADER_ICON_IDS, mW as NM_HEADER_ICON_SRC, og as NM_ICONS, hW as NM_ICON_BORDER_CLASSES, jC as NM_ICON_BUTTON_CLASSES, AC as NM_ICON_BUTTON_TONES, ag as NM_ICON_IDS, JB as NM_LIST_ITEM_CLASSES, aW as NM_LOGS_PANEL_CLASSES, cC as NM_LUCIDE_EXTENDED, lC as NM_LUCIDE_FILLED_IDS, J as NM_MESSAGE_CLASSES, DT as NM_MESSAGE_ICON_GLYPH, ET as NM_MESSAGE_ICON_IDS, OT as NM_MESSAGE_ICON_SRC, rV as NM_MODAL_ACTION, aV as NM_MODAL_CLASSES, nV as NM_MODAL_FOOTER, iV as NM_MODAL_SCROLL_IDLE_MS, tV as NM_MODAL_SIZE, eV as NM_MODAL_TITLE, YV as NM_PANEL_BAR_CLASSES, JV as NM_PANEL_BAR_LAYOUT, FV as NM_PANEL_MEASURES, PV as NM_PANEL_VARIANTS, tH as NM_QUESTIONNAIRE_CLASSES, eH as NM_QUESTIONNAIRE_COPY, QV as NM_QUESTIONNAIRE_SHORTCUTS, $V as NM_QUESTIONNAIRE_VARIANTS, bW as NM_RADIUS_CSS_VARS, xW as NM_RADIUS_FORMULAS, SW as NM_RADIUS_PRIMITIVE_FORMULAS, vW as NM_RADIUS_PRIMITIVE_PX, _W as NM_RADIUS_SCALE_VAR, yW as NM_RADIUS_SEMANTIC_OFFSET_SPACE, DW as NM_RAIL_FACE_HOLD_MS, wW as NM_RAIL_ICON_IDS, TW as NM_RAIL_ICON_SRC, EW as NM_RAIL_SCROLL_IDLE_MS, OW as NM_RAIL_SEARCH_DEBOUNCE_MS, WV as NM_SEGMENTED_CLASSES, UV as NM_SEGMENTED_TONES, hH as NM_SIDEBAR_BUTTON_SIZES, gH as NM_SIDEBAR_BUTTON_VARIANTS, pH as NM_SIDEBAR_COLLAPSIBLE, yH as NM_SIDEBAR_MOBILE_QUERY, vH as NM_SIDEBAR_PEEK_LEAVE_MS, _H as NM_SIDEBAR_SHORTCUT, dH as NM_SIDEBAR_SIDES, mH as NM_SIDEBAR_STATES, fH as NM_SIDEBAR_VARIANTS, SN as NM_SIDE_PANEL_KINDS, CN as NM_SIDE_PANEL_SIZES, jz as NM_SITE_PALETTE, nM as NM_SMALL_ICON_BUTTON_CLASSES, tM as NM_SMALL_ICON_BUTTON_TONES, cU as NM_TABLE_SIZES, sU as NM_TABLE_VARIANTS, _U as NM_TABS_CLASSES, Kz as NM_THEME_PRESETS, TU as NM_TOGGLE_SIZES, wU as NM_TOGGLE_VARIANTS, sw as NM_TOOL_STATES, DU as NM_TOP_BAR_CLASSES, AT as NM_TRACE_GLYPH_PATHS, kT as NM_TRACE_STATUSES, Fz as NM_UI_FONT_SIZE_PX, Lz as NM_UI_FONT_WEIGHT, Rz as NM_UI_ICON_SIZE_PX, zz as NM_UI_RADIUS_PERCENT, Bz as NM_UI_SPACE_PERCENT, IC as NORDMAN_CHROME_ICONS, FC as NORDMAN_CHROME_ICON_IDS, RC as NORDMAN_ICON_BUTTON_VARIANTS, MU as NORDMAN_LOGIN_FIELDS, jU as NORDMAN_LOGIN_FORM_ID, PU as NORDMAN_LOGIN_INTERFACE, NU as NORDMAN_LOGIN_REVEAL, AU as NORDMAN_LOGIN_VIEWS, EE as NmAlert, kE as NmAlertAction, OE as NmAlertDescription, AE as NmAlertDialog, LE as NmAlertDialogAction, RE as NmAlertDialogCancel, ME as NmAlertDialogContent, IE as NmAlertDialogDescription, PE as NmAlertDialogFooter, NE as NmAlertDialogHeader, FE as NmAlertDialogTitle, jE as NmAlertDialogTrigger, DE as NmAlertTitle, BE as NmAvatar, UE as NmAvatarBadge, HE as NmAvatarFallback, WE as NmAvatarGroup, GE as NmAvatarGroupCount, VE as NmAvatarImage, $T as NmBadge, $E as NmBarOverflow, eD as NmBrandLogo, tD as NmBreadcrumb, sD as NmBreadcrumbEllipsis, rD as NmBreadcrumbItem, iD as NmBreadcrumbLink, nD as NmBreadcrumbList, aD as NmBreadcrumbPage, oD as NmBreadcrumbSeparator, ZT as NmBubble, kC as NmButton, lD as NmButtonGroup, uD as NmButtonGroupSeparator, dD as NmButtonGroupText, gj as NmCalendar, yj as NmCard, Cj as NmCardAction, wj as NmCardContent, Sj as NmCardDescription, Tj as NmCardFooter, bj as NmCardHeader, Ej as NmCardMedia, xj as NmCardTitle, iE as NmChainOfThought, TE as NmChat, Lj as NmChatbox, Nj as NmChatboxIcon, Rj as NmCheckbox, aE as NmCheckpoint, CC as NmChip, qC as NmCodeBlock, XC as NmCodeBlockActions, rw as NmCodeBlockContent, ZC as NmCodeBlockCopyButton, iw as NmCodeBlockFooter, JC as NmCodeBlockHeader, QC as NmCodeBlockLine, YC as NmCodeBlockTitle, zj as NmCollapsible, Vj as NmCollapsibleContent, Bj as NmCollapsibleTrigger, eM as NmCollectionBar, dM as NmCollectionGrid, XN as NmCollectionQuery, $N as NmCollectionRowMenu, tP as NmCollectionTable, cM as NmCollectionTileActions, Zj as NmCollectionTitle, bN as NmColorPicker, vN as NmColorSwatch, hM as NmCombobox, _M as NmComboboxContent, bM as NmComboboxEmpty, xM as NmComboboxGroup, gM as NmComboboxInput, yM as NmComboboxItem, SM as NmComboboxLabel, vM as NmComboboxList, CM as NmComboboxSeparator, $R as NmCommand, dz as NmCommandDescription, ez as NmCommandDialog, iz as NmCommandEmpty, nz as NmCommandFilters, oz as NmCommandGroup, fz as NmCommandIcon, tz as NmCommandInput, cz as NmCommandItem, lz as NmCommandItemActions, rz as NmCommandList, az as NmCommandLoading, sz as NmCommandSeparator, uz as NmCommandShortcut, cB as NmComposer, oE as NmConfirmation, cE as NmContext, lB as NmContextMenu, dB as NmContextMenuContent, uB as NmContextMenuTrigger, hB as NmDatePicker, gB as NmDateRangePicker, bB as NmDateTimePicker, WR as NmDialog, YR as NmDialogBody, KR as NmDialogClose, qR as NmDialogContent, QR as NmDialogDescription, XR as NmDialogFooter, JR as NmDialogHeader, ZR as NmDialogTitle, GR as NmDialogTrigger, xB as NmDrawer, CB as NmDrawerClose, wB as NmDrawerContent, OB as NmDrawerDescription, EB as NmDrawerFooter, TB as NmDrawerHeader, DB as NmDrawerTitle, SB as NmDrawerTrigger, xT as NmDropdown, Uw as NmDropdownBranch, $w as NmDropdownMenu, cT as NmDropdownMenuCheckboxItem, tT as NmDropdownMenuContent, mT as NmDropdownMenuDot, nT as NmDropdownMenuGroup, iT as NmDropdownMenuItem, gT as NmDropdownMenuItems, rT as NmDropdownMenuLabel, lT as NmDropdownMenuRadioGroup, uT as NmDropdownMenuRadioItem, dT as NmDropdownMenuSeparator, fT as NmDropdownMenuShortcut, aT as NmDropdownMenuSub, sT as NmDropdownMenuSubContent, oT as NmDropdownMenuSubTrigger, pT as NmDropdownMenuText, eT as NmDropdownMenuTrigger, Zw as NmDropdownOptions, Bw as NmDropdownPanel, qN as NmField, PB as NmFieldContent, LB as NmFieldDescription, RB as NmFieldError, MB as NmFieldGroup, FB as NmFieldLabel, jB as NmFieldLegend, zB as NmFieldSeparator, AB as NmFieldSet, IB as NmFieldTitle, dE as NmFileTree, NB as NmFormField, BB as NmGallery, VB as NmGalleryItem, ST as NmHoverCard, wT as NmHoverCardContent, CT as NmHoverCardTrigger, G as NmIcon, Xj as NmIconBorder, fE as NmInlineCitation, dN as NmInput, HB as NmInputGroup, UB as NmInputGroupAddon, GB as NmInputGroupInput, WB as NmInputGroupText, eE as NmItem, KB as NmKbd, qB as NmKbdGroup, kB as NmLabel, XB as NmListItem, hC as NmLucide, ZB as NmMenubar, QB as NmMenubarMenu, $B as NmMenubarTrigger, nE as NmMessage, MT as NmMessageActions, FT as NmMessageMeta, kV as NmModal, AV as NmModalAction, pE as NmModelSelector, _B as NmMonthPicker, jV as NmNativeSelect, NV as NmNativeSelectOptGroup, MV as NmNativeSelectOption, IV as NmPanel, BV as NmPanelActions, ZV as NmPanelBar, VV as NmPanelContent, zV as NmPanelDescription, HV as NmPanelFooter, LV as NmPanelHeader, RV as NmPanelTitle, mE as NmPlan, fN as NmPopover, mN as NmPopoverContent, _N as NmPopoverDescription, hN as NmPopoverHeader, gN as NmPopoverTitle, pN as NmPopoverTrigger, TT as NmProgress, xN as NmProse, aH as NmQuestionnaire, hE as NmQueue, oH as NmRadioGroup, sH as NmRadioGroupItem, uH as NmRailIcon, rE as NmReasoning, EN as NmResizeHandle, qV as NmSegmented, wM as NmSelect, DM as NmSelectContent, kM as NmSelectGroup, OM as NmSelectItem, AM as NmSelectLabel, jM as NmSelectSeparator, TM as NmSelectTrigger, EM as NmSelectValue, cD as NmSeparator, tE as NmSheet, LN as NmSidePanel, RN as NmSidePanelBody, zN as NmSidePanelKinds, jH as NmSidebar, eU as NmSidebarChevron, zH as NmSidebarContent, LH as NmSidebarFooter, BH as NmSidebarGroup, HH as NmSidebarGroupAction, UH as NmSidebarGroupContent, VH as NmSidebarGroupLabel, IH as NmSidebarHeader, FH as NmSidebarInput, PH as NmSidebarInset, WH as NmSidebarMenu, qH as NmSidebarMenuAction, JH as NmSidebarMenuBadge, KH as NmSidebarMenuButton, GH as NmSidebarMenuItem, XH as NmSidebarMenuSkeleton, ZH as NmSidebarMenuSub, $H as NmSidebarMenuSubButton, QH as NmSidebarMenuSubItem, YH as NmSidebarMenuText, AH as NmSidebarProvider, NH as NmSidebarRail, RH as NmSidebarSeparator, MH as NmSidebarTrigger, bH as NmSkeleton, tU as NmSlider, aM as NmSmallIconButton, _E as NmSources, nU as NmSpinner, yE as NmStackTrace, rU as NmStatusBar, iU as NmStatusBarItem, aU as NmStatusBarSpacer, CE as NmSubagent, wE as NmSuggestions, oU as NmSwitch, lU as NmTable, dU as NmTableBody, gU as NmTableCaption, hU as NmTableCell, fU as NmTableFooter, mU as NmTableHead, uU as NmTableHeader, pU as NmTableRow, yU as NmTabs, CU as NmTabsContent, xU as NmTabsList, bU as NmTabsRoot, SU as NmTabsTrigger, gE as NmTask, vE as NmTerminal, bE as NmTestResults, NT as NmTextShimmer, UN as NmTextarea, WN as NmTextareaPanel, yB as NmTimePicker, EU as NmToggle, SE as NmTool, DN as NmToolbar, jN as NmToolbarButton, ON as NmToolbarGroup, MN as NmToolbarInput, kN as NmToolbarSeparator, AN as NmToolbarSpacer, SH as NmTooltip, wH as NmTooltipContent, xH as NmTooltipProvider, CH as NmTooltipTrigger, kU as NmTopBar, zT as NmTrace, JT as NmTraceBadge, qT as NmTraceBadges, BT as NmTraceCollapsible, HT as NmTraceCollapsibleContent, VT as NmTraceCollapsibleTrigger, KT as NmTraceDescription, RT as NmTraceGlyph, WT as NmTraceIcon, UT as NmTraceLine, GT as NmTraceTitle, NN as NmWorkspace, FN as NmWorkspaceBody, IN as NmWorkspaceFooter, PN as NmWorkspaceMain, UC as NordmanIconButton, $U as NordmanLogin, BU as NordmanLoginField, KU as NordmanLoginForgot, qU as NordmanLoginGoogle, ZU as NordmanLoginHero, HU as NordmanLoginRegister, YU as NordmanLoginReset, zU as NordmanLoginReveal, WU as NordmanLoginSignIn, tW as NordmanToggle, fG as applyAppearanceState, UW as applyThemePresetPalette, dG as clearAppliedAppearance, Tz as contrastRatio, FW as createDefaultAppearanceState, Zz as defaultThemePresetId, sG as deriveAppearanceTokens, _w as dropdownBranchPath, Rw as dropdownPortalHost, Ww as findDropdownItem, Xz as findThemePreset, pC as hasNmLucide, Ez as hexToHsl, xz as hexToRgbTriplet, Dz as hslToHex, yz as isHexColor, hw as isNmDropdownSeparator, fC as isNmIconAnimated, HW as mergeThemePresetColors, Cz as mixHex, yw as nextExpandedBranches, ow as nmAiTraceStatus, DC as nmButtonClassName, PC as nmChatboxActionButtonClassName, F as nmClass, gw as nmDropdownSeparator, Nw as nmDropdownViewportMaxHeight, dW as nmFade, $C as nmHighlightedLines, NC as nmIconButtonClassName, lW as nmSettleSeconds, bz as normalizeHexColor, vw as openDropdownBranch, IW as paletteForPreset, zW as parseAppearanceState, Pw as placeNmDropdownPanel, Fw as placeNmDropdownRowPanel, Iw as placeNmDropdownSubpanel, pG as readCssLengthPx, mG as readNmRailRowStridePx, BW as readStoredAppearanceState, ZW as resolveAccentHex, PW as resolveAppearanceScheme, cG as themeModeFromAppearance, ZE as useBarOverflow, fW as useNmFade, DH as useOptionalSidebar, wV as useReportSaveDirty, OH as useSidebar, TV as useTrackSave, VW as writeStoredAppearanceState };
|