@knitui/dates 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/DatesProvider/DatesProvider.js +33 -4
- package/lib/commonjs/DatesProvider/DatesProvider.js.map +1 -1
- package/lib/commonjs/Day/Day.js +45 -7
- package/lib/commonjs/Day/Day.js.map +1 -1
- package/lib/commonjs/Month/Month.js +266 -80
- package/lib/commonjs/Month/Month.js.map +1 -1
- package/lib/commonjs/MonthLevel/MonthLevel.js +19 -3
- package/lib/commonjs/MonthLevel/MonthLevel.js.map +1 -1
- package/lib/commonjs/MonthsList/MonthsList.js +160 -60
- package/lib/commonjs/MonthsList/MonthsList.js.map +1 -1
- package/lib/commonjs/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js +7 -1
- package/lib/commonjs/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js.map +1 -1
- package/lib/commonjs/TimeControlsList/TimeControl.js +15 -1
- package/lib/commonjs/TimeControlsList/TimeControl.js.map +1 -1
- package/lib/commonjs/TimeControlsList/TimeControlsList.js +16 -3
- package/lib/commonjs/TimeControlsList/TimeControlsList.js.map +1 -1
- package/lib/commonjs/WeekdaysRow/WeekdaysRow.js +23 -4
- package/lib/commonjs/WeekdaysRow/WeekdaysRow.js.map +1 -1
- package/lib/commonjs/YearsList/YearsList.js +155 -60
- package/lib/commonjs/YearsList/YearsList.js.map +1 -1
- package/lib/commonjs/YearsList/get-year-in-tab-order/get-year-in-tab-order.js +7 -1
- package/lib/commonjs/YearsList/get-year-in-tab-order/get-year-in-tab-order.js.map +1 -1
- package/lib/commonjs/hooks/use-dates-state/is-in-range/is-in-range.js +20 -0
- package/lib/commonjs/hooks/use-dates-state/is-in-range/is-in-range.js.map +1 -1
- package/lib/commonjs/hooks/use-dates-state/use-dates-state.js +25 -7
- package/lib/commonjs/hooks/use-dates-state/use-dates-state.js.map +1 -1
- package/lib/commonjs/internal/are-cell-props-equal.js +64 -0
- package/lib/commonjs/internal/are-cell-props-equal.js.map +1 -0
- package/lib/commonjs/internal/date-string-fast-path.js +98 -0
- package/lib/commonjs/internal/date-string-fast-path.js.map +1 -0
- package/lib/commonjs/internal/memoize-control-props.js +54 -0
- package/lib/commonjs/internal/memoize-control-props.js.map +1 -0
- package/lib/commonjs/internal/month-days-cache.js +71 -0
- package/lib/commonjs/internal/month-days-cache.js.map +1 -0
- package/lib/commonjs/utils/get-date-in-tab-order/get-date-in-tab-order.js +9 -1
- package/lib/commonjs/utils/get-date-in-tab-order/get-date-in-tab-order.js.map +1 -1
- package/lib/commonjs/utils/is-after-min-date/is-after-min-date.js +14 -1
- package/lib/commonjs/utils/is-after-min-date/is-after-min-date.js.map +1 -1
- package/lib/commonjs/utils/is-before-max-date/is-before-max-date.js +14 -1
- package/lib/commonjs/utils/is-before-max-date/is-before-max-date.js.map +1 -1
- package/lib/commonjs/utils/is-same-month/is-same-month.js +17 -1
- package/lib/commonjs/utils/is-same-month/is-same-month.js.map +1 -1
- package/lib/module/DatesProvider/DatesProvider.js +34 -5
- package/lib/module/DatesProvider/DatesProvider.js.map +1 -1
- package/lib/module/Day/Day.js +46 -8
- package/lib/module/Day/Day.js.map +1 -1
- package/lib/module/Month/Month.js +267 -82
- package/lib/module/Month/Month.js.map +1 -1
- package/lib/module/MonthLevel/MonthLevel.js +19 -3
- package/lib/module/MonthLevel/MonthLevel.js.map +1 -1
- package/lib/module/MonthsList/MonthsList.js +159 -60
- package/lib/module/MonthsList/MonthsList.js.map +1 -1
- package/lib/module/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js +7 -1
- package/lib/module/MonthsList/get-month-in-tab-order/get-month-in-tab-order.js.map +1 -1
- package/lib/module/TimeControlsList/TimeControl.js +15 -1
- package/lib/module/TimeControlsList/TimeControl.js.map +1 -1
- package/lib/module/TimeControlsList/TimeControlsList.js +16 -3
- package/lib/module/TimeControlsList/TimeControlsList.js.map +1 -1
- package/lib/module/WeekdaysRow/WeekdaysRow.js +23 -4
- package/lib/module/WeekdaysRow/WeekdaysRow.js.map +1 -1
- package/lib/module/YearsList/YearsList.js +154 -60
- package/lib/module/YearsList/YearsList.js.map +1 -1
- package/lib/module/YearsList/get-year-in-tab-order/get-year-in-tab-order.js +7 -1
- package/lib/module/YearsList/get-year-in-tab-order/get-year-in-tab-order.js.map +1 -1
- package/lib/module/hooks/use-dates-state/is-in-range/is-in-range.js +20 -0
- package/lib/module/hooks/use-dates-state/is-in-range/is-in-range.js.map +1 -1
- package/lib/module/hooks/use-dates-state/use-dates-state.js +25 -7
- package/lib/module/hooks/use-dates-state/use-dates-state.js.map +1 -1
- package/lib/module/internal/are-cell-props-equal.js +60 -0
- package/lib/module/internal/are-cell-props-equal.js.map +1 -0
- package/lib/module/internal/date-string-fast-path.js +91 -0
- package/lib/module/internal/date-string-fast-path.js.map +1 -0
- package/lib/module/internal/memoize-control-props.js +50 -0
- package/lib/module/internal/memoize-control-props.js.map +1 -0
- package/lib/module/internal/month-days-cache.js +68 -0
- package/lib/module/internal/month-days-cache.js.map +1 -0
- package/lib/module/utils/get-date-in-tab-order/get-date-in-tab-order.js +9 -1
- package/lib/module/utils/get-date-in-tab-order/get-date-in-tab-order.js.map +1 -1
- package/lib/module/utils/is-after-min-date/is-after-min-date.js +14 -1
- package/lib/module/utils/is-after-min-date/is-after-min-date.js.map +1 -1
- package/lib/module/utils/is-before-max-date/is-before-max-date.js +14 -1
- package/lib/module/utils/is-before-max-date/is-before-max-date.js.map +1 -1
- package/lib/module/utils/is-same-month/is-same-month.js +17 -1
- package/lib/module/utils/is-same-month/is-same-month.js.map +1 -1
- package/lib/typescript/Calendar/pick-calendar-props/pick-calendar-props.d.ts +1 -1
- package/lib/typescript/CalendarHeader/CalendarHeader.d.ts +14 -14
- package/lib/typescript/DatesProvider/DatesProvider.d.ts.map +1 -1
- package/lib/typescript/Day/Day.d.ts +31 -31
- package/lib/typescript/Day/Day.d.ts.map +1 -1
- package/lib/typescript/DecadeLevel/DecadeLevel.d.ts +7 -7
- package/lib/typescript/DecadeLevelGroup/DecadeLevelGroup.d.ts +7 -7
- package/lib/typescript/InlineDateTimePicker/InlineDateTimePicker.d.ts +4 -4
- package/lib/typescript/MiniCalendar/MiniCalendar.d.ts +18 -18
- package/lib/typescript/Month/Month.d.ts +9 -8
- package/lib/typescript/Month/Month.d.ts.map +1 -1
- package/lib/typescript/MonthLevel/MonthLevel.d.ts +10 -10
- package/lib/typescript/MonthLevel/MonthLevel.d.ts.map +1 -1
- package/lib/typescript/MonthLevelGroup/MonthLevelGroup.d.ts +10 -10
- package/lib/typescript/MonthsList/MonthsList.d.ts +3 -2
- package/lib/typescript/MonthsList/MonthsList.d.ts.map +1 -1
- package/lib/typescript/MonthsList/get-month-in-tab-order/get-month-in-tab-order.d.ts +6 -0
- package/lib/typescript/MonthsList/get-month-in-tab-order/get-month-in-tab-order.d.ts.map +1 -1
- package/lib/typescript/PickerControl/PickerControl.d.ts +10 -10
- package/lib/typescript/TimeControlsList/TimeControl.d.ts +13 -0
- package/lib/typescript/TimeControlsList/TimeControl.d.ts.map +1 -1
- package/lib/typescript/TimeControlsList/TimeControlsList.d.ts.map +1 -1
- package/lib/typescript/TimeGrid/TimeGrid.d.ts +7 -7
- package/lib/typescript/TimePicker/TimePicker.d.ts +4 -4
- package/lib/typescript/TimePresets/TimePresetGroup.d.ts +4 -4
- package/lib/typescript/TimePresets/TimePresets.d.ts +6 -4
- package/lib/typescript/TimePresets/TimePresets.d.ts.map +1 -1
- package/lib/typescript/WeekdaysRow/WeekdaysRow.d.ts +6 -6
- package/lib/typescript/WeekdaysRow/WeekdaysRow.d.ts.map +1 -1
- package/lib/typescript/YearLevel/YearLevel.d.ts +7 -7
- package/lib/typescript/YearLevelGroup/YearLevelGroup.d.ts +7 -7
- package/lib/typescript/YearsList/YearsList.d.ts +3 -2
- package/lib/typescript/YearsList/YearsList.d.ts.map +1 -1
- package/lib/typescript/YearsList/get-year-in-tab-order/get-year-in-tab-order.d.ts +6 -0
- package/lib/typescript/YearsList/get-year-in-tab-order/get-year-in-tab-order.d.ts.map +1 -1
- package/lib/typescript/_reference/ExampleControl.d.ts +8 -8
- package/lib/typescript/hooks/use-dates-state/is-in-range/is-in-range.d.ts +12 -0
- package/lib/typescript/hooks/use-dates-state/is-in-range/is-in-range.d.ts.map +1 -1
- package/lib/typescript/hooks/use-dates-state/use-dates-state.d.ts.map +1 -1
- package/lib/typescript/internal/are-cell-props-equal.d.ts +21 -0
- package/lib/typescript/internal/are-cell-props-equal.d.ts.map +1 -0
- package/lib/typescript/internal/date-string-fast-path.d.ts +35 -0
- package/lib/typescript/internal/date-string-fast-path.d.ts.map +1 -0
- package/lib/typescript/internal/memoize-control-props.d.ts +12 -0
- package/lib/typescript/internal/memoize-control-props.d.ts.map +1 -0
- package/lib/typescript/internal/month-days-cache.d.ts +19 -0
- package/lib/typescript/internal/month-days-cache.d.ts.map +1 -0
- package/lib/typescript/utils/get-date-in-tab-order/get-date-in-tab-order.d.ts +9 -1
- package/lib/typescript/utils/get-date-in-tab-order/get-date-in-tab-order.d.ts.map +1 -1
- package/lib/typescript/utils/is-after-min-date/is-after-min-date.d.ts +6 -0
- package/lib/typescript/utils/is-after-min-date/is-after-min-date.d.ts.map +1 -1
- package/lib/typescript/utils/is-before-max-date/is-before-max-date.d.ts +6 -0
- package/lib/typescript/utils/is-before-max-date/is-before-max-date.d.ts.map +1 -1
- package/lib/typescript/utils/is-same-month/is-same-month.d.ts +13 -1
- package/lib/typescript/utils/is-same-month/is-same-month.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/DatesProvider/DatesProvider.tsx +27 -5
- package/src/Day/Day.tsx +51 -10
- package/src/Month/Month.tsx +357 -80
- package/src/MonthLevel/MonthLevel.tsx +35 -16
- package/src/MonthsList/MonthsList.tsx +201 -55
- package/src/MonthsList/get-month-in-tab-order/get-month-in-tab-order.ts +12 -1
- package/src/TimeControlsList/TimeControl.tsx +16 -1
- package/src/TimeControlsList/TimeControlsList.tsx +15 -3
- package/src/WeekdaysRow/WeekdaysRow.tsx +29 -5
- package/src/YearsList/YearsList.tsx +196 -55
- package/src/YearsList/get-year-in-tab-order/get-year-in-tab-order.ts +12 -1
- package/src/hooks/use-dates-state/is-in-range/is-in-range.ts +22 -0
- package/src/hooks/use-dates-state/use-dates-state.ts +27 -11
- package/src/internal/are-cell-props-equal.ts +63 -0
- package/src/internal/date-string-fast-path.ts +94 -0
- package/src/internal/memoize-control-props.ts +54 -0
- package/src/internal/month-days-cache.ts +77 -0
- package/src/utils/get-date-in-tab-order/get-date-in-tab-order.ts +17 -2
- package/src/utils/is-after-min-date/is-after-min-date.ts +16 -1
- package/src/utils/is-before-max-date/is-before-max-date.ts +16 -1
- package/src/utils/is-same-month/is-same-month.ts +18 -1
|
@@ -93,31 +93,31 @@ export declare const DecadeLevel: React.ForwardRefExoticComponent<Omit<import("@
|
|
|
93
93
|
fullWidth?: boolean | undefined;
|
|
94
94
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
95
95
|
Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
96
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
97
96
|
disabled?: boolean | undefined;
|
|
98
97
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
98
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
99
99
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
100
100
|
Level: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
101
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
102
|
-
static?: boolean | undefined;
|
|
103
101
|
disabled?: boolean | undefined;
|
|
104
102
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
103
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
104
|
+
static?: boolean | undefined;
|
|
105
105
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
106
106
|
LevelLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
107
107
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
108
|
-
inline?: boolean | undefined;
|
|
109
|
-
inherit?: boolean | undefined;
|
|
110
108
|
span?: boolean | undefined;
|
|
109
|
+
inherit?: boolean | undefined;
|
|
111
110
|
lineClamp?: number | undefined;
|
|
112
111
|
truncate?: boolean | "end" | "start" | undefined;
|
|
112
|
+
inline?: boolean | undefined;
|
|
113
113
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
114
114
|
Icon: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
115
115
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
116
|
-
inline?: boolean | undefined;
|
|
117
|
-
inherit?: boolean | undefined;
|
|
118
116
|
span?: boolean | undefined;
|
|
117
|
+
inherit?: boolean | undefined;
|
|
119
118
|
lineClamp?: number | undefined;
|
|
120
119
|
truncate?: boolean | "end" | "start" | undefined;
|
|
120
|
+
inline?: boolean | undefined;
|
|
121
121
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
122
122
|
};
|
|
123
123
|
/** The year selection grid. */
|
|
@@ -93,31 +93,31 @@ export declare const DecadeLevelGroup: React.ForwardRefExoticComponent<DecadeLev
|
|
|
93
93
|
fullWidth?: boolean | undefined;
|
|
94
94
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
95
95
|
Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
96
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
97
96
|
disabled?: boolean | undefined;
|
|
98
97
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
98
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
99
99
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
100
100
|
Level: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
101
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
102
|
-
static?: boolean | undefined;
|
|
103
101
|
disabled?: boolean | undefined;
|
|
104
102
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
103
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
104
|
+
static?: boolean | undefined;
|
|
105
105
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
106
106
|
LevelLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
107
107
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
108
|
-
inline?: boolean | undefined;
|
|
109
|
-
inherit?: boolean | undefined;
|
|
110
108
|
span?: boolean | undefined;
|
|
109
|
+
inherit?: boolean | undefined;
|
|
111
110
|
lineClamp?: number | undefined;
|
|
112
111
|
truncate?: boolean | "end" | "start" | undefined;
|
|
112
|
+
inline?: boolean | undefined;
|
|
113
113
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
114
114
|
Icon: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
115
115
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
116
|
-
inline?: boolean | undefined;
|
|
117
|
-
inherit?: boolean | undefined;
|
|
118
116
|
span?: boolean | undefined;
|
|
117
|
+
inherit?: boolean | undefined;
|
|
119
118
|
lineClamp?: number | undefined;
|
|
120
119
|
truncate?: boolean | "end" | "start" | undefined;
|
|
120
|
+
inline?: boolean | undefined;
|
|
121
121
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
122
122
|
};
|
|
123
123
|
List: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -15,11 +15,11 @@ declare const InlineDateTimePickerTimeWrapper: import("@tamagui/web").TamaguiCom
|
|
|
15
15
|
/** Read-only summary of the selected range (range mode only). */
|
|
16
16
|
declare const InlineDateTimePickerRangeInfo: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
17
17
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
18
|
-
inline?: boolean | undefined;
|
|
19
|
-
inherit?: boolean | undefined;
|
|
20
18
|
span?: boolean | undefined;
|
|
21
19
|
lineClamp?: number | undefined;
|
|
20
|
+
inherit?: boolean | undefined;
|
|
22
21
|
truncate?: boolean | "end" | "start" | undefined;
|
|
22
|
+
inline?: boolean | undefined;
|
|
23
23
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
24
24
|
/**
|
|
25
25
|
* The named style slots and the part each targets.
|
|
@@ -96,11 +96,11 @@ export declare const InlineDateTimePicker: InlineDateTimePickerComponent & {
|
|
|
96
96
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
97
97
|
RangeInfo: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
98
98
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
99
|
-
inline?: boolean | undefined;
|
|
100
|
-
inherit?: boolean | undefined;
|
|
101
99
|
span?: boolean | undefined;
|
|
102
100
|
lineClamp?: number | undefined;
|
|
101
|
+
inherit?: boolean | undefined;
|
|
103
102
|
truncate?: boolean | "end" | "start" | undefined;
|
|
103
|
+
inline?: boolean | undefined;
|
|
104
104
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
105
105
|
};
|
|
106
106
|
export {};
|
|
@@ -9,9 +9,9 @@ declare const MiniCalendarFrame: import("@tamagui/web").TamaguiComponent<import(
|
|
|
9
9
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
10
10
|
/** Prev/next square control — chevron button. */
|
|
11
11
|
declare const MiniCalendarControl: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
12
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
13
12
|
disabled?: boolean | undefined;
|
|
14
13
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
14
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
15
15
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
16
16
|
/** The horizontal day strip wrapping the day buttons. */
|
|
17
17
|
declare const MiniCalendarDays: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -28,9 +28,9 @@ declare const MiniCalendarDays: import("@tamagui/web").TamaguiComponent<import("
|
|
|
28
28
|
* the compiler can never extract a hide value onto the cell.
|
|
29
29
|
*/
|
|
30
30
|
declare const MiniCalendarDay: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
31
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
32
31
|
disabled?: boolean | undefined;
|
|
33
32
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
33
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
34
34
|
selected?: boolean | undefined;
|
|
35
35
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
36
36
|
/**
|
|
@@ -49,22 +49,22 @@ declare const MiniCalendarDay: import("@tamagui/web").TamaguiComponent<import("@
|
|
|
49
49
|
*/
|
|
50
50
|
declare const MiniCalendarDayMonth: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
51
51
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
52
|
-
inline?: boolean | undefined;
|
|
53
|
-
inherit?: boolean | undefined;
|
|
54
52
|
span?: boolean | undefined;
|
|
53
|
+
selected?: boolean | undefined;
|
|
54
|
+
inherit?: boolean | undefined;
|
|
55
55
|
lineClamp?: number | undefined;
|
|
56
56
|
truncate?: boolean | "end" | "start" | undefined;
|
|
57
|
-
|
|
57
|
+
inline?: boolean | undefined;
|
|
58
58
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
59
59
|
/** The day-of-month number. */
|
|
60
60
|
declare const MiniCalendarDayNumber: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
61
61
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
62
|
-
inline?: boolean | undefined;
|
|
63
|
-
inherit?: boolean | undefined;
|
|
64
62
|
span?: boolean | undefined;
|
|
63
|
+
selected?: boolean | undefined;
|
|
64
|
+
inherit?: boolean | undefined;
|
|
65
65
|
lineClamp?: number | undefined;
|
|
66
66
|
truncate?: boolean | "end" | "start" | undefined;
|
|
67
|
-
|
|
67
|
+
inline?: boolean | undefined;
|
|
68
68
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
69
69
|
/** Props passed down to each day button — a precise partial of the day control. */
|
|
70
70
|
type MiniCalendarDayProps = Partial<GetProps<typeof UnstyledButton>>;
|
|
@@ -141,9 +141,9 @@ export declare const MiniCalendar: React.ForwardRefExoticComponent<Omit<import("
|
|
|
141
141
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
142
142
|
/** A prev/next square chevron control. */
|
|
143
143
|
Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
144
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
145
144
|
disabled?: boolean | undefined;
|
|
146
145
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
146
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
147
147
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
148
148
|
/** The horizontal day strip wrapper. */
|
|
149
149
|
Days: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -151,39 +151,39 @@ export declare const MiniCalendar: React.ForwardRefExoticComponent<Omit<import("
|
|
|
151
151
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
152
152
|
/** A single day button. */
|
|
153
153
|
Day: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
154
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
155
154
|
disabled?: boolean | undefined;
|
|
156
155
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
156
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
157
157
|
selected?: boolean | undefined;
|
|
158
158
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
159
159
|
/** The month label above a day's number. */
|
|
160
160
|
DayMonth: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
161
161
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
162
|
-
inline?: boolean | undefined;
|
|
163
|
-
inherit?: boolean | undefined;
|
|
164
162
|
span?: boolean | undefined;
|
|
163
|
+
selected?: boolean | undefined;
|
|
164
|
+
inherit?: boolean | undefined;
|
|
165
165
|
lineClamp?: number | undefined;
|
|
166
166
|
truncate?: boolean | "end" | "start" | undefined;
|
|
167
|
-
|
|
167
|
+
inline?: boolean | undefined;
|
|
168
168
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
169
169
|
/** The day-of-month number. */
|
|
170
170
|
DayNumber: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
171
171
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
172
|
-
inline?: boolean | undefined;
|
|
173
|
-
inherit?: boolean | undefined;
|
|
174
172
|
span?: boolean | undefined;
|
|
173
|
+
selected?: boolean | undefined;
|
|
174
|
+
inherit?: boolean | undefined;
|
|
175
175
|
lineClamp?: number | undefined;
|
|
176
176
|
truncate?: boolean | "end" | "start" | undefined;
|
|
177
|
-
|
|
177
|
+
inline?: boolean | undefined;
|
|
178
178
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
179
179
|
/** The default chevron glyph. */
|
|
180
180
|
Chevron: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
181
181
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
182
|
-
inline?: boolean | undefined;
|
|
183
|
-
inherit?: boolean | undefined;
|
|
184
182
|
span?: boolean | undefined;
|
|
183
|
+
inherit?: boolean | undefined;
|
|
185
184
|
lineClamp?: number | undefined;
|
|
186
185
|
truncate?: boolean | "end" | "start" | undefined;
|
|
186
|
+
inline?: boolean | undefined;
|
|
187
187
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
188
188
|
};
|
|
189
189
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { type GetProps, type SlotStyles } from "@knitui/core";
|
|
2
3
|
import { type CalendarSize } from "../cell-metrics";
|
|
3
4
|
import { type DayProps, type RenderDay } from "../Day";
|
|
@@ -27,17 +28,17 @@ declare const MonthCell: import("@tamagui/web").TamaguiComponent<import("@tamagu
|
|
|
27
28
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
28
29
|
/** The leading week-number cell (web `role="rowheader"`). */
|
|
29
30
|
declare const MonthWeekNumber: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
30
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
31
31
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
32
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
32
33
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
33
34
|
/** The week-number label — muted accent text (`$color11`). */
|
|
34
35
|
declare const MonthWeekNumberLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
35
36
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
36
|
-
inline?: boolean | undefined;
|
|
37
|
-
inherit?: boolean | undefined;
|
|
38
37
|
span?: boolean | undefined;
|
|
38
|
+
inherit?: boolean | undefined;
|
|
39
39
|
lineClamp?: number | undefined;
|
|
40
40
|
truncate?: boolean | "end" | "start" | undefined;
|
|
41
|
+
inline?: boolean | undefined;
|
|
41
42
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
42
43
|
type DayPressEvent = Parameters<NonNullable<DayProps["onPress"]>>[0];
|
|
43
44
|
type DayKeyboardEvent = Parameters<NonNullable<DayProps["onKeyDown"]>>[0];
|
|
@@ -123,10 +124,10 @@ export interface MonthProps extends MonthFrameProps, MonthSettings {
|
|
|
123
124
|
*/
|
|
124
125
|
styles?: SlotStyles<MonthStyles>;
|
|
125
126
|
}
|
|
126
|
-
export declare const Month:
|
|
127
|
+
export declare const Month: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
127
128
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
128
129
|
fullWidth?: boolean | undefined;
|
|
129
|
-
}>, keyof MonthProps> & MonthProps &
|
|
130
|
+
}>, keyof MonthProps> & MonthProps & React.RefAttributes<import("@tamagui/web").TamaguiElement>> & import("@tamagui/web").StaticComponentObject<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
130
131
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
131
132
|
fullWidth?: boolean | undefined;
|
|
132
133
|
}>, keyof MonthProps> & MonthProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & MonthProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -154,16 +155,16 @@ export declare const Month: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
154
155
|
fullWidth?: boolean | undefined;
|
|
155
156
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
156
157
|
WeekNumber: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
157
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
158
158
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
159
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
159
160
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
160
161
|
WeekNumberLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
161
162
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
162
|
-
inline?: boolean | undefined;
|
|
163
|
-
inherit?: boolean | undefined;
|
|
164
163
|
span?: boolean | undefined;
|
|
164
|
+
inherit?: boolean | undefined;
|
|
165
165
|
lineClamp?: number | undefined;
|
|
166
166
|
truncate?: boolean | "end" | "start" | undefined;
|
|
167
|
+
inline?: boolean | undefined;
|
|
167
168
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
168
169
|
};
|
|
169
170
|
export type { MonthSize };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Month.d.ts","sourceRoot":"","sources":["../../../src/Month/Month.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Month.d.ts","sourceRoot":"","sources":["../../../src/Month/Month.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,UAAU,EAGhB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,YAAY,EAAuC,MAAM,iBAAiB,CAAC;AAEzF,OAAO,EAAO,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAU5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACnG,OAAO,EACL,KAAK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AC;IAEpD,kDAAkD;IAClD,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB,sDAAsD;IACtD,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,oDAAoD;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;AAE5F,MAAM,WAAW,UAAW,SAAQ,eAAe,EAAE,aAAa;IAChE,0DAA0D;IAC1D,KAAK,EAAE,eAAe,CAAC;IAEvB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CAClC;AAsRD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC;AAEH,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -93,31 +93,31 @@ export declare const MonthLevel: React.ForwardRefExoticComponent<Omit<import("@t
|
|
|
93
93
|
fullWidth?: boolean | undefined;
|
|
94
94
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
95
95
|
Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
96
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
97
96
|
disabled?: boolean | undefined;
|
|
98
97
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
98
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
99
99
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
100
100
|
Level: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
101
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
102
|
-
static?: boolean | undefined;
|
|
103
101
|
disabled?: boolean | undefined;
|
|
104
102
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
103
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
104
|
+
static?: boolean | undefined;
|
|
105
105
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
106
106
|
LevelLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
107
107
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
108
|
-
inline?: boolean | undefined;
|
|
109
|
-
inherit?: boolean | undefined;
|
|
110
108
|
span?: boolean | undefined;
|
|
109
|
+
inherit?: boolean | undefined;
|
|
111
110
|
lineClamp?: number | undefined;
|
|
112
111
|
truncate?: boolean | "end" | "start" | undefined;
|
|
112
|
+
inline?: boolean | undefined;
|
|
113
113
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
114
114
|
Icon: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
115
115
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
116
|
-
inline?: boolean | undefined;
|
|
117
|
-
inherit?: boolean | undefined;
|
|
118
116
|
span?: boolean | undefined;
|
|
117
|
+
inherit?: boolean | undefined;
|
|
119
118
|
lineClamp?: number | undefined;
|
|
120
119
|
truncate?: boolean | "end" | "start" | undefined;
|
|
120
|
+
inline?: boolean | undefined;
|
|
121
121
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
122
122
|
};
|
|
123
123
|
/** The day selection grid. */
|
|
@@ -152,16 +152,16 @@ export declare const MonthLevel: React.ForwardRefExoticComponent<Omit<import("@t
|
|
|
152
152
|
fullWidth?: boolean | undefined;
|
|
153
153
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
154
154
|
WeekNumber: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
155
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
156
155
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
156
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
157
157
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
158
158
|
WeekNumberLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
159
159
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
160
|
-
inline?: boolean | undefined;
|
|
161
|
-
inherit?: boolean | undefined;
|
|
162
160
|
span?: boolean | undefined;
|
|
161
|
+
inherit?: boolean | undefined;
|
|
163
162
|
lineClamp?: number | undefined;
|
|
164
163
|
truncate?: boolean | "end" | "start" | undefined;
|
|
164
|
+
inline?: boolean | undefined;
|
|
165
165
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
166
166
|
};
|
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;;;;;;;;;;;;;;;;;;;;;;;;IAE/D,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE9B,CAAC"}
|
|
@@ -95,31 +95,31 @@ export declare const MonthLevelGroup: React.ForwardRefExoticComponent<MonthLevel
|
|
|
95
95
|
fullWidth?: boolean | undefined;
|
|
96
96
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
97
97
|
Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
98
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
99
98
|
disabled?: boolean | undefined;
|
|
100
99
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
100
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
101
101
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
102
102
|
Level: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
103
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
104
|
-
static?: boolean | undefined;
|
|
105
103
|
disabled?: boolean | undefined;
|
|
106
104
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
105
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
106
|
+
static?: boolean | undefined;
|
|
107
107
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
108
108
|
LevelLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
109
109
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
110
|
-
inline?: boolean | undefined;
|
|
111
|
-
inherit?: boolean | undefined;
|
|
112
110
|
span?: boolean | undefined;
|
|
111
|
+
inherit?: boolean | undefined;
|
|
113
112
|
lineClamp?: number | undefined;
|
|
114
113
|
truncate?: boolean | "end" | "start" | undefined;
|
|
114
|
+
inline?: boolean | undefined;
|
|
115
115
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
116
116
|
Icon: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
117
117
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
118
|
-
inline?: boolean | undefined;
|
|
119
|
-
inherit?: boolean | undefined;
|
|
120
118
|
span?: boolean | undefined;
|
|
119
|
+
inherit?: boolean | undefined;
|
|
121
120
|
lineClamp?: number | undefined;
|
|
122
121
|
truncate?: boolean | "end" | "start" | undefined;
|
|
122
|
+
inline?: boolean | undefined;
|
|
123
123
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
124
124
|
};
|
|
125
125
|
Month: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -153,16 +153,16 @@ export declare const MonthLevelGroup: React.ForwardRefExoticComponent<MonthLevel
|
|
|
153
153
|
fullWidth?: boolean | undefined;
|
|
154
154
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
155
155
|
WeekNumber: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
156
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
157
156
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
157
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
158
158
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
159
159
|
WeekNumberLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
160
160
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
161
|
-
inline?: boolean | undefined;
|
|
162
|
-
inherit?: boolean | undefined;
|
|
163
161
|
span?: boolean | undefined;
|
|
162
|
+
inherit?: boolean | undefined;
|
|
164
163
|
lineClamp?: number | undefined;
|
|
165
164
|
truncate?: boolean | "end" | "start" | undefined;
|
|
165
|
+
inline?: boolean | undefined;
|
|
166
166
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
167
167
|
};
|
|
168
168
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { type GetProps, type SlotStyles } from "@knitui/core";
|
|
2
3
|
import { type CalendarSize } from "../cell-metrics";
|
|
3
4
|
import { type PickerControlProps } from "../PickerControl";
|
|
@@ -61,10 +62,10 @@ export interface MonthsListProps extends MonthsListFrameProps, MonthsListSetting
|
|
|
61
62
|
*/
|
|
62
63
|
styles?: SlotStyles<MonthsListStyles>;
|
|
63
64
|
}
|
|
64
|
-
export declare const MonthsList:
|
|
65
|
+
export declare const MonthsList: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
65
66
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
66
67
|
fullWidth?: boolean | undefined;
|
|
67
|
-
}>, keyof MonthsListProps> & MonthsListProps &
|
|
68
|
+
}>, keyof MonthsListProps> & MonthsListProps & React.RefAttributes<import("@tamagui/web").TamaguiElement>> & import("@tamagui/web").StaticComponentObject<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
68
69
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
69
70
|
fullWidth?: boolean | undefined;
|
|
70
71
|
}>, keyof MonthsListProps> & MonthsListProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & MonthsListProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthsList.d.ts","sourceRoot":"","sources":["../../../src/MonthsList/MonthsList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MonthsList.d.ts","sourceRoot":"","sources":["../../../src/MonthsList/MonthsList.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,UAAU,EAGhB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,iBAAiB,CAAC;AAMlE,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAGV,qBAAqB,EACrB,eAAe,EAChB,MAAM,UAAU,CAAC;AAsBlB,uEAAuE;AACvE,QAAA,MAAM,eAAe;;;6CAgBnB,CAAC;AAEH,6CAA6C;AAC7C,QAAA,MAAM,aAAa;;;6CAiBjB,CAAC;AAEH;;;;;GAKG;AACH,QAAA,MAAM,cAAc;;;6CAYlB,CAAC;AA2IH,8DAA8D;AAC9D,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,IAAI,CAAC,EAAE,QAAQ,CAAC,OA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
|
7
|
+
/**
|
|
8
|
+
* Consulted TWICE per month below (once for `disabled`, once for `selected`),
|
|
9
|
+
* so callers should pass a getter wrapped in `memoizeByDate` — the same wrapper
|
|
10
|
+
* they use for their own cell loop, so the whole render resolves each month's
|
|
11
|
+
* props exactly once. See `internal/memoize-control-props.ts`.
|
|
12
|
+
*/
|
|
7
13
|
getMonthControlProps: ((month: DateStringValue) => Partial<PickerControlProps>) | undefined;
|
|
8
14
|
}
|
|
9
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-month-in-tab-order.d.ts","sourceRoot":"","sources":["../../../../src/MonthsList/get-month-in-tab-order/get-month-in-tab-order.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC;IAC5B,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,oBAAoB,EAAE,CAAC,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC,GAAG,SAAS,CAAC;CAC7F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,OAAO,EACP,oBAAoB,GACrB,EAAE,uBAAuB,GAAG,eAAe,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"get-month-in-tab-order.d.ts","sourceRoot":"","sources":["../../../../src/MonthsList/get-month-in-tab-order/get-month-in-tab-order.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC;IAC5B,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC;;;;;OAKG;IACH,oBAAoB,EAAE,CAAC,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC,GAAG,SAAS,CAAC;CAC7F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,OAAO,EACP,oBAAoB,GACrB,EAAE,uBAAuB,GAAG,eAAe,GAAG,SAAS,CA0BvD"}
|
|
@@ -20,9 +20,9 @@ type PickerControlSize = CalendarSize;
|
|
|
20
20
|
* disabled) is applied in the component by gating the boolean flags.
|
|
21
21
|
*/
|
|
22
22
|
declare const PickerControlFrame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
23
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
24
23
|
disabled?: boolean | undefined;
|
|
25
24
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
25
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
26
26
|
selected?: boolean | undefined;
|
|
27
27
|
fullWidth?: boolean | undefined;
|
|
28
28
|
inRange?: boolean | undefined;
|
|
@@ -49,27 +49,27 @@ export interface PickerControlProps extends Omit<PickerControlFrameProps, "size"
|
|
|
49
49
|
fullWidth?: boolean;
|
|
50
50
|
}
|
|
51
51
|
export declare const PickerControl: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
52
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
53
52
|
disabled?: boolean | undefined;
|
|
54
53
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
54
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
55
55
|
selected?: boolean | undefined;
|
|
56
56
|
fullWidth?: boolean | undefined;
|
|
57
57
|
inRange?: boolean | undefined;
|
|
58
58
|
firstInRange?: boolean | undefined;
|
|
59
59
|
lastInRange?: boolean | undefined;
|
|
60
60
|
}>, keyof PickerControlProps> & PickerControlProps & React.RefAttributes<import("@tamagui/web").TamaguiElement>> & import("@tamagui/web").StaticComponentObject<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
61
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
62
61
|
disabled?: boolean | undefined;
|
|
63
62
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
63
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
64
64
|
selected?: boolean | undefined;
|
|
65
65
|
fullWidth?: boolean | undefined;
|
|
66
66
|
inRange?: boolean | undefined;
|
|
67
67
|
firstInRange?: boolean | undefined;
|
|
68
68
|
lastInRange?: boolean | undefined;
|
|
69
69
|
}>, keyof PickerControlProps> & PickerControlProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PickerControlProps, import("@tamagui/web").StackStyleBase, {
|
|
70
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
71
70
|
disabled?: boolean | undefined;
|
|
72
71
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
72
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
73
73
|
selected?: boolean | undefined;
|
|
74
74
|
fullWidth?: boolean | undefined;
|
|
75
75
|
inRange?: boolean | undefined;
|
|
@@ -77,18 +77,18 @@ export declare const PickerControl: React.ForwardRefExoticComponent<Omit<import(
|
|
|
77
77
|
lastInRange?: boolean | undefined;
|
|
78
78
|
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
|
|
79
79
|
__tama: [Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
80
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
81
80
|
disabled?: boolean | undefined;
|
|
82
81
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
82
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
83
83
|
selected?: boolean | undefined;
|
|
84
84
|
fullWidth?: boolean | undefined;
|
|
85
85
|
inRange?: boolean | undefined;
|
|
86
86
|
firstInRange?: boolean | undefined;
|
|
87
87
|
lastInRange?: boolean | undefined;
|
|
88
88
|
}>, keyof PickerControlProps> & PickerControlProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PickerControlProps, import("@tamagui/web").StackStyleBase, {
|
|
89
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
90
89
|
disabled?: boolean | undefined;
|
|
91
90
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
91
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
92
92
|
selected?: boolean | undefined;
|
|
93
93
|
fullWidth?: boolean | undefined;
|
|
94
94
|
inRange?: boolean | undefined;
|
|
@@ -97,9 +97,9 @@ export declare const PickerControl: React.ForwardRefExoticComponent<Omit<import(
|
|
|
97
97
|
}, import("@tamagui/web").StaticConfigPublic];
|
|
98
98
|
} & {
|
|
99
99
|
Frame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
100
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
101
100
|
disabled?: boolean | undefined;
|
|
102
101
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
102
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
103
103
|
selected?: boolean | undefined;
|
|
104
104
|
fullWidth?: boolean | undefined;
|
|
105
105
|
inRange?: boolean | undefined;
|
|
@@ -108,12 +108,12 @@ export declare const PickerControl: React.ForwardRefExoticComponent<Omit<import(
|
|
|
108
108
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
109
109
|
Label: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
110
110
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
111
|
-
inline?: boolean | undefined;
|
|
112
|
-
inherit?: boolean | undefined;
|
|
113
111
|
span?: boolean | undefined;
|
|
112
|
+
selected?: boolean | undefined;
|
|
113
|
+
inherit?: boolean | undefined;
|
|
114
114
|
lineClamp?: number | undefined;
|
|
115
115
|
truncate?: boolean | "end" | "start" | undefined;
|
|
116
|
-
|
|
116
|
+
inline?: boolean | undefined;
|
|
117
117
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
118
118
|
};
|
|
119
119
|
export type { PickerControlSize };
|
|
@@ -24,6 +24,19 @@ export interface TimeControlProps<Value extends number | string> extends Omit<Ge
|
|
|
24
24
|
/** Label font size. @default 'sm' */
|
|
25
25
|
size?: CalendarSize;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* `React.memo` matters here more than anywhere else in the time picker: a `24h`
|
|
29
|
+
* dropdown with seconds renders 24 + 60 + 60 = 144 of these, and EVERY keystroke
|
|
30
|
+
* in the segment inputs updates `controller.values`, re-rendering `TimePicker` and
|
|
31
|
+
* with it all three columns. Only the two controls whose `active` flips actually
|
|
32
|
+
* need to re-render.
|
|
33
|
+
*
|
|
34
|
+
* All the props are primitives (`value`, `active`, `size`, `role`) except
|
|
35
|
+
* `onSelect`, which `TimeControlsList` stabilises with `useCallbackRef` — so the
|
|
36
|
+
* shallow compare is sound. The `ref` (which `memo` does not compare) is only ever
|
|
37
|
+
* attached to the ACTIVE control, and `active` is itself a compared prop, so a ref
|
|
38
|
+
* change never happens without a prop change to drive the re-render.
|
|
39
|
+
*/
|
|
27
40
|
export declare const TimeControl: <Value extends number | string>(props: TimeControlProps<Value> & React.RefAttributes<TamaguiElement>) => React.ReactElement | null;
|
|
28
41
|
export {};
|
|
29
42
|
//# sourceMappingURL=TimeControl.d.ts.map
|