listpage-next 0.0.238 → 0.0.240

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,10 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ButtonProps {
3
+ onClick?: () => void;
4
+ disabled?: boolean;
5
+ loading?: boolean;
6
+ children?: ReactNode;
7
+ type?: 'primary' | 'secondary';
8
+ size?: 'large' | 'medium' | 'small';
9
+ }
10
+ export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
1
  export { PromptEditor, type PromptEditorProps } from './PromptEditor';
2
+ export { Button, type ButtonProps } from './Button';
@@ -0,0 +1 @@
1
+ export * from './index';
package/dist/ui.css CHANGED
@@ -7,9 +7,23 @@
7
7
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8
8
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
9
  "Courier New", monospace;
10
+ --color-blue-500: oklch(62.3% 0.214 259.815);
11
+ --color-blue-600: oklch(54.6% 0.245 262.881);
12
+ --color-blue-900: oklch(37.9% 0.146 265.522);
10
13
  --color-slate-300: oklch(86.9% 0.022 252.894);
14
+ --color-gray-300: oklch(87.2% 0.01 258.338);
15
+ --color-gray-500: oklch(55.1% 0.027 264.364);
16
+ --color-gray-700: oklch(37.3% 0.034 259.733);
17
+ --color-gray-800: oklch(27.8% 0.033 256.848);
18
+ --color-white: #fff;
19
+ --spacing: 0.25rem;
20
+ --text-xs: 0.75rem;
21
+ --text-xs--line-height: calc(1 / 0.75);
11
22
  --text-sm: 0.875rem;
12
23
  --text-sm--line-height: calc(1.25 / 0.875);
24
+ --font-weight-medium: 500;
25
+ --radius-lg: 0.5rem;
26
+ --animate-spin: spin 1s linear infinite;
13
27
  --default-transition-duration: 150ms;
14
28
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
15
29
  --default-font-family: var(--font-sans);
@@ -207,25 +221,67 @@
207
221
  .transform {
208
222
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
209
223
  }
224
+ .animate-spin {
225
+ animation: var(--animate-spin);
226
+ }
227
+ .cursor-pointer {
228
+ cursor: pointer;
229
+ }
210
230
  .resize {
211
231
  resize: both;
212
232
  }
213
233
  .flex-col {
214
234
  flex-direction: column;
215
235
  }
236
+ .items-center {
237
+ align-items: center;
238
+ }
239
+ .gap-2 {
240
+ gap: calc(var(--spacing) * 2);
241
+ }
216
242
  .overflow-auto {
217
243
  overflow: auto;
218
244
  }
219
245
  .overflow-hidden {
220
246
  overflow: hidden;
221
247
  }
248
+ .rounded {
249
+ border-radius: 0.25rem;
250
+ }
251
+ .rounded-lg {
252
+ border-radius: var(--radius-lg);
253
+ }
222
254
  .border {
223
255
  border-style: var(--tw-border-style);
224
256
  border-width: 1px;
225
257
  }
258
+ .border-gray-700 {
259
+ border-color: var(--color-gray-700);
260
+ }
226
261
  .bg-\[\#0B1120\] {
227
262
  background-color: #0B1120;
228
263
  }
264
+ .bg-blue-600 {
265
+ background-color: var(--color-blue-600);
266
+ }
267
+ .px-3 {
268
+ padding-inline: calc(var(--spacing) * 3);
269
+ }
270
+ .px-4 {
271
+ padding-inline: calc(var(--spacing) * 4);
272
+ }
273
+ .px-6 {
274
+ padding-inline: calc(var(--spacing) * 6);
275
+ }
276
+ .py-1\.5 {
277
+ padding-block: calc(var(--spacing) * 1.5);
278
+ }
279
+ .py-2 {
280
+ padding-block: calc(var(--spacing) * 2);
281
+ }
282
+ .py-2\.5 {
283
+ padding-block: calc(var(--spacing) * 2.5);
284
+ }
229
285
  .font-mono {
230
286
  font-family: var(--font-mono);
231
287
  }
@@ -233,9 +289,33 @@
233
289
  font-size: var(--text-sm);
234
290
  line-height: var(--tw-leading, var(--text-sm--line-height));
235
291
  }
292
+ .text-xs {
293
+ font-size: var(--text-xs);
294
+ line-height: var(--tw-leading, var(--text-xs--line-height));
295
+ }
296
+ .font-medium {
297
+ --tw-font-weight: var(--font-weight-medium);
298
+ font-weight: var(--font-weight-medium);
299
+ }
300
+ .text-gray-300 {
301
+ color: var(--color-gray-300);
302
+ }
236
303
  .text-slate-300 {
237
304
  color: var(--color-slate-300);
238
305
  }
306
+ .text-white {
307
+ color: var(--color-white);
308
+ }
309
+ .shadow-lg {
310
+ --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
311
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
312
+ }
313
+ .shadow-blue-900\/20 {
314
+ --tw-shadow-color: color-mix(in srgb, oklch(37.9% 0.146 265.522) 20%, transparent);
315
+ @supports (color: color-mix(in lab, red, red)) {
316
+ --tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-blue-900) 20%, transparent) var(--tw-shadow-alpha), transparent);
317
+ }
318
+ }
239
319
  .outline {
240
320
  outline-style: var(--tw-outline-style);
241
321
  outline-width: 1px;
@@ -248,12 +328,98 @@
248
328
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
249
329
  transition-duration: var(--tw-duration, var(--default-transition-duration));
250
330
  }
331
+ .transition-all {
332
+ transition-property: all;
333
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
334
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
335
+ }
336
+ .transition-colors {
337
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
338
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
339
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
340
+ }
341
+ .hover\:scale-\[1\.02\] {
342
+ &:hover {
343
+ @media (hover: hover) {
344
+ scale: 1.02;
345
+ }
346
+ }
347
+ }
348
+ .hover\:bg-blue-500 {
349
+ &:hover {
350
+ @media (hover: hover) {
351
+ background-color: var(--color-blue-500);
352
+ }
353
+ }
354
+ }
355
+ .hover\:bg-gray-800 {
356
+ &:hover {
357
+ @media (hover: hover) {
358
+ background-color: var(--color-gray-800);
359
+ }
360
+ }
361
+ }
362
+ .hover\:text-white {
363
+ &:hover {
364
+ @media (hover: hover) {
365
+ color: var(--color-white);
366
+ }
367
+ }
368
+ }
251
369
  .focus\:outline-none {
252
370
  &:focus {
253
371
  --tw-outline-style: none;
254
372
  outline-style: none;
255
373
  }
256
374
  }
375
+ .focus-visible\:ring-2 {
376
+ &:focus-visible {
377
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
378
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
379
+ }
380
+ }
381
+ .focus-visible\:ring-blue-500 {
382
+ &:focus-visible {
383
+ --tw-ring-color: var(--color-blue-500);
384
+ }
385
+ }
386
+ .focus-visible\:ring-gray-500 {
387
+ &:focus-visible {
388
+ --tw-ring-color: var(--color-gray-500);
389
+ }
390
+ }
391
+ .focus-visible\:ring-offset-2 {
392
+ &:focus-visible {
393
+ --tw-ring-offset-width: 2px;
394
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
395
+ }
396
+ }
397
+ .focus-visible\:outline-none {
398
+ &:focus-visible {
399
+ --tw-outline-style: none;
400
+ outline-style: none;
401
+ }
402
+ }
403
+ .active\:scale-\[0\.98\] {
404
+ &:active {
405
+ scale: 0.98;
406
+ }
407
+ }
408
+ .active\:bg-gray-700 {
409
+ &:active {
410
+ background-color: var(--color-gray-700);
411
+ }
412
+ }
413
+ .disabled\:cursor-not-allowed {
414
+ &:disabled {
415
+ cursor: not-allowed;
416
+ }
417
+ }
418
+ .disabled\:opacity-50 {
419
+ &:disabled {
420
+ opacity: 50%;
421
+ }
422
+ }
257
423
  }
258
424
  @property --tw-rotate-x {
259
425
  syntax: "*";
@@ -280,6 +446,75 @@
280
446
  inherits: false;
281
447
  initial-value: solid;
282
448
  }
449
+ @property --tw-font-weight {
450
+ syntax: "*";
451
+ inherits: false;
452
+ }
453
+ @property --tw-shadow {
454
+ syntax: "*";
455
+ inherits: false;
456
+ initial-value: 0 0 #0000;
457
+ }
458
+ @property --tw-shadow-color {
459
+ syntax: "*";
460
+ inherits: false;
461
+ }
462
+ @property --tw-shadow-alpha {
463
+ syntax: "<percentage>";
464
+ inherits: false;
465
+ initial-value: 100%;
466
+ }
467
+ @property --tw-inset-shadow {
468
+ syntax: "*";
469
+ inherits: false;
470
+ initial-value: 0 0 #0000;
471
+ }
472
+ @property --tw-inset-shadow-color {
473
+ syntax: "*";
474
+ inherits: false;
475
+ }
476
+ @property --tw-inset-shadow-alpha {
477
+ syntax: "<percentage>";
478
+ inherits: false;
479
+ initial-value: 100%;
480
+ }
481
+ @property --tw-ring-color {
482
+ syntax: "*";
483
+ inherits: false;
484
+ }
485
+ @property --tw-ring-shadow {
486
+ syntax: "*";
487
+ inherits: false;
488
+ initial-value: 0 0 #0000;
489
+ }
490
+ @property --tw-inset-ring-color {
491
+ syntax: "*";
492
+ inherits: false;
493
+ }
494
+ @property --tw-inset-ring-shadow {
495
+ syntax: "*";
496
+ inherits: false;
497
+ initial-value: 0 0 #0000;
498
+ }
499
+ @property --tw-ring-inset {
500
+ syntax: "*";
501
+ inherits: false;
502
+ }
503
+ @property --tw-ring-offset-width {
504
+ syntax: "<length>";
505
+ inherits: false;
506
+ initial-value: 0px;
507
+ }
508
+ @property --tw-ring-offset-color {
509
+ syntax: "*";
510
+ inherits: false;
511
+ initial-value: #fff;
512
+ }
513
+ @property --tw-ring-offset-shadow {
514
+ syntax: "*";
515
+ inherits: false;
516
+ initial-value: 0 0 #0000;
517
+ }
283
518
  @property --tw-outline-style {
284
519
  syntax: "*";
285
520
  inherits: false;
@@ -338,6 +573,11 @@
338
573
  syntax: "*";
339
574
  inherits: false;
340
575
  }
576
+ @keyframes spin {
577
+ to {
578
+ transform: rotate(360deg);
579
+ }
580
+ }
341
581
  @layer properties {
342
582
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
343
583
  *, ::before, ::after, ::backdrop {
@@ -347,6 +587,21 @@
347
587
  --tw-skew-x: initial;
348
588
  --tw-skew-y: initial;
349
589
  --tw-border-style: solid;
590
+ --tw-font-weight: initial;
591
+ --tw-shadow: 0 0 #0000;
592
+ --tw-shadow-color: initial;
593
+ --tw-shadow-alpha: 100%;
594
+ --tw-inset-shadow: 0 0 #0000;
595
+ --tw-inset-shadow-color: initial;
596
+ --tw-inset-shadow-alpha: 100%;
597
+ --tw-ring-color: initial;
598
+ --tw-ring-shadow: 0 0 #0000;
599
+ --tw-inset-ring-color: initial;
600
+ --tw-inset-ring-shadow: 0 0 #0000;
601
+ --tw-ring-inset: initial;
602
+ --tw-ring-offset-width: 0px;
603
+ --tw-ring-offset-color: #fff;
604
+ --tw-ring-offset-shadow: 0 0 #0000;
350
605
  --tw-outline-style: solid;
351
606
  --tw-blur: initial;
352
607
  --tw-brightness: initial;
package/dist/ui.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.238",
3
+ "version": "0.0.240",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "./ui": {
14
14
  "types": "./dist/ui/ui.d.ts",
15
- "import": "./dist/ui/ui.js"
15
+ "import": "./dist/ui.js"
16
16
  },
17
17
  "./ui.css": "./dist/ui.css"
18
18
  },