@economic/taco 0.0.13-alpha.0 → 0.0.14-alpha.0
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/{Label/Label.d.ts → Field/Field.d.ts} +9 -9
- package/dist/esm/components/{Label/Label.js → Field/Field.js} +3 -3
- package/dist/esm/components/Field/Field.js.map +1 -0
- package/dist/esm/components/Pagination/Pagination.js +56 -39
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/Popover/Popover.js +34 -29
- package/dist/esm/components/Popover/Popover.js.map +1 -1
- package/dist/esm/components/Progress/Progress.js +15 -11
- package/dist/esm/components/Progress/Progress.js.map +1 -1
- package/dist/esm/components/Provider/Provider.js +18 -13
- package/dist/esm/components/Provider/Provider.js.map +1 -1
- package/dist/esm/components/RadioGroup/RadioGroup.js +57 -45
- package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js +1 -1
- package/dist/esm/components/Select/Select.js +31 -30
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js +19 -12
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/Switch/Switch.js +10 -9
- package/dist/esm/components/Switch/Switch.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +27 -25
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Textarea/Textarea.js +6 -8
- package/dist/esm/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/components/Toast/Toaster.js +118 -88
- package/dist/esm/components/Toast/Toaster.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +8 -7
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/Tour/Tour.js +50 -44
- package/dist/esm/components/Tour/Tour.js.map +1 -1
- package/dist/esm/components/Treeview/Treeview.js +36 -26
- package/dist/esm/components/Treeview/Treeview.js.map +1 -1
- package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/dist/esm/index.css +4 -8
- package/dist/esm/index.js +1 -1
- package/dist/index.css +4 -8
- package/dist/index.d.ts +1 -1
- package/dist/taco.cjs.development.js +535 -449
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/dist/utils/tailwind.d.ts +1 -1
- package/package.json +2 -2
- package/types.json +116 -116
- package/dist/esm/components/Label/Label.js.map +0 -1
package/dist/utils/tailwind.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const getInputStateClasses: (state?:
|
1
|
+
export declare const getInputStateClasses: (state?: string | undefined) => string | false;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@economic/taco",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.14-alpha.0",
|
4
4
|
"description": "> TODO: description",
|
5
5
|
"author": "Matt Daly <matthew.daly@visma.com>",
|
6
6
|
"homepage": "https://github.com/e-conomic/taco#readme",
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"\\.css$": "identity-obj-proxy"
|
117
117
|
}
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "b538664c55a500bebc351bd5fe184038255d21a3"
|
120
120
|
}
|
package/types.json
CHANGED
@@ -328,7 +328,7 @@
|
|
328
328
|
"typeArguments": [
|
329
329
|
{
|
330
330
|
"type": "reference",
|
331
|
-
"id":
|
331
|
+
"id": 293,
|
332
332
|
"name": "HangerProps"
|
333
333
|
}
|
334
334
|
],
|
@@ -1516,13 +1516,85 @@
|
|
1516
1516
|
]
|
1517
1517
|
},
|
1518
1518
|
"DialogTitleProps": "React.HTMLAttributes<HTMLHeadingElement>",
|
1519
|
+
"FieldProps": {
|
1520
|
+
"intersections": [
|
1521
|
+
"React.LabelHTMLAttributes<HTMLLabelElement>"
|
1522
|
+
],
|
1523
|
+
"props": [
|
1524
|
+
{
|
1525
|
+
"id": 255,
|
1526
|
+
"name": "children",
|
1527
|
+
"kind": 1024,
|
1528
|
+
"kindString": "Property",
|
1529
|
+
"flags": {},
|
1530
|
+
"comment": {
|
1531
|
+
"shortText": "Content of the field"
|
1532
|
+
},
|
1533
|
+
"type": {
|
1534
|
+
"type": "reference",
|
1535
|
+
"qualifiedName": "React.ReactNode",
|
1536
|
+
"package": "@types/react",
|
1537
|
+
"name": "React.ReactNode"
|
1538
|
+
}
|
1539
|
+
},
|
1540
|
+
{
|
1541
|
+
"id": 256,
|
1542
|
+
"name": "disabled",
|
1543
|
+
"kind": 1024,
|
1544
|
+
"kindString": "Property",
|
1545
|
+
"flags": {
|
1546
|
+
"isOptional": true
|
1547
|
+
},
|
1548
|
+
"comment": {
|
1549
|
+
"shortText": "Changes the style to indicate the element is disabled"
|
1550
|
+
},
|
1551
|
+
"type": {
|
1552
|
+
"type": "intrinsic",
|
1553
|
+
"name": "boolean"
|
1554
|
+
}
|
1555
|
+
},
|
1556
|
+
{
|
1557
|
+
"id": 257,
|
1558
|
+
"name": "message",
|
1559
|
+
"kind": 1024,
|
1560
|
+
"kindString": "Property",
|
1561
|
+
"flags": {
|
1562
|
+
"isOptional": true
|
1563
|
+
},
|
1564
|
+
"comment": {
|
1565
|
+
"shortText": "Text displayed below the children of Field.\nShould be a short text that indicates feedback for user."
|
1566
|
+
},
|
1567
|
+
"type": {
|
1568
|
+
"type": "intrinsic",
|
1569
|
+
"name": "string"
|
1570
|
+
}
|
1571
|
+
},
|
1572
|
+
{
|
1573
|
+
"id": 258,
|
1574
|
+
"name": "state",
|
1575
|
+
"kind": 1024,
|
1576
|
+
"kindString": "Property",
|
1577
|
+
"flags": {
|
1578
|
+
"isOptional": true
|
1579
|
+
},
|
1580
|
+
"comment": {
|
1581
|
+
"shortText": "State will change the style of the field"
|
1582
|
+
},
|
1583
|
+
"type": {
|
1584
|
+
"type": "reference",
|
1585
|
+
"id": 4,
|
1586
|
+
"name": "State"
|
1587
|
+
}
|
1588
|
+
}
|
1589
|
+
]
|
1590
|
+
},
|
1519
1591
|
"FormProps": {
|
1520
1592
|
"intersections": [
|
1521
1593
|
"React.FormHTMLAttributes<HTMLFormElement>"
|
1522
1594
|
],
|
1523
1595
|
"props": [
|
1524
1596
|
{
|
1525
|
-
"id":
|
1597
|
+
"id": 267,
|
1526
1598
|
"name": "children",
|
1527
1599
|
"kind": 1024,
|
1528
1600
|
"kindString": "Property",
|
@@ -1538,7 +1610,7 @@
|
|
1538
1610
|
}
|
1539
1611
|
},
|
1540
1612
|
{
|
1541
|
-
"id":
|
1613
|
+
"id": 268,
|
1542
1614
|
"name": "horizontal",
|
1543
1615
|
"kind": 1024,
|
1544
1616
|
"kindString": "Property",
|
@@ -1838,7 +1910,7 @@
|
|
1838
1910
|
],
|
1839
1911
|
"props": [
|
1840
1912
|
{
|
1841
|
-
"id":
|
1913
|
+
"id": 298,
|
1842
1914
|
"name": "Anchor",
|
1843
1915
|
"kind": 1024,
|
1844
1916
|
"kindString": "Property",
|
@@ -1848,7 +1920,7 @@
|
|
1848
1920
|
"typeArguments": [
|
1849
1921
|
{
|
1850
1922
|
"type": "reference",
|
1851
|
-
"id":
|
1923
|
+
"id": 284,
|
1852
1924
|
"name": "HangerAnchorProps"
|
1853
1925
|
}
|
1854
1926
|
],
|
@@ -1858,7 +1930,7 @@
|
|
1858
1930
|
}
|
1859
1931
|
},
|
1860
1932
|
{
|
1861
|
-
"id":
|
1933
|
+
"id": 299,
|
1862
1934
|
"name": "Content",
|
1863
1935
|
"kind": 1024,
|
1864
1936
|
"kindString": "Property",
|
@@ -1868,7 +1940,7 @@
|
|
1868
1940
|
"typeArguments": [
|
1869
1941
|
{
|
1870
1942
|
"type": "reference",
|
1871
|
-
"id":
|
1943
|
+
"id": 289,
|
1872
1944
|
"name": "HangerContentProps"
|
1873
1945
|
}
|
1874
1946
|
],
|
@@ -2361,7 +2433,7 @@
|
|
2361
2433
|
],
|
2362
2434
|
"props": [
|
2363
2435
|
{
|
2364
|
-
"id":
|
2436
|
+
"id": 275,
|
2365
2437
|
"name": "as",
|
2366
2438
|
"kind": 1024,
|
2367
2439
|
"kindString": "Property",
|
@@ -2390,7 +2462,7 @@
|
|
2390
2462
|
}
|
2391
2463
|
},
|
2392
2464
|
{
|
2393
|
-
"id":
|
2465
|
+
"id": 276,
|
2394
2466
|
"name": "children",
|
2395
2467
|
"kind": 1024,
|
2396
2468
|
"kindString": "Property",
|
@@ -2414,7 +2486,7 @@
|
|
2414
2486
|
],
|
2415
2487
|
"props": [
|
2416
2488
|
{
|
2417
|
-
"id":
|
2489
|
+
"id": 291,
|
2418
2490
|
"name": "onClose",
|
2419
2491
|
"kind": 1024,
|
2420
2492
|
"kindString": "Property",
|
@@ -2426,12 +2498,12 @@
|
|
2426
2498
|
},
|
2427
2499
|
"type": {
|
2428
2500
|
"type": "reference",
|
2429
|
-
"id":
|
2501
|
+
"id": 285,
|
2430
2502
|
"name": "CloseHandler"
|
2431
2503
|
}
|
2432
2504
|
},
|
2433
2505
|
{
|
2434
|
-
"id":
|
2506
|
+
"id": 292,
|
2435
2507
|
"name": "placement",
|
2436
2508
|
"kind": 1024,
|
2437
2509
|
"kindString": "Property",
|
@@ -2453,7 +2525,7 @@
|
|
2453
2525
|
"HangerTexts": {
|
2454
2526
|
"props": [
|
2455
2527
|
{
|
2456
|
-
"id":
|
2528
|
+
"id": 283,
|
2457
2529
|
"name": "close",
|
2458
2530
|
"kind": 1024,
|
2459
2531
|
"kindString": "Property",
|
@@ -2474,7 +2546,7 @@
|
|
2474
2546
|
],
|
2475
2547
|
"props": [
|
2476
2548
|
{
|
2477
|
-
"id":
|
2549
|
+
"id": 311,
|
2478
2550
|
"name": "appearance",
|
2479
2551
|
"kind": 1024,
|
2480
2552
|
"kindString": "Property",
|
@@ -2491,7 +2563,7 @@
|
|
2491
2563
|
}
|
2492
2564
|
},
|
2493
2565
|
{
|
2494
|
-
"id":
|
2566
|
+
"id": 318,
|
2495
2567
|
"name": "icon",
|
2496
2568
|
"kind": 1024,
|
2497
2569
|
"kindString": "Property",
|
@@ -2501,12 +2573,12 @@
|
|
2501
2573
|
},
|
2502
2574
|
"type": {
|
2503
2575
|
"type": "reference",
|
2504
|
-
"id":
|
2576
|
+
"id": 302,
|
2505
2577
|
"name": "IconName"
|
2506
2578
|
}
|
2507
2579
|
},
|
2508
2580
|
{
|
2509
|
-
"id":
|
2581
|
+
"id": 325,
|
2510
2582
|
"name": "rounded",
|
2511
2583
|
"kind": 1024,
|
2512
2584
|
"kindString": "Property",
|
@@ -2522,7 +2594,7 @@
|
|
2522
2594
|
}
|
2523
2595
|
},
|
2524
2596
|
{
|
2525
|
-
"id":
|
2597
|
+
"id": 326,
|
2526
2598
|
"name": "tooltip",
|
2527
2599
|
"kind": 1024,
|
2528
2600
|
"kindString": "Property",
|
@@ -2538,7 +2610,7 @@
|
|
2538
2610
|
}
|
2539
2611
|
},
|
2540
2612
|
{
|
2541
|
-
"id":
|
2613
|
+
"id": 312,
|
2542
2614
|
"name": "dialog",
|
2543
2615
|
"kind": 2048,
|
2544
2616
|
"kindString": "Method",
|
@@ -2547,7 +2619,7 @@
|
|
2547
2619
|
},
|
2548
2620
|
"signatures": [
|
2549
2621
|
{
|
2550
|
-
"id":
|
2622
|
+
"id": 313,
|
2551
2623
|
"name": "dialog",
|
2552
2624
|
"kind": 4096,
|
2553
2625
|
"kindString": "Call signature",
|
@@ -2557,7 +2629,7 @@
|
|
2557
2629
|
},
|
2558
2630
|
"parameters": [
|
2559
2631
|
{
|
2560
|
-
"id":
|
2632
|
+
"id": 314,
|
2561
2633
|
"name": "props",
|
2562
2634
|
"kind": 32768,
|
2563
2635
|
"kindString": "Parameter",
|
@@ -2587,7 +2659,7 @@
|
|
2587
2659
|
]
|
2588
2660
|
},
|
2589
2661
|
{
|
2590
|
-
"id":
|
2662
|
+
"id": 315,
|
2591
2663
|
"name": "hanger",
|
2592
2664
|
"kind": 2048,
|
2593
2665
|
"kindString": "Method",
|
@@ -2596,7 +2668,7 @@
|
|
2596
2668
|
},
|
2597
2669
|
"signatures": [
|
2598
2670
|
{
|
2599
|
-
"id":
|
2671
|
+
"id": 316,
|
2600
2672
|
"name": "hanger",
|
2601
2673
|
"kind": 4096,
|
2602
2674
|
"kindString": "Call signature",
|
@@ -2606,7 +2678,7 @@
|
|
2606
2678
|
},
|
2607
2679
|
"parameters": [
|
2608
2680
|
{
|
2609
|
-
"id":
|
2681
|
+
"id": 317,
|
2610
2682
|
"name": "props",
|
2611
2683
|
"kind": 32768,
|
2612
2684
|
"kindString": "Parameter",
|
@@ -2616,7 +2688,7 @@
|
|
2616
2688
|
"typeArguments": [
|
2617
2689
|
{
|
2618
2690
|
"type": "reference",
|
2619
|
-
"id":
|
2691
|
+
"id": 293,
|
2620
2692
|
"name": "HangerProps"
|
2621
2693
|
}
|
2622
2694
|
],
|
@@ -2636,7 +2708,7 @@
|
|
2636
2708
|
]
|
2637
2709
|
},
|
2638
2710
|
{
|
2639
|
-
"id":
|
2711
|
+
"id": 319,
|
2640
2712
|
"name": "menu",
|
2641
2713
|
"kind": 2048,
|
2642
2714
|
"kindString": "Method",
|
@@ -2645,7 +2717,7 @@
|
|
2645
2717
|
},
|
2646
2718
|
"signatures": [
|
2647
2719
|
{
|
2648
|
-
"id":
|
2720
|
+
"id": 320,
|
2649
2721
|
"name": "menu",
|
2650
2722
|
"kind": 4096,
|
2651
2723
|
"kindString": "Call signature",
|
@@ -2655,7 +2727,7 @@
|
|
2655
2727
|
},
|
2656
2728
|
"parameters": [
|
2657
2729
|
{
|
2658
|
-
"id":
|
2730
|
+
"id": 321,
|
2659
2731
|
"name": "props",
|
2660
2732
|
"kind": 32768,
|
2661
2733
|
"kindString": "Parameter",
|
@@ -2685,7 +2757,7 @@
|
|
2685
2757
|
]
|
2686
2758
|
},
|
2687
2759
|
{
|
2688
|
-
"id":
|
2760
|
+
"id": 322,
|
2689
2761
|
"name": "popover",
|
2690
2762
|
"kind": 2048,
|
2691
2763
|
"kindString": "Method",
|
@@ -2694,7 +2766,7 @@
|
|
2694
2766
|
},
|
2695
2767
|
"signatures": [
|
2696
2768
|
{
|
2697
|
-
"id":
|
2769
|
+
"id": 323,
|
2698
2770
|
"name": "popover",
|
2699
2771
|
"kind": 4096,
|
2700
2772
|
"kindString": "Call signature",
|
@@ -2704,7 +2776,7 @@
|
|
2704
2776
|
},
|
2705
2777
|
"parameters": [
|
2706
2778
|
{
|
2707
|
-
"id":
|
2779
|
+
"id": 324,
|
2708
2780
|
"name": "props",
|
2709
2781
|
"kind": 32768,
|
2710
2782
|
"kindString": "Parameter",
|
@@ -3547,7 +3619,7 @@
|
|
3547
3619
|
],
|
3548
3620
|
"props": [
|
3549
3621
|
{
|
3550
|
-
"id":
|
3622
|
+
"id": 305,
|
3551
3623
|
"name": "name",
|
3552
3624
|
"kind": 1024,
|
3553
3625
|
"kindString": "Property",
|
@@ -3557,7 +3629,7 @@
|
|
3557
3629
|
},
|
3558
3630
|
"type": {
|
3559
3631
|
"type": "reference",
|
3560
|
-
"id":
|
3632
|
+
"id": 302,
|
3561
3633
|
"name": "IconName"
|
3562
3634
|
}
|
3563
3635
|
}
|
@@ -3569,7 +3641,7 @@
|
|
3569
3641
|
],
|
3570
3642
|
"props": [
|
3571
3643
|
{
|
3572
|
-
"id":
|
3644
|
+
"id": 347,
|
3573
3645
|
"name": "button",
|
3574
3646
|
"kind": 1024,
|
3575
3647
|
"kindString": "Property",
|
@@ -3587,7 +3659,7 @@
|
|
3587
3659
|
}
|
3588
3660
|
},
|
3589
3661
|
{
|
3590
|
-
"id":
|
3662
|
+
"id": 349,
|
3591
3663
|
"name": "highlighted",
|
3592
3664
|
"kind": 1024,
|
3593
3665
|
"kindString": "Property",
|
@@ -3603,7 +3675,7 @@
|
|
3603
3675
|
}
|
3604
3676
|
},
|
3605
3677
|
{
|
3606
|
-
"id":
|
3678
|
+
"id": 348,
|
3607
3679
|
"name": "icon",
|
3608
3680
|
"kind": 1024,
|
3609
3681
|
"kindString": "Property",
|
@@ -3618,7 +3690,7 @@
|
|
3618
3690
|
"types": [
|
3619
3691
|
{
|
3620
3692
|
"type": "reference",
|
3621
|
-
"id":
|
3693
|
+
"id": 302,
|
3622
3694
|
"name": "IconName"
|
3623
3695
|
},
|
3624
3696
|
{
|
@@ -3631,7 +3703,7 @@
|
|
3631
3703
|
}
|
3632
3704
|
},
|
3633
3705
|
{
|
3634
|
-
"id":
|
3706
|
+
"id": 350,
|
3635
3707
|
"name": "state",
|
3636
3708
|
"kind": 1024,
|
3637
3709
|
"kindString": "Property",
|
@@ -3649,78 +3721,6 @@
|
|
3649
3721
|
}
|
3650
3722
|
]
|
3651
3723
|
},
|
3652
|
-
"LabelProps": {
|
3653
|
-
"intersections": [
|
3654
|
-
"React.LabelHTMLAttributes<HTMLLabelElement>"
|
3655
|
-
],
|
3656
|
-
"props": [
|
3657
|
-
{
|
3658
|
-
"id": 360,
|
3659
|
-
"name": "children",
|
3660
|
-
"kind": 1024,
|
3661
|
-
"kindString": "Property",
|
3662
|
-
"flags": {},
|
3663
|
-
"comment": {
|
3664
|
-
"shortText": "Content of the label"
|
3665
|
-
},
|
3666
|
-
"type": {
|
3667
|
-
"type": "reference",
|
3668
|
-
"qualifiedName": "React.ReactNode",
|
3669
|
-
"package": "@types/react",
|
3670
|
-
"name": "React.ReactNode"
|
3671
|
-
}
|
3672
|
-
},
|
3673
|
-
{
|
3674
|
-
"id": 361,
|
3675
|
-
"name": "disabled",
|
3676
|
-
"kind": 1024,
|
3677
|
-
"kindString": "Property",
|
3678
|
-
"flags": {
|
3679
|
-
"isOptional": true
|
3680
|
-
},
|
3681
|
-
"comment": {
|
3682
|
-
"shortText": "Changes the style to indicate the element is disabled"
|
3683
|
-
},
|
3684
|
-
"type": {
|
3685
|
-
"type": "intrinsic",
|
3686
|
-
"name": "boolean"
|
3687
|
-
}
|
3688
|
-
},
|
3689
|
-
{
|
3690
|
-
"id": 362,
|
3691
|
-
"name": "message",
|
3692
|
-
"kind": 1024,
|
3693
|
-
"kindString": "Property",
|
3694
|
-
"flags": {
|
3695
|
-
"isOptional": true
|
3696
|
-
},
|
3697
|
-
"comment": {
|
3698
|
-
"shortText": "Text displayed below the children of Label.\nShould be a short text that indicates feedback for user."
|
3699
|
-
},
|
3700
|
-
"type": {
|
3701
|
-
"type": "intrinsic",
|
3702
|
-
"name": "string"
|
3703
|
-
}
|
3704
|
-
},
|
3705
|
-
{
|
3706
|
-
"id": 363,
|
3707
|
-
"name": "state",
|
3708
|
-
"kind": 1024,
|
3709
|
-
"kindString": "Property",
|
3710
|
-
"flags": {
|
3711
|
-
"isOptional": true
|
3712
|
-
},
|
3713
|
-
"comment": {
|
3714
|
-
"shortText": "State will change the style of the label"
|
3715
|
-
},
|
3716
|
-
"type": {
|
3717
|
-
"type": "reference",
|
3718
|
-
"id": 4,
|
3719
|
-
"name": "State"
|
3720
|
-
}
|
3721
|
-
}
|
3722
|
-
]
|
3723
|
-
},
|
3724
3724
|
"ListboxItem": "ScrollableListItem",
|
3725
3725
|
"ListboxProps": {
|
3726
3726
|
"intersections": [
|
@@ -4034,7 +4034,7 @@
|
|
4034
4034
|
},
|
4035
4035
|
"type": {
|
4036
4036
|
"type": "reference",
|
4037
|
-
"id":
|
4037
|
+
"id": 281,
|
4038
4038
|
"name": "HangerTexts"
|
4039
4039
|
}
|
4040
4040
|
},
|
@@ -4079,7 +4079,7 @@
|
|
4079
4079
|
},
|
4080
4080
|
"type": {
|
4081
4081
|
"type": "reference",
|
4082
|
-
"id":
|
4082
|
+
"id": 357,
|
4083
4083
|
"name": "SearchInputTexts"
|
4084
4084
|
}
|
4085
4085
|
},
|
@@ -4915,7 +4915,7 @@
|
|
4915
4915
|
],
|
4916
4916
|
"props": [
|
4917
4917
|
{
|
4918
|
-
"id":
|
4918
|
+
"id": 362,
|
4919
4919
|
"name": "onSearch",
|
4920
4920
|
"kind": 2048,
|
4921
4921
|
"kindString": "Method",
|
@@ -4924,7 +4924,7 @@
|
|
4924
4924
|
},
|
4925
4925
|
"signatures": [
|
4926
4926
|
{
|
4927
|
-
"id":
|
4927
|
+
"id": 363,
|
4928
4928
|
"name": "onSearch",
|
4929
4929
|
"kind": 4096,
|
4930
4930
|
"kindString": "Call signature",
|
@@ -4934,7 +4934,7 @@
|
|
4934
4934
|
},
|
4935
4935
|
"parameters": [
|
4936
4936
|
{
|
4937
|
-
"id":
|
4937
|
+
"id": 364,
|
4938
4938
|
"name": "value",
|
4939
4939
|
"kind": 32768,
|
4940
4940
|
"kindString": "Parameter",
|
@@ -4981,7 +4981,7 @@
|
|
4981
4981
|
"SearchInputTexts": {
|
4982
4982
|
"props": [
|
4983
4983
|
{
|
4984
|
-
"id":
|
4984
|
+
"id": 359,
|
4985
4985
|
"name": "inputLabel",
|
4986
4986
|
"kind": 1024,
|
4987
4987
|
"kindString": "Property",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Label.js","sources":["../../../../src/components/Label/Label.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport cn from 'classnames';\r\nimport { State } from '../../types';\r\nimport './Label.css';\r\n\r\nexport type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement> & {\r\n /** Content of the label */\r\n children: React.ReactNode;\r\n /**\tChanges the style to indicate the element is disabled */\r\n disabled?: boolean;\r\n /**\r\n * Text displayed below the children of Label.\r\n * Should be a short text that indicates feedback for user.\r\n */\r\n message?: string;\r\n /** State will change the style of the label */\r\n state?: State;\r\n};\r\n\r\nexport const Label = React.forwardRef(function Label(props: LabelProps, ref: React.Ref<HTMLLabelElement>) {\r\n const { disabled, children, message, state, ...otherProps } = props;\r\n const className = cn(\r\n 'flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]',\r\n {\r\n 'text-grey-dark': disabled,\r\n },\r\n props.className\r\n );\r\n const messageClassName = cn(\r\n 'h-4 text-xs text-left leading-normal font-normal truncate -mb-4',\r\n {\r\n 'text-grey-darkest': !state || state === 'default',\r\n 'text-red': state === 'error',\r\n 'text-green': state === 'success',\r\n 'text-blue': state === 'information',\r\n 'text-yellow-dark': state === 'warning',\r\n 'opacity-50': disabled,\r\n },\r\n props.className\r\n );\r\n\r\n return (\r\n <label {...otherProps} className={className} data-taco=\"label\" ref={ref}>\r\n {children}\r\n {message && (\r\n <span className={messageClassName} role={state === 'error' ? 'alert' : undefined}>\r\n {message}\r\n </span>\r\n )}\r\n </label>\r\n );\r\n});\r\n"],"names":["Label","React","props","ref","disabled","children","message","state","otherProps","className","cn","messageClassName","role","undefined"],"mappings":";;;;;IAmBaA,KAAK,gBAAGC,UAAA,CAAiB,SAASD,KAAT,CAAeE,KAAf,EAAkCC,GAAlC;AAClC,MAAQC,QAAR,GAA8DF,KAA9D,CAAQE,QAAR;AAAA,MAAkBC,QAAlB,GAA8DH,KAA9D,CAAkBG,QAAlB;AAAA,MAA4BC,OAA5B,GAA8DJ,KAA9D,CAA4BI,OAA5B;AAAA,MAAqCC,KAArC,GAA8DL,KAA9D,CAAqCK,KAArC;AAAA,MAA+CC,UAA/C,iCAA8DN,KAA9D;;AACA,MAAMO,SAAS,GAAGC,EAAE,CAChB,8EADgB,EAEhB;AACI,sBAAkBN;AADtB,GAFgB,EAKhBF,KAAK,CAACO,SALU,CAApB;AAOA,MAAME,gBAAgB,GAAGD,EAAE,CACvB,iEADuB,EAEvB;AACI,yBAAqB,CAACH,KAAD,IAAUA,KAAK,KAAK,SAD7C;AAEI,gBAAYA,KAAK,KAAK,OAF1B;AAGI,kBAAcA,KAAK,KAAK,SAH5B;AAII,iBAAaA,KAAK,KAAK,aAJ3B;AAKI,wBAAoBA,KAAK,KAAK,SALlC;AAMI,kBAAcH;AANlB,GAFuB,EAUvBF,KAAK,CAACO,SAViB,CAA3B;AAaA,SACIR,aAAA,QAAA,oBAAWO;AAAYC,IAAAA,SAAS,EAAEA;iBAAqB;AAAQN,IAAAA,GAAG,EAAEA;IAApE,EACKE,QADL,EAEKC,OAAO,IACJL,aAAA,OAAA;AAAMQ,IAAAA,SAAS,EAAEE;AAAkBC,IAAAA,IAAI,EAAEL,KAAK,KAAK,OAAV,GAAoB,OAApB,GAA8BM;GAAvE,EACKP,OADL,CAHR,CADJ;AAUH,CAhCoB;;;;"}
|