@mirai/ui 1.1.0-c → 1.1.0-d
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/build/components/Action/Action.js +2 -4
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Button/Button.js +5 -7
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Calendar/Calendar.Month.js +4 -6
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +6 -6
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.Weekdays.js +3 -6
- package/build/components/Calendar/Calendar.Weekdays.js.map +1 -1
- package/build/components/Calendar/Calendar.js +3 -3
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +32 -32
- package/build/components/InputNumber/InputNumber.js +6 -9
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +24 -24
- package/build/components/InputOption/InputOption.js +4 -7
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +4 -4
- package/build/components/InputPhone/InputPhone.js +11 -11
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +27 -27
- package/build/components/InputSelect/InputSelect.js +7 -7
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +12 -12
- package/build/components/InputText/InputText.js +10 -10
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +7 -7
- package/build/components/InputText/partials/InputText.Hint.js +2 -5
- package/build/components/InputText/partials/InputText.Hint.js.map +1 -1
- package/build/components/InputText/partials/InputText.IconState.js +2 -5
- package/build/components/InputText/partials/InputText.IconState.js.map +1 -1
- package/build/components/InputText/partials/InputText.Label.js +3 -6
- package/build/components/InputText/partials/InputText.Label.js.map +1 -1
- package/build/components/Menu/Menu.Option.js +5 -8
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.js +3 -6
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.module.css +0 -3
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +2 -2
- package/build/components/Modal/Modal.js +8 -8
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +3 -3
- package/build/components/Notification/Notification.js +5 -8
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +19 -19
- package/build/components/Progress/Progress.js +3 -6
- package/build/components/Progress/Progress.js.map +1 -1
- package/build/components/Slider/Slider.js +11 -11
- package/build/components/Slider/Slider.js.map +1 -1
- package/build/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +12 -12
- package/build/components/Table/Table.ColumnFilter.js +9 -9
- package/build/components/Table/Table.ColumnFilter.js.map +1 -1
- package/build/components/Table/Table.Filter.js +4 -7
- package/build/components/Table/Table.Filter.js.map +1 -1
- package/build/components/Table/Table.Row.js +7 -7
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.js +3 -3
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/Table.stories.js +5 -4
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +12 -12
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +60 -60
- package/build/components/Tooltip/Tooltip.js +4 -4
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.js +3 -6
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Icon/Icon.js +2 -4
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/Icon.module.css +4 -4
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +27 -27
- package/build/primitives/Input/Input.js +2 -2
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Layer/Layer.js +2 -2
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +2 -4
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Radio/Radio.js +4 -7
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.js +2 -2
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/Select/Select.js +2 -2
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Switch/Switch.js +4 -7
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Text/Text.js +3 -47
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.module.css +4 -4
- package/build/primitives/View/View.js +2 -4
- package/build/primitives/View/View.js.map +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
19
19
|
class="view row icons"
|
|
20
20
|
>
|
|
21
21
|
<ui_icon
|
|
22
|
-
class="icon
|
|
22
|
+
class="icon h3 icon disabled"
|
|
23
23
|
>
|
|
24
24
|
<svg
|
|
25
25
|
fill="currentColor"
|
|
@@ -51,7 +51,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
51
51
|
class="view row icons"
|
|
52
52
|
>
|
|
53
53
|
<ui_icon
|
|
54
|
-
class="icon
|
|
54
|
+
class="icon h3 icon disabled"
|
|
55
55
|
>
|
|
56
56
|
<svg
|
|
57
57
|
fill="currentColor"
|
|
@@ -83,7 +83,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
83
83
|
class="view row icons"
|
|
84
84
|
>
|
|
85
85
|
<ui_icon
|
|
86
|
-
class="icon
|
|
86
|
+
class="icon h3 icon disabled"
|
|
87
87
|
>
|
|
88
88
|
<svg
|
|
89
89
|
fill="currentColor"
|
|
@@ -121,7 +121,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
121
121
|
class="view row icons"
|
|
122
122
|
>
|
|
123
123
|
<ui_icon
|
|
124
|
-
class="icon
|
|
124
|
+
class="icon h3 icon disabled"
|
|
125
125
|
>
|
|
126
126
|
<svg
|
|
127
127
|
fill="currentColor"
|
|
@@ -153,7 +153,7 @@ exports[`component:<Table> inherit:className 1`] = `
|
|
|
153
153
|
class="view row icons"
|
|
154
154
|
>
|
|
155
155
|
<ui_icon
|
|
156
|
-
class="icon
|
|
156
|
+
class="icon h3 icon disabled"
|
|
157
157
|
>
|
|
158
158
|
<svg
|
|
159
159
|
fill="currentColor"
|
|
@@ -570,7 +570,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
570
570
|
class="view row icons"
|
|
571
571
|
>
|
|
572
572
|
<ui_icon
|
|
573
|
-
class="icon
|
|
573
|
+
class="icon h3 icon disabled"
|
|
574
574
|
>
|
|
575
575
|
<svg
|
|
576
576
|
fill="currentColor"
|
|
@@ -597,7 +597,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
597
597
|
tabindex="0"
|
|
598
598
|
>
|
|
599
599
|
<ui_icon
|
|
600
|
-
class="icon
|
|
600
|
+
class="icon h3 icon disabled"
|
|
601
601
|
>
|
|
602
602
|
<svg
|
|
603
603
|
fill="currentColor"
|
|
@@ -631,7 +631,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
631
631
|
class="view row icons"
|
|
632
632
|
>
|
|
633
633
|
<ui_icon
|
|
634
|
-
class="icon
|
|
634
|
+
class="icon h3 icon disabled"
|
|
635
635
|
>
|
|
636
636
|
<svg
|
|
637
637
|
fill="currentColor"
|
|
@@ -658,7 +658,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
658
658
|
tabindex="0"
|
|
659
659
|
>
|
|
660
660
|
<ui_icon
|
|
661
|
-
class="icon
|
|
661
|
+
class="icon h3 icon disabled"
|
|
662
662
|
>
|
|
663
663
|
<svg
|
|
664
664
|
fill="currentColor"
|
|
@@ -692,7 +692,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
692
692
|
class="view row icons"
|
|
693
693
|
>
|
|
694
694
|
<ui_icon
|
|
695
|
-
class="icon
|
|
695
|
+
class="icon h3 icon disabled"
|
|
696
696
|
>
|
|
697
697
|
<svg
|
|
698
698
|
fill="currentColor"
|
|
@@ -719,7 +719,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
719
719
|
tabindex="0"
|
|
720
720
|
>
|
|
721
721
|
<ui_icon
|
|
722
|
-
class="icon
|
|
722
|
+
class="icon h3 icon disabled"
|
|
723
723
|
>
|
|
724
724
|
<svg
|
|
725
725
|
fill="currentColor"
|
|
@@ -759,7 +759,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
759
759
|
class="view row icons"
|
|
760
760
|
>
|
|
761
761
|
<ui_icon
|
|
762
|
-
class="icon
|
|
762
|
+
class="icon h3 icon disabled"
|
|
763
763
|
>
|
|
764
764
|
<svg
|
|
765
765
|
fill="currentColor"
|
|
@@ -786,7 +786,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
786
786
|
tabindex="0"
|
|
787
787
|
>
|
|
788
788
|
<ui_icon
|
|
789
|
-
class="icon
|
|
789
|
+
class="icon h3 icon disabled"
|
|
790
790
|
>
|
|
791
791
|
<svg
|
|
792
792
|
fill="currentColor"
|
|
@@ -820,7 +820,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
820
820
|
class="view row icons"
|
|
821
821
|
>
|
|
822
822
|
<ui_icon
|
|
823
|
-
class="icon
|
|
823
|
+
class="icon h3 icon disabled"
|
|
824
824
|
>
|
|
825
825
|
<svg
|
|
826
826
|
fill="currentColor"
|
|
@@ -847,7 +847,7 @@ exports[`component:<Table> prop:filter 1`] = `
|
|
|
847
847
|
tabindex="0"
|
|
848
848
|
>
|
|
849
849
|
<ui_icon
|
|
850
|
-
class="icon
|
|
850
|
+
class="icon h3 icon disabled"
|
|
851
851
|
>
|
|
852
852
|
<svg
|
|
853
853
|
fill="currentColor"
|
|
@@ -1038,7 +1038,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1038
1038
|
class="view row icons"
|
|
1039
1039
|
>
|
|
1040
1040
|
<ui_icon
|
|
1041
|
-
class="icon
|
|
1041
|
+
class="icon h3 icon disabled"
|
|
1042
1042
|
>
|
|
1043
1043
|
<svg
|
|
1044
1044
|
fill="currentColor"
|
|
@@ -1070,7 +1070,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1070
1070
|
class="view row icons"
|
|
1071
1071
|
>
|
|
1072
1072
|
<ui_icon
|
|
1073
|
-
class="icon
|
|
1073
|
+
class="icon h3 icon disabled"
|
|
1074
1074
|
>
|
|
1075
1075
|
<svg
|
|
1076
1076
|
fill="currentColor"
|
|
@@ -1102,7 +1102,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1102
1102
|
class="view row icons"
|
|
1103
1103
|
>
|
|
1104
1104
|
<ui_icon
|
|
1105
|
-
class="icon
|
|
1105
|
+
class="icon h3 icon disabled"
|
|
1106
1106
|
>
|
|
1107
1107
|
<svg
|
|
1108
1108
|
fill="currentColor"
|
|
@@ -1140,7 +1140,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1140
1140
|
class="view row icons"
|
|
1141
1141
|
>
|
|
1142
1142
|
<ui_icon
|
|
1143
|
-
class="icon
|
|
1143
|
+
class="icon h3 icon disabled"
|
|
1144
1144
|
>
|
|
1145
1145
|
<svg
|
|
1146
1146
|
fill="currentColor"
|
|
@@ -1172,7 +1172,7 @@ exports[`component:<Table> prop:inline (false 1`] = `
|
|
|
1172
1172
|
class="view row icons"
|
|
1173
1173
|
>
|
|
1174
1174
|
<ui_icon
|
|
1175
|
-
class="icon
|
|
1175
|
+
class="icon h3 icon disabled"
|
|
1176
1176
|
>
|
|
1177
1177
|
<svg
|
|
1178
1178
|
fill="currentColor"
|
|
@@ -1465,7 +1465,7 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1465
1465
|
class="view row icons"
|
|
1466
1466
|
>
|
|
1467
1467
|
<ui_icon
|
|
1468
|
-
class="icon
|
|
1468
|
+
class="icon h3 icon disabled"
|
|
1469
1469
|
>
|
|
1470
1470
|
<svg
|
|
1471
1471
|
fill="currentColor"
|
|
@@ -1499,7 +1499,7 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1499
1499
|
class="view row icons"
|
|
1500
1500
|
>
|
|
1501
1501
|
<ui_icon
|
|
1502
|
-
class="icon
|
|
1502
|
+
class="icon h3 icon disabled"
|
|
1503
1503
|
>
|
|
1504
1504
|
<svg
|
|
1505
1505
|
fill="currentColor"
|
|
@@ -1533,7 +1533,7 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1533
1533
|
class="view row icons"
|
|
1534
1534
|
>
|
|
1535
1535
|
<ui_icon
|
|
1536
|
-
class="icon
|
|
1536
|
+
class="icon h3 icon disabled"
|
|
1537
1537
|
>
|
|
1538
1538
|
<svg
|
|
1539
1539
|
fill="currentColor"
|
|
@@ -1573,7 +1573,7 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1573
1573
|
class="view row icons"
|
|
1574
1574
|
>
|
|
1575
1575
|
<ui_icon
|
|
1576
|
-
class="icon
|
|
1576
|
+
class="icon h3 icon disabled"
|
|
1577
1577
|
>
|
|
1578
1578
|
<svg
|
|
1579
1579
|
fill="currentColor"
|
|
@@ -1607,7 +1607,7 @@ exports[`component:<Table> prop:onScroll 1`] = `
|
|
|
1607
1607
|
class="view row icons"
|
|
1608
1608
|
>
|
|
1609
1609
|
<ui_icon
|
|
1610
|
-
class="icon
|
|
1610
|
+
class="icon h3 icon disabled"
|
|
1611
1611
|
>
|
|
1612
1612
|
<svg
|
|
1613
1613
|
fill="currentColor"
|
|
@@ -2000,7 +2000,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2000
2000
|
class="view row icons"
|
|
2001
2001
|
>
|
|
2002
2002
|
<ui_icon
|
|
2003
|
-
class="icon
|
|
2003
|
+
class="icon h3 icon disabled"
|
|
2004
2004
|
>
|
|
2005
2005
|
<svg
|
|
2006
2006
|
fill="currentColor"
|
|
@@ -2034,7 +2034,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2034
2034
|
class="view row icons"
|
|
2035
2035
|
>
|
|
2036
2036
|
<ui_icon
|
|
2037
|
-
class="icon
|
|
2037
|
+
class="icon h3 icon disabled"
|
|
2038
2038
|
>
|
|
2039
2039
|
<svg
|
|
2040
2040
|
fill="currentColor"
|
|
@@ -2068,7 +2068,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2068
2068
|
class="view row icons"
|
|
2069
2069
|
>
|
|
2070
2070
|
<ui_icon
|
|
2071
|
-
class="icon
|
|
2071
|
+
class="icon h3 icon disabled"
|
|
2072
2072
|
>
|
|
2073
2073
|
<svg
|
|
2074
2074
|
fill="currentColor"
|
|
@@ -2108,7 +2108,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2108
2108
|
class="view row icons"
|
|
2109
2109
|
>
|
|
2110
2110
|
<ui_icon
|
|
2111
|
-
class="icon
|
|
2111
|
+
class="icon h3 icon disabled"
|
|
2112
2112
|
>
|
|
2113
2113
|
<svg
|
|
2114
2114
|
fill="currentColor"
|
|
@@ -2142,7 +2142,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
|
|
|
2142
2142
|
class="view row icons"
|
|
2143
2143
|
>
|
|
2144
2144
|
<ui_icon
|
|
2145
|
-
class="icon
|
|
2145
|
+
class="icon h3 icon disabled"
|
|
2146
2146
|
>
|
|
2147
2147
|
<svg
|
|
2148
2148
|
fill="currentColor"
|
|
@@ -2626,7 +2626,7 @@ exports[`component:<Table> prop:search 1`] = `
|
|
|
2626
2626
|
class="view row icons"
|
|
2627
2627
|
>
|
|
2628
2628
|
<ui_icon
|
|
2629
|
-
class="icon
|
|
2629
|
+
class="icon h3 icon disabled"
|
|
2630
2630
|
>
|
|
2631
2631
|
<svg
|
|
2632
2632
|
fill="currentColor"
|
|
@@ -2658,7 +2658,7 @@ exports[`component:<Table> prop:search 1`] = `
|
|
|
2658
2658
|
class="view row icons"
|
|
2659
2659
|
>
|
|
2660
2660
|
<ui_icon
|
|
2661
|
-
class="icon
|
|
2661
|
+
class="icon h3 icon disabled"
|
|
2662
2662
|
>
|
|
2663
2663
|
<svg
|
|
2664
2664
|
fill="currentColor"
|
|
@@ -2690,7 +2690,7 @@ exports[`component:<Table> prop:search 1`] = `
|
|
|
2690
2690
|
class="view row icons"
|
|
2691
2691
|
>
|
|
2692
2692
|
<ui_icon
|
|
2693
|
-
class="icon
|
|
2693
|
+
class="icon h3 icon disabled"
|
|
2694
2694
|
>
|
|
2695
2695
|
<svg
|
|
2696
2696
|
fill="currentColor"
|
|
@@ -2728,7 +2728,7 @@ exports[`component:<Table> prop:search 1`] = `
|
|
|
2728
2728
|
class="view row icons"
|
|
2729
2729
|
>
|
|
2730
2730
|
<ui_icon
|
|
2731
|
-
class="icon
|
|
2731
|
+
class="icon h3 icon disabled"
|
|
2732
2732
|
>
|
|
2733
2733
|
<svg
|
|
2734
2734
|
fill="currentColor"
|
|
@@ -2760,7 +2760,7 @@ exports[`component:<Table> prop:search 1`] = `
|
|
|
2760
2760
|
class="view row icons"
|
|
2761
2761
|
>
|
|
2762
2762
|
<ui_icon
|
|
2763
|
-
class="icon
|
|
2763
|
+
class="icon h3 icon disabled"
|
|
2764
2764
|
>
|
|
2765
2765
|
<svg
|
|
2766
2766
|
fill="currentColor"
|
|
@@ -2846,7 +2846,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
2846
2846
|
class="view row icons"
|
|
2847
2847
|
>
|
|
2848
2848
|
<ui_icon
|
|
2849
|
-
class="icon
|
|
2849
|
+
class="icon h3 icon disabled"
|
|
2850
2850
|
>
|
|
2851
2851
|
<svg
|
|
2852
2852
|
fill="currentColor"
|
|
@@ -2878,7 +2878,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
2878
2878
|
class="view row icons"
|
|
2879
2879
|
>
|
|
2880
2880
|
<ui_icon
|
|
2881
|
-
class="icon
|
|
2881
|
+
class="icon h3 icon disabled"
|
|
2882
2882
|
>
|
|
2883
2883
|
<svg
|
|
2884
2884
|
fill="currentColor"
|
|
@@ -2910,7 +2910,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
2910
2910
|
class="view row icons"
|
|
2911
2911
|
>
|
|
2912
2912
|
<ui_icon
|
|
2913
|
-
class="icon
|
|
2913
|
+
class="icon h3 icon disabled"
|
|
2914
2914
|
>
|
|
2915
2915
|
<svg
|
|
2916
2916
|
fill="currentColor"
|
|
@@ -2948,7 +2948,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
2948
2948
|
class="view row icons"
|
|
2949
2949
|
>
|
|
2950
2950
|
<ui_icon
|
|
2951
|
-
class="icon
|
|
2951
|
+
class="icon h3 icon disabled"
|
|
2952
2952
|
>
|
|
2953
2953
|
<svg
|
|
2954
2954
|
fill="currentColor"
|
|
@@ -2980,7 +2980,7 @@ exports[`component:<Table> prop:selected 1`] = `
|
|
|
2980
2980
|
class="view row icons"
|
|
2981
2981
|
>
|
|
2982
2982
|
<ui_icon
|
|
2983
|
-
class="icon
|
|
2983
|
+
class="icon h3 icon disabled"
|
|
2984
2984
|
>
|
|
2985
2985
|
<svg
|
|
2986
2986
|
fill="currentColor"
|
|
@@ -3319,7 +3319,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3319
3319
|
class="view row icons"
|
|
3320
3320
|
>
|
|
3321
3321
|
<ui_icon
|
|
3322
|
-
class="icon
|
|
3322
|
+
class="icon h3 icon disabled"
|
|
3323
3323
|
>
|
|
3324
3324
|
<svg
|
|
3325
3325
|
fill="currentColor"
|
|
@@ -3346,7 +3346,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3346
3346
|
tabindex="0"
|
|
3347
3347
|
>
|
|
3348
3348
|
<ui_icon
|
|
3349
|
-
class="icon
|
|
3349
|
+
class="icon h3 icon disabled"
|
|
3350
3350
|
>
|
|
3351
3351
|
<svg
|
|
3352
3352
|
fill="currentColor"
|
|
@@ -3380,7 +3380,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3380
3380
|
class="view row icons"
|
|
3381
3381
|
>
|
|
3382
3382
|
<ui_icon
|
|
3383
|
-
class="icon
|
|
3383
|
+
class="icon h3 icon disabled"
|
|
3384
3384
|
>
|
|
3385
3385
|
<svg
|
|
3386
3386
|
fill="currentColor"
|
|
@@ -3407,7 +3407,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3407
3407
|
tabindex="0"
|
|
3408
3408
|
>
|
|
3409
3409
|
<ui_icon
|
|
3410
|
-
class="icon
|
|
3410
|
+
class="icon h3 icon disabled"
|
|
3411
3411
|
>
|
|
3412
3412
|
<svg
|
|
3413
3413
|
fill="currentColor"
|
|
@@ -3441,7 +3441,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3441
3441
|
class="view row icons"
|
|
3442
3442
|
>
|
|
3443
3443
|
<ui_icon
|
|
3444
|
-
class="icon
|
|
3444
|
+
class="icon h3 icon disabled"
|
|
3445
3445
|
>
|
|
3446
3446
|
<svg
|
|
3447
3447
|
fill="currentColor"
|
|
@@ -3468,7 +3468,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3468
3468
|
tabindex="0"
|
|
3469
3469
|
>
|
|
3470
3470
|
<ui_icon
|
|
3471
|
-
class="icon
|
|
3471
|
+
class="icon h3 icon disabled"
|
|
3472
3472
|
>
|
|
3473
3473
|
<svg
|
|
3474
3474
|
fill="currentColor"
|
|
@@ -3508,7 +3508,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3508
3508
|
class="view row icons"
|
|
3509
3509
|
>
|
|
3510
3510
|
<ui_icon
|
|
3511
|
-
class="icon
|
|
3511
|
+
class="icon h3 icon disabled"
|
|
3512
3512
|
>
|
|
3513
3513
|
<svg
|
|
3514
3514
|
fill="currentColor"
|
|
@@ -3535,7 +3535,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3535
3535
|
tabindex="0"
|
|
3536
3536
|
>
|
|
3537
3537
|
<ui_icon
|
|
3538
|
-
class="icon
|
|
3538
|
+
class="icon h3 icon disabled"
|
|
3539
3539
|
>
|
|
3540
3540
|
<svg
|
|
3541
3541
|
fill="currentColor"
|
|
@@ -3569,7 +3569,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3569
3569
|
class="view row icons"
|
|
3570
3570
|
>
|
|
3571
3571
|
<ui_icon
|
|
3572
|
-
class="icon
|
|
3572
|
+
class="icon h3 icon disabled"
|
|
3573
3573
|
>
|
|
3574
3574
|
<svg
|
|
3575
3575
|
fill="currentColor"
|
|
@@ -3596,7 +3596,7 @@ exports[`component:<Table> prop:store 1`] = `
|
|
|
3596
3596
|
tabindex="0"
|
|
3597
3597
|
>
|
|
3598
3598
|
<ui_icon
|
|
3599
|
-
class="icon
|
|
3599
|
+
class="icon h3 icon disabled"
|
|
3600
3600
|
>
|
|
3601
3601
|
<svg
|
|
3602
3602
|
fill="currentColor"
|
|
@@ -3648,7 +3648,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3648
3648
|
class="view row icons"
|
|
3649
3649
|
>
|
|
3650
3650
|
<ui_icon
|
|
3651
|
-
class="icon
|
|
3651
|
+
class="icon h3 icon disabled"
|
|
3652
3652
|
>
|
|
3653
3653
|
<svg
|
|
3654
3654
|
fill="currentColor"
|
|
@@ -3680,7 +3680,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3680
3680
|
class="view row icons"
|
|
3681
3681
|
>
|
|
3682
3682
|
<ui_icon
|
|
3683
|
-
class="icon
|
|
3683
|
+
class="icon h3 icon disabled"
|
|
3684
3684
|
>
|
|
3685
3685
|
<svg
|
|
3686
3686
|
fill="currentColor"
|
|
@@ -3712,7 +3712,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3712
3712
|
class="view row icons"
|
|
3713
3713
|
>
|
|
3714
3714
|
<ui_icon
|
|
3715
|
-
class="icon
|
|
3715
|
+
class="icon h3 icon disabled"
|
|
3716
3716
|
>
|
|
3717
3717
|
<svg
|
|
3718
3718
|
fill="currentColor"
|
|
@@ -3750,7 +3750,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3750
3750
|
class="view row icons"
|
|
3751
3751
|
>
|
|
3752
3752
|
<ui_icon
|
|
3753
|
-
class="icon
|
|
3753
|
+
class="icon h3 icon disabled"
|
|
3754
3754
|
>
|
|
3755
3755
|
<svg
|
|
3756
3756
|
fill="currentColor"
|
|
@@ -3782,7 +3782,7 @@ exports[`component:<Table> renders 1`] = `
|
|
|
3782
3782
|
class="view row icons"
|
|
3783
3783
|
>
|
|
3784
3784
|
<ui_icon
|
|
3785
|
-
class="icon
|
|
3785
|
+
class="icon h3 icon disabled"
|
|
3786
3786
|
>
|
|
3787
3787
|
<svg
|
|
3788
3788
|
fill="currentColor"
|
|
@@ -4075,7 +4075,7 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4075
4075
|
class="view row icons"
|
|
4076
4076
|
>
|
|
4077
4077
|
<ui_icon
|
|
4078
|
-
class="icon
|
|
4078
|
+
class="icon h3 icon disabled"
|
|
4079
4079
|
>
|
|
4080
4080
|
<svg
|
|
4081
4081
|
fill="currentColor"
|
|
@@ -4109,7 +4109,7 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4109
4109
|
class="view row icons"
|
|
4110
4110
|
>
|
|
4111
4111
|
<ui_icon
|
|
4112
|
-
class="icon
|
|
4112
|
+
class="icon h3 icon disabled"
|
|
4113
4113
|
>
|
|
4114
4114
|
<svg
|
|
4115
4115
|
fill="currentColor"
|
|
@@ -4143,7 +4143,7 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4143
4143
|
class="view row icons"
|
|
4144
4144
|
>
|
|
4145
4145
|
<ui_icon
|
|
4146
|
-
class="icon
|
|
4146
|
+
class="icon h3 icon disabled"
|
|
4147
4147
|
>
|
|
4148
4148
|
<svg
|
|
4149
4149
|
fill="currentColor"
|
|
@@ -4183,7 +4183,7 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4183
4183
|
class="view row icons"
|
|
4184
4184
|
>
|
|
4185
4185
|
<ui_icon
|
|
4186
|
-
class="icon
|
|
4186
|
+
class="icon h3 icon disabled"
|
|
4187
4187
|
>
|
|
4188
4188
|
<svg
|
|
4189
4189
|
fill="currentColor"
|
|
@@ -4217,7 +4217,7 @@ exports[`component:<Table> testId 1`] = `
|
|
|
4217
4217
|
class="view row icons"
|
|
4218
4218
|
>
|
|
4219
4219
|
<ui_icon
|
|
4220
|
-
class="icon
|
|
4220
|
+
class="icon h3 icon disabled"
|
|
4221
4221
|
>
|
|
4222
4222
|
<svg
|
|
4223
4223
|
fill="currentColor"
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _primitives = require("../../primitives");
|
|
12
12
|
var _helpers2 = require("./helpers");
|
|
13
|
-
var
|
|
13
|
+
var _TooltipModule = _interopRequireDefault(require("./Tooltip.module.css"));
|
|
14
14
|
var _excluded = ["children", "left", "pressable", "right", "Template", "text", "timestamp", "top", "visible"],
|
|
15
15
|
_excluded2 = ["fixed", "role", "testId"];
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -84,13 +84,13 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
84
84
|
return setVisible(true);
|
|
85
85
|
} : undefined), _defineProperty(_objectSpread2, (0, _helpers2.isPressableInstance)(child) ? 'onLeave' : 'onMouseLeave', function () {
|
|
86
86
|
return setVisible(false);
|
|
87
|
-
}), _defineProperty(_objectSpread2, "className", (0, _helpers.styles)(
|
|
87
|
+
}), _defineProperty(_objectSpread2, "className", (0, _helpers.styles)(_TooltipModule.default.dispatcher, child.props.className)), _defineProperty(_objectSpread2, "testId", testId ? "".concat(testId, "-dispatcher") : undefined), _objectSpread2)));
|
|
88
88
|
}), /*#__PURE__*/_react.default.createElement(_primitives.LayerContent, null, /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
89
|
-
className: (0, _helpers.styles)(
|
|
89
|
+
className: (0, _helpers.styles)(_TooltipModule.default.tooltip, (propLeft || propRight) && _TooltipModule.default.align, left && _TooltipModule.default.left, right && _TooltipModule.default.right, top ? _TooltipModule.default.top : _TooltipModule.default.bottom, others.className)
|
|
90
90
|
}), Template ? /*#__PURE__*/_react.default.createElement(Template, null) : /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
91
91
|
bold: true,
|
|
92
92
|
small: true,
|
|
93
|
-
className:
|
|
93
|
+
className: _TooltipModule.default.text
|
|
94
94
|
}, text)))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
|
|
95
95
|
};
|
|
96
96
|
exports.Tooltip = Tooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","names":["Tooltip","children","propLeft","left","pressable","propRight","right","Template","text","timestamp","propTop","top","visible","propVisible","inherit","useState","setVisible","position","setPosition","fixed","role","testId","others","React","Children","map","child","index","cloneElement","key","props","onClick","undefined","isPressableInstance","styles","style","dispatcher","className","tooltip","align","bottom","propTypes","PropTypes","node","isRequired","bool","oneOfType","func","string","number"],"sources":["../../../src/components/Tooltip/Tooltip.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Layer, LayerContent, Text, View } from '../../primitives';\nimport { isPressableInstance } from './helpers';\nimport
|
|
1
|
+
{"version":3,"file":"Tooltip.js","names":["Tooltip","children","propLeft","left","pressable","propRight","right","Template","text","timestamp","propTop","top","visible","propVisible","inherit","useState","setVisible","position","setPosition","fixed","role","testId","others","React","Children","map","child","index","cloneElement","key","props","onClick","undefined","isPressableInstance","styles","style","dispatcher","className","tooltip","align","bottom","propTypes","PropTypes","node","isRequired","bool","oneOfType","func","string","number"],"sources":["../../../src/components/Tooltip/Tooltip.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Layer, LayerContent, Text, View } from '../../primitives';\nimport { isPressableInstance } from './helpers';\nimport style from './Tooltip.module.css';\n\nconst Tooltip = ({\n children,\n left: propLeft,\n pressable = false,\n right: propRight,\n Template,\n text,\n timestamp,\n top: propTop,\n visible: propVisible = false,\n ...inherit\n}) => {\n const [visible, setVisible] = useState(propVisible);\n const [position, setPosition] = useState({});\n\n const { fixed, role = 'tooltip', testId, ...others } = inherit;\n const { left, right, top = propTop } = position;\n\n return text || Template ? (\n <Layer\n {...{ fixed, role, testId, timestamp, top, visible }}\n centered\n forceRender={false}\n left={propLeft}\n right={propRight}\n onPosition={setPosition}\n >\n {React.Children.map(children, (child, index) =>\n React.cloneElement(child, {\n key: index,\n ...child.props,\n onClick: pressable ? () => setVisible(!visible) : undefined,\n [isPressableInstance(child) ? 'onEnter' : 'onMouseEnter']: !pressable ? () => setVisible(true) : undefined,\n [isPressableInstance(child) ? 'onLeave' : 'onMouseLeave']: () => setVisible(false),\n className: styles(style.dispatcher, child.props.className),\n testId: testId ? `${testId}-dispatcher` : undefined,\n }),\n )}\n\n <LayerContent>\n <View\n {...others}\n className={styles(\n style.tooltip,\n (propLeft || propRight) && style.align,\n left && style.left,\n right && style.right,\n top ? style.top : style.bottom,\n others.className,\n )}\n >\n {Template ? (\n <Template />\n ) : (\n <Text bold small className={style.text}>\n {text}\n </Text>\n )}\n </View>\n </LayerContent>\n </Layer>\n ) : (\n <>{children}</>\n );\n};\n\nTooltip.propTypes = {\n children: PropTypes.node.isRequired,\n left: PropTypes.bool,\n pressable: PropTypes.bool,\n right: PropTypes.bool,\n Template: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n text: PropTypes.string,\n timestamp: PropTypes.number,\n top: PropTypes.bool,\n visible: PropTypes.bool,\n};\n\nexport { Tooltip };\n"],"mappings":"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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -9,10 +8,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _helpers = require("../../helpers");
|
|
11
10
|
var _Primitive = require("../Primitive");
|
|
12
|
-
var
|
|
11
|
+
var _CheckboxModule = _interopRequireDefault(require("./Checkbox.module.css"));
|
|
13
12
|
var _excluded = ["checked", "children", "disabled", "name", "value", "onChange"];
|
|
14
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
14
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
18
15
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -35,7 +32,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
35
32
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, {
|
|
36
33
|
role: others.role || 'checkbox',
|
|
37
34
|
tag: "checkbox",
|
|
38
|
-
className: (0, _helpers.styles)(
|
|
35
|
+
className: (0, _helpers.styles)(_CheckboxModule.default.checkbox, others.className),
|
|
39
36
|
style: others.style
|
|
40
37
|
}, /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, {
|
|
41
38
|
checked: checked,
|
|
@@ -46,7 +43,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
46
43
|
value: value,
|
|
47
44
|
onChange: handleChange,
|
|
48
45
|
testId: others.testId,
|
|
49
|
-
className: (0, _helpers.styles)(checked &&
|
|
46
|
+
className: (0, _helpers.styles)(checked && _CheckboxModule.default.checked, _CheckboxModule.default.input)
|
|
50
47
|
}), children);
|
|
51
48
|
};
|
|
52
49
|
exports.Checkbox = Checkbox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","names":["Checkbox","checked","children","disabled","name","value","onChange","others","handleChange","event","target","role","styles","style","checkbox","className","testId","input","displayName","propTypes","PropTypes","bool","node","string","isRequired","oneOfType","func"],"sources":["../../../src/primitives/Checkbox/Checkbox.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport
|
|
1
|
+
{"version":3,"file":"Checkbox.js","names":["Checkbox","checked","children","disabled","name","value","onChange","others","handleChange","event","target","role","styles","style","checkbox","className","testId","input","displayName","propTypes","PropTypes","bool","node","string","isRequired","oneOfType","func"],"sources":["../../../src/primitives/Checkbox/Checkbox.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport style from './Checkbox.module.css';\n\nconst Checkbox = ({ checked = false, children, disabled, name, value = '', onChange = () => {}, ...others }) => {\n const handleChange = (event) => {\n if (disabled) return;\n\n const {\n target: { checked },\n } = event;\n onChange(checked, event);\n };\n\n return (\n <Primitive\n role={others.role || 'checkbox'}\n tag=\"checkbox\"\n className={styles(style.checkbox, others.className)}\n style={others.style}\n >\n <Primitive\n checked={checked}\n disabled={disabled}\n name={name}\n tag=\"input\"\n type=\"checkbox\"\n value={value}\n onChange={handleChange}\n testId={others.testId}\n className={styles(checked && style.checked, style.input)}\n />\n {children}\n </Primitive>\n );\n};\n\nCheckbox.displayName = 'Primitive:Checkbox';\n\nCheckbox.propTypes = {\n checked: PropTypes.bool,\n children: PropTypes.node,\n disabled: PropTypes.bool,\n name: PropTypes.string.isRequired,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n onChange: PropTypes.func,\n};\n\nexport { Checkbox };\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AACA;AAA0C;AAAA;AAAA;AAAA;AAE1C,IAAMA,QAAQ,GAAG,SAAXA,QAAQ,OAAkG;EAAA,wBAA5FC,OAAO;IAAPA,OAAO,6BAAG,KAAK;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,IAAI,QAAJA,IAAI;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAG,EAAE;IAAA,qBAAEC,QAAQ;IAARA,QAAQ,8BAAG,YAAM,CAAC,CAAC;IAAKC,MAAM;EACvG,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAIC,KAAK,EAAK;IAC9B,IAAIN,QAAQ,EAAE;IAEd,IACYF,OAAO,GACfQ,KAAK,CADPC,MAAM,CAAIT,OAAO;IAEnBK,QAAQ,CAACL,OAAO,EAAEQ,KAAK,CAAC;EAC1B,CAAC;EAED,oBACE,6BAAC,oBAAS;IACR,IAAI,EAAEF,MAAM,CAACI,IAAI,IAAI,UAAW;IAChC,GAAG,EAAC,UAAU;IACd,SAAS,EAAE,IAAAC,eAAM,EAACC,uBAAK,CAACC,QAAQ,EAAEP,MAAM,CAACQ,SAAS,CAAE;IACpD,KAAK,EAAER,MAAM,CAACM;EAAM,gBAEpB,6BAAC,oBAAS;IACR,OAAO,EAAEZ,OAAQ;IACjB,QAAQ,EAAEE,QAAS;IACnB,IAAI,EAAEC,IAAK;IACX,GAAG,EAAC,OAAO;IACX,IAAI,EAAC,UAAU;IACf,KAAK,EAAEC,KAAM;IACb,QAAQ,EAAEG,YAAa;IACvB,MAAM,EAAED,MAAM,CAACS,MAAO;IACtB,SAAS,EAAE,IAAAJ,eAAM,EAACX,OAAO,IAAIY,uBAAK,CAACZ,OAAO,EAAEY,uBAAK,CAACI,KAAK;EAAE,EACzD,EACDf,QAAQ,CACC;AAEhB,CAAC;AAAC;AAEFF,QAAQ,CAACkB,WAAW,GAAG,oBAAoB;AAE3ClB,QAAQ,CAACmB,SAAS,GAAG;EACnBlB,OAAO,EAAEmB,kBAAS,CAACC,IAAI;EACvBnB,QAAQ,EAAEkB,kBAAS,CAACE,IAAI;EACxBnB,QAAQ,EAAEiB,kBAAS,CAACC,IAAI;EACxBjB,IAAI,EAAEgB,kBAAS,CAACG,MAAM,CAACC,UAAU;EACjCnB,KAAK,EAAEe,kBAAS,CAACK,SAAS,CAAC,CAACL,kBAAS,CAACG,MAAM,EAAEH,kBAAS,CAACC,IAAI,CAAC,CAAC;EAC9Df,QAAQ,EAAEc,kBAAS,CAACM;AACtB,CAAC"}
|