@nordmanai/nif 0.2.14 → 0.2.16
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 +265 -255
- package/dist/styles.css +1 -1
- package/dist/ui/components/nm-sidebar/nm-sidebar.d.ts +12 -3
- package/package.json +1 -1
- package/registry/index.json +1 -1
- package/registry/ui/components/nm-sidebar/nm-sidebar.css +31 -0
- package/registry/ui/components/nm-sidebar/nm-sidebar.tsx +17 -5
package/dist/index.js
CHANGED
|
@@ -31927,30 +31927,39 @@ function IH({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
31927
31927
|
})
|
|
31928
31928
|
});
|
|
31929
31929
|
}
|
|
31930
|
-
function LH({ className: e, label: t, icon: n = "panel-left", tooltip: r = !0,
|
|
31931
|
-
let { open:
|
|
31930
|
+
function LH({ className: e, label: t, icon: n = "panel-left", tooltip: r = !0, anchored: i = !1, onClick: a, onPointerEnter: o, onPointerLeave: s, ...c }) {
|
|
31931
|
+
let { open: l, isMobile: u, toggleSidebar: d, peekIn: f, peekOut: p } = NH(), m = t ?? (l || u ? "Close sidebar" : "Open sidebar"), h = /* @__PURE__ */ b(GC, {
|
|
31932
31932
|
"data-slot": "sidebar-trigger",
|
|
31933
31933
|
glyph: n,
|
|
31934
|
-
label:
|
|
31934
|
+
label: m,
|
|
31935
31935
|
tone: "quiet",
|
|
31936
|
-
|
|
31936
|
+
"data-anchored": i ? "true" : void 0,
|
|
31937
|
+
className: F("nm-sidebar__trigger", i ? "nm-sidebar__trigger--anchored" : null, e),
|
|
31937
31938
|
onClick: (e) => {
|
|
31938
|
-
|
|
31939
|
+
a?.(e), d();
|
|
31939
31940
|
},
|
|
31940
31941
|
onPointerEnter: (e) => {
|
|
31941
|
-
|
|
31942
|
+
o?.(e), f(e);
|
|
31942
31943
|
},
|
|
31943
31944
|
onPointerLeave: (e) => {
|
|
31944
|
-
|
|
31945
|
+
s?.(e), p();
|
|
31945
31946
|
},
|
|
31946
|
-
...
|
|
31947
|
+
...c
|
|
31947
31948
|
});
|
|
31948
|
-
return r ? /* @__PURE__ */ x(EH, { children: [/* @__PURE__ */ b(DH, { render:
|
|
31949
|
+
return r ? /* @__PURE__ */ x(EH, { children: [/* @__PURE__ */ b(DH, { render: h }), /* @__PURE__ */ x(OH, {
|
|
31949
31950
|
side: "bottom",
|
|
31950
|
-
children: [
|
|
31951
|
-
})] }) :
|
|
31951
|
+
children: [m, /* @__PURE__ */ b(XB, { children: "⌘B" })]
|
|
31952
|
+
})] }) : h;
|
|
31953
|
+
}
|
|
31954
|
+
function RH({ className: e, ...t }) {
|
|
31955
|
+
return /* @__PURE__ */ b("span", {
|
|
31956
|
+
"aria-hidden": "true",
|
|
31957
|
+
"data-slot": "sidebar-trigger-space",
|
|
31958
|
+
className: F("nm-sidebar__trigger-space", e),
|
|
31959
|
+
...t
|
|
31960
|
+
});
|
|
31952
31961
|
}
|
|
31953
|
-
function
|
|
31962
|
+
function zH({ className: e, label: t = "Toggle sidebar", ...n }) {
|
|
31954
31963
|
let { toggleSidebar: r } = NH();
|
|
31955
31964
|
return /* @__PURE__ */ b("button", {
|
|
31956
31965
|
type: "button",
|
|
@@ -31963,7 +31972,7 @@ function RH({ className: e, label: t = "Toggle sidebar", ...n }) {
|
|
|
31963
31972
|
...n
|
|
31964
31973
|
});
|
|
31965
31974
|
}
|
|
31966
|
-
function
|
|
31975
|
+
function BH({ className: e, render: t, ref: n, ...r }) {
|
|
31967
31976
|
return Si({
|
|
31968
31977
|
render: t,
|
|
31969
31978
|
ref: n,
|
|
@@ -31975,49 +31984,49 @@ function zH({ className: e, render: t, ref: n, ...r }) {
|
|
|
31975
31984
|
}
|
|
31976
31985
|
});
|
|
31977
31986
|
}
|
|
31978
|
-
function
|
|
31987
|
+
function VH({ className: e, ...t }) {
|
|
31979
31988
|
return /* @__PURE__ */ b(mN, {
|
|
31980
31989
|
"data-slot": "sidebar-input",
|
|
31981
31990
|
className: F("nm-sidebar__input", e),
|
|
31982
31991
|
...t
|
|
31983
31992
|
});
|
|
31984
31993
|
}
|
|
31985
|
-
function
|
|
31994
|
+
function HH({ className: e, ...t }) {
|
|
31986
31995
|
return /* @__PURE__ */ b("div", {
|
|
31987
31996
|
"data-slot": "sidebar-header",
|
|
31988
31997
|
className: F("nm-sidebar__header", e),
|
|
31989
31998
|
...t
|
|
31990
31999
|
});
|
|
31991
32000
|
}
|
|
31992
|
-
function
|
|
32001
|
+
function UH({ className: e, ...t }) {
|
|
31993
32002
|
return /* @__PURE__ */ b("div", {
|
|
31994
32003
|
"data-slot": "sidebar-footer",
|
|
31995
32004
|
className: F("nm-sidebar__footer", e),
|
|
31996
32005
|
...t
|
|
31997
32006
|
});
|
|
31998
32007
|
}
|
|
31999
|
-
function
|
|
32008
|
+
function WH({ className: e, ...t }) {
|
|
32000
32009
|
return /* @__PURE__ */ b(dD, {
|
|
32001
32010
|
"data-slot": "sidebar-separator",
|
|
32002
32011
|
className: F("nm-sidebar__separator", e),
|
|
32003
32012
|
...t
|
|
32004
32013
|
});
|
|
32005
32014
|
}
|
|
32006
|
-
function
|
|
32015
|
+
function GH({ className: e, ...t }) {
|
|
32007
32016
|
return /* @__PURE__ */ b("div", {
|
|
32008
32017
|
"data-slot": "sidebar-content",
|
|
32009
32018
|
className: F("nm-sidebar__content", e),
|
|
32010
32019
|
...t
|
|
32011
32020
|
});
|
|
32012
32021
|
}
|
|
32013
|
-
function
|
|
32022
|
+
function KH({ className: e, ...t }) {
|
|
32014
32023
|
return /* @__PURE__ */ b("div", {
|
|
32015
32024
|
"data-slot": "sidebar-group",
|
|
32016
32025
|
className: F("nm-sidebar__group", e),
|
|
32017
32026
|
...t
|
|
32018
32027
|
});
|
|
32019
32028
|
}
|
|
32020
|
-
function
|
|
32029
|
+
function qH({ className: e, render: t, ref: n, ...r }) {
|
|
32021
32030
|
return Si({
|
|
32022
32031
|
render: t,
|
|
32023
32032
|
ref: n,
|
|
@@ -32029,7 +32038,7 @@ function KH({ className: e, render: t, ref: n, ...r }) {
|
|
|
32029
32038
|
}
|
|
32030
32039
|
});
|
|
32031
32040
|
}
|
|
32032
|
-
function
|
|
32041
|
+
function JH({ className: e, ...t }) {
|
|
32033
32042
|
return /* @__PURE__ */ b(cM, {
|
|
32034
32043
|
"data-slot": "sidebar-group-action",
|
|
32035
32044
|
tone: "quiet",
|
|
@@ -32037,28 +32046,28 @@ function qH({ className: e, ...t }) {
|
|
|
32037
32046
|
...t
|
|
32038
32047
|
});
|
|
32039
32048
|
}
|
|
32040
|
-
function
|
|
32049
|
+
function YH({ className: e, ...t }) {
|
|
32041
32050
|
return /* @__PURE__ */ b("div", {
|
|
32042
32051
|
"data-slot": "sidebar-group-content",
|
|
32043
32052
|
className: F("nm-sidebar__group-content", e),
|
|
32044
32053
|
...t
|
|
32045
32054
|
});
|
|
32046
32055
|
}
|
|
32047
|
-
function
|
|
32056
|
+
function XH({ className: e, ...t }) {
|
|
32048
32057
|
return /* @__PURE__ */ b("ul", {
|
|
32049
32058
|
"data-slot": "sidebar-menu",
|
|
32050
32059
|
className: F("nm-sidebar__menu", e),
|
|
32051
32060
|
...t
|
|
32052
32061
|
});
|
|
32053
32062
|
}
|
|
32054
|
-
function
|
|
32063
|
+
function ZH({ className: e, ...t }) {
|
|
32055
32064
|
return /* @__PURE__ */ b("li", {
|
|
32056
32065
|
"data-slot": "sidebar-menu-item",
|
|
32057
32066
|
className: F("nm-sidebar__menu-item", e),
|
|
32058
32067
|
...t
|
|
32059
32068
|
});
|
|
32060
32069
|
}
|
|
32061
|
-
function
|
|
32070
|
+
function QH({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ref: o, ...s }) {
|
|
32062
32071
|
let { isMobile: c, state: l, peek: u } = NH(), d = Si({
|
|
32063
32072
|
render: e,
|
|
32064
32073
|
ref: o,
|
|
@@ -32080,7 +32089,7 @@ function ZH({ render: e, isActive: t = !1, variant: n = "default", size: r = "de
|
|
|
32080
32089
|
...typeof i == "string" ? { children: i } : i
|
|
32081
32090
|
}) : null] });
|
|
32082
32091
|
}
|
|
32083
|
-
function
|
|
32092
|
+
function $H({ className: e, showOnHover: t = !1, ...n }) {
|
|
32084
32093
|
return /* @__PURE__ */ b(cM, {
|
|
32085
32094
|
"data-slot": "sidebar-menu-action",
|
|
32086
32095
|
"data-show-on-hover": t ? "" : void 0,
|
|
@@ -32089,7 +32098,7 @@ function QH({ className: e, showOnHover: t = !1, ...n }) {
|
|
|
32089
32098
|
...n
|
|
32090
32099
|
});
|
|
32091
32100
|
}
|
|
32092
|
-
function
|
|
32101
|
+
function eU({ className: e, showOnHover: t = !1, ...n }) {
|
|
32093
32102
|
return /* @__PURE__ */ b("div", {
|
|
32094
32103
|
"data-slot": "sidebar-menu-actions",
|
|
32095
32104
|
"data-show-on-hover": t ? "" : void 0,
|
|
@@ -32097,14 +32106,14 @@ function $H({ className: e, showOnHover: t = !1, ...n }) {
|
|
|
32097
32106
|
...n
|
|
32098
32107
|
});
|
|
32099
32108
|
}
|
|
32100
|
-
function
|
|
32109
|
+
function tU({ className: e, ...t }) {
|
|
32101
32110
|
return /* @__PURE__ */ b("div", {
|
|
32102
32111
|
"data-slot": "sidebar-bar",
|
|
32103
32112
|
className: F("nm-sidebar__bar", e),
|
|
32104
32113
|
...t
|
|
32105
32114
|
});
|
|
32106
32115
|
}
|
|
32107
|
-
function
|
|
32116
|
+
function nU({ className: e, ...t }) {
|
|
32108
32117
|
return /* @__PURE__ */ b(CC, {
|
|
32109
32118
|
"data-slot": "sidebar-menu-badge",
|
|
32110
32119
|
size: "sm",
|
|
@@ -32112,7 +32121,7 @@ function tU({ className: e, ...t }) {
|
|
|
32112
32121
|
...t
|
|
32113
32122
|
});
|
|
32114
32123
|
}
|
|
32115
|
-
function
|
|
32124
|
+
function rU({ title: e, description: t, className: n, ...r }) {
|
|
32116
32125
|
return /* @__PURE__ */ x("span", {
|
|
32117
32126
|
"data-slot": "sidebar-menu-text",
|
|
32118
32127
|
className: F("nm-sidebar__text", n),
|
|
@@ -32120,7 +32129,7 @@ function nU({ title: e, description: t, className: n, ...r }) {
|
|
|
32120
32129
|
children: [/* @__PURE__ */ b("span", { children: e }), t == null ? null : /* @__PURE__ */ b("span", { children: t })]
|
|
32121
32130
|
});
|
|
32122
32131
|
}
|
|
32123
|
-
function
|
|
32132
|
+
function iU({ className: e, showIcon: t = !1, ...n }) {
|
|
32124
32133
|
let [r] = p(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
32125
32134
|
return /* @__PURE__ */ x("div", {
|
|
32126
32135
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -32132,21 +32141,21 @@ function rU({ className: e, showIcon: t = !1, ...n }) {
|
|
|
32132
32141
|
})]
|
|
32133
32142
|
});
|
|
32134
32143
|
}
|
|
32135
|
-
function
|
|
32144
|
+
function aU({ className: e, ...t }) {
|
|
32136
32145
|
return /* @__PURE__ */ b("ul", {
|
|
32137
32146
|
"data-slot": "sidebar-menu-sub",
|
|
32138
32147
|
className: F("nm-sidebar__menu-sub", e),
|
|
32139
32148
|
...t
|
|
32140
32149
|
});
|
|
32141
32150
|
}
|
|
32142
|
-
function
|
|
32151
|
+
function oU({ className: e, ...t }) {
|
|
32143
32152
|
return /* @__PURE__ */ b("li", {
|
|
32144
32153
|
"data-slot": "sidebar-menu-sub-item",
|
|
32145
32154
|
className: F("nm-sidebar__menu-sub-item", e),
|
|
32146
32155
|
...t
|
|
32147
32156
|
});
|
|
32148
32157
|
}
|
|
32149
|
-
function
|
|
32158
|
+
function sU({ render: e, size: t = "default", isActive: n = !1, disabled: r = !1, className: i, ref: a, ...o }) {
|
|
32150
32159
|
return Si({
|
|
32151
32160
|
render: e,
|
|
32152
32161
|
ref: a,
|
|
@@ -32164,15 +32173,16 @@ function oU({ render: e, size: t = "default", isActive: n = !1, disabled: r = !1
|
|
|
32164
32173
|
}
|
|
32165
32174
|
});
|
|
32166
32175
|
}
|
|
32167
|
-
function
|
|
32176
|
+
function cU({ className: e, menu: t = !1, flyout: n = !1, ...r }) {
|
|
32168
32177
|
return /* @__PURE__ */ b(G, {
|
|
32169
32178
|
id: "chevron",
|
|
32170
32179
|
"data-menu": t ? "" : void 0,
|
|
32180
|
+
"data-flyout": n ? "" : void 0,
|
|
32171
32181
|
className: F("nm-sidebar__chevron", e),
|
|
32172
|
-
...
|
|
32182
|
+
...r
|
|
32173
32183
|
});
|
|
32174
32184
|
}
|
|
32175
|
-
function
|
|
32185
|
+
function lU({ open: e, onOpenChange: t, ...n }) {
|
|
32176
32186
|
let r = jH(), [i, a] = p(!1), s = (e ?? i) && r, l = o((e, n) => {
|
|
32177
32187
|
a(e), t?.(e, n);
|
|
32178
32188
|
}, [t]);
|
|
@@ -32185,7 +32195,7 @@ function cU({ open: e, onOpenChange: t, ...n }) {
|
|
|
32185
32195
|
});
|
|
32186
32196
|
}
|
|
32187
32197
|
// src/ui/components/nm-slider/nm-slider.tsx
|
|
32188
|
-
function
|
|
32198
|
+
function uU({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, label: a, output: o, ...s }) {
|
|
32189
32199
|
let c = Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], l = /* @__PURE__ */ b(Up.Root, {
|
|
32190
32200
|
"data-slot": "slider",
|
|
32191
32201
|
className: F("nm-slider", e),
|
|
@@ -32226,7 +32236,7 @@ function lU({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
32226
32236
|
}) : l;
|
|
32227
32237
|
}
|
|
32228
32238
|
// src/ui/components/nm-spinner/nm-spinner.tsx
|
|
32229
|
-
function
|
|
32239
|
+
function dU({ className: e, ...t }) {
|
|
32230
32240
|
return /* @__PURE__ */ b("span", {
|
|
32231
32241
|
role: "status",
|
|
32232
32242
|
"aria-live": "polite",
|
|
@@ -32236,14 +32246,14 @@ function uU({ className: e, ...t }) {
|
|
|
32236
32246
|
});
|
|
32237
32247
|
}
|
|
32238
32248
|
// src/ui/components/nm-status-bar/nm-status-bar.tsx
|
|
32239
|
-
function
|
|
32249
|
+
function fU({ className: e, ...t }) {
|
|
32240
32250
|
return /* @__PURE__ */ b("footer", {
|
|
32241
32251
|
"data-slot": "status-bar",
|
|
32242
32252
|
className: F("nm-status-bar", e),
|
|
32243
32253
|
...t
|
|
32244
32254
|
});
|
|
32245
32255
|
}
|
|
32246
|
-
function
|
|
32256
|
+
function pU({ className: e, onClick: t, children: n, ...r }) {
|
|
32247
32257
|
let i = F("nm-status-bar__item", e);
|
|
32248
32258
|
return t ? /* @__PURE__ */ b("button", {
|
|
32249
32259
|
type: "button",
|
|
@@ -32258,7 +32268,7 @@ function fU({ className: e, onClick: t, children: n, ...r }) {
|
|
|
32258
32268
|
children: n
|
|
32259
32269
|
});
|
|
32260
32270
|
}
|
|
32261
|
-
function
|
|
32271
|
+
function mU({ className: e, ...t }) {
|
|
32262
32272
|
return /* @__PURE__ */ b("span", {
|
|
32263
32273
|
"aria-hidden": "true",
|
|
32264
32274
|
"data-slot": "status-bar-spacer",
|
|
@@ -32267,7 +32277,7 @@ function pU({ className: e, ...t }) {
|
|
|
32267
32277
|
});
|
|
32268
32278
|
}
|
|
32269
32279
|
// src/ui/components/nm-switch/nm-switch.tsx
|
|
32270
|
-
function
|
|
32280
|
+
function hU({ className: e, ...t }) {
|
|
32271
32281
|
return /* @__PURE__ */ b(ae.Root, {
|
|
32272
32282
|
"data-slot": "switch",
|
|
32273
32283
|
className: F("nm-switch", e),
|
|
@@ -32279,13 +32289,13 @@ function mU({ className: e, ...t }) {
|
|
|
32279
32289
|
});
|
|
32280
32290
|
}
|
|
32281
32291
|
// src/ui/components/nm-table/nm-table.tsx
|
|
32282
|
-
var
|
|
32292
|
+
var gU = [
|
|
32283
32293
|
"default",
|
|
32284
32294
|
"striped",
|
|
32285
32295
|
"lined",
|
|
32286
32296
|
"plain"
|
|
32287
|
-
],
|
|
32288
|
-
function
|
|
32297
|
+
], _U = ["default", "sm"];
|
|
32298
|
+
function vU({ className: e, variant: t = "default", size: n = "default", stickyHeader: r, maxHeight: i, ...a }) {
|
|
32289
32299
|
return /* @__PURE__ */ b("div", {
|
|
32290
32300
|
"data-slot": "table-container",
|
|
32291
32301
|
"data-sticky": r ? "" : void 0,
|
|
@@ -32300,28 +32310,28 @@ function _U({ className: e, variant: t = "default", size: n = "default", stickyH
|
|
|
32300
32310
|
})
|
|
32301
32311
|
});
|
|
32302
32312
|
}
|
|
32303
|
-
function
|
|
32313
|
+
function yU({ className: e, ...t }) {
|
|
32304
32314
|
return /* @__PURE__ */ b("thead", {
|
|
32305
32315
|
"data-slot": "table-header",
|
|
32306
32316
|
className: F("nm-table__header", e),
|
|
32307
32317
|
...t
|
|
32308
32318
|
});
|
|
32309
32319
|
}
|
|
32310
|
-
function
|
|
32320
|
+
function bU({ className: e, ...t }) {
|
|
32311
32321
|
return /* @__PURE__ */ b("tbody", {
|
|
32312
32322
|
"data-slot": "table-body",
|
|
32313
32323
|
className: F("nm-table__body", e),
|
|
32314
32324
|
...t
|
|
32315
32325
|
});
|
|
32316
32326
|
}
|
|
32317
|
-
function
|
|
32327
|
+
function xU({ className: e, ...t }) {
|
|
32318
32328
|
return /* @__PURE__ */ b("tfoot", {
|
|
32319
32329
|
"data-slot": "table-footer",
|
|
32320
32330
|
className: F("nm-table__footer", e),
|
|
32321
32331
|
...t
|
|
32322
32332
|
});
|
|
32323
32333
|
}
|
|
32324
|
-
function
|
|
32334
|
+
function SU({ className: e, selected: t, disabled: n, ...r }) {
|
|
32325
32335
|
return /* @__PURE__ */ b("tr", {
|
|
32326
32336
|
"data-slot": "table-row",
|
|
32327
32337
|
"data-selected": t ? "" : void 0,
|
|
@@ -32333,7 +32343,7 @@ function xU({ className: e, selected: t, disabled: n, ...r }) {
|
|
|
32333
32343
|
...r
|
|
32334
32344
|
});
|
|
32335
32345
|
}
|
|
32336
|
-
function
|
|
32346
|
+
function CU({ className: e, textAlign: t = "start", sort: n, onSort: r, children: i, ...a }) {
|
|
32337
32347
|
return /* @__PURE__ */ b("th", {
|
|
32338
32348
|
"data-slot": "table-head",
|
|
32339
32349
|
"data-align": t,
|
|
@@ -32353,7 +32363,7 @@ function SU({ className: e, textAlign: t = "start", sort: n, onSort: r, children
|
|
|
32353
32363
|
}) : i
|
|
32354
32364
|
});
|
|
32355
32365
|
}
|
|
32356
|
-
function
|
|
32366
|
+
function wU({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
32357
32367
|
return /* @__PURE__ */ b("td", {
|
|
32358
32368
|
"data-slot": "table-cell",
|
|
32359
32369
|
"data-align": t,
|
|
@@ -32362,7 +32372,7 @@ function CU({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
|
32362
32372
|
...r
|
|
32363
32373
|
});
|
|
32364
32374
|
}
|
|
32365
|
-
function
|
|
32375
|
+
function TU({ className: e, ...t }) {
|
|
32366
32376
|
return /* @__PURE__ */ b("caption", {
|
|
32367
32377
|
"data-slot": "table-caption",
|
|
32368
32378
|
className: F("nm-table__caption", e),
|
|
@@ -32370,17 +32380,17 @@ function wU({ className: e, ...t }) {
|
|
|
32370
32380
|
});
|
|
32371
32381
|
}
|
|
32372
32382
|
// src/ui/config/nm-tabs.ts
|
|
32373
|
-
var
|
|
32383
|
+
var EU = {
|
|
32374
32384
|
root: "nm-tabs",
|
|
32375
32385
|
item: "nm-tabs__item"
|
|
32376
|
-
},
|
|
32377
|
-
function
|
|
32378
|
-
return
|
|
32379
|
-
className:
|
|
32386
|
+
}, DU = W("interface-nm-tabs");
|
|
32387
|
+
function OU(e) {
|
|
32388
|
+
return DU.debug("render", e.label, { value: e.value }), /* @__PURE__ */ b("div", {
|
|
32389
|
+
className: EU.root,
|
|
32380
32390
|
role: "tablist",
|
|
32381
32391
|
"aria-label": e.label,
|
|
32382
32392
|
children: e.items.map((t) => /* @__PURE__ */ b("button", {
|
|
32383
|
-
className:
|
|
32393
|
+
className: EU.item,
|
|
32384
32394
|
type: "button",
|
|
32385
32395
|
role: "tab",
|
|
32386
32396
|
"aria-selected": t.id === e.value,
|
|
@@ -32389,27 +32399,27 @@ function DU(e) {
|
|
|
32389
32399
|
}, t.id))
|
|
32390
32400
|
});
|
|
32391
32401
|
}
|
|
32392
|
-
function
|
|
32402
|
+
function kU(e) {
|
|
32393
32403
|
return /* @__PURE__ */ b(ch.Root, {
|
|
32394
32404
|
"data-slot": "tabs",
|
|
32395
32405
|
...e
|
|
32396
32406
|
});
|
|
32397
32407
|
}
|
|
32398
|
-
function
|
|
32408
|
+
function AU({ className: e, ...t }) {
|
|
32399
32409
|
return /* @__PURE__ */ b(ch.List, {
|
|
32400
32410
|
"data-slot": "tabs-list",
|
|
32401
|
-
className: F(
|
|
32411
|
+
className: F(EU.root, e),
|
|
32402
32412
|
...t
|
|
32403
32413
|
});
|
|
32404
32414
|
}
|
|
32405
|
-
function
|
|
32415
|
+
function jU({ className: e, ...t }) {
|
|
32406
32416
|
return /* @__PURE__ */ b(ch.Tab, {
|
|
32407
32417
|
"data-slot": "tabs-trigger",
|
|
32408
|
-
className: F(
|
|
32418
|
+
className: F(EU.item, e),
|
|
32409
32419
|
...t
|
|
32410
32420
|
});
|
|
32411
32421
|
}
|
|
32412
|
-
function
|
|
32422
|
+
function MU({ className: e, ...t }) {
|
|
32413
32423
|
return /* @__PURE__ */ b(ch.Panel, {
|
|
32414
32424
|
"data-slot": "tabs-content",
|
|
32415
32425
|
className: F("nm-tabs__panel", e),
|
|
@@ -32417,12 +32427,12 @@ function jU({ className: e, ...t }) {
|
|
|
32417
32427
|
});
|
|
32418
32428
|
}
|
|
32419
32429
|
// src/ui/components/nm-toggle/nm-toggle.tsx
|
|
32420
|
-
var
|
|
32430
|
+
var NU = ["default", "outline"], PU = [
|
|
32421
32431
|
"sm",
|
|
32422
32432
|
"default",
|
|
32423
32433
|
"lg"
|
|
32424
32434
|
];
|
|
32425
|
-
function
|
|
32435
|
+
function FU({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
32426
32436
|
return /* @__PURE__ */ b(vh, {
|
|
32427
32437
|
"data-slot": "toggle",
|
|
32428
32438
|
"data-variant": t,
|
|
@@ -32432,21 +32442,21 @@ function PU({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
32432
32442
|
});
|
|
32433
32443
|
}
|
|
32434
32444
|
// src/ui/config/nm-top-bar.ts
|
|
32435
|
-
var
|
|
32445
|
+
var IU = {
|
|
32436
32446
|
root: "nm-header",
|
|
32437
32447
|
end: "nm-header__end"
|
|
32438
|
-
},
|
|
32439
|
-
function
|
|
32440
|
-
return
|
|
32448
|
+
}, LU = W("interface-nm-top-bar");
|
|
32449
|
+
function RU(e) {
|
|
32450
|
+
return LU.debug("render", "top-bar", {
|
|
32441
32451
|
end: e.end != null,
|
|
32442
32452
|
menu: e.menu != null
|
|
32443
32453
|
}), /* @__PURE__ */ x("header", {
|
|
32444
|
-
className:
|
|
32454
|
+
className: IU.root,
|
|
32445
32455
|
children: [
|
|
32446
32456
|
e.menu,
|
|
32447
32457
|
e.children,
|
|
32448
32458
|
e.end == null ? null : /* @__PURE__ */ b("div", {
|
|
32449
|
-
className:
|
|
32459
|
+
className: IU.end,
|
|
32450
32460
|
"data-hidden-narrow": e.endHidden === !0 ? "true" : "false",
|
|
32451
32461
|
children: e.end
|
|
32452
32462
|
})
|
|
@@ -32454,12 +32464,12 @@ function LU(e) {
|
|
|
32454
32464
|
});
|
|
32455
32465
|
}
|
|
32456
32466
|
// src/ui/config/nordman-login.ts
|
|
32457
|
-
var
|
|
32467
|
+
var zU = {
|
|
32458
32468
|
signIn: "signIn",
|
|
32459
32469
|
register: "register",
|
|
32460
32470
|
forgot: "forgot",
|
|
32461
32471
|
reset: "reset"
|
|
32462
|
-
},
|
|
32472
|
+
}, BU = "nm-login-form", VU = {
|
|
32463
32473
|
username: "username",
|
|
32464
32474
|
password: "password",
|
|
32465
32475
|
displayName: "displayName",
|
|
@@ -32467,11 +32477,11 @@ var RU = {
|
|
|
32467
32477
|
registerPassword: "register-password",
|
|
32468
32478
|
confirmPassword: "confirm-password",
|
|
32469
32479
|
resetPassword: "reset-password"
|
|
32470
|
-
},
|
|
32480
|
+
}, HU = {
|
|
32471
32481
|
viewBox: "0 0 24 24",
|
|
32472
32482
|
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",
|
|
32473
32483
|
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"
|
|
32474
|
-
},
|
|
32484
|
+
}, UU = "nordman", WU = {
|
|
32475
32485
|
skip: "Hoppa till innehållet",
|
|
32476
32486
|
identifier: "Email",
|
|
32477
32487
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -32504,7 +32514,7 @@ var RU = {
|
|
|
32504
32514
|
registerEmailInUse: "Det finns redan ett konto med den här e-postadressen.",
|
|
32505
32515
|
registerDone: "Kolla mejlet för att bekräfta kontot.",
|
|
32506
32516
|
registerDoneReady: "Kontot är skapat. Logga in."
|
|
32507
|
-
},
|
|
32517
|
+
}, GU = {
|
|
32508
32518
|
skip: "Skip to content",
|
|
32509
32519
|
identifier: "Email",
|
|
32510
32520
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -32538,13 +32548,13 @@ var RU = {
|
|
|
32538
32548
|
registerDone: "Check your email to confirm the account.",
|
|
32539
32549
|
registerDoneReady: "The account is created. Log in."
|
|
32540
32550
|
};
|
|
32541
|
-
function
|
|
32542
|
-
return hV(e ?? fV()) ?
|
|
32551
|
+
function KU(e) {
|
|
32552
|
+
return hV(e ?? fV()) ? GU : WU;
|
|
32543
32553
|
}
|
|
32544
32554
|
var $ = new Proxy({}, { get(e, t) {
|
|
32545
|
-
return
|
|
32546
|
-
} }),
|
|
32547
|
-
function
|
|
32555
|
+
return KU()[t];
|
|
32556
|
+
} }), qU = W("interface-nordman-login-reveal");
|
|
32557
|
+
function JU(e) {
|
|
32548
32558
|
let t = e.revealed ? $.hidePassword : $.showPassword;
|
|
32549
32559
|
return /* @__PURE__ */ b("button", {
|
|
32550
32560
|
className: "nm-login__reveal",
|
|
@@ -32553,22 +32563,22 @@ function qU(e) {
|
|
|
32553
32563
|
"aria-pressed": e.revealed,
|
|
32554
32564
|
"data-testid": "cta-reveal-password",
|
|
32555
32565
|
onClick: () => {
|
|
32556
|
-
|
|
32566
|
+
qU.debug("toggle", e.revealed ? "hide" : "show"), e.onToggle();
|
|
32557
32567
|
},
|
|
32558
32568
|
children: /* @__PURE__ */ b("svg", {
|
|
32559
32569
|
className: "nm-login__reveal-icon",
|
|
32560
|
-
viewBox:
|
|
32570
|
+
viewBox: HU.viewBox,
|
|
32561
32571
|
"aria-hidden": "true",
|
|
32562
32572
|
focusable: "false",
|
|
32563
32573
|
children: /* @__PURE__ */ b("path", {
|
|
32564
|
-
d: e.revealed ?
|
|
32574
|
+
d: e.revealed ? HU.hide : HU.show,
|
|
32565
32575
|
fill: "currentColor"
|
|
32566
32576
|
})
|
|
32567
32577
|
})
|
|
32568
32578
|
});
|
|
32569
32579
|
}
|
|
32570
32580
|
// src/ui/components/nordman-login-field/nordman-login-field.tsx
|
|
32571
|
-
function
|
|
32581
|
+
function YU(e) {
|
|
32572
32582
|
let t = e.type === "password", [n, r] = p(!1), i = t && n ? "text" : e.type, a = /* @__PURE__ */ b("input", {
|
|
32573
32583
|
className: t ? "nm-login__control nm-login__control--secret" : "nm-login__control",
|
|
32574
32584
|
id: e.id,
|
|
@@ -32590,7 +32600,7 @@ function JU(e) {
|
|
|
32590
32600
|
}), e.accessory]
|
|
32591
32601
|
}), t ? /* @__PURE__ */ x("div", {
|
|
32592
32602
|
className: "nm-login__control-wrap",
|
|
32593
|
-
children: [a, /* @__PURE__ */ b(
|
|
32603
|
+
children: [a, /* @__PURE__ */ b(JU, {
|
|
32594
32604
|
revealed: n,
|
|
32595
32605
|
onToggle: () => r((e) => !e)
|
|
32596
32606
|
})]
|
|
@@ -32598,43 +32608,43 @@ function JU(e) {
|
|
|
32598
32608
|
});
|
|
32599
32609
|
}
|
|
32600
32610
|
// src/ui/components/nordman-login-register/nordman-login-register.tsx
|
|
32601
|
-
var
|
|
32602
|
-
function
|
|
32611
|
+
var XU = W("interface-nordman-login-register");
|
|
32612
|
+
function ZU(e) {
|
|
32603
32613
|
function t(t) {
|
|
32604
32614
|
t.preventDefault();
|
|
32605
32615
|
let n = new FormData(t.currentTarget);
|
|
32606
|
-
|
|
32607
|
-
username: String(n.get(
|
|
32608
|
-
displayName: String(n.get(
|
|
32609
|
-
password: String(n.get(
|
|
32616
|
+
XU.debug("submit", "start"), e.onRegister({
|
|
32617
|
+
username: String(n.get(VU.registerUsername) ?? ""),
|
|
32618
|
+
displayName: String(n.get(VU.displayName) ?? ""),
|
|
32619
|
+
password: String(n.get(VU.registerPassword) ?? "")
|
|
32610
32620
|
});
|
|
32611
32621
|
}
|
|
32612
32622
|
return /* @__PURE__ */ x("form", {
|
|
32613
32623
|
className: "nm-login__form",
|
|
32614
|
-
id:
|
|
32624
|
+
id: BU,
|
|
32615
32625
|
onSubmit: t,
|
|
32616
32626
|
children: [
|
|
32617
|
-
/* @__PURE__ */ b(
|
|
32618
|
-
id:
|
|
32619
|
-
name:
|
|
32627
|
+
/* @__PURE__ */ b(YU, {
|
|
32628
|
+
id: VU.registerUsername,
|
|
32629
|
+
name: VU.registerUsername,
|
|
32620
32630
|
label: $.identifier,
|
|
32621
32631
|
type: "email",
|
|
32622
32632
|
autoComplete: "email",
|
|
32623
32633
|
placeholder: $.identifierPlaceholder,
|
|
32624
32634
|
required: !0
|
|
32625
32635
|
}),
|
|
32626
|
-
/* @__PURE__ */ b(
|
|
32627
|
-
id:
|
|
32628
|
-
name:
|
|
32636
|
+
/* @__PURE__ */ b(YU, {
|
|
32637
|
+
id: VU.displayName,
|
|
32638
|
+
name: VU.displayName,
|
|
32629
32639
|
label: $.displayName,
|
|
32630
32640
|
type: "text",
|
|
32631
32641
|
autoComplete: "name",
|
|
32632
32642
|
minLength: 3,
|
|
32633
32643
|
required: !0
|
|
32634
32644
|
}),
|
|
32635
|
-
/* @__PURE__ */ b(
|
|
32636
|
-
id:
|
|
32637
|
-
name:
|
|
32645
|
+
/* @__PURE__ */ b(YU, {
|
|
32646
|
+
id: VU.registerPassword,
|
|
32647
|
+
name: VU.registerPassword,
|
|
32638
32648
|
label: $.password,
|
|
32639
32649
|
type: "password",
|
|
32640
32650
|
autoComplete: "new-password",
|
|
@@ -32657,32 +32667,32 @@ function XU(e) {
|
|
|
32657
32667
|
});
|
|
32658
32668
|
}
|
|
32659
32669
|
// src/ui/components/nordman-login-sign-in/nordman-login-sign-in.tsx
|
|
32660
|
-
var
|
|
32661
|
-
function
|
|
32670
|
+
var QU = W("interface-nordman-login-sign-in");
|
|
32671
|
+
function $U(e) {
|
|
32662
32672
|
function t(t) {
|
|
32663
32673
|
t.preventDefault();
|
|
32664
|
-
let n = new FormData(t.currentTarget), r = String(n.get(
|
|
32665
|
-
|
|
32674
|
+
let n = new FormData(t.currentTarget), r = String(n.get(VU.username) ?? ""), i = String(n.get(VU.password) ?? "");
|
|
32675
|
+
QU.debug("submit", "start"), e.onSignIn({
|
|
32666
32676
|
username: r,
|
|
32667
32677
|
password: i
|
|
32668
32678
|
});
|
|
32669
32679
|
}
|
|
32670
32680
|
return /* @__PURE__ */ x("form", {
|
|
32671
32681
|
className: "nm-login__form",
|
|
32672
|
-
id:
|
|
32682
|
+
id: BU,
|
|
32673
32683
|
onSubmit: t,
|
|
32674
32684
|
children: [
|
|
32675
|
-
/* @__PURE__ */ b(
|
|
32676
|
-
id:
|
|
32677
|
-
name:
|
|
32685
|
+
/* @__PURE__ */ b(YU, {
|
|
32686
|
+
id: VU.username,
|
|
32687
|
+
name: VU.username,
|
|
32678
32688
|
label: $.identifier,
|
|
32679
32689
|
type: "text",
|
|
32680
32690
|
autoComplete: "username",
|
|
32681
32691
|
placeholder: $.identifierPlaceholder
|
|
32682
32692
|
}),
|
|
32683
|
-
/* @__PURE__ */ b(
|
|
32684
|
-
id:
|
|
32685
|
-
name:
|
|
32693
|
+
/* @__PURE__ */ b(YU, {
|
|
32694
|
+
id: VU.password,
|
|
32695
|
+
name: VU.password,
|
|
32686
32696
|
label: $.password,
|
|
32687
32697
|
type: "password",
|
|
32688
32698
|
autoComplete: "current-password",
|
|
@@ -32712,12 +32722,12 @@ function QU(e) {
|
|
|
32712
32722
|
});
|
|
32713
32723
|
}
|
|
32714
32724
|
// src/ui/components/nordman-login-forgot/nordman-login-forgot.tsx
|
|
32715
|
-
var
|
|
32716
|
-
function
|
|
32725
|
+
var eW = W("interface-nordman-login-forgot");
|
|
32726
|
+
function tW(e) {
|
|
32717
32727
|
function t(t) {
|
|
32718
32728
|
t.preventDefault();
|
|
32719
|
-
let n = new FormData(t.currentTarget), r = String(n.get(
|
|
32720
|
-
|
|
32729
|
+
let n = new FormData(t.currentTarget), r = String(n.get(VU.username) ?? "");
|
|
32730
|
+
eW.debug("submit", "start"), e.onRequestReset({ identifier: r });
|
|
32721
32731
|
}
|
|
32722
32732
|
return e.sent ? /* @__PURE__ */ b("p", {
|
|
32723
32733
|
className: "nm-login__notice",
|
|
@@ -32725,11 +32735,11 @@ function eW(e) {
|
|
|
32725
32735
|
children: $.forgotSent
|
|
32726
32736
|
}) : /* @__PURE__ */ x("form", {
|
|
32727
32737
|
className: "nm-login__form",
|
|
32728
|
-
id:
|
|
32738
|
+
id: BU,
|
|
32729
32739
|
onSubmit: t,
|
|
32730
|
-
children: [/* @__PURE__ */ b(
|
|
32731
|
-
id:
|
|
32732
|
-
name:
|
|
32740
|
+
children: [/* @__PURE__ */ b(YU, {
|
|
32741
|
+
id: VU.username,
|
|
32742
|
+
name: VU.username,
|
|
32733
32743
|
label: $.identifier,
|
|
32734
32744
|
type: "text",
|
|
32735
32745
|
autoComplete: "username",
|
|
@@ -32749,7 +32759,7 @@ function eW(e) {
|
|
|
32749
32759
|
});
|
|
32750
32760
|
}
|
|
32751
32761
|
// src/ui/components/nordman-login-google/nordman-login-google.tsx
|
|
32752
|
-
function
|
|
32762
|
+
function nW(e) {
|
|
32753
32763
|
return mV(), /* @__PURE__ */ b("div", {
|
|
32754
32764
|
className: "nm-login__google-wrap",
|
|
32755
32765
|
children: /* @__PURE__ */ b(jC, {
|
|
@@ -32765,17 +32775,17 @@ function tW(e) {
|
|
|
32765
32775
|
});
|
|
32766
32776
|
}
|
|
32767
32777
|
// src/ui/components/nordman-login-reset/nordman-login-reset.tsx
|
|
32768
|
-
var
|
|
32769
|
-
function
|
|
32778
|
+
var rW = W("interface-nordman-login-reset");
|
|
32779
|
+
function iW(e) {
|
|
32770
32780
|
let [t, n] = p(!1);
|
|
32771
32781
|
function r(t) {
|
|
32772
32782
|
t.preventDefault();
|
|
32773
|
-
let r = new FormData(t.currentTarget), i = String(r.get(
|
|
32774
|
-
i === String(r.get(
|
|
32783
|
+
let r = new FormData(t.currentTarget), i = String(r.get(VU.resetPassword) ?? "");
|
|
32784
|
+
i === String(r.get(VU.confirmPassword) ?? "") ? (n(!1), rW.debug("submit", "start"), e.onResetPassword({ password: i })) : (rW.warn("submit", "mismatch"), n(!0));
|
|
32775
32785
|
}
|
|
32776
32786
|
return /* @__PURE__ */ x("form", {
|
|
32777
32787
|
className: "nm-login__form",
|
|
32778
|
-
id:
|
|
32788
|
+
id: BU,
|
|
32779
32789
|
onSubmit: r,
|
|
32780
32790
|
children: [
|
|
32781
32791
|
t ? /* @__PURE__ */ b("p", {
|
|
@@ -32783,18 +32793,18 @@ function rW(e) {
|
|
|
32783
32793
|
role: "alert",
|
|
32784
32794
|
children: $.mismatch
|
|
32785
32795
|
}) : null,
|
|
32786
|
-
/* @__PURE__ */ b(
|
|
32787
|
-
id:
|
|
32788
|
-
name:
|
|
32796
|
+
/* @__PURE__ */ b(YU, {
|
|
32797
|
+
id: VU.resetPassword,
|
|
32798
|
+
name: VU.resetPassword,
|
|
32789
32799
|
label: $.password,
|
|
32790
32800
|
type: "password",
|
|
32791
32801
|
autoComplete: "new-password",
|
|
32792
32802
|
placeholder: $.passwordPlaceholder,
|
|
32793
32803
|
minLength: e.passwordMin
|
|
32794
32804
|
}),
|
|
32795
|
-
/* @__PURE__ */ b(
|
|
32796
|
-
id:
|
|
32797
|
-
name:
|
|
32805
|
+
/* @__PURE__ */ b(YU, {
|
|
32806
|
+
id: VU.confirmPassword,
|
|
32807
|
+
name: VU.confirmPassword,
|
|
32798
32808
|
label: $.confirmPassword,
|
|
32799
32809
|
type: "password",
|
|
32800
32810
|
autoComplete: "new-password",
|
|
@@ -32816,12 +32826,12 @@ function rW(e) {
|
|
|
32816
32826
|
});
|
|
32817
32827
|
}
|
|
32818
32828
|
// src/ui/components/nordman-login-hero/nordman-login-hero.tsx
|
|
32819
|
-
var
|
|
32829
|
+
var aW = {
|
|
32820
32830
|
square: "glow",
|
|
32821
32831
|
triangle: "glow tri",
|
|
32822
32832
|
circle: "glow circle"
|
|
32823
32833
|
};
|
|
32824
|
-
function
|
|
32834
|
+
function oW(e) {
|
|
32825
32835
|
let t = f(null);
|
|
32826
32836
|
return c(() => {
|
|
32827
32837
|
let n = window.NordmanUI;
|
|
@@ -32833,51 +32843,51 @@ function aW(e) {
|
|
|
32833
32843
|
}), () => r.abort();
|
|
32834
32844
|
}, [e.shape]), /* @__PURE__ */ b("div", {
|
|
32835
32845
|
ref: t,
|
|
32836
|
-
className:
|
|
32846
|
+
className: aW[e.shape],
|
|
32837
32847
|
"aria-hidden": "true",
|
|
32838
32848
|
children: /* @__PURE__ */ b("i", {})
|
|
32839
32849
|
});
|
|
32840
32850
|
}
|
|
32841
32851
|
// src/ui/components/nordman-login/nordman-login.tsx
|
|
32842
|
-
function
|
|
32843
|
-
return e.view ===
|
|
32852
|
+
function sW(e) {
|
|
32853
|
+
return e.view === zU.register ? /* @__PURE__ */ b(ZU, {
|
|
32844
32854
|
pending: e.pending,
|
|
32845
32855
|
passwordMin: e.passwordMin,
|
|
32846
32856
|
onRegister: e.onRegister
|
|
32847
|
-
}) : e.view ===
|
|
32857
|
+
}) : e.view === zU.forgot ? /* @__PURE__ */ b(tW, {
|
|
32848
32858
|
pending: e.pending,
|
|
32849
32859
|
sent: e.sent,
|
|
32850
32860
|
onRequestReset: e.onRequestReset
|
|
32851
|
-
}) : e.view ===
|
|
32861
|
+
}) : e.view === zU.reset ? /* @__PURE__ */ b(iW, {
|
|
32852
32862
|
pending: e.pending,
|
|
32853
32863
|
passwordMin: e.passwordMin,
|
|
32854
32864
|
onResetPassword: e.onResetPassword
|
|
32855
|
-
}) : e.googleOnly ? /* @__PURE__ */ b(
|
|
32865
|
+
}) : e.googleOnly ? /* @__PURE__ */ b(nW, {
|
|
32856
32866
|
pending: e.pending,
|
|
32857
32867
|
onContinueWithGoogle: () => e.onContinueWithGoogle?.()
|
|
32858
|
-
}) : /* @__PURE__ */ b(
|
|
32868
|
+
}) : /* @__PURE__ */ b($U, {
|
|
32859
32869
|
pending: e.pending,
|
|
32860
32870
|
passwordMin: e.passwordMin,
|
|
32861
|
-
onForgot: () => e.onView(
|
|
32871
|
+
onForgot: () => e.onView(zU.forgot),
|
|
32862
32872
|
onSignIn: e.onSignIn
|
|
32863
32873
|
});
|
|
32864
32874
|
}
|
|
32865
|
-
function
|
|
32866
|
-
let t = e.view ===
|
|
32875
|
+
function cW(e) {
|
|
32876
|
+
let t = e.view === zU.register, n = e.view === zU.signIn;
|
|
32867
32877
|
return c(() => {
|
|
32868
|
-
document.documentElement.dataset.interface =
|
|
32878
|
+
document.documentElement.dataset.interface = UU;
|
|
32869
32879
|
}, []), /* @__PURE__ */ x("div", {
|
|
32870
32880
|
className: e.googleOnly ? "nm-login nm-login--google-only" : "nm-login",
|
|
32871
32881
|
"data-testid": "nordman-login",
|
|
32872
32882
|
children: [
|
|
32873
32883
|
/* @__PURE__ */ b("a", {
|
|
32874
32884
|
className: "nm-login__skip",
|
|
32875
|
-
href: `#${
|
|
32885
|
+
href: `#${BU}`,
|
|
32876
32886
|
children: $.skip
|
|
32877
32887
|
}),
|
|
32878
32888
|
/* @__PURE__ */ b("div", {
|
|
32879
32889
|
className: "nm-login__visual",
|
|
32880
|
-
children: /* @__PURE__ */ b(
|
|
32890
|
+
children: /* @__PURE__ */ b(oW, { shape: e.shape })
|
|
32881
32891
|
}),
|
|
32882
32892
|
/* @__PURE__ */ b("section", {
|
|
32883
32893
|
className: "nm-login__panel",
|
|
@@ -32893,11 +32903,11 @@ function sW(e) {
|
|
|
32893
32903
|
role: "alert",
|
|
32894
32904
|
children: e.error
|
|
32895
32905
|
}) : null,
|
|
32896
|
-
e.notice && e.view !==
|
|
32906
|
+
e.notice && e.view !== zU.forgot ? /* @__PURE__ */ b("p", {
|
|
32897
32907
|
className: "nm-login__notice",
|
|
32898
32908
|
children: e.notice
|
|
32899
32909
|
}) : null,
|
|
32900
|
-
e.children ??
|
|
32910
|
+
e.children ?? sW(e),
|
|
32901
32911
|
e.after,
|
|
32902
32912
|
e.children == null && e.hideSwitch !== !0 && !e.googleOnly ? /* @__PURE__ */ x("p", {
|
|
32903
32913
|
className: "nm-login__switch",
|
|
@@ -32907,7 +32917,7 @@ function sW(e) {
|
|
|
32907
32917
|
/* @__PURE__ */ b("button", {
|
|
32908
32918
|
className: "nm-login__switch-action",
|
|
32909
32919
|
type: "button",
|
|
32910
|
-
onClick: () => e.onView(t || !n ?
|
|
32920
|
+
onClick: () => e.onView(t || !n ? zU.signIn : zU.register),
|
|
32911
32921
|
children: n ? $.registerAction : $.signInAction
|
|
32912
32922
|
})
|
|
32913
32923
|
]
|
|
@@ -32919,9 +32929,9 @@ function sW(e) {
|
|
|
32919
32929
|
});
|
|
32920
32930
|
}
|
|
32921
32931
|
// src/ui/components/nordman-toggle/nordman-toggle.tsx
|
|
32922
|
-
var
|
|
32923
|
-
function
|
|
32924
|
-
return
|
|
32932
|
+
var lW = W("interface-nordman-toggle");
|
|
32933
|
+
function uW(e) {
|
|
32934
|
+
return lW.debug("render", e.active, { items: e.items.length }), /* @__PURE__ */ b("nav", {
|
|
32925
32935
|
className: "nm-toggle",
|
|
32926
32936
|
"data-testid": e.testId,
|
|
32927
32937
|
children: e.items.map((t) => /* @__PURE__ */ b("a", {
|
|
@@ -32934,12 +32944,12 @@ function lW(e) {
|
|
|
32934
32944
|
});
|
|
32935
32945
|
}
|
|
32936
32946
|
// src/ui/config/nm-app-panel.ts
|
|
32937
|
-
var
|
|
32947
|
+
var dW = {
|
|
32938
32948
|
code: "code",
|
|
32939
32949
|
preview: "preview",
|
|
32940
32950
|
environment: "environment",
|
|
32941
32951
|
machine: "machine"
|
|
32942
|
-
},
|
|
32952
|
+
}, fW = {
|
|
32943
32953
|
code: "/interface/app-panel/code.svg",
|
|
32944
32954
|
play: "/interface/app-panel/play.svg",
|
|
32945
32955
|
ellipsis: "/interface/app-panel/ellipsis.svg",
|
|
@@ -32948,7 +32958,7 @@ var uW = {
|
|
|
32948
32958
|
network: "/interface/app-panel/network.svg",
|
|
32949
32959
|
message: "/interface/app-panel/message.svg",
|
|
32950
32960
|
copy: "/interface/app-panel/copy.svg"
|
|
32951
|
-
},
|
|
32961
|
+
}, pW = {
|
|
32952
32962
|
root: "nm-app-panel",
|
|
32953
32963
|
body: "nm-app-panel__body",
|
|
32954
32964
|
canvas: "nm-app-panel__canvas",
|
|
@@ -32963,35 +32973,35 @@ var uW = {
|
|
|
32963
32973
|
blocked: "nm-app-panel__blocked",
|
|
32964
32974
|
blockedTitle: "nm-app-panel__blocked-title",
|
|
32965
32975
|
blockedBody: "nm-app-panel__blocked-body"
|
|
32966
|
-
},
|
|
32976
|
+
}, mW = {
|
|
32967
32977
|
root: "nm-logs-panel",
|
|
32968
32978
|
body: "nm-logs-panel__body"
|
|
32969
|
-
},
|
|
32979
|
+
}, hW = ["left", "right"], gW = [
|
|
32970
32980
|
.22,
|
|
32971
32981
|
1,
|
|
32972
32982
|
.36,
|
|
32973
32983
|
1
|
|
32974
|
-
],
|
|
32975
|
-
function _W() {
|
|
32976
|
-
return vW();
|
|
32977
|
-
}
|
|
32984
|
+
], _W = .25;
|
|
32978
32985
|
function vW() {
|
|
32979
|
-
|
|
32986
|
+
return yW();
|
|
32987
|
+
}
|
|
32988
|
+
function yW() {
|
|
32989
|
+
if (typeof document > "u") return _W;
|
|
32980
32990
|
let e = getComputedStyle(document.documentElement).getPropertyValue("--reveal").trim();
|
|
32981
|
-
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) :
|
|
32991
|
+
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) : _W;
|
|
32982
32992
|
}
|
|
32983
|
-
function
|
|
32993
|
+
function bW(e) {
|
|
32984
32994
|
return e ? { duration: 0 } : {
|
|
32985
|
-
duration:
|
|
32986
|
-
ease: [...
|
|
32995
|
+
duration: yW(),
|
|
32996
|
+
ease: [...gW]
|
|
32987
32997
|
};
|
|
32988
32998
|
}
|
|
32989
|
-
function
|
|
32999
|
+
function xW() {
|
|
32990
33000
|
let e = v();
|
|
32991
|
-
return d(() =>
|
|
33001
|
+
return d(() => bW(e === !0), [e]);
|
|
32992
33002
|
}
|
|
32993
33003
|
// src/ui/config/nm-header-icons.ts
|
|
32994
|
-
var
|
|
33004
|
+
var SW = [
|
|
32995
33005
|
"chat",
|
|
32996
33006
|
"bot",
|
|
32997
33007
|
"app",
|
|
@@ -33003,7 +33013,7 @@ var xW = [
|
|
|
33003
33013
|
"play",
|
|
33004
33014
|
"schedule",
|
|
33005
33015
|
"search"
|
|
33006
|
-
],
|
|
33016
|
+
], CW = {
|
|
33007
33017
|
chat: "/interface/header/chat.svg",
|
|
33008
33018
|
bot: "/interface/header/bot.svg",
|
|
33009
33019
|
app: "/interface/header/app.svg",
|
|
@@ -33015,16 +33025,16 @@ var xW = [
|
|
|
33015
33025
|
play: "/interface/header/play.svg",
|
|
33016
33026
|
schedule: "/interface/header/schedule.svg",
|
|
33017
33027
|
search: "/interface/header/search.svg"
|
|
33018
|
-
},
|
|
33028
|
+
}, wW = { root: "nm-icon-border" }, TW = /* @__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("."), EW = "--nm-radius-scale", DW = {
|
|
33019
33029
|
sm: 4,
|
|
33020
33030
|
md: 8,
|
|
33021
33031
|
lg: 12
|
|
33022
|
-
},
|
|
33032
|
+
}, OW = {
|
|
33023
33033
|
row: "--nm-space-4",
|
|
33024
33034
|
menu: "--nm-space-8",
|
|
33025
33035
|
field: "--nm-space-12",
|
|
33026
33036
|
composer: "--nm-space-24"
|
|
33027
|
-
},
|
|
33037
|
+
}, kW = {
|
|
33028
33038
|
sm: "--nm-radius-sm",
|
|
33029
33039
|
md: "--nm-radius-md",
|
|
33030
33040
|
lg: "--nm-radius-lg",
|
|
@@ -33033,17 +33043,17 @@ var xW = [
|
|
|
33033
33043
|
field: "--nm-field-radius",
|
|
33034
33044
|
menu: "--nm-menu-radius",
|
|
33035
33045
|
row: "--nm-row-radius"
|
|
33036
|
-
},
|
|
33046
|
+
}, AW = {
|
|
33037
33047
|
control: "calc(var(--nm-icon-control) / 2 * var(--nm-radius-scale))",
|
|
33038
33048
|
composer: "var(--nm-radius-lg)",
|
|
33039
33049
|
field: "var(--nm-control-r)",
|
|
33040
33050
|
menu: "var(--nm-radius-lg)",
|
|
33041
33051
|
row: "var(--nm-control-r)"
|
|
33042
|
-
},
|
|
33052
|
+
}, jW = {
|
|
33043
33053
|
sm: "calc(4px * var(--nm-radius-scale))",
|
|
33044
33054
|
md: "calc(8px * var(--nm-radius-scale))",
|
|
33045
33055
|
lg: "calc(12px * var(--nm-radius-scale))"
|
|
33046
|
-
},
|
|
33056
|
+
}, MW = {
|
|
33047
33057
|
pad: "--nm-menu-pad",
|
|
33048
33058
|
menuRadius: "--nm-control-menu-radius",
|
|
33049
33059
|
optionRadius: "--nm-control-option-radius",
|
|
@@ -33053,7 +33063,7 @@ var xW = [
|
|
|
33053
33063
|
panelItemRadius: "--nm-panel-item-radius",
|
|
33054
33064
|
rowInline: "--nm-row-inline",
|
|
33055
33065
|
rowInlineEnd: "--nm-row-inline-end"
|
|
33056
|
-
},
|
|
33066
|
+
}, NW = [
|
|
33057
33067
|
"plus",
|
|
33058
33068
|
"folder",
|
|
33059
33069
|
"chats",
|
|
@@ -33064,7 +33074,7 @@ var xW = [
|
|
|
33064
33074
|
"settings",
|
|
33065
33075
|
"search",
|
|
33066
33076
|
"plusSm"
|
|
33067
|
-
],
|
|
33077
|
+
], PW = {
|
|
33068
33078
|
plus: "/interface/rail/plus.svg",
|
|
33069
33079
|
folder: "/interface/rail/folder.svg",
|
|
33070
33080
|
chats: "/interface/rail/chats.svg",
|
|
@@ -33075,29 +33085,29 @@ var xW = [
|
|
|
33075
33085
|
settings: "/interface/rail/settings.svg",
|
|
33076
33086
|
search: "/interface/rail/search.svg",
|
|
33077
33087
|
plusSm: "/interface/rail/plus-sm.svg"
|
|
33078
|
-
},
|
|
33088
|
+
}, FW = 750, IW = 7e3, LW = 500;
|
|
33079
33089
|
// src/ui/lib/appearance/appearanceState.ts
|
|
33080
|
-
function
|
|
33090
|
+
function RW(e) {
|
|
33081
33091
|
return typeof e == "string" && Rz.includes(e);
|
|
33082
33092
|
}
|
|
33083
|
-
function
|
|
33093
|
+
function zW(e) {
|
|
33084
33094
|
return typeof e == "string" && Gz.includes(e);
|
|
33085
33095
|
}
|
|
33086
|
-
function
|
|
33096
|
+
function BW(e) {
|
|
33087
33097
|
return typeof e == "string" && Yz.includes(e);
|
|
33088
33098
|
}
|
|
33089
|
-
function
|
|
33099
|
+
function VW(e, t, n, r) {
|
|
33090
33100
|
let i = typeof e == "number" ? e : Number(e);
|
|
33091
33101
|
return Number.isFinite(i) ? Math.min(n, Math.max(t, Math.round(i))) : r;
|
|
33092
33102
|
}
|
|
33093
|
-
function
|
|
33103
|
+
function HW() {
|
|
33094
33104
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
33095
33105
|
}
|
|
33096
|
-
function
|
|
33106
|
+
function UW(e, t = HW()) {
|
|
33097
33107
|
return e === "light" ? "light" : e === "dark" || t ? "dark" : "light";
|
|
33098
33108
|
}
|
|
33099
|
-
function
|
|
33100
|
-
return
|
|
33109
|
+
function WW() {
|
|
33110
|
+
return QW({
|
|
33101
33111
|
mode: Qz.mode,
|
|
33102
33112
|
themePresetId: Qz.themePresetId,
|
|
33103
33113
|
accentPreset: Qz.accentPreset,
|
|
@@ -33113,98 +33123,98 @@ function UW() {
|
|
|
33113
33123
|
borders: Qz.borders
|
|
33114
33124
|
});
|
|
33115
33125
|
}
|
|
33116
|
-
function
|
|
33126
|
+
function GW(e, t) {
|
|
33117
33127
|
let n = eB(e) ?? eB(Qz.themePresetId), r = t === "dark" ? n.dark : n.light;
|
|
33118
33128
|
return {
|
|
33119
33129
|
backgroundHex: r.canvas,
|
|
33120
33130
|
foregroundHex: r.foreground
|
|
33121
33131
|
};
|
|
33122
33132
|
}
|
|
33123
|
-
var
|
|
33133
|
+
var KW = {
|
|
33124
33134
|
"#000000/#ffffff": "dark",
|
|
33125
33135
|
"#fcfaf6/#0a0a0a": "light"
|
|
33126
33136
|
};
|
|
33127
|
-
function
|
|
33128
|
-
let r =
|
|
33137
|
+
function qW(e, t, n) {
|
|
33138
|
+
let r = KW[`${t}/${n}`.toLowerCase()];
|
|
33129
33139
|
return e !== Qz.themePresetId || r == null ? {
|
|
33130
33140
|
backgroundHex: t,
|
|
33131
33141
|
foregroundHex: n
|
|
33132
|
-
} :
|
|
33142
|
+
} : GW(e, r);
|
|
33133
33143
|
}
|
|
33134
|
-
function
|
|
33135
|
-
let t =
|
|
33144
|
+
function JW(e) {
|
|
33145
|
+
let t = WW();
|
|
33136
33146
|
if (!e || typeof e != "object") return t;
|
|
33137
|
-
let n = e, r = typeof n.themePresetId == "string" && eB(n.themePresetId) ? n.themePresetId : t.themePresetId, i =
|
|
33147
|
+
let n = e, r = typeof n.themePresetId == "string" && eB(n.themePresetId) ? n.themePresetId : t.themePresetId, i = qW(r, wz(typeof n.backgroundHex == "string" ? n.backgroundHex : t.backgroundHex, t.backgroundHex), wz(typeof n.foregroundHex == "string" ? n.foregroundHex : t.foregroundHex, t.foregroundHex));
|
|
33138
33148
|
return {
|
|
33139
|
-
mode:
|
|
33149
|
+
mode: RW(n.mode) ? n.mode : t.mode,
|
|
33140
33150
|
themePresetId: r,
|
|
33141
|
-
accentPreset:
|
|
33151
|
+
accentPreset: BW(n.accentPreset) ? n.accentPreset : t.accentPreset,
|
|
33142
33152
|
customAccentHex: wz(typeof n.customAccentHex == "string" ? n.customAccentHex : t.customAccentHex, t.customAccentHex),
|
|
33143
33153
|
...i,
|
|
33144
|
-
uiFontSizePx:
|
|
33145
|
-
uiFontWeight: Math.round(
|
|
33146
|
-
uiIconSizePx:
|
|
33147
|
-
uiRadiusPercent:
|
|
33148
|
-
uiSpacePercent:
|
|
33149
|
-
contrast:
|
|
33150
|
-
borders:
|
|
33154
|
+
uiFontSizePx: VW(n.uiFontSizePx, zz.min, zz.max, t.uiFontSizePx),
|
|
33155
|
+
uiFontWeight: Math.round(VW(n.uiFontWeight, Vz.min, Vz.max, t.uiFontWeight) / 100) * 100,
|
|
33156
|
+
uiIconSizePx: VW(n.uiIconSizePx, Hz.min, Hz.max, t.uiIconSizePx),
|
|
33157
|
+
uiRadiusPercent: VW(n.uiRadiusPercent, Uz.min, Uz.max, t.uiRadiusPercent),
|
|
33158
|
+
uiSpacePercent: VW(n.uiSpacePercent, Wz.min, Wz.max, t.uiSpacePercent),
|
|
33159
|
+
contrast: VW(n.contrast, Jz.min, Jz.max, t.contrast),
|
|
33160
|
+
borders: zW(n.borders) ? n.borders : t.borders
|
|
33151
33161
|
};
|
|
33152
33162
|
}
|
|
33153
|
-
function
|
|
33163
|
+
function YW() {
|
|
33154
33164
|
if (typeof window > "u") return null;
|
|
33155
33165
|
try {
|
|
33156
33166
|
let e = window.localStorage.getItem(Iz);
|
|
33157
|
-
return e ?
|
|
33167
|
+
return e ? JW(JSON.parse(e)) : null;
|
|
33158
33168
|
} catch {
|
|
33159
33169
|
return null;
|
|
33160
33170
|
}
|
|
33161
33171
|
}
|
|
33162
|
-
function
|
|
33172
|
+
function XW(e) {
|
|
33163
33173
|
typeof window < "u" && window.localStorage.setItem(Iz, JSON.stringify(e));
|
|
33164
33174
|
}
|
|
33165
|
-
function
|
|
33175
|
+
function ZW(e, t) {
|
|
33166
33176
|
if (e.themePresetId === "custom") return e;
|
|
33167
|
-
let { backgroundHex: n, foregroundHex: r } =
|
|
33177
|
+
let { backgroundHex: n, foregroundHex: r } = GW(e.themePresetId, t), i = eB(e.themePresetId), a = {
|
|
33168
33178
|
...e,
|
|
33169
33179
|
backgroundHex: wz(n, e.backgroundHex),
|
|
33170
33180
|
foregroundHex: wz(r, e.foregroundHex)
|
|
33171
33181
|
};
|
|
33172
33182
|
return a.accentPreset === "default" && i && (a.customAccentHex = wz(i.swatch, a.customAccentHex)), a;
|
|
33173
33183
|
}
|
|
33174
|
-
function
|
|
33175
|
-
return
|
|
33184
|
+
function QW(e, t = HW()) {
|
|
33185
|
+
return ZW(e, UW(e.mode, t));
|
|
33176
33186
|
}
|
|
33177
33187
|
// src/ui/lib/appearance/markTokens.ts
|
|
33178
|
-
var
|
|
33188
|
+
var $W = 4.6, eG = .09, tG = 120, nG = {
|
|
33179
33189
|
min: .4,
|
|
33180
33190
|
max: .7
|
|
33181
|
-
},
|
|
33182
|
-
function
|
|
33191
|
+
}, rG = .02;
|
|
33192
|
+
function iG(e, t, n, r) {
|
|
33183
33193
|
let i = n[0] ?? "#000000", a = kz(i, "#FFFFFF") > kz(i, "#000000"), o = a ? 1 : -1;
|
|
33184
|
-
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o *
|
|
33194
|
+
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o * rG) {
|
|
33185
33195
|
let i = jz(e, t, r);
|
|
33186
|
-
if (n.every((e) => kz(i, e) >=
|
|
33196
|
+
if (n.every((e) => kz(i, e) >= $W)) return i;
|
|
33187
33197
|
}
|
|
33188
33198
|
return r;
|
|
33189
33199
|
}
|
|
33190
|
-
function
|
|
33191
|
-
let r = Dz(t, n,
|
|
33200
|
+
function aG(e, t, n) {
|
|
33201
|
+
let r = Dz(t, n, eG), { hue: i, saturation: a } = Az(e), o = Math.min(nG.max, Math.max(nG.min, a)), s = (e) => iG((i + e) % 360, o, [t, r], n);
|
|
33192
33202
|
return {
|
|
33193
33203
|
"--nm-mark-primary": s(0),
|
|
33194
|
-
"--nm-mark-secondary": s(
|
|
33204
|
+
"--nm-mark-secondary": s(tG),
|
|
33195
33205
|
"--nm-mark-tertiary": s(240),
|
|
33196
33206
|
"--nm-mark-surface": r
|
|
33197
33207
|
};
|
|
33198
33208
|
}
|
|
33199
33209
|
// src/ui/lib/appearance/deriveTokens.ts
|
|
33200
|
-
function
|
|
33210
|
+
function oG(e) {
|
|
33201
33211
|
return e.accentPreset === "custom" || e.accentPreset === "default" && e.themePresetId === "custom" ? wz(e.customAccentHex, "#D2BB9C") : e.accentPreset === "default" ? eB(e.themePresetId)?.swatch ?? Xz[0].swatch : Zz[e.accentPreset];
|
|
33202
33212
|
}
|
|
33203
|
-
function
|
|
33213
|
+
function sG(e, t) {
|
|
33204
33214
|
let n = e / Jz.max, r = t === "dark" ? .06 : .05;
|
|
33205
33215
|
return r + n * ((t === "dark" ? .42 : .38) - r);
|
|
33206
33216
|
}
|
|
33207
|
-
function
|
|
33217
|
+
function cG(e) {
|
|
33208
33218
|
let t = `${e}px`;
|
|
33209
33219
|
return {
|
|
33210
33220
|
"--nm-icon-button": t,
|
|
@@ -33212,18 +33222,18 @@ function sG(e) {
|
|
|
33212
33222
|
"--nm-rail-icon": t
|
|
33213
33223
|
};
|
|
33214
33224
|
}
|
|
33215
|
-
function
|
|
33225
|
+
function lG(e, t) {
|
|
33216
33226
|
let n = t + 16;
|
|
33217
33227
|
return { "--nm-ui-chip-min-height": `${Math.max(n, e + 16)}px` };
|
|
33218
33228
|
}
|
|
33219
|
-
function
|
|
33229
|
+
function uG(e) {
|
|
33220
33230
|
let t = e / Uz.default;
|
|
33221
|
-
return { [
|
|
33231
|
+
return { [EW]: String(t) };
|
|
33222
33232
|
}
|
|
33223
|
-
function
|
|
33233
|
+
function dG(e) {
|
|
33224
33234
|
return { "--nm-space-scale": String(e / Wz.default) };
|
|
33225
33235
|
}
|
|
33226
|
-
function
|
|
33236
|
+
function fG(e) {
|
|
33227
33237
|
let t = (t) => String(Math.min(Vz.max, Math.max(Vz.min, e + t)));
|
|
33228
33238
|
return {
|
|
33229
33239
|
"--nm-weight-light": t(-100),
|
|
@@ -33233,7 +33243,7 @@ function dG(e) {
|
|
|
33233
33243
|
"--nm-weight-bold": t(300)
|
|
33234
33244
|
};
|
|
33235
33245
|
}
|
|
33236
|
-
function
|
|
33246
|
+
function pG(e) {
|
|
33237
33247
|
let t = e / zz.default, n = `${e}px`, r = `${Math.max(zz.min, e - 2)}px`;
|
|
33238
33248
|
return {
|
|
33239
33249
|
"--nm-type-body": n,
|
|
@@ -33249,7 +33259,7 @@ function fG(e) {
|
|
|
33249
33259
|
"--font-size-sm": r
|
|
33250
33260
|
};
|
|
33251
33261
|
}
|
|
33252
|
-
function
|
|
33262
|
+
function mG(e, t) {
|
|
33253
33263
|
let n = Tz(t);
|
|
33254
33264
|
return {
|
|
33255
33265
|
"--text-primary": e["--nm-fg-rgb"],
|
|
@@ -33277,12 +33287,12 @@ function pG(e, t) {
|
|
|
33277
33287
|
"--nordman-accent": n
|
|
33278
33288
|
};
|
|
33279
33289
|
}
|
|
33280
|
-
function
|
|
33290
|
+
function hG(e, t, n, r) {
|
|
33281
33291
|
let i = Fz[t];
|
|
33282
33292
|
return e.themePresetId === Xz[0].id && e.contrast === Jz.default && n.toLowerCase() === i.canvas && r.toLowerCase() === i.fg;
|
|
33283
33293
|
}
|
|
33284
|
-
function
|
|
33285
|
-
let n = wz(e.backgroundHex, "#000000"), r = wz(e.foregroundHex, "#ffffff"), i =
|
|
33294
|
+
function gG(e, t) {
|
|
33295
|
+
let n = wz(e.backgroundHex, "#000000"), r = wz(e.foregroundHex, "#ffffff"), i = oG(e), a = sG(e.contrast, t), o = hG(e, t, n, r) ? Fz[t] : null, s = o?.panel ?? Dz(n, r, a), c = o?.raised ?? Dz(n, r, a * .72), l = o?.inset ?? Dz(n, r, a * .85), u = o?.line ?? Dz(n, r, Math.min(.55, a + .12)), d = o?.lineStrong ?? Dz(n, r, Math.min(.6, a + .17)), f = o?.stroke ?? Dz(n, r, Math.min(.65, a + .22)), p = o?.muted ?? Dz(r, n, .22), m = o?.subtle ?? Dz(r, n, .38), h = {
|
|
33286
33296
|
"--nm-canvas": n,
|
|
33287
33297
|
"--nm-fg": r,
|
|
33288
33298
|
"--nm-fg-muted": p,
|
|
@@ -33307,36 +33317,36 @@ function hG(e, t) {
|
|
|
33307
33317
|
"--nm-accent": i,
|
|
33308
33318
|
"--nm-accent-rgb": Tz(i),
|
|
33309
33319
|
...Pz(i, n, r),
|
|
33310
|
-
...
|
|
33311
|
-
...
|
|
33312
|
-
...
|
|
33313
|
-
...
|
|
33314
|
-
...
|
|
33315
|
-
...
|
|
33316
|
-
...
|
|
33320
|
+
...aG(i, n, r),
|
|
33321
|
+
...pG(e.uiFontSizePx),
|
|
33322
|
+
...fG(e.uiFontWeight),
|
|
33323
|
+
...cG(e.uiIconSizePx),
|
|
33324
|
+
...lG(e.uiFontSizePx, e.uiIconSizePx),
|
|
33325
|
+
...uG(e.uiRadiusPercent),
|
|
33326
|
+
...dG(e.uiSpacePercent),
|
|
33317
33327
|
"--nm-border-strength": Kz[e.borders]
|
|
33318
33328
|
};
|
|
33319
33329
|
return {
|
|
33320
33330
|
...h,
|
|
33321
|
-
...
|
|
33331
|
+
...mG(h, i)
|
|
33322
33332
|
};
|
|
33323
33333
|
}
|
|
33324
|
-
function
|
|
33334
|
+
function _G(e) {
|
|
33325
33335
|
return e;
|
|
33326
33336
|
}
|
|
33327
33337
|
// src/ui/lib/appearance/applyAppearance.ts
|
|
33328
|
-
var
|
|
33329
|
-
function
|
|
33338
|
+
var vG = W("interface-appearance-apply");
|
|
33339
|
+
function yG() {
|
|
33330
33340
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
33331
33341
|
}
|
|
33332
|
-
function
|
|
33342
|
+
function bG(e = document.documentElement) {
|
|
33333
33343
|
$z.forEach((t) => {
|
|
33334
33344
|
e.style.removeProperty(t);
|
|
33335
33345
|
}), e.removeAttribute(qz);
|
|
33336
33346
|
}
|
|
33337
|
-
function
|
|
33338
|
-
let n =
|
|
33339
|
-
return
|
|
33347
|
+
function xG(e, t = document.documentElement) {
|
|
33348
|
+
let n = UW(e.mode, yG()), r = gG(e, n);
|
|
33349
|
+
return vG.debug("apply", "appearance", {
|
|
33340
33350
|
mode: e.mode,
|
|
33341
33351
|
scheme: n,
|
|
33342
33352
|
theme: e.themePresetId
|
|
@@ -33345,7 +33355,7 @@ function bG(e, t = document.documentElement) {
|
|
|
33345
33355
|
}), t.setAttribute(qz, e.borders), typeof window < "u" && window.dispatchEvent(new CustomEvent(Lz)), { scheme: n };
|
|
33346
33356
|
}
|
|
33347
33357
|
// src/ui/lib/appearance/readLayoutMetrics.ts
|
|
33348
|
-
function
|
|
33358
|
+
function SG(e, t, n) {
|
|
33349
33359
|
let r = getComputedStyle(e).getPropertyValue(t).trim();
|
|
33350
33360
|
if (!r) return n;
|
|
33351
33361
|
if (r.endsWith("px")) {
|
|
@@ -33358,7 +33368,7 @@ function xG(e, t, n) {
|
|
|
33358
33368
|
}
|
|
33359
33369
|
return n;
|
|
33360
33370
|
}
|
|
33361
|
-
function
|
|
33362
|
-
return
|
|
33371
|
+
function CG(e = document.documentElement) {
|
|
33372
|
+
return SG(e, "--nm-icon-control", 34) + SG(e, "--nm-space-2", 2);
|
|
33363
33373
|
}
|
|
33364
|
-
export { Zz as NM_ACCENT_HEX, Yz as NM_ACCENT_PRESETS, uw as NM_AI_BADGE_TONES, K as NM_AI_CLASSES, sw as NM_AI_STATUS, Lz as NM_APPEARANCE_APPLIED_EVENT, Jz as NM_APPEARANCE_CONTRAST, $z as NM_APPEARANCE_CSS_VARS, Qz as NM_APPEARANCE_DEFAULTS, Rz as NM_APPEARANCE_MODES, Iz as NM_APPEARANCE_STORAGE_KEY, fW as NM_APP_PANEL_CLASSES, dW as NM_APP_PANEL_ICON_SRC, uW as NM_APP_PANEL_TABS, HE as NM_AVATAR_SIZES, YE as NM_BAR_OVERFLOW_CLASSES, XE as NM_BAR_OVERFLOW_TEST_IDS, qz as NM_BORDER_ATTRIBUTE, Kz as NM_BORDER_STRENGTH, Gz as NM_BORDER_STYLES, EC as NM_BUTTON_CLASSES, TC as NM_BUTTON_SIZES, wC as NM_BUTTON_TONES, xj as NM_CARD_SIZES, bj as NM_CARD_VARIANTS, PC as NM_CHATBOX_ACTION_CLASS, Lj as NM_CHATBOX_CLASSES, Nj as NM_CHATBOX_COMPOSER_ACTION_ICONS, Pj as NM_CHATBOX_DURING_RUN_MENU_ICONS, Aj as NM_CHATBOX_ICON_IDS, Mj as NM_CHATBOX_ICON_SRC, jj as NM_CHATBOX_INTEGRATION_ICON_PATH, Fj as NM_CHATBOX_LUCIDE_MAP, Rj as NM_CHATBOX_MENU_MODE, SC as NM_CHIP_SIZES, xC as NM_CHIP_TONES, qC as NM_CODE_BLOCK_SIZES, KC as NM_CODE_BLOCK_VARIANTS, nw as NM_CODE_LANGUAGES, Xj as NM_COLLECTION_ACTIONS, Yj as NM_COLLECTION_CLASSES, Gj as NM_COLLECTION_FILES_REFRESH_MS, Jj as NM_COLLECTION_ICON_SRC, Zj as NM_COLLECTION_MEDIA_KINDS, Kj as NM_COLLECTION_SCROLL_IDLE_MS, qj as NM_COLLECTION_VIEWS, Q as NM_COMPOSER_CLASSES, gz as NM_COMPOSER_COPY, _z as NM_COMPOSER_INLINE_MARK, vz as NM_COMPOSER_SHAPE_ATTRIBUTE, jW as NM_CONTROL_MENU_CSS_VARS, OC as NM_CONTROL_SHAPES, mW as NM_DRAWER_SIDES, pw as NM_DROPDOWN_ALIGN, q as NM_DROPDOWN_CLASSES, gw as NM_DROPDOWN_GAP_PX, hw as NM_DROPDOWN_REVEAL, _w as NM_DROPDOWN_SCROLL_IDLE_MS, mw as NM_DROPDOWN_SIDE, fw as NM_DROPDOWN_TONE, dw as NM_DROPDOWN_TRIGGER, wW as NM_EXTENDED_ICON_IDS, _M as NM_FIELD_CLASSES, hM as NM_FIELD_KINDS, gM as NM_FIELD_LAYOUT, Bz as NM_FONT_WEIGHTS, xW as NM_HEADER_ICON_IDS, SW as NM_HEADER_ICON_SRC, og as NM_ICONS, CW as NM_ICON_BORDER_CLASSES, NC as NM_ICON_BUTTON_CLASSES, MC as NM_ICON_BUTTON_TONES, ag as NM_ICON_IDS, QB as NM_LIST_ITEM_CLASSES, pW as NM_LOGS_PANEL_CLASSES, cC as NM_LUCIDE_EXTENDED, lC as NM_LUCIDE_FILLED_IDS, J as NM_MESSAGE_CLASSES, AT as NM_MESSAGE_ICON_GLYPH, kT as NM_MESSAGE_ICON_IDS, jT as NM_MESSAGE_ICON_SRC, sV as NM_MODAL_ACTION, lV as NM_MODAL_CLASSES, oV as NM_MODAL_FOOTER, cV as NM_MODAL_SCROLL_IDLE_MS, aV as NM_MODAL_SIZE, iV as NM_MODAL_TITLE, $V as NM_PANEL_BAR_CLASSES, QV as NM_PANEL_BAR_LAYOUT, zV as NM_PANEL_MEASURES, RV as NM_PANEL_VARIANTS, aH as NM_QUESTIONNAIRE_CLASSES, iH as NM_QUESTIONNAIRE_COPY, nH as NM_QUESTIONNAIRE_SHORTCUTS, rH as NM_QUESTIONNAIRE_VARIANTS, OW as NM_RADIUS_CSS_VARS, kW as NM_RADIUS_FORMULAS, AW as NM_RADIUS_PRIMITIVE_FORMULAS, EW as NM_RADIUS_PRIMITIVE_PX, TW as NM_RADIUS_SCALE_VAR, DW as NM_RADIUS_SEMANTIC_OFFSET_SPACE, FW as NM_RAIL_FACE_HOLD_MS, MW as NM_RAIL_ICON_IDS, NW as NM_RAIL_ICON_SRC, PW as NM_RAIL_SCROLL_IDLE_MS, IW as NM_RAIL_SEARCH_DEBOUNCE_MS, JV as NM_SEGMENTED_CLASSES, qV as NM_SEGMENTED_TONES, kC as NM_SHAPE_ATTRIBUTE, yH as NM_SIDEBAR_BUTTON_SIZES, bH as NM_SIDEBAR_BUTTON_VARIANTS, _H as NM_SIDEBAR_COLLAPSIBLE, CH as NM_SIDEBAR_MOBILE_QUERY, SH as NM_SIDEBAR_PEEK_LEAVE_MS, xH as NM_SIDEBAR_SHORTCUT, hH as NM_SIDEBAR_SIDES, vH as NM_SIDEBAR_STATES, gH as NM_SIDEBAR_VARIANTS, TN as NM_SIDE_PANEL_KINDS, EN as NM_SIDE_PANEL_SIZES, Fz as NM_SITE_PALETTE, aM as NM_SMALL_ICON_BUTTON_CLASSES, iM as NM_SMALL_ICON_BUTTON_TONES, gU as NM_TABLE_SIZES, hU as NM_TABLE_VARIANTS, TU as NM_TABS_CLASSES, Xz as NM_THEME_PRESETS, NU as NM_TOGGLE_SIZES, MU as NM_TOGGLE_VARIANTS, lw as NM_TOOL_STATES, FU as NM_TOP_BAR_CLASSES, NT as NM_TRACE_GLYPH_PATHS, MT as NM_TRACE_STATUSES, zz as NM_UI_FONT_SIZE_PX, Vz as NM_UI_FONT_WEIGHT, Hz as NM_UI_ICON_SIZE_PX, Uz as NM_UI_RADIUS_PERCENT, Wz as NM_UI_SPACE_PERCENT, RC as NORDMAN_CHROME_ICONS, LC as NORDMAN_CHROME_ICON_IDS, BC as NORDMAN_ICON_BUTTON_VARIANTS, BU as NORDMAN_LOGIN_FIELDS, zU as NORDMAN_LOGIN_FORM_ID, HU as NORDMAN_LOGIN_INTERFACE, VU as NORDMAN_LOGIN_REVEAL, RU as NORDMAN_LOGIN_VIEWS, kE as NmAlert, ME as NmAlertAction, jE as NmAlertDescription, NE as NmAlertDialog, BE as NmAlertDialogAction, VE as NmAlertDialogCancel, FE as NmAlertDialogContent, zE as NmAlertDialogDescription, LE as NmAlertDialogFooter, IE as NmAlertDialogHeader, RE as NmAlertDialogTitle, PE as NmAlertDialogTrigger, AE as NmAlertTitle, UE as NmAvatar, KE as NmAvatarBadge, GE as NmAvatarFallback, qE as NmAvatarGroup, JE as NmAvatarGroupCount, WE as NmAvatarImage, nE as NmBadge, nD as NmBarOverflow, rD as NmBrandLogo, iD as NmBreadcrumb, uD as NmBreadcrumbEllipsis, oD as NmBreadcrumbItem, sD as NmBreadcrumbLink, aD as NmBreadcrumbList, cD as NmBreadcrumbPage, lD as NmBreadcrumbSeparator, eE as NmBubble, jC as NmButton, fD as NmButtonGroup, pD as NmButtonGroupSeparator, mD as NmButtonGroupText, yj as NmCalendar, Sj as NmCard, Ej as NmCardAction, Dj as NmCardContent, Tj as NmCardDescription, Oj as NmCardFooter, Cj as NmCardHeader, kj as NmCardMedia, wj as NmCardTitle, sE as NmChainOfThought, OE as NmChat, Bj as NmChatbox, Ij as NmChatboxIcon, Vj as NmCheckbox, cE as NmCheckpoint, CC as NmChip, YC as NmCodeBlock, QC as NmCodeBlockActions, aw as NmCodeBlockContent, $C as NmCodeBlockCopyButton, ow as NmCodeBlockFooter, XC as NmCodeBlockHeader, ew as NmCodeBlockLine, ZC as NmCodeBlockTitle, Hj as NmCollapsible, Wj as NmCollapsibleContent, Uj as NmCollapsibleTrigger, rM as NmCollectionBar, mM as NmCollectionGrid, $N as NmCollectionQuery, nP as NmCollectionRowMenu, iP as NmCollectionTable, dM as NmCollectionTileActions, eM as NmCollectionTitle, CN as NmColorPicker, xN as NmColorSwatch, vM as NmCombobox, bM as NmComboboxContent, CM as NmComboboxEmpty, wM as NmComboboxGroup, yM as NmComboboxInput, SM as NmComboboxItem, TM as NmComboboxLabel, xM as NmComboboxList, EM as NmComboboxSeparator, nz as NmCommand, mz as NmCommandDescription, rz as NmCommandDialog, sz as NmCommandEmpty, az as NmCommandFilters, lz as NmCommandGroup, hz as NmCommandIcon, iz as NmCommandInput, dz as NmCommandItem, fz as NmCommandItemActions, oz as NmCommandList, cz as NmCommandLoading, uz as NmCommandSeparator, pz as NmCommandShortcut, fB as NmComposer, lE as NmConfirmation, dE as NmContext, pB as NmContextMenu, hB as NmContextMenuContent, mB as NmContextMenuTrigger, yB as NmDatePicker, bB as NmDateRangePicker, wB as NmDateTimePicker, qR as NmDialog, QR as NmDialogBody, YR as NmDialogClose, XR as NmDialogContent, tz as NmDialogDescription, $R as NmDialogFooter, ZR as NmDialogHeader, ez as NmDialogTitle, JR as NmDialogTrigger, TB as NmDrawer, DB as NmDrawerClose, OB as NmDrawerContent, MB as NmDrawerDescription, AB as NmDrawerFooter, kB as NmDrawerHeader, jB as NmDrawerTitle, EB as NmDrawerTrigger, wT as NmDropdown, Kw as NmDropdownBranch, nT as NmDropdownMenu, dT as NmDropdownMenuCheckboxItem, iT as NmDropdownMenuContent, _T as NmDropdownMenuDot, aT as NmDropdownMenuGroup, sT as NmDropdownMenuItem, yT as NmDropdownMenuItems, oT as NmDropdownMenuLabel, fT as NmDropdownMenuRadioGroup, pT as NmDropdownMenuRadioItem, mT as NmDropdownMenuSeparator, hT as NmDropdownMenuShortcut, cT as NmDropdownMenuSub, uT as NmDropdownMenuSubContent, lT as NmDropdownMenuSubTrigger, gT as NmDropdownMenuText, rT as NmDropdownMenuTrigger, eT as NmDropdownOptions, Uw as NmDropdownPanel, XN as NmField, RB as NmFieldContent, VB as NmFieldDescription, HB as NmFieldError, IB as NmFieldGroup, zB as NmFieldLabel, FB as NmFieldLegend, UB as NmFieldSeparator, PB as NmFieldSet, BB as NmFieldTitle, mE as NmFileTree, LB as NmFormField, WB as NmGallery, GB as NmGalleryItem, TT as NmHoverCard, DT as NmHoverCardContent, ET as NmHoverCardTrigger, G as NmIcon, $j as NmIconBorder, hE as NmInlineCitation, mN as NmInput, KB as NmInputGroup, qB as NmInputGroupAddon, YB as NmInputGroupInput, JB as NmInputGroupText, rE as NmItem, XB as NmKbd, ZB as NmKbdGroup, NB as NmLabel, eV as NmListItem, hC as NmLucide, tV as NmMenubar, nV as NmMenubarMenu, rV as NmMenubarTrigger, aE as NmMessage, FT as NmMessageActions, RT as NmMessageMeta, NV as NmModal, PV as NmModalAction, gE as NmModelSelector, xB as NmMonthPicker, FV as NmNativeSelect, LV as NmNativeSelectOptGroup, IV as NmNativeSelectOption, BV as NmPanel, WV as NmPanelActions, tH as NmPanelBar, GV as NmPanelContent, UV as NmPanelDescription, KV as NmPanelFooter, VV as NmPanelHeader, HV as NmPanelTitle, _E as NmPlan, hN as NmPopover, _N as NmPopoverContent, bN as NmPopoverDescription, vN as NmPopoverHeader, yN as NmPopoverTitle, gN as NmPopoverTrigger, OT as NmProgress, wN as NmProse, lH as NmQuestionnaire, vE as NmQueue, uH as NmRadioGroup, dH as NmRadioGroupItem, mH as NmRailIcon, oE as NmReasoning, kN as NmResizeHandle, ZV as NmSegmented, DM as NmSelect, AM as NmSelectContent, MM as NmSelectGroup, jM as NmSelectItem, NM as NmSelectLabel, PM as NmSelectSeparator, OM as NmSelectTrigger, kM as NmSelectValue, dD as NmSeparator, iE as NmSheet, BN as NmSidePanel, VN as NmSidePanelBody, HN as NmSidePanelKinds, IH as NmSidebar, eU as NmSidebarBar, sU as NmSidebarChevron, WH as NmSidebarContent, cU as NmSidebarDropdownMenu, HH as NmSidebarFooter, GH as NmSidebarGroup, qH as NmSidebarGroupAction, JH as NmSidebarGroupContent, KH as NmSidebarGroupLabel, VH as NmSidebarHeader, BH as NmSidebarInput, zH as NmSidebarInset, YH as NmSidebarMenu, QH as NmSidebarMenuAction, $H as NmSidebarMenuActions, tU as NmSidebarMenuBadge, ZH as NmSidebarMenuButton, XH as NmSidebarMenuItem, rU as NmSidebarMenuSkeleton, iU as NmSidebarMenuSub, oU as NmSidebarMenuSubButton, aU as NmSidebarMenuSubItem, nU as NmSidebarMenuText, FH as NmSidebarProvider, RH as NmSidebarRail, UH as NmSidebarSeparator, LH as NmSidebarTrigger, wH as NmSkeleton, lU as NmSlider, cM as NmSmallIconButton, bE as NmSources, uU as NmSpinner, SE as NmStackTrace, dU as NmStatusBar, fU as NmStatusBarItem, pU as NmStatusBarSpacer, EE as NmSubagent, DE as NmSuggestions, mU as NmSwitch, _U as NmTable, yU as NmTableBody, wU as NmTableCaption, CU as NmTableCell, bU as NmTableFooter, SU as NmTableHead, vU as NmTableHeader, xU as NmTableRow, DU as NmTabs, jU as NmTabsContent, kU as NmTabsList, OU as NmTabsRoot, AU as NmTabsTrigger, yE as NmTask, xE as NmTerminal, CE as NmTestResults, IT as NmTextShimmer, KN as NmTextarea, qN as NmTextareaPanel, CB as NmTimePicker, PU as NmToggle, TE as NmTool, AN as NmToolbar, PN as NmToolbarButton, jN as NmToolbarGroup, FN as NmToolbarInput, MN as NmToolbarSeparator, NN as NmToolbarSpacer, EH as NmTooltip, OH as NmTooltipContent, TH as NmTooltipProvider, DH as NmTooltipTrigger, LU as NmTopBar, HT as NmTrace, ZT as NmTraceBadge, XT as NmTraceBadges, UT as NmTraceCollapsible, GT as NmTraceCollapsibleContent, WT as NmTraceCollapsibleTrigger, YT as NmTraceDescription, VT as NmTraceGlyph, qT as NmTraceIcon, KT as NmTraceLine, JT as NmTraceTitle, IN as NmWorkspace, RN as NmWorkspaceBody, zN as NmWorkspaceFooter, LN as NmWorkspaceMain, GC as NordmanIconButton, sW as NordmanLogin, JU as NordmanLoginField, eW as NordmanLoginForgot, tW as NordmanLoginGoogle, aW as NordmanLoginHero, XU as NordmanLoginRegister, rW as NordmanLoginReset, qU as NordmanLoginReveal, QU as NordmanLoginSignIn, lW as NordmanToggle, bG as applyAppearanceState, ZW as applyThemePresetPalette, yG as clearAppliedAppearance, kz as contrastRatio, UW as createDefaultAppearanceState, tB as defaultThemePresetId, hG as deriveAppearanceTokens, bw as dropdownBranchPath, Vw as dropdownPortalHost, qw as findDropdownItem, eB as findThemePreset, pC as hasNmLucide, Az as hexToHsl, Tz as hexToRgbTriplet, jz as hslToHex, Cz as isHexColor, vw as isNmDropdownSeparator, fC as isNmIconAnimated, XW as mergeThemePresetColors, Dz as mixHex, Sw as nextExpandedBranches, cw as nmAiTraceStatus, DC as nmButtonClassName, IC as nmChatboxActionButtonClassName, F as nmClass, yw as nmDropdownSeparator, Iw as nmDropdownViewportMaxHeight, yW as nmFade, tw as nmHighlightedLines, FC as nmIconButtonClassName, _W as nmSettleSeconds, wz as normalizeHexColor, xw as openDropdownBranch, WW as paletteForPreset, qW as parseAppearanceState, Lw as placeNmDropdownPanel, Rw as placeNmDropdownRowPanel, zw as placeNmDropdownSubpanel, xG as readCssLengthPx, SG as readNmRailRowStridePx, JW as readStoredAppearanceState, aG as resolveAccentHex, HW as resolveAppearanceScheme, gG as themeModeFromAppearance, eD as useBarOverflow, bW as useNmFade, MH as useOptionalSidebar, OV as useReportSaveDirty, NH as useSidebar, jH as useSidebarVisible, kV as useTrackSave, YW as writeStoredAppearanceState };
|
|
33374
|
+
export { Zz as NM_ACCENT_HEX, Yz as NM_ACCENT_PRESETS, uw as NM_AI_BADGE_TONES, K as NM_AI_CLASSES, sw as NM_AI_STATUS, Lz as NM_APPEARANCE_APPLIED_EVENT, Jz as NM_APPEARANCE_CONTRAST, $z as NM_APPEARANCE_CSS_VARS, Qz as NM_APPEARANCE_DEFAULTS, Rz as NM_APPEARANCE_MODES, Iz as NM_APPEARANCE_STORAGE_KEY, pW as NM_APP_PANEL_CLASSES, fW as NM_APP_PANEL_ICON_SRC, dW as NM_APP_PANEL_TABS, HE as NM_AVATAR_SIZES, YE as NM_BAR_OVERFLOW_CLASSES, XE as NM_BAR_OVERFLOW_TEST_IDS, qz as NM_BORDER_ATTRIBUTE, Kz as NM_BORDER_STRENGTH, Gz as NM_BORDER_STYLES, EC as NM_BUTTON_CLASSES, TC as NM_BUTTON_SIZES, wC as NM_BUTTON_TONES, xj as NM_CARD_SIZES, bj as NM_CARD_VARIANTS, PC as NM_CHATBOX_ACTION_CLASS, Lj as NM_CHATBOX_CLASSES, Nj as NM_CHATBOX_COMPOSER_ACTION_ICONS, Pj as NM_CHATBOX_DURING_RUN_MENU_ICONS, Aj as NM_CHATBOX_ICON_IDS, Mj as NM_CHATBOX_ICON_SRC, jj as NM_CHATBOX_INTEGRATION_ICON_PATH, Fj as NM_CHATBOX_LUCIDE_MAP, Rj as NM_CHATBOX_MENU_MODE, SC as NM_CHIP_SIZES, xC as NM_CHIP_TONES, qC as NM_CODE_BLOCK_SIZES, KC as NM_CODE_BLOCK_VARIANTS, nw as NM_CODE_LANGUAGES, Xj as NM_COLLECTION_ACTIONS, Yj as NM_COLLECTION_CLASSES, Gj as NM_COLLECTION_FILES_REFRESH_MS, Jj as NM_COLLECTION_ICON_SRC, Zj as NM_COLLECTION_MEDIA_KINDS, Kj as NM_COLLECTION_SCROLL_IDLE_MS, qj as NM_COLLECTION_VIEWS, Q as NM_COMPOSER_CLASSES, gz as NM_COMPOSER_COPY, _z as NM_COMPOSER_INLINE_MARK, vz as NM_COMPOSER_SHAPE_ATTRIBUTE, MW as NM_CONTROL_MENU_CSS_VARS, OC as NM_CONTROL_SHAPES, hW as NM_DRAWER_SIDES, pw as NM_DROPDOWN_ALIGN, q as NM_DROPDOWN_CLASSES, gw as NM_DROPDOWN_GAP_PX, hw as NM_DROPDOWN_REVEAL, _w as NM_DROPDOWN_SCROLL_IDLE_MS, mw as NM_DROPDOWN_SIDE, fw as NM_DROPDOWN_TONE, dw as NM_DROPDOWN_TRIGGER, TW as NM_EXTENDED_ICON_IDS, _M as NM_FIELD_CLASSES, hM as NM_FIELD_KINDS, gM as NM_FIELD_LAYOUT, Bz as NM_FONT_WEIGHTS, SW as NM_HEADER_ICON_IDS, CW as NM_HEADER_ICON_SRC, og as NM_ICONS, wW as NM_ICON_BORDER_CLASSES, NC as NM_ICON_BUTTON_CLASSES, MC as NM_ICON_BUTTON_TONES, ag as NM_ICON_IDS, QB as NM_LIST_ITEM_CLASSES, mW as NM_LOGS_PANEL_CLASSES, cC as NM_LUCIDE_EXTENDED, lC as NM_LUCIDE_FILLED_IDS, J as NM_MESSAGE_CLASSES, AT as NM_MESSAGE_ICON_GLYPH, kT as NM_MESSAGE_ICON_IDS, jT as NM_MESSAGE_ICON_SRC, sV as NM_MODAL_ACTION, lV as NM_MODAL_CLASSES, oV as NM_MODAL_FOOTER, cV as NM_MODAL_SCROLL_IDLE_MS, aV as NM_MODAL_SIZE, iV as NM_MODAL_TITLE, $V as NM_PANEL_BAR_CLASSES, QV as NM_PANEL_BAR_LAYOUT, zV as NM_PANEL_MEASURES, RV as NM_PANEL_VARIANTS, aH as NM_QUESTIONNAIRE_CLASSES, iH as NM_QUESTIONNAIRE_COPY, nH as NM_QUESTIONNAIRE_SHORTCUTS, rH as NM_QUESTIONNAIRE_VARIANTS, kW as NM_RADIUS_CSS_VARS, AW as NM_RADIUS_FORMULAS, jW as NM_RADIUS_PRIMITIVE_FORMULAS, DW as NM_RADIUS_PRIMITIVE_PX, EW as NM_RADIUS_SCALE_VAR, OW as NM_RADIUS_SEMANTIC_OFFSET_SPACE, IW as NM_RAIL_FACE_HOLD_MS, NW as NM_RAIL_ICON_IDS, PW as NM_RAIL_ICON_SRC, FW as NM_RAIL_SCROLL_IDLE_MS, LW as NM_RAIL_SEARCH_DEBOUNCE_MS, JV as NM_SEGMENTED_CLASSES, qV as NM_SEGMENTED_TONES, kC as NM_SHAPE_ATTRIBUTE, yH as NM_SIDEBAR_BUTTON_SIZES, bH as NM_SIDEBAR_BUTTON_VARIANTS, _H as NM_SIDEBAR_COLLAPSIBLE, CH as NM_SIDEBAR_MOBILE_QUERY, SH as NM_SIDEBAR_PEEK_LEAVE_MS, xH as NM_SIDEBAR_SHORTCUT, hH as NM_SIDEBAR_SIDES, vH as NM_SIDEBAR_STATES, gH as NM_SIDEBAR_VARIANTS, TN as NM_SIDE_PANEL_KINDS, EN as NM_SIDE_PANEL_SIZES, Fz as NM_SITE_PALETTE, aM as NM_SMALL_ICON_BUTTON_CLASSES, iM as NM_SMALL_ICON_BUTTON_TONES, _U as NM_TABLE_SIZES, gU as NM_TABLE_VARIANTS, EU as NM_TABS_CLASSES, Xz as NM_THEME_PRESETS, PU as NM_TOGGLE_SIZES, NU as NM_TOGGLE_VARIANTS, lw as NM_TOOL_STATES, IU as NM_TOP_BAR_CLASSES, NT as NM_TRACE_GLYPH_PATHS, MT as NM_TRACE_STATUSES, zz as NM_UI_FONT_SIZE_PX, Vz as NM_UI_FONT_WEIGHT, Hz as NM_UI_ICON_SIZE_PX, Uz as NM_UI_RADIUS_PERCENT, Wz as NM_UI_SPACE_PERCENT, RC as NORDMAN_CHROME_ICONS, LC as NORDMAN_CHROME_ICON_IDS, BC as NORDMAN_ICON_BUTTON_VARIANTS, VU as NORDMAN_LOGIN_FIELDS, BU as NORDMAN_LOGIN_FORM_ID, UU as NORDMAN_LOGIN_INTERFACE, HU as NORDMAN_LOGIN_REVEAL, zU as NORDMAN_LOGIN_VIEWS, kE as NmAlert, ME as NmAlertAction, jE as NmAlertDescription, NE as NmAlertDialog, BE as NmAlertDialogAction, VE as NmAlertDialogCancel, FE as NmAlertDialogContent, zE as NmAlertDialogDescription, LE as NmAlertDialogFooter, IE as NmAlertDialogHeader, RE as NmAlertDialogTitle, PE as NmAlertDialogTrigger, AE as NmAlertTitle, UE as NmAvatar, KE as NmAvatarBadge, GE as NmAvatarFallback, qE as NmAvatarGroup, JE as NmAvatarGroupCount, WE as NmAvatarImage, nE as NmBadge, nD as NmBarOverflow, rD as NmBrandLogo, iD as NmBreadcrumb, uD as NmBreadcrumbEllipsis, oD as NmBreadcrumbItem, sD as NmBreadcrumbLink, aD as NmBreadcrumbList, cD as NmBreadcrumbPage, lD as NmBreadcrumbSeparator, eE as NmBubble, jC as NmButton, fD as NmButtonGroup, pD as NmButtonGroupSeparator, mD as NmButtonGroupText, yj as NmCalendar, Sj as NmCard, Ej as NmCardAction, Dj as NmCardContent, Tj as NmCardDescription, Oj as NmCardFooter, Cj as NmCardHeader, kj as NmCardMedia, wj as NmCardTitle, sE as NmChainOfThought, OE as NmChat, Bj as NmChatbox, Ij as NmChatboxIcon, Vj as NmCheckbox, cE as NmCheckpoint, CC as NmChip, YC as NmCodeBlock, QC as NmCodeBlockActions, aw as NmCodeBlockContent, $C as NmCodeBlockCopyButton, ow as NmCodeBlockFooter, XC as NmCodeBlockHeader, ew as NmCodeBlockLine, ZC as NmCodeBlockTitle, Hj as NmCollapsible, Wj as NmCollapsibleContent, Uj as NmCollapsibleTrigger, rM as NmCollectionBar, mM as NmCollectionGrid, $N as NmCollectionQuery, nP as NmCollectionRowMenu, iP as NmCollectionTable, dM as NmCollectionTileActions, eM as NmCollectionTitle, CN as NmColorPicker, xN as NmColorSwatch, vM as NmCombobox, bM as NmComboboxContent, CM as NmComboboxEmpty, wM as NmComboboxGroup, yM as NmComboboxInput, SM as NmComboboxItem, TM as NmComboboxLabel, xM as NmComboboxList, EM as NmComboboxSeparator, nz as NmCommand, mz as NmCommandDescription, rz as NmCommandDialog, sz as NmCommandEmpty, az as NmCommandFilters, lz as NmCommandGroup, hz as NmCommandIcon, iz as NmCommandInput, dz as NmCommandItem, fz as NmCommandItemActions, oz as NmCommandList, cz as NmCommandLoading, uz as NmCommandSeparator, pz as NmCommandShortcut, fB as NmComposer, lE as NmConfirmation, dE as NmContext, pB as NmContextMenu, hB as NmContextMenuContent, mB as NmContextMenuTrigger, yB as NmDatePicker, bB as NmDateRangePicker, wB as NmDateTimePicker, qR as NmDialog, QR as NmDialogBody, YR as NmDialogClose, XR as NmDialogContent, tz as NmDialogDescription, $R as NmDialogFooter, ZR as NmDialogHeader, ez as NmDialogTitle, JR as NmDialogTrigger, TB as NmDrawer, DB as NmDrawerClose, OB as NmDrawerContent, MB as NmDrawerDescription, AB as NmDrawerFooter, kB as NmDrawerHeader, jB as NmDrawerTitle, EB as NmDrawerTrigger, wT as NmDropdown, Kw as NmDropdownBranch, nT as NmDropdownMenu, dT as NmDropdownMenuCheckboxItem, iT as NmDropdownMenuContent, _T as NmDropdownMenuDot, aT as NmDropdownMenuGroup, sT as NmDropdownMenuItem, yT as NmDropdownMenuItems, oT as NmDropdownMenuLabel, fT as NmDropdownMenuRadioGroup, pT as NmDropdownMenuRadioItem, mT as NmDropdownMenuSeparator, hT as NmDropdownMenuShortcut, cT as NmDropdownMenuSub, uT as NmDropdownMenuSubContent, lT as NmDropdownMenuSubTrigger, gT as NmDropdownMenuText, rT as NmDropdownMenuTrigger, eT as NmDropdownOptions, Uw as NmDropdownPanel, XN as NmField, RB as NmFieldContent, VB as NmFieldDescription, HB as NmFieldError, IB as NmFieldGroup, zB as NmFieldLabel, FB as NmFieldLegend, UB as NmFieldSeparator, PB as NmFieldSet, BB as NmFieldTitle, mE as NmFileTree, LB as NmFormField, WB as NmGallery, GB as NmGalleryItem, TT as NmHoverCard, DT as NmHoverCardContent, ET as NmHoverCardTrigger, G as NmIcon, $j as NmIconBorder, hE as NmInlineCitation, mN as NmInput, KB as NmInputGroup, qB as NmInputGroupAddon, YB as NmInputGroupInput, JB as NmInputGroupText, rE as NmItem, XB as NmKbd, ZB as NmKbdGroup, NB as NmLabel, eV as NmListItem, hC as NmLucide, tV as NmMenubar, nV as NmMenubarMenu, rV as NmMenubarTrigger, aE as NmMessage, FT as NmMessageActions, RT as NmMessageMeta, NV as NmModal, PV as NmModalAction, gE as NmModelSelector, xB as NmMonthPicker, FV as NmNativeSelect, LV as NmNativeSelectOptGroup, IV as NmNativeSelectOption, BV as NmPanel, WV as NmPanelActions, tH as NmPanelBar, GV as NmPanelContent, UV as NmPanelDescription, KV as NmPanelFooter, VV as NmPanelHeader, HV as NmPanelTitle, _E as NmPlan, hN as NmPopover, _N as NmPopoverContent, bN as NmPopoverDescription, vN as NmPopoverHeader, yN as NmPopoverTitle, gN as NmPopoverTrigger, OT as NmProgress, wN as NmProse, lH as NmQuestionnaire, vE as NmQueue, uH as NmRadioGroup, dH as NmRadioGroupItem, mH as NmRailIcon, oE as NmReasoning, kN as NmResizeHandle, ZV as NmSegmented, DM as NmSelect, AM as NmSelectContent, MM as NmSelectGroup, jM as NmSelectItem, NM as NmSelectLabel, PM as NmSelectSeparator, OM as NmSelectTrigger, kM as NmSelectValue, dD as NmSeparator, iE as NmSheet, BN as NmSidePanel, VN as NmSidePanelBody, HN as NmSidePanelKinds, IH as NmSidebar, tU as NmSidebarBar, cU as NmSidebarChevron, GH as NmSidebarContent, lU as NmSidebarDropdownMenu, UH as NmSidebarFooter, KH as NmSidebarGroup, JH as NmSidebarGroupAction, YH as NmSidebarGroupContent, qH as NmSidebarGroupLabel, HH as NmSidebarHeader, VH as NmSidebarInput, BH as NmSidebarInset, XH as NmSidebarMenu, $H as NmSidebarMenuAction, eU as NmSidebarMenuActions, nU as NmSidebarMenuBadge, QH as NmSidebarMenuButton, ZH as NmSidebarMenuItem, iU as NmSidebarMenuSkeleton, aU as NmSidebarMenuSub, sU as NmSidebarMenuSubButton, oU as NmSidebarMenuSubItem, rU as NmSidebarMenuText, FH as NmSidebarProvider, zH as NmSidebarRail, WH as NmSidebarSeparator, LH as NmSidebarTrigger, RH as NmSidebarTriggerSpace, wH as NmSkeleton, uU as NmSlider, cM as NmSmallIconButton, bE as NmSources, dU as NmSpinner, SE as NmStackTrace, fU as NmStatusBar, pU as NmStatusBarItem, mU as NmStatusBarSpacer, EE as NmSubagent, DE as NmSuggestions, hU as NmSwitch, vU as NmTable, bU as NmTableBody, TU as NmTableCaption, wU as NmTableCell, xU as NmTableFooter, CU as NmTableHead, yU as NmTableHeader, SU as NmTableRow, OU as NmTabs, MU as NmTabsContent, AU as NmTabsList, kU as NmTabsRoot, jU as NmTabsTrigger, yE as NmTask, xE as NmTerminal, CE as NmTestResults, IT as NmTextShimmer, KN as NmTextarea, qN as NmTextareaPanel, CB as NmTimePicker, FU as NmToggle, TE as NmTool, AN as NmToolbar, PN as NmToolbarButton, jN as NmToolbarGroup, FN as NmToolbarInput, MN as NmToolbarSeparator, NN as NmToolbarSpacer, EH as NmTooltip, OH as NmTooltipContent, TH as NmTooltipProvider, DH as NmTooltipTrigger, RU as NmTopBar, HT as NmTrace, ZT as NmTraceBadge, XT as NmTraceBadges, UT as NmTraceCollapsible, GT as NmTraceCollapsibleContent, WT as NmTraceCollapsibleTrigger, YT as NmTraceDescription, VT as NmTraceGlyph, qT as NmTraceIcon, KT as NmTraceLine, JT as NmTraceTitle, IN as NmWorkspace, RN as NmWorkspaceBody, zN as NmWorkspaceFooter, LN as NmWorkspaceMain, GC as NordmanIconButton, cW as NordmanLogin, YU as NordmanLoginField, tW as NordmanLoginForgot, nW as NordmanLoginGoogle, oW as NordmanLoginHero, ZU as NordmanLoginRegister, iW as NordmanLoginReset, JU as NordmanLoginReveal, $U as NordmanLoginSignIn, uW as NordmanToggle, xG as applyAppearanceState, QW as applyThemePresetPalette, bG as clearAppliedAppearance, kz as contrastRatio, WW as createDefaultAppearanceState, tB as defaultThemePresetId, gG as deriveAppearanceTokens, bw as dropdownBranchPath, Vw as dropdownPortalHost, qw as findDropdownItem, eB as findThemePreset, pC as hasNmLucide, Az as hexToHsl, Tz as hexToRgbTriplet, jz as hslToHex, Cz as isHexColor, vw as isNmDropdownSeparator, fC as isNmIconAnimated, ZW as mergeThemePresetColors, Dz as mixHex, Sw as nextExpandedBranches, cw as nmAiTraceStatus, DC as nmButtonClassName, IC as nmChatboxActionButtonClassName, F as nmClass, yw as nmDropdownSeparator, Iw as nmDropdownViewportMaxHeight, bW as nmFade, tw as nmHighlightedLines, FC as nmIconButtonClassName, vW as nmSettleSeconds, wz as normalizeHexColor, xw as openDropdownBranch, GW as paletteForPreset, JW as parseAppearanceState, Lw as placeNmDropdownPanel, Rw as placeNmDropdownRowPanel, zw as placeNmDropdownSubpanel, SG as readCssLengthPx, CG as readNmRailRowStridePx, YW as readStoredAppearanceState, oG as resolveAccentHex, UW as resolveAppearanceScheme, _G as themeModeFromAppearance, eD as useBarOverflow, xW as useNmFade, MH as useOptionalSidebar, OV as useReportSaveDirty, NH as useSidebar, jH as useSidebarVisible, kV as useTrackSave, XW as writeStoredAppearanceState };
|