react-native-system-ui 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -22
- package/dist/cjs/components/field/Field.js +1 -1
- package/dist/cjs/components/flex/Flex.js +1 -1
- package/dist/cjs/components/flex/FlexItem.js +1 -1
- package/dist/cjs/components/form/Form.js +1 -1
- package/dist/cjs/components/grid/Grid.js +1 -1
- package/dist/cjs/components/grid/GridItem.js +1 -1
- package/dist/cjs/components/popup/Popup.js +1 -1
- package/dist/cjs/components/selector/Selector.js +1 -1
- package/dist/cjs/components/toast/Toast.js +1 -1
- package/dist/es/components/field/Field.js +1 -1
- package/dist/es/components/flex/Flex.js +1 -1
- package/dist/es/components/flex/FlexItem.js +1 -1
- package/dist/es/components/form/Form.js +1 -1
- package/dist/es/components/grid/Grid.js +1 -1
- package/dist/es/components/grid/GridItem.js +1 -1
- package/dist/es/components/popup/Popup.js +1 -1
- package/dist/es/components/selector/Selector.js +1 -1
- package/dist/es/components/toast/Toast.js +1 -1
- package/dist/types/components/action-sheet/ActionSheet.d.ts +1 -4
- package/dist/types/components/action-sheet/index.d.ts +1 -4
- package/dist/types/components/action-sheet/tokens.d.ts +1 -4
- package/dist/types/components/action-sheet/types.d.ts +1 -87
- package/dist/types/components/area/Area.d.ts +1 -4
- package/dist/types/components/area/index.d.ts +1 -3
- package/dist/types/components/area/tokens.d.ts +1 -7
- package/dist/types/components/area/types.d.ts +1 -20
- package/dist/types/components/avatar/Avatar.d.ts +1 -7
- package/dist/types/components/avatar/index.d.ts +1 -2
- package/dist/types/components/avatar/tokens.d.ts +1 -4
- package/dist/types/components/avatar/types.d.ts +1 -62
- package/dist/types/components/badge/Badge.d.ts +1 -4
- package/dist/types/components/badge/index.d.ts +1 -3
- package/dist/types/components/badge/tokens.d.ts +1 -2
- package/dist/types/components/badge/types.d.ts +1 -57
- package/dist/types/components/button/Button.d.ts +1 -5
- package/dist/types/components/button/ButtonContext.d.ts +1 -2
- package/dist/types/components/button/ButtonGroup.d.ts +1 -23
- package/dist/types/components/button/index.d.ts +1 -6
- package/dist/types/components/button/tokens.d.ts +1 -2
- package/dist/types/components/button/types.d.ts +1 -109
- package/dist/types/components/calendar/Calendar.d.ts +1 -4
- package/dist/types/components/calendar/index.d.ts +1 -3
- package/dist/types/components/calendar/tokens.d.ts +1 -4
- package/dist/types/components/calendar/types.d.ts +1 -111
- package/dist/types/components/cascader/Cascader.d.ts +1 -4
- package/dist/types/components/cascader/index.d.ts +1 -4
- package/dist/types/components/cascader/tokens.d.ts +1 -4
- package/dist/types/components/cascader/types.d.ts +1 -142
- package/dist/types/components/cascader/useCascaderExtend.d.ts +1 -12
- package/dist/types/components/cell/Cell.d.ts +1 -4
- package/dist/types/components/cell/CellContext.d.ts +1 -7
- package/dist/types/components/cell/CellGroup.d.ts +1 -3
- package/dist/types/components/cell/index.d.ts +1 -8
- package/dist/types/components/cell/tokens.d.ts +1 -4
- package/dist/types/components/cell/types.d.ts +1 -112
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -5
- package/dist/types/components/checkbox/CheckboxContext.d.ts +1 -2
- package/dist/types/components/checkbox/CheckboxGroup.d.ts +1 -22
- package/dist/types/components/checkbox/index.d.ts +1 -7
- package/dist/types/components/checkbox/tokens.d.ts +1 -2
- package/dist/types/components/checkbox/types.d.ts +1 -99
- package/dist/types/components/circle/Circle.d.ts +1 -5
- package/dist/types/components/circle/index.d.ts +1 -3
- package/dist/types/components/circle/tokens.d.ts +1 -4
- package/dist/types/components/circle/types.d.ts +1 -51
- package/dist/types/components/collapse/Collapse.d.ts +1 -43
- package/dist/types/components/collapse/index.d.ts +1 -3
- package/dist/types/components/collapse/tokens.d.ts +1 -4
- package/dist/types/components/collapse/types.d.ts +1 -45
- package/dist/types/components/config-provider/ConfigProvider.d.ts +1 -3
- package/dist/types/components/config-provider/DirectionContext.d.ts +1 -3
- package/dist/types/components/config-provider/LocaleContext.d.ts +1 -3
- package/dist/types/components/config-provider/index.d.ts +1 -6
- package/dist/types/components/config-provider/locale/en-US.d.ts +1 -106
- package/dist/types/components/config-provider/locale/types.d.ts +1 -130
- package/dist/types/components/config-provider/locale/zh-CN.d.ts +1 -106
- package/dist/types/components/config-provider/tokens.d.ts +1 -3
- package/dist/types/components/config-provider/types.d.ts +1 -10
- package/dist/types/components/config-provider/useDirection.d.ts +1 -1
- package/dist/types/components/config-provider/useLocale.d.ts +1 -1
- package/dist/types/components/count-down/CountDown.d.ts +1 -4
- package/dist/types/components/count-down/index.d.ts +1 -4
- package/dist/types/components/count-down/tokens.d.ts +1 -4
- package/dist/types/components/count-down/types.d.ts +1 -29
- package/dist/types/components/datetime-picker/DatetimePicker.d.ts +1 -4
- package/dist/types/components/datetime-picker/index.d.ts +1 -3
- package/dist/types/components/datetime-picker/tokens.d.ts +1 -15
- package/dist/types/components/datetime-picker/types.d.ts +1 -38
- package/dist/types/components/dialog/Dialog.d.ts +1 -4
- package/dist/types/components/dialog/imperative.d.ts +1 -23
- package/dist/types/components/dialog/index.d.ts +1 -5
- package/dist/types/components/dialog/tokens.d.ts +1 -48
- package/dist/types/components/dialog/types.d.ts +1 -70
- package/dist/types/components/divider/Divider.d.ts +1 -3
- package/dist/types/components/divider/index.d.ts +1 -3
- package/dist/types/components/divider/tokens.d.ts +1 -4
- package/dist/types/components/divider/types.d.ts +1 -48
- package/dist/types/components/empty/Empty.d.ts +1 -3
- package/dist/types/components/empty/index.d.ts +1 -3
- package/dist/types/components/empty/tokens.d.ts +1 -4
- package/dist/types/components/empty/types.d.ts +1 -44
- package/dist/types/components/error-boundary/ErrorBoundary.d.ts +1 -6
- package/dist/types/components/error-boundary/index.d.ts +1 -2
- package/dist/types/components/error-boundary/types.d.ts +1 -18
- package/dist/types/components/field/Field.d.ts +1 -4
- package/dist/types/components/field/index.d.ts +1 -7
- package/dist/types/components/field/tokens.d.ts +1 -131
- package/dist/types/components/field/types.d.ts +1 -86
- package/dist/types/components/flex/Flex.d.ts +1 -9
- package/dist/types/components/flex/FlexContext.d.ts +1 -2
- package/dist/types/components/flex/FlexItem.d.ts +1 -3
- package/dist/types/components/flex/index.d.ts +1 -8
- package/dist/types/components/flex/tokens.d.ts +1 -2
- package/dist/types/components/flex/types.d.ts +1 -37
- package/dist/types/components/form/Form.d.ts +1 -26
- package/dist/types/components/form/FormItem.d.ts +1 -5
- package/dist/types/components/form/FormList.d.ts +1 -18
- package/dist/types/components/form/index.d.ts +1 -17
- package/dist/types/components/form/tokens.d.ts +1 -7
- package/dist/types/components/form/types.d.ts +1 -68
- package/dist/types/components/grid/Grid.d.ts +1 -18
- package/dist/types/components/grid/GridContext.d.ts +1 -2
- package/dist/types/components/grid/GridItem.d.ts +1 -3
- package/dist/types/components/grid/index.d.ts +1 -5
- package/dist/types/components/grid/tokens.d.ts +1 -4
- package/dist/types/components/grid/types.d.ts +1 -77
- package/dist/types/components/image/Image.d.ts +1 -5
- package/dist/types/components/image/index.d.ts +1 -4
- package/dist/types/components/image/tokens.d.ts +1 -2
- package/dist/types/components/image/types.d.ts +1 -53
- package/dist/types/components/image-preview/ImagePreview.d.ts +1 -4
- package/dist/types/components/image-preview/imperative.d.ts +1 -5
- package/dist/types/components/image-preview/index.d.ts +1 -6
- package/dist/types/components/image-preview/tokens.d.ts +1 -27
- package/dist/types/components/image-preview/types.d.ts +1 -55
- package/dist/types/components/index.d.ts +1 -213
- package/dist/types/components/input/Input.d.ts +1 -8
- package/dist/types/components/input/index.d.ts +1 -4
- package/dist/types/components/input/tokens.d.ts +1 -2
- package/dist/types/components/input/types.d.ts +1 -42
- package/dist/types/components/loading/Loading.d.ts +1 -3
- package/dist/types/components/loading/index.d.ts +1 -3
- package/dist/types/components/loading/tokens.d.ts +1 -4
- package/dist/types/components/loading/types.d.ts +1 -32
- package/dist/types/components/nav-bar/NavBar.d.ts +1 -4
- package/dist/types/components/nav-bar/index.d.ts +1 -4
- package/dist/types/components/nav-bar/tokens.d.ts +1 -4
- package/dist/types/components/nav-bar/types.d.ts +1 -67
- package/dist/types/components/notice-bar/NoticeBar.d.ts +1 -3
- package/dist/types/components/notice-bar/index.d.ts +1 -3
- package/dist/types/components/notice-bar/tokens.d.ts +1 -24
- package/dist/types/components/notice-bar/types.d.ts +1 -26
- package/dist/types/components/notify/Notify.d.ts +1 -6
- package/dist/types/components/notify/imperative.d.ts +1 -22
- package/dist/types/components/notify/index.d.ts +1 -15
- package/dist/types/components/notify/tokens.d.ts +1 -4
- package/dist/types/components/notify/types.d.ts +1 -64
- package/dist/types/components/number-keyboard/NumberKeyboard.d.ts +1 -4
- package/dist/types/components/number-keyboard/index.d.ts +1 -4
- package/dist/types/components/number-keyboard/tokens.d.ts +1 -42
- package/dist/types/components/number-keyboard/types.d.ts +1 -35
- package/dist/types/components/overlay/Overlay.d.ts +1 -5
- package/dist/types/components/overlay/index.d.ts +1 -5
- package/dist/types/components/overlay/tokens.d.ts +1 -6
- package/dist/types/components/overlay/types.d.ts +1 -13
- package/dist/types/components/password-input/PasswordInput.d.ts +1 -4
- package/dist/types/components/password-input/index.d.ts +1 -2
- package/dist/types/components/password-input/tokens.d.ts +1 -40
- package/dist/types/components/password-input/types.d.ts +1 -35
- package/dist/types/components/picker/Picker.d.ts +1 -32
- package/dist/types/components/picker/index.d.ts +1 -4
- package/dist/types/components/picker/tokens.d.ts +1 -39
- package/dist/types/components/picker/types.d.ts +1 -73
- package/dist/types/components/popup/Popup.d.ts +1 -5
- package/dist/types/components/popup/index.d.ts +1 -4
- package/dist/types/components/popup/tokens.d.ts +1 -48
- package/dist/types/components/popup/types.d.ts +1 -41
- package/dist/types/components/portal/Portal.d.ts +1 -14
- package/dist/types/components/portal/PortalContext.d.ts +1 -7
- package/dist/types/components/portal/PortalHost.d.ts +1 -11
- package/dist/types/components/portal/index.d.ts +1 -3
- package/dist/types/components/portal/tokens.d.ts +1 -3
- package/dist/types/components/portal/types.d.ts +1 -1
- package/dist/types/components/progress/Progress.d.ts +1 -8
- package/dist/types/components/progress/index.d.ts +1 -4
- package/dist/types/components/progress/tokens.d.ts +1 -4
- package/dist/types/components/progress/types.d.ts +1 -51
- package/dist/types/components/radio/Radio.d.ts +1 -3
- package/dist/types/components/radio/RadioContext.d.ts +1 -2
- package/dist/types/components/radio/RadioGroup.d.ts +1 -14
- package/dist/types/components/radio/index.d.ts +1 -7
- package/dist/types/components/radio/tokens.d.ts +1 -2
- package/dist/types/components/radio/types.d.ts +1 -95
- package/dist/types/components/safe-area-view/SafeAreaView.d.ts +1 -10
- package/dist/types/components/safe-area-view/index.d.ts +1 -2
- package/dist/types/components/safe-area-view/tokens.d.ts +1 -3
- package/dist/types/components/safe-area-view/types.d.ts +1 -1
- package/dist/types/components/search/Search.d.ts +1 -4
- package/dist/types/components/search/index.d.ts +1 -4
- package/dist/types/components/search/tokens.d.ts +1 -41
- package/dist/types/components/search/types.d.ts +1 -28
- package/dist/types/components/selector/Selector.d.ts +1 -7
- package/dist/types/components/selector/index.d.ts +1 -4
- package/dist/types/components/selector/tokens.d.ts +1 -2
- package/dist/types/components/selector/types.d.ts +1 -74
- package/dist/types/components/share-sheet/ShareSheet.d.ts +1 -4
- package/dist/types/components/share-sheet/index.d.ts +1 -4
- package/dist/types/components/share-sheet/tokens.d.ts +1 -40
- package/dist/types/components/share-sheet/types.d.ts +1 -26
- package/dist/types/components/sidebar/Sidebar.d.ts +1 -4
- package/dist/types/components/sidebar/SidebarContext.d.ts +1 -7
- package/dist/types/components/sidebar/SidebarItem.d.ts +1 -4
- package/dist/types/components/sidebar/index.d.ts +1 -8
- package/dist/types/components/sidebar/tokens.d.ts +1 -4
- package/dist/types/components/sidebar/types.d.ts +1 -64
- package/dist/types/components/skeleton/Skeleton.d.ts +1 -5
- package/dist/types/components/skeleton/index.d.ts +1 -5
- package/dist/types/components/skeleton/tokens.d.ts +1 -2
- package/dist/types/components/skeleton/types.d.ts +1 -45
- package/dist/types/components/slider/Slider.d.ts +1 -4
- package/dist/types/components/slider/index.d.ts +1 -3
- package/dist/types/components/slider/tokens.d.ts +1 -28
- package/dist/types/components/slider/types.d.ts +1 -38
- package/dist/types/components/space/Space.d.ts +1 -3
- package/dist/types/components/space/index.d.ts +1 -3
- package/dist/types/components/space/tokens.d.ts +1 -3
- package/dist/types/components/space/types.d.ts +1 -39
- package/dist/types/components/stepper/Stepper.d.ts +1 -4
- package/dist/types/components/stepper/index.d.ts +1 -4
- package/dist/types/components/stepper/tokens.d.ts +1 -46
- package/dist/types/components/stepper/types.d.ts +1 -46
- package/dist/types/components/swiper/Swiper.d.ts +1 -9
- package/dist/types/components/swiper/SwiperItem.d.ts +1 -1
- package/dist/types/components/swiper/SwiperPagIndicator.d.ts +1 -36
- package/dist/types/components/swiper/index.d.ts +1 -14
- package/dist/types/components/swiper/tokens.d.ts +1 -11
- package/dist/types/components/swiper/types.d.ts +1 -29
- package/dist/types/components/switch/Switch.d.ts +1 -7
- package/dist/types/components/switch/index.d.ts +1 -4
- package/dist/types/components/switch/tokens.d.ts +1 -2
- package/dist/types/components/switch/types.d.ts +1 -33
- package/dist/types/components/tabbar/Tabbar.d.ts +1 -4
- package/dist/types/components/tabbar/TabbarContext.d.ts +1 -13
- package/dist/types/components/tabbar/TabbarItem.d.ts +1 -4
- package/dist/types/components/tabbar/index.d.ts +1 -9
- package/dist/types/components/tabbar/tokens.d.ts +1 -28
- package/dist/types/components/tabbar/types.d.ts +1 -39
- package/dist/types/components/tabs/Tabs.d.ts +1 -8
- package/dist/types/components/tabs/index.d.ts +1 -10
- package/dist/types/components/tabs/tokens.d.ts +1 -96
- package/dist/types/components/tabs/types.d.ts +1 -64
- package/dist/types/components/tag/Tag.d.ts +1 -3
- package/dist/types/components/tag/index.d.ts +1 -3
- package/dist/types/components/tag/tokens.d.ts +1 -4
- package/dist/types/components/tag/types.d.ts +1 -69
- package/dist/types/components/theme.d.ts +1 -112
- package/dist/types/components/toast/Toast.d.ts +1 -33
- package/dist/types/components/toast/imperative.d.ts +1 -22
- package/dist/types/components/toast/index.d.ts +1 -15
- package/dist/types/components/toast/tokens.d.ts +1 -29
- package/dist/types/components/toast/types.d.ts +1 -1
- package/dist/types/components/typography/Typography.d.ts +1 -11
- package/dist/types/components/typography/index.d.ts +1 -3
- package/dist/types/components/typography/tokens.d.ts +1 -2
- package/dist/types/components/typography/types.d.ts +1 -66
- package/dist/types/components/water-mark/WaterMark.d.ts +1 -4
- package/dist/types/components/water-mark/index.d.ts +1 -5
- package/dist/types/components/water-mark/tokens.d.ts +1 -2
- package/dist/types/components/water-mark/types.d.ts +1 -58
- package/dist/types/design-system/Text.d.ts +1 -3
- package/dist/types/design-system/ThemeContext.d.ts +1 -14
- package/dist/types/design-system/ThemeProvider.d.ts +1 -14
- package/dist/types/design-system/createComponentTokensHook.d.ts +1 -4
- package/dist/types/design-system/index.d.ts +1 -11
- package/dist/types/design-system/mergeTokensOverride.d.ts +1 -2
- package/dist/types/design-system/presets.d.ts +1 -8
- package/dist/types/design-system/tokens.d.ts +1 -74
- package/dist/types/design-system/useTheme.d.ts +1 -1
- package/dist/types/hooks/animation/index.d.ts +1 -3
- package/dist/types/hooks/animation/useAnimatedTransition.d.ts +1 -13
- package/dist/types/hooks/animation/useReducedMotion.d.ts +1 -3
- package/dist/types/hooks/aria/index.d.ts +1 -4
- package/dist/types/hooks/aria/useAriaListBox.d.ts +1 -14
- package/dist/types/hooks/aria/useAriaOverlay.d.ts +1 -14
- package/dist/types/hooks/aria/useAriaPress.d.ts +1 -19
- package/dist/types/hooks/aria/useAriaToggle.d.ts +1 -12
- package/dist/types/hooks/gesture/index.d.ts +1 -1
- package/dist/types/hooks/gesture/useGestureScroll.d.ts +1 -33
- package/dist/types/hooks/index.d.ts +1 -9
- package/dist/types/hooks/overlay/OverlayStackStore.d.ts +1 -39
- package/dist/types/hooks/overlay/index.d.ts +1 -2
- package/dist/types/hooks/overlay/useOverlayStack.d.ts +1 -10
- package/dist/types/hooks/useControllableValue.d.ts +1 -9
- package/dist/types/hooks/useCountDown.d.ts +1 -23
- package/dist/types/hooks/useHairline.d.ts +1 -10
- package/dist/types/hooks/useSafeAreaPadding.d.ts +1 -13
- package/dist/types/index.d.ts +1 -9
- package/dist/types/nativewind.d.ts +1 -4
- package/dist/types/platform/animation.d.ts +1 -9
- package/dist/types/platform/history.d.ts +1 -1
- package/dist/types/platform/index.d.ts +1 -5
- package/dist/types/platform/measure.d.ts +1 -7
- package/dist/types/platform/runtime.d.ts +1 -3
- package/dist/types/platform/scrollLock.d.ts +1 -2
- package/dist/types/types.d.ts +1 -4
- package/dist/types/utils/array.d.ts +1 -1
- package/dist/types/utils/color.d.ts +1 -3
- package/dist/types/utils/compare.d.ts +1 -2
- package/dist/types/utils/createPlatformShadow.d.ts +1 -11
- package/dist/types/utils/date.d.ts +1 -13
- package/dist/types/utils/deepMerge.d.ts +1 -3
- package/dist/types/utils/hairline.d.ts +1 -15
- package/dist/types/utils/index.d.ts +1 -13
- package/dist/types/utils/number.d.ts +1 -11
- package/dist/types/utils/promise.d.ts +1 -1
- package/dist/types/utils/render.d.ts +1 -5
- package/dist/types/utils/rtl.d.ts +1 -5
- package/dist/types/utils/string.d.ts +1 -3
- package/dist/types/utils/validate.d.ts +1 -13
- package/package.json +142 -149
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { CalendarTokens } from "./types";
|
|
3
|
-
export declare const createCalendarTokens: (foundations: Foundations) => CalendarTokens;
|
|
4
|
-
export declare const useCalendarTokens: (overrides?: import("../..").DeepPartial<CalendarTokens> | undefined) => CalendarTokens;
|
|
1
|
+
import{type Foundations}from"../../design-system/tokens";import type{CalendarTokens}from"./types";export declare const createCalendarTokens:(foundations:Foundations)=>CalendarTokens;export declare const useCalendarTokens:(overrides?:import("../..").DeepPartial<CalendarTokens>|undefined)=>CalendarTokens;
|
|
@@ -1,111 +1 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import type { TextStyle, ViewProps, ViewStyle } from "react-native";
|
|
3
|
-
import type { DeepPartial } from "../../types";
|
|
4
|
-
import type { PopupPlacement, PopupProps } from "../popup";
|
|
5
|
-
export type CalendarType = "single" | "range" | "multiple";
|
|
6
|
-
export interface CalendarTokens {
|
|
7
|
-
defaults: {
|
|
8
|
-
type: CalendarType;
|
|
9
|
-
title: React.ReactNode;
|
|
10
|
-
showSubtitle: boolean;
|
|
11
|
-
showHeader: boolean;
|
|
12
|
-
showConfirm: Record<CalendarType, boolean>;
|
|
13
|
-
confirmText: React.ReactNode;
|
|
14
|
-
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
15
|
-
weekdays: React.ReactNode[];
|
|
16
|
-
allowSameDay: boolean;
|
|
17
|
-
poppable: boolean;
|
|
18
|
-
closeOnClickOverlay: boolean;
|
|
19
|
-
closeOnConfirm: boolean;
|
|
20
|
-
popupPlacement: PopupPlacement;
|
|
21
|
-
popupRound: boolean;
|
|
22
|
-
};
|
|
23
|
-
layout: {
|
|
24
|
-
header: ViewStyle;
|
|
25
|
-
headerCenter: ViewStyle;
|
|
26
|
-
navText: TextStyle;
|
|
27
|
-
headerTitle: TextStyle;
|
|
28
|
-
headerSubtitle: TextStyle;
|
|
29
|
-
weekRow: ViewStyle;
|
|
30
|
-
weekLabelItem: ViewStyle;
|
|
31
|
-
weekLabel: TextStyle;
|
|
32
|
-
days: ViewStyle;
|
|
33
|
-
dayButton: ViewStyle;
|
|
34
|
-
dayText: TextStyle;
|
|
35
|
-
dayPlaceholder: ViewStyle;
|
|
36
|
-
confirmButton: ViewStyle;
|
|
37
|
-
confirmText: TextStyle;
|
|
38
|
-
};
|
|
39
|
-
colors: {
|
|
40
|
-
text: string;
|
|
41
|
-
weekend: string;
|
|
42
|
-
disabled: string;
|
|
43
|
-
background: string;
|
|
44
|
-
selectedBackground: string;
|
|
45
|
-
selectedText: string;
|
|
46
|
-
rangeBackground: string;
|
|
47
|
-
headerSubtitle: string;
|
|
48
|
-
confirmText: string;
|
|
49
|
-
};
|
|
50
|
-
typography: {
|
|
51
|
-
headerTitleSize: number;
|
|
52
|
-
headerTitleWeight: NonNullable<TextStyle['fontWeight']>;
|
|
53
|
-
headerSubtitleSize: number;
|
|
54
|
-
confirmTextWeight: NonNullable<TextStyle['fontWeight']>;
|
|
55
|
-
};
|
|
56
|
-
sizing: {
|
|
57
|
-
dayMinWidth: number;
|
|
58
|
-
navButtonSize: number;
|
|
59
|
-
};
|
|
60
|
-
radii: {
|
|
61
|
-
day: number;
|
|
62
|
-
container: number;
|
|
63
|
-
confirmButton: number;
|
|
64
|
-
};
|
|
65
|
-
spacing: {
|
|
66
|
-
row: number;
|
|
67
|
-
column: number;
|
|
68
|
-
containerPadding: number;
|
|
69
|
-
headerMarginBottom: number;
|
|
70
|
-
weekRowMarginBottom: number;
|
|
71
|
-
navPaddingHorizontal: number;
|
|
72
|
-
dayPaddingVertical: number;
|
|
73
|
-
confirmMarginTop: number;
|
|
74
|
-
confirmPaddingVertical: number;
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
export interface CalendarProps extends ViewProps {
|
|
78
|
-
value?: Date | Date[] | null;
|
|
79
|
-
defaultValue?: Date | Date[] | null;
|
|
80
|
-
minDate?: Date;
|
|
81
|
-
maxDate?: Date;
|
|
82
|
-
type?: CalendarType;
|
|
83
|
-
title?: React.ReactNode;
|
|
84
|
-
showSubtitle?: boolean;
|
|
85
|
-
color?: string;
|
|
86
|
-
showHeader?: boolean;
|
|
87
|
-
showConfirm?: boolean;
|
|
88
|
-
confirmText?: React.ReactNode;
|
|
89
|
-
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
90
|
-
weekdays?: React.ReactNode[];
|
|
91
|
-
formatMonthTitle?: (date: Date) => React.ReactNode;
|
|
92
|
-
allowSameDay?: boolean;
|
|
93
|
-
maxRange?: number;
|
|
94
|
-
onOverRange?: (limit: number) => void;
|
|
95
|
-
poppable?: boolean;
|
|
96
|
-
visible?: boolean;
|
|
97
|
-
defaultVisible?: boolean;
|
|
98
|
-
onVisibleChange?: (visible: boolean) => void;
|
|
99
|
-
closeOnClickOverlay?: boolean;
|
|
100
|
-
closeOnConfirm?: boolean;
|
|
101
|
-
popupPlacement?: PopupPlacement;
|
|
102
|
-
popupRound?: boolean;
|
|
103
|
-
popupProps?: Partial<PopupProps>;
|
|
104
|
-
onOpen?: () => void;
|
|
105
|
-
onOpened?: () => void;
|
|
106
|
-
onClose?: () => void;
|
|
107
|
-
onClosed?: () => void;
|
|
108
|
-
onSelect?: (value: Date | Date[]) => void;
|
|
109
|
-
onConfirm?: (value: Date | Date[]) => void;
|
|
110
|
-
tokensOverride?: DeepPartial<CalendarTokens>;
|
|
111
|
-
}
|
|
1
|
+
import type React from"react";import type{TextStyle,ViewProps,ViewStyle}from"react-native";import type{DeepPartial}from"../../types";import type{PopupPlacement,PopupProps}from"../popup";export type CalendarType="single"|"range"|"multiple";export interface CalendarTokens{defaults:{type:CalendarType;title:React.ReactNode;showSubtitle:boolean;showHeader:boolean;showConfirm:Record<CalendarType,boolean>;confirmText:React.ReactNode;weekStartsOn:0|1|2|3|4|5|6;weekdays:React.ReactNode[];allowSameDay:boolean;poppable:boolean;closeOnClickOverlay:boolean;closeOnConfirm:boolean;popupPlacement:PopupPlacement;popupRound:boolean;};layout:{header:ViewStyle;headerCenter:ViewStyle;navText:TextStyle;headerTitle:TextStyle;headerSubtitle:TextStyle;weekRow:ViewStyle;weekLabelItem:ViewStyle;weekLabel:TextStyle;days:ViewStyle;dayButton:ViewStyle;dayText:TextStyle;dayPlaceholder:ViewStyle;confirmButton:ViewStyle;confirmText:TextStyle;};colors:{text:string;weekend:string;disabled:string;background:string;selectedBackground:string;selectedText:string;rangeBackground:string;headerSubtitle:string;confirmText:string;};typography:{headerTitleSize:number;headerTitleWeight:NonNullable<TextStyle['fontWeight']>;headerSubtitleSize:number;confirmTextWeight:NonNullable<TextStyle['fontWeight']>;};sizing:{dayMinWidth:number;navButtonSize:number;};radii:{day:number;container:number;confirmButton:number;};spacing:{row:number;column:number;containerPadding:number;headerMarginBottom:number;weekRowMarginBottom:number;navPaddingHorizontal:number;dayPaddingVertical:number;confirmMarginTop:number;confirmPaddingVertical:number;};}export interface CalendarProps extends ViewProps{value?:Date|Date[]|null;defaultValue?:Date|Date[]|null;minDate?:Date;maxDate?:Date;type?:CalendarType;title?:React.ReactNode;showSubtitle?:boolean;color?:string;showHeader?:boolean;showConfirm?:boolean;confirmText?:React.ReactNode;weekStartsOn?:0|1|2|3|4|5|6;weekdays?:React.ReactNode[];formatMonthTitle?:(date:Date)=>React.ReactNode;allowSameDay?:boolean;maxRange?:number;onOverRange?:(limit:number)=>void;poppable?:boolean;visible?:boolean;defaultVisible?:boolean;onVisibleChange?:(visible:boolean)=>void;closeOnClickOverlay?:boolean;closeOnConfirm?:boolean;popupPlacement?:PopupPlacement;popupRound?:boolean;popupProps?:Partial<PopupProps>;onOpen?:()=>void;onOpened?:()=>void;onClose?:()=>void;onClosed?:()=>void;onSelect?:(value:Date|Date[])=>void;onConfirm?:(value:Date|Date[])=>void;tokensOverride?:DeepPartial<CalendarTokens>;}
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { CascaderProps } from "./types";
|
|
3
|
-
declare const Cascader: React.NamedExoticComponent<CascaderProps>;
|
|
4
|
-
export default Cascader;
|
|
1
|
+
import React from"react";import type{CascaderProps}from"./types";declare const Cascader:React.NamedExoticComponent<CascaderProps>;export default Cascader;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import Cascader from
|
|
2
|
-
export type { CascaderProps, CascaderOption, CascaderFieldNames, CascaderValue } from "./types";
|
|
3
|
-
export default Cascader;
|
|
4
|
-
export { Cascader };
|
|
1
|
+
import Cascader from"./Cascader";export type{CascaderProps,CascaderOption,CascaderFieldNames,CascaderValue}from"./types";export default Cascader;export{Cascader};
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { CascaderTokens } from "./types";
|
|
3
|
-
export declare const createCascaderTokens: (foundations: Foundations) => CascaderTokens;
|
|
4
|
-
export declare const useCascaderTokens: (overrides?: import("../..").DeepPartial<CascaderTokens> | undefined) => CascaderTokens;
|
|
1
|
+
import{type Foundations}from"../../design-system/tokens";import type{CascaderTokens}from"./types";export declare const createCascaderTokens:(foundations:Foundations)=>CascaderTokens;export declare const useCascaderTokens:(overrides?:import("../..").DeepPartial<CascaderTokens>|undefined)=>CascaderTokens;
|
|
@@ -1,142 +1 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import type { TextStyle, ViewProps, ViewStyle } from "react-native";
|
|
3
|
-
import type { DeepPartial } from "../../types";
|
|
4
|
-
import type { PopupPlacement, PopupProps } from "../popup";
|
|
5
|
-
export interface CascaderTokens {
|
|
6
|
-
defaults: {
|
|
7
|
-
placeholder: string;
|
|
8
|
-
title: React.ReactNode;
|
|
9
|
-
showHeader: boolean;
|
|
10
|
-
closeable: boolean;
|
|
11
|
-
swipeable: boolean;
|
|
12
|
-
poppable: boolean;
|
|
13
|
-
closeOnClickOverlay: boolean;
|
|
14
|
-
closeOnFinish: boolean;
|
|
15
|
-
popupPlacement: PopupPlacement;
|
|
16
|
-
popupRound: boolean;
|
|
17
|
-
loadingText: string;
|
|
18
|
-
};
|
|
19
|
-
layout: {
|
|
20
|
-
container: ViewStyle;
|
|
21
|
-
header: ViewStyle;
|
|
22
|
-
title: TextStyle;
|
|
23
|
-
closeButton: ViewStyle;
|
|
24
|
-
tabsWrapper: ViewStyle;
|
|
25
|
-
tabsContentStatic: ViewStyle;
|
|
26
|
-
tabsItem: ViewStyle;
|
|
27
|
-
tabsTitle: TextStyle;
|
|
28
|
-
tabTitleNode: TextStyle;
|
|
29
|
-
optionList: ViewStyle;
|
|
30
|
-
option: ViewStyle;
|
|
31
|
-
optionContent: ViewStyle;
|
|
32
|
-
optionText: TextStyle;
|
|
33
|
-
optionTextActive: TextStyle;
|
|
34
|
-
optionLabel: ViewStyle;
|
|
35
|
-
empty: TextStyle;
|
|
36
|
-
inlineChildren: ViewStyle;
|
|
37
|
-
};
|
|
38
|
-
colors: {
|
|
39
|
-
background: string;
|
|
40
|
-
headerText: string;
|
|
41
|
-
placeholder: string;
|
|
42
|
-
closeIcon: string;
|
|
43
|
-
closeIconActive: string;
|
|
44
|
-
tabText: string;
|
|
45
|
-
tabActive: string;
|
|
46
|
-
tabInactive: string;
|
|
47
|
-
optionText: string;
|
|
48
|
-
optionDisabled: string;
|
|
49
|
-
optionActiveBackground: string;
|
|
50
|
-
optionActiveText: string;
|
|
51
|
-
divider: string;
|
|
52
|
-
};
|
|
53
|
-
typography: {
|
|
54
|
-
titleSize: number;
|
|
55
|
-
titleWeight: TextStyle['fontWeight'];
|
|
56
|
-
tabsTitleSize: number;
|
|
57
|
-
tabTitlePlaceholderWeight: TextStyle['fontWeight'];
|
|
58
|
-
tabTitleWeight: TextStyle['fontWeight'];
|
|
59
|
-
optionTextSize: number;
|
|
60
|
-
optionTextActiveWeight: TextStyle['fontWeight'];
|
|
61
|
-
emptyTextSize: number;
|
|
62
|
-
};
|
|
63
|
-
sizing: {
|
|
64
|
-
indicatorHeight: number;
|
|
65
|
-
optionMinHeight: number;
|
|
66
|
-
optionListHeight: number;
|
|
67
|
-
headerHeight: number;
|
|
68
|
-
closeIconSize: number;
|
|
69
|
-
selectedIconSize: number;
|
|
70
|
-
};
|
|
71
|
-
radii: {
|
|
72
|
-
option: number;
|
|
73
|
-
};
|
|
74
|
-
spacing: {
|
|
75
|
-
headerPaddingHorizontal: number;
|
|
76
|
-
tabNavPaddingHorizontal: number;
|
|
77
|
-
tabNavPaddingVertical: number;
|
|
78
|
-
tabPaddingHorizontal: number;
|
|
79
|
-
optionPaddingVertical: number;
|
|
80
|
-
optionPaddingHorizontal: number;
|
|
81
|
-
optionListPaddingTop: number;
|
|
82
|
-
optionListPaddingBottom: number;
|
|
83
|
-
closeButtonMarginLeft: number;
|
|
84
|
-
optionLabelMarginRight: number;
|
|
85
|
-
emptyPaddingVertical: number;
|
|
86
|
-
inlineChildrenPaddingVertical: number;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
export type CascaderValue = string | number;
|
|
90
|
-
export interface CascaderOption extends Record<string, unknown> {
|
|
91
|
-
text?: React.ReactNode;
|
|
92
|
-
value?: CascaderValue;
|
|
93
|
-
disabled?: boolean;
|
|
94
|
-
color?: string;
|
|
95
|
-
children?: CascaderOption[];
|
|
96
|
-
loading?: boolean;
|
|
97
|
-
}
|
|
98
|
-
export interface CascaderFieldNames {
|
|
99
|
-
text?: string;
|
|
100
|
-
value?: string;
|
|
101
|
-
children?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface CascaderActions {
|
|
104
|
-
open: () => void;
|
|
105
|
-
close: () => void;
|
|
106
|
-
toggle: () => void;
|
|
107
|
-
}
|
|
108
|
-
export type CascaderRenderProps = (value: CascaderValue[], selectedRows: CascaderOption[], actions: CascaderActions) => React.ReactNode;
|
|
109
|
-
export interface CascaderProps extends Omit<ViewProps, 'children'> {
|
|
110
|
-
options?: CascaderOption[];
|
|
111
|
-
value?: CascaderValue[];
|
|
112
|
-
defaultValue?: CascaderValue[];
|
|
113
|
-
title?: React.ReactNode;
|
|
114
|
-
placeholder?: string;
|
|
115
|
-
activeColor?: string;
|
|
116
|
-
tokensOverride?: DeepPartial<CascaderTokens>;
|
|
117
|
-
fieldNames?: CascaderFieldNames;
|
|
118
|
-
swipeable?: boolean;
|
|
119
|
-
optionRender?: (params: {
|
|
120
|
-
option: CascaderOption;
|
|
121
|
-
selected: boolean;
|
|
122
|
-
}) => React.ReactNode;
|
|
123
|
-
showHeader?: boolean;
|
|
124
|
-
closeable?: boolean;
|
|
125
|
-
closeIcon?: React.ReactNode;
|
|
126
|
-
onClose?: () => void;
|
|
127
|
-
onChange?: (value: CascaderValue[], selectedRows: CascaderOption[]) => void;
|
|
128
|
-
onFinish?: (value: CascaderValue[], selectedRows: CascaderOption[]) => void;
|
|
129
|
-
onClickTab?: (tabIndex: number, title: string) => void;
|
|
130
|
-
onTabChange?: (tabIndex: number) => void;
|
|
131
|
-
poppable?: boolean;
|
|
132
|
-
visible?: boolean;
|
|
133
|
-
defaultVisible?: boolean;
|
|
134
|
-
onVisibleChange?: (visible: boolean) => void;
|
|
135
|
-
closeOnClickOverlay?: boolean;
|
|
136
|
-
closeOnFinish?: boolean;
|
|
137
|
-
popupPlacement?: PopupPlacement;
|
|
138
|
-
popupRound?: boolean;
|
|
139
|
-
popupProps?: Partial<PopupProps>;
|
|
140
|
-
loadingText?: string;
|
|
141
|
-
children?: React.ReactNode | CascaderRenderProps;
|
|
142
|
-
}
|
|
1
|
+
import type React from"react";import type{TextStyle,ViewProps,ViewStyle}from"react-native";import type{DeepPartial}from"../../types";import type{PopupPlacement,PopupProps}from"../popup";export interface CascaderTokens{defaults:{placeholder:string;title:React.ReactNode;showHeader:boolean;closeable:boolean;swipeable:boolean;poppable:boolean;closeOnClickOverlay:boolean;closeOnFinish:boolean;popupPlacement:PopupPlacement;popupRound:boolean;loadingText:string;};layout:{container:ViewStyle;header:ViewStyle;title:TextStyle;closeButton:ViewStyle;tabsWrapper:ViewStyle;tabsContentStatic:ViewStyle;tabsItem:ViewStyle;tabsTitle:TextStyle;tabTitleNode:TextStyle;optionList:ViewStyle;option:ViewStyle;optionContent:ViewStyle;optionText:TextStyle;optionTextActive:TextStyle;optionLabel:ViewStyle;empty:TextStyle;inlineChildren:ViewStyle;};colors:{background:string;headerText:string;placeholder:string;closeIcon:string;closeIconActive:string;tabText:string;tabActive:string;tabInactive:string;optionText:string;optionDisabled:string;optionActiveBackground:string;optionActiveText:string;divider:string;};typography:{titleSize:number;titleWeight:TextStyle['fontWeight'];tabsTitleSize:number;tabTitlePlaceholderWeight:TextStyle['fontWeight'];tabTitleWeight:TextStyle['fontWeight'];optionTextSize:number;optionTextActiveWeight:TextStyle['fontWeight'];emptyTextSize:number;};sizing:{indicatorHeight:number;optionMinHeight:number;optionListHeight:number;headerHeight:number;closeIconSize:number;selectedIconSize:number;};radii:{option:number;};spacing:{headerPaddingHorizontal:number;tabNavPaddingHorizontal:number;tabNavPaddingVertical:number;tabPaddingHorizontal:number;optionPaddingVertical:number;optionPaddingHorizontal:number;optionListPaddingTop:number;optionListPaddingBottom:number;closeButtonMarginLeft:number;optionLabelMarginRight:number;emptyPaddingVertical:number;inlineChildrenPaddingVertical:number;};}export type CascaderValue=string|number;export interface CascaderOption extends Record<string,unknown>{text?:React.ReactNode;value?:CascaderValue;disabled?:boolean;color?:string;children?:CascaderOption[];loading?:boolean;}export interface CascaderFieldNames{text?:string;value?:string;children?:string;}export interface CascaderActions{open:()=>void;close:()=>void;toggle:()=>void;}export type CascaderRenderProps=(value:CascaderValue[],selectedRows:CascaderOption[],actions:CascaderActions)=>React.ReactNode;export interface CascaderProps extends Omit<ViewProps,'children'>{options?:CascaderOption[];value?:CascaderValue[];defaultValue?:CascaderValue[];title?:React.ReactNode;placeholder?:string;activeColor?:string;tokensOverride?:DeepPartial<CascaderTokens>;fieldNames?:CascaderFieldNames;swipeable?:boolean;optionRender?:(params:{option:CascaderOption;selected:boolean;})=>React.ReactNode;showHeader?:boolean;closeable?:boolean;closeIcon?:React.ReactNode;onClose?:()=>void;onChange?:(value:CascaderValue[],selectedRows:CascaderOption[])=>void;onFinish?:(value:CascaderValue[],selectedRows:CascaderOption[])=>void;onClickTab?:(tabIndex:number,title:string)=>void;onTabChange?:(tabIndex:number)=>void;poppable?:boolean;visible?:boolean;defaultVisible?:boolean;onVisibleChange?:(visible:boolean)=>void;closeOnClickOverlay?:boolean;closeOnFinish?:boolean;popupPlacement?:PopupPlacement;popupRound?:boolean;popupProps?:Partial<PopupProps>;loadingText?:string;children?:React.ReactNode|CascaderRenderProps;}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
interface FieldKeys {
|
|
3
|
-
textKey: string;
|
|
4
|
-
valueKey: string;
|
|
5
|
-
childrenKey: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const useCascaderExtend: (options: CascaderOption[] | undefined, keys: FieldKeys, value: CascaderValue[]) => {
|
|
8
|
-
tabs: CascaderOption[][];
|
|
9
|
-
items: (CascaderOption | undefined)[];
|
|
10
|
-
depth: number;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
1
|
+
import type{CascaderOption,CascaderValue}from'./types';interface FieldKeys{textKey:string;valueKey:string;childrenKey:string;}export declare const useCascaderExtend:(options:CascaderOption[]|undefined,keys:FieldKeys,value:CascaderValue[])=>{tabs:CascaderOption[][];items:(CascaderOption|undefined)[];depth:number;};export{};
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { CellProps } from './types';
|
|
4
|
-
export declare const Cell: React.NamedExoticComponent<CellProps & React.RefAttributes<View>>;
|
|
1
|
+
import React from'react';import{View}from'react-native';import type{CellProps}from'./types';export declare const Cell:React.NamedExoticComponent<CellProps&React.RefAttributes<View>>;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
export interface CellGroupContextValue {
|
|
3
|
-
border: boolean;
|
|
4
|
-
inset: boolean;
|
|
5
|
-
isLast: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const CellGroupContext: React.Context<CellGroupContextValue>;
|
|
1
|
+
import React from'react';export interface CellGroupContextValue{border:boolean;inset:boolean;isLast:boolean;}export declare const CellGroupContext:React.Context<CellGroupContextValue>;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { CellGroupProps } from './types';
|
|
3
|
-
export declare const CellGroup: React.NamedExoticComponent<CellGroupProps>;
|
|
1
|
+
import React from'react';import type{CellGroupProps}from'./types';export declare const CellGroup:React.NamedExoticComponent<CellGroupProps>;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import { CellGroup }
|
|
2
|
-
declare const Cell: import("react").NamedExoticComponent<import("./types").CellProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
3
|
-
Group: import("react").NamedExoticComponent<import("./types").CellGroupProps>;
|
|
4
|
-
};
|
|
5
|
-
export default Cell;
|
|
6
|
-
export { Cell };
|
|
7
|
-
export { CellGroup };
|
|
8
|
-
export type { CellProps, CellGroupProps, CellArrowDirection, CellSize } from './types';
|
|
1
|
+
import{CellGroup}from'./CellGroup';declare const Cell:import("react").NamedExoticComponent<import("./types").CellProps&import("react").RefAttributes<import("react-native").View>>&{Group:import("react").NamedExoticComponent<import("./types").CellGroupProps>;};export default Cell;export{Cell};export{CellGroup};export type{CellProps,CellGroupProps,CellArrowDirection,CellSize}from'./types';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { CellTokens } from './types';
|
|
3
|
-
export declare const createCellTokens: (foundations: Foundations) => CellTokens;
|
|
4
|
-
export declare const useCellTokens: (overrides?: import("../..").DeepPartial<CellTokens> | undefined) => CellTokens;
|
|
1
|
+
import type{Foundations}from'../../design-system/tokens';import type{CellTokens}from'./types';export declare const createCellTokens:(foundations:Foundations)=>CellTokens;export declare const useCellTokens:(overrides?:import("../..").DeepPartial<CellTokens>|undefined)=>CellTokens;
|
|
@@ -1,112 +1 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
export type CellArrowDirection = 'left' | 'right' | 'up' | 'down';
|
|
5
|
-
export type CellSize = 'normal' | 'large';
|
|
6
|
-
export interface CellTokens {
|
|
7
|
-
defaults: {
|
|
8
|
-
border: boolean;
|
|
9
|
-
size: CellSize;
|
|
10
|
-
arrowDirection: CellArrowDirection;
|
|
11
|
-
activeOpacity: number;
|
|
12
|
-
groupBorder: boolean;
|
|
13
|
-
groupInset: boolean;
|
|
14
|
-
groupCard: boolean;
|
|
15
|
-
};
|
|
16
|
-
layout: {
|
|
17
|
-
container: ViewStyle;
|
|
18
|
-
containerLarge: ViewStyle;
|
|
19
|
-
center: ViewStyle;
|
|
20
|
-
body: ViewStyle;
|
|
21
|
-
titleRow: ViewStyle;
|
|
22
|
-
value: TextStyle;
|
|
23
|
-
valueOnly: TextStyle;
|
|
24
|
-
valueContainer: ViewStyle;
|
|
25
|
-
valueOnlyContainer: ViewStyle;
|
|
26
|
-
valueCenter: ViewStyle;
|
|
27
|
-
customContent: ViewStyle;
|
|
28
|
-
iconWrapper: ViewStyle;
|
|
29
|
-
rightIconWrapper: ViewStyle;
|
|
30
|
-
hairline: ViewStyle;
|
|
31
|
-
groupCardShadow: ViewStyle;
|
|
32
|
-
arrowTransforms: Record<CellArrowDirection, ViewStyle>;
|
|
33
|
-
};
|
|
34
|
-
colors: {
|
|
35
|
-
background: string;
|
|
36
|
-
ripple: string;
|
|
37
|
-
title: string;
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
required: string;
|
|
41
|
-
border: string;
|
|
42
|
-
arrow: string;
|
|
43
|
-
groupTitle: string;
|
|
44
|
-
groupBodyBackground: string;
|
|
45
|
-
};
|
|
46
|
-
typography: {
|
|
47
|
-
titleSize: number;
|
|
48
|
-
lineHeight: number;
|
|
49
|
-
titleWeight: TextStyle['fontWeight'];
|
|
50
|
-
largeTitleSize: number;
|
|
51
|
-
labelSize: number;
|
|
52
|
-
largeLabelSize: number;
|
|
53
|
-
valueSize: number;
|
|
54
|
-
largeValueSize: number;
|
|
55
|
-
groupTitleSize: number;
|
|
56
|
-
};
|
|
57
|
-
sizing: {
|
|
58
|
-
paddingVertical: number;
|
|
59
|
-
paddingHorizontal: number;
|
|
60
|
-
largePaddingVertical: number;
|
|
61
|
-
arrowSize: number;
|
|
62
|
-
iconSize: number;
|
|
63
|
-
groupMarginBottom: number;
|
|
64
|
-
groupTitlePaddingHorizontal: number;
|
|
65
|
-
groupTitlePaddingVertical: number;
|
|
66
|
-
groupInsetMarginHorizontal: number;
|
|
67
|
-
};
|
|
68
|
-
radii: {
|
|
69
|
-
groupInset: number;
|
|
70
|
-
};
|
|
71
|
-
borders: {
|
|
72
|
-
width: number;
|
|
73
|
-
};
|
|
74
|
-
spacing: {
|
|
75
|
-
iconGap: number;
|
|
76
|
-
valueGap: number;
|
|
77
|
-
extraGap: number;
|
|
78
|
-
labelMarginTop: number;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
export interface CellProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
82
|
-
title?: React.ReactNode;
|
|
83
|
-
value?: React.ReactNode;
|
|
84
|
-
label?: React.ReactNode;
|
|
85
|
-
extra?: React.ReactNode;
|
|
86
|
-
icon?: React.ReactNode;
|
|
87
|
-
rightIcon?: React.ReactNode;
|
|
88
|
-
border?: boolean;
|
|
89
|
-
clickable?: boolean;
|
|
90
|
-
isLink?: boolean;
|
|
91
|
-
required?: boolean;
|
|
92
|
-
center?: boolean;
|
|
93
|
-
size?: CellSize;
|
|
94
|
-
arrowDirection?: CellArrowDirection;
|
|
95
|
-
tokensOverride?: DeepPartial<CellTokens>;
|
|
96
|
-
children?: React.ReactNode;
|
|
97
|
-
titleStyle?: StyleProp<TextStyle>;
|
|
98
|
-
valueStyle?: StyleProp<TextStyle>;
|
|
99
|
-
labelStyle?: StyleProp<TextStyle>;
|
|
100
|
-
contentStyle?: StyleProp<ViewStyle>;
|
|
101
|
-
style?: StyleProp<ViewStyle>;
|
|
102
|
-
}
|
|
103
|
-
export interface CellGroupProps {
|
|
104
|
-
children?: React.ReactNode;
|
|
105
|
-
title?: React.ReactNode;
|
|
106
|
-
border?: boolean;
|
|
107
|
-
inset?: boolean;
|
|
108
|
-
card?: boolean;
|
|
109
|
-
style?: StyleProp<ViewStyle>;
|
|
110
|
-
bodyStyle?: StyleProp<ViewStyle>;
|
|
111
|
-
tokensOverride?: DeepPartial<CellTokens>;
|
|
112
|
-
}
|
|
1
|
+
import type React from'react';import type{PressableProps,StyleProp,TextStyle,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type CellArrowDirection='left'|'right'|'up'|'down';export type CellSize='normal'|'large';export interface CellTokens{defaults:{border:boolean;size:CellSize;arrowDirection:CellArrowDirection;activeOpacity:number;groupBorder:boolean;groupInset:boolean;groupCard:boolean;};layout:{container:ViewStyle;containerLarge:ViewStyle;center:ViewStyle;body:ViewStyle;titleRow:ViewStyle;value:TextStyle;valueOnly:TextStyle;valueContainer:ViewStyle;valueOnlyContainer:ViewStyle;valueCenter:ViewStyle;customContent:ViewStyle;iconWrapper:ViewStyle;rightIconWrapper:ViewStyle;hairline:ViewStyle;groupCardShadow:ViewStyle;arrowTransforms:Record<CellArrowDirection,ViewStyle>;};colors:{background:string;ripple:string;title:string;label:string;value:string;required:string;border:string;arrow:string;groupTitle:string;groupBodyBackground:string;};typography:{titleSize:number;lineHeight:number;titleWeight:TextStyle['fontWeight'];largeTitleSize:number;labelSize:number;largeLabelSize:number;valueSize:number;largeValueSize:number;groupTitleSize:number;};sizing:{paddingVertical:number;paddingHorizontal:number;largePaddingVertical:number;arrowSize:number;iconSize:number;groupMarginBottom:number;groupTitlePaddingHorizontal:number;groupTitlePaddingVertical:number;groupInsetMarginHorizontal:number;};radii:{groupInset:number;};borders:{width:number;};spacing:{iconGap:number;valueGap:number;extraGap:number;labelMarginTop:number;};}export interface CellProps extends Omit<PressableProps,'style'|'children'>{title?:React.ReactNode;value?:React.ReactNode;label?:React.ReactNode;extra?:React.ReactNode;icon?:React.ReactNode;rightIcon?:React.ReactNode;border?:boolean;clickable?:boolean;isLink?:boolean;required?:boolean;center?:boolean;size?:CellSize;arrowDirection?:CellArrowDirection;tokensOverride?:DeepPartial<CellTokens>;children?:React.ReactNode;titleStyle?:StyleProp<TextStyle>;valueStyle?:StyleProp<TextStyle>;labelStyle?:StyleProp<TextStyle>;contentStyle?:StyleProp<ViewStyle>;style?:StyleProp<ViewStyle>;}export interface CellGroupProps{children?:React.ReactNode;title?:React.ReactNode;border?:boolean;inset?:boolean;card?:boolean;style?:StyleProp<ViewStyle>;bodyStyle?:StyleProp<ViewStyle>;tokensOverride?:DeepPartial<CellTokens>;}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { CheckboxProps } from './types';
|
|
4
|
-
export declare const Checkbox: React.NamedExoticComponent<CheckboxProps & React.RefAttributes<View>>;
|
|
5
|
-
export default Checkbox;
|
|
1
|
+
import React from'react';import{View}from'react-native';import type{CheckboxProps}from'./types';export declare const Checkbox:React.NamedExoticComponent<CheckboxProps&React.RefAttributes<View>>;export default Checkbox;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export { CheckboxGroupContext } from './CheckboxGroup';
|
|
1
|
+
export type{CheckboxGroupContextValue}from'./CheckboxGroup';export{CheckboxGroupContext}from'./CheckboxGroup';
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type CheckboxGroupState } from '@react-stately/checkbox';
|
|
3
|
-
import type { CheckboxGroupDirection, CheckboxGroupProps, CheckboxIconRender, CheckboxShape, CheckboxValue } from './types';
|
|
4
|
-
export interface CheckboxGroupContextValue {
|
|
5
|
-
state: CheckboxGroupState;
|
|
6
|
-
direction: CheckboxGroupDirection;
|
|
7
|
-
shape?: CheckboxShape;
|
|
8
|
-
iconSize?: number;
|
|
9
|
-
iconRender?: CheckboxIconRender;
|
|
10
|
-
checkedColor?: string;
|
|
11
|
-
labelDisabled?: boolean;
|
|
12
|
-
max?: number;
|
|
13
|
-
registerValue: (key: string, raw: CheckboxValue, disabled?: boolean) => void;
|
|
14
|
-
unregisterValue: (key: string) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const CheckboxGroupContext: React.Context<CheckboxGroupContextValue | null>;
|
|
17
|
-
export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<{
|
|
18
|
-
toggleAll: (options?: boolean | {
|
|
19
|
-
checked?: boolean;
|
|
20
|
-
skipDisabled?: boolean;
|
|
21
|
-
}) => void;
|
|
22
|
-
}>>;
|
|
1
|
+
import React from'react';import{type CheckboxGroupState}from'@react-stately/checkbox';import type{CheckboxGroupDirection,CheckboxGroupProps,CheckboxIconRender,CheckboxShape,CheckboxValue}from'./types';export interface CheckboxGroupContextValue{state:CheckboxGroupState;direction:CheckboxGroupDirection;shape?:CheckboxShape;iconSize?:number;iconRender?:CheckboxIconRender;checkedColor?:string;labelDisabled?:boolean;max?:number;registerValue:(key:string,raw:CheckboxValue,disabled?:boolean)=>void;unregisterValue:(key:string)=>void;}export declare const CheckboxGroupContext:React.Context<CheckboxGroupContextValue|null>;export declare const CheckboxGroup:React.ForwardRefExoticComponent<CheckboxGroupProps&React.RefAttributes<{toggleAll:(options?:boolean|{checked?:boolean;skipDisabled?:boolean;})=>void;}>>;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CheckboxGroup } from './CheckboxGroup';
|
|
3
|
-
declare const Checkbox: typeof CheckboxBase & {
|
|
4
|
-
Group: typeof CheckboxGroup;
|
|
5
|
-
};
|
|
6
|
-
export { Checkbox, CheckboxGroup };
|
|
7
|
-
export type { CheckboxProps, CheckboxGroupProps, CheckboxValue } from './types';
|
|
1
|
+
import{Checkbox as CheckboxBase}from'./Checkbox';import{CheckboxGroup}from'./CheckboxGroup';declare const Checkbox:typeof CheckboxBase&{Group:typeof CheckboxGroup;};export{Checkbox,CheckboxGroup};export type{CheckboxProps,CheckboxGroupProps,CheckboxValue}from'./types';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const useCheckboxTokens: (overrides?: import("../..").DeepPartial<CheckboxTokens> | undefined) => CheckboxTokens;
|
|
1
|
+
import type{CheckboxTokens}from'./types';export declare const useCheckboxTokens:(overrides?:import("../..").DeepPartial<CheckboxTokens>|undefined)=>CheckboxTokens;
|
|
@@ -1,99 +1 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { GestureResponderEvent, PressableProps, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
export type CheckboxShape = 'round' | 'square';
|
|
5
|
-
export type CheckboxLabelPosition = 'left' | 'right';
|
|
6
|
-
export type CheckboxGroupDirection = 'horizontal' | 'vertical';
|
|
7
|
-
export type CheckboxValue = string | number;
|
|
8
|
-
export type CheckboxIconRender = (params: {
|
|
9
|
-
checked: boolean;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
}) => React.ReactNode;
|
|
12
|
-
export interface CheckboxTokens {
|
|
13
|
-
defaults: {
|
|
14
|
-
shape: CheckboxShape;
|
|
15
|
-
iconSize: number;
|
|
16
|
-
labelPosition: CheckboxLabelPosition;
|
|
17
|
-
labelDisabled: boolean;
|
|
18
|
-
bindGroup: boolean;
|
|
19
|
-
groupDisabled: boolean;
|
|
20
|
-
groupDirection: CheckboxGroupDirection;
|
|
21
|
-
};
|
|
22
|
-
layout: {
|
|
23
|
-
container: ViewStyle;
|
|
24
|
-
iconWrapper: ViewStyle;
|
|
25
|
-
icon: ViewStyle;
|
|
26
|
-
checkmark: TextStyle;
|
|
27
|
-
label: TextStyle;
|
|
28
|
-
labelWrapper: ViewStyle;
|
|
29
|
-
groupHorizontal: ViewStyle;
|
|
30
|
-
groupVertical: ViewStyle;
|
|
31
|
-
groupItem: ViewStyle;
|
|
32
|
-
};
|
|
33
|
-
colors: {
|
|
34
|
-
border: string;
|
|
35
|
-
background: string;
|
|
36
|
-
checkedBackground: string;
|
|
37
|
-
disabledBorder: string;
|
|
38
|
-
disabledBackground: string;
|
|
39
|
-
checkmark: string;
|
|
40
|
-
label: string;
|
|
41
|
-
labelDisabled: string;
|
|
42
|
-
};
|
|
43
|
-
typography: {
|
|
44
|
-
fontSize: number;
|
|
45
|
-
fontFamily: string;
|
|
46
|
-
fontWeight: TextStyle['fontWeight'];
|
|
47
|
-
lineHeightMultiplier: number;
|
|
48
|
-
};
|
|
49
|
-
spacing: {
|
|
50
|
-
gap: number;
|
|
51
|
-
groupGap: number;
|
|
52
|
-
};
|
|
53
|
-
radii: {
|
|
54
|
-
square: number;
|
|
55
|
-
};
|
|
56
|
-
borders: {
|
|
57
|
-
width: number;
|
|
58
|
-
};
|
|
59
|
-
icon: {
|
|
60
|
-
scale: number;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export interface CheckboxProps extends Omit<PressableProps, 'onPress'> {
|
|
64
|
-
name?: CheckboxValue;
|
|
65
|
-
value?: CheckboxValue;
|
|
66
|
-
shape?: CheckboxShape;
|
|
67
|
-
iconSize?: number;
|
|
68
|
-
iconRender?: CheckboxIconRender;
|
|
69
|
-
checkedColor?: string;
|
|
70
|
-
labelPosition?: CheckboxLabelPosition;
|
|
71
|
-
labelDisabled?: boolean;
|
|
72
|
-
disabled?: boolean;
|
|
73
|
-
checked?: boolean;
|
|
74
|
-
defaultChecked?: boolean;
|
|
75
|
-
style?: StyleProp<ViewStyle>;
|
|
76
|
-
labelStyle?: StyleProp<TextStyle>;
|
|
77
|
-
tokensOverride?: DeepPartial<CheckboxTokens>;
|
|
78
|
-
children?: React.ReactNode;
|
|
79
|
-
bindGroup?: boolean;
|
|
80
|
-
onClick?: (event: GestureResponderEvent) => void;
|
|
81
|
-
onChange?: (checked: boolean) => void;
|
|
82
|
-
'aria-label'?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface CheckboxGroupProps extends ViewProps {
|
|
85
|
-
value?: CheckboxValue[];
|
|
86
|
-
defaultValue?: CheckboxValue[];
|
|
87
|
-
disabled?: boolean;
|
|
88
|
-
max?: number;
|
|
89
|
-
direction?: CheckboxGroupDirection;
|
|
90
|
-
shape?: CheckboxShape;
|
|
91
|
-
iconSize?: number;
|
|
92
|
-
iconRender?: CheckboxIconRender;
|
|
93
|
-
checkedColor?: string;
|
|
94
|
-
labelDisabled?: boolean;
|
|
95
|
-
gap?: number;
|
|
96
|
-
tokensOverride?: DeepPartial<CheckboxTokens>;
|
|
97
|
-
onChange?: (value: CheckboxValue[]) => void;
|
|
98
|
-
children?: React.ReactNode;
|
|
99
|
-
}
|
|
1
|
+
import type React from'react';import type{GestureResponderEvent,PressableProps,StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type CheckboxShape='round'|'square';export type CheckboxLabelPosition='left'|'right';export type CheckboxGroupDirection='horizontal'|'vertical';export type CheckboxValue=string|number;export type CheckboxIconRender=(params:{checked:boolean;disabled:boolean;})=>React.ReactNode;export interface CheckboxTokens{defaults:{shape:CheckboxShape;iconSize:number;labelPosition:CheckboxLabelPosition;labelDisabled:boolean;bindGroup:boolean;groupDisabled:boolean;groupDirection:CheckboxGroupDirection;};layout:{container:ViewStyle;iconWrapper:ViewStyle;icon:ViewStyle;checkmark:TextStyle;label:TextStyle;labelWrapper:ViewStyle;groupHorizontal:ViewStyle;groupVertical:ViewStyle;groupItem:ViewStyle;};colors:{border:string;background:string;checkedBackground:string;disabledBorder:string;disabledBackground:string;checkmark:string;label:string;labelDisabled:string;};typography:{fontSize:number;fontFamily:string;fontWeight:TextStyle['fontWeight'];lineHeightMultiplier:number;};spacing:{gap:number;groupGap:number;};radii:{square:number;};borders:{width:number;};icon:{scale:number;};}export interface CheckboxProps extends Omit<PressableProps,'onPress'>{name?:CheckboxValue;value?:CheckboxValue;shape?:CheckboxShape;iconSize?:number;iconRender?:CheckboxIconRender;checkedColor?:string;labelPosition?:CheckboxLabelPosition;labelDisabled?:boolean;disabled?:boolean;checked?:boolean;defaultChecked?:boolean;style?:StyleProp<ViewStyle>;labelStyle?:StyleProp<TextStyle>;tokensOverride?:DeepPartial<CheckboxTokens>;children?:React.ReactNode;bindGroup?:boolean;onClick?:(event:GestureResponderEvent)=>void;onChange?:(checked:boolean)=>void;'aria-label'?:string;}export interface CheckboxGroupProps extends ViewProps{value?:CheckboxValue[];defaultValue?:CheckboxValue[];disabled?:boolean;max?:number;direction?:CheckboxGroupDirection;shape?:CheckboxShape;iconSize?:number;iconRender?:CheckboxIconRender;checkedColor?:string;labelDisabled?:boolean;gap?:number;tokensOverride?:DeepPartial<CheckboxTokens>;onChange?:(value:CheckboxValue[])=>void;children?:React.ReactNode;}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { CircleProps } from './types';
|
|
3
|
-
export declare const Circle: React.NamedExoticComponent<CircleProps>;
|
|
4
|
-
export type { CircleLineCap, CircleProps, CircleStartPosition, CircleTokens } from './types';
|
|
5
|
-
export default Circle;
|
|
1
|
+
import React from'react';import type{CircleProps}from'./types';export declare const Circle:React.NamedExoticComponent<CircleProps>;export type{CircleLineCap,CircleProps,CircleStartPosition,CircleTokens}from'./types';export default Circle;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { CircleTokens } from './types';
|
|
3
|
-
export declare const createCircleTokens: (foundations: Foundations) => CircleTokens;
|
|
4
|
-
export declare const useCircleTokens: (overrides?: import("../..").DeepPartial<CircleTokens> | undefined) => CircleTokens;
|
|
1
|
+
import type{Foundations}from'../../design-system/tokens';import type{CircleTokens}from'./types';export declare const createCircleTokens:(foundations:Foundations)=>CircleTokens;export declare const useCircleTokens:(overrides?:import("../..").DeepPartial<CircleTokens>|undefined)=>CircleTokens;
|