@seakoi/native-ui 1.1.2 → 1.2.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/CHANGELOG.md +24 -0
- package/dist/commonjs/components/base/carousel/carousel-indicator.js +56 -0
- package/dist/commonjs/components/base/carousel/carousel-slides.js +140 -0
- package/dist/commonjs/components/base/carousel/carousel.js +114 -122
- package/dist/commonjs/components/base/carousel/hooks/index.js +0 -14
- package/dist/commonjs/components/base/carousel/hooks/use-carousel-index.js +16 -13
- package/dist/commonjs/components/base/carousel/hooks/use-carousel-lifecycle.js +6 -2
- package/dist/commonjs/components/base/carousel/hooks/use-carousel-pan-responder.js +40 -12
- package/dist/commonjs/components/base/carousel/hooks/use-carousel-position.js +6 -2
- package/dist/commonjs/components/base/carousel/index.js +1 -15
- package/dist/commonjs/components/base/carousel/style/index.js +12 -0
- package/dist/commonjs/components/base/date-picker/date-picker.js +56 -44
- package/dist/commonjs/components/base/date-picker/date-range-picker.js +142 -50
- package/dist/commonjs/components/base/date-picker/style/index.js +15 -0
- package/dist/commonjs/components/base/date-picker-view/date-picker-view.js +19 -53
- package/dist/commonjs/components/base/date-picker-view/index.js +0 -22
- package/dist/commonjs/components/base/index.js +30 -8
- package/dist/commonjs/components/base/picker/index.js +26 -4
- package/dist/commonjs/components/base/picker/picker-content.js +60 -0
- package/dist/commonjs/components/base/picker/picker-context.js +9 -0
- package/dist/commonjs/components/base/picker/picker-field.js +37 -0
- package/dist/commonjs/components/base/picker/picker.js +22 -96
- package/dist/commonjs/components/base/picker/style/index.js +1 -3
- package/dist/commonjs/components/base/picker-backup/base-picker-container.js +50 -0
- package/dist/commonjs/components/base/picker-backup/index.js +27 -0
- package/dist/commonjs/components/base/picker-backup/picker-backup.js +75 -0
- package/dist/commonjs/components/base/picker-backup/picker-copy.js +106 -0
- package/dist/commonjs/components/base/{picker → picker-backup}/picker-trigger.js +5 -5
- package/dist/commonjs/components/base/picker-backup/style/index.js +19 -0
- package/dist/commonjs/components/base/picker-backup/utils.js +53 -0
- package/dist/commonjs/components/base/picker-view/picker-view-column.js +15 -0
- package/dist/commonjs/components/base/picker-view/picker-view.js +4 -4
- package/dist/commonjs/components/base/tag/index.js +20 -0
- package/dist/commonjs/components/base/tag/style/index.js +89 -0
- package/dist/commonjs/components/base/tag/tag-context.js +12 -0
- package/dist/commonjs/components/base/tag/tag-group.js +35 -0
- package/dist/commonjs/components/base/tag/tag.js +47 -0
- package/dist/commonjs/components/base/tag/types.js +5 -0
- package/dist/module/components/base/carousel/carousel-indicator.js +51 -0
- package/dist/module/components/base/carousel/carousel-slides.js +135 -0
- package/dist/module/components/base/carousel/carousel.js +116 -124
- package/dist/module/components/base/carousel/hooks/index.js +0 -2
- package/dist/module/components/base/carousel/hooks/use-carousel-index.js +15 -11
- package/dist/module/components/base/carousel/hooks/use-carousel-lifecycle.js +6 -2
- package/dist/module/components/base/carousel/hooks/use-carousel-pan-responder.js +40 -11
- package/dist/module/components/base/carousel/hooks/use-carousel-position.js +5 -1
- package/dist/module/components/base/carousel/index.js +1 -5
- package/dist/module/components/base/carousel/style/index.js +12 -0
- package/dist/module/components/base/date-picker/date-picker.js +60 -48
- package/dist/module/components/base/date-picker/date-range-picker.js +146 -54
- package/dist/module/components/base/date-picker/style/index.js +11 -0
- package/dist/module/components/base/date-picker-view/date-picker-view.js +23 -57
- package/dist/module/components/base/date-picker-view/index.js +1 -3
- package/dist/module/components/base/index.js +2 -0
- package/dist/module/components/base/picker/index.js +9 -1
- package/dist/module/components/base/picker/picker-content.js +54 -0
- package/dist/module/components/base/picker/picker-context.js +4 -0
- package/dist/module/components/base/picker/picker-field.js +32 -0
- package/dist/module/components/base/picker/picker.js +25 -99
- package/dist/module/components/base/picker/style/index.js +1 -3
- package/dist/module/components/base/picker-backup/base-picker-container.js +44 -0
- package/dist/module/components/base/picker-backup/index.js +4 -0
- package/dist/module/components/base/picker-backup/picker-backup.js +69 -0
- package/dist/module/components/base/picker-backup/picker-copy.js +101 -0
- package/dist/module/components/base/{picker → picker-backup}/picker-trigger.js +2 -2
- package/dist/module/components/base/picker-backup/style/index.js +15 -0
- package/dist/module/components/base/picker-backup/utils.js +48 -0
- package/dist/module/components/base/picker-view/picker-view-column.js +15 -0
- package/dist/module/components/base/picker-view/picker-view.js +4 -4
- package/dist/module/components/base/tag/index.js +5 -0
- package/dist/module/components/base/tag/style/index.js +85 -0
- package/dist/module/components/base/tag/tag-context.js +8 -0
- package/dist/module/components/base/tag/tag-group.js +29 -0
- package/dist/module/components/base/tag/tag.js +41 -0
- package/dist/module/components/base/tag/types.js +3 -0
- package/dist/typescript/components/base/carousel/carousel-indicator.d.ts +42 -0
- package/dist/typescript/components/base/carousel/carousel-indicator.d.ts.map +1 -0
- package/dist/typescript/components/base/carousel/carousel-slides.d.ts +49 -0
- package/dist/typescript/components/base/carousel/carousel-slides.d.ts.map +1 -0
- package/dist/typescript/components/base/carousel/carousel.d.ts +16 -11
- package/dist/typescript/components/base/carousel/carousel.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/hooks/index.d.ts +0 -2
- package/dist/typescript/components/base/carousel/hooks/index.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/hooks/use-carousel-index.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/hooks/use-carousel-lifecycle.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/hooks/use-carousel-pan-responder.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/hooks/use-carousel-position.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/index.d.ts +1 -4
- package/dist/typescript/components/base/carousel/index.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/style/index.d.ts +12 -0
- package/dist/typescript/components/base/carousel/style/index.d.ts.map +1 -1
- package/dist/typescript/components/base/carousel/types.d.ts +8 -17
- package/dist/typescript/components/base/carousel/types.d.ts.map +1 -1
- package/dist/typescript/components/base/date-picker/date-picker.d.ts +4 -2
- package/dist/typescript/components/base/date-picker/date-picker.d.ts.map +1 -1
- package/dist/typescript/components/base/date-picker/date-range-picker.d.ts +12 -3
- package/dist/typescript/components/base/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/typescript/components/base/date-picker/style/index.d.ts +9 -0
- package/dist/typescript/components/base/date-picker/style/index.d.ts.map +1 -0
- package/dist/typescript/components/base/date-picker-view/date-picker-view.d.ts +1 -6
- package/dist/typescript/components/base/date-picker-view/date-picker-view.d.ts.map +1 -1
- package/dist/typescript/components/base/date-picker-view/index.d.ts +0 -2
- package/dist/typescript/components/base/date-picker-view/index.d.ts.map +1 -1
- package/dist/typescript/components/base/date-picker-view/types.d.ts +1 -1
- package/dist/typescript/components/base/index.d.ts +2 -0
- package/dist/typescript/components/base/index.d.ts.map +1 -1
- package/dist/typescript/components/base/picker/index.d.ts +7 -1
- package/dist/typescript/components/base/picker/index.d.ts.map +1 -1
- package/dist/typescript/components/base/picker/picker-content.d.ts +15 -0
- package/dist/typescript/components/base/picker/picker-content.d.ts.map +1 -0
- package/dist/typescript/components/base/picker/picker-context.d.ts +18 -0
- package/dist/typescript/components/base/picker/picker-context.d.ts.map +1 -0
- package/dist/typescript/components/base/picker/picker-field.d.ts +10 -0
- package/dist/typescript/components/base/picker/picker-field.d.ts.map +1 -0
- package/dist/typescript/components/base/picker/picker.d.ts +13 -11
- package/dist/typescript/components/base/picker/picker.d.ts.map +1 -1
- package/dist/typescript/components/base/picker/style/index.d.ts +0 -2
- package/dist/typescript/components/base/picker/style/index.d.ts.map +1 -1
- package/dist/typescript/components/base/picker-backup/base-picker-container.d.ts +15 -0
- package/dist/typescript/components/base/picker-backup/base-picker-container.d.ts.map +1 -0
- package/dist/typescript/components/base/picker-backup/index.d.ts +3 -0
- package/dist/typescript/components/base/picker-backup/index.d.ts.map +1 -0
- package/dist/typescript/components/base/picker-backup/picker-backup.d.ts +26 -0
- package/dist/typescript/components/base/picker-backup/picker-backup.d.ts.map +1 -0
- package/dist/typescript/components/base/picker-backup/picker-copy.d.ts +13 -0
- package/dist/typescript/components/base/picker-backup/picker-copy.d.ts.map +1 -0
- package/dist/typescript/components/base/picker-backup/picker-trigger.d.ts.map +1 -0
- package/dist/typescript/components/base/picker-backup/style/index.d.ts +13 -0
- package/dist/typescript/components/base/picker-backup/style/index.d.ts.map +1 -0
- package/dist/typescript/components/base/picker-backup/utils.d.ts +8 -0
- package/dist/typescript/components/base/picker-backup/utils.d.ts.map +1 -0
- package/dist/typescript/components/base/picker-view/picker-view-column.d.ts.map +1 -1
- package/dist/typescript/components/base/picker-view/utils/picker.d.ts +3 -3
- package/dist/typescript/components/base/picker-view/utils/picker.d.ts.map +1 -1
- package/dist/typescript/components/base/tag/index.d.ts +5 -0
- package/dist/typescript/components/base/tag/index.d.ts.map +1 -0
- package/dist/typescript/components/base/tag/style/index.d.ts +61 -0
- package/dist/typescript/components/base/tag/style/index.d.ts.map +1 -0
- package/dist/typescript/components/base/tag/tag-context.d.ts +3 -0
- package/dist/typescript/components/base/tag/tag-context.d.ts.map +1 -0
- package/dist/typescript/components/base/tag/tag-group.d.ts +4 -0
- package/dist/typescript/components/base/tag/tag-group.d.ts.map +1 -0
- package/dist/typescript/components/base/tag/tag.d.ts +4 -0
- package/dist/typescript/components/base/tag/tag.d.ts.map +1 -0
- package/dist/typescript/components/base/tag/types.d.ts +48 -0
- package/dist/typescript/components/base/tag/types.d.ts.map +1 -0
- package/package.json +12 -4
- package/src/components/base/carousel/carousel-indicator.tsx +80 -0
- package/src/components/base/carousel/carousel-slides.tsx +177 -0
- package/src/components/base/carousel/carousel.tsx +108 -118
- package/src/components/base/carousel/hooks/index.ts +0 -2
- package/src/components/base/carousel/hooks/use-carousel-index.ts +13 -9
- package/src/components/base/carousel/hooks/use-carousel-lifecycle.ts +4 -3
- package/src/components/base/carousel/hooks/use-carousel-pan-responder.ts +40 -16
- package/src/components/base/carousel/hooks/use-carousel-position.ts +4 -1
- package/src/components/base/carousel/index.ts +1 -3
- package/src/components/base/carousel/style/index.ts +12 -0
- package/src/components/base/carousel/types.ts +8 -21
- package/src/components/base/date-picker/date-picker.tsx +64 -61
- package/src/components/base/date-picker/date-range-picker.tsx +178 -70
- package/src/components/base/date-picker/style/index.ts +10 -0
- package/src/components/base/date-picker-view/date-picker-view.tsx +21 -68
- package/src/components/base/date-picker-view/index.ts +0 -2
- package/src/components/base/date-picker-view/types.ts +1 -1
- package/src/components/base/index.ts +2 -0
- package/src/components/base/picker/index.ts +11 -1
- package/src/components/base/picker/picker-content.tsx +75 -0
- package/src/components/base/picker/picker-context.ts +19 -0
- package/src/components/base/picker/picker-field.tsx +50 -0
- package/src/components/base/picker/picker.tsx +38 -114
- package/src/components/base/picker/style/index.ts +0 -2
- package/src/components/base/picker-backup/base-picker-container.tsx +55 -0
- package/src/components/base/picker-backup/index.ts +2 -0
- package/src/components/base/picker-backup/picker-backup.tsx +110 -0
- package/src/components/base/picker-backup/picker-copy.tsx +125 -0
- package/src/components/base/{picker → picker-backup}/picker-trigger.tsx +2 -2
- package/src/components/base/picker-backup/style/index.ts +14 -0
- package/src/components/base/picker-backup/utils.ts +62 -0
- package/src/components/base/picker-view/picker-view-column.tsx +20 -0
- package/src/components/base/picker-view/picker-view.tsx +4 -4
- package/src/components/base/picker-view/utils/picker.ts +3 -5
- package/src/components/base/tag/index.ts +5 -0
- package/src/components/base/tag/style/index.tsx +84 -0
- package/src/components/base/tag/tag-context.ts +9 -0
- package/src/components/base/tag/tag-group.tsx +31 -0
- package/src/components/base/tag/tag.tsx +50 -0
- package/src/components/base/tag/types.ts +71 -0
- package/dist/commonjs/components/base/carousel/carousel-item.js +0 -45
- package/dist/commonjs/components/base/carousel/constants.js +0 -25
- package/dist/commonjs/components/base/carousel/hooks/use-carousel-indicator.js +0 -63
- package/dist/commonjs/components/base/carousel/hooks/use-carousel-slides.js +0 -95
- package/dist/commonjs/components/base/carousel/utils.js +0 -63
- package/dist/commonjs/components/base/date-picker-view/date-range-picker-view.js +0 -145
- package/dist/commonjs/components/base/date-picker-view/date-time-picker.js +0 -39
- package/dist/module/components/base/carousel/carousel-item.js +0 -40
- package/dist/module/components/base/carousel/constants.js +0 -21
- package/dist/module/components/base/carousel/hooks/use-carousel-indicator.js +0 -58
- package/dist/module/components/base/carousel/hooks/use-carousel-slides.js +0 -90
- package/dist/module/components/base/carousel/utils.js +0 -55
- package/dist/module/components/base/date-picker-view/date-range-picker-view.js +0 -138
- package/dist/module/components/base/date-picker-view/date-time-picker.js +0 -34
- package/dist/typescript/components/base/carousel/carousel-item.d.ts +0 -26
- package/dist/typescript/components/base/carousel/carousel-item.d.ts.map +0 -1
- package/dist/typescript/components/base/carousel/constants.d.ts +0 -17
- package/dist/typescript/components/base/carousel/constants.d.ts.map +0 -1
- package/dist/typescript/components/base/carousel/hooks/use-carousel-indicator.d.ts +0 -37
- package/dist/typescript/components/base/carousel/hooks/use-carousel-indicator.d.ts.map +0 -1
- package/dist/typescript/components/base/carousel/hooks/use-carousel-slides.d.ts +0 -51
- package/dist/typescript/components/base/carousel/hooks/use-carousel-slides.d.ts.map +0 -1
- package/dist/typescript/components/base/carousel/utils.d.ts +0 -25
- package/dist/typescript/components/base/carousel/utils.d.ts.map +0 -1
- package/dist/typescript/components/base/date-picker-view/date-range-picker-view.d.ts +0 -26
- package/dist/typescript/components/base/date-picker-view/date-range-picker-view.d.ts.map +0 -1
- package/dist/typescript/components/base/date-picker-view/date-time-picker.d.ts +0 -3
- package/dist/typescript/components/base/date-picker-view/date-time-picker.d.ts.map +0 -1
- package/dist/typescript/components/base/picker/picker-trigger.d.ts.map +0 -1
- package/src/components/base/carousel/carousel-item.tsx +0 -35
- package/src/components/base/carousel/constants.ts +0 -19
- package/src/components/base/carousel/hooks/use-carousel-indicator.tsx +0 -84
- package/src/components/base/carousel/hooks/use-carousel-slides.tsx +0 -131
- package/src/components/base/carousel/utils.ts +0 -55
- package/src/components/base/date-picker-view/date-range-picker-view.tsx +0 -191
- package/src/components/base/date-picker-view/date-time-picker.tsx +0 -34
- /package/dist/typescript/components/base/{picker → picker-backup}/picker-trigger.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-carousel-pan-responder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/carousel/hooks/use-carousel-pan-responder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"use-carousel-pan-responder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/carousel/hooks/use-carousel-pan-responder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AACxD,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAYtB,UAAU,6BAA6B;IACrC,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,YAAY,GAAG,UAAU,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpC,gBAAgB,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC/B,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,6BAA6B,KACpC,oBAAoB,GAAG,IAiIzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-carousel-position.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/carousel/hooks/use-carousel-position.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"use-carousel-position.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/carousel/hooks/use-carousel-position.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAC;AAOhD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB;;;yBAIU,MAAM,eAAe,MAAM,IAAI;oCAkBpB,MAAM;CAY1D,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export * from './carousel';
|
|
2
|
-
export * from './carousel-item';
|
|
3
2
|
export type * from './types';
|
|
4
|
-
export declare const Carousel: (
|
|
5
|
-
Item: import("react").FC<import("react").PropsWithChildren<import("./types").CarouselItemProps>>;
|
|
6
|
-
};
|
|
3
|
+
export declare const Carousel: <Data = unknown>(props: import("./types").CarouselProps<Data>) => import("react").JSX.Element | null;
|
|
7
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/carousel/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/carousel/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,mBAAmB,SAAS,CAAC;AAE7B,eAAO,MAAM,QAAQ,sGAAY,CAAC"}
|
|
@@ -12,6 +12,18 @@ export declare const useCarouselStyles: (options?: import("../../../../shared/ut
|
|
|
12
12
|
flexGrow: number;
|
|
13
13
|
flexShrink: number;
|
|
14
14
|
};
|
|
15
|
+
trackInnerHorizontal: {
|
|
16
|
+
flexDirection: "row";
|
|
17
|
+
height: "100%";
|
|
18
|
+
flexGrow: number;
|
|
19
|
+
flexShrink: number;
|
|
20
|
+
};
|
|
21
|
+
trackInnerVertical: {
|
|
22
|
+
flexDirection: "column";
|
|
23
|
+
width: "100%";
|
|
24
|
+
flexGrow: number;
|
|
25
|
+
flexShrink: number;
|
|
26
|
+
};
|
|
15
27
|
slide: {
|
|
16
28
|
flexGrow: number;
|
|
17
29
|
flexShrink: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/carousel/style/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/carousel/style/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD3B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
/** Carousel 组件暴露的实例方法 */
|
|
4
4
|
export interface CarouselRef {
|
|
@@ -10,7 +10,7 @@ export interface CarouselRef {
|
|
|
10
10
|
swipePrev: () => void;
|
|
11
11
|
}
|
|
12
12
|
/** Carousel 组件属性 */
|
|
13
|
-
export interface CarouselProps {
|
|
13
|
+
export interface CarouselProps<Data = unknown> {
|
|
14
14
|
/**
|
|
15
15
|
* 初始展示的索引
|
|
16
16
|
* 该属性是响应式的,当值变化时轮播会跳转到对应索引
|
|
@@ -86,21 +86,19 @@ export interface CarouselProps {
|
|
|
86
86
|
rubberband?: boolean;
|
|
87
87
|
/**
|
|
88
88
|
* 虚拟渲染时前后额外渲染的滑块个数
|
|
89
|
-
* 仅在使用 render prop 且传入 total 时生效
|
|
90
89
|
* @default 2
|
|
91
90
|
*/
|
|
92
91
|
virtualOverscan?: number;
|
|
93
92
|
/**
|
|
94
|
-
*
|
|
95
|
-
* 使用 render prop children 时需要手动传入
|
|
93
|
+
* 数据源数组
|
|
96
94
|
*/
|
|
97
|
-
|
|
95
|
+
data: Data[];
|
|
98
96
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
97
|
+
* 渲染每一项的函数
|
|
98
|
+
* @param item - 数据项
|
|
99
|
+
* @param index - 索引
|
|
102
100
|
*/
|
|
103
|
-
|
|
101
|
+
renderItem: (item: Data, index: number) => ReactNode;
|
|
104
102
|
/**
|
|
105
103
|
* 是否阻断原生手势响应
|
|
106
104
|
* 关闭后可与嵌套的 ScrollView 等原生可滚动容器协同工作
|
|
@@ -111,11 +109,4 @@ export interface CarouselProps {
|
|
|
111
109
|
style?: StyleProp<ViewStyle>;
|
|
112
110
|
ref?: Ref<CarouselRef>;
|
|
113
111
|
}
|
|
114
|
-
/** CarouselItem 组件属性 */
|
|
115
|
-
export interface CarouselItemProps {
|
|
116
|
-
/** 滑块内容 */
|
|
117
|
-
children?: ReactNode;
|
|
118
|
-
/** 滑块容器样式 */
|
|
119
|
-
style?: StyleProp<ViewStyle>;
|
|
120
|
-
}
|
|
121
112
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/carousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/carousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,yBAAyB;AACzB,MAAM,WAAW,WAAW;IAC1B,cAAc;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa;IACb,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa;IACb,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,oBAAoB;AACpB,MAAM,WAAW,aAAa,CAAC,IAAI,GAAG,OAAO;IAC3C;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE/B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAEtC,aAAa;IACb,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC,YAAY;IACZ,cAAc,CAAC,EAAE;QACf,gBAAgB;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,cAAc;QACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KAC9B,CAAC;IAEF;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC;IAEpE;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,IAAI,EAAE,CAAC;IAEb;;;;OAIG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAErD;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B,WAAW;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CACxB"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type DatePickerViewProps, type
|
|
3
|
-
export interface DatePickerProps extends
|
|
2
|
+
import { type DatePickerViewProps, type PickerMergeProps } from '#components/base';
|
|
3
|
+
export interface DatePickerProps extends PickerMergeProps<Date>, Omit<DatePickerViewProps, 'onClose' | 'onChange' | 'value' | 'defaultValue'> {
|
|
4
4
|
/**
|
|
5
5
|
* 自定义格式化函数。
|
|
6
6
|
* 配置参考 https://day.js.org/docs/zh-CN/display/format
|
|
7
7
|
*/
|
|
8
8
|
formatter?: string | ((date: Date) => string);
|
|
9
|
+
/** 确定按钮文案 */
|
|
10
|
+
confirmText?: string;
|
|
9
11
|
}
|
|
10
12
|
export declare const DatePicker: React.FC<DatePickerProps>;
|
|
11
13
|
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker/date-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker/date-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAGL,KAAK,mBAAmB,EAGxB,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,WAAW,eACf,SAAQ,gBAAgB,CAAC,IAAI,CAAC,EAC5B,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,CAAC;IAC9E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC;IAC9C,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsEhD,CAAC"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
|
|
2
|
+
import { type PickerMergeProps } from '#components/base';
|
|
3
|
+
import type { DatePickerViewProps } from '../date-picker-view/types';
|
|
4
|
+
export interface DateRangePickerProps extends PickerMergeProps<[Date, Date]>, Omit<DatePickerViewProps, 'onClose' | 'onChange' | 'value' | 'defaultValue'> {
|
|
4
5
|
/**
|
|
5
6
|
* 自定义格式化函数。
|
|
6
7
|
* 配置参考 https://day.js.org/docs/zh-CN/display/format
|
|
7
8
|
*/
|
|
8
|
-
formatter?: string | ((date: [Date, Date]
|
|
9
|
+
formatter?: string | ((date: [Date, Date]) => string);
|
|
9
10
|
/** 范围分隔符 */
|
|
10
11
|
separator?: string;
|
|
12
|
+
/** start 开始时间的占位文案 */
|
|
13
|
+
startText?: string;
|
|
14
|
+
/** end 结束时间的占位文案 */
|
|
15
|
+
endText?: string;
|
|
16
|
+
/** 确定按钮文案 */
|
|
17
|
+
confirmText?: string;
|
|
18
|
+
/** 重置按钮文案 */
|
|
19
|
+
resetText?: string;
|
|
11
20
|
}
|
|
12
21
|
export declare const DateRangePicker: React.FC<DateRangePickerProps>;
|
|
13
22
|
//# sourceMappingURL=date-range-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker/date-range-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker/date-range-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAKL,KAAK,gBAAgB,EAEtB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGrE,MAAM,WAAW,oBACf,SAAQ,gBAAgB,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EACpC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,CAAC;IAC9E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,MAAM,CAAC,CAAC;IACtD,YAAY;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgL1D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useDatePickerStyles: (options?: import("../../../../shared/utils").AnyObject | undefined) => {
|
|
2
|
+
container: {
|
|
3
|
+
backgroundColor: "rgba(255, 255, 255, 1)";
|
|
4
|
+
padding: number;
|
|
5
|
+
rowGap: number;
|
|
6
|
+
flex: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/date-picker/style/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;CAO7B,CAAC"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { DateTimePickerProps } from './types';
|
|
3
|
-
export interface DatePickerViewProps extends DateTimePickerProps, ModalHeaderBaseProps {
|
|
4
|
-
/** 确定按钮文案 */
|
|
5
|
-
confirmText?: string;
|
|
6
|
-
}
|
|
1
|
+
import type { DatePickerViewProps } from './types';
|
|
7
2
|
export declare const DatePickerView: React.FC<DatePickerViewProps>;
|
|
8
3
|
//# sourceMappingURL=date-picker-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-view.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker-view/date-picker-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-picker-view.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker-view/date-picker-view.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyBxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker-view/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/date-picker-view/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,mBAAmB,SAAS,CAAC"}
|
|
@@ -13,7 +13,7 @@ export type Columns = ColumnItem[];
|
|
|
13
13
|
export type DatePickerColumnMode = 'Y' | 'Y-M' | 'Y-D' | 'M' | 'M-D' | 'D';
|
|
14
14
|
export type DatePickerColumnType = 'Y' | 'M' | 'D';
|
|
15
15
|
export type RenderLabel = (t: DatePickerColumnType, n: number) => string;
|
|
16
|
-
export interface
|
|
16
|
+
export interface DatePickerViewProps {
|
|
17
17
|
/**
|
|
18
18
|
* 选中项
|
|
19
19
|
*/
|
|
@@ -23,6 +23,7 @@ export * from './loading';
|
|
|
23
23
|
export * from './modal';
|
|
24
24
|
export * from './nav-bar';
|
|
25
25
|
export * from './picker';
|
|
26
|
+
export * from './picker-backup';
|
|
26
27
|
export * from './picker-view';
|
|
27
28
|
export * from './portal';
|
|
28
29
|
export * from './radio';
|
|
@@ -30,5 +31,6 @@ export * from './result';
|
|
|
30
31
|
export * from './surface';
|
|
31
32
|
export * from './switch';
|
|
32
33
|
export * from './tabs';
|
|
34
|
+
export * from './tag';
|
|
33
35
|
export * from './text';
|
|
34
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { PickerField } from './picker-field';
|
|
1
2
|
export * from './picker';
|
|
2
|
-
export * from './picker-
|
|
3
|
+
export * from './picker-content';
|
|
4
|
+
export * from './picker-field';
|
|
5
|
+
export declare const Picker: import("react").FC<import("react").PropsWithChildren<import("./picker").PickerProps<any>>> & {
|
|
6
|
+
Field: typeof PickerField;
|
|
7
|
+
Content: import("react").FC<import("./picker-content").PickerContentProps>;
|
|
8
|
+
};
|
|
3
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,MAAM;;;CAGjB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { type ModalProps } from '#components/base';
|
|
4
|
+
import type { Any } from '#shared/utils';
|
|
5
|
+
export interface PickerContentProps extends Omit<ModalProps, 'visible' | 'children'> {
|
|
6
|
+
hiddenHeaderCloseIcon?: boolean;
|
|
7
|
+
headerTitle?: React.ReactNode;
|
|
8
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
9
|
+
children?: React.ReactElement | ((props: {
|
|
10
|
+
value: Any;
|
|
11
|
+
onChange?: (value: Any) => void;
|
|
12
|
+
}) => React.ReactElement);
|
|
13
|
+
}
|
|
14
|
+
export declare const PickerContent: React.FC<PickerContentProps>;
|
|
15
|
+
//# sourceMappingURL=picker-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-content.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker/picker-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAIL,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAIzC,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,UAAU,CAAC;IAChD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EACL,KAAK,CAAC,YAAY,GAClB,CAAC,CAAC,KAAK,EAAE;QACP,KAAK,EAAE,GAAG,CAAC;QACX,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;KACjC,KAAK,KAAK,CAAC,YAAY,CAAC,CAAC;CAC/B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+CtD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Any } from '#shared/utils';
|
|
3
|
+
export interface PickerContextState<Value = Any> {
|
|
4
|
+
/** 当前选中的值 */
|
|
5
|
+
value?: Value;
|
|
6
|
+
/** 选择器是否可见 */
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/** 是否禁用 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 设置禁用状态 */
|
|
11
|
+
setDisabled?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
+
/** 切换选择器可见状态 */
|
|
13
|
+
toggleVisible?: () => void;
|
|
14
|
+
/** 值变化回调 */
|
|
15
|
+
onChange?: (value: Value | undefined) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const PickerContext: React.Context<PickerContextState<any> | null>;
|
|
18
|
+
//# sourceMappingURL=picker-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-context.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker/picker-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG;IAC7C,aAAa;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,cAAc;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa;IACb,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5D,gBAAgB;IAChB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY;IACZ,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,KAAK,IAAI,CAAC;CAC/C;AACD,eAAO,MAAM,aAAa,+CAAuD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Any } from '#shared/utils';
|
|
3
|
+
export interface PickerFieldProps<Value = Any> {
|
|
4
|
+
/** 未选中时显示的占位内容 */
|
|
5
|
+
placeholder?: React.ReactNode;
|
|
6
|
+
/** 自定义渲染选中值的显示内容 */
|
|
7
|
+
renderValue?: (value: Value) => React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function PickerField<Value>(props: PickerFieldProps<Value>): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=picker-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-field.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker/picker-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,eAAe,CAAC;AAK/D,MAAM,WAAW,gBAAgB,CAAC,KAAK,GAAG,GAAG;IAC3C,kBAAkB;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,oBAAoB;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;CACjD;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,qBAgChE"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import type { Any } from '#shared/utils';
|
|
3
|
+
import type { PickerContentProps } from './picker-content';
|
|
4
|
+
import type { PickerFieldProps } from './picker-field';
|
|
5
|
+
export interface PickerProps<T = Any> {
|
|
6
|
+
value?: T;
|
|
7
|
+
defaultValue?: T;
|
|
8
|
+
trigger?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onChange?: (value: T) => void;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export interface PickerMergeProps<T> extends PickerProps<T>, PickerFieldProps<T>, PickerContentProps {
|
|
13
|
+
}
|
|
14
|
+
export declare const Picker: React.FC<PropsWithChildren<PickerProps>>;
|
|
13
15
|
//# sourceMappingURL=picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker/picker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker/picker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,CACjC,SAAQ,WAAW,CAAC,CAAC,CAAC,EACpB,gBAAgB,CAAC,CAAC,CAAC,EACnB,kBAAkB;CAAG;AAEzB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,CA8B3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/picker/style/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/picker/style/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAW9B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ModalProps } from '../modal';
|
|
3
|
+
import { type PickerTriggerProps } from './picker-trigger';
|
|
4
|
+
export interface PickerController {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
/** 控制弹窗 */
|
|
7
|
+
setVisible: (v: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface BasePickerContainerProps {
|
|
10
|
+
children: (controller: PickerController) => React.ReactNode;
|
|
11
|
+
pickerTriggerProps?: PickerTriggerProps;
|
|
12
|
+
modalProps?: ModalProps;
|
|
13
|
+
}
|
|
14
|
+
export declare const BasePickerContainer: ({ children, pickerTriggerProps, modalProps, }: BasePickerContainerProps) => React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=base-picker-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-picker-container.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-backup/base-picker-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE1E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IAEjB,WAAW;IACX,UAAU,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC;IAC5D,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,eAAO,MAAM,mBAAmB,GAAI,+CAIjC,wBAAwB,sBA8B1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-backup/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AnyObject } from '#shared/utils/types';
|
|
3
|
+
import type { PickerMergeProps } from '../picker/picker';
|
|
4
|
+
import { type Column, type PickerOption, type PickerValue, type PickerViewProps } from '../picker-view';
|
|
5
|
+
export interface FieldNames {
|
|
6
|
+
/** 选项文本对应的字段名 @default 'label' */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** 选项值对应的字段名 @default 'value' */
|
|
9
|
+
value?: string;
|
|
10
|
+
/** 级联子选项对应的字段名 @default 'children' */
|
|
11
|
+
children?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ColumnInput = Column | AnyObject | AnyObject[];
|
|
14
|
+
export interface PickerBackupProps extends PickerMergeProps<PickerValue[]>, Omit<PickerViewProps, 'onChange' | 'columns'> {
|
|
15
|
+
formatter?: (value: PickerValue[], options: PickerOption[]) => React.ReactNode;
|
|
16
|
+
confirmText?: string;
|
|
17
|
+
/** 选择器列,支持标准格式或自定义字段名格式(需配合 fieldNames 使用) */
|
|
18
|
+
columns: ColumnInput[];
|
|
19
|
+
/**
|
|
20
|
+
* 自定义字段名,用于映射数据中的属性到组件内部使用的标准字段
|
|
21
|
+
* @example { label: 'name', value: 'id', children: 'items' }
|
|
22
|
+
*/
|
|
23
|
+
fieldNames?: FieldNames;
|
|
24
|
+
}
|
|
25
|
+
export declare const PickerBackup: React.FC<PickerBackupProps>;
|
|
26
|
+
//# sourceMappingURL=picker-backup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-backup.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-backup/picker-backup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,WAAW,EAEhB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,UAAU;IACzB,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC;AAE3D,MAAM,WAAW,iBACf,SAAQ,gBAAgB,CAAC,WAAW,EAAE,CAAC,EACrC,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAkEpD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ModalHeaderBaseProps } from '../modal';
|
|
2
|
+
import { type PickerOption, type PickerValue, type PickerViewProps } from '../picker-view';
|
|
3
|
+
import { type PickerTriggerControlledProps } from './picker-trigger';
|
|
4
|
+
export interface PickerProps extends PickerTriggerControlledProps<PickerValue[]>, Omit<PickerViewProps, 'onChange' | 'value' | 'defaultValue'>, Pick<ModalHeaderBaseProps, 'title'> {
|
|
5
|
+
/**
|
|
6
|
+
* 自定义格式化函数
|
|
7
|
+
*/
|
|
8
|
+
formatter?: (value: PickerValue[], options: PickerOption[]) => React.ReactNode;
|
|
9
|
+
/** 确定按钮文案 */
|
|
10
|
+
confirmText?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Picker: React.FC<PickerProps>;
|
|
13
|
+
//# sourceMappingURL=picker-copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-copy.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-backup/picker-copy.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAEhB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAiB,KAAK,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAEpF,MAAM,WAAW,WACf,SAAQ,4BAA4B,CAAC,WAAW,EAAE,CAAC,EACjD,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,OAAO,GAAG,cAAc,CAAC,EAC5D,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/E,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgGxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-trigger.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-backup/picker-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAShF,yBAAyB;AACzB,MAAM,WAAW,kBAAkB;IACjC,YAAY;IACZ,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,WAAW;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,gBAAgB;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,4BAA4B,CAAC,CAAC,CAC7C,SAAQ,IAAI,CAAC,kBAAkB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC3D,gBAAgB;IAChB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,cAAc;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,eAAe;IACf,YAAY,CAAC,EAAE,CAAC,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmDtD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const usePickerFieldStyles: (options?: import("../../../../shared/utils").AnyObject | undefined) => {
|
|
2
|
+
container: {
|
|
3
|
+
flex: number;
|
|
4
|
+
alignSelf: "stretch";
|
|
5
|
+
backgroundColor: "rgba(255, 255, 255, 1)";
|
|
6
|
+
paddingVertical: number;
|
|
7
|
+
paddingHorizontal: number;
|
|
8
|
+
};
|
|
9
|
+
disabled: {
|
|
10
|
+
backgroundColor: "rgba(238, 238, 240, 1)";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/picker-backup/style/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAW9B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Column } from '../picker-view/types';
|
|
2
|
+
import type { ColumnInput, FieldNames } from './picker-backup';
|
|
3
|
+
/**
|
|
4
|
+
* 将自定义字段名的数据标准化为内部使用的 { label, value, children } 格式
|
|
5
|
+
* 如果 fieldNames 与默认值相同,则直接返回原始数据(零开销)
|
|
6
|
+
*/
|
|
7
|
+
export declare const normalizeColumns: (columns: ColumnInput[], fieldNames?: FieldNames) => Column[];
|
|
8
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-backup/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAS/D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,WAAW,EAAE,EACtB,aAAa,UAAU,KACtB,MAAM,EAsCR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker-view-column.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-view/picker-view-column.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"picker-view-column.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/picker-view/picker-view-column.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyI5D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Column, PickerOption, PickerOptionCascade, PickerOptionType, PickerValue
|
|
1
|
+
import type { Column, PickerOption, PickerOptionCascade, PickerOptionType, PickerValue } from '../types';
|
|
2
2
|
export declare const getVisibleItemCount: (n: number) => number;
|
|
3
3
|
/**
|
|
4
4
|
* 获取当前选项是什么数据
|
|
@@ -21,9 +21,9 @@ export declare const findDefaultValue: (value: PickerValue, options: PickerOptio
|
|
|
21
21
|
/**
|
|
22
22
|
* 根据 value 和 columns 计算对应的 options
|
|
23
23
|
*/
|
|
24
|
-
export declare const findOptionsByValue: (value: PickerValue[], columns:
|
|
24
|
+
export declare const findOptionsByValue: (value: PickerValue[], columns: Column[]) => PickerOption[];
|
|
25
25
|
/**
|
|
26
26
|
* 获取 columns 的默认值(每列的第一个选项)
|
|
27
27
|
*/
|
|
28
|
-
export declare const getDefaultValues: (columns:
|
|
28
|
+
export declare const getDefaultValues: (columns: Column[]) => PickerValue[];
|
|
29
29
|
//# sourceMappingURL=picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/picker-view/utils/picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,
|
|
1
|
+
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/base/picker-view/utils/picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACZ,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,WAK5C,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,KAAG,gBAc/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,gBAAgB,EAC1B,SAAS,MAAM,EAAE,EACjB,SAAS,WAAW,EAAE,KACrB,CAAC,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,WAAW,EAAE,CAsCjD,CAAC;AAEF,yBAAyB;AACzB,eAAO,MAAM,sBAAsB,GACjC,SAAS,mBAAmB,EAAE,EAC9B,QAAQ,WAAW,EAAE,qBAetB,CAAC;AAEF,mBAAmB;AACnB,eAAO,MAAM,kBAAkB,GAAI,SAAS,mBAAmB,EAAE;;;CAqBhE,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,WAAW,EAAE,EACrB,SAAS,YAAY,EAAE,EAAE,KACxB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,CAM1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,EAAE,SAAS,YAAY,EAAE,uBAgB3E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,WAAW,EAAE,EACpB,SAAS,MAAM,EAAE,KAChB,YAAY,EAkCd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,EAAE,KAAG,WAAW,EAkB/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/base/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,mBAAmB,SAAS,CAAC;AAE7B,eAAe,GAAG,CAAC"}
|