@umami/react-zen 0.220.0 → 0.222.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/index.d.mts +19 -8
- package/dist/index.d.ts +19 -8
- package/dist/index.js +618 -169
- package/dist/index.mjs +546 -97
- package/package.json +1 -1
- package/styles.full.css +1 -1
package/dist/index.mjs
CHANGED
|
@@ -31493,6 +31493,373 @@ function getCssColorValue(value) {
|
|
|
31493
31493
|
}
|
|
31494
31494
|
return void 0;
|
|
31495
31495
|
}
|
|
31496
|
+
var widthMap = {
|
|
31497
|
+
// Spacing scale
|
|
31498
|
+
"0": "w-0",
|
|
31499
|
+
px: "w-px",
|
|
31500
|
+
"0.5": "w-0.5",
|
|
31501
|
+
"1": "w-1",
|
|
31502
|
+
"1.5": "w-1.5",
|
|
31503
|
+
"2": "w-2",
|
|
31504
|
+
"2.5": "w-2.5",
|
|
31505
|
+
"3": "w-3",
|
|
31506
|
+
"3.5": "w-3.5",
|
|
31507
|
+
"4": "w-4",
|
|
31508
|
+
"5": "w-5",
|
|
31509
|
+
"6": "w-6",
|
|
31510
|
+
"7": "w-7",
|
|
31511
|
+
"8": "w-8",
|
|
31512
|
+
"9": "w-9",
|
|
31513
|
+
"10": "w-10",
|
|
31514
|
+
"11": "w-11",
|
|
31515
|
+
"12": "w-12",
|
|
31516
|
+
"14": "w-14",
|
|
31517
|
+
"16": "w-16",
|
|
31518
|
+
"20": "w-20",
|
|
31519
|
+
"24": "w-24",
|
|
31520
|
+
"28": "w-28",
|
|
31521
|
+
"32": "w-32",
|
|
31522
|
+
"36": "w-36",
|
|
31523
|
+
"40": "w-40",
|
|
31524
|
+
"44": "w-44",
|
|
31525
|
+
"48": "w-48",
|
|
31526
|
+
"52": "w-52",
|
|
31527
|
+
"56": "w-56",
|
|
31528
|
+
"60": "w-60",
|
|
31529
|
+
"64": "w-64",
|
|
31530
|
+
"72": "w-72",
|
|
31531
|
+
"80": "w-80",
|
|
31532
|
+
"96": "w-96",
|
|
31533
|
+
// Fractions
|
|
31534
|
+
"1/2": "w-1/2",
|
|
31535
|
+
"1/3": "w-1/3",
|
|
31536
|
+
"2/3": "w-2/3",
|
|
31537
|
+
"1/4": "w-1/4",
|
|
31538
|
+
"2/4": "w-2/4",
|
|
31539
|
+
"3/4": "w-3/4",
|
|
31540
|
+
"1/5": "w-1/5",
|
|
31541
|
+
"2/5": "w-2/5",
|
|
31542
|
+
"3/5": "w-3/5",
|
|
31543
|
+
"4/5": "w-4/5",
|
|
31544
|
+
"1/6": "w-1/6",
|
|
31545
|
+
"2/6": "w-2/6",
|
|
31546
|
+
"3/6": "w-3/6",
|
|
31547
|
+
"4/6": "w-4/6",
|
|
31548
|
+
"5/6": "w-5/6",
|
|
31549
|
+
"1/12": "w-1/12",
|
|
31550
|
+
"2/12": "w-2/12",
|
|
31551
|
+
"3/12": "w-3/12",
|
|
31552
|
+
"4/12": "w-4/12",
|
|
31553
|
+
"5/12": "w-5/12",
|
|
31554
|
+
"6/12": "w-6/12",
|
|
31555
|
+
"7/12": "w-7/12",
|
|
31556
|
+
"8/12": "w-8/12",
|
|
31557
|
+
"9/12": "w-9/12",
|
|
31558
|
+
"10/12": "w-10/12",
|
|
31559
|
+
"11/12": "w-11/12",
|
|
31560
|
+
// Special values
|
|
31561
|
+
auto: "w-auto",
|
|
31562
|
+
full: "w-full",
|
|
31563
|
+
screen: "w-screen",
|
|
31564
|
+
svw: "w-svw",
|
|
31565
|
+
lvw: "w-lvw",
|
|
31566
|
+
dvw: "w-dvw",
|
|
31567
|
+
min: "w-min",
|
|
31568
|
+
max: "w-max",
|
|
31569
|
+
fit: "w-fit"
|
|
31570
|
+
};
|
|
31571
|
+
var heightMap = {
|
|
31572
|
+
// Spacing scale
|
|
31573
|
+
"0": "h-0",
|
|
31574
|
+
px: "h-px",
|
|
31575
|
+
"0.5": "h-0.5",
|
|
31576
|
+
"1": "h-1",
|
|
31577
|
+
"1.5": "h-1.5",
|
|
31578
|
+
"2": "h-2",
|
|
31579
|
+
"2.5": "h-2.5",
|
|
31580
|
+
"3": "h-3",
|
|
31581
|
+
"3.5": "h-3.5",
|
|
31582
|
+
"4": "h-4",
|
|
31583
|
+
"5": "h-5",
|
|
31584
|
+
"6": "h-6",
|
|
31585
|
+
"7": "h-7",
|
|
31586
|
+
"8": "h-8",
|
|
31587
|
+
"9": "h-9",
|
|
31588
|
+
"10": "h-10",
|
|
31589
|
+
"11": "h-11",
|
|
31590
|
+
"12": "h-12",
|
|
31591
|
+
"14": "h-14",
|
|
31592
|
+
"16": "h-16",
|
|
31593
|
+
"20": "h-20",
|
|
31594
|
+
"24": "h-24",
|
|
31595
|
+
"28": "h-28",
|
|
31596
|
+
"32": "h-32",
|
|
31597
|
+
"36": "h-36",
|
|
31598
|
+
"40": "h-40",
|
|
31599
|
+
"44": "h-44",
|
|
31600
|
+
"48": "h-48",
|
|
31601
|
+
"52": "h-52",
|
|
31602
|
+
"56": "h-56",
|
|
31603
|
+
"60": "h-60",
|
|
31604
|
+
"64": "h-64",
|
|
31605
|
+
"72": "h-72",
|
|
31606
|
+
"80": "h-80",
|
|
31607
|
+
"96": "h-96",
|
|
31608
|
+
// Fractions
|
|
31609
|
+
"1/2": "h-1/2",
|
|
31610
|
+
"1/3": "h-1/3",
|
|
31611
|
+
"2/3": "h-2/3",
|
|
31612
|
+
"1/4": "h-1/4",
|
|
31613
|
+
"2/4": "h-2/4",
|
|
31614
|
+
"3/4": "h-3/4",
|
|
31615
|
+
"1/5": "h-1/5",
|
|
31616
|
+
"2/5": "h-2/5",
|
|
31617
|
+
"3/5": "h-3/5",
|
|
31618
|
+
"4/5": "h-4/5",
|
|
31619
|
+
"1/6": "h-1/6",
|
|
31620
|
+
"2/6": "h-2/6",
|
|
31621
|
+
"3/6": "h-3/6",
|
|
31622
|
+
"4/6": "h-4/6",
|
|
31623
|
+
"5/6": "h-5/6",
|
|
31624
|
+
// Special values
|
|
31625
|
+
auto: "h-auto",
|
|
31626
|
+
full: "h-full",
|
|
31627
|
+
screen: "h-screen",
|
|
31628
|
+
svh: "h-svh",
|
|
31629
|
+
lvh: "h-lvh",
|
|
31630
|
+
dvh: "h-dvh",
|
|
31631
|
+
min: "h-min",
|
|
31632
|
+
max: "h-max",
|
|
31633
|
+
fit: "h-fit"
|
|
31634
|
+
};
|
|
31635
|
+
var minWidthMap = {
|
|
31636
|
+
"0": "min-w-0",
|
|
31637
|
+
px: "min-w-px",
|
|
31638
|
+
"0.5": "min-w-0.5",
|
|
31639
|
+
"1": "min-w-1",
|
|
31640
|
+
"1.5": "min-w-1.5",
|
|
31641
|
+
"2": "min-w-2",
|
|
31642
|
+
"2.5": "min-w-2.5",
|
|
31643
|
+
"3": "min-w-3",
|
|
31644
|
+
"3.5": "min-w-3.5",
|
|
31645
|
+
"4": "min-w-4",
|
|
31646
|
+
"5": "min-w-5",
|
|
31647
|
+
"6": "min-w-6",
|
|
31648
|
+
"7": "min-w-7",
|
|
31649
|
+
"8": "min-w-8",
|
|
31650
|
+
"9": "min-w-9",
|
|
31651
|
+
"10": "min-w-10",
|
|
31652
|
+
"11": "min-w-11",
|
|
31653
|
+
"12": "min-w-12",
|
|
31654
|
+
"14": "min-w-14",
|
|
31655
|
+
"16": "min-w-16",
|
|
31656
|
+
"20": "min-w-20",
|
|
31657
|
+
"24": "min-w-24",
|
|
31658
|
+
"28": "min-w-28",
|
|
31659
|
+
"32": "min-w-32",
|
|
31660
|
+
"36": "min-w-36",
|
|
31661
|
+
"40": "min-w-40",
|
|
31662
|
+
"44": "min-w-44",
|
|
31663
|
+
"48": "min-w-48",
|
|
31664
|
+
"52": "min-w-52",
|
|
31665
|
+
"56": "min-w-56",
|
|
31666
|
+
"60": "min-w-60",
|
|
31667
|
+
"64": "min-w-64",
|
|
31668
|
+
"72": "min-w-72",
|
|
31669
|
+
"80": "min-w-80",
|
|
31670
|
+
"96": "min-w-96",
|
|
31671
|
+
full: "min-w-full",
|
|
31672
|
+
min: "min-w-min",
|
|
31673
|
+
max: "min-w-max",
|
|
31674
|
+
fit: "min-w-fit"
|
|
31675
|
+
};
|
|
31676
|
+
var maxWidthMap = {
|
|
31677
|
+
"0": "max-w-0",
|
|
31678
|
+
px: "max-w-px",
|
|
31679
|
+
"0.5": "max-w-0.5",
|
|
31680
|
+
"1": "max-w-1",
|
|
31681
|
+
"1.5": "max-w-1.5",
|
|
31682
|
+
"2": "max-w-2",
|
|
31683
|
+
"2.5": "max-w-2.5",
|
|
31684
|
+
"3": "max-w-3",
|
|
31685
|
+
"3.5": "max-w-3.5",
|
|
31686
|
+
"4": "max-w-4",
|
|
31687
|
+
"5": "max-w-5",
|
|
31688
|
+
"6": "max-w-6",
|
|
31689
|
+
"7": "max-w-7",
|
|
31690
|
+
"8": "max-w-8",
|
|
31691
|
+
"9": "max-w-9",
|
|
31692
|
+
"10": "max-w-10",
|
|
31693
|
+
"11": "max-w-11",
|
|
31694
|
+
"12": "max-w-12",
|
|
31695
|
+
"14": "max-w-14",
|
|
31696
|
+
"16": "max-w-16",
|
|
31697
|
+
"20": "max-w-20",
|
|
31698
|
+
"24": "max-w-24",
|
|
31699
|
+
"28": "max-w-28",
|
|
31700
|
+
"32": "max-w-32",
|
|
31701
|
+
"36": "max-w-36",
|
|
31702
|
+
"40": "max-w-40",
|
|
31703
|
+
"44": "max-w-44",
|
|
31704
|
+
"48": "max-w-48",
|
|
31705
|
+
"52": "max-w-52",
|
|
31706
|
+
"56": "max-w-56",
|
|
31707
|
+
"60": "max-w-60",
|
|
31708
|
+
"64": "max-w-64",
|
|
31709
|
+
"72": "max-w-72",
|
|
31710
|
+
"80": "max-w-80",
|
|
31711
|
+
"96": "max-w-96",
|
|
31712
|
+
// Container sizes
|
|
31713
|
+
none: "max-w-none",
|
|
31714
|
+
xs: "max-w-xs",
|
|
31715
|
+
sm: "max-w-sm",
|
|
31716
|
+
md: "max-w-md",
|
|
31717
|
+
lg: "max-w-lg",
|
|
31718
|
+
xl: "max-w-xl",
|
|
31719
|
+
"2xl": "max-w-2xl",
|
|
31720
|
+
"3xl": "max-w-3xl",
|
|
31721
|
+
"4xl": "max-w-4xl",
|
|
31722
|
+
"5xl": "max-w-5xl",
|
|
31723
|
+
"6xl": "max-w-6xl",
|
|
31724
|
+
"7xl": "max-w-7xl",
|
|
31725
|
+
full: "max-w-full",
|
|
31726
|
+
min: "max-w-min",
|
|
31727
|
+
max: "max-w-max",
|
|
31728
|
+
fit: "max-w-fit",
|
|
31729
|
+
prose: "max-w-prose",
|
|
31730
|
+
"screen-sm": "max-w-screen-sm",
|
|
31731
|
+
"screen-md": "max-w-screen-md",
|
|
31732
|
+
"screen-lg": "max-w-screen-lg",
|
|
31733
|
+
"screen-xl": "max-w-screen-xl",
|
|
31734
|
+
"screen-2xl": "max-w-screen-2xl"
|
|
31735
|
+
};
|
|
31736
|
+
var minHeightMap = {
|
|
31737
|
+
"0": "min-h-0",
|
|
31738
|
+
px: "min-h-px",
|
|
31739
|
+
"0.5": "min-h-0.5",
|
|
31740
|
+
"1": "min-h-1",
|
|
31741
|
+
"1.5": "min-h-1.5",
|
|
31742
|
+
"2": "min-h-2",
|
|
31743
|
+
"2.5": "min-h-2.5",
|
|
31744
|
+
"3": "min-h-3",
|
|
31745
|
+
"3.5": "min-h-3.5",
|
|
31746
|
+
"4": "min-h-4",
|
|
31747
|
+
"5": "min-h-5",
|
|
31748
|
+
"6": "min-h-6",
|
|
31749
|
+
"7": "min-h-7",
|
|
31750
|
+
"8": "min-h-8",
|
|
31751
|
+
"9": "min-h-9",
|
|
31752
|
+
"10": "min-h-10",
|
|
31753
|
+
"11": "min-h-11",
|
|
31754
|
+
"12": "min-h-12",
|
|
31755
|
+
"14": "min-h-14",
|
|
31756
|
+
"16": "min-h-16",
|
|
31757
|
+
"20": "min-h-20",
|
|
31758
|
+
"24": "min-h-24",
|
|
31759
|
+
"28": "min-h-28",
|
|
31760
|
+
"32": "min-h-32",
|
|
31761
|
+
"36": "min-h-36",
|
|
31762
|
+
"40": "min-h-40",
|
|
31763
|
+
"44": "min-h-44",
|
|
31764
|
+
"48": "min-h-48",
|
|
31765
|
+
"52": "min-h-52",
|
|
31766
|
+
"56": "min-h-56",
|
|
31767
|
+
"60": "min-h-60",
|
|
31768
|
+
"64": "min-h-64",
|
|
31769
|
+
"72": "min-h-72",
|
|
31770
|
+
"80": "min-h-80",
|
|
31771
|
+
"96": "min-h-96",
|
|
31772
|
+
full: "min-h-full",
|
|
31773
|
+
screen: "min-h-screen",
|
|
31774
|
+
svh: "min-h-svh",
|
|
31775
|
+
lvh: "min-h-lvh",
|
|
31776
|
+
dvh: "min-h-dvh",
|
|
31777
|
+
min: "min-h-min",
|
|
31778
|
+
max: "min-h-max",
|
|
31779
|
+
fit: "min-h-fit"
|
|
31780
|
+
};
|
|
31781
|
+
var maxHeightMap = {
|
|
31782
|
+
"0": "max-h-0",
|
|
31783
|
+
px: "max-h-px",
|
|
31784
|
+
"0.5": "max-h-0.5",
|
|
31785
|
+
"1": "max-h-1",
|
|
31786
|
+
"1.5": "max-h-1.5",
|
|
31787
|
+
"2": "max-h-2",
|
|
31788
|
+
"2.5": "max-h-2.5",
|
|
31789
|
+
"3": "max-h-3",
|
|
31790
|
+
"3.5": "max-h-3.5",
|
|
31791
|
+
"4": "max-h-4",
|
|
31792
|
+
"5": "max-h-5",
|
|
31793
|
+
"6": "max-h-6",
|
|
31794
|
+
"7": "max-h-7",
|
|
31795
|
+
"8": "max-h-8",
|
|
31796
|
+
"9": "max-h-9",
|
|
31797
|
+
"10": "max-h-10",
|
|
31798
|
+
"11": "max-h-11",
|
|
31799
|
+
"12": "max-h-12",
|
|
31800
|
+
"14": "max-h-14",
|
|
31801
|
+
"16": "max-h-16",
|
|
31802
|
+
"20": "max-h-20",
|
|
31803
|
+
"24": "max-h-24",
|
|
31804
|
+
"28": "max-h-28",
|
|
31805
|
+
"32": "max-h-32",
|
|
31806
|
+
"36": "max-h-36",
|
|
31807
|
+
"40": "max-h-40",
|
|
31808
|
+
"44": "max-h-44",
|
|
31809
|
+
"48": "max-h-48",
|
|
31810
|
+
"52": "max-h-52",
|
|
31811
|
+
"56": "max-h-56",
|
|
31812
|
+
"60": "max-h-60",
|
|
31813
|
+
"64": "max-h-64",
|
|
31814
|
+
"72": "max-h-72",
|
|
31815
|
+
"80": "max-h-80",
|
|
31816
|
+
"96": "max-h-96",
|
|
31817
|
+
none: "max-h-none",
|
|
31818
|
+
full: "max-h-full",
|
|
31819
|
+
screen: "max-h-screen",
|
|
31820
|
+
svh: "max-h-svh",
|
|
31821
|
+
lvh: "max-h-lvh",
|
|
31822
|
+
dvh: "max-h-dvh",
|
|
31823
|
+
min: "max-h-min",
|
|
31824
|
+
max: "max-h-max",
|
|
31825
|
+
fit: "max-h-fit"
|
|
31826
|
+
};
|
|
31827
|
+
function mapWidth(value) {
|
|
31828
|
+
return mapResponsive(value, (v) => widthMap[v]);
|
|
31829
|
+
}
|
|
31830
|
+
function mapHeight(value) {
|
|
31831
|
+
return mapResponsive(value, (v) => heightMap[v]);
|
|
31832
|
+
}
|
|
31833
|
+
function mapMinWidth(value) {
|
|
31834
|
+
return mapResponsive(value, (v) => minWidthMap[v]);
|
|
31835
|
+
}
|
|
31836
|
+
function mapMaxWidth(value) {
|
|
31837
|
+
return mapResponsive(value, (v) => maxWidthMap[v]);
|
|
31838
|
+
}
|
|
31839
|
+
function mapMinHeight(value) {
|
|
31840
|
+
return mapResponsive(value, (v) => minHeightMap[v]);
|
|
31841
|
+
}
|
|
31842
|
+
function mapMaxHeight(value) {
|
|
31843
|
+
return mapResponsive(value, (v) => maxHeightMap[v]);
|
|
31844
|
+
}
|
|
31845
|
+
function isWidthPreset(value) {
|
|
31846
|
+
return value in widthMap;
|
|
31847
|
+
}
|
|
31848
|
+
function isHeightPreset(value) {
|
|
31849
|
+
return value in heightMap;
|
|
31850
|
+
}
|
|
31851
|
+
function isMinWidthPreset(value) {
|
|
31852
|
+
return value in minWidthMap;
|
|
31853
|
+
}
|
|
31854
|
+
function isMaxWidthPreset(value) {
|
|
31855
|
+
return value in maxWidthMap;
|
|
31856
|
+
}
|
|
31857
|
+
function isMinHeightPreset(value) {
|
|
31858
|
+
return value in minHeightMap;
|
|
31859
|
+
}
|
|
31860
|
+
function isMaxHeightPreset(value) {
|
|
31861
|
+
return value in maxHeightMap;
|
|
31862
|
+
}
|
|
31496
31863
|
|
|
31497
31864
|
// src/components/Icon.tsx
|
|
31498
31865
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
@@ -31728,6 +32095,11 @@ var Box = forwardRef3(function Box2({
|
|
|
31728
32095
|
...props
|
|
31729
32096
|
}, ref) {
|
|
31730
32097
|
const Component = as;
|
|
32098
|
+
const getSizingStyle = (value, isPreset) => {
|
|
32099
|
+
if (!value) return void 0;
|
|
32100
|
+
if (typeof value === "string" && !isPreset(value)) return value;
|
|
32101
|
+
return void 0;
|
|
32102
|
+
};
|
|
31731
32103
|
const classes = cn(
|
|
31732
32104
|
mapDisplay(display),
|
|
31733
32105
|
mapTextColor(toStringValue(color)),
|
|
@@ -31753,6 +32125,12 @@ var Box = forwardRef3(function Box2({
|
|
|
31753
32125
|
mapMargin(marginRight, "r"),
|
|
31754
32126
|
mapMargin(marginBottom, "b"),
|
|
31755
32127
|
mapMargin(marginLeft, "l"),
|
|
32128
|
+
mapWidth(width),
|
|
32129
|
+
mapMinWidth(minWidth),
|
|
32130
|
+
mapMaxWidth(maxWidth),
|
|
32131
|
+
mapHeight(height),
|
|
32132
|
+
mapMinHeight(minHeight),
|
|
32133
|
+
mapMaxHeight(maxHeight),
|
|
31756
32134
|
mapPosition(position),
|
|
31757
32135
|
mapTextAlign(textAlign),
|
|
31758
32136
|
mapOverflow(overflow),
|
|
@@ -31765,14 +32143,20 @@ var Box = forwardRef3(function Box2({
|
|
|
31765
32143
|
theme && `${theme}-theme`,
|
|
31766
32144
|
className
|
|
31767
32145
|
);
|
|
32146
|
+
const widthStyle = getSizingStyle(width, isWidthPreset);
|
|
32147
|
+
const minWidthStyle = getSizingStyle(minWidth, isMinWidthPreset);
|
|
32148
|
+
const maxWidthStyle = getSizingStyle(maxWidth, isMaxWidthPreset);
|
|
32149
|
+
const heightStyle = getSizingStyle(height, isHeightPreset);
|
|
32150
|
+
const minHeightStyle = getSizingStyle(minHeight, isMinHeightPreset);
|
|
32151
|
+
const maxHeightStyle = getSizingStyle(maxHeight, isMaxHeightPreset);
|
|
31768
32152
|
const inlineStyles = {
|
|
31769
32153
|
...style,
|
|
31770
|
-
...
|
|
31771
|
-
...
|
|
31772
|
-
...
|
|
31773
|
-
...
|
|
31774
|
-
...
|
|
31775
|
-
...
|
|
32154
|
+
...widthStyle && { width: widthStyle },
|
|
32155
|
+
...minWidthStyle && { minWidth: minWidthStyle },
|
|
32156
|
+
...maxWidthStyle && { maxWidth: maxWidthStyle },
|
|
32157
|
+
...heightStyle && { height: heightStyle },
|
|
32158
|
+
...minHeightStyle && { minHeight: minHeightStyle },
|
|
32159
|
+
...maxHeightStyle && { maxHeight: maxHeightStyle },
|
|
31776
32160
|
...top && { top },
|
|
31777
32161
|
...right && { right },
|
|
31778
32162
|
...bottom && { bottom },
|
|
@@ -32521,10 +32905,70 @@ function Container({
|
|
|
32521
32905
|
}
|
|
32522
32906
|
|
|
32523
32907
|
// src/components/DataCard.tsx
|
|
32524
|
-
import { Fragment as
|
|
32908
|
+
import { Fragment as Fragment7 } from "react";
|
|
32525
32909
|
|
|
32526
32910
|
// src/components/Grid.tsx
|
|
32527
|
-
import {
|
|
32911
|
+
import { useId as useId2 } from "react";
|
|
32912
|
+
import { Fragment as Fragment6, jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
32913
|
+
var PRESET_VALUES = [
|
|
32914
|
+
"1",
|
|
32915
|
+
"2",
|
|
32916
|
+
"3",
|
|
32917
|
+
"4",
|
|
32918
|
+
"5",
|
|
32919
|
+
"6",
|
|
32920
|
+
"7",
|
|
32921
|
+
"8",
|
|
32922
|
+
"9",
|
|
32923
|
+
"10",
|
|
32924
|
+
"11",
|
|
32925
|
+
"12",
|
|
32926
|
+
"none",
|
|
32927
|
+
"subgrid"
|
|
32928
|
+
];
|
|
32929
|
+
var BREAKPOINT_QUERIES = {
|
|
32930
|
+
base: "",
|
|
32931
|
+
sm: "@media (min-width: 640px)",
|
|
32932
|
+
md: "@media (min-width: 768px)",
|
|
32933
|
+
lg: "@media (min-width: 1024px)",
|
|
32934
|
+
xl: "@media (min-width: 1280px)",
|
|
32935
|
+
"2xl": "@media (min-width: 1536px)"
|
|
32936
|
+
};
|
|
32937
|
+
function isPresetValue(value) {
|
|
32938
|
+
return PRESET_VALUES.includes(value);
|
|
32939
|
+
}
|
|
32940
|
+
function isResponsiveObject(value) {
|
|
32941
|
+
return value !== void 0 && typeof value !== "string" && typeof value === "object";
|
|
32942
|
+
}
|
|
32943
|
+
function hasCustomResponsiveValues(value) {
|
|
32944
|
+
if (!isResponsiveObject(value)) return false;
|
|
32945
|
+
return Object.values(value).some((v) => typeof v === "string" && !isPresetValue(v));
|
|
32946
|
+
}
|
|
32947
|
+
function generateResponsiveStyles(id, columns, rows) {
|
|
32948
|
+
const styles = [];
|
|
32949
|
+
const breakpoints2 = ["base", "sm", "md", "lg", "xl", "2xl"];
|
|
32950
|
+
for (const bp of breakpoints2) {
|
|
32951
|
+
const rules = [];
|
|
32952
|
+
if (isResponsiveObject(columns)) {
|
|
32953
|
+
const colValue = columns[bp];
|
|
32954
|
+
if (colValue && !isPresetValue(colValue)) {
|
|
32955
|
+
rules.push(`grid-template-columns: ${colValue}`);
|
|
32956
|
+
}
|
|
32957
|
+
}
|
|
32958
|
+
if (isResponsiveObject(rows)) {
|
|
32959
|
+
const rowValue = rows[bp];
|
|
32960
|
+
if (rowValue && !isPresetValue(rowValue)) {
|
|
32961
|
+
rules.push(`grid-template-rows: ${rowValue}`);
|
|
32962
|
+
}
|
|
32963
|
+
}
|
|
32964
|
+
if (rules.length > 0) {
|
|
32965
|
+
const query = BREAKPOINT_QUERIES[bp];
|
|
32966
|
+
const ruleBlock = `.${id} { ${rules.join("; ")}; }`;
|
|
32967
|
+
styles.push(query ? `${query} { ${ruleBlock} }` : ruleBlock);
|
|
32968
|
+
}
|
|
32969
|
+
}
|
|
32970
|
+
return styles.join(" ");
|
|
32971
|
+
}
|
|
32528
32972
|
function Grid({
|
|
32529
32973
|
display = "grid",
|
|
32530
32974
|
justifyContent,
|
|
@@ -32543,12 +32987,13 @@ function Grid({
|
|
|
32543
32987
|
children,
|
|
32544
32988
|
...props
|
|
32545
32989
|
}) {
|
|
32546
|
-
const
|
|
32547
|
-
|
|
32548
|
-
);
|
|
32549
|
-
const isCustomRows = typeof rows === "string" && !
|
|
32550
|
-
|
|
32551
|
-
);
|
|
32990
|
+
const reactId = useId2();
|
|
32991
|
+
const id = `zen-grid-${reactId.replace(/:/g, "")}`;
|
|
32992
|
+
const isCustomColumns = typeof columns === "string" && !isPresetValue(columns);
|
|
32993
|
+
const isCustomRows = typeof rows === "string" && !isPresetValue(rows);
|
|
32994
|
+
const hasResponsiveCustomColumns = hasCustomResponsiveValues(columns);
|
|
32995
|
+
const hasResponsiveCustomRows = hasCustomResponsiveValues(rows);
|
|
32996
|
+
const needsStyleTag = hasResponsiveCustomColumns || hasResponsiveCustomRows;
|
|
32552
32997
|
const classes = cn(
|
|
32553
32998
|
mapDisplay(display),
|
|
32554
32999
|
mapJustifyContent(justifyContent),
|
|
@@ -32559,8 +33004,9 @@ function Grid({
|
|
|
32559
33004
|
mapGap(gapX, "x"),
|
|
32560
33005
|
mapGap(gapY, "y"),
|
|
32561
33006
|
mapGridAutoFlow(autoFlow),
|
|
32562
|
-
!isCustomColumns && mapGridColumns(columns),
|
|
32563
|
-
!isCustomRows && mapGridRows(rows),
|
|
33007
|
+
!isCustomColumns && !hasResponsiveCustomColumns && mapGridColumns(columns),
|
|
33008
|
+
!isCustomRows && !hasResponsiveCustomRows && mapGridRows(rows),
|
|
33009
|
+
needsStyleTag && id,
|
|
32564
33010
|
className
|
|
32565
33011
|
);
|
|
32566
33012
|
const inlineStyles = {
|
|
@@ -32570,7 +33016,10 @@ function Grid({
|
|
|
32570
33016
|
...areas && { gridTemplateAreas: areas }
|
|
32571
33017
|
};
|
|
32572
33018
|
const hasInlineStyles = isCustomColumns || isCustomRows || areas || style && Object.keys(style).length > 0;
|
|
32573
|
-
return /* @__PURE__ */
|
|
33019
|
+
return /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
33020
|
+
needsStyleTag && /* @__PURE__ */ jsx26("style", { children: generateResponsiveStyles(id, columns, rows) }),
|
|
33021
|
+
/* @__PURE__ */ jsx26(Box, { ...props, className: classes, style: hasInlineStyles ? inlineStyles : void 0, children })
|
|
33022
|
+
] });
|
|
32574
33023
|
}
|
|
32575
33024
|
|
|
32576
33025
|
// src/lib/utils.ts
|
|
@@ -32588,7 +33037,7 @@ function mapIdProperty(data) {
|
|
|
32588
33037
|
}
|
|
32589
33038
|
|
|
32590
33039
|
// src/components/DataCard.tsx
|
|
32591
|
-
import { jsx as jsx27, jsxs as
|
|
33040
|
+
import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
32592
33041
|
function DataCard({ data = [], labelWidth = "auto", ...props }) {
|
|
32593
33042
|
const rows = mapIdProperty(data);
|
|
32594
33043
|
return /* @__PURE__ */ jsx27(
|
|
@@ -32601,7 +33050,7 @@ function DataCard({ data = [], labelWidth = "auto", ...props }) {
|
|
|
32601
33050
|
padding: "6",
|
|
32602
33051
|
...props,
|
|
32603
33052
|
children: rows.map((row, index) => {
|
|
32604
|
-
return /* @__PURE__ */
|
|
33053
|
+
return /* @__PURE__ */ jsxs13(Fragment7, { children: [
|
|
32605
33054
|
/* @__PURE__ */ jsx27(Row, { paddingY: "3", border: "bottom", borderColor: "muted", paddingRight: "6", children: /* @__PURE__ */ jsx27(Text, { weight: "bold", children: row?.label }) }),
|
|
32606
33055
|
/* @__PURE__ */ jsx27(Row, { paddingY: "3", border: "bottom", children: /* @__PURE__ */ jsx27(Text, { children: row?.value }) })
|
|
32607
33056
|
] }, index);
|
|
@@ -32697,7 +33146,7 @@ function TableCell({ children, className, align, ...props }) {
|
|
|
32697
33146
|
}
|
|
32698
33147
|
|
|
32699
33148
|
// src/components/DataTable.tsx
|
|
32700
|
-
import { jsx as jsx29, jsxs as
|
|
33149
|
+
import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
32701
33150
|
import { createElement as createElement5 } from "react";
|
|
32702
33151
|
function DataTable({
|
|
32703
33152
|
data = [],
|
|
@@ -32725,7 +33174,7 @@ function DataTable({
|
|
|
32725
33174
|
return /* @__PURE__ */ jsx29(DataCard, { data: items }, `${row.id}-${index}`);
|
|
32726
33175
|
}) });
|
|
32727
33176
|
}
|
|
32728
|
-
return /* @__PURE__ */
|
|
33177
|
+
return /* @__PURE__ */ jsxs14(Table2, { ...props, className: cn("relative text-base", className), children: [
|
|
32729
33178
|
/* @__PURE__ */ jsx29(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
32730
33179
|
if (hidden) {
|
|
32731
33180
|
return null;
|
|
@@ -32756,7 +33205,7 @@ function DataColumn(props) {
|
|
|
32756
33205
|
}
|
|
32757
33206
|
|
|
32758
33207
|
// src/components/Dots.tsx
|
|
32759
|
-
import { jsx as jsx30, jsxs as
|
|
33208
|
+
import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
32760
33209
|
var sizeMap2 = {
|
|
32761
33210
|
sm: "w-1.5 h-1.5",
|
|
32762
33211
|
md: "w-2 h-2",
|
|
@@ -32771,7 +33220,7 @@ var gapMap2 = {
|
|
|
32771
33220
|
lg: "2"
|
|
32772
33221
|
};
|
|
32773
33222
|
function Dots({ size = "md", className, color: _color, ...props }) {
|
|
32774
|
-
return /* @__PURE__ */
|
|
33223
|
+
return /* @__PURE__ */ jsxs15(Row, { ...props, alignItems: "center", gap: gapMap2[size], className, children: [
|
|
32775
33224
|
/* @__PURE__ */ jsx30(Dot, { size }),
|
|
32776
33225
|
/* @__PURE__ */ jsx30(Dot, { size }),
|
|
32777
33226
|
/* @__PURE__ */ jsx30(Dot, { size })
|
|
@@ -32782,9 +33231,9 @@ function Dots({ size = "md", className, color: _color, ...props }) {
|
|
|
32782
33231
|
import { useEffect as useEffect2, useState as useState5 } from "react";
|
|
32783
33232
|
|
|
32784
33233
|
// src/components/Tooltip.tsx
|
|
32785
|
-
import { jsx as jsx31, jsxs as
|
|
33234
|
+
import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
32786
33235
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
32787
|
-
return /* @__PURE__ */
|
|
33236
|
+
return /* @__PURE__ */ jsxs16($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: cn("group", tooltip(), className), children: [
|
|
32788
33237
|
showArrow && /* @__PURE__ */ jsx31($44f671af83e7d9e0$export$746d02f47f4d381, { className: "w-2 h-2", children: /* @__PURE__ */ jsx31(
|
|
32789
33238
|
"svg",
|
|
32790
33239
|
{
|
|
@@ -34866,7 +35315,7 @@ function useForm(props = {}) {
|
|
|
34866
35315
|
}
|
|
34867
35316
|
|
|
34868
35317
|
// src/components/forms/Form.tsx
|
|
34869
|
-
import { jsx as jsx33, jsxs as
|
|
35318
|
+
import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
34870
35319
|
function Form({
|
|
34871
35320
|
autoComplete,
|
|
34872
35321
|
onSubmit,
|
|
@@ -34920,7 +35369,7 @@ function Form({
|
|
|
34920
35369
|
formValues.reset(void 0, { keepDirty: true, keepValues: true });
|
|
34921
35370
|
}
|
|
34922
35371
|
}, [error, formValues]);
|
|
34923
|
-
return /* @__PURE__ */
|
|
35372
|
+
return /* @__PURE__ */ jsxs17(FormProvider, { ...formValues, children: [
|
|
34924
35373
|
error && /* @__PURE__ */ jsx33(
|
|
34925
35374
|
AlertBanner,
|
|
34926
35375
|
{
|
|
@@ -34957,7 +35406,7 @@ function FormController({ children, ...props }) {
|
|
|
34957
35406
|
|
|
34958
35407
|
// src/components/forms/FormField.tsx
|
|
34959
35408
|
import { Children as Children2, cloneElement as cloneElement2 } from "react";
|
|
34960
|
-
import { jsx as jsx36, jsxs as
|
|
35409
|
+
import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
34961
35410
|
function FormField({
|
|
34962
35411
|
id,
|
|
34963
35412
|
name,
|
|
@@ -34973,7 +35422,7 @@ function FormField({
|
|
|
34973
35422
|
const context = useFormContext();
|
|
34974
35423
|
const { control } = context;
|
|
34975
35424
|
const { invalid, error } = context.getFieldState(name);
|
|
34976
|
-
return /* @__PURE__ */
|
|
35425
|
+
return /* @__PURE__ */ jsxs18(Column, { ...props, gap: "1", className, children: [
|
|
34977
35426
|
label && /* @__PURE__ */ jsx36(Label2, { htmlFor: fieldId, children: label }),
|
|
34978
35427
|
/* @__PURE__ */ jsx36(FormController, { name, control, rules, children: ({ field }) => {
|
|
34979
35428
|
return Children2.map(
|
|
@@ -34992,7 +35441,7 @@ function FormField({
|
|
|
34992
35441
|
}
|
|
34993
35442
|
|
|
34994
35443
|
// src/components/forms/FormFieldArray.tsx
|
|
34995
|
-
import { jsx as jsx37, jsxs as
|
|
35444
|
+
import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
34996
35445
|
function FormFieldArray({
|
|
34997
35446
|
id,
|
|
34998
35447
|
name,
|
|
@@ -35014,7 +35463,7 @@ function FormFieldArray({
|
|
|
35014
35463
|
register(name, rules);
|
|
35015
35464
|
const errors = formState?.errors || {};
|
|
35016
35465
|
const errorMessage = errors[name]?.message;
|
|
35017
|
-
return /* @__PURE__ */
|
|
35466
|
+
return /* @__PURE__ */ jsxs19(Column, { ...props, gap: "1", className, children: [
|
|
35018
35467
|
label && /* @__PURE__ */ jsx37(Label2, { htmlFor: fieldId, children: label }),
|
|
35019
35468
|
description && /* @__PURE__ */ jsx37(Text, { color: "muted", children: description }),
|
|
35020
35469
|
errorMessage && /* @__PURE__ */ jsx37(Text, { className: "text-red-500", children: errorMessage }),
|
|
@@ -35034,7 +35483,7 @@ function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
|
35034
35483
|
}
|
|
35035
35484
|
|
|
35036
35485
|
// src/components/Spinner.tsx
|
|
35037
|
-
import { jsx as jsx39, jsxs as
|
|
35486
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
35038
35487
|
var sizeMap3 = {
|
|
35039
35488
|
sm: "w-4 h-4",
|
|
35040
35489
|
md: "w-7 h-7",
|
|
@@ -35047,7 +35496,7 @@ function Spinner(props) {
|
|
|
35047
35496
|
{
|
|
35048
35497
|
...domProps,
|
|
35049
35498
|
className: cn("relative inline-flex justify-center items-center", sizeMap3[size], className),
|
|
35050
|
-
children: /* @__PURE__ */
|
|
35499
|
+
children: /* @__PURE__ */ jsxs20("svg", { viewBox: "25 25 50 50", className: "zen-spinner-svg w-full h-full", children: [
|
|
35051
35500
|
!quiet && /* @__PURE__ */ jsx39("circle", { className: "zen-spinner-track stroke-track", cx: "50", cy: "50", r: "20" }),
|
|
35052
35501
|
/* @__PURE__ */ jsx39(
|
|
35053
35502
|
"circle",
|
|
@@ -35067,7 +35516,7 @@ function Spinner(props) {
|
|
|
35067
35516
|
}
|
|
35068
35517
|
|
|
35069
35518
|
// src/components/LoadingButton.tsx
|
|
35070
|
-
import { jsx as jsx40, jsxs as
|
|
35519
|
+
import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
35071
35520
|
function LoadingButton({
|
|
35072
35521
|
isLoading,
|
|
35073
35522
|
isDisabled,
|
|
@@ -35075,7 +35524,7 @@ function LoadingButton({
|
|
|
35075
35524
|
children,
|
|
35076
35525
|
...props
|
|
35077
35526
|
}) {
|
|
35078
|
-
return /* @__PURE__ */
|
|
35527
|
+
return /* @__PURE__ */ jsxs21(Button2, { ...props, isDisabled, children: [
|
|
35079
35528
|
isLoading && /* @__PURE__ */ jsx40(Icon2, { size: "sm", children: /* @__PURE__ */ jsx40(Spinner, { isDisabled }) }),
|
|
35080
35529
|
showText && children
|
|
35081
35530
|
] });
|
|
@@ -35108,7 +35557,7 @@ function FormSubmitButton({
|
|
|
35108
35557
|
|
|
35109
35558
|
// src/components/HoverTrigger.tsx
|
|
35110
35559
|
import { useEffect as useEffect4, useRef as useRef2, useState as useState6 } from "react";
|
|
35111
|
-
import { Fragment as
|
|
35560
|
+
import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
35112
35561
|
var CLOSE_DELAY = 500;
|
|
35113
35562
|
function HoverTrigger({
|
|
35114
35563
|
isOpen,
|
|
@@ -35159,7 +35608,7 @@ function HoverTrigger({
|
|
|
35159
35608
|
}
|
|
35160
35609
|
}, closeDelay);
|
|
35161
35610
|
};
|
|
35162
|
-
return /* @__PURE__ */
|
|
35611
|
+
return /* @__PURE__ */ jsxs22(Fragment8, { children: [
|
|
35163
35612
|
/* @__PURE__ */ jsx42("span", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
35164
35613
|
/* @__PURE__ */ jsx42(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx42("div", { onMouseEnter: handleMenuEnter, onMouseLeave: handleMenuLeave, children: popupElement }) })
|
|
35165
35614
|
] });
|
|
@@ -38917,7 +39366,7 @@ var animated = host.animated;
|
|
|
38917
39366
|
import { useEffect as useEffect10, useState as useState11 } from "react";
|
|
38918
39367
|
|
|
38919
39368
|
// src/components/toast/Toast.tsx
|
|
38920
|
-
import { jsx as jsx43, jsxs as
|
|
39369
|
+
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
38921
39370
|
var TOAST_CLOSE_ACTION = "close";
|
|
38922
39371
|
function Toast({
|
|
38923
39372
|
id,
|
|
@@ -38933,8 +39382,8 @@ function Toast({
|
|
|
38933
39382
|
...props
|
|
38934
39383
|
}) {
|
|
38935
39384
|
const hasActions = actions?.length > 0;
|
|
38936
|
-
return /* @__PURE__ */
|
|
38937
|
-
/* @__PURE__ */
|
|
39385
|
+
return /* @__PURE__ */ jsxs23(Row, { ...props, className: cn(toast({ variant }), className), children: [
|
|
39386
|
+
/* @__PURE__ */ jsxs23(Column, { flexGrow: 1, gap: "1", children: [
|
|
38938
39387
|
title && /* @__PURE__ */ jsx43(Text, { weight: "semibold", children: title }),
|
|
38939
39388
|
message && /* @__PURE__ */ jsx43(Text, { color: "muted", children: message })
|
|
38940
39389
|
] }),
|
|
@@ -39015,10 +39464,10 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
39015
39464
|
}
|
|
39016
39465
|
|
|
39017
39466
|
// src/components/toast/ToastProvider.tsx
|
|
39018
|
-
import { jsx as jsx45, jsxs as
|
|
39467
|
+
import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
39019
39468
|
var ToastContext = createContext2({});
|
|
39020
39469
|
function ToastProvider({ children, ...props }) {
|
|
39021
|
-
return /* @__PURE__ */
|
|
39470
|
+
return /* @__PURE__ */ jsxs24(ToastContext.Provider, { value: props, children: [
|
|
39022
39471
|
children,
|
|
39023
39472
|
/* @__PURE__ */ jsx45(Toaster, { ...props })
|
|
39024
39473
|
] });
|
|
@@ -39055,7 +39504,7 @@ function useToast() {
|
|
|
39055
39504
|
}
|
|
39056
39505
|
|
|
39057
39506
|
// src/components/IconLabel.tsx
|
|
39058
|
-
import { jsx as jsx46, jsxs as
|
|
39507
|
+
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
39059
39508
|
function IconLabel({
|
|
39060
39509
|
icon,
|
|
39061
39510
|
label,
|
|
@@ -39065,7 +39514,7 @@ function IconLabel({
|
|
|
39065
39514
|
children,
|
|
39066
39515
|
...props
|
|
39067
39516
|
}) {
|
|
39068
|
-
return /* @__PURE__ */
|
|
39517
|
+
return /* @__PURE__ */ jsxs25(Row, { alignItems: "center", gap: true, ...props, children: [
|
|
39069
39518
|
icon && /* @__PURE__ */ jsx46(Icon2, { ...iconProps, children: icon }),
|
|
39070
39519
|
showLabel && label && /* @__PURE__ */ jsx46(Text, { ...labelProps, children: label }),
|
|
39071
39520
|
showLabel && children
|
|
@@ -39104,7 +39553,7 @@ function Image({
|
|
|
39104
39553
|
}
|
|
39105
39554
|
|
|
39106
39555
|
// src/components/Loading.tsx
|
|
39107
|
-
import { jsx as jsx48, jsxs as
|
|
39556
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
39108
39557
|
var placementClasses = {
|
|
39109
39558
|
absolute: "absolute inset-0 m-auto",
|
|
39110
39559
|
center: "m-auto",
|
|
@@ -39117,7 +39566,7 @@ function Loading({
|
|
|
39117
39566
|
className,
|
|
39118
39567
|
...props
|
|
39119
39568
|
}) {
|
|
39120
|
-
return /* @__PURE__ */
|
|
39569
|
+
return /* @__PURE__ */ jsxs26(
|
|
39121
39570
|
Box,
|
|
39122
39571
|
{
|
|
39123
39572
|
...props,
|
|
@@ -39135,7 +39584,7 @@ function Loading({
|
|
|
39135
39584
|
}
|
|
39136
39585
|
|
|
39137
39586
|
// src/components/Menu.tsx
|
|
39138
|
-
import { Fragment as
|
|
39587
|
+
import { Fragment as Fragment10, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
39139
39588
|
function Menu2({ className, children, ...props }) {
|
|
39140
39589
|
return /* @__PURE__ */ jsx49(
|
|
39141
39590
|
$3674c52c6b3c5bce$export$d9b273488cd8ce6f,
|
|
@@ -39170,7 +39619,7 @@ function MenuItem2({
|
|
|
39170
39619
|
"data-[selected]:font-semibold",
|
|
39171
39620
|
className
|
|
39172
39621
|
),
|
|
39173
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
39622
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs27(Fragment10, { children: [
|
|
39174
39623
|
/* @__PURE__ */ jsx49(IconLabel, { icon, label, children }),
|
|
39175
39624
|
showChecked && isSelected && /* @__PURE__ */ jsx49(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ jsx49(Check, {}) }),
|
|
39176
39625
|
showSubMenuIcon && /* @__PURE__ */ jsx49(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ jsx49(ChevronRight, {}) })
|
|
@@ -39193,7 +39642,7 @@ function MenuSection({
|
|
|
39193
39642
|
maxHeight,
|
|
39194
39643
|
overflow: maxHeight ? "auto" : void 0
|
|
39195
39644
|
};
|
|
39196
|
-
return /* @__PURE__ */
|
|
39645
|
+
return /* @__PURE__ */ jsxs27(Fragment10, { children: [
|
|
39197
39646
|
title && /* @__PURE__ */ jsx49($72a5793c14baf454$export$8b251419efc915eb, { className: "text-base font-bold px-2 py-1.5", children: title }),
|
|
39198
39647
|
/* @__PURE__ */ jsx49(
|
|
39199
39648
|
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
@@ -39249,7 +39698,7 @@ import {
|
|
|
39249
39698
|
useContext as useContext5,
|
|
39250
39699
|
useState as useState12
|
|
39251
39700
|
} from "react";
|
|
39252
|
-
import { jsx as jsx51, jsxs as
|
|
39701
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
39253
39702
|
var NavbarContext = createContext3(void 0);
|
|
39254
39703
|
var useNavigationContext = () => {
|
|
39255
39704
|
const context = useContext5(NavbarContext);
|
|
@@ -39277,8 +39726,8 @@ function NavbarItem({
|
|
|
39277
39726
|
}) {
|
|
39278
39727
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
39279
39728
|
if (label) {
|
|
39280
|
-
return /* @__PURE__ */
|
|
39281
|
-
/* @__PURE__ */
|
|
39729
|
+
return /* @__PURE__ */ jsxs28(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
39730
|
+
/* @__PURE__ */ jsxs28(
|
|
39282
39731
|
Row,
|
|
39283
39732
|
{
|
|
39284
39733
|
...props,
|
|
@@ -39314,7 +39763,7 @@ function NavbarItem({
|
|
|
39314
39763
|
|
|
39315
39764
|
// src/components/NavMenu.tsx
|
|
39316
39765
|
import { createContext as createContext4, useContext as useContext6, useState as useState13 } from "react";
|
|
39317
|
-
import { jsx as jsx52, jsxs as
|
|
39766
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
39318
39767
|
var NavMenuContext = createContext4(null);
|
|
39319
39768
|
function NavMenu({ muteItems, onItemClick, className, children, ...props }) {
|
|
39320
39769
|
return /* @__PURE__ */ jsx52(NavMenuContext.Provider, { value: { onItemClick }, children: /* @__PURE__ */ jsx52(Column, { ...props, color: muteItems ? "muted" : void 0, className, children }) });
|
|
@@ -39333,7 +39782,7 @@ function NavMenuGroup({
|
|
|
39333
39782
|
setMinimized((state2) => !state2);
|
|
39334
39783
|
}
|
|
39335
39784
|
};
|
|
39336
|
-
return /* @__PURE__ */
|
|
39785
|
+
return /* @__PURE__ */ jsxs29(
|
|
39337
39786
|
Column,
|
|
39338
39787
|
{
|
|
39339
39788
|
...props,
|
|
@@ -39343,7 +39792,7 @@ function NavMenuGroup({
|
|
|
39343
39792
|
allowMinimize && minimized && "[&_.navmenu-children]:hidden"
|
|
39344
39793
|
),
|
|
39345
39794
|
children: [
|
|
39346
|
-
/* @__PURE__ */
|
|
39795
|
+
/* @__PURE__ */ jsxs29(
|
|
39347
39796
|
Row,
|
|
39348
39797
|
{
|
|
39349
39798
|
paddingY: "2",
|
|
@@ -39387,8 +39836,8 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
39387
39836
|
import { useState as useState14 } from "react";
|
|
39388
39837
|
|
|
39389
39838
|
// src/components/svg/EyeSlash.tsx
|
|
39390
|
-
import { jsx as jsx53, jsxs as
|
|
39391
|
-
var SvgEyeSlash = (props) => /* @__PURE__ */
|
|
39839
|
+
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
39840
|
+
var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs30("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
39392
39841
|
/* @__PURE__ */ jsx53("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
39393
39842
|
/* @__PURE__ */ jsx53(
|
|
39394
39843
|
"path",
|
|
@@ -39416,8 +39865,8 @@ var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs29("svg", { xmlns: "http://www.
|
|
|
39416
39865
|
var EyeSlash_default = SvgEyeSlash;
|
|
39417
39866
|
|
|
39418
39867
|
// src/components/svg/Eye.tsx
|
|
39419
|
-
import { jsx as jsx54, jsxs as
|
|
39420
|
-
var SvgEye = (props) => /* @__PURE__ */
|
|
39868
|
+
import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
39869
|
+
var SvgEye = (props) => /* @__PURE__ */ jsxs31("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
39421
39870
|
/* @__PURE__ */ jsx54("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
39422
39871
|
/* @__PURE__ */ jsx54(
|
|
39423
39872
|
"path",
|
|
@@ -39450,17 +39899,17 @@ var Eye_default = SvgEye;
|
|
|
39450
39899
|
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
39451
39900
|
|
|
39452
39901
|
// src/components/svg/Logo.tsx
|
|
39453
|
-
import { jsx as jsx56, jsxs as
|
|
39902
|
+
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
39454
39903
|
|
|
39455
39904
|
// src/components/PasswordField.tsx
|
|
39456
|
-
import { Fragment as
|
|
39905
|
+
import { Fragment as Fragment11, jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
39457
39906
|
function PasswordField({ label, className, ...props }) {
|
|
39458
39907
|
const [show, setShow] = useState14(false);
|
|
39459
39908
|
const type = show ? "text" : "password";
|
|
39460
39909
|
const handleShowPassword = () => setShow((state2) => !state2);
|
|
39461
|
-
return /* @__PURE__ */
|
|
39910
|
+
return /* @__PURE__ */ jsxs33(Fragment11, { children: [
|
|
39462
39911
|
label && /* @__PURE__ */ jsx57(Label2, { children: label }),
|
|
39463
|
-
/* @__PURE__ */
|
|
39912
|
+
/* @__PURE__ */ jsxs33(
|
|
39464
39913
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
39465
39914
|
{
|
|
39466
39915
|
"aria-label": "Password",
|
|
@@ -39482,7 +39931,7 @@ function PasswordField({ label, className, ...props }) {
|
|
|
39482
39931
|
}
|
|
39483
39932
|
|
|
39484
39933
|
// src/components/ProgressBar.tsx
|
|
39485
|
-
import { Fragment as
|
|
39934
|
+
import { Fragment as Fragment12, jsx as jsx58, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
39486
39935
|
function Track({ children }) {
|
|
39487
39936
|
return /* @__PURE__ */ jsx58(Box, { position: "relative", borderRadius: "full", overflow: "hidden", className: "w-full h-2 bg-track", children });
|
|
39488
39937
|
}
|
|
@@ -39502,7 +39951,7 @@ function Fill({ percentage }) {
|
|
|
39502
39951
|
}
|
|
39503
39952
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
39504
39953
|
return /* @__PURE__ */ jsx58($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: cn("flex items-center gap-3 w-full", className), children: ({ percentage = 0, valueText }) => {
|
|
39505
|
-
return /* @__PURE__ */
|
|
39954
|
+
return /* @__PURE__ */ jsxs34(Fragment12, { children: [
|
|
39506
39955
|
/* @__PURE__ */ jsx58(Track, { children: /* @__PURE__ */ jsx58(Fill, { percentage }) }),
|
|
39507
39956
|
showPercentage && /* @__PURE__ */ jsx58(Text, { className: "tabular-nums", children: valueText })
|
|
39508
39957
|
] });
|
|
@@ -39510,14 +39959,14 @@ function ProgressBar2({ className, showPercentage, ...props }) {
|
|
|
39510
39959
|
}
|
|
39511
39960
|
|
|
39512
39961
|
// src/components/ProgressCircle.tsx
|
|
39513
|
-
import { Fragment as
|
|
39962
|
+
import { Fragment as Fragment13, jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
39514
39963
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
39515
39964
|
return /* @__PURE__ */ jsx59($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: cn("relative flex justify-center items-center", className), children: ({ percentage = 0, valueText }) => {
|
|
39516
39965
|
const radius = 45;
|
|
39517
39966
|
const circumference = radius * 2 * Math.PI;
|
|
39518
39967
|
const offset = circumference - percentage / 100 * circumference;
|
|
39519
|
-
return /* @__PURE__ */
|
|
39520
|
-
/* @__PURE__ */
|
|
39968
|
+
return /* @__PURE__ */ jsxs35(Fragment13, { children: [
|
|
39969
|
+
/* @__PURE__ */ jsxs35(
|
|
39521
39970
|
"svg",
|
|
39522
39971
|
{
|
|
39523
39972
|
viewBox: "0 0 100 100",
|
|
@@ -39545,9 +39994,9 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
39545
39994
|
}
|
|
39546
39995
|
|
|
39547
39996
|
// src/components/RadioGroup.tsx
|
|
39548
|
-
import { jsx as jsx60, jsxs as
|
|
39997
|
+
import { jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
39549
39998
|
function RadioGroup2({ label, children, className, ...props }) {
|
|
39550
|
-
return /* @__PURE__ */
|
|
39999
|
+
return /* @__PURE__ */ jsxs36(
|
|
39551
40000
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
39552
40001
|
{
|
|
39553
40002
|
"aria-label": "RadioGroup",
|
|
@@ -39581,7 +40030,7 @@ function Radio2({ children, className, ...props }) {
|
|
|
39581
40030
|
|
|
39582
40031
|
// src/components/SearchField.tsx
|
|
39583
40032
|
import { useEffect as useEffect11, useState as useState15 } from "react";
|
|
39584
|
-
import { Fragment as
|
|
40033
|
+
import { Fragment as Fragment14, jsx as jsx61, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
39585
40034
|
function SearchField2({
|
|
39586
40035
|
label,
|
|
39587
40036
|
placeholder,
|
|
@@ -39612,7 +40061,7 @@ function SearchField2({
|
|
|
39612
40061
|
onSearch?.(searchValue);
|
|
39613
40062
|
}
|
|
39614
40063
|
}, [searchValue, delay]);
|
|
39615
|
-
return /* @__PURE__ */
|
|
40064
|
+
return /* @__PURE__ */ jsxs37(Fragment14, { children: [
|
|
39616
40065
|
label && /* @__PURE__ */ jsx61(Label2, { children: label }),
|
|
39617
40066
|
/* @__PURE__ */ jsx61(
|
|
39618
40067
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
@@ -39621,7 +40070,7 @@ function SearchField2({
|
|
|
39621
40070
|
...props,
|
|
39622
40071
|
className: cn("relative", className),
|
|
39623
40072
|
onChange: handleChange,
|
|
39624
|
-
children: /* @__PURE__ */
|
|
40073
|
+
children: /* @__PURE__ */ jsxs37(
|
|
39625
40074
|
$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,
|
|
39626
40075
|
{
|
|
39627
40076
|
className: cn(
|
|
@@ -39649,7 +40098,7 @@ function SearchField2({
|
|
|
39649
40098
|
|
|
39650
40099
|
// src/components/Select.tsx
|
|
39651
40100
|
import { useState as useState16 } from "react";
|
|
39652
|
-
import { jsx as jsx62, jsxs as
|
|
40101
|
+
import { jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
39653
40102
|
function Select2({
|
|
39654
40103
|
items = [],
|
|
39655
40104
|
value,
|
|
@@ -39682,7 +40131,7 @@ function Select2({
|
|
|
39682
40131
|
setSearch("");
|
|
39683
40132
|
onSearch?.("");
|
|
39684
40133
|
};
|
|
39685
|
-
return /* @__PURE__ */
|
|
40134
|
+
return /* @__PURE__ */ jsxs38(
|
|
39686
40135
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
39687
40136
|
{
|
|
39688
40137
|
"aria-label": "Select",
|
|
@@ -39693,11 +40142,11 @@ function Select2({
|
|
|
39693
40142
|
onChange: handleChange,
|
|
39694
40143
|
children: [
|
|
39695
40144
|
label && /* @__PURE__ */ jsx62(Label2, { children: label }),
|
|
39696
|
-
/* @__PURE__ */ jsx62(Button2, { variant: "outline", ...buttonProps, className: cn("w-full", buttonProps?.className), children: /* @__PURE__ */
|
|
40145
|
+
/* @__PURE__ */ jsx62(Button2, { variant: "outline", ...buttonProps, className: cn("w-full", buttonProps?.className), children: /* @__PURE__ */ jsxs38(Row, { flexGrow: 1, alignItems: "center", justifyContent: "space-between", children: [
|
|
39697
40146
|
/* @__PURE__ */ jsx62($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
39698
40147
|
/* @__PURE__ */ jsx62(Icon2, { rotate: 90, "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ jsx62(ChevronRight, {}) })
|
|
39699
40148
|
] }) }),
|
|
39700
|
-
/* @__PURE__ */ jsx62(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, isFullscreen, children: /* @__PURE__ */
|
|
40149
|
+
/* @__PURE__ */ jsx62(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, isFullscreen, children: /* @__PURE__ */ jsxs38(
|
|
39701
40150
|
Column,
|
|
39702
40151
|
{
|
|
39703
40152
|
gap: "2",
|
|
@@ -39744,7 +40193,7 @@ function Select2({
|
|
|
39744
40193
|
|
|
39745
40194
|
// src/components/Sidebar.tsx
|
|
39746
40195
|
import { createContext as createContext5, useContext as useContext7 } from "react";
|
|
39747
|
-
import { jsx as jsx63, jsxs as
|
|
40196
|
+
import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
39748
40197
|
var SidebarContext = createContext5(null);
|
|
39749
40198
|
function Sidebar({ isCollapsed, muteItems, className, children, ...props }) {
|
|
39750
40199
|
return /* @__PURE__ */ jsx63(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsx63(
|
|
@@ -39768,7 +40217,7 @@ function SidebarSection({
|
|
|
39768
40217
|
children,
|
|
39769
40218
|
...props
|
|
39770
40219
|
}) {
|
|
39771
|
-
return /* @__PURE__ */
|
|
40220
|
+
return /* @__PURE__ */ jsxs39(Column, { ...props, paddingY: "2", className, children: [
|
|
39772
40221
|
title && /* @__PURE__ */ jsx63(Box, { paddingX: "4", paddingY: "2", children: /* @__PURE__ */ jsx63(Text, { size: "xs", weight: "semibold", transform: "uppercase", color: "muted", children: title }) }),
|
|
39773
40222
|
/* @__PURE__ */ jsx63(Column, { children })
|
|
39774
40223
|
] });
|
|
@@ -39780,7 +40229,7 @@ function SidebarHeader({
|
|
|
39780
40229
|
children,
|
|
39781
40230
|
...props
|
|
39782
40231
|
}) {
|
|
39783
|
-
return /* @__PURE__ */
|
|
40232
|
+
return /* @__PURE__ */ jsxs39(Row, { ...props, paddingX: "4", paddingY: "3", gap: "3", alignItems: "center", className, children: [
|
|
39784
40233
|
icon && /* @__PURE__ */ jsx63(Icon2, { size: "sm", children: icon }),
|
|
39785
40234
|
label && /* @__PURE__ */ jsx63(Text, { weight: "semibold", children: label }),
|
|
39786
40235
|
children
|
|
@@ -39795,8 +40244,8 @@ function SidebarItem({
|
|
|
39795
40244
|
...props
|
|
39796
40245
|
}) {
|
|
39797
40246
|
const { isCollapsed } = useContext7(SidebarContext);
|
|
39798
|
-
return /* @__PURE__ */
|
|
39799
|
-
/* @__PURE__ */ jsx63($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */
|
|
40247
|
+
return /* @__PURE__ */ jsxs39($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
40248
|
+
/* @__PURE__ */ jsx63($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsxs39(
|
|
39800
40249
|
Row,
|
|
39801
40250
|
{
|
|
39802
40251
|
...props,
|
|
@@ -39824,7 +40273,7 @@ function SidebarItem({
|
|
|
39824
40273
|
}
|
|
39825
40274
|
|
|
39826
40275
|
// src/components/Slider.tsx
|
|
39827
|
-
import { Fragment as
|
|
40276
|
+
import { Fragment as Fragment15, jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
39828
40277
|
function Fill2({ percentage }) {
|
|
39829
40278
|
const width = `calc(10px + ${percentage}% - ${percentage * 0.2}px)`;
|
|
39830
40279
|
return /* @__PURE__ */ jsx64("div", { className: "absolute inset-y-0 left-0 rounded-full bg-track-fill", style: { width } });
|
|
@@ -39843,14 +40292,14 @@ function Thumb({ percentage }) {
|
|
|
39843
40292
|
);
|
|
39844
40293
|
}
|
|
39845
40294
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
39846
|
-
return /* @__PURE__ */
|
|
39847
|
-
/* @__PURE__ */
|
|
40295
|
+
return /* @__PURE__ */ jsxs40($6f909507e6374d18$export$472062a354075cee, { ...props, className: cn("flex flex-col gap-2 w-full", className), children: [
|
|
40296
|
+
/* @__PURE__ */ jsxs40(Row, { justifyContent: "space-between", alignItems: "center", children: [
|
|
39848
40297
|
label && /* @__PURE__ */ jsx64(Label2, { children: label }),
|
|
39849
40298
|
showValue && /* @__PURE__ */ jsx64($6f909507e6374d18$export$a590f758a961cb5b, { className: "text-base tabular-nums" })
|
|
39850
40299
|
] }),
|
|
39851
40300
|
/* @__PURE__ */ jsx64($6f909507e6374d18$export$105594979f116971, { className: "relative h-5 w-full", children: ({ state: state2 }) => {
|
|
39852
40301
|
const percentage = state2.getThumbPercent(0) * 100;
|
|
39853
|
-
return /* @__PURE__ */
|
|
40302
|
+
return /* @__PURE__ */ jsxs40(Fragment15, { children: [
|
|
39854
40303
|
/* @__PURE__ */ jsx64("div", { className: "absolute inset-x-0 top-1/2 -translate-y-1/2 h-1 rounded-full bg-track overflow-hidden", children: /* @__PURE__ */ jsx64(Fill2, { percentage }) }),
|
|
39855
40304
|
/* @__PURE__ */ jsx64(Thumb, { percentage })
|
|
39856
40305
|
] });
|
|
@@ -39859,7 +40308,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
39859
40308
|
}
|
|
39860
40309
|
|
|
39861
40310
|
// src/components/StatusLight.tsx
|
|
39862
|
-
import { jsx as jsx65, jsxs as
|
|
40311
|
+
import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
39863
40312
|
var variantColors = {
|
|
39864
40313
|
success: "bg-green-500",
|
|
39865
40314
|
warning: "bg-yellow-500",
|
|
@@ -39880,19 +40329,19 @@ function StatusDot({ color, variant }) {
|
|
|
39880
40329
|
}
|
|
39881
40330
|
function StatusLight(props) {
|
|
39882
40331
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
39883
|
-
return /* @__PURE__ */
|
|
40332
|
+
return /* @__PURE__ */ jsxs41(Row, { ...domProps, alignItems: "center", gap: "2", className, children: [
|
|
39884
40333
|
/* @__PURE__ */ jsx65(StatusDot, { color, variant }),
|
|
39885
40334
|
children
|
|
39886
40335
|
] });
|
|
39887
40336
|
}
|
|
39888
40337
|
|
|
39889
40338
|
// src/components/Switch.tsx
|
|
39890
|
-
import { jsx as jsx66, jsxs as
|
|
40339
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
39891
40340
|
function Switch2({ label, children, className, ...props }) {
|
|
39892
40341
|
const styles = switchVariant();
|
|
39893
|
-
return /* @__PURE__ */
|
|
40342
|
+
return /* @__PURE__ */ jsxs42(Column, { children: [
|
|
39894
40343
|
label && /* @__PURE__ */ jsx66(Label2, { children: label }),
|
|
39895
|
-
/* @__PURE__ */
|
|
40344
|
+
/* @__PURE__ */ jsxs42($8e59e948500a8fe1$export$b5d5cf8927ab7262, { ...props, className: cn(styles.root(), className), children: [
|
|
39896
40345
|
/* @__PURE__ */ jsx66(Box, { className: styles.track(), children: /* @__PURE__ */ jsx66(Box, { className: styles.thumb() }) }),
|
|
39897
40346
|
children
|
|
39898
40347
|
] })
|
|
@@ -39940,7 +40389,7 @@ function TabPanel2({ children, className, ...props }) {
|
|
|
39940
40389
|
|
|
39941
40390
|
// src/components/ThemeButton.tsx
|
|
39942
40391
|
import { useEffect as useEffect12, useRef as useRef7, useState as useState17 } from "react";
|
|
39943
|
-
import { jsx as jsx68, jsxs as
|
|
40392
|
+
import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
39944
40393
|
function getElement(target) {
|
|
39945
40394
|
return "current" in target ? target.current : target;
|
|
39946
40395
|
}
|
|
@@ -39999,7 +40448,7 @@ function ThemeButton({
|
|
|
39999
40448
|
}
|
|
40000
40449
|
onPress?.(e);
|
|
40001
40450
|
}
|
|
40002
|
-
return /* @__PURE__ */
|
|
40451
|
+
return /* @__PURE__ */ jsxs43(
|
|
40003
40452
|
Button2,
|
|
40004
40453
|
{
|
|
40005
40454
|
...props,
|
|
@@ -40021,10 +40470,10 @@ function ThemeButton({
|
|
|
40021
40470
|
}
|
|
40022
40471
|
|
|
40023
40472
|
// src/components/Toggle.tsx
|
|
40024
|
-
import { Fragment as
|
|
40473
|
+
import { Fragment as Fragment16, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
40025
40474
|
function Toggle({ label, children, className, ...props }) {
|
|
40026
40475
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
40027
|
-
return /* @__PURE__ */
|
|
40476
|
+
return /* @__PURE__ */ jsxs44(Fragment16, { children: [
|
|
40028
40477
|
label && /* @__PURE__ */ jsx69(Label2, { children: label }),
|
|
40029
40478
|
/* @__PURE__ */ jsx69(
|
|
40030
40479
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
@@ -40045,7 +40494,7 @@ function Toggle({ label, children, className, ...props }) {
|
|
|
40045
40494
|
}
|
|
40046
40495
|
|
|
40047
40496
|
// src/components/ToggleGroup.tsx
|
|
40048
|
-
import { jsx as jsx70, jsxs as
|
|
40497
|
+
import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
40049
40498
|
function ToggleGroup({
|
|
40050
40499
|
label,
|
|
40051
40500
|
value,
|
|
@@ -40064,7 +40513,7 @@ function ToggleGroup({
|
|
|
40064
40513
|
onSelectionChange?.(keys);
|
|
40065
40514
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
40066
40515
|
};
|
|
40067
|
-
return /* @__PURE__ */
|
|
40516
|
+
return /* @__PURE__ */ jsxs45(
|
|
40068
40517
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
40069
40518
|
{
|
|
40070
40519
|
...props,
|