@choice-ui/react 1.7.3 → 1.7.5
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/components/button/dist/index.d.ts +2 -9
- package/dist/components/button/dist/index.js +38 -19
- package/dist/components/button/src/button.d.ts +2 -9
- package/dist/components/button/src/button.js +22 -13
- package/dist/components/button/src/tv.d.ts +12 -0
- package/dist/components/button/src/tv.js +15 -5
- package/dist/components/comments/src/comment-item/tv.d.ts +3 -3
- package/dist/components/modal/dist/index.js +3 -2
- package/dist/components/modal/src/styles/style.module.css +4 -0
- package/dist/components/modal/src/styles/style.module.css.js +8 -0
- package/dist/components/modal/src/tv.d.ts +3 -3
- package/dist/components/modal/src/tv.js +3 -2
- package/dist/components/numeric-input/dist/index.js +4 -3
- package/dist/components/numeric-input/src/styles/style.module.css +45 -0
- package/dist/components/numeric-input/src/styles/style.module.css.js +12 -0
- package/dist/components/numeric-input/src/tv.js +4 -3
- package/dist/components/otp-input/src/otp-input.js +10 -31
- package/dist/components/otp-input/src/styles/style.module.css +15 -0
- package/dist/components/otp-input/src/styles/style.module.css.js +8 -0
- package/dist/components/otp-input/src/tv.d.ts +3 -3
- package/dist/components/otp-input/src/tv.js +2 -1
- package/dist/components/panel/dist/index.d.ts +16 -16
- package/dist/components/panel/src/components/panel-label.js +2 -1
- package/dist/components/panel/src/components/panel-previewer.js +2 -4
- package/dist/components/panel/src/components/panel-row-label.js +2 -4
- package/dist/components/panel/src/components/panel-row-many-icon.js +4 -5
- package/dist/components/panel/src/components/panel-row.d.ts +12 -12
- package/dist/components/panel/src/components/panel-row.js +3 -3
- package/dist/components/panel/src/components/panel-sortable-row.js +13 -12
- package/dist/components/panel/src/components/panel-sortable.d.ts +1 -1
- package/dist/components/panel/src/components/panel-sortable.js +21 -21
- package/dist/components/panel/src/components/panel-title.js +16 -19
- package/dist/components/panel/src/context/panel-context.d.ts +1 -2
- package/dist/components/panel/src/hooks/use-panel-drag-drop.js +7 -6
- package/dist/components/panel/src/panel.d.ts +2 -2
- package/dist/components/panel/src/panel.js +38 -37
- package/dist/components/panel/src/styles/style.module.css +103 -0
- package/dist/components/panel/src/styles/style.module.css.js +23 -0
- package/dist/components/panel/src/tv.d.ts +89 -0
- package/dist/components/panel/src/tv.js +52 -15
- package/dist/components/skeleton/src/styles/style.module.css +18 -0
- package/dist/components/skeleton/src/styles/style.module.css.js +8 -0
- package/dist/components/skeleton/src/tv.js +2 -1
- package/dist/components/splitter/dist/index.d.ts +1 -1
- package/dist/components/splitter/src/splitter.d.ts +2 -2
- package/dist/components/text-field/dist/index.js +2 -1
- package/dist/components/text-field/src/styles/style.module.css +31 -0
- package/dist/components/text-field/src/styles/style.module.css.js +8 -0
- package/dist/components/text-field/src/tv.js +2 -1
- package/dist/components/toast/dist/index.d.ts +14 -0
- package/dist/components/toast/src/components/toaster-item.js +2 -1
- package/dist/components/toast/src/store.d.ts +14 -0
- package/dist/components/toast/src/store.js +1 -0
- package/dist/styles/components.css +0 -199
- package/package.json +1 -1
- package/dist/components/splitter/src/tv.d.ts +0 -7
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
--animate-spinner-bounce-right: spinner-bounce-right 0.5s infinite alternate ease;
|
|
27
27
|
--animate-indeterminate-bar: indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395)
|
|
28
28
|
infinite normal none running;
|
|
29
|
-
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
/* Base styles */
|
|
@@ -363,98 +362,6 @@
|
|
|
363
362
|
}
|
|
364
363
|
}
|
|
365
364
|
|
|
366
|
-
/* Panel row styles */
|
|
367
|
-
@layer components {
|
|
368
|
-
.properties-panel {
|
|
369
|
-
@apply relative flex min-w-0 flex-col;
|
|
370
|
-
&:not(:last-child) {
|
|
371
|
-
@apply border-b;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.rows {
|
|
376
|
-
@apply grid min-w-0 items-center pr-2 pl-4;
|
|
377
|
-
}
|
|
378
|
-
.rows--label {
|
|
379
|
-
@apply text-secondary-foreground mt-1 select-none;
|
|
380
|
-
padding-right: 0.125rem;
|
|
381
|
-
padding-left: 0.125rem;
|
|
382
|
-
font-weight: 500;
|
|
383
|
-
font-size: 0.5625rem;
|
|
384
|
-
line-height: 0.875rem;
|
|
385
|
-
letter-spacing: 0.016875rem;
|
|
386
|
-
}
|
|
387
|
-
.rows--single {
|
|
388
|
-
@apply gap-x-2 pr-4;
|
|
389
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
390
|
-
grid-template-columns: 1fr;
|
|
391
|
-
grid-template-areas: "label" "input";
|
|
392
|
-
}
|
|
393
|
-
.rows--two-columns {
|
|
394
|
-
@apply gap-x-2 pr-4;
|
|
395
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
396
|
-
grid-template-columns: 1fr 1fr;
|
|
397
|
-
grid-template-areas: "label-1 label-2" "input-1 input-2";
|
|
398
|
-
}
|
|
399
|
-
.rows--one-label-one-input {
|
|
400
|
-
@apply gap-x-2 pr-4;
|
|
401
|
-
grid-template-rows: 2rem;
|
|
402
|
-
grid-template-columns: 8fr 20fr;
|
|
403
|
-
grid-template-areas: "label input";
|
|
404
|
-
}
|
|
405
|
-
.rows--one-label-one-input-one-icon {
|
|
406
|
-
@apply gap-x-1 pr-2;
|
|
407
|
-
grid-template-rows: 2rem;
|
|
408
|
-
grid-template-columns: 8fr 20fr 1.5rem;
|
|
409
|
-
grid-template-areas: "label input icon";
|
|
410
|
-
}
|
|
411
|
-
.rows--one-label-two-input {
|
|
412
|
-
@apply gap-x-2 pr-4;
|
|
413
|
-
grid-template-rows: 2rem;
|
|
414
|
-
grid-template-columns: 8fr 10fr 10fr;
|
|
415
|
-
grid-template-areas: "label input-1 input-2";
|
|
416
|
-
}
|
|
417
|
-
.rows--one-icon-one-input {
|
|
418
|
-
@apply gap-x-2 pr-4;
|
|
419
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
420
|
-
grid-template-columns: 1.5rem 1fr;
|
|
421
|
-
grid-template-areas: ". label" "icon input";
|
|
422
|
-
}
|
|
423
|
-
.rows--one-input-one-icon {
|
|
424
|
-
@apply gap-x-2;
|
|
425
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
426
|
-
grid-template-columns: 1fr 1.5rem;
|
|
427
|
-
grid-template-areas: "label label" "input icon";
|
|
428
|
-
}
|
|
429
|
-
.rows--one-input-two-icon {
|
|
430
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
431
|
-
grid-template-columns: 1fr 0.5rem 1.5rem 0.25rem 1.5rem;
|
|
432
|
-
grid-template-areas: "label . . . ." "input . icon-1 . icon-2";
|
|
433
|
-
}
|
|
434
|
-
.rows--two-input-two-icon {
|
|
435
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
436
|
-
grid-template-columns: minmax(76px, 1fr) 0.5rem 1fr 0.5rem 1.5rem 0.25rem 1.5rem;
|
|
437
|
-
grid-template-areas: "label-1 label-1 label-2 label-2 . . ." "input-1 . input-2 . icon-1 . icon-2";
|
|
438
|
-
}
|
|
439
|
-
.rows--two-input-one-icon {
|
|
440
|
-
@apply gap-x-2;
|
|
441
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
442
|
-
grid-template-columns: 1fr 1fr 1.5rem;
|
|
443
|
-
grid-template-areas: "label-1 label-2 label-2" "input-1 input-2 icon";
|
|
444
|
-
}
|
|
445
|
-
.rows--one-icon-one-input-two-icon {
|
|
446
|
-
grid-template-rows: auto minmax(2rem, auto);
|
|
447
|
-
grid-template-columns: 1.5rem 0.5rem 1fr 0.5rem 1.5rem 0.25rem 1.5rem;
|
|
448
|
-
grid-template-areas: "label label label label label label label" "icon-1 . input . icon-2 . icon-3";
|
|
449
|
-
}
|
|
450
|
-
.rows--two-input-one-icon-double-row {
|
|
451
|
-
@apply gap-x-2;
|
|
452
|
-
grid-template-rows: auto 2rem 2rem;
|
|
453
|
-
grid-template-columns: 1fr 1fr 1.5rem;
|
|
454
|
-
grid-template-areas: "label-1 label-2 ." "input-1 input-3 icon-1" "input-2 input-3 icon-2";
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
365
|
/* Condition styles */
|
|
459
366
|
@layer components {
|
|
460
367
|
.condition__group {
|
|
@@ -507,28 +414,6 @@
|
|
|
507
414
|
}
|
|
508
415
|
}
|
|
509
416
|
|
|
510
|
-
/* Skeleton styles */
|
|
511
|
-
@layer components {
|
|
512
|
-
.skeleton {
|
|
513
|
-
transition: all 0.2s ease-in-out !important;
|
|
514
|
-
outline: none !important;
|
|
515
|
-
box-shadow: none !important;
|
|
516
|
-
border-color: transparent !important;
|
|
517
|
-
border-radius: var(--radius-md);
|
|
518
|
-
background-color: var(--color-secondary-background) !important;
|
|
519
|
-
resize: none !important;
|
|
520
|
-
pointer-events: none !important;
|
|
521
|
-
color: transparent !important;
|
|
522
|
-
&::placeholder,
|
|
523
|
-
&:placeholder-shown {
|
|
524
|
-
color: transparent !important;
|
|
525
|
-
}
|
|
526
|
-
& * {
|
|
527
|
-
visibility: hidden !important;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
417
|
/* Comments styles */
|
|
533
418
|
@layer components {
|
|
534
419
|
.comments__input {
|
|
@@ -543,87 +428,3 @@
|
|
|
543
428
|
column-gap: calc(var(--spacing) * 2);
|
|
544
429
|
}
|
|
545
430
|
}
|
|
546
|
-
|
|
547
|
-
/* Fields styles */
|
|
548
|
-
@layer components {
|
|
549
|
-
.fields__text-field {
|
|
550
|
-
grid-template-columns: auto 1fr auto;
|
|
551
|
-
grid-template-areas: "prefix input suffix";
|
|
552
|
-
&::before {
|
|
553
|
-
@apply pointer-events-none z-2 h-full border transform-3d;
|
|
554
|
-
grid-row: 1 / 2;
|
|
555
|
-
grid-column: 1 / 4;
|
|
556
|
-
border-radius: inherit;
|
|
557
|
-
content: "";
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.input__number {
|
|
562
|
-
grid-template-columns: auto auto 1fr auto auto;
|
|
563
|
-
grid-template-areas: "prefix-handler variable input action suffix-handler";
|
|
564
|
-
&::before {
|
|
565
|
-
@apply pointer-events-none z-3 rounded-md border;
|
|
566
|
-
grid-row: 1 / 2;
|
|
567
|
-
grid-column: 1 / 6;
|
|
568
|
-
content: "";
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
.input__number--default {
|
|
573
|
-
grid-template-rows: 1.5rem;
|
|
574
|
-
&::before {
|
|
575
|
-
@apply h-6;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.input__number--large {
|
|
580
|
-
grid-template-rows: 2rem;
|
|
581
|
-
&::before {
|
|
582
|
-
@apply h-8;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
.input-search {
|
|
587
|
-
@apply relative grid;
|
|
588
|
-
grid-template-columns: 1.5rem 1fr auto;
|
|
589
|
-
grid-template-areas: "icon input action";
|
|
590
|
-
&::before {
|
|
591
|
-
@apply pointer-events-none z-2 h-full rounded-md border border-transparent;
|
|
592
|
-
grid-row: 1 / 2;
|
|
593
|
-
grid-column: 1 / 4;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
/* Modal styles */
|
|
599
|
-
@layer components {
|
|
600
|
-
.modal__header {
|
|
601
|
-
@apply grid;
|
|
602
|
-
grid-template-rows: minmax(2.5rem, auto);
|
|
603
|
-
grid-template-areas: "title . close" "input input input";
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.modal__header--action {
|
|
607
|
-
grid-template-columns: auto 1fr 2.5rem;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
/* OTP Input styles */
|
|
612
|
-
@layer components {
|
|
613
|
-
.otp-input__caret {
|
|
614
|
-
animation: otp-caret-blink 1s ease-out infinite;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
@keyframes otp-caret-blink {
|
|
618
|
-
0%,
|
|
619
|
-
70%,
|
|
620
|
-
100% {
|
|
621
|
-
opacity: 1;
|
|
622
|
-
}
|
|
623
|
-
20%,
|
|
624
|
-
50% {
|
|
625
|
-
opacity: 0;
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
|
package/package.json
CHANGED