@kingsimba/nc-ui 0.1.48 → 0.1.50

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.
@@ -1,32 +1,275 @@
1
- import { jsx as o, Fragment as A, jsxs as g } from "react/jsx-runtime";
2
- import { useMemo as S, useState as $, useEffect as V, useCallback as I, useRef as M } from "react";
3
- import { t as z, H as P, _ as X } from "./index-BZJJwrMY.js";
4
- function Y(r, a, n, e) {
1
+ import { jsx as o, Fragment as U, jsxs as b } from "react/jsx-runtime";
2
+ import { useMemo as v, useState as z, useEffect as F, useCallback as X, useRef as y } from "react";
3
+ import { P as j, t as O, H as Y, _ as q } from "./index-BZJJwrMY.js";
4
+ const c = j;
5
+ function K() {
6
+ const t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", a = {
7
+ pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
8
+ lookbehind: !0,
9
+ alias: "punctuation"
10
+ }, n = {
11
+ variable: /^\$\(|^`|\)$|`$/
12
+ }, e = {
13
+ bash: a,
14
+ environment: {
15
+ pattern: RegExp("\\$" + t),
16
+ alias: "constant"
17
+ },
18
+ variable: [
19
+ // arithmetic expansion
20
+ {
21
+ pattern: /\$?\(\([\s\S]+?\)\)/,
22
+ greedy: !0,
23
+ inside: {
24
+ // highlight $(( and )) as variables when preceded by a $ sign
25
+ variable: [
26
+ {
27
+ pattern: /(^\$\(\([\s\S]+)\)\)/,
28
+ lookbehind: !0
29
+ },
30
+ /^\$\(\(/
31
+ ],
32
+ number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
33
+ // https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
34
+ operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
35
+ punctuation: /\(\(?|\)\)?|,|;/
36
+ }
37
+ },
38
+ // command substitution
39
+ {
40
+ pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
41
+ greedy: !0,
42
+ inside: n
43
+ },
44
+ // brace expansion
45
+ {
46
+ pattern: /\$\{[^}]+\}/,
47
+ greedy: !0,
48
+ inside: {
49
+ operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
50
+ punctuation: /[\[\]]/,
51
+ environment: {
52
+ pattern: RegExp("(\\{)" + t),
53
+ lookbehind: !0,
54
+ alias: "constant"
55
+ }
56
+ }
57
+ },
58
+ /\$(?:\w+|[#?*!@$])/
59
+ ],
60
+ // escape sequences from echo and printf's manuals, and escaped quotes
61
+ entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
62
+ }, r = {
63
+ shebang: {
64
+ pattern: /^#!\s*\/.*/,
65
+ alias: "important"
66
+ },
67
+ comment: {
68
+ pattern: /(^|[^"{\\$])#.*/,
69
+ lookbehind: !0
70
+ },
71
+ "function-name": [
72
+ {
73
+ // function foo { | function foo() {
74
+ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
75
+ lookbehind: !0,
76
+ alias: "function"
77
+ },
78
+ {
79
+ // foo() {
80
+ pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
81
+ alias: "function"
82
+ }
83
+ ],
84
+ "for-or-select": {
85
+ pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
86
+ alias: "variable",
87
+ lookbehind: !0
88
+ },
89
+ "assign-left": {
90
+ pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
91
+ inside: {
92
+ environment: {
93
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
94
+ lookbehind: !0,
95
+ alias: "constant"
96
+ }
97
+ },
98
+ alias: "variable",
99
+ lookbehind: !0
100
+ },
101
+ parameter: {
102
+ pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
103
+ alias: "variable",
104
+ lookbehind: !0
105
+ },
106
+ string: [
107
+ // here-document, unquoted tag
108
+ {
109
+ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
110
+ lookbehind: !0,
111
+ greedy: !0,
112
+ inside: e
113
+ },
114
+ // here-document with a quoted tag (no expansion, so no “inside”)
115
+ {
116
+ pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
117
+ lookbehind: !0,
118
+ greedy: !0,
119
+ inside: {
120
+ bash: a
121
+ }
122
+ },
123
+ // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
124
+ {
125
+ pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
126
+ lookbehind: !0,
127
+ greedy: !0,
128
+ inside: e
129
+ },
130
+ // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
131
+ {
132
+ pattern: /(^|[^$\\])'[^']*'/,
133
+ lookbehind: !0,
134
+ greedy: !0
135
+ },
136
+ // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
137
+ {
138
+ pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
139
+ greedy: !0,
140
+ inside: {
141
+ entity: e.entity
142
+ }
143
+ }
144
+ ],
145
+ environment: {
146
+ pattern: RegExp("\\$?" + t),
147
+ alias: "constant"
148
+ },
149
+ variable: e.variable,
150
+ function: {
151
+ pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
152
+ lookbehind: !0
153
+ },
154
+ keyword: {
155
+ pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
156
+ lookbehind: !0
157
+ },
158
+ // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
159
+ builtin: {
160
+ pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
161
+ lookbehind: !0,
162
+ // aliased to keep builtins distinguishable from strings
163
+ alias: "class-name"
164
+ },
165
+ boolean: {
166
+ pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
167
+ lookbehind: !0
168
+ },
169
+ "file-descriptor": {
170
+ pattern: /\B&\d\b/,
171
+ alias: "important"
172
+ },
173
+ operator: {
174
+ pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
175
+ inside: {
176
+ "file-descriptor": {
177
+ pattern: /^\d/,
178
+ alias: "important"
179
+ }
180
+ }
181
+ },
182
+ punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
183
+ number: {
184
+ pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
185
+ lookbehind: !0
186
+ }
187
+ };
188
+ a.inside = r;
189
+ const m = n, s = [
190
+ "comment",
191
+ "function-name",
192
+ "for-or-select",
193
+ "assign-left",
194
+ "parameter",
195
+ "string",
196
+ "environment",
197
+ "function",
198
+ "keyword",
199
+ "builtin",
200
+ "boolean",
201
+ "file-descriptor",
202
+ "operator",
203
+ "punctuation",
204
+ "number"
205
+ ];
206
+ for (const i of s)
207
+ m[i] = r[i];
208
+ return r;
209
+ }
210
+ const R = /\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;
211
+ c.languages.bash || (c.languages.bash = K());
212
+ c.languages.protobuf || (c.languages.protobuf = c.languages.extend("clike", {
213
+ "class-name": [
214
+ {
215
+ pattern: /(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,
216
+ lookbehind: !0
217
+ },
218
+ {
219
+ pattern: /(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,
220
+ lookbehind: !0
221
+ }
222
+ ],
223
+ keyword: /\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,
224
+ function: /\b[a-z_]\w*(?=\s*\()/i
225
+ }), c.languages.insertBefore("protobuf", "operator", {
226
+ map: {
227
+ pattern: /\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,
228
+ alias: "class-name",
229
+ inside: {
230
+ punctuation: /[<>.,]/,
231
+ builtin: R
232
+ }
233
+ },
234
+ builtin: R,
235
+ "positional-class-name": {
236
+ pattern: /(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,
237
+ alias: "class-name",
238
+ inside: {
239
+ punctuation: /\./
240
+ }
241
+ },
242
+ annotation: {
243
+ pattern: /(\[\s*)[a-z_]\w*(?=\s*=)/i,
244
+ lookbehind: !0
245
+ }
246
+ }));
247
+ function W(t, a, n, e) {
5
248
  if (!a)
6
- return { content: r, column: e + r.length };
7
- let t = e;
8
- return { content: Array.from(r, (c, s) => {
9
- if (c === " ")
10
- return t++, /* @__PURE__ */ o("span", { className: "nc-code-editor-whitespace", "aria-hidden": "true", children: "·" }, s);
11
- if (c === " ") {
12
- const l = n - t % n;
13
- return t += l, /* @__PURE__ */ o(
249
+ return { content: t, column: e + t.length };
250
+ let r = e;
251
+ return { content: Array.from(t, (s, i) => {
252
+ if (s === " ")
253
+ return r++, /* @__PURE__ */ o("span", { className: "nc-code-editor-whitespace", "aria-hidden": "true", children: "·" }, i);
254
+ if (s === " ") {
255
+ const d = n - r % n;
256
+ return r += d, /* @__PURE__ */ o(
14
257
  "span",
15
258
  {
16
259
  className: "nc-code-editor-whitespace nc-code-editor-tab",
17
- style: { width: `${l}ch` },
260
+ style: { width: `${d}ch` },
18
261
  "aria-hidden": "true",
19
262
  children: "→"
20
263
  },
21
- s
264
+ i
22
265
  );
23
266
  }
24
- return t++, c;
25
- }), column: t };
267
+ return r++, s;
268
+ }), column: r };
26
269
  }
27
- function K(r) {
28
- var t;
29
- const a = (t = r.split(".").pop()) == null ? void 0 : t.toLowerCase();
270
+ function Q(t) {
271
+ var r;
272
+ const a = (r = t.split(".").pop()) == null ? void 0 : r.toLowerCase();
30
273
  if (!a) return;
31
274
  const n = {
32
275
  ts: "typescript",
@@ -82,70 +325,70 @@ function K(r) {
82
325
  proto: "protobuf"
83
326
  };
84
327
  if (n[a]) return n[a];
85
- const e = r.toLowerCase();
328
+ const e = t.toLowerCase();
86
329
  if (n[e]) return n[e];
87
330
  }
88
- function Q({
89
- value: r,
331
+ function ee({
332
+ value: t,
90
333
  onChange: a,
91
334
  language: n,
92
335
  readOnly: e = !1,
93
- minHeight: t = 100,
94
- maxHeight: f,
95
- lineNumbers: c = !0,
96
- showWhitespace: s = !1,
97
- tabSize: l = 8,
98
- colorTheme: b = "auto",
99
- className: L = "",
336
+ minHeight: r = 100,
337
+ maxHeight: m,
338
+ lineNumbers: s = !0,
339
+ showWhitespace: i = !1,
340
+ tabSize: d = 8,
341
+ colorTheme: g = "auto",
342
+ className: x = "",
100
343
  style: D = {}
101
344
  }) {
102
- const m = Number.isFinite(l) ? Math.max(1, Math.floor(l)) : 8, x = S(() => r.split(`
103
- `).length, [r]), E = S(() => Array.from({ length: x }, (d, p) => p + 1).join(`
104
- `), [x]), [F, R] = $(!1);
105
- V(() => {
106
- const d = () => {
107
- const i = getComputedStyle(document.documentElement).getPropertyValue("--nc-bg").trim();
108
- R(i.startsWith("#0") || i.startsWith("#1") || i.startsWith("#2") || i.startsWith("#3"));
345
+ const h = Number.isFinite(d) ? Math.max(1, Math.floor(d)) : 8, E = v(() => t.split(`
346
+ `).length, [t]), L = v(() => Array.from({ length: E }, (p, u) => u + 1).join(`
347
+ `), [E]), [C, P] = z(!1);
348
+ F(() => {
349
+ const p = () => {
350
+ const l = getComputedStyle(document.documentElement).getPropertyValue("--nc-bg").trim();
351
+ P(l.startsWith("#0") || l.startsWith("#1") || l.startsWith("#2") || l.startsWith("#3"));
109
352
  };
110
- d();
111
- const p = new MutationObserver(d);
112
- return p.observe(document.documentElement, { attributes: !0, attributeFilter: ["class", "data-theme"] }), () => p.disconnect();
353
+ p();
354
+ const u = new MutationObserver(p);
355
+ return u.observe(document.documentElement, { attributes: !0, attributeFilter: ["class", "data-theme"] }), () => u.disconnect();
113
356
  }, []);
114
- const w = b === "dark" || b === "auto" && F ? z.vsDark : z.vsLight, T = I(
115
- (d) => /* @__PURE__ */ o(P, { theme: w, code: d, language: n || "text", children: ({ tokens: i, getLineProps: q, getTokenProps: H }) => /* @__PURE__ */ o(A, { children: i.map((v, k) => {
116
- let y = 0;
117
- return /* @__PURE__ */ g("div", { ...q({ line: v }), children: [
118
- v.map((N, _) => {
119
- const C = H({ token: N }), j = Y(
120
- N.content,
121
- s,
122
- m,
123
- y
357
+ const k = g === "dark" || g === "auto" && C ? O.vsDark : O.vsLight, H = X(
358
+ (p) => /* @__PURE__ */ o(Y, { theme: k, code: p, language: n || "text", children: ({ tokens: l, getLineProps: G, getTokenProps: $ }) => /* @__PURE__ */ o(U, { children: l.map((_, w) => {
359
+ let A = 0;
360
+ return /* @__PURE__ */ b("div", { ...G({ line: _ }), children: [
361
+ _.map((T, B) => {
362
+ const N = $({ token: T }), I = W(
363
+ T.content,
364
+ i,
365
+ h,
366
+ A
124
367
  );
125
- return y = j.column, /* @__PURE__ */ o(
368
+ return A = I.column, /* @__PURE__ */ o(
126
369
  "span",
127
370
  {
128
- ...C,
371
+ ...N,
129
372
  style: {
130
- ...C.style,
373
+ ...N.style,
131
374
  opacity: e ? 0.7 : void 0
132
375
  },
133
- children: j.content
376
+ children: I.content
134
377
  },
135
- _
378
+ B
136
379
  );
137
380
  }),
138
- s && k < i.length - 1 && /* @__PURE__ */ o("span", { className: "nc-code-editor-line-ending", "aria-hidden": "true", children: "↵" })
139
- ] }, k);
381
+ i && w < l.length - 1 && /* @__PURE__ */ o("span", { className: "nc-code-editor-line-ending", "aria-hidden": "true", children: "↵" })
382
+ ] }, w);
140
383
  }) }) }),
141
- [w, n, m, e, s]
142
- ), h = M(null), u = M(null), W = () => {
143
- h.current && u.current && (u.current.scrollTop = h.current.scrollTop);
384
+ [k, n, h, e, i]
385
+ ), S = y(null), f = y(null), M = () => {
386
+ S.current && f.current && (f.current.scrollTop = S.current.scrollTop);
144
387
  };
145
- return /* @__PURE__ */ g(
388
+ return /* @__PURE__ */ b(
146
389
  "div",
147
390
  {
148
- className: `nc-code-editor ${L}`.trim(),
391
+ className: `nc-code-editor ${x}`.trim(),
149
392
  style: { display: "flex", flexDirection: "column", gap: 4, ...D },
150
393
  children: [
151
394
  /* @__PURE__ */ o("style", { children: `
@@ -181,22 +424,22 @@ function Q({
181
424
  white-space: inherit;
182
425
  }
183
426
  ` }),
184
- /* @__PURE__ */ g(
427
+ /* @__PURE__ */ b(
185
428
  "div",
186
429
  {
187
430
  className: "nc-code-editor-container",
188
431
  style: {
189
432
  border: "1px solid var(--nc-border)",
190
433
  background: e ? "var(--nc-bg-secondary)" : "var(--nc-bg-tertiary)",
191
- minHeight: t,
192
- maxHeight: f,
434
+ minHeight: r,
435
+ maxHeight: m,
193
436
  display: "flex"
194
437
  },
195
438
  children: [
196
- c && /* @__PURE__ */ o(
439
+ s && /* @__PURE__ */ o(
197
440
  "div",
198
441
  {
199
- ref: u,
442
+ ref: f,
200
443
  style: {
201
444
  padding: "10px 8px",
202
445
  paddingRight: 12,
@@ -212,13 +455,13 @@ function Q({
212
455
  minWidth: 40,
213
456
  overflow: "hidden"
214
457
  },
215
- children: E
458
+ children: L
216
459
  }
217
460
  ),
218
461
  /* @__PURE__ */ o(
219
462
  "div",
220
463
  {
221
- ref: h,
464
+ ref: S,
222
465
  className: `code-editor-container${e ? " read-only" : ""}`,
223
466
  style: {
224
467
  flex: 1,
@@ -226,25 +469,25 @@ function Q({
226
469
  overflowY: "auto",
227
470
  color: "var(--nc-text)"
228
471
  },
229
- onScroll: W,
472
+ onScroll: M,
230
473
  children: /* @__PURE__ */ o(
231
- X,
474
+ q,
232
475
  {
233
- value: r,
476
+ value: t,
234
477
  onValueChange: a,
235
- highlight: T,
478
+ highlight: H,
236
479
  padding: 10,
237
480
  readOnly: e,
238
481
  style: {
239
482
  fontFamily: 'Consolas, Monaco, "Courier New", monospace',
240
483
  fontSize: 13,
241
484
  lineHeight: "1.5",
242
- minHeight: Math.max(t - 2, 0),
485
+ minHeight: Math.max(r - 2, 0),
243
486
  background: "transparent",
244
487
  color: "var(--nc-text)",
245
488
  whiteSpace: "pre",
246
489
  minWidth: "max-content",
247
- tabSize: m
490
+ tabSize: h
248
491
  },
249
492
  textareaClassName: "code-editor-textarea"
250
493
  }
@@ -259,7 +502,7 @@ function Q({
259
502
  );
260
503
  }
261
504
  export {
262
- Q as CodeEditor,
263
- Q as default,
264
- K as detectLanguage
505
+ ee as CodeEditor,
506
+ ee as default,
507
+ Q as detectLanguage
265
508
  };
package/dist/icons.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./GeneratedIcons-Z-RSoFyY.cjs");exports.CameraIcon=o.CameraIcon;exports.ChevronDownIcon=o.ChevronDownIcon;exports.ChevronLeftIcon=o.ChevronLeftIcon;exports.ChevronRightIcon=o.ChevronRightIcon;exports.CloseIcon=o.CloseIcon;exports.ConsoleIcon=o.ConsoleIcon;exports.CopyFilledIcon=o.CopyFilledIcon;exports.CopyIcon=o.CopyIcon;exports.DoubleClickIcon=o.DoubleClickIcon;exports.DownloadIcon=o.DownloadIcon;exports.EditIcon=o.EditIcon;exports.EmptyFolderIcon=o.EmptyFolderIcon;exports.ExternalLinkIcon=o.ExternalLinkIcon;exports.EyeHiddenIcon=o.EyeHiddenIcon;exports.FilterIcon=o.FilterIcon;exports.HideAppsIcon=o.HideAppsIcon;exports.InfoFilledIcon=o.InfoFilledIcon;exports.InfoIcon=o.InfoIcon;exports.KeyIcon=o.KeyIcon;exports.LockIcon=o.LockIcon;exports.MenuIcon=o.MenuIcon;exports.MinusIcon=o.MinusIcon;exports.MoonFilledIcon=o.MoonFilledIcon;exports.MoonIcon=o.MoonIcon;exports.MoreHorizontalIcon=o.MoreHorizontalIcon;exports.MoreIcon=o.MoreIcon;exports.PauseFilledIcon=o.PauseFilledIcon;exports.PauseIcon=o.PauseIcon;exports.PieChartIcon=o.PieChartIcon;exports.PlayFilledIcon=o.PlayFilledIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.PowerIcon=o.PowerIcon;exports.QuestionFilledIcon=o.QuestionFilledIcon;exports.QuestionIcon=o.QuestionIcon;exports.RefreshIcon=o.RefreshIcon;exports.RevertIcon=o.RevertIcon;exports.SaveIcon=o.SaveIcon;exports.SearchIcon=o.SearchIcon;exports.SettingsIcon=o.SettingsIcon;exports.StarFilledIcon=o.StarFilledIcon;exports.StarIcon=o.StarIcon;exports.StopFilledIcon=o.StopFilledIcon;exports.StopIcon=o.StopIcon;exports.SunFilledIcon=o.SunFilledIcon;exports.SunIcon=o.SunIcon;exports.TrashFilledIcon=o.TrashFilledIcon;exports.TrashIcon=o.TrashIcon;exports.UnlockIcon=o.UnlockIcon;exports.UserIcon=o.UserIcon;exports.ViewIcon=o.ViewIcon;exports.WifiIcon=o.WifiIcon;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./GeneratedIcons-LGFRi6GT.cjs");exports.CameraIcon=o.CameraIcon;exports.ChevronDownIcon=o.ChevronDownIcon;exports.ChevronLeftIcon=o.ChevronLeftIcon;exports.ChevronRightIcon=o.ChevronRightIcon;exports.CloseIcon=o.CloseIcon;exports.ConsoleIcon=o.ConsoleIcon;exports.CopyFilledIcon=o.CopyFilledIcon;exports.CopyIcon=o.CopyIcon;exports.DoubleClickIcon=o.DoubleClickIcon;exports.DownloadIcon=o.DownloadIcon;exports.EditIcon=o.EditIcon;exports.EmptyFolderIcon=o.EmptyFolderIcon;exports.ExternalLinkIcon=o.ExternalLinkIcon;exports.EyeHiddenIcon=o.EyeHiddenIcon;exports.FilterIcon=o.FilterIcon;exports.HideAppsIcon=o.HideAppsIcon;exports.HistoryIcon=o.HistoryIcon;exports.InfoFilledIcon=o.InfoFilledIcon;exports.InfoIcon=o.InfoIcon;exports.KeyIcon=o.KeyIcon;exports.LockIcon=o.LockIcon;exports.MenuIcon=o.MenuIcon;exports.MinusIcon=o.MinusIcon;exports.MoonFilledIcon=o.MoonFilledIcon;exports.MoonIcon=o.MoonIcon;exports.MoreHorizontalIcon=o.MoreHorizontalIcon;exports.MoreIcon=o.MoreIcon;exports.PauseFilledIcon=o.PauseFilledIcon;exports.PauseIcon=o.PauseIcon;exports.PieChartIcon=o.PieChartIcon;exports.PlayFilledIcon=o.PlayFilledIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.PowerIcon=o.PowerIcon;exports.QuestionFilledIcon=o.QuestionFilledIcon;exports.QuestionIcon=o.QuestionIcon;exports.RefreshIcon=o.RefreshIcon;exports.RevertIcon=o.RevertIcon;exports.SaveIcon=o.SaveIcon;exports.SearchIcon=o.SearchIcon;exports.SettingsIcon=o.SettingsIcon;exports.StarFilledIcon=o.StarFilledIcon;exports.StarIcon=o.StarIcon;exports.StopFilledIcon=o.StopFilledIcon;exports.StopIcon=o.StopIcon;exports.SunFilledIcon=o.SunFilledIcon;exports.SunIcon=o.SunIcon;exports.TrashFilledIcon=o.TrashFilledIcon;exports.TrashIcon=o.TrashIcon;exports.UnlockIcon=o.UnlockIcon;exports.UserIcon=o.UserIcon;exports.ViewIcon=o.ViewIcon;exports.WarningIcon=o.WarningIcon;exports.WifiIcon=o.WifiIcon;
package/dist/icons.d.ts CHANGED
@@ -111,6 +111,12 @@ export declare function FilterIcon({ size, className, style }: IconProps): JSX_2
111
111
  */
112
112
  export declare function HideAppsIcon({ size, className, style }: IconProps): JSX_2.Element;
113
113
 
114
+ /**
115
+ * History icon - clock face. Same 10-unit circle as PieChartIcon; the hands are
116
+ * 2.2 against the ring's 1.7 so they don't read lighter than the ring they sit in.
117
+ */
118
+ export declare function HistoryIcon({ size, className, style }: IconProps): JSX_2.Element;
119
+
114
120
  declare interface IconProps {
115
121
  size?: number;
116
122
  className?: string;
@@ -370,6 +376,16 @@ export declare function UserIcon({ size, className, style }: IconProps): JSX_2.E
370
376
  */
371
377
  export declare function ViewIcon({ size, className, style }: IconProps): JSX_2.Element;
372
378
 
379
+ /**
380
+ * Warning icon - triangle with "!" for failures and caveats. The corners are
381
+ * filleted at r=2 so the three joins hold the same radius as the ring icons'
382
+ * outer edge, and the base is wider than it is tall so an equilateral-looking
383
+ * triangle does not read as heavier than a 20-unit circle beside it. The
384
+ * exclamation reuses InfoIcon's stem length and 17-unit dot centre, so the two
385
+ * glyphs keep a shared baseline when they appear in one row.
386
+ */
387
+ export declare function WarningIcon({ size, className, style }: IconProps): JSX_2.Element;
388
+
373
389
  /**
374
390
  * WiFi icon for the WiFi Setup app.
375
391
  * Shows signal arcs indicating wireless connectivity.
package/dist/icons.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as a, a as s, b as c, c as I, d as e, e as l, f as i, g as r, D as t, h as d, E as F, i as u, j as C, k as h, F as S, H as p, I as y, l as P, K as f, L as M, M as v, m as k, n as w, o as E, p as m, q as D, P as H, r as L, s as R, t as g, u as x, v as Q, w as T, Q as U, x as b, R as z, y as A, S as K, z as V, A as W, B as j, G as q, J as B, N as G, O as J, T as N, U as O, V as X, W as Y, X as Z, Y as _, Z as $ } from "./GeneratedIcons-eOaZDTB3.js";
1
+ import { C as a, a as s, b as c, c as I, d as e, e as l, f as i, g as r, D as t, h as d, E as F, i as u, j as C, k as h, F as S, H as p, l as y, I as P, m as f, K as M, L as v, M as k, n as w, o as E, p as H, q as g, r as m, P as D, s as L, t as R, u as x, v as Q, w as T, x as U, Q as W, y as b, R as z, z as A, S as K, A as V, B as j, G as q, J as B, N as G, O as J, T as N, U as O, V as X, W as Y, X as Z, Y as _, Z as $, _ as oo, $ as no } from "./GeneratedIcons-Jg9slqRu.js";
2
2
  export {
3
3
  a as CameraIcon,
4
4
  s as ChevronDownIcon,
@@ -16,40 +16,42 @@ export {
16
16
  h as EyeHiddenIcon,
17
17
  S as FilterIcon,
18
18
  p as HideAppsIcon,
19
- y as InfoFilledIcon,
20
- P as InfoIcon,
21
- f as KeyIcon,
22
- M as LockIcon,
23
- v as MenuIcon,
24
- k as MinusIcon,
25
- w as MoonFilledIcon,
26
- E as MoonIcon,
27
- m as MoreHorizontalIcon,
28
- D as MoreIcon,
29
- H as PauseFilledIcon,
19
+ y as HistoryIcon,
20
+ P as InfoFilledIcon,
21
+ f as InfoIcon,
22
+ M as KeyIcon,
23
+ v as LockIcon,
24
+ k as MenuIcon,
25
+ w as MinusIcon,
26
+ E as MoonFilledIcon,
27
+ H as MoonIcon,
28
+ g as MoreHorizontalIcon,
29
+ m as MoreIcon,
30
+ D as PauseFilledIcon,
30
31
  L as PauseIcon,
31
32
  R as PieChartIcon,
32
- g as PlayFilledIcon,
33
- x as PlayIcon,
34
- Q as PlusIcon,
35
- T as PowerIcon,
36
- U as QuestionFilledIcon,
33
+ x as PlayFilledIcon,
34
+ Q as PlayIcon,
35
+ T as PlusIcon,
36
+ U as PowerIcon,
37
+ W as QuestionFilledIcon,
37
38
  b as QuestionIcon,
38
39
  z as RefreshIcon,
39
40
  A as RevertIcon,
40
41
  K as SaveIcon,
41
42
  V as SearchIcon,
42
- W as SettingsIcon,
43
- j as StarFilledIcon,
44
- q as StarIcon,
45
- B as StopFilledIcon,
46
- G as StopIcon,
47
- J as SunFilledIcon,
48
- N as SunIcon,
49
- O as TrashFilledIcon,
50
- X as TrashIcon,
51
- Y as UnlockIcon,
52
- Z as UserIcon,
53
- _ as ViewIcon,
54
- $ as WifiIcon
43
+ j as SettingsIcon,
44
+ q as StarFilledIcon,
45
+ B as StarIcon,
46
+ G as StopFilledIcon,
47
+ J as StopIcon,
48
+ N as SunFilledIcon,
49
+ O as SunIcon,
50
+ X as TrashFilledIcon,
51
+ Y as TrashIcon,
52
+ Z as UnlockIcon,
53
+ _ as UserIcon,
54
+ $ as ViewIcon,
55
+ oo as WarningIcon,
56
+ no as WifiIcon
55
57
  };