@jamadd/react-native-template-ui 0.8.5 → 0.8.6
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/lib/module/components/overlay/actionSheet/ActionSheet.web.js +31 -0
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +1 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +57 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +1 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.web.js +82 -0
- package/lib/module/components/slider/ThemedSlider.web.js.map +1 -0
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +5 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +4 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +5 -0
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +1 -0
- package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -2
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +0 -27
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/switch.d.ts +1 -20
- package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +1 -10
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +1 -31
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +0 -33
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/reanimated/func.d.ts +1 -5
- package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/switch/const.d.ts +1 -2
- package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
- package/package.json +1 -2
- package/src/components/button/AnimatedPressable.tsx +0 -7
- package/src/components/button/AnimatedThemedPressable.tsx +0 -12
- package/src/components/button/ThemedButton.tsx +0 -45
- package/src/components/button/ThemedIconButton.tsx +0 -33
- package/src/components/button/ThemedIconTextButton.tsx +0 -56
- package/src/components/button/ThemedPressable.tsx +0 -12
- package/src/components/icon/ThemedIcon.tsx +0 -31
- package/src/components/list/List.tsx +0 -55
- package/src/components/loading/ThemedLoading.tsx +0 -29
- package/src/components/overlay/actionSheet/ActionSheet.tsx +0 -31
- package/src/components/overlay/actionSheet/ActionSheetContentGesture.tsx +0 -15
- package/src/components/overlay/actionSheet/ActionSheetHeader.tsx +0 -72
- package/src/components/overlay/actionSheet/ActionSheetListView.tsx +0 -54
- package/src/components/overlay/actionSheet/ActionSheetListViewContent.tsx +0 -32
- package/src/components/overlay/actionSheet/ActionSheetOptionList.tsx +0 -51
- package/src/components/overlay/actionSheet/ActionSheetOptionListItem.tsx +0 -43
- package/src/components/overlay/actionSheet/ActionSheetOptions.tsx +0 -61
- package/src/components/overlay/actionSheet/ActionSheetScrollView.tsx +0 -57
- package/src/components/overlay/actionSheet/ActionSheetScrollViewContent.tsx +0 -38
- package/src/components/overlay/actionSheet/ActionSheetWrap.tsx +0 -75
- package/src/components/overlay/alert/Alert.tsx +0 -86
- package/src/components/overlay/alert/AlertButton.tsx +0 -41
- package/src/components/overlay/alert/AlertButtons.tsx +0 -32
- package/src/components/overlay/alert/AlertContent.tsx +0 -60
- package/src/components/overlay/alert/AlertWrap.tsx +0 -93
- package/src/components/overlay/modal/ThemedLoadingModal.tsx +0 -47
- package/src/components/overlay/modal/ThemedModal.tsx +0 -42
- package/src/components/overlay/toast/ThemedToast.tsx +0 -160
- package/src/components/provider/GestureProvider.tsx +0 -9
- package/src/components/provider/InsetsProvider.tsx +0 -11
- package/src/components/provider/ReactNativeTemplateProviders.tsx +0 -20
- package/src/components/provider/ThemeProvider.tsx +0 -8
- package/src/components/separator/ThemedSeparator.tsx +0 -24
- package/src/components/slider/Slider.tsx +0 -229
- package/src/components/slider/ThemedSlider.tsx +0 -103
- package/src/components/slider/ThemedSliderStepIndicator.tsx +0 -24
- package/src/components/switch/ThemedSwitch.tsx +0 -49
- package/src/components/text/Text.tsx +0 -7
- package/src/components/text/ThemedIconText.tsx +0 -58
- package/src/components/text/ThemedText.tsx +0 -7
- package/src/components/view/AnimatedThemedView.tsx +0 -18
- package/src/components/view/AnimatedView.tsx +0 -7
- package/src/components/view/Box.tsx +0 -7
- package/src/components/view/ThemedScreenWrap.tsx +0 -48
- package/src/components/view/ThemedScreenWrap.web.tsx +0 -41
- package/src/components/view/ThemedScrollView.tsx +0 -54
- package/src/components/view/ThemedView.tsx +0 -19
- package/src/hooks/button.ts +0 -152
- package/src/hooks/list.ts +0 -42
- package/src/hooks/overlay.ts +0 -471
- package/src/hooks/react.ts +0 -34
- package/src/hooks/reanimated.ts +0 -6
- package/src/hooks/separator.ts +0 -29
- package/src/hooks/style.ts +0 -79
- package/src/hooks/switch.ts +0 -119
- package/src/hooks/theme.ts +0 -65
- package/src/hooks/view.ts +0 -28
- package/src/index.ts +0 -59
- package/src/test/utils/const.ts +0 -9
- package/src/test/utils/func.ts +0 -55
- package/src/test/utils/testingLib.tsx +0 -17
- package/src/types/button.ts +0 -50
- package/src/types/global.d.ts +0 -5
- package/src/types/icon.ts +0 -21
- package/src/types/list.ts +0 -61
- package/src/types/loading.ts +0 -14
- package/src/types/overlay.ts +0 -216
- package/src/types/provider.ts +0 -6
- package/src/types/react.ts +0 -8
- package/src/types/reanimated.ts +0 -11
- package/src/types/separator.ts +0 -28
- package/src/types/slider.ts +0 -59
- package/src/types/style.ts +0 -26
- package/src/types/switch.ts +0 -31
- package/src/types/text.ts +0 -25
- package/src/types/theme.ts +0 -39
- package/src/types/view.ts +0 -58
- package/src/utils/button/const.ts +0 -10
- package/src/utils/overlay/const.ts +0 -77
- package/src/utils/overlay/func.ts +0 -107
- package/src/utils/reanimated/func.ts +0 -39
- package/src/utils/slider/const.ts +0 -23
- package/src/utils/style/const.ts +0 -4
- package/src/utils/style/func.ts +0 -37
- package/src/utils/switch/const.ts +0 -2
- package/src/utils/theme/const.ts +0 -189
- package/src/utils/theme/restyle.ts +0 -87
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import ActionSheetListView from "./ActionSheetListView.js";
|
|
4
|
+
import ActionSheetOptions from "./ActionSheetOptions.js";
|
|
5
|
+
import ActionSheetScrollView from "./ActionSheetScrollView.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const ActionSheet = ({
|
|
8
|
+
dismissable = true,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
if (props.options?.length) {
|
|
12
|
+
return /*#__PURE__*/_jsx(ActionSheetOptions, {
|
|
13
|
+
dismissable: dismissable,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
} else if (props.children) {
|
|
17
|
+
return /*#__PURE__*/_jsx(ActionSheetScrollView, {
|
|
18
|
+
dismissable: dismissable,
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
} else if (props.listProps) {
|
|
22
|
+
return /*#__PURE__*/_jsx(ActionSheetListView, {
|
|
23
|
+
dismissable: dismissable,
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
} else {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export default ActionSheet;
|
|
31
|
+
//# sourceMappingURL=ActionSheet.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ActionSheetListView","ActionSheetOptions","ActionSheetScrollView","jsx","_jsx","ActionSheet","dismissable","props","options","length","children","listProps"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheet.web.tsx"],"mappings":";;AAEA,OAAOA,mBAAmB,MAAM,0BAAuB;AACvD,OAAOC,kBAAkB,MAAM,yBAAsB;AACrD,OAAOC,qBAAqB,MAAM,4BAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,MAAMC,WAAiC,GAAGA,CAAC;EACzCC,WAAW,GAAG,IAAI;EAClB,GAAGC;AACL,CAAC,KAAK;EACJ,IAAIA,KAAK,CAACC,OAAO,EAAEC,MAAM,EAAE;IACzB,oBAAOL,IAAA,CAACH,kBAAkB;MAACK,WAAW,EAAEA,WAAY;MAAA,GAAKC;IAAK,CAAG,CAAC;EACpE,CAAC,MAAM,IAAIA,KAAK,CAACG,QAAQ,EAAE;IACzB,oBAAON,IAAA,CAACF,qBAAqB;MAACI,WAAW,EAAEA,WAAY;MAAA,GAAKC;IAAK,CAAG,CAAC;EACvE,CAAC,MAAM,IAAIA,KAAK,CAACI,SAAS,EAAE;IAC1B,oBAAOP,IAAA,CAACJ,mBAAmB;MAACM,WAAW,EAAEA,WAAY;MAAA,GAAKC;IAAK,CAAG,CAAC;EACrE,CAAC,MAAM;IACL,OAAO,IAAI;EACb;AACF,CAAC;AAED,eAAeF,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** @internal */
|
|
4
|
+
|
|
5
|
+
import { GestureDetector } from 'react-native-gesture-handler';
|
|
6
|
+
import { useActionSheetGesture, useActionSheetHeaderMinHeight, useActionSheetOnDismiss } from "../../../hooks/overlay.js";
|
|
7
|
+
import { actionSheetHeaderIconSize, actionSheetHeaderPadding } from "../../../utils/overlay/const.js";
|
|
8
|
+
import { getActionSheetContext } from "../../../utils/overlay/func.js";
|
|
9
|
+
import { BorderSize } from "../../../utils/theme/const.js";
|
|
10
|
+
import ThemedIconButton from "../../button/ThemedIconButton.js";
|
|
11
|
+
import ThemedText from "../../text/ThemedText.js";
|
|
12
|
+
import ThemedView from "../../view/ThemedView.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const ActionSheetHeader = ({
|
|
15
|
+
headerShowIcon = true,
|
|
16
|
+
headerWrapProps,
|
|
17
|
+
headerTextProps,
|
|
18
|
+
headerIconButtonProps
|
|
19
|
+
}) => {
|
|
20
|
+
const gesture = useActionSheetGesture();
|
|
21
|
+
const minHeight = useActionSheetHeaderMinHeight();
|
|
22
|
+
const onDismiss = useActionSheetOnDismiss();
|
|
23
|
+
const {
|
|
24
|
+
title,
|
|
25
|
+
headerViewRef
|
|
26
|
+
} = getActionSheetContext();
|
|
27
|
+
const onIconPress = () => {
|
|
28
|
+
onDismiss();
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_jsx(GestureDetector, {
|
|
31
|
+
gesture: gesture,
|
|
32
|
+
children: /*#__PURE__*/_jsxs(ThemedView, {
|
|
33
|
+
ref: headerViewRef,
|
|
34
|
+
justifyContent: 'center',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
minHeight: minHeight,
|
|
37
|
+
padding: actionSheetHeaderPadding,
|
|
38
|
+
borderBottomWidth: BorderSize.S,
|
|
39
|
+
borderColor: 'border',
|
|
40
|
+
...headerWrapProps,
|
|
41
|
+
children: [!!title && /*#__PURE__*/_jsx(ThemedText, {
|
|
42
|
+
variant: 'textMBold',
|
|
43
|
+
...headerTextProps,
|
|
44
|
+
children: title
|
|
45
|
+
}), headerShowIcon && /*#__PURE__*/_jsx(ThemedIconButton, {
|
|
46
|
+
onPress: onIconPress,
|
|
47
|
+
iconName: 'cross',
|
|
48
|
+
iconSize: actionSheetHeaderIconSize,
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
left: 0,
|
|
51
|
+
...headerIconButtonProps
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
export default ActionSheetHeader;
|
|
57
|
+
//# sourceMappingURL=ActionSheetHeader.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GestureDetector","useActionSheetGesture","useActionSheetHeaderMinHeight","useActionSheetOnDismiss","actionSheetHeaderIconSize","actionSheetHeaderPadding","getActionSheetContext","BorderSize","ThemedIconButton","ThemedText","ThemedView","jsx","_jsx","jsxs","_jsxs","ActionSheetHeader","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","gesture","minHeight","onDismiss","title","headerViewRef","onIconPress","children","ref","justifyContent","alignItems","padding","borderBottomWidth","S","borderColor","variant","onPress","iconName","iconSize","position","left"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetHeader.web.tsx"],"mappings":";;AAAA;;AAEA,SAASA,eAAe,QAAQ,8BAA8B;AAC9D,SACEC,qBAAqB,EACrBC,6BAA6B,EAC7BC,uBAAuB,QAClB,2BAAwB;AAG/B,SACEC,yBAAyB,EACzBC,wBAAwB,QACnB,iCAA8B;AACrC,SAASC,qBAAqB,QAAQ,gCAA6B;AACnE,SAASC,UAAU,QAAQ,+BAA4B;AACvD,OAAOC,gBAAgB,MAAM,kCAA+B;AAC5D,OAAOC,UAAU,MAAM,0BAAuB;AAC9C,OAAOC,UAAU,MAAM,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,iBAA6C,GAAGA,CAAC;EACrDC,cAAc,GAAG,IAAI;EACrBC,eAAe;EACfC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,MAAMC,OAAO,GAAGnB,qBAAqB,CAAC,CAAC;EACvC,MAAMoB,SAAS,GAAGnB,6BAA6B,CAAC,CAAC;EACjD,MAAMoB,SAAS,GAAGnB,uBAAuB,CAAC,CAAC;EAE3C,MAAM;IAAEoB,KAAK;IAAEC;EAAc,CAAC,GAAGlB,qBAAqB,CAAC,CAAC;EACxD,MAAMmB,WAA6C,GAAGA,CAAA,KAAM;IAC1DH,SAAS,CAAC,CAAC;EACb,CAAC;EAED,oBACEV,IAAA,CAACZ,eAAe;IAACoB,OAAO,EAAEA,OAAQ;IAAAM,QAAA,eAChCZ,KAAA,CAACJ,UAAU;MACTiB,GAAG,EAAEH,aAAc;MACnBI,cAAc,EAAE,QAAS;MACzBC,UAAU,EAAE,QAAS;MACrBR,SAAS,EAAEA,SAAU;MACrBS,OAAO,EAAEzB,wBAAyB;MAClC0B,iBAAiB,EAAExB,UAAU,CAACyB,CAAE;MAChCC,WAAW,EAAE,QAAS;MAAA,GAClBhB,eAAe;MAAAS,QAAA,GAElB,CAAC,CAACH,KAAK,iBACNX,IAAA,CAACH,UAAU;QAACyB,OAAO,EAAE,WAAY;QAAA,GAAKhB,eAAe;QAAAQ,QAAA,EAClDH;MAAK,CACI,CACb,EACAP,cAAc,iBACbJ,IAAA,CAACJ,gBAAgB;QACf2B,OAAO,EAAEV,WAAY;QACrBW,QAAQ,EAAE,OAAQ;QAClBC,QAAQ,EAAEjC,yBAA0B;QACpCkC,QAAQ,EAAE,UAAW;QACrBC,IAAI,EAAE,CAAE;QAAA,GACJpB;MAAqB,CAC1B,CACF;IAAA,CACS;EAAC,CACE,CAAC;AAEtB,CAAC;AAED,eAAeJ,iBAAiB","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { useActionSheetListView, useActionSheetVisible } from "../../../hooks/overlay.js";
|
|
6
6
|
import { ActionSheetContext } from "../../../utils/overlay/const.js";
|
|
7
|
-
import ActionSheetHeader from
|
|
7
|
+
import ActionSheetHeader from './ActionSheetHeader';
|
|
8
8
|
import ActionSheetListViewContent from "./ActionSheetListViewContent.js";
|
|
9
9
|
import ActionSheetWrap from "./ActionSheetWrap.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetListView","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","title","expandable","listProps","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListView.tsx"],"mappings":";;AAAA;;AAEA,SACEA,sBAAsB,EACtBC,qBAAqB,QAChB,2BAAwB;AAE/B,SAASC,kBAAkB,QAAQ,iCAA8B;AACjE,OAAOC,iBAAiB,MAAM,
|
|
1
|
+
{"version":3,"names":["useActionSheetListView","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","title","expandable","listProps","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListView.tsx"],"mappings":";;AAAA;;AAEA,SACEA,sBAAsB,EACtBC,qBAAqB,QAChB,2BAAwB;AAE/B,SAASC,kBAAkB,QAAQ,iCAA8B;AACjE,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,0BAA0B,MAAM,iCAA8B;AACrE,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,mBAAiD,GAAGA,CAAC;EACzDC,KAAK;EACLC,UAAU;EACVC,SAAS;EACTC,SAAS;EACTC,WAAW;EACXC,aAAa;EACbC,cAAc;EACdC,eAAe;EACfC,eAAe;EACfC,qBAAqB;EACrBC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAmB,CAAC,GAAGrB,qBAAqB,CAACoB,OAAO,CAAC;EAC7D,MAAME,qBAAqB,GAAGvB,sBAAsB,CAClDW,KAAK,EACLC,UAAU,EACVC,SAAS,EACTC,SAAS,EACTC,WAAW,EACXO,kBACF,CAAC;EAED,oBACEf,IAAA,CAACL,kBAAkB,CAACsB,QAAQ;IAACC,KAAK,EAAEF,qBAAsB;IAAAG,QAAA,eACxDjB,KAAA,CAACJ,eAAe;MACdgB,OAAO,EAAEC,kBAAmB;MAC5BN,aAAa,EAAEA,aAAc;MAAAU,QAAA,gBAE7BnB,IAAA,CAACJ,iBAAiB;QAChBc,cAAc,EAAEA,cAAe;QAC/BC,eAAe,EAAEA,eAAgB;QACjCC,eAAe,EAAEA,eAAgB;QACjCC,qBAAqB,EAAEA;MAAsB,CAC9C,CAAC,eACFb,IAAA,CAACH,0BAA0B;QAACS,SAAS,EAAEA;MAAU,CAAE,CAAC;IAAA,CACrC;EAAC,CACS,CAAC;AAElC,CAAC;AAED,eAAeH,mBAAmB","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { useActionSheetOpts, useActionSheetVisible } from "../../../hooks/overlay.js";
|
|
6
6
|
import { ActionSheetContext } from "../../../utils/overlay/const.js";
|
|
7
|
-
import ActionSheetHeader from
|
|
7
|
+
import ActionSheetHeader from './ActionSheetHeader';
|
|
8
8
|
import ActionSheetOptionList from "./ActionSheetOptionList.js";
|
|
9
9
|
import ActionSheetWrap from "./ActionSheetWrap.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetOpts","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetOptionList","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetOptions","title","expandable","options","optionListProps","optionListItemProps","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetOptions.tsx"],"mappings":";;AAAA;;AAEA,SACEA,kBAAkB,EAClBC,qBAAqB,QAChB,2BAAwB;AAE/B,SAASC,kBAAkB,QAAQ,iCAA8B;AACjE,OAAOC,iBAAiB,MAAM,
|
|
1
|
+
{"version":3,"names":["useActionSheetOpts","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetOptionList","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetOptions","title","expandable","options","optionListProps","optionListItemProps","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetOptions.tsx"],"mappings":";;AAAA;;AAEA,SACEA,kBAAkB,EAClBC,qBAAqB,QAChB,2BAAwB;AAE/B,SAASC,kBAAkB,QAAQ,iCAA8B;AACjE,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,qBAAqB,MAAM,4BAAyB;AAC3D,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,kBAA+C,GAAGA,CAAC;EACvDC,KAAK;EACLC,UAAU;EACVC,OAAO;EACPC,eAAe;EACfC,mBAAmB;EACnBC,SAAS;EACTC,WAAW;EACXC,aAAa;EACbC,cAAc;EACdC,eAAe;EACfC,eAAe;EACfC,qBAAqB;EACrBC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAmB,CAAC,GAAGvB,qBAAqB,CAACsB,OAAO,CAAC;EAC7D,MAAME,qBAAqB,GAAGzB,kBAAkB,CAC9CW,KAAK,EACLC,UAAU,EACVC,OAAO,EACPC,eAAe,EACfE,SAAS,EACTC,WAAW,EACXO,kBACF,CAAC;EAED,oBACEjB,IAAA,CAACL,kBAAkB,CAACwB,QAAQ;IAACC,KAAK,EAAEF,qBAAsB;IAAAG,QAAA,eACxDnB,KAAA,CAACJ,eAAe;MACdkB,OAAO,EAAEC,kBAAmB;MAC5BN,aAAa,EAAEA,aAAc;MAAAU,QAAA,gBAE7BrB,IAAA,CAACJ,iBAAiB;QAChBgB,cAAc,EAAEA,cAAe;QAC/BC,eAAe,EAAEA,eAAgB;QACjCC,eAAe,EAAEA,eAAgB;QACjCC,qBAAqB,EAAEA;MAAsB,CAC9C,CAAC,eACFf,IAAA,CAACH,qBAAqB;QACpBS,OAAO,EAAEA,OAAQ;QACjBC,eAAe,EAAEA,eAAgB;QACjCC,mBAAmB,EAAEA;MAAoB,CAC1C,CAAC;IAAA,CACa;EAAC,CACS,CAAC;AAElC,CAAC;AAED,eAAeL,kBAAkB","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { useActionSheetScrollView, useActionSheetVisible } from "../../../hooks/overlay.js";
|
|
6
6
|
import { ActionSheetContext } from "../../../utils/overlay/const.js";
|
|
7
|
-
import ActionSheetHeader from
|
|
7
|
+
import ActionSheetHeader from './ActionSheetHeader';
|
|
8
8
|
import ActionSheetScrollViewContent from "./ActionSheetScrollViewContent.js";
|
|
9
9
|
import ActionSheetWrap from "./ActionSheetWrap.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetScrollView","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetScrollViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetScrollView","title","expandable","scrollViewProps","children","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","Provider","value"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetScrollView.tsx"],"mappings":";;AAAA;;AAEA,SACEA,wBAAwB,EACxBC,qBAAqB,QAChB,2BAAwB;AAE/B,SAASC,kBAAkB,QAAQ,iCAA8B;AACjE,OAAOC,iBAAiB,MAAM,
|
|
1
|
+
{"version":3,"names":["useActionSheetScrollView","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetScrollViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetScrollView","title","expandable","scrollViewProps","children","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","Provider","value"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetScrollView.tsx"],"mappings":";;AAAA;;AAEA,SACEA,wBAAwB,EACxBC,qBAAqB,QAChB,2BAAwB;AAE/B,SAASC,kBAAkB,QAAQ,iCAA8B;AACjE,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,4BAA4B,MAAM,mCAAgC;AACzE,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,qBAAqD,GAAGA,CAAC;EAC7DC,KAAK;EACLC,UAAU;EACVC,eAAe;EACfC,QAAQ;EACRC,SAAS;EACTC,WAAW;EACXC,aAAa;EACbC,cAAc;EACdC,eAAe;EACfC,eAAe;EACfC,qBAAqB;EACrBC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAmB,CAAC,GAAGtB,qBAAqB,CAACqB,OAAO,CAAC;EAC7D,MAAME,qBAAqB,GAAGxB,wBAAwB,CACpDW,KAAK,EACLC,UAAU,EACVC,eAAe,EACfE,SAAS,EACTC,WAAW,EACXO,kBACF,CAAC;EAED,oBACEhB,IAAA,CAACL,kBAAkB,CAACuB,QAAQ;IAACC,KAAK,EAAEF,qBAAsB;IAAAV,QAAA,eACxDL,KAAA,CAACJ,eAAe;MACdiB,OAAO,EAAEC,kBAAmB;MAC5BN,aAAa,EAAEA,aAAc;MAAAH,QAAA,gBAE7BP,IAAA,CAACJ,iBAAiB;QAChBe,cAAc,EAAEA,cAAe;QAC/BC,eAAe,EAAEA,eAAgB;QACjCC,eAAe,EAAEA,eAAgB;QACjCC,qBAAqB,EAAEA;MAAsB,CAC9C,CAAC,eACFd,IAAA,CAACH,4BAA4B;QAACS,eAAe,EAAEA,eAAgB;QAAAC,QAAA,EAC5DA;MAAQ,CACmB,CAAC;IAAA,CAChB;EAAC,CACS,CAAC;AAElC,CAAC;AAED,eAAeJ,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo, useLayoutEffect } from 'react';
|
|
4
|
+
import { useSharedValue } from 'react-native-reanimated';
|
|
5
|
+
import { useDeferredState } from "../../hooks/react.js";
|
|
6
|
+
import { useThemeSpacing } from "../../hooks/theme.js";
|
|
7
|
+
import { sliderThumbDefaultSize, SliderValueDisplayMode } from "../../utils/slider/const.js";
|
|
8
|
+
import ThemedText from "../text/ThemedText.js";
|
|
9
|
+
import ThemedView from "../view/ThemedView.js";
|
|
10
|
+
import Slider from "./Slider.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const MemoThemedText = /*#__PURE__*/memo(ThemedText);
|
|
13
|
+
const ThemedSlider = ({
|
|
14
|
+
defaultValue,
|
|
15
|
+
wrapProps: {
|
|
16
|
+
paddingHorizontal,
|
|
17
|
+
px,
|
|
18
|
+
...wrapProps
|
|
19
|
+
} = {},
|
|
20
|
+
valueDisplayMode = SliderValueDisplayMode.None,
|
|
21
|
+
valueDisplayWrapProps,
|
|
22
|
+
valueTextProps,
|
|
23
|
+
valueDescription,
|
|
24
|
+
valueDescriptionTextProps,
|
|
25
|
+
...props
|
|
26
|
+
}) => {
|
|
27
|
+
const {
|
|
28
|
+
thumbSize
|
|
29
|
+
} = props;
|
|
30
|
+
const themeSpacing = useThemeSpacing();
|
|
31
|
+
const {
|
|
32
|
+
state: selectedVal,
|
|
33
|
+
setState: setSelectedVal,
|
|
34
|
+
deferredState: deferredSelectedValue
|
|
35
|
+
} = useDeferredState(defaultValue);
|
|
36
|
+
const selectedValSharedVal = useSharedValue(selectedVal);
|
|
37
|
+
useLayoutEffect(() => {
|
|
38
|
+
selectedValSharedVal.set(selectedVal);
|
|
39
|
+
}, [selectedVal]);
|
|
40
|
+
const thumbSizeHalf = (thumbSize ?? sliderThumbDefaultSize) / 2;
|
|
41
|
+
const wrapStyle = {
|
|
42
|
+
marginHorizontal: typeof paddingHorizontal === 'string' ? themeSpacing[paddingHorizontal] : typeof px === 'string' ? themeSpacing[px] : thumbSizeHalf
|
|
43
|
+
};
|
|
44
|
+
const isValueDisplayModeNone = valueDisplayMode === SliderValueDisplayMode.None;
|
|
45
|
+
const isValueDisplayModeTop = valueDisplayMode === SliderValueDisplayMode.Top;
|
|
46
|
+
const isValueDisplayModeBottom = valueDisplayMode === SliderValueDisplayMode.Bottom;
|
|
47
|
+
const valueDisplayComponent = !isValueDisplayModeNone && /*#__PURE__*/_jsxs(ThemedView, {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
alignSelf: 'stretch',
|
|
51
|
+
...valueDisplayWrapProps,
|
|
52
|
+
children: [!!valueDescription && /*#__PURE__*/_jsx(MemoThemedText, {
|
|
53
|
+
variant: 'textS',
|
|
54
|
+
flex: 1,
|
|
55
|
+
textAlign: 'center',
|
|
56
|
+
...valueDescriptionTextProps,
|
|
57
|
+
children: valueDescription
|
|
58
|
+
}), /*#__PURE__*/_jsx(MemoThemedText, {
|
|
59
|
+
variant: 'textSBold',
|
|
60
|
+
flex: 1,
|
|
61
|
+
textAlign: 'center',
|
|
62
|
+
...valueTextProps,
|
|
63
|
+
children: deferredSelectedValue
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
const sliderProps = {
|
|
67
|
+
...props,
|
|
68
|
+
setSelectedVal,
|
|
69
|
+
selectedValSharedVal
|
|
70
|
+
};
|
|
71
|
+
return /*#__PURE__*/_jsxs(ThemedView, {
|
|
72
|
+
paddingVertical: 's',
|
|
73
|
+
gap: 'xs',
|
|
74
|
+
style: wrapStyle,
|
|
75
|
+
...wrapProps,
|
|
76
|
+
children: [isValueDisplayModeTop && valueDisplayComponent, /*#__PURE__*/_jsx(Slider, {
|
|
77
|
+
...sliderProps
|
|
78
|
+
}), isValueDisplayModeBottom && valueDisplayComponent]
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
export default ThemedSlider;
|
|
82
|
+
//# sourceMappingURL=ThemedSlider.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","useLayoutEffect","useSharedValue","useDeferredState","useThemeSpacing","sliderThumbDefaultSize","SliderValueDisplayMode","ThemedText","ThemedView","Slider","jsx","_jsx","jsxs","_jsxs","MemoThemedText","ThemedSlider","defaultValue","wrapProps","paddingHorizontal","px","valueDisplayMode","None","valueDisplayWrapProps","valueTextProps","valueDescription","valueDescriptionTextProps","props","thumbSize","themeSpacing","state","selectedVal","setState","setSelectedVal","deferredState","deferredSelectedValue","selectedValSharedVal","set","thumbSizeHalf","wrapStyle","marginHorizontal","isValueDisplayModeNone","isValueDisplayModeTop","Top","isValueDisplayModeBottom","Bottom","valueDisplayComponent","flexDirection","alignItems","alignSelf","children","variant","flex","textAlign","sliderProps","paddingVertical","gap","style"],"sourceRoot":"../../../../src","sources":["components/slider/ThemedSlider.web.tsx"],"mappings":"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","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export { default as ThemedPressable } from "./components/button/ThemedPressable.
|
|
|
8
8
|
export { default as ThemedIcon } from "./components/icon/ThemedIcon.js";
|
|
9
9
|
export { default as List } from "./components/list/List.js";
|
|
10
10
|
export { default as ThemedLoading } from "./components/loading/ThemedLoading.js";
|
|
11
|
-
export { default as ActionSheet } from
|
|
11
|
+
export { default as ActionSheet } from './components/overlay/actionSheet/ActionSheet';
|
|
12
12
|
export { default as Alert } from "./components/overlay/alert/Alert.js";
|
|
13
13
|
export { default as ThemedLoadingModal } from "./components/overlay/modal/ThemedLoadingModal.js";
|
|
14
14
|
export { default as ThemedModal } from "./components/overlay/modal/ThemedModal.js";
|
|
@@ -18,7 +18,7 @@ export { default as InsetsProvider } from "./components/provider/InsetsProvider.
|
|
|
18
18
|
export { default as ReactNativeTemplateProviders } from "./components/provider/ReactNativeTemplateProviders.js";
|
|
19
19
|
export { default as ThemeProvider } from "./components/provider/ThemeProvider.js";
|
|
20
20
|
export { default as ThemedSeparator } from "./components/separator/ThemedSeparator.js";
|
|
21
|
-
export { default as ThemedSlider } from
|
|
21
|
+
export { default as ThemedSlider } from './components/slider/ThemedSlider';
|
|
22
22
|
export { default as ThemedSwitch } from "./components/switch/ThemedSwitch.js";
|
|
23
23
|
export { default as ThemedIconText } from "./components/text/ThemedIconText.js";
|
|
24
24
|
export { default as ThemedText } from "./components/text/ThemedText.js";
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["default","AnimatedThemedPressable","ThemedButton","ThemedIconButton","ThemedIconTextButton","ThemedPressable","ThemedIcon","List","ThemedLoading","ActionSheet","Alert","ThemedLoadingModal","ThemedModal","ThemedToast","GestureProvider","InsetsProvider","ReactNativeTemplateProviders","ThemeProvider","ThemedSeparator","ThemedSlider","ThemedSwitch","ThemedIconText","ThemedText","AnimatedThemedView","ThemedScreenWrap","ThemedScrollView","ThemedView"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,uBAAuB,QAAQ,gDAA6C;AAChG,SAASD,OAAO,IAAIE,YAAY,QAAQ,qCAAkC;AAC1E,SAASF,OAAO,IAAIG,gBAAgB,QAAQ,yCAAsC;AAClF,SAASH,OAAO,IAAII,oBAAoB,QAAQ,6CAA0C;AAC1F,SAASJ,OAAO,IAAIK,eAAe,QAAQ,wCAAqC;AAChF,SAASL,OAAO,IAAIM,UAAU,QAAQ,iCAA8B;AACpE,SAASN,OAAO,IAAIO,IAAI,QAAQ,2BAAwB;AACxD,SAASP,OAAO,IAAIQ,aAAa,QAAQ,uCAAoC;AAC7E,SAASR,OAAO,IAAIS,WAAW,QAAQ,
|
|
1
|
+
{"version":3,"names":["default","AnimatedThemedPressable","ThemedButton","ThemedIconButton","ThemedIconTextButton","ThemedPressable","ThemedIcon","List","ThemedLoading","ActionSheet","Alert","ThemedLoadingModal","ThemedModal","ThemedToast","GestureProvider","InsetsProvider","ReactNativeTemplateProviders","ThemeProvider","ThemedSeparator","ThemedSlider","ThemedSwitch","ThemedIconText","ThemedText","AnimatedThemedView","ThemedScreenWrap","ThemedScrollView","ThemedView"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,uBAAuB,QAAQ,gDAA6C;AAChG,SAASD,OAAO,IAAIE,YAAY,QAAQ,qCAAkC;AAC1E,SAASF,OAAO,IAAIG,gBAAgB,QAAQ,yCAAsC;AAClF,SAASH,OAAO,IAAII,oBAAoB,QAAQ,6CAA0C;AAC1F,SAASJ,OAAO,IAAIK,eAAe,QAAQ,wCAAqC;AAChF,SAASL,OAAO,IAAIM,UAAU,QAAQ,iCAA8B;AACpE,SAASN,OAAO,IAAIO,IAAI,QAAQ,2BAAwB;AACxD,SAASP,OAAO,IAAIQ,aAAa,QAAQ,uCAAoC;AAC7E,SAASR,OAAO,IAAIS,WAAW,QAAQ,8CAA8C;AACrF,SAAST,OAAO,IAAIU,KAAK,QAAQ,qCAAkC;AACnE,SAASV,OAAO,IAAIW,kBAAkB,QAAQ,kDAA+C;AAC7F,SAASX,OAAO,IAAIY,WAAW,QAAQ,2CAAwC;AAC/E,SAASZ,OAAO,IAAIa,WAAW,QAAQ,2CAAwC;AAC/E,SAASb,OAAO,IAAIc,eAAe,QAAQ,0CAAuC;AAClF,SAASd,OAAO,IAAIe,cAAc,QAAQ,yCAAsC;AAChF,SAASf,OAAO,IAAIgB,4BAA4B,QAAQ,uDAAoD;AAC5G,SAAShB,OAAO,IAAIiB,aAAa,QAAQ,wCAAqC;AAC9E,SAASjB,OAAO,IAAIkB,eAAe,QAAQ,2CAAwC;AACnF,SAASlB,OAAO,IAAImB,YAAY,QAAQ,kCAAkC;AAC1E,SAASnB,OAAO,IAAIoB,YAAY,QAAQ,qCAAkC;AAC1E,SAASpB,OAAO,IAAIqB,cAAc,QAAQ,qCAAkC;AAC5E,SAASrB,OAAO,IAAIsB,UAAU,QAAQ,iCAA8B;AACpE,SAAStB,OAAO,IAAIuB,kBAAkB,QAAQ,yCAAsC;AACpF,SAASvB,OAAO,IAAIwB,gBAAgB,QAAQ,oCAAoC;AAChF,SAASxB,OAAO,IAAIyB,gBAAgB,QAAQ,uCAAoC;AAChF,SAASzB,OAAO,IAAI0B,UAAU,QAAQ,iCAA8B;AAEpE,cAAc,mBAAgB;AAC9B,cAAc,iBAAc;AAC5B,cAAc,oBAAiB;AAC/B,cAAc,kBAAe;AAC7B,cAAc,uBAAoB;AAClC,cAAc,sBAAmB;AACjC,cAAc,kBAAe;AAC7B,cAAc,kBAAe;AAC7B,cAAc,iBAAc;AAE5B,cAAc,mBAAgB;AAC9B,cAAc,iBAAc;AAC5B,cAAc,iBAAc;AAC5B,cAAc,oBAAiB;AAC/B,cAAc,oBAAiB;AAC/B,cAAc,qBAAkB;AAChC,cAAc,kBAAe;AAC7B,cAAc,uBAAoB;AAClC,cAAc,sBAAmB;AACjC,cAAc,mBAAgB;AAC9B,cAAc,kBAAe;AAC7B,cAAc,mBAAgB;AAC9B,cAAc,iBAAc;AAC5B,cAAc,kBAAe;AAC7B,cAAc,iBAAc;AAE5B,cAAc,yBAAsB;AACpC,cAAc,0BAAuB;AACrC,cAAc,yBAAsB;AACpC,cAAc,wBAAqB;AACnC,cAAc,uBAAoB;AAClC,cAAc,wBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionSheet.web.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheet.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK/D,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAarC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetContentGesture.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetContentGesture.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetContentGesture.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetContentGesture.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,QAAA,MAAM,yBAAyB,EAAE,EAAE,CAAC,yBAAyB,CAM5D,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetHeader.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAerE,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA6CjD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionSheetHeader.web.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetHeader.web.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAWrE,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA6CjD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetListView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetListView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetListView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetListView.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAMvE,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAuCrD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetListViewContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetListViewContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetListViewContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetListViewContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAKhC,QAAA,MAAM,0BAA0B,EAAE,EAAE,CAClC,IAAI,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAkB5C,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @internal */
|
|
2
|
-
import { type FC } from 'react';
|
|
3
1
|
import type { ActionSheetOptionsProps } from '../../../types/overlay';
|
|
4
2
|
declare const ActionSheetOptionList: FC<Pick<ActionSheetOptionsProps, 'options' | 'optionListProps' | 'optionListItemProps'>>;
|
|
5
3
|
export default ActionSheetOptionList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetOptionList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetOptionList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetOptionList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetOptionList.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAIV,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAMhC,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAC7B,IAAI,CACF,uBAAuB,EACvB,SAAS,GAAG,iBAAiB,GAAG,qBAAqB,CACtD,CA0BF,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetOptionListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetOptionListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetOptionListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetOptionListItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAOhC,QAAA,MAAM,yBAAyB,EAAE,EAAE,CAAC,aAAa,CAAC,iBAAiB,CAAC,CA0BnE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetOptions.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetOptions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetOptions.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetOptions.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAMtE,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA8CnD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetScrollView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetScrollView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetScrollView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetScrollView.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAMzE,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CA0CzD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @internal */
|
|
2
|
-
import { type FC } from 'react';
|
|
3
1
|
import type { ActionSheetScrollViewProps } from '../../../types/overlay';
|
|
4
2
|
import type { PropsWithRequiredChildren } from '../../../types/view';
|
|
5
3
|
declare const ActionSheetScrollViewContent: FC<PropsWithRequiredChildren<Pick<ActionSheetScrollViewProps, 'scrollViewProps'>>>;
|
package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetScrollViewContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetScrollViewContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetScrollViewContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetScrollViewContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAEV,yBAAyB,EAE1B,MAAM,qBAAqB,CAAC;AAK7B,QAAA,MAAM,4BAA4B,EAAE,EAAE,CACpC,yBAAyB,CAAC,IAAI,CAAC,0BAA0B,EAAE,iBAAiB,CAAC,CAAC,CAsB/E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetWrap.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetWrap.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionSheetWrap.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/actionSheet/ActionSheetWrap.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,wBAAwB,CAAC;AAQhC,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAyD7C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemedSlider.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/ThemedSlider.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,KAAK,EAAe,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAYzE,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkFvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** @internal */
|
|
2
|
-
import { View } from 'react-native';
|
|
3
1
|
declare const AnimatedView: import("react-native-reanimated/lib/typescript/createAnimatedComponent").AnimatedComponentType<Readonly<import("react-native").ViewProps>, typeof View>;
|
|
4
2
|
export default AnimatedView;
|
|
5
3
|
//# sourceMappingURL=AnimatedView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/AnimatedView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnimatedView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/AnimatedView.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY,yJAAyC,CAAC;AAE5D,eAAe,YAAY,CAAC"}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import type { ScrollView } from 'react-native';
|
|
2
2
|
import type { ListAnimatedRefObj, ListRef } from '../types/list';
|
|
3
|
-
import type { ActionSheetContextVal, ActionSheetListViewProps, ActionSheetOptionListProps, ActionSheetOptions, ActionSheetScrollViewProps, OverlayDismissActionSheetResult, OverlayOnDismiss } from '../types/overlay';
|
|
4
3
|
import type { ScrollViewAnimatedRefObj } from '../types/view';
|
|
5
|
-
/** @internal */
|
|
6
|
-
export declare function useActionSheetContext(): Partial<ActionSheetContextVal>;
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare function useActionSheetOnDismiss(force?: boolean): (text?: string) => void;
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare function useActionSheetGesture(contentGesture?: boolean): import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare function useActionSheetHeaderMinHeight(): number;
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare function useActionSheetContentGesture(): import("react-native-gesture-handler/lib/typescript/handlers/gestures/gestureComposition").SimultaneousGesture;
|
|
15
4
|
export declare function useActionSheetListViewAnimatedRef<T>(): import("react-native-reanimated").AnimatedRef<ListRef<T>>;
|
|
16
5
|
export declare function useActionSheetScrollViewAnimatedRef(): import("react-native-reanimated").AnimatedRef<ScrollView>;
|
|
17
6
|
/** @interal */
|
|
@@ -24,20 +13,4 @@ export declare function useActionSheetScrollViewRefAndOffset(refObj?: ScrollView
|
|
|
24
13
|
scrollViewAnimatedRefObj: ScrollViewAnimatedRefObj;
|
|
25
14
|
contentOffsetSharedVal: import("react-native-reanimated").SharedValue<number>;
|
|
26
15
|
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare function useActionSheetVisible(visible?: boolean): {
|
|
29
|
-
actionSheetVisible: boolean;
|
|
30
|
-
setActionSheetVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
31
|
-
};
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare function useActionSheetOpts(title: string | undefined, expandable: boolean | undefined, options: ActionSheetOptions, optionListProps: ActionSheetOptionListProps | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, dismissable: boolean | undefined, actionSheetVisible: boolean): ActionSheetContextVal;
|
|
34
|
-
/** @internal */
|
|
35
|
-
export declare function useActionSheetOptItemSize({ insets, insetTop, insetBottom, insetLeft, insetRight, insetsPadding, insetPaddingTop, insetPaddingBottom, insetPaddingLeft, insetPaddingRight, }?: ActionSheetOptionListProps): {
|
|
36
|
-
itemSize: number;
|
|
37
|
-
insetsStyle: Pick<import("react-native").ViewStyle, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft">;
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare function useActionSheetScrollView(title: string | undefined, expandable: boolean | undefined, scrollViewProps: ActionSheetScrollViewProps['scrollViewProps'] | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, dismissable: boolean | undefined, actionSheetVisible: boolean): ActionSheetContextVal;
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare function useActionSheetListView(title: string | undefined, expandable: boolean | undefined, listProps: ActionSheetListViewProps['listProps'] | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, dismissable: boolean | undefined, actionSheetVisible: boolean): ActionSheetContextVal;
|
|
43
16
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/overlay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/overlay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAWjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AA+L9D,wBAAgB,iCAAiC,CAAC,CAAC,+DAElD;AAED,wBAAgB,mCAAmC,8DAElD;AAED,eAAe;AACf,wBAAgB,kCAAkC,CAAC,CAAC,EAClD,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC;;;EAa/B;AAED,eAAe;AACf,wBAAgB,oCAAoC,CAClD,MAAM,CAAC,EAAE,wBAAwB;;;EAalC"}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ThemedSwitchProps } from '../types/switch';
|
|
3
|
-
import { BorderSize } from '../utils/theme/const';
|
|
4
|
-
/** @internal */
|
|
5
|
-
export declare function useThemedSwitch(onPress: ThemedSwitchProps['onPress'], enabled?: ThemedSwitchProps['enabled'], size?: ThemedSwitchProps['size'], onPressDelayConfig?: ThemedSwitchProps['onPressDelayConfig'], customEnableAnimation?: ThemedSwitchProps['customEnableAnimation'], customDisableAnimation?: ThemedSwitchProps['customDisableAnimation'], customColors?: ThemedSwitchProps['customColors']): {
|
|
6
|
-
toggleSwitch: PressableOnPress;
|
|
7
|
-
trackAnimatedStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
8
|
-
width: number;
|
|
9
|
-
padding: import("..").Spacing;
|
|
10
|
-
borderWidth: BorderSize;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
}>;
|
|
14
|
-
thumbAnimatedStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
transform: {
|
|
17
|
-
translateX: number;
|
|
18
|
-
}[];
|
|
19
|
-
}>;
|
|
20
|
-
};
|
|
1
|
+
export {};
|
|
21
2
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/switch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/switch.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FlashListProps, FlashListRef, ListRenderItemInfo } from '@shopify/flash-list';
|
|
2
|
-
import type { ComponentType,
|
|
2
|
+
import type { ComponentType, RefObject } from 'react';
|
|
3
3
|
import type { ViewStyle } from 'react-native';
|
|
4
4
|
import type { AnimatedRef } from 'react-native-reanimated';
|
|
5
5
|
import type { ThemedSeparatorProps } from './separator';
|
|
@@ -22,15 +22,6 @@ export type ListItemSeparatorProps = Partial<Pick<ThemedSeparatorProps, 'size' |
|
|
|
22
22
|
backgroundColor: ThemeColors;
|
|
23
23
|
style: Omit<ThemedSeparatorProps, 'size' | 'vertical' | 'backgroundColor' | 'bg'>;
|
|
24
24
|
}>;
|
|
25
|
-
/** @internal */
|
|
26
|
-
export type ListItemSeparatorComponent = FC<{
|
|
27
|
-
leadingItem?: {
|
|
28
|
-
type: string;
|
|
29
|
-
};
|
|
30
|
-
trailingItem?: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
25
|
export type ListCellRendererComponentProps = PropsWithRequiredChildren<{
|
|
35
26
|
onLayout: () => void;
|
|
36
27
|
index: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAM,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAExD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAEzC,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEzD,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAErD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAErE,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAC/B,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,GAAG,KACZ,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjC,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,IAAI,CAC7B,cAAc,CAAC,CAAC,CAAC,EACjB,MAAM,GAAG,YAAY,GAAG,cAAc,CACvC,GACC,iBAAiB,GAAG;IAClB,GAAG,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,IAAI,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC;AAEJ,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IAChD,eAAe,EAAE,WAAW,CAAC;IAC7B,KAAK,EAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC/C,CAAC;CACH,CACF,CAAC;AAQF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC;IACrE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC,CAAC"}
|