@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeControl.d.ts","sourceRoot":"","sources":["../../../src/TimeControlsList/TimeControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAuB,KAAK,QAAQ,EAAU,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE/F,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,iBAAiB,CAAC;AAkB/D;;;;;;GAMG;AACH,QAAA,MAAM,gBAAgB;;;;6CAuBpB,CAAC;AAaH,uGAAuG;AACvG,MAAM,WAAW,gBAAgB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAC3E,QAAQ,CAAC,OAAO,gBAAgB,CAAC,EACjC,UAAU,GAAG,QAAQ,GAAG,SAAS,CAClC;IACC,0EAA0E;IAC1E,KAAK,EAAE,KAAK,CAAC;IAEb,iDAAiD;IACjD,MAAM,EAAE,OAAO,CAAC;IAEhB,oDAAoD;IACpD,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC,qCAAqC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAyCD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"TimeControl.d.ts","sourceRoot":"","sources":["../../../src/TimeControlsList/TimeControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAuB,KAAK,QAAQ,EAAU,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE/F,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,iBAAiB,CAAC;AAkB/D;;;;;;GAMG;AACH,QAAA,MAAM,gBAAgB;;;;6CAuBpB,CAAC;AAaH,uGAAuG;AACvG,MAAM,WAAW,gBAAgB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAC3E,QAAQ,CAAC,OAAO,gBAAgB,CAAC,EACjC,UAAU,GAAG,QAAQ,GAAG,SAAS,CAClC;IACC,0EAA0E;IAC1E,KAAK,EAAE,KAAK,CAAC;IAEb,iDAAiD;IACjD,MAAM,EAAE,OAAO,CAAC;IAEhB,oDAAoD;IACpD,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC,qCAAqC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAyCD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,EAAoD,CAC1E,KAAK,SAAS,MAAM,GAAG,MAAM,EAE7B,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,KACjE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeControlsList.d.ts","sourceRoot":"","sources":["../../../src/TimeControlsList/TimeControlsList.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAmB,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,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9B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,qCAAqC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB,gFAAgF;IAChF,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC,4FAA4F;IAC5F,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvE,yEAAyE;IACzE,MAAM,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,yBAAyB,CAAC,EACjC,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAA8B,EAC9B,IAAW,EACX,eAAe,EACf,eAAe,EACf,MAAM,GACP,EAAE,qBAAqB,qBAwFvB;kBApGQ,yBAAyB;;;AA6GlC,eAAO,MAAM,gBAAgB;;;;kBA3PyB,CAAC;;;kBAQhC,CAAC;;;kBAWmC,CAAC;;;kBAOvD,CAAC;;;;;;;CAqOJ,CAAC"}
|
|
@@ -14,12 +14,12 @@ declare const TimeGridFrame: import("@tamagui/web").TamaguiComponent<import("@ta
|
|
|
14
14
|
*/
|
|
15
15
|
declare const TimeGridControlLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
16
16
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
17
|
-
inline?: boolean | undefined;
|
|
18
|
-
inherit?: boolean | undefined;
|
|
19
17
|
span?: boolean | undefined;
|
|
18
|
+
selected?: boolean | undefined;
|
|
19
|
+
inherit?: boolean | undefined;
|
|
20
20
|
lineClamp?: number | undefined;
|
|
21
21
|
truncate?: boolean | "end" | "start" | undefined;
|
|
22
|
-
|
|
22
|
+
inline?: boolean | undefined;
|
|
23
23
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
24
24
|
/** Props passed to a single control via `getControlProps` / `styles.control`. */
|
|
25
25
|
type TimeGridControlPassthrough = Partial<GetProps<typeof UnstyledButton>>;
|
|
@@ -91,19 +91,19 @@ export declare const TimeGrid: React.ForwardRefExoticComponent<Omit<import("@tam
|
|
|
91
91
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
92
92
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
93
93
|
Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
94
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
95
94
|
disabled?: boolean | undefined;
|
|
96
95
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
96
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
97
97
|
selected?: boolean | undefined;
|
|
98
98
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
99
99
|
ControlLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
100
100
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
101
|
-
inline?: boolean | undefined;
|
|
102
|
-
inherit?: boolean | undefined;
|
|
103
101
|
span?: boolean | undefined;
|
|
102
|
+
selected?: boolean | undefined;
|
|
103
|
+
inherit?: boolean | undefined;
|
|
104
104
|
lineClamp?: number | undefined;
|
|
105
105
|
truncate?: boolean | "end" | "start" | undefined;
|
|
106
|
-
|
|
106
|
+
inline?: boolean | undefined;
|
|
107
107
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
108
108
|
};
|
|
109
109
|
export {};
|
|
@@ -14,11 +14,11 @@ export type TimePickerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
|
14
14
|
* rendered `variant="unstyled"` so only this frame draws a border.
|
|
15
15
|
*/
|
|
16
16
|
declare const TimePickerFieldFrame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
17
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
18
17
|
disabled?: boolean | undefined;
|
|
19
18
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
19
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
20
20
|
error?: boolean | undefined;
|
|
21
|
-
variant?: "
|
|
21
|
+
variant?: "unstyled" | "default" | "filled" | undefined;
|
|
22
22
|
focused?: boolean | undefined;
|
|
23
23
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
24
24
|
type TimePickerFieldFrameProps = GetProps<typeof TimePickerFieldFrame>;
|
|
@@ -194,11 +194,11 @@ export interface TimePickerProps extends Omit<TimePickerFieldFrameProps, "value"
|
|
|
194
194
|
}
|
|
195
195
|
export declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<TamaguiElement>> & {
|
|
196
196
|
Field: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
197
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
198
197
|
disabled?: boolean | undefined;
|
|
199
198
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
199
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
200
200
|
error?: boolean | undefined;
|
|
201
|
-
variant?: "
|
|
201
|
+
variant?: "unstyled" | "default" | "filled" | undefined;
|
|
202
202
|
focused?: boolean | undefined;
|
|
203
203
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
204
204
|
};
|
|
@@ -13,11 +13,11 @@ declare const TimePresetGroupFrame: import("@tamagui/web").TamaguiComponent<impo
|
|
|
13
13
|
/** The group's section label. */
|
|
14
14
|
declare const TimePresetGroupLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
15
15
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
16
|
-
inline?: boolean | undefined;
|
|
17
|
-
inherit?: boolean | undefined;
|
|
18
16
|
span?: boolean | undefined;
|
|
17
|
+
inherit?: boolean | undefined;
|
|
19
18
|
lineClamp?: number | undefined;
|
|
20
19
|
truncate?: boolean | "end" | "start" | undefined;
|
|
20
|
+
inline?: boolean | undefined;
|
|
21
21
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
22
22
|
/** The named style slots and the styled part each targets. */
|
|
23
23
|
export interface TimePresetGroupStyles {
|
|
@@ -82,11 +82,11 @@ export declare const TimePresetGroup: React.ForwardRefExoticComponent<Omit<impor
|
|
|
82
82
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
83
83
|
Label: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
84
84
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
85
|
-
inline?: boolean | undefined;
|
|
86
|
-
inherit?: boolean | undefined;
|
|
87
85
|
span?: boolean | undefined;
|
|
86
|
+
inherit?: boolean | undefined;
|
|
88
87
|
lineClamp?: number | undefined;
|
|
89
88
|
truncate?: boolean | "end" | "start" | undefined;
|
|
89
|
+
inline?: boolean | undefined;
|
|
90
90
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
91
91
|
Control: React.ForwardRefExoticComponent<TimePresetControlProps & React.RefAttributes<import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods)>> & {
|
|
92
92
|
Frame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -74,7 +74,7 @@ declare namespace TimePresetsComponent {
|
|
|
74
74
|
}
|
|
75
75
|
export declare const TimePresets: typeof TimePresetsComponent & {
|
|
76
76
|
Frame: import("react").ForwardRefExoticComponent<ScrollAreaProps & import("react").RefAttributes<import("@knitui/components").ScrollAreaHandle>> & {
|
|
77
|
-
Autosize:
|
|
77
|
+
Autosize: React.ForwardRefExoticComponent<import("@knitui/components").ScrollAreaAutosizeProps & React.RefAttributes<import("@knitui/components").ScrollAreaHandle>>;
|
|
78
78
|
Viewport: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
79
79
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
80
80
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
@@ -82,7 +82,9 @@ export declare const TimePresets: typeof TimePresetsComponent & {
|
|
|
82
82
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
83
83
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
84
84
|
Thumb: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
85
|
-
shadow
|
|
85
|
+
shadow
|
|
86
|
+
/** The grid wrapping a flat `string[]` of preset cells (web `role="list"`). */
|
|
87
|
+
?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
86
88
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
87
89
|
Corner: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
88
90
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
@@ -126,11 +128,11 @@ export declare const TimePresets: typeof TimePresetsComponent & {
|
|
|
126
128
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
127
129
|
Label: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
128
130
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
129
|
-
inline?: boolean | undefined;
|
|
130
|
-
inherit?: boolean | undefined;
|
|
131
131
|
span?: boolean | undefined;
|
|
132
|
+
inherit?: boolean | undefined;
|
|
132
133
|
lineClamp?: number | undefined;
|
|
133
134
|
truncate?: boolean | "end" | "start" | undefined;
|
|
135
|
+
inline?: boolean | undefined;
|
|
134
136
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
135
137
|
Control: import("react").ForwardRefExoticComponent<TimePresetControlProps & import("react").RefAttributes<import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods)>> & {
|
|
136
138
|
Frame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -1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;;;YAU9E,+EAA+E;YAC/E,CALA;;;kBAKM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyLL,CAAC"}
|
|
@@ -18,12 +18,12 @@ declare const WeekdaysRowFrame: import("@tamagui/web").TamaguiComponent<import("
|
|
|
18
18
|
*/
|
|
19
19
|
declare const Weekday: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
20
20
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
21
|
-
inline?: boolean | undefined;
|
|
22
|
-
inherit?: boolean | undefined;
|
|
23
21
|
span?: boolean | undefined;
|
|
22
|
+
inherit?: boolean | undefined;
|
|
23
|
+
fullWidth?: boolean | undefined;
|
|
24
24
|
lineClamp?: number | undefined;
|
|
25
25
|
truncate?: boolean | "end" | "start" | undefined;
|
|
26
|
-
|
|
26
|
+
inline?: boolean | undefined;
|
|
27
27
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
28
28
|
/** The named style slots and the styled part each targets. */
|
|
29
29
|
export interface WeekdaysRowStyles {
|
|
@@ -71,12 +71,12 @@ export declare const WeekdaysRow: import("react").ForwardRefExoticComponent<Omit
|
|
|
71
71
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
72
72
|
Weekday: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
73
73
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
74
|
-
inline?: boolean | undefined;
|
|
75
|
-
inherit?: boolean | undefined;
|
|
76
74
|
span?: boolean | undefined;
|
|
75
|
+
inherit?: boolean | undefined;
|
|
76
|
+
fullWidth?: boolean | undefined;
|
|
77
77
|
lineClamp?: number | undefined;
|
|
78
78
|
truncate?: boolean | "end" | "start" | undefined;
|
|
79
|
-
|
|
79
|
+
inline?: boolean | undefined;
|
|
80
80
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
81
81
|
};
|
|
82
82
|
export type { WeekdaySize };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WeekdaysRow.d.ts","sourceRoot":"","sources":["../../../src/WeekdaysRow/WeekdaysRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WeekdaysRow.d.ts","sourceRoot":"","sources":["../../../src/WeekdaysRow/WeekdaysRow.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAEL,KAAK,QAAQ,EAGb,KAAK,UAAU,EAGhB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,iBAAiB,CAAC;AAE3E,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG3D,iFAAiF;AACjF,KAAK,WAAW,GAAG,YAAY,CAAC;AA0BhC,mDAAmD;AACnD,QAAA,MAAM,gBAAgB;;6CAIpB,CAAC;AAEH;;;;;;;;GAQG;AACH,QAAA,MAAM,OAAO;;;;;;;;6CAkBX,CAAC;AAsBH,8DAA8D;AAC9D,MAAM,WAAW,iBAAiB;IAChC,2CAA2C;IAC3C,WAAW,CAAC,EAAE,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,sDAAsD;IACtD,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;CACpC;AAOD,KAAK,qBAAqB,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,UAAU,CAAC;IACxF,sDAAsD;IACtD,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,4FAA4F;IAC5F,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,0EAA0E;IAC1E,aAAa,CAAC,EAAE,eAAe,CAAC;IAEhC,8EAA8E;IAC9E,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;CACxC;AA+FD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAGtB,CAAC;AAEH,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -91,31 +91,31 @@ export declare const YearLevel: React.ForwardRefExoticComponent<Omit<import("@ta
|
|
|
91
91
|
fullWidth?: boolean | undefined;
|
|
92
92
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
93
93
|
Control: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
94
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
95
94
|
disabled?: boolean | undefined;
|
|
96
95
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
96
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
97
97
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
98
98
|
Level: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
99
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
100
|
-
static?: boolean | undefined;
|
|
101
99
|
disabled?: boolean | undefined;
|
|
102
100
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
101
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
102
|
+
static?: boolean | undefined;
|
|
103
103
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
104
104
|
LevelLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
105
105
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
106
|
-
inline?: boolean | undefined;
|
|
107
|
-
inherit?: boolean | undefined;
|
|
108
106
|
span?: boolean | undefined;
|
|
107
|
+
inherit?: boolean | undefined;
|
|
109
108
|
lineClamp?: number | undefined;
|
|
110
109
|
truncate?: boolean | "end" | "start" | undefined;
|
|
110
|
+
inline?: boolean | undefined;
|
|
111
111
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
112
112
|
Icon: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
113
113
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
114
|
-
inline?: boolean | undefined;
|
|
115
|
-
inherit?: boolean | undefined;
|
|
116
114
|
span?: boolean | undefined;
|
|
115
|
+
inherit?: boolean | undefined;
|
|
117
116
|
lineClamp?: number | undefined;
|
|
118
117
|
truncate?: boolean | "end" | "start" | undefined;
|
|
118
|
+
inline?: boolean | undefined;
|
|
119
119
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
120
120
|
};
|
|
121
121
|
/** The month selection grid. */
|
|
@@ -93,31 +93,31 @@ export declare const YearLevelGroup: React.ForwardRefExoticComponent<YearLevelGr
|
|
|
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, {
|
|
@@ -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 YearsListProps extends YearsListFrameProps, YearsListSettings {
|
|
|
61
62
|
*/
|
|
62
63
|
styles?: SlotStyles<YearsListStyles>;
|
|
63
64
|
}
|
|
64
|
-
export declare const YearsList:
|
|
65
|
+
export declare const YearsList: 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 YearsListProps> & YearsListProps &
|
|
68
|
+
}>, keyof YearsListProps> & YearsListProps & 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 YearsListProps> & YearsListProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & YearsListProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YearsList.d.ts","sourceRoot":"","sources":["../../../src/YearsList/YearsList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YearsList.d.ts","sourceRoot":"","sources":["../../../src/YearsList/YearsList.tsx"],"names":[],"mappings":"AAoBA,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,sEAAsE;AACtE,QAAA,MAAM,cAAc;;;6CAgBlB,CAAC;AAEH,4CAA4C;AAC5C,QAAA,MAAM,YAAY;;;6CAiBhB,CAAC;AAEH;;;;;GAKG;AACH,QAAA,MAAM,aAAa;;;6CAYjB,CAAC;AAyIH,8DAA8D;AAC9D,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C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6
|
maxDate: DateStringValue | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Consulted TWICE per year below (once for `disabled`, once for `selected`), so
|
|
9
|
+
* callers should pass a getter wrapped in `memoizeByDate` — the same wrapper they
|
|
10
|
+
* use for their own cell loop, so the whole render resolves each year's props
|
|
11
|
+
* exactly once. See `internal/memoize-control-props.ts`.
|
|
12
|
+
*/
|
|
7
13
|
getYearControlProps: ((year: DateStringValue) => Partial<PickerControlProps>) | undefined;
|
|
8
14
|
}
|
|
9
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-year-in-tab-order.d.ts","sourceRoot":"","sources":["../../../../src/YearsList/get-year-in-tab-order/get-year-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,sBAAsB;IAC9B,KAAK,EAAE,eAAe,EAAE,EAAE,CAAC;IAC3B,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,mBAAmB,EAAE,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC,GAAG,SAAS,CAAC;CAC3F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,OAAO,EACP,mBAAmB,GACpB,EAAE,sBAAsB,GAAG,eAAe,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"get-year-in-tab-order.d.ts","sourceRoot":"","sources":["../../../../src/YearsList/get-year-in-tab-order/get-year-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,sBAAsB;IAC9B,KAAK,EAAE,eAAe,EAAE,EAAE,CAAC;IAC3B,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC;;;;;OAKG;IACH,mBAAmB,EAAE,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC,GAAG,SAAS,CAAC;CAC3F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,OAAO,EACP,mBAAmB,GACpB,EAAE,sBAAsB,GAAG,eAAe,GAAG,SAAS,CA0BtD"}
|
|
@@ -22,9 +22,9 @@ declare const ExampleControlOptions: import("@tamagui/web").TamaguiComponent<imp
|
|
|
22
22
|
* runtime `onHoverIn` state machine.
|
|
23
23
|
*/
|
|
24
24
|
declare const ExampleControlOption: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
25
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
26
25
|
disabled?: boolean | undefined;
|
|
27
26
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
27
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
28
28
|
selected?: boolean | undefined;
|
|
29
29
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
30
30
|
/**
|
|
@@ -42,12 +42,12 @@ declare const ExampleControlOption: import("@tamagui/web").TamaguiComponent<impo
|
|
|
42
42
|
*/
|
|
43
43
|
declare const ExampleControlLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
44
44
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
45
|
-
inline?: boolean | undefined;
|
|
46
|
-
inherit?: boolean | undefined;
|
|
47
45
|
span?: boolean | undefined;
|
|
46
|
+
selected?: boolean | undefined;
|
|
47
|
+
inherit?: boolean | undefined;
|
|
48
48
|
lineClamp?: number | undefined;
|
|
49
49
|
truncate?: boolean | "end" | "start" | undefined;
|
|
50
|
-
|
|
50
|
+
inline?: boolean | undefined;
|
|
51
51
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
52
52
|
/** Lead/trail section wrapper — a real styled part for the section props to land on. */
|
|
53
53
|
declare const ExampleControlSection: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
@@ -117,19 +117,19 @@ export declare const ExampleControl: React.ForwardRefExoticComponent<Omit<import
|
|
|
117
117
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
118
118
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
119
119
|
Option: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
120
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
121
120
|
disabled?: boolean | undefined;
|
|
122
121
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
122
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
123
123
|
selected?: boolean | undefined;
|
|
124
124
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
125
125
|
Label: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
126
126
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
127
|
-
inline?: boolean | undefined;
|
|
128
|
-
inherit?: boolean | undefined;
|
|
129
127
|
span?: boolean | undefined;
|
|
128
|
+
selected?: boolean | undefined;
|
|
129
|
+
inherit?: boolean | undefined;
|
|
130
130
|
lineClamp?: number | undefined;
|
|
131
131
|
truncate?: boolean | "end" | "start" | undefined;
|
|
132
|
-
|
|
132
|
+
inline?: boolean | undefined;
|
|
133
133
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
134
134
|
Section: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
135
135
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
@@ -4,6 +4,18 @@ import type { DateStringValue } from "../../../types";
|
|
|
4
4
|
* Mantine's `is-in-range`. The pair is sorted first (so callers may pass the
|
|
5
5
|
* endpoints in either order), then the bounds are widened by 1ms to the day's
|
|
6
6
|
* edges so the comparison is inclusive of both endpoints. Pure dayjs — no DOM.
|
|
7
|
+
*
|
|
8
|
+
* The Mantine spelling is the most expensive per-cell call in a range picker:
|
|
9
|
+
* `[...range].sort()` allocates an array and builds 2 dayjs instances inside the
|
|
10
|
+
* comparator, then each bound costs an instance plus `startOf`/`endOf` and
|
|
11
|
+
* `subtract`/`add` clones — ~11 instances per call, and `getControlProps` calls
|
|
12
|
+
* it for every cell (up to 3× per cell across the range/first/last checks).
|
|
13
|
+
*
|
|
14
|
+
* The widened bounds exist purely to make the endpoint comparison inclusive at
|
|
15
|
+
* DAY granularity, so for canonical zero-padded `YYYY-MM-DD` strings the whole
|
|
16
|
+
* thing reduces to `min <= date <= max` on the date prefix — exact, and with no
|
|
17
|
+
* sort, no clones and no allocations. Any non-canonical endpoint falls back to
|
|
18
|
+
* the original dayjs path.
|
|
7
19
|
*/
|
|
8
20
|
export declare function isInRange(date: DateStringValue, range: [DateStringValue, DateStringValue]): boolean;
|
|
9
21
|
//# sourceMappingURL=is-in-range.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-in-range.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/use-dates-state/is-in-range/is-in-range.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-in-range.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/use-dates-state/is-in-range/is-in-range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC,GACxC,OAAO,CAeT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-dates-state.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-dates-state/use-dates-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-dates-state.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-dates-state/use-dates-state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAEf,eAAe,EACf,eAAe,EAChB,MAAM,aAAa,CAAC;AAoBrB,wFAAwF;AACxF,UAAU,iBAAiB;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,oDAAoD;AACpD,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,iFAAiF;AACjF,UAAU,kBAAkB,CAC1B,IAAI,SAAS,cAAc,GAAG,SAAS,CACvC,SAAQ,eAAe,CAAC,IAAI,CAAC;IAC7B,uEAAuE;IACvE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAEhC,6BAA6B;IAC7B,IAAI,EAAE,IAAI,CAAC;IAEX;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,IAAI,SAAS,cAAc,GAAG,SAAS,EAAE,EACrE,IAAI,EACJ,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,sBAAsB,EACtB,aAAa,EACb,YAAY,GACb,EAAE,kBAAkB,CAAC,IAAI,CAAC;yBA8BG,eAAe;+BAvDpB,OAAO,KAAK,IAAI;gCAkMJ,eAAe;4BApBnB,eAAe,KAAG,iBAAiB,GAAG,oBAAoB;;;EAoD1F"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One-level-deep `React.memo` comparator for a memoized grid cell.
|
|
3
|
+
*
|
|
4
|
+
* A plain shallow compare is not enough for these grids: a cell's per-item inputs
|
|
5
|
+
* arrive as FRESHLY BUILT objects on every render — the per-item prop getter
|
|
6
|
+
* (`getDayProps` / `getMonthControlProps` / `getYearControlProps`, which is
|
|
7
|
+
* `useDatesState`'s `getControlProps`) returns a new object by design, and
|
|
8
|
+
* `slotStyles().get()/merge()` likewise. Their CONTENTS, though, are stable
|
|
9
|
+
* booleans for all but the two or three cells whose state actually moved.
|
|
10
|
+
*
|
|
11
|
+
* So: compare props shallowly, and where both sides are plain objects, compare one
|
|
12
|
+
* level deeper. That is exactly deep enough to see "same selection state, new
|
|
13
|
+
* object" and shallow enough to stay O(props) — and it degrades safely, since any
|
|
14
|
+
* value it cannot prove equal (a nested object, a fresh function) reads as changed
|
|
15
|
+
* and simply re-renders the cell.
|
|
16
|
+
*
|
|
17
|
+
* Generic over the cell's props so each grid keeps its own precise props type; the
|
|
18
|
+
* comparator itself only ever reads keys and compares values.
|
|
19
|
+
*/
|
|
20
|
+
export declare function areCellPropsEqual<P extends object>(prev: P, next: P): boolean;
|
|
21
|
+
//# sourceMappingURL=are-cell-props-equal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"are-cell-props-equal.d.ts","sourceRoot":"","sources":["../../../src/internal/are-cell-props-equal.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CA+B7E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Whether `value` is a canonical `YYYY-MM-DD…` string safe to compare as text. */
|
|
2
|
+
export declare function isCanonicalDateString(value: unknown): value is string;
|
|
3
|
+
/** Whether `value` starts with a canonical zero-padded `YYYY-MM`. */
|
|
4
|
+
export declare function isCanonicalYearMonthString(value: unknown): value is string;
|
|
5
|
+
/** Prefix length of a canonical date string that carries each granularity. */
|
|
6
|
+
declare const PREFIX_LENGTH: {
|
|
7
|
+
readonly year: 4;
|
|
8
|
+
readonly month: 7;
|
|
9
|
+
readonly day: 10;
|
|
10
|
+
};
|
|
11
|
+
/** The comparison granularities the pickers use (`useDatesState`'s `level`). */
|
|
12
|
+
export type DateGranularity = keyof typeof PREFIX_LENGTH;
|
|
13
|
+
/**
|
|
14
|
+
* `dayjs(a).isSame(b, level)` for canonical date strings, as a prefix compare.
|
|
15
|
+
*
|
|
16
|
+
* Returns `null` when either side is NOT canonical, so callers can fall back to
|
|
17
|
+
* the dayjs comparison rather than silently changing semantics — the same
|
|
18
|
+
* belt-and-braces shape as the predicates above.
|
|
19
|
+
*
|
|
20
|
+
* This is the single hottest comparison in a range picker: `getControlProps`
|
|
21
|
+
* runs it for `selected`, `firstInRange` and `lastInRange` on EVERY cell, so a
|
|
22
|
+
* 42-cell grid pays for it well over a hundred times per render — and a web
|
|
23
|
+
* hover move triggers a full re-render.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isSameByPrefix(a: string | null | undefined, b: string | null | undefined, level: DateGranularity): boolean | null;
|
|
26
|
+
/**
|
|
27
|
+
* `dayjs(a).isBefore(b)` for canonical date strings, as a prefix compare.
|
|
28
|
+
*
|
|
29
|
+
* Both sides parse to local midnight, so comparing the `YYYY-MM-DD` prefix
|
|
30
|
+
* lexicographically is equivalent to dayjs' millisecond comparison. Returns
|
|
31
|
+
* `null` when either side is not canonical.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isBeforeByPrefix(a: string | null | undefined, b: string | null | undefined): boolean | null;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=date-string-fast-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-string-fast-path.d.ts","sourceRoot":"","sources":["../../../src/internal/date-string-fast-path.ts"],"names":[],"mappings":"AAoCA,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAErE;AAED,qEAAqE;AACrE,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE1E;AAED,8EAA8E;AAC9E,QAAA,MAAM,aAAa;;;;CAA0C,CAAC;AAE9D,gFAAgF;AAChF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC5B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC5B,KAAK,EAAE,eAAe,GACrB,OAAO,GAAG,IAAI,CAOhB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC5B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC3B,OAAO,GAAG,IAAI,CAMhB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DateStringValue } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Wrap a per-date prop getter so each distinct date is resolved at most once.
|
|
4
|
+
*
|
|
5
|
+
* Returns `undefined` when `getter` is `undefined`, preserving the optionality
|
|
6
|
+
* of the original prop so call sites keep their `getter?.(date)` shape and their
|
|
7
|
+
* result stays `T | undefined`. Call this ONCE PER RENDER and share the result
|
|
8
|
+
* with every consumer in that render — see the note above on why the cache must
|
|
9
|
+
* not be memoized across renders.
|
|
10
|
+
*/
|
|
11
|
+
export declare function memoizeByDate<T>(getter: ((date: DateStringValue) => T) | undefined): ((date: DateStringValue) => T) | undefined;
|
|
12
|
+
//# sourceMappingURL=memoize-control-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoize-control-props.d.ts","sourceRoot":"","sources":["../../../src/internal/memoize-control-props.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,CAAC,CAAC,GAAG,SAAS,GACjD,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,CAAC,CAAC,GAAG,SAAS,CAmB5C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DateStringValue, DayOfWeek } from "../types";
|
|
2
|
+
interface CachedMonthDaysInput {
|
|
3
|
+
/** Any date within the month to enumerate, `YYYY-MM-DD`. */
|
|
4
|
+
month: DateStringValue;
|
|
5
|
+
/** First weekday of each row. */
|
|
6
|
+
firstDayOfWeek: DayOfWeek;
|
|
7
|
+
/** Pad to a fixed 6 weeks so the grid height never shifts. */
|
|
8
|
+
consistentWeeks: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* `getMonthDays` memoized on its three primitive inputs.
|
|
12
|
+
*
|
|
13
|
+
* The returned weeks array is SHARED — treat it as read-only. Callers also get a
|
|
14
|
+
* stable identity for a given key, so it can be passed straight to `useMemo` as a
|
|
15
|
+
* dependency.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCachedMonthDays({ month, firstDayOfWeek, consistentWeeks, }: CachedMonthDaysInput): DateStringValue[][];
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=month-days-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"month-days-cache.d.ts","sourceRoot":"","sources":["../../../src/internal/month-days-cache.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAQ3D,UAAU,oBAAoB;IAC5B,4DAA4D;IAC5D,KAAK,EAAE,eAAe,CAAC;IACvB,iCAAiC;IACjC,cAAc,EAAE,SAAS,CAAC;IAC1B,8DAA8D;IAC9D,eAAe,EAAE,OAAO,GAAG,SAAS,CAAC;CACtC;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,cAAc,EACd,eAAe,GAChB,EAAE,oBAAoB,GAAG,eAAe,EAAE,EAAE,CAuB5C"}
|
|
@@ -7,7 +7,15 @@ interface GetDateInTabOrderInput {
|
|
|
7
7
|
minDate: DateStringValue | undefined;
|
|
8
8
|
/** Upper bound, `YYYY-MM-DD`. */
|
|
9
9
|
maxDate: DateStringValue | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Per-day prop getter — its `disabled`/`selected` participate in the choice.
|
|
12
|
+
*
|
|
13
|
+
* It is consulted TWICE per date below (once for `disabled`, once for
|
|
14
|
+
* `selected`), so callers should pass a getter wrapped in
|
|
15
|
+
* `memoizeByDate` — the same wrapper they use for their own cell loop, so the
|
|
16
|
+
* whole render resolves each date's props exactly once. See
|
|
17
|
+
* `internal/memoize-control-props.ts`.
|
|
18
|
+
*/
|
|
11
19
|
getDayProps: ((date: DateStringValue) => Partial<DayProps>) | undefined;
|
|
12
20
|
/** Predicate marking a day disabled. */
|
|
13
21
|
excludeDate: ((date: DateStringValue) => boolean) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-date-in-tab-order.d.ts","sourceRoot":"","sources":["../../../../src/utils/get-date-in-tab-order/get-date-in-tab-order.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,UAAU,sBAAsB;IAC9B,6EAA6E;IAC7E,KAAK,EAAE,eAAe,EAAE,EAAE,CAAC;IAC3B,iCAAiC;IACjC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,iCAAiC;IACjC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC
|
|
1
|
+
{"version":3,"file":"get-date-in-tab-order.d.ts","sourceRoot":"","sources":["../../../../src/utils/get-date-in-tab-order/get-date-in-tab-order.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,UAAU,sBAAsB;IAC9B,6EAA6E;IAC7E,KAAK,EAAE,eAAe,EAAE,EAAE,CAAC;IAC3B,iCAAiC;IACjC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,iCAAiC;IACjC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC;;;;;;;;OAQG;IACH,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC;IACxE,wCAAwC;IACxC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;IAC9D,uEAAuE;IACvE,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,yCAAyC;IACzC,KAAK,EAAE,eAAe,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,KAAK,GACN,EAAE,sBAAsB,GAAG,eAAe,GAAG,SAAS,CAgCtD"}
|
|
@@ -2,6 +2,12 @@ import type { DateStringValue } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Whether `date` is on or after `minDate` (no lower bound when `minDate` is
|
|
4
4
|
* absent). Mirrors @mantine/dates `isAfterMinDate`.
|
|
5
|
+
*
|
|
6
|
+
* The lower-bound twin of `isBeforeMaxDate` — the dayjs spelling
|
|
7
|
+
* (`isAfter(minDate - 1 day, "day")`) is a day-granularity `>=`, exactly a
|
|
8
|
+
* lexicographic `>=` for canonical zero-padded `YYYY-MM-DD` strings. Same hot
|
|
9
|
+
* path (once per cell in `Month`, again in `getDateInTabOrder`), same fallback
|
|
10
|
+
* for non-canonical input.
|
|
5
11
|
*/
|
|
6
12
|
export declare function isAfterMinDate(date: DateStringValue, minDate: DateStringValue | undefined): boolean;
|
|
7
13
|
//# sourceMappingURL=is-after-min-date.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-after-min-date.d.ts","sourceRoot":"","sources":["../../../../src/utils/is-after-min-date/is-after-min-date.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-after-min-date.d.ts","sourceRoot":"","sources":["../../../../src/utils/is-after-min-date/is-after-min-date.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,eAAe,GAAG,SAAS,GACnC,OAAO,CAUT"}
|
|
@@ -2,6 +2,12 @@ import type { DateStringValue } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Whether `date` is on or before `maxDate` (no upper bound when `maxDate` is
|
|
4
4
|
* absent). Mirrors @mantine/dates `isBeforeMaxDate`.
|
|
5
|
+
*
|
|
6
|
+
* Called once per cell by `Month` and again by `getDateInTabOrder`. The dayjs
|
|
7
|
+
* spelling (`isBefore(maxDate + 1 day, "day")`) is a day-granularity `<=`, which
|
|
8
|
+
* for canonical zero-padded `YYYY-MM-DD` strings is exactly a lexicographic
|
|
9
|
+
* `<=` — same answer, no `add`, no clones, no allocations. Non-canonical input
|
|
10
|
+
* falls back to the original path.
|
|
5
11
|
*/
|
|
6
12
|
export declare function isBeforeMaxDate(date: DateStringValue, maxDate: DateStringValue | undefined): boolean;
|
|
7
13
|
//# sourceMappingURL=is-before-max-date.d.ts.map
|