@nextop-os/ui-system 0.0.15 → 0.0.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.
@@ -0,0 +1,292 @@
1
+ // src/icons/layout-preset-icons.tsx
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ function LayoutPresetIcon({
4
+ className,
5
+ selectedCount = 0,
6
+ size = 24,
7
+ title,
8
+ variant,
9
+ ...props
10
+ }) {
11
+ const dimension = typeof size === "number" ? `${size}` : size;
12
+ return /* @__PURE__ */ jsxs(
13
+ "svg",
14
+ {
15
+ "aria-hidden": title ? void 0 : true,
16
+ className,
17
+ fill: "none",
18
+ height: dimension,
19
+ viewBox: "0 0 24 24",
20
+ width: dimension,
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ ...props,
23
+ children: [
24
+ title ? /* @__PURE__ */ jsx("title", { children: title }) : null,
25
+ /* @__PURE__ */ jsx(LayoutPresetFrame, {}),
26
+ variant === "balanced" ? /* @__PURE__ */ jsx(BalancedLayoutPresetGlyph, { selectedCount }) : null,
27
+ variant === "row" ? /* @__PURE__ */ jsx(RowLayoutPresetGlyph, {}) : null,
28
+ variant === "column" ? /* @__PURE__ */ jsx(ColumnLayoutPresetGlyph, {}) : null
29
+ ]
30
+ }
31
+ );
32
+ }
33
+ function LayoutPresetFrame() {
34
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
35
+ /* @__PURE__ */ jsx(
36
+ "rect",
37
+ {
38
+ x: "3",
39
+ y: "3",
40
+ width: "18",
41
+ height: "18",
42
+ rx: "4",
43
+ fill: "currentColor",
44
+ opacity: "0.12"
45
+ }
46
+ ),
47
+ /* @__PURE__ */ jsx(
48
+ "rect",
49
+ {
50
+ x: "3",
51
+ y: "3",
52
+ width: "18",
53
+ height: "18",
54
+ rx: "4",
55
+ fill: "none",
56
+ stroke: "currentColor",
57
+ strokeWidth: "1.7"
58
+ }
59
+ )
60
+ ] });
61
+ }
62
+ function BalancedLayoutPresetGlyph({
63
+ selectedCount
64
+ }) {
65
+ if (selectedCount <= 2) {
66
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
67
+ /* @__PURE__ */ jsx(
68
+ "rect",
69
+ {
70
+ x: "5.5",
71
+ y: "5.5",
72
+ width: "6.4",
73
+ height: "13",
74
+ rx: "1.4",
75
+ fill: "currentColor"
76
+ }
77
+ ),
78
+ /* @__PURE__ */ jsx(
79
+ "rect",
80
+ {
81
+ x: "12.8",
82
+ y: "5.5",
83
+ width: "5.7",
84
+ height: "13",
85
+ rx: "1.4",
86
+ fill: "currentColor",
87
+ opacity: "0.32"
88
+ }
89
+ )
90
+ ] });
91
+ }
92
+ if (selectedCount === 3) {
93
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
94
+ /* @__PURE__ */ jsx(
95
+ "rect",
96
+ {
97
+ x: "5.25",
98
+ y: "5.25",
99
+ width: "7.2",
100
+ height: "13.5",
101
+ rx: "1.4",
102
+ fill: "currentColor"
103
+ }
104
+ ),
105
+ /* @__PURE__ */ jsx(
106
+ "rect",
107
+ {
108
+ x: "13.75",
109
+ y: "5.25",
110
+ width: "5",
111
+ height: "6.15",
112
+ rx: "1.2",
113
+ fill: "currentColor",
114
+ opacity: "0.5"
115
+ }
116
+ ),
117
+ /* @__PURE__ */ jsx(
118
+ "rect",
119
+ {
120
+ x: "13.75",
121
+ y: "12.6",
122
+ width: "5",
123
+ height: "6.15",
124
+ rx: "1.2",
125
+ fill: "currentColor",
126
+ opacity: "0.3"
127
+ }
128
+ )
129
+ ] });
130
+ }
131
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
132
+ /* @__PURE__ */ jsx(
133
+ "rect",
134
+ {
135
+ x: "5.25",
136
+ y: "5.25",
137
+ width: "6",
138
+ height: "6",
139
+ rx: "1.2",
140
+ fill: "currentColor"
141
+ }
142
+ ),
143
+ /* @__PURE__ */ jsx(
144
+ "rect",
145
+ {
146
+ x: "12.75",
147
+ y: "5.25",
148
+ width: "6",
149
+ height: "6",
150
+ rx: "1.2",
151
+ fill: "currentColor",
152
+ opacity: "0.5"
153
+ }
154
+ ),
155
+ /* @__PURE__ */ jsx(
156
+ "rect",
157
+ {
158
+ x: "5.25",
159
+ y: "12.75",
160
+ width: "6",
161
+ height: "6",
162
+ rx: "1.2",
163
+ fill: "currentColor",
164
+ opacity: "0.5"
165
+ }
166
+ ),
167
+ /* @__PURE__ */ jsx(
168
+ "rect",
169
+ {
170
+ x: "12.75",
171
+ y: "12.75",
172
+ width: "6",
173
+ height: "6",
174
+ rx: "1.2",
175
+ fill: "currentColor",
176
+ opacity: "0.3"
177
+ }
178
+ )
179
+ ] });
180
+ }
181
+ function RowLayoutPresetGlyph() {
182
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
183
+ /* @__PURE__ */ jsx(
184
+ "rect",
185
+ {
186
+ x: "5.25",
187
+ y: "5.25",
188
+ width: "6.2",
189
+ height: "13.5",
190
+ rx: "1.3",
191
+ fill: "currentColor"
192
+ }
193
+ ),
194
+ /* @__PURE__ */ jsx(
195
+ "rect",
196
+ {
197
+ x: "12.55",
198
+ y: "5.25",
199
+ width: "6.2",
200
+ height: "13.5",
201
+ rx: "1.3",
202
+ fill: "currentColor",
203
+ opacity: "0.34"
204
+ }
205
+ )
206
+ ] });
207
+ }
208
+ function ColumnLayoutPresetGlyph() {
209
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
210
+ /* @__PURE__ */ jsx(
211
+ "rect",
212
+ {
213
+ x: "5.25",
214
+ y: "5.25",
215
+ width: "13.5",
216
+ height: "6.2",
217
+ rx: "1.3",
218
+ fill: "currentColor"
219
+ }
220
+ ),
221
+ /* @__PURE__ */ jsx(
222
+ "rect",
223
+ {
224
+ x: "5.25",
225
+ y: "12.55",
226
+ width: "13.5",
227
+ height: "6.2",
228
+ rx: "1.3",
229
+ fill: "currentColor",
230
+ opacity: "0.34"
231
+ }
232
+ )
233
+ ] });
234
+ }
235
+
236
+ // src/icons/nextop-mark.tsx
237
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
238
+ function NextopMark({
239
+ className,
240
+ size = 28,
241
+ title,
242
+ ...props
243
+ }) {
244
+ const dimension = typeof size === "number" ? `${size}` : size;
245
+ return /* @__PURE__ */ jsxs2(
246
+ "svg",
247
+ {
248
+ "aria-hidden": title ? void 0 : true,
249
+ className,
250
+ fill: "none",
251
+ height: dimension,
252
+ viewBox: "0 0 28 28",
253
+ width: dimension,
254
+ xmlns: "http://www.w3.org/2000/svg",
255
+ ...props,
256
+ children: [
257
+ title ? /* @__PURE__ */ jsx2("title", { children: title }) : null,
258
+ /* @__PURE__ */ jsx2(
259
+ "rect",
260
+ {
261
+ fill: "var(--panel)",
262
+ height: "27",
263
+ rx: "13.5",
264
+ width: "27",
265
+ x: "0.5",
266
+ y: "0.5"
267
+ }
268
+ ),
269
+ /* @__PURE__ */ jsx2(
270
+ "path",
271
+ {
272
+ d: "M8.5 18.4V9.6H11.1L16.5 16.35V9.6H19.5V18.4H16.95L11.5 11.58V18.4H8.5Z",
273
+ fill: "currentColor"
274
+ }
275
+ ),
276
+ /* @__PURE__ */ jsx2(
277
+ "path",
278
+ {
279
+ d: "M19.48 8.55L21.6 6.44L21.57 11.12L16.9 11.08L19.48 8.55Z",
280
+ fill: "var(--primary)"
281
+ }
282
+ )
283
+ ]
284
+ }
285
+ );
286
+ }
287
+
288
+ export {
289
+ LayoutPresetIcon,
290
+ NextopMark
291
+ };
292
+ //# sourceMappingURL=chunk-XHA7R2WC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/icons/layout-preset-icons.tsx","../src/icons/nextop-mark.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\ntype LayoutPresetIconVariant = \"balanced\" | \"row\" | \"column\";\n\nexport interface LayoutPresetIconProps extends IconProps {\n selectedCount?: number;\n variant: LayoutPresetIconVariant;\n}\n\nexport function LayoutPresetIcon({\n className,\n selectedCount = 0,\n size = 24,\n title,\n variant,\n ...props\n}: LayoutPresetIconProps) {\n const dimension = typeof size === \"number\" ? `${size}` : size;\n\n return (\n <svg\n aria-hidden={title ? undefined : true}\n className={className}\n fill=\"none\"\n height={dimension}\n viewBox=\"0 0 24 24\"\n width={dimension}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n {title ? <title>{title}</title> : null}\n <LayoutPresetFrame />\n {variant === \"balanced\" ? (\n <BalancedLayoutPresetGlyph selectedCount={selectedCount} />\n ) : null}\n {variant === \"row\" ? <RowLayoutPresetGlyph /> : null}\n {variant === \"column\" ? <ColumnLayoutPresetGlyph /> : null}\n </svg>\n );\n}\n\nfunction LayoutPresetFrame() {\n return (\n <>\n <rect\n x=\"3\"\n y=\"3\"\n width=\"18\"\n height=\"18\"\n rx=\"4\"\n fill=\"currentColor\"\n opacity=\"0.12\"\n />\n <rect\n x=\"3\"\n y=\"3\"\n width=\"18\"\n height=\"18\"\n rx=\"4\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.7\"\n />\n </>\n );\n}\n\nfunction BalancedLayoutPresetGlyph({\n selectedCount\n}: {\n selectedCount: number;\n}) {\n if (selectedCount <= 2) {\n return (\n <>\n <rect\n x=\"5.5\"\n y=\"5.5\"\n width=\"6.4\"\n height=\"13\"\n rx=\"1.4\"\n fill=\"currentColor\"\n />\n <rect\n x=\"12.8\"\n y=\"5.5\"\n width=\"5.7\"\n height=\"13\"\n rx=\"1.4\"\n fill=\"currentColor\"\n opacity=\"0.32\"\n />\n </>\n );\n }\n\n if (selectedCount === 3) {\n return (\n <>\n <rect\n x=\"5.25\"\n y=\"5.25\"\n width=\"7.2\"\n height=\"13.5\"\n rx=\"1.4\"\n fill=\"currentColor\"\n />\n <rect\n x=\"13.75\"\n y=\"5.25\"\n width=\"5\"\n height=\"6.15\"\n rx=\"1.2\"\n fill=\"currentColor\"\n opacity=\"0.5\"\n />\n <rect\n x=\"13.75\"\n y=\"12.6\"\n width=\"5\"\n height=\"6.15\"\n rx=\"1.2\"\n fill=\"currentColor\"\n opacity=\"0.3\"\n />\n </>\n );\n }\n\n return (\n <>\n <rect\n x=\"5.25\"\n y=\"5.25\"\n width=\"6\"\n height=\"6\"\n rx=\"1.2\"\n fill=\"currentColor\"\n />\n <rect\n x=\"12.75\"\n y=\"5.25\"\n width=\"6\"\n height=\"6\"\n rx=\"1.2\"\n fill=\"currentColor\"\n opacity=\"0.5\"\n />\n <rect\n x=\"5.25\"\n y=\"12.75\"\n width=\"6\"\n height=\"6\"\n rx=\"1.2\"\n fill=\"currentColor\"\n opacity=\"0.5\"\n />\n <rect\n x=\"12.75\"\n y=\"12.75\"\n width=\"6\"\n height=\"6\"\n rx=\"1.2\"\n fill=\"currentColor\"\n opacity=\"0.3\"\n />\n </>\n );\n}\n\nfunction RowLayoutPresetGlyph() {\n return (\n <>\n <rect\n x=\"5.25\"\n y=\"5.25\"\n width=\"6.2\"\n height=\"13.5\"\n rx=\"1.3\"\n fill=\"currentColor\"\n />\n <rect\n x=\"12.55\"\n y=\"5.25\"\n width=\"6.2\"\n height=\"13.5\"\n rx=\"1.3\"\n fill=\"currentColor\"\n opacity=\"0.34\"\n />\n </>\n );\n}\n\nfunction ColumnLayoutPresetGlyph() {\n return (\n <>\n <rect\n x=\"5.25\"\n y=\"5.25\"\n width=\"13.5\"\n height=\"6.2\"\n rx=\"1.3\"\n fill=\"currentColor\"\n />\n <rect\n x=\"5.25\"\n y=\"12.55\"\n width=\"13.5\"\n height=\"6.2\"\n rx=\"1.3\"\n fill=\"currentColor\"\n opacity=\"0.34\"\n />\n </>\n );\n}\n","import type { IconProps } from \"./types\";\n\nexport function NextopMark({\n className,\n size = 28,\n title,\n ...props\n}: IconProps) {\n const dimension = typeof size === \"number\" ? `${size}` : size;\n\n return (\n <svg\n aria-hidden={title ? undefined : true}\n className={className}\n fill=\"none\"\n height={dimension}\n viewBox=\"0 0 28 28\"\n width={dimension}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n {title ? <title>{title}</title> : null}\n <rect\n fill=\"var(--panel)\"\n height=\"27\"\n rx=\"13.5\"\n width=\"27\"\n x=\"0.5\"\n y=\"0.5\"\n />\n <path\n d=\"M8.5 18.4V9.6H11.1L16.5 16.35V9.6H19.5V18.4H16.95L11.5 11.58V18.4H8.5Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M19.48 8.55L21.6 6.44L21.57 11.12L16.9 11.08L19.48 8.55Z\"\n fill=\"var(--primary)\"\n />\n </svg>\n );\n}\n"],"mappings":";AAoBI,SAuBA,UAbW,KAVX;AAXG,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA,gBAAgB;AAAA,EAChB,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA0B;AACxB,QAAM,YAAY,OAAO,SAAS,WAAW,GAAG,IAAI,KAAK;AAEzD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,QAAQ,SAAY;AAAA,MACjC;AAAA,MACA,MAAK;AAAA,MACL,QAAQ;AAAA,MACR,SAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAM;AAAA,MACL,GAAG;AAAA,MAEH;AAAA,gBAAQ,oBAAC,WAAO,iBAAM,IAAW;AAAA,QAClC,oBAAC,qBAAkB;AAAA,QAClB,YAAY,aACX,oBAAC,6BAA0B,eAA8B,IACvD;AAAA,QACH,YAAY,QAAQ,oBAAC,wBAAqB,IAAK;AAAA,QAC/C,YAAY,WAAW,oBAAC,2BAAwB,IAAK;AAAA;AAAA;AAAA,EACxD;AAEJ;AAEA,SAAS,oBAAoB;AAC3B,SACE,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AAAA,QACP,IAAG;AAAA,QACH,MAAK;AAAA,QACL,SAAQ;AAAA;AAAA,IACV;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,GAAE;AAAA,QACF,GAAE;AAAA,QACF,OAAM;AAAA,QACN,QAAO;AA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UW,OAAAA,MAVX,QAAAC,aAAA;AATG,SAAS,WAAW;AAAA,EACzB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,GAAG;AACL,GAAc;AACZ,QAAM,YAAY,OAAO,SAAS,WAAW,GAAG,IAAI,KAAK;AAEzD,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,QAAQ,SAAY;AAAA,MACjC;AAAA,MACA,MAAK;AAAA,MACL,QAAQ;AAAA,MACR,SAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAM;AAAA,MACL,GAAG;AAAA,MAEH;AAAA,gBAAQ,gBAAAD,KAAC,WAAO,iBAAM,IAAW;AAAA,QAClC,gBAAAA;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,QAAO;AAAA,YACP,IAAG;AAAA,YACH,OAAM;AAAA,YACN,GAAE;AAAA,YACF,GAAE;AAAA;AAAA,QACJ;AAAA,QACA,gBAAAA;AAAA,UAAC;AAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA;AAAA,QACP;AAAA,QACA,gBAAAA;AAAA,UAAC;AAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA;AAAA,QACP;AAAA;AAAA;AAAA,EACF;AAEJ;","names":["jsx","jsxs"]}
@@ -60,8 +60,8 @@ import {
60
60
  badgeVariants,
61
61
  buttonVariants,
62
62
  toastVariants
63
- } from "../chunk-G6KJIFD2.js";
64
- import "../chunk-OBW6ALOJ.js";
63
+ } from "../chunk-5COFORA5.js";
64
+ import "../chunk-TT7B6HKG.js";
65
65
  import "../chunk-DGPY4WP3.js";
66
66
  export {
67
67
  Badge,
@@ -0,0 +1,9 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ type NextopUISystemDevOptions = {
4
+ serverUrl?: string;
5
+ cacheDir?: string;
6
+ };
7
+ declare function nextopUISystemDev(options?: NextopUISystemDevOptions): Plugin;
8
+
9
+ export { type NextopUISystemDevOptions, nextopUISystemDev };