@kanso-labs/react-native-kanso-ui 0.9.0 → 0.11.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/README.md +4 -3
- package/dist/autocomplete/index.js +15 -1
- package/dist/autocomplete/index.js.map +1 -1
- package/dist/button/group.d.ts +5 -0
- package/dist/button/group.js +115 -0
- package/dist/button/group.js.map +1 -0
- package/dist/button/index.d.ts +4 -1
- package/dist/button/index.js +44 -22
- package/dist/button/index.js.map +1 -1
- package/dist/button/slots.js +2 -1
- package/dist/button/slots.js.map +1 -1
- package/dist/calendar/index.js +351 -182
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/styles.js +33 -2
- package/dist/calendar/styles.js.map +1 -1
- package/dist/carousel/arrangement.d.ts +5 -0
- package/dist/carousel/arrangement.js +123 -0
- package/dist/carousel/arrangement.js.map +1 -0
- package/dist/chequer/index.js +95 -0
- package/dist/chequer/index.js.map +1 -0
- package/dist/collection/index.d.ts +157 -0
- package/dist/collection/index.js +1358 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/color-thumb/index.js +56 -0
- package/dist/color-thumb/index.js.map +1 -0
- package/dist/components/button/index.d.ts +4 -2
- package/dist/components/button/index.js +227 -188
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button-group/index.d.ts +87 -0
- package/dist/components/button-group/index.js +275 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/calendar/index.d.ts +11 -3
- package/dist/components/calendar/index.js +60 -45
- package/dist/components/calendar/index.js.map +1 -1
- package/dist/components/carousel/index.d.ts +72 -0
- package/dist/components/carousel/index.js +496 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/checkbox-group/index.d.ts +3 -4
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/checkbox-group/index.js.map +1 -1
- package/dist/components/chip/index.d.ts +4 -1
- package/dist/components/chip/index.js +229 -161
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/color-area/index.d.ts +85 -0
- package/dist/components/color-area/index.js +630 -0
- package/dist/components/color-area/index.js.map +1 -0
- package/dist/components/color-field/index.d.ts +144 -0
- package/dist/components/color-field/index.js +516 -0
- package/dist/components/color-field/index.js.map +1 -0
- package/dist/components/color-picker/index.d.ts +74 -0
- package/dist/components/color-picker/index.js +317 -0
- package/dist/components/color-picker/index.js.map +1 -0
- package/dist/components/color-slider/index.d.ts +82 -0
- package/dist/components/color-slider/index.js +456 -0
- package/dist/components/color-slider/index.js.map +1 -0
- package/dist/components/color-swatch/index.d.ts +46 -0
- package/dist/components/color-swatch/index.js +127 -0
- package/dist/components/color-swatch/index.js.map +1 -0
- package/dist/components/color-swatch-picker/index.d.ts +81 -0
- package/dist/components/color-swatch-picker/index.js +287 -0
- package/dist/components/color-swatch-picker/index.js.map +1 -0
- package/dist/components/color-wheel/index.d.ts +71 -0
- package/dist/components/color-wheel/index.js +407 -0
- package/dist/components/color-wheel/index.js.map +1 -0
- package/dist/components/combo-box/index.d.ts +193 -0
- package/dist/components/combo-box/index.js +616 -0
- package/dist/components/combo-box/index.js.map +1 -0
- package/dist/components/date-field/index.d.ts +120 -0
- package/dist/components/date-field/index.js +111 -0
- package/dist/components/date-field/index.js.map +1 -0
- package/dist/components/date-picker/index.d.ts +130 -0
- package/dist/components/date-picker/index.js +310 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/date-range-picker/index.d.ts +139 -0
- package/dist/components/date-range-picker/index.js +421 -0
- package/dist/components/date-range-picker/index.js.map +1 -0
- package/dist/components/dialog/index.d.ts +5 -5
- package/dist/components/dialog/index.js +5 -5
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/disclosure/index.d.ts +94 -0
- package/dist/components/disclosure/index.js +365 -0
- package/dist/components/disclosure/index.js.map +1 -0
- package/dist/components/disclosure-group/index.d.ts +61 -0
- package/dist/components/disclosure-group/index.js +100 -0
- package/dist/components/disclosure-group/index.js.map +1 -0
- package/dist/components/drop-zone/index.d.ts +113 -0
- package/dist/components/drop-zone/index.js +304 -0
- package/dist/components/drop-zone/index.js.map +1 -0
- package/dist/components/fab/index.d.ts +1 -1
- package/dist/components/fab/index.js +91 -76
- package/dist/components/fab/index.js.map +1 -1
- package/dist/components/form/index.d.ts +3 -2
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/icon-button/index.d.ts +4 -2
- package/dist/components/icon-button/index.js +204 -171
- package/dist/components/icon-button/index.js.map +1 -1
- package/dist/components/list/index.d.ts +15 -158
- package/dist/components/list/index.js +21 -1047
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/list-box/index.d.ts +73 -0
- package/dist/components/list-box/index.js +82 -0
- package/dist/components/list-box/index.js.map +1 -0
- package/dist/components/loading-indicator/index.d.ts +32 -0
- package/dist/components/loading-indicator/index.js +174 -0
- package/dist/components/loading-indicator/index.js.map +1 -0
- package/dist/components/menu/index.d.ts +3 -3
- package/dist/components/menu/index.js +3 -3
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/navigation-tree/index.d.ts +117 -0
- package/dist/components/navigation-tree/index.js +135 -0
- package/dist/components/navigation-tree/index.js.map +1 -0
- package/dist/components/number-field/index.js +132 -143
- package/dist/components/number-field/index.js.map +1 -1
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/range-calendar/index.d.ts +69 -0
- package/dist/components/range-calendar/index.js +144 -0
- package/dist/components/range-calendar/index.js.map +1 -0
- package/dist/components/search-view/index.d.ts +79 -0
- package/dist/components/search-view/index.js +571 -0
- package/dist/components/search-view/index.js.map +1 -0
- package/dist/components/select/index.d.ts +152 -0
- package/dist/components/select/index.js +419 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/sheet/index.d.ts +16 -7
- package/dist/components/sheet/index.js +157 -152
- package/dist/components/sheet/index.js.map +1 -1
- package/dist/components/slider/index.d.ts +111 -0
- package/dist/components/slider/index.js +673 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/split-button/index.d.ts +77 -0
- package/dist/components/split-button/index.js +354 -0
- package/dist/components/split-button/index.js.map +1 -0
- package/dist/components/table/index.d.ts +391 -0
- package/dist/components/table/index.js +1708 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +196 -0
- package/dist/components/tabs/index.js +1137 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/time-field/index.d.ts +43 -0
- package/dist/components/time-field/index.js +107 -0
- package/dist/components/time-field/index.js.map +1 -0
- package/dist/components/time-picker/index.d.ts +65 -0
- package/dist/components/time-picker/index.js +1168 -0
- package/dist/components/time-picker/index.js.map +1 -0
- package/dist/components/token-field/index.d.ts +105 -0
- package/dist/components/token-field/index.js +574 -0
- package/dist/components/token-field/index.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +102 -0
- package/dist/components/tooltip/index.js +223 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tree/index.d.ts +112 -0
- package/dist/components/tree/index.js +157 -0
- package/dist/components/tree/index.js.map +1 -0
- package/dist/disclosure/chevron.js +75 -0
- package/dist/disclosure/chevron.js.map +1 -0
- package/dist/disclosure/index.js +7 -0
- package/dist/disclosure/index.js.map +1 -0
- package/dist/drop/index.d.ts +54 -0
- package/dist/drop/index.js +161 -0
- package/dist/drop/index.js.map +1 -0
- package/dist/field/chevron.js +74 -0
- package/dist/field/chevron.js.map +1 -0
- package/dist/field/index.d.ts +2 -1
- package/dist/field/index.js +359 -154
- package/dist/field/index.js.map +1 -1
- package/dist/field/styles.js +18 -1
- package/dist/field/styles.js.map +1 -1
- package/dist/files/index.d.ts +18 -0
- package/dist/files/index.js +107 -0
- package/dist/files/index.js.map +1 -0
- package/dist/form/index.d.ts +5 -2
- package/dist/form/index.js +64 -85
- package/dist/form/index.js.map +1 -1
- package/dist/glyphs/index.js +128 -1
- package/dist/glyphs/index.js.map +1 -1
- package/dist/i18n/index.js +36 -1
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/messages.js +1734 -34
- package/dist/i18n/messages.js.map +1 -1
- package/dist/index.d.ts +37 -3
- package/dist/index.js +36 -3
- package/dist/indicator/paths.js +23 -1
- package/dist/indicator/paths.js.map +1 -1
- package/dist/modal/index.js +92 -77
- package/dist/modal/index.js.map +1 -1
- package/dist/number/keyboard.js +16 -0
- package/dist/number/keyboard.js.map +1 -0
- package/dist/overlay/anchored.js +68 -38
- package/dist/overlay/anchored.js.map +1 -1
- package/dist/overlay/keyboard.js +57 -0
- package/dist/overlay/keyboard.js.map +1 -0
- package/dist/overlay/panel.js +173 -19
- package/dist/overlay/panel.js.map +1 -1
- package/dist/overlay/placement.js +13 -1
- package/dist/overlay/placement.js.map +1 -1
- package/dist/picker/index.js +322 -0
- package/dist/picker/index.js.map +1 -0
- package/dist/press/index.d.ts +2 -0
- package/dist/press/index.js +102 -100
- package/dist/press/index.js.map +1 -1
- package/dist/row/index.js +77 -69
- package/dist/row/index.js.map +1 -1
- package/dist/row/styles.js +13 -2
- package/dist/row/styles.js.map +1 -1
- package/dist/segments/field.js +277 -0
- package/dist/segments/field.js.map +1 -0
- package/dist/segments/index.js +574 -0
- package/dist/segments/index.js.map +1 -0
- package/dist/segments/styles.js +24 -0
- package/dist/segments/styles.js.map +1 -0
- package/dist/slider/index.js +145 -0
- package/dist/slider/index.js.map +1 -0
- package/dist/swatch/index.js +56 -0
- package/dist/swatch/index.js.map +1 -0
- package/package.json +11 -2
|
@@ -148,11 +148,11 @@ function settleOf(at, velocity, settles) {
|
|
|
148
148
|
* </Sheet>
|
|
149
149
|
* ```
|
|
150
150
|
*
|
|
151
|
-
* Composed rather than configured by props, as web's is. A `Button
|
|
152
|
-
* `IconButton` inside `Sheet` and outside its content opens it, and
|
|
153
|
-
* `slot="close"` anywhere inside the content closes it. A
|
|
154
|
-
* screen opens leaves `Sheet` out and passes `isOpen`
|
|
155
|
-
* `Sheet.Content` instead.
|
|
151
|
+
* Composed rather than configured by props, as web's is. A `Button`,
|
|
152
|
+
* `IconButton` or `Chip` inside `Sheet` and outside its content opens it, and
|
|
153
|
+
* a button given `slot="close"` anywhere inside the content closes it. A
|
|
154
|
+
* sheet nothing on the screen opens leaves `Sheet` out and passes `isOpen`
|
|
155
|
+
* and `onOpenChange` to `Sheet.Content` instead.
|
|
156
156
|
*/
|
|
157
157
|
function Sheet(t0) {
|
|
158
158
|
const $ = c(10);
|
|
@@ -384,8 +384,9 @@ function SheetContent(t0) {
|
|
|
384
384
|
/**
|
|
385
385
|
* The sheet's actions, leading and wrapping onto another row when they do not
|
|
386
386
|
* fit on one, over a divider. On a bottom sheet at half height they are below
|
|
387
|
-
* the fold until the sheet is raised
|
|
388
|
-
*
|
|
387
|
+
* the fold until the sheet is raised, so a sheet opened for them takes
|
|
388
|
+
* `initialHeight="whole"` on `Sheet.Content`. `style`, `ref` and `testID`
|
|
389
|
+
* land on its view.
|
|
389
390
|
*/
|
|
390
391
|
function SheetFooter(t0) {
|
|
391
392
|
const $ = c(7);
|
|
@@ -599,7 +600,7 @@ function SheetTitle(t0) {
|
|
|
599
600
|
* each opening starts from its edge and at its first height.
|
|
600
601
|
*/
|
|
601
602
|
function SheetWindow(t0) {
|
|
602
|
-
const $ = c(
|
|
603
|
+
const $ = c(77);
|
|
603
604
|
let children;
|
|
604
605
|
let close;
|
|
605
606
|
let isDismissable;
|
|
@@ -610,9 +611,10 @@ function SheetWindow(t0) {
|
|
|
610
611
|
let setPresent;
|
|
611
612
|
let slots;
|
|
612
613
|
let style;
|
|
614
|
+
let t1;
|
|
613
615
|
let testID;
|
|
614
616
|
if ($[0] !== t0) {
|
|
615
|
-
({children, close, isDismissable, isKeyboardDismissDisabled, isOpen, onLayout, setPresent, slots, style, testID, ...props} = t0);
|
|
617
|
+
({children, close, initialHeight: t1, isDismissable, isKeyboardDismissDisabled, isOpen, onLayout, setPresent, slots, style, testID, ...props} = t0);
|
|
616
618
|
$[0] = t0;
|
|
617
619
|
$[1] = children;
|
|
618
620
|
$[2] = close;
|
|
@@ -624,7 +626,8 @@ function SheetWindow(t0) {
|
|
|
624
626
|
$[8] = setPresent;
|
|
625
627
|
$[9] = slots;
|
|
626
628
|
$[10] = style;
|
|
627
|
-
$[11] =
|
|
629
|
+
$[11] = t1;
|
|
630
|
+
$[12] = testID;
|
|
628
631
|
} else {
|
|
629
632
|
children = $[1];
|
|
630
633
|
close = $[2];
|
|
@@ -636,8 +639,10 @@ function SheetWindow(t0) {
|
|
|
636
639
|
setPresent = $[8];
|
|
637
640
|
slots = $[9];
|
|
638
641
|
style = $[10];
|
|
639
|
-
|
|
642
|
+
t1 = $[11];
|
|
643
|
+
testID = $[12];
|
|
640
644
|
}
|
|
645
|
+
const initialHeight = t1 === void 0 ? "half" : t1;
|
|
641
646
|
const styles = stylesOf(useTheme());
|
|
642
647
|
const insets = use(SafeAreaInsetsContext) ?? NO_INSETS;
|
|
643
648
|
const { height } = useWindowDimensions();
|
|
@@ -645,42 +650,42 @@ function SheetWindow(t0) {
|
|
|
645
650
|
const titleId = useId();
|
|
646
651
|
const [title, setTitle] = useState(null);
|
|
647
652
|
const [full, setFull] = useState(null);
|
|
648
|
-
const [expanded, setExpanded] = useState(
|
|
649
|
-
let
|
|
650
|
-
if ($[
|
|
651
|
-
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
$[
|
|
655
|
-
$[
|
|
656
|
-
$[
|
|
657
|
-
} else
|
|
658
|
-
const stops =
|
|
653
|
+
const [expanded, setExpanded] = useState(initialHeight === "whole");
|
|
654
|
+
let t2;
|
|
655
|
+
if ($[13] !== bottom || $[14] !== full || $[15] !== height || $[16] !== isDismissable) {
|
|
656
|
+
t2 = stopsOf(bottom, full, height, isDismissable);
|
|
657
|
+
$[13] = bottom;
|
|
658
|
+
$[14] = full;
|
|
659
|
+
$[15] = height;
|
|
660
|
+
$[16] = isDismissable;
|
|
661
|
+
$[17] = t2;
|
|
662
|
+
} else t2 = $[17];
|
|
663
|
+
const stops = t2;
|
|
659
664
|
const twoHeights = stops.partial !== null;
|
|
660
665
|
const rest = stops.partial !== null && !expanded ? stops.partial : 0;
|
|
661
|
-
let
|
|
662
|
-
if ($[
|
|
663
|
-
|
|
666
|
+
let t3;
|
|
667
|
+
if ($[18] !== bottom || $[19] !== full || $[20] !== isOpen || $[21] !== rest || $[22] !== setPresent) {
|
|
668
|
+
t3 = {
|
|
664
669
|
bottom,
|
|
665
670
|
full,
|
|
666
671
|
isOpen,
|
|
667
672
|
rest,
|
|
668
673
|
setPresent
|
|
669
674
|
};
|
|
670
|
-
$[
|
|
671
|
-
$[
|
|
672
|
-
$[
|
|
673
|
-
$[
|
|
674
|
-
$[
|
|
675
|
-
$[
|
|
676
|
-
} else
|
|
677
|
-
const motion = useSheetMotion(
|
|
678
|
-
const
|
|
679
|
-
let
|
|
680
|
-
if ($[
|
|
681
|
-
|
|
675
|
+
$[18] = bottom;
|
|
676
|
+
$[19] = full;
|
|
677
|
+
$[20] = isOpen;
|
|
678
|
+
$[21] = rest;
|
|
679
|
+
$[22] = setPresent;
|
|
680
|
+
$[23] = t3;
|
|
681
|
+
} else t3 = $[23];
|
|
682
|
+
const motion = useSheetMotion(t3);
|
|
683
|
+
const t4 = bottom && isOpen && stops.settles.length > 1;
|
|
684
|
+
let t5;
|
|
685
|
+
if ($[24] !== close || $[25] !== expanded || $[26] !== full || $[27] !== isDismissable || $[28] !== motion.offset || $[29] !== rest || $[30] !== stops || $[31] !== t4 || $[32] !== testID) {
|
|
686
|
+
t5 = {
|
|
682
687
|
close,
|
|
683
|
-
enabled:
|
|
688
|
+
enabled: t4,
|
|
684
689
|
expanded,
|
|
685
690
|
full,
|
|
686
691
|
isDismissable,
|
|
@@ -690,157 +695,157 @@ function SheetWindow(t0) {
|
|
|
690
695
|
stops,
|
|
691
696
|
testID
|
|
692
697
|
};
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
695
|
-
$[
|
|
696
|
-
$[
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
$[
|
|
700
|
-
$[
|
|
701
|
-
$[
|
|
702
|
-
$[32] = t4;
|
|
703
|
-
} else t4 = $[32];
|
|
704
|
-
const pan = useSheetDrag(t4);
|
|
705
|
-
let t5;
|
|
706
|
-
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
707
|
-
t5 = () => {
|
|
708
|
-
setExpanded(_temp);
|
|
709
|
-
};
|
|
698
|
+
$[24] = close;
|
|
699
|
+
$[25] = expanded;
|
|
700
|
+
$[26] = full;
|
|
701
|
+
$[27] = isDismissable;
|
|
702
|
+
$[28] = motion.offset;
|
|
703
|
+
$[29] = rest;
|
|
704
|
+
$[30] = stops;
|
|
705
|
+
$[31] = t4;
|
|
706
|
+
$[32] = testID;
|
|
710
707
|
$[33] = t5;
|
|
711
708
|
} else t5 = $[33];
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
709
|
+
const pan = useSheetDrag(t5);
|
|
710
|
+
let t6;
|
|
711
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
712
|
+
t6 = () => {
|
|
713
|
+
setExpanded(_temp);
|
|
714
|
+
};
|
|
715
|
+
$[34] = t6;
|
|
716
|
+
} else t6 = $[34];
|
|
717
|
+
const toggle = t6;
|
|
718
|
+
const t7 = !twoHeights || expanded;
|
|
719
|
+
const t8 = twoHeights ? toggle : void 0;
|
|
720
|
+
let t9;
|
|
721
|
+
if ($[35] !== bottom || $[36] !== pan || $[37] !== t7 || $[38] !== t8 || $[39] !== titleId) {
|
|
722
|
+
t9 = {
|
|
718
723
|
bottom,
|
|
719
|
-
expanded:
|
|
724
|
+
expanded: t7,
|
|
720
725
|
pan,
|
|
721
726
|
setTitle,
|
|
722
727
|
titleId,
|
|
723
|
-
toggle:
|
|
728
|
+
toggle: t8
|
|
724
729
|
};
|
|
725
|
-
$[
|
|
726
|
-
$[
|
|
727
|
-
$[36] = t6;
|
|
730
|
+
$[35] = bottom;
|
|
731
|
+
$[36] = pan;
|
|
728
732
|
$[37] = t7;
|
|
729
|
-
$[38] =
|
|
730
|
-
$[39] =
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
733
|
+
$[38] = t8;
|
|
734
|
+
$[39] = titleId;
|
|
735
|
+
$[40] = t9;
|
|
736
|
+
} else t9 = $[40];
|
|
737
|
+
const layout = t9;
|
|
738
|
+
let t10;
|
|
739
|
+
if ($[41] !== onLayout) {
|
|
740
|
+
t10 = (event) => {
|
|
736
741
|
setFull(event.nativeEvent.layout.height);
|
|
737
742
|
onLayout?.(event);
|
|
738
743
|
};
|
|
739
|
-
$[
|
|
740
|
-
$[
|
|
741
|
-
} else
|
|
742
|
-
const measure =
|
|
744
|
+
$[41] = onLayout;
|
|
745
|
+
$[42] = t10;
|
|
746
|
+
} else t10 = $[42];
|
|
747
|
+
const measure = t10;
|
|
743
748
|
const labelledBy = title === null ? void 0 : titleId;
|
|
744
749
|
const T0 = ModalWindow;
|
|
745
|
-
const
|
|
746
|
-
const
|
|
750
|
+
const t11 = isDismissable && isOpen ? close : void 0;
|
|
751
|
+
const t12 = motion.scrim;
|
|
747
752
|
const T1 = GestureHandlerRootView;
|
|
748
|
-
const
|
|
753
|
+
const t13 = bottom ? styles.rootBottom : styles.rootSide;
|
|
749
754
|
const T2 = GestureDetector;
|
|
750
|
-
const
|
|
751
|
-
let
|
|
752
|
-
if ($[
|
|
753
|
-
|
|
754
|
-
$[
|
|
755
|
-
$[
|
|
756
|
-
} else
|
|
757
|
-
const
|
|
758
|
-
const
|
|
759
|
-
let
|
|
760
|
-
if ($[
|
|
761
|
-
|
|
755
|
+
const t14 = Animated;
|
|
756
|
+
let t15;
|
|
757
|
+
if ($[43] !== labelledBy) {
|
|
758
|
+
t15 = panelRoleOf("dialog", labelledBy);
|
|
759
|
+
$[43] = labelledBy;
|
|
760
|
+
$[44] = t15;
|
|
761
|
+
} else t15 = $[44];
|
|
762
|
+
const t16 = isKeyboardDismissDisabled ? void 0 : close;
|
|
763
|
+
const t17 = composeStyles(styles.container, bottom ? styles.containerBottom : styles.containerSide, bottom ? bottomBoundsOf(insets, height) : sideInsetsOf(insets), motion.panel, style);
|
|
764
|
+
let t18;
|
|
765
|
+
if ($[45] !== children || $[46] !== slots) {
|
|
766
|
+
t18 = /* @__PURE__ */ jsx(ButtonSlotContext, {
|
|
762
767
|
value: slots,
|
|
763
768
|
children
|
|
764
769
|
});
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
768
|
-
} else
|
|
769
|
-
let
|
|
770
|
-
if ($[
|
|
771
|
-
|
|
770
|
+
$[45] = children;
|
|
771
|
+
$[46] = slots;
|
|
772
|
+
$[47] = t18;
|
|
773
|
+
} else t18 = $[47];
|
|
774
|
+
let t19;
|
|
775
|
+
if ($[48] !== layout || $[49] !== t18) {
|
|
776
|
+
t19 = /* @__PURE__ */ jsx(SheetLayoutContext, {
|
|
772
777
|
value: layout,
|
|
773
|
-
children:
|
|
778
|
+
children: t18
|
|
774
779
|
});
|
|
775
|
-
$[
|
|
776
|
-
$[48] = t17;
|
|
780
|
+
$[48] = layout;
|
|
777
781
|
$[49] = t18;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
$[50] = t19;
|
|
783
|
+
} else t19 = $[50];
|
|
784
|
+
let t20;
|
|
785
|
+
if ($[51] !== measure || $[52] !== props || $[53] !== t14.View || $[54] !== t15 || $[55] !== t16 || $[56] !== t17 || $[57] !== t19 || $[58] !== testID) {
|
|
786
|
+
t20 = /* @__PURE__ */ jsx(t14.View, {
|
|
787
|
+
...t15,
|
|
788
|
+
onAccessibilityEscape: t16,
|
|
784
789
|
...props,
|
|
785
790
|
onLayout: measure,
|
|
786
|
-
style:
|
|
791
|
+
style: t17,
|
|
787
792
|
testID,
|
|
788
|
-
children:
|
|
793
|
+
children: t19
|
|
789
794
|
});
|
|
790
|
-
$[
|
|
791
|
-
$[
|
|
792
|
-
$[
|
|
793
|
-
$[53] = t14;
|
|
795
|
+
$[51] = measure;
|
|
796
|
+
$[52] = props;
|
|
797
|
+
$[53] = t14.View;
|
|
794
798
|
$[54] = t15;
|
|
795
799
|
$[55] = t16;
|
|
796
|
-
$[56] =
|
|
797
|
-
$[57] =
|
|
798
|
-
$[58] =
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
800
|
+
$[56] = t17;
|
|
801
|
+
$[57] = t19;
|
|
802
|
+
$[58] = testID;
|
|
803
|
+
$[59] = t20;
|
|
804
|
+
} else t20 = $[59];
|
|
805
|
+
let t21;
|
|
806
|
+
if ($[60] !== T2 || $[61] !== pan || $[62] !== t20) {
|
|
807
|
+
t21 = /* @__PURE__ */ jsx(T2, {
|
|
803
808
|
gesture: pan,
|
|
804
|
-
children:
|
|
809
|
+
children: t20
|
|
805
810
|
});
|
|
806
|
-
$[
|
|
807
|
-
$[
|
|
808
|
-
$[61] = t19;
|
|
811
|
+
$[60] = T2;
|
|
812
|
+
$[61] = pan;
|
|
809
813
|
$[62] = t20;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
814
|
+
$[63] = t21;
|
|
815
|
+
} else t21 = $[63];
|
|
816
|
+
let t22;
|
|
817
|
+
if ($[64] !== T1 || $[65] !== t13 || $[66] !== t21) {
|
|
818
|
+
t22 = /* @__PURE__ */ jsx(T1, {
|
|
819
|
+
style: t13,
|
|
820
|
+
children: t21
|
|
816
821
|
});
|
|
817
|
-
$[
|
|
818
|
-
$[
|
|
819
|
-
$[65] = t20;
|
|
822
|
+
$[64] = T1;
|
|
823
|
+
$[65] = t13;
|
|
820
824
|
$[66] = t21;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
+
$[67] = t22;
|
|
826
|
+
} else t22 = $[67];
|
|
827
|
+
let t23;
|
|
828
|
+
if ($[68] !== T0 || $[69] !== close || $[70] !== isKeyboardDismissDisabled || $[71] !== labelledBy || $[72] !== motion.scrim || $[73] !== t11 || $[74] !== t22 || $[75] !== title) {
|
|
829
|
+
t23 = /* @__PURE__ */ jsx(T0, {
|
|
825
830
|
isKeyboardDismissDisabled,
|
|
826
831
|
labelledBy,
|
|
827
832
|
onClose: close,
|
|
828
|
-
onScrimPress:
|
|
829
|
-
scrim:
|
|
833
|
+
onScrimPress: t11,
|
|
834
|
+
scrim: t12,
|
|
830
835
|
title,
|
|
831
|
-
children:
|
|
836
|
+
children: t22
|
|
832
837
|
});
|
|
833
|
-
$[
|
|
834
|
-
$[
|
|
835
|
-
$[
|
|
836
|
-
$[
|
|
837
|
-
$[
|
|
838
|
-
$[
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
$[
|
|
842
|
-
} else
|
|
843
|
-
return
|
|
838
|
+
$[68] = T0;
|
|
839
|
+
$[69] = close;
|
|
840
|
+
$[70] = isKeyboardDismissDisabled;
|
|
841
|
+
$[71] = labelledBy;
|
|
842
|
+
$[72] = motion.scrim;
|
|
843
|
+
$[73] = t11;
|
|
844
|
+
$[74] = t22;
|
|
845
|
+
$[75] = title;
|
|
846
|
+
$[76] = t23;
|
|
847
|
+
} else t23 = $[76];
|
|
848
|
+
return t23;
|
|
844
849
|
}
|
|
845
850
|
function _temp(was) {
|
|
846
851
|
return !was;
|