@knitui/dates 0.14.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Calendar/Calendar.js +4 -4
- package/lib/commonjs/Calendar/Calendar.js.map +1 -1
- package/lib/commonjs/CalendarHeader/CalendarHeader.js +24 -152
- package/lib/commonjs/CalendarHeader/CalendarHeader.js.map +1 -1
- package/lib/commonjs/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/DatePickerInput/DatePickerInput.js +1 -1
- package/lib/commonjs/DateTimePicker/DateTimePicker.js +1 -1
- package/lib/commonjs/DatesProvider/DatesProvider.js +1 -1
- package/lib/commonjs/Day/Day.js +74 -142
- package/lib/commonjs/Day/Day.js.map +1 -1
- package/lib/commonjs/DecadeLevel/DecadeLevel.js +5 -5
- package/lib/commonjs/DecadeLevel/DecadeLevel.js.map +1 -1
- package/lib/commonjs/InlineDateTimePicker/InlineDateTimePicker.js +16 -7
- package/lib/commonjs/InlineDateTimePicker/InlineDateTimePicker.js.map +1 -1
- package/lib/commonjs/LevelsGroup/LevelsGroup.js +3 -3
- package/lib/commonjs/LevelsGroup/LevelsGroup.js.map +1 -1
- package/lib/commonjs/MiniCalendar/MiniCalendar.js +37 -173
- package/lib/commonjs/MiniCalendar/MiniCalendar.js.map +1 -1
- package/lib/commonjs/Month/Month.js +15 -62
- package/lib/commonjs/Month/Month.js.map +1 -1
- package/lib/commonjs/MonthLevel/MonthLevel.js +5 -5
- package/lib/commonjs/MonthLevel/MonthLevel.js.map +1 -1
- package/lib/commonjs/MonthPicker/MonthPicker.js +1 -1
- package/lib/commonjs/MonthPickerInput/MonthPickerInput.js +1 -1
- package/lib/commonjs/MonthsList/MonthsList.js +8 -9
- package/lib/commonjs/MonthsList/MonthsList.js.map +1 -1
- package/lib/commonjs/PickerControl/PickerControl.js +41 -121
- package/lib/commonjs/PickerControl/PickerControl.js.map +1 -1
- package/lib/commonjs/PickerInputBase/PickerInputBase.js +1 -1
- package/lib/commonjs/TimeControlsList/TimeControl.js +19 -48
- package/lib/commonjs/TimeControlsList/TimeControl.js.map +1 -1
- package/lib/commonjs/TimeControlsList/TimeControlsList.js +1 -1
- package/lib/commonjs/TimeControlsList/TimeControlsList.js.map +1 -1
- package/lib/commonjs/TimeGrid/TimeGrid.js +50 -97
- package/lib/commonjs/TimeGrid/TimeGrid.js.map +1 -1
- package/lib/commonjs/TimeInput/TimeInput.js +1 -1
- package/lib/commonjs/TimePicker/TimePicker.js +20 -20
- package/lib/commonjs/TimePicker/TimePicker.js.map +1 -1
- package/lib/commonjs/TimePresets/TimePresetControl.js +32 -62
- package/lib/commonjs/TimePresets/TimePresetControl.js.map +1 -1
- package/lib/commonjs/TimePresets/TimePresetGroup.js +5 -5
- package/lib/commonjs/TimePresets/TimePresetGroup.js.map +1 -1
- package/lib/commonjs/TimePresets/TimePresets.js +4 -4
- package/lib/commonjs/TimePresets/TimePresets.js.map +1 -1
- package/lib/commonjs/TimeValue/TimeValue.js +2 -2
- package/lib/commonjs/WeekdaysRow/WeekdaysRow.js +7 -38
- package/lib/commonjs/WeekdaysRow/WeekdaysRow.js.map +1 -1
- package/lib/commonjs/YearLevel/YearLevel.js +5 -5
- package/lib/commonjs/YearLevel/YearLevel.js.map +1 -1
- package/lib/commonjs/YearPicker/YearPicker.js +1 -1
- package/lib/commonjs/YearPickerInput/YearPickerInput.js +1 -1
- package/lib/commonjs/YearsList/YearsList.js +8 -9
- package/lib/commonjs/YearsList/YearsList.js.map +1 -1
- package/lib/commonjs/_reference/ExampleControl.js +26 -91
- package/lib/commonjs/_reference/ExampleControl.js.map +1 -1
- package/lib/commonjs/_reference/README.md +3 -3
- package/lib/commonjs/cell-metrics.js +167 -37
- package/lib/commonjs/cell-metrics.js.map +1 -1
- package/lib/commonjs/internal/a11y.js +5 -3
- package/lib/commonjs/internal/a11y.js.map +1 -1
- package/lib/commonjs/internal/get-input-default-date.js +1 -1
- package/lib/commonjs/internal/select-on-focus.js +1 -1
- package/lib/module/Calendar/Calendar.js +5 -5
- package/lib/module/Calendar/Calendar.js.map +1 -1
- package/lib/module/CalendarHeader/CalendarHeader.js +26 -155
- package/lib/module/CalendarHeader/CalendarHeader.js.map +1 -1
- package/lib/module/DatePicker/DatePicker.js +1 -1
- package/lib/module/DatePickerInput/DatePickerInput.js +1 -1
- package/lib/module/DateTimePicker/DateTimePicker.js +1 -1
- package/lib/module/DatesProvider/DatesProvider.js +1 -1
- package/lib/module/Day/Day.js +76 -144
- package/lib/module/Day/Day.js.map +1 -1
- package/lib/module/DecadeLevel/DecadeLevel.js +6 -6
- package/lib/module/DecadeLevel/DecadeLevel.js.map +1 -1
- package/lib/module/InlineDateTimePicker/InlineDateTimePicker.js +16 -7
- package/lib/module/InlineDateTimePicker/InlineDateTimePicker.js.map +1 -1
- package/lib/module/LevelsGroup/LevelsGroup.js +4 -4
- package/lib/module/LevelsGroup/LevelsGroup.js.map +1 -1
- package/lib/module/MiniCalendar/MiniCalendar.js +39 -175
- package/lib/module/MiniCalendar/MiniCalendar.js.map +1 -1
- package/lib/module/Month/Month.js +17 -64
- package/lib/module/Month/Month.js.map +1 -1
- package/lib/module/MonthLevel/MonthLevel.js +6 -6
- package/lib/module/MonthLevel/MonthLevel.js.map +1 -1
- package/lib/module/MonthPicker/MonthPicker.js +1 -1
- package/lib/module/MonthPickerInput/MonthPickerInput.js +1 -1
- package/lib/module/MonthsList/MonthsList.js +9 -10
- package/lib/module/MonthsList/MonthsList.js.map +1 -1
- package/lib/module/PickerControl/PickerControl.js +42 -122
- package/lib/module/PickerControl/PickerControl.js.map +1 -1
- package/lib/module/PickerInputBase/PickerInputBase.js +1 -1
- package/lib/module/TimeControlsList/TimeControl.js +20 -49
- package/lib/module/TimeControlsList/TimeControl.js.map +1 -1
- package/lib/module/TimeControlsList/TimeControlsList.js +1 -1
- package/lib/module/TimeControlsList/TimeControlsList.js.map +1 -1
- package/lib/module/TimeGrid/TimeGrid.js +53 -100
- package/lib/module/TimeGrid/TimeGrid.js.map +1 -1
- package/lib/module/TimeInput/TimeInput.js +1 -1
- package/lib/module/TimePicker/TimePicker.js +20 -20
- package/lib/module/TimePicker/TimePicker.js.map +1 -1
- package/lib/module/TimePresets/TimePresetControl.js +36 -65
- package/lib/module/TimePresets/TimePresetControl.js.map +1 -1
- package/lib/module/TimePresets/TimePresetGroup.js +6 -6
- package/lib/module/TimePresets/TimePresetGroup.js.map +1 -1
- package/lib/module/TimePresets/TimePresets.js +4 -4
- package/lib/module/TimePresets/TimePresets.js.map +1 -1
- package/lib/module/TimeValue/TimeValue.js +2 -2
- package/lib/module/WeekdaysRow/WeekdaysRow.js +8 -39
- package/lib/module/WeekdaysRow/WeekdaysRow.js.map +1 -1
- package/lib/module/YearLevel/YearLevel.js +6 -6
- package/lib/module/YearLevel/YearLevel.js.map +1 -1
- package/lib/module/YearPicker/YearPicker.js +1 -1
- package/lib/module/YearPickerInput/YearPickerInput.js +1 -1
- package/lib/module/YearsList/YearsList.js +9 -10
- package/lib/module/YearsList/YearsList.js.map +1 -1
- package/lib/module/_reference/ExampleControl.js +28 -93
- package/lib/module/_reference/ExampleControl.js.map +1 -1
- package/lib/module/_reference/README.md +3 -3
- package/lib/module/cell-metrics.js +166 -36
- package/lib/module/cell-metrics.js.map +1 -1
- package/lib/module/internal/a11y.js +5 -3
- package/lib/module/internal/a11y.js.map +1 -1
- package/lib/module/internal/get-input-default-date.js +1 -1
- package/lib/module/internal/select-on-focus.js +1 -1
- package/lib/typescript/Calendar/Calendar.d.ts +28 -21
- package/lib/typescript/Calendar/Calendar.d.ts.map +1 -1
- package/lib/typescript/Calendar/pick-calendar-props/pick-calendar-props.d.ts +1 -1
- package/lib/typescript/CalendarHeader/CalendarHeader.d.ts +190 -53
- package/lib/typescript/CalendarHeader/CalendarHeader.d.ts.map +1 -1
- package/lib/typescript/Day/Day.d.ts +103 -84
- package/lib/typescript/Day/Day.d.ts.map +1 -1
- package/lib/typescript/DecadeLevel/DecadeLevel.d.ts +172 -71
- package/lib/typescript/DecadeLevel/DecadeLevel.d.ts.map +1 -1
- package/lib/typescript/DecadeLevelGroup/DecadeLevelGroup.d.ts +171 -86
- package/lib/typescript/DecadeLevelGroup/DecadeLevelGroup.d.ts.map +1 -1
- package/lib/typescript/InlineDateTimePicker/InlineDateTimePicker.d.ts +64 -12
- package/lib/typescript/InlineDateTimePicker/InlineDateTimePicker.d.ts.map +1 -1
- package/lib/typescript/LevelsGroup/LevelsGroup.d.ts +27 -20
- package/lib/typescript/LevelsGroup/LevelsGroup.d.ts.map +1 -1
- package/lib/typescript/MiniCalendar/MiniCalendar.d.ts +247 -61
- package/lib/typescript/MiniCalendar/MiniCalendar.d.ts.map +1 -1
- package/lib/typescript/Month/Month.d.ts +164 -43
- package/lib/typescript/Month/Month.d.ts.map +1 -1
- package/lib/typescript/MonthLevel/MonthLevel.d.ts +208 -79
- package/lib/typescript/MonthLevel/MonthLevel.d.ts.map +1 -1
- package/lib/typescript/MonthLevelGroup/MonthLevelGroup.d.ts +207 -94
- package/lib/typescript/MonthLevelGroup/MonthLevelGroup.d.ts.map +1 -1
- package/lib/typescript/MonthsList/MonthsList.d.ts +91 -26
- package/lib/typescript/MonthsList/MonthsList.d.ts.map +1 -1
- package/lib/typescript/PickerControl/PickerControl.d.ts +79 -59
- package/lib/typescript/PickerControl/PickerControl.d.ts.map +1 -1
- package/lib/typescript/TimeControlsList/TimeControl.d.ts +19 -4
- package/lib/typescript/TimeControlsList/TimeControl.d.ts.map +1 -1
- package/lib/typescript/TimeControlsList/TimeControlsList.d.ts +66 -12
- package/lib/typescript/TimeControlsList/TimeControlsList.d.ts.map +1 -1
- package/lib/typescript/TimeGrid/TimeGrid.d.ts +98 -34
- package/lib/typescript/TimeGrid/TimeGrid.d.ts.map +1 -1
- package/lib/typescript/TimePicker/TimePicker.d.ts +43 -7
- package/lib/typescript/TimePicker/TimePicker.d.ts.map +1 -1
- package/lib/typescript/TimePresets/TimePresetControl.d.ts +65 -10
- package/lib/typescript/TimePresets/TimePresetControl.d.ts.map +1 -1
- package/lib/typescript/TimePresets/TimePresetGroup.d.ts +132 -44
- package/lib/typescript/TimePresets/TimePresetGroup.d.ts.map +1 -1
- package/lib/typescript/TimePresets/TimePresets.d.ts +237 -64
- package/lib/typescript/TimePresets/TimePresets.d.ts.map +1 -1
- package/lib/typescript/WeekdaysRow/WeekdaysRow.d.ts +81 -27
- package/lib/typescript/WeekdaysRow/WeekdaysRow.d.ts.map +1 -1
- package/lib/typescript/YearLevel/YearLevel.d.ts +172 -71
- package/lib/typescript/YearLevel/YearLevel.d.ts.map +1 -1
- package/lib/typescript/YearLevelGroup/YearLevelGroup.d.ts +171 -86
- package/lib/typescript/YearLevelGroup/YearLevelGroup.d.ts.map +1 -1
- package/lib/typescript/YearsList/YearsList.d.ts +91 -26
- package/lib/typescript/YearsList/YearsList.d.ts.map +1 -1
- package/lib/typescript/_reference/ExampleControl.d.ts +163 -43
- package/lib/typescript/_reference/ExampleControl.d.ts.map +1 -1
- package/lib/typescript/cell-metrics.d.ts +120 -0
- package/lib/typescript/cell-metrics.d.ts.map +1 -1
- package/lib/typescript/internal/a11y.d.ts +0 -14
- package/lib/typescript/internal/a11y.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/Calendar/Calendar.tsx +6 -5
- package/src/CalendarHeader/CalendarHeader.tsx +32 -74
- package/src/DatePicker/DatePicker.tsx +1 -1
- package/src/DatePickerInput/DatePickerInput.tsx +1 -1
- package/src/DateTimePicker/DateTimePicker.tsx +1 -1
- package/src/DatesProvider/DatesProvider.tsx +1 -1
- package/src/Day/Day.tsx +85 -82
- package/src/DecadeLevel/DecadeLevel.tsx +7 -5
- package/src/InlineDateTimePicker/InlineDateTimePicker.tsx +14 -7
- package/src/LevelsGroup/LevelsGroup.tsx +13 -13
- package/src/MiniCalendar/MiniCalendar.tsx +47 -91
- package/src/Month/Month.tsx +21 -37
- package/src/MonthLevel/MonthLevel.tsx +7 -5
- package/src/MonthPicker/MonthPicker.tsx +1 -1
- package/src/MonthPickerInput/MonthPickerInput.tsx +1 -1
- package/src/MonthsList/MonthsList.tsx +9 -10
- package/src/PickerControl/PickerControl.tsx +44 -89
- package/src/PickerInputBase/PickerInputBase.tsx +1 -1
- package/src/TimeControlsList/TimeControl.tsx +17 -28
- package/src/TimeControlsList/TimeControlsList.tsx +1 -1
- package/src/TimeGrid/TimeGrid.tsx +71 -61
- package/src/TimeInput/TimeInput.tsx +1 -1
- package/src/TimePicker/TimePicker.tsx +15 -15
- package/src/TimePresets/TimePresetControl.tsx +30 -45
- package/src/TimePresets/TimePresetGroup.tsx +7 -5
- package/src/TimePresets/TimePresets.tsx +4 -4
- package/src/TimeValue/TimeValue.tsx +2 -2
- package/src/WeekdaysRow/WeekdaysRow.tsx +9 -17
- package/src/YearLevel/YearLevel.tsx +121 -117
- package/src/YearPicker/YearPicker.tsx +1 -1
- package/src/YearPickerInput/YearPickerInput.tsx +1 -1
- package/src/YearsList/YearsList.tsx +142 -141
- package/src/_reference/ExampleControl.tsx +29 -53
- package/src/_reference/README.md +3 -3
- package/src/cell-metrics.ts +110 -36
- package/src/internal/a11y.ts +6 -3
- package/src/internal/get-input-default-date.ts +1 -1
- package/src/internal/select-on-focus.ts +1 -1
- package/lib/commonjs/internal/web-cursor.js +0 -24
- package/lib/commonjs/internal/web-cursor.js.map +0 -1
- package/lib/module/internal/web-cursor.js +0 -20
- package/lib/module/internal/web-cursor.js.map +0 -1
- package/lib/typescript/internal/web-cursor.d.ts +0 -10
- package/lib/typescript/internal/web-cursor.d.ts.map +0 -1
- package/src/internal/web-cursor.ts +0 -15
|
@@ -4,29 +4,62 @@ import { type GetProps, type SlotStyles } from "@knitui/core";
|
|
|
4
4
|
import { type CalendarSize } from "../cell-metrics";
|
|
5
5
|
import type { DateStringValue } from "../types";
|
|
6
6
|
/** The root row: optional lead · option strip · optional trail. */
|
|
7
|
-
declare const ExampleControlFrame: import("@tamagui/
|
|
7
|
+
declare const ExampleControlFrame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "shadow" | "size"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "shadow" | "size">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
8
8
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
9
|
-
|
|
9
|
+
size?: CalendarSize | undefined;
|
|
10
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, keyof import("@tamagui/core").RNTamaguiViewNonStyleProps> & {
|
|
11
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
12
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
13
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
14
|
+
size?: CalendarSize | undefined;
|
|
15
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
16
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
17
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
18
|
+
size?: CalendarSize | undefined;
|
|
19
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
20
|
+
};
|
|
10
21
|
/** The strip wrapping the option buttons. */
|
|
11
|
-
declare const ExampleControlOptions: import("@tamagui/
|
|
22
|
+
declare const ExampleControlOptions: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "shadow"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "shadow">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
12
23
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
13
|
-
}
|
|
24
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, keyof import("@tamagui/core").RNTamaguiViewNonStyleProps> & {
|
|
25
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
26
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
27
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
28
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
29
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
30
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
31
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
32
|
+
};
|
|
14
33
|
/**
|
|
15
34
|
* A single selectable option button.
|
|
16
35
|
*
|
|
17
|
-
* 4. Colors are theme-ramp tokens ONLY: idle text is the neutral
|
|
18
|
-
* selected fill is the accent
|
|
36
|
+
* 4. Colors are theme-ramp tokens ONLY: idle text is the neutral `color`, the
|
|
37
|
+
* selected fill is the accent `color9` with `color1` contrast text. No hex,
|
|
19
38
|
* no `color` prop — `theme="red"` on (or above) the control recolors it.
|
|
20
|
-
* 12. Interaction lives in real Tamagui pseudo-state (`
|
|
39
|
+
* 12. Interaction lives in real Tamagui pseudo-state (`hover:`/`press:` clauses)
|
|
21
40
|
* and a `disabled` variant (Mantine parity: 0.3 + non-interactive), never a
|
|
22
41
|
* runtime `onHoverIn` state machine.
|
|
23
42
|
*/
|
|
24
|
-
declare const ExampleControlOption: import("@tamagui/
|
|
43
|
+
declare const ExampleControlOption: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disabled" | "shadow" | "size" | "selected"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "disabled" | "shadow" | "size" | "selected">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
25
44
|
disabled?: boolean | undefined;
|
|
26
45
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
27
|
-
size?:
|
|
46
|
+
size?: CalendarSize | undefined;
|
|
28
47
|
selected?: boolean | undefined;
|
|
29
|
-
}
|
|
48
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "hitSlop" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "render" | "group" | "container" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "animatedBy" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onFocus" | "onBlur" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape"> & {
|
|
49
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
50
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
51
|
+
disabled?: boolean | undefined;
|
|
52
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
53
|
+
size?: CalendarSize | undefined;
|
|
54
|
+
selected?: boolean | undefined;
|
|
55
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
56
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
57
|
+
disabled?: boolean | undefined;
|
|
58
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
59
|
+
size?: CalendarSize | undefined;
|
|
60
|
+
selected?: boolean | undefined;
|
|
61
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
62
|
+
};
|
|
30
63
|
/**
|
|
31
64
|
* The option's text label.
|
|
32
65
|
*
|
|
@@ -40,19 +73,50 @@ declare const ExampleControlOption: import("@tamagui/web").TamaguiComponent<impo
|
|
|
40
73
|
* or a boolean *variant*, and keep constant dims as a baked-in style — never
|
|
41
74
|
* a per-render dynamic `opacity`/`display` style prop.
|
|
42
75
|
*/
|
|
43
|
-
declare const ExampleControlLabel: import("@tamagui/
|
|
44
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
45
|
-
span?: boolean | undefined;
|
|
46
|
-
selected?: boolean | undefined;
|
|
47
|
-
inherit?: boolean | undefined;
|
|
76
|
+
declare const ExampleControlLabel: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "lineClamp" | "size" | "inherit" | "selected" | "inline" | "span" | "truncate"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").TextStylePropsBase, "lineClamp" | "size" | "inherit" | "selected" | "inline" | "span" | "truncate">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
48
77
|
lineClamp?: number | undefined;
|
|
78
|
+
size?: CalendarSize | undefined;
|
|
79
|
+
inherit?: boolean | undefined;
|
|
80
|
+
selected?: boolean | undefined;
|
|
81
|
+
inline?: boolean | undefined;
|
|
82
|
+
span?: boolean | undefined;
|
|
49
83
|
truncate?: boolean | "end" | "start" | undefined;
|
|
84
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>>, keyof import("@tamagui/core").RNTamaguiTextNonStyleProps> & {
|
|
85
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
86
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
87
|
+
lineClamp?: number | undefined;
|
|
88
|
+
size?: CalendarSize | undefined;
|
|
89
|
+
inherit?: boolean | undefined;
|
|
90
|
+
selected?: boolean | undefined;
|
|
50
91
|
inline?: boolean | undefined;
|
|
51
|
-
|
|
92
|
+
span?: boolean | undefined;
|
|
93
|
+
truncate?: boolean | "end" | "start" | undefined;
|
|
94
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
95
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
96
|
+
lineClamp?: number | undefined;
|
|
97
|
+
size?: CalendarSize | undefined;
|
|
98
|
+
inherit?: boolean | undefined;
|
|
99
|
+
selected?: boolean | undefined;
|
|
100
|
+
inline?: boolean | undefined;
|
|
101
|
+
span?: boolean | undefined;
|
|
102
|
+
truncate?: boolean | "end" | "start" | undefined;
|
|
103
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
104
|
+
};
|
|
52
105
|
/** Lead/trail section wrapper — a real styled part for the section props to land on. */
|
|
53
|
-
declare const ExampleControlSection: import("@tamagui/
|
|
106
|
+
declare const ExampleControlSection: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "shadow" | "size"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "shadow" | "size">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
54
107
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
55
|
-
|
|
108
|
+
size?: CalendarSize | undefined;
|
|
109
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, keyof import("@tamagui/core").RNTamaguiViewNonStyleProps> & {
|
|
110
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
111
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
112
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
113
|
+
size?: CalendarSize | undefined;
|
|
114
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
115
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
116
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
117
|
+
size?: CalendarSize | undefined;
|
|
118
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
119
|
+
};
|
|
56
120
|
/** The named style slots and the styled part each targets. */
|
|
57
121
|
export interface ExampleControlStyles {
|
|
58
122
|
/** Props for the root row (`.Frame`). */
|
|
@@ -97,43 +161,99 @@ export interface ExampleControlProps extends ExampleControlFrameProps {
|
|
|
97
161
|
/** Optional `<ExampleControl.Lead>` / `<ExampleControl.Trail>` sections. */
|
|
98
162
|
children?: React.ReactNode;
|
|
99
163
|
}
|
|
100
|
-
export declare const ExampleControl: React.
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
|
|
107
|
-
__tama: [Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
164
|
+
export declare const ExampleControl: React.FunctionComponent<ExampleControlProps & {
|
|
165
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
166
|
+
}> & import("@tamagui/web").StaticComponentObject<ExampleControlProps, import("@tamagui/web").TamaguiElement, ExampleControlProps, {}, {}, {}> & Omit<{}, "staticConfig"> & {
|
|
167
|
+
__tama: [ExampleControlProps, import("@tamagui/web").TamaguiElement, ExampleControlProps, {}, {}, {}];
|
|
168
|
+
} & {
|
|
169
|
+
Frame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "shadow" | "size"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "shadow" | "size">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
108
170
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
109
|
-
|
|
171
|
+
size?: CalendarSize | undefined;
|
|
172
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, keyof import("@tamagui/core").RNTamaguiViewNonStyleProps> & {
|
|
173
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
174
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
110
175
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
111
|
-
|
|
112
|
-
} & {
|
|
113
|
-
|
|
176
|
+
size?: CalendarSize | undefined;
|
|
177
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
178
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
179
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
180
|
+
size?: CalendarSize | undefined;
|
|
181
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
182
|
+
};
|
|
183
|
+
Options: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "shadow"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "shadow">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
114
184
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
115
|
-
}
|
|
116
|
-
|
|
185
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, keyof import("@tamagui/core").RNTamaguiViewNonStyleProps> & {
|
|
186
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
187
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
117
188
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
118
|
-
}, import("@tamagui/web").StaticConfigPublic
|
|
119
|
-
|
|
189
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
190
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
191
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
192
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
193
|
+
};
|
|
194
|
+
Option: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disabled" | "shadow" | "size" | "selected"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "disabled" | "shadow" | "size" | "selected">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
120
195
|
disabled?: boolean | undefined;
|
|
121
196
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
122
|
-
size?:
|
|
197
|
+
size?: CalendarSize | undefined;
|
|
123
198
|
selected?: boolean | undefined;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
199
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "hitSlop" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "render" | "group" | "container" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "animatedBy" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onFocus" | "onBlur" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape"> & {
|
|
200
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
201
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
202
|
+
disabled?: boolean | undefined;
|
|
203
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
204
|
+
size?: CalendarSize | undefined;
|
|
128
205
|
selected?: boolean | undefined;
|
|
129
|
-
|
|
206
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
207
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
208
|
+
disabled?: boolean | undefined;
|
|
209
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
210
|
+
size?: CalendarSize | undefined;
|
|
211
|
+
selected?: boolean | undefined;
|
|
212
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
213
|
+
};
|
|
214
|
+
Label: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "lineClamp" | "size" | "inherit" | "selected" | "inline" | "span" | "truncate"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").TextStylePropsBase, "lineClamp" | "size" | "inherit" | "selected" | "inline" | "span" | "truncate">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
130
215
|
lineClamp?: number | undefined;
|
|
216
|
+
size?: CalendarSize | undefined;
|
|
217
|
+
inherit?: boolean | undefined;
|
|
218
|
+
selected?: boolean | undefined;
|
|
219
|
+
inline?: boolean | undefined;
|
|
220
|
+
span?: boolean | undefined;
|
|
131
221
|
truncate?: boolean | "end" | "start" | undefined;
|
|
222
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>>, keyof import("@tamagui/core").RNTamaguiTextNonStyleProps> & {
|
|
223
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
224
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
225
|
+
lineClamp?: number | undefined;
|
|
226
|
+
size?: CalendarSize | undefined;
|
|
227
|
+
inherit?: boolean | undefined;
|
|
228
|
+
selected?: boolean | undefined;
|
|
132
229
|
inline?: boolean | undefined;
|
|
133
|
-
|
|
134
|
-
|
|
230
|
+
span?: boolean | undefined;
|
|
231
|
+
truncate?: boolean | "end" | "start" | undefined;
|
|
232
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
233
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
234
|
+
lineClamp?: number | undefined;
|
|
235
|
+
size?: CalendarSize | undefined;
|
|
236
|
+
inherit?: boolean | undefined;
|
|
237
|
+
selected?: boolean | undefined;
|
|
238
|
+
inline?: boolean | undefined;
|
|
239
|
+
span?: boolean | undefined;
|
|
240
|
+
truncate?: boolean | "end" | "start" | undefined;
|
|
241
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
242
|
+
};
|
|
243
|
+
Section: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "shadow" | "size"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "shadow" | "size">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
244
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
245
|
+
size?: CalendarSize | undefined;
|
|
246
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, keyof import("@tamagui/core").RNTamaguiViewNonStyleProps> & {
|
|
247
|
+
ref?: React.Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
248
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
135
249
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
136
|
-
|
|
250
|
+
size?: CalendarSize | undefined;
|
|
251
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
252
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
253
|
+
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
254
|
+
size?: CalendarSize | undefined;
|
|
255
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
256
|
+
};
|
|
137
257
|
Lead: import("@knitui/core").SlotComponent<"Lead", unknown>;
|
|
138
258
|
Trail: import("@knitui/core").SlotComponent<"Trail", unknown>;
|
|
139
259
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleControl.d.ts","sourceRoot":"","sources":["../../../src/_reference/ExampleControl.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAa,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAIL,KAAK,QAAQ,EAEb,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"ExampleControl.d.ts","sourceRoot":"","sources":["../../../src/_reference/ExampleControl.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAa,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAIL,KAAK,QAAQ,EAEb,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,YAAY,EAAwC,MAAM,iBAAiB,CAAC;AAG1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAkBhD,mEAAmE;AACnE,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;CAMvB,CAAC;AAEH,6CAA6C;AAC7C,QAAA,MAAM,qBAAqB;;;;;;;;;;CAKzB,CAAC;AAEH;;;;;;;;;GASG;AACH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;CAiCxB,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYvB,CAAC;AAEH,wFAAwF;AACxF,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;CAMzB,CAAC;AAuBH,8DAA8D;AAC9D,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,IAAI,CAAC,EAAE,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC5C,+CAA+C;IAC/C,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,qBAAqB,CAAC,CAAC;IACjD,gDAAgD;IAChD,MAAM,CAAC,EAAE,QAAQ,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC/C,qDAAqD;IACrD,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC7C,uDAAuD;IACvD,IAAI,CAAC,EAAE,QAAQ,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAC9C,yDAAyD;IACzD,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,qBAAqB,CAAC,CAAC;CAChD;AAWD,mEAAmE;AACnE,KAAK,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC;AAQ1E,KAAK,wBAAwB,GAAG,IAAI,CAClC,QAAQ,CAAC,OAAO,mBAAmB,CAAC,EACpC,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,UAAU,CAC5D,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACnE,gEAAgE;IAChE,IAAI,EAAE,aAAa,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAE5C,iCAAiC;IACjC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;IAEtC,2CAA2C;IAC3C,YAAY,CAAC,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;IAE7C,qFAAqF;IACrF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAE5C,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAEjC,8DAA8D;IAC9D,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAEjC,+CAA+C;IAC/C,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB,uFAAuF;IACvF,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,yBAAyB,CAAC;IAEtE,yEAAyE;IACzE,MAAM,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;IAE1C,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAyHD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOzB,CAAC"}
|
|
@@ -1,9 +1,129 @@
|
|
|
1
1
|
/** Calendar grid size — the kit's shared control size scale. */
|
|
2
2
|
export type CalendarSize = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
3
|
+
/** The size keys in ascending order. */
|
|
4
|
+
export declare const CALENDAR_SIZES: readonly ["xxs", "xs", "sm", "md", "lg", "xl", "xxl"];
|
|
5
|
+
/**
|
|
6
|
+
* THE canonical calendar-cell table. Every column is a raw px number.
|
|
7
|
+
*
|
|
8
|
+
* key cell font picker(7/3) header icon
|
|
9
|
+
* xxs 24 11 56 9 13
|
|
10
|
+
* xs 30 13 70 12 17
|
|
11
|
+
* sm 36 14 84 14 20
|
|
12
|
+
* md 42 15 98 16 23
|
|
13
|
+
* lg 48 17 112 18 26
|
|
14
|
+
* xl 54 19 126 21 30
|
|
15
|
+
* xxl 60 21 140 23 33
|
|
16
|
+
*
|
|
17
|
+
* `cell` is the square day cell (and the header control / column width), `font`
|
|
18
|
+
* the cell label (≈ cell / 2.8), `picker` the wide month/year cell
|
|
19
|
+
* (Mantine: width = height × 7/3, so a 3-column grid spans a 7-column month),
|
|
20
|
+
* `header` the level label (≈ cell / 2.6) and `icon` the chevron glyph (≈ 55%).
|
|
21
|
+
*/
|
|
22
|
+
export declare const CELL_METRICS: {
|
|
23
|
+
readonly xxs: {
|
|
24
|
+
readonly cell: 24;
|
|
25
|
+
readonly font: 11;
|
|
26
|
+
readonly picker: 56;
|
|
27
|
+
readonly header: 9;
|
|
28
|
+
readonly icon: 13;
|
|
29
|
+
};
|
|
30
|
+
readonly xs: {
|
|
31
|
+
readonly cell: 30;
|
|
32
|
+
readonly font: 13;
|
|
33
|
+
readonly picker: 70;
|
|
34
|
+
readonly header: 12;
|
|
35
|
+
readonly icon: 17;
|
|
36
|
+
};
|
|
37
|
+
readonly sm: {
|
|
38
|
+
readonly cell: 36;
|
|
39
|
+
readonly font: 14;
|
|
40
|
+
readonly picker: 84;
|
|
41
|
+
readonly header: 14;
|
|
42
|
+
readonly icon: 20;
|
|
43
|
+
};
|
|
44
|
+
readonly md: {
|
|
45
|
+
readonly cell: 42;
|
|
46
|
+
readonly font: 15;
|
|
47
|
+
readonly picker: 98;
|
|
48
|
+
readonly header: 16;
|
|
49
|
+
readonly icon: 23;
|
|
50
|
+
};
|
|
51
|
+
readonly lg: {
|
|
52
|
+
readonly cell: 48;
|
|
53
|
+
readonly font: 17;
|
|
54
|
+
readonly picker: 112;
|
|
55
|
+
readonly header: 18;
|
|
56
|
+
readonly icon: 26;
|
|
57
|
+
};
|
|
58
|
+
readonly xl: {
|
|
59
|
+
readonly cell: 54;
|
|
60
|
+
readonly font: 19;
|
|
61
|
+
readonly picker: 126;
|
|
62
|
+
readonly header: 21;
|
|
63
|
+
readonly icon: 30;
|
|
64
|
+
};
|
|
65
|
+
readonly xxl: {
|
|
66
|
+
readonly cell: 60;
|
|
67
|
+
readonly font: 21;
|
|
68
|
+
readonly picker: 140;
|
|
69
|
+
readonly header: 23;
|
|
70
|
+
readonly icon: 33;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
3
73
|
/** Square column/cell width per `size`, shared so every grid's columns align. */
|
|
4
74
|
export declare const CELL_WIDTH: Record<CalendarSize, number>;
|
|
5
75
|
/** Cell label font per `size` (≈ size / 2.8, matching the day label). */
|
|
6
76
|
export declare const CELL_FONT: Record<CalendarSize, number>;
|
|
7
77
|
/** Gap inserted between cells/rows when `withCellSpacing` is on. */
|
|
8
78
|
export declare const CELL_SPACING = 2;
|
|
79
|
+
/**
|
|
80
|
+
* Square cell. `minHeight` mirrors `height` so it acts as a FLOOR: when
|
|
81
|
+
* `fullWidth` swaps `height` to `"100%"` to fill a constrained calendar height,
|
|
82
|
+
* an UNCONSTRAINED parent resolves that percentage to "auto" and the cell would
|
|
83
|
+
* otherwise collapse to its label's line-height.
|
|
84
|
+
*/
|
|
85
|
+
export declare const cellSquareVariant: Record<CalendarSize, {
|
|
86
|
+
width: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
87
|
+
height: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
88
|
+
minHeight: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
89
|
+
}>;
|
|
90
|
+
/** The wide month/year cell (`PickerControl`), with the same `minHeight` floor. */
|
|
91
|
+
export declare const pickerCellVariant: Record<CalendarSize, {
|
|
92
|
+
width: 56 | 70 | 84 | 98 | 112 | 126 | 140;
|
|
93
|
+
height: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
94
|
+
minHeight: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
95
|
+
}>;
|
|
96
|
+
/** Cell height only (header level control). */
|
|
97
|
+
export declare const cellHeightVariant: Record<CalendarSize, {
|
|
98
|
+
height: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
99
|
+
}>;
|
|
100
|
+
/** Cell min-height only (time-grid controls grow with their label). */
|
|
101
|
+
export declare const cellMinHeightVariant: Record<CalendarSize, {
|
|
102
|
+
minHeight: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
103
|
+
}>;
|
|
104
|
+
/** Column width only (week-number column). */
|
|
105
|
+
export declare const cellWidthVariant: Record<CalendarSize, {
|
|
106
|
+
width: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
107
|
+
}>;
|
|
108
|
+
/** Column min-width only (mini-calendar days, example options). */
|
|
109
|
+
export declare const cellMinWidthVariant: Record<CalendarSize, {
|
|
110
|
+
minWidth: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
111
|
+
}>;
|
|
112
|
+
/** Cell label font. */
|
|
113
|
+
export declare const cellFontVariant: Record<CalendarSize, {
|
|
114
|
+
fontSize: 11 | 13 | 17 | 14 | 15 | 19 | 21;
|
|
115
|
+
}>;
|
|
116
|
+
/** Weekday header column: cell width + label font, so it lines up with the days. */
|
|
117
|
+
export declare const weekdayCellVariant: Record<CalendarSize, {
|
|
118
|
+
width: 24 | 30 | 36 | 42 | 48 | 54 | 60;
|
|
119
|
+
fontSize: 11 | 13 | 17 | 14 | 15 | 19 | 21;
|
|
120
|
+
}>;
|
|
121
|
+
/** Header level label font. */
|
|
122
|
+
export declare const headerFontVariant: Record<CalendarSize, {
|
|
123
|
+
fontSize: 9 | 12 | 14 | 16 | 23 | 18 | 21;
|
|
124
|
+
}>;
|
|
125
|
+
/** Chevron glyph font. */
|
|
126
|
+
export declare const iconFontVariant: Record<CalendarSize, {
|
|
127
|
+
fontSize: 13 | 30 | 17 | 20 | 23 | 26 | 33;
|
|
128
|
+
}>;
|
|
9
129
|
//# sourceMappingURL=cell-metrics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-metrics.d.ts","sourceRoot":"","sources":["../../src/cell-metrics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cell-metrics.d.ts","sourceRoot":"","sources":["../../src/cell-metrics.ts"],"names":[],"mappings":"AA8BA,gEAAgE;AAChE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE5E,wCAAwC;AACxC,eAAO,MAAM,cAAc,uDAAwD,CAAC;AAEpF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQwC,CAAC;AAElE,iFAAiF;AACjF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAuC,CAAC;AAE5F,yEAAyE;AACzE,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAuC,CAAC;AAE3F,oEAAoE;AACpE,eAAO,MAAM,YAAY,IAAI,CAAC;AAW9B;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAI3B,CAAC;AAEJ,mFAAmF;AACnF,eAAO,MAAM,iBAAiB;;;;EAI3B,CAAC;AAEJ,+CAA+C;AAC/C,eAAO,MAAM,iBAAiB;;EAAoD,CAAC;AAEnF,uEAAuE;AACvE,eAAO,MAAM,oBAAoB;;EAAuD,CAAC;AAEzF,8CAA8C;AAC9C,eAAO,MAAM,gBAAgB;;EAAmD,CAAC;AAEjF,mEAAmE;AACnE,eAAO,MAAM,mBAAmB;;EAAsD,CAAC;AAEvF,uBAAuB;AACvB,eAAO,MAAM,eAAe;;EAAsD,CAAC;AAEnF,oFAAoF;AACpF,eAAO,MAAM,kBAAkB;;;EAG5B,CAAC;AAEJ,+BAA+B;AAC/B,eAAO,MAAM,iBAAiB;;EAAwD,CAAC;AAEvF,0BAA0B;AAC1B,eAAO,MAAM,eAAe;;EAAsD,CAAC"}
|
|
@@ -22,20 +22,6 @@ export interface ControlA11yProps {
|
|
|
22
22
|
accessibilityLabel?: string;
|
|
23
23
|
accessibilityState: ControlAccessibilityState;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Build the React-Native `accessibility*` props for an interactive calendar
|
|
27
|
-
* control. Only the keys that are actually defined are emitted — a control with
|
|
28
|
-
* no `selected` notion never announces `selected: undefined`, and a control with
|
|
29
|
-
* no label omits `accessibilityLabel` entirely. The result spreads cleanly onto
|
|
30
|
-
* `UnstyledButton`/`Box`/`Text` alongside the web `role`/`aria-*` attributes.
|
|
31
|
-
*
|
|
32
|
-
* On WEB this returns nothing: every call site already sets the equivalent
|
|
33
|
-
* `role`/`aria-*` attributes (the kit's cross-platform web a11y axis), and
|
|
34
|
-
* react-native-web does not translate these RN `accessibility*` props on the
|
|
35
|
-
* `styled(...).styleable` hosts these controls use — so emitting them would only
|
|
36
|
-
* leak unrecognised `accessibility*` attributes onto the DOM. They are the
|
|
37
|
-
* VoiceOver/TalkBack counterparts, needed on native only.
|
|
38
|
-
*/
|
|
39
25
|
export declare function controlA11yProps(options?: ControlA11yOptions): Partial<ControlA11yProps>;
|
|
40
26
|
export {};
|
|
41
27
|
//# sourceMappingURL=a11y.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../../src/internal/a11y.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAS,MAAM,cAAc,CAAC;AAKpD,KAAK,YAAY,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAEpD,wFAAwF;AACxF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAEtF,4FAA4F;AAC5F,KAAK,yBAAyB,GAAG,WAAW,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAEjF,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB;IACjC,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,wBAAwB,CAAC;CACjC;AAED,+FAA+F;AAC/F,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,yBAAyB,CAAC;CAC/C;
|
|
1
|
+
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../../src/internal/a11y.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAS,MAAM,cAAc,CAAC;AAKpD,KAAK,YAAY,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAEpD,wFAAwF;AACxF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAEtF,4FAA4F;AAC5F,KAAK,yBAAyB,GAAG,WAAW,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAEjF,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB;IACjC,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,wBAAwB,CAAC;CACjC;AAED,+FAA+F;AAC/F,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,yBAAyB,CAAC;CAC/C;AAmBD,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAoB5F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knitui/dates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Date and time components for Knit UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Haus <joost@the.haus>",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"sideEffects": false,
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"dayjs": "^1.11.23",
|
|
58
|
-
"@knitui/components": "0.
|
|
59
|
-
"@knitui/core": "0.
|
|
60
|
-
"@knitui/hooks": "0.
|
|
58
|
+
"@knitui/components": "1.0.0",
|
|
59
|
+
"@knitui/core": "1.0.0",
|
|
60
|
+
"@knitui/hooks": "1.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "*",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@babel/core": "^7.25.0",
|
|
78
78
|
"@storybook/addon-docs": "^10.6.0",
|
|
79
79
|
"@storybook/react-vite": "^10.6.0",
|
|
80
|
-
"@tamagui/build": "
|
|
80
|
+
"@tamagui/build": "3.0.18",
|
|
81
81
|
"@testing-library/jest-dom": "^7.0.1",
|
|
82
82
|
"@testing-library/react": "^16.3.3",
|
|
83
83
|
"@testing-library/user-event": "^14.6.7",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// `styles` sugar) are satisfied downstream and intentionally do NOT live here —
|
|
18
18
|
// the same call `LevelsGroup` documents. What Calendar DOES carry: provenance
|
|
19
19
|
// header (1), a styled `.Frame` part (5) exposed via `withStaticProperties` (14)
|
|
20
|
-
// and forwarded through
|
|
20
|
+
// and forwarded through `styleable()` (13), controlled/uncontrolled state (8),
|
|
21
21
|
// locale/min/max/a11y passthrough (9/10/11), per-item `getDayProps` /
|
|
22
22
|
// `getMonthControlProps` / `getYearControlProps` passthrough (7), and
|
|
23
23
|
// compiler-safe show/hide via conditional subtrees — never a dynamic `opacity`
|
|
@@ -31,6 +31,7 @@ import { Box } from "@knitui/components";
|
|
|
31
31
|
import {
|
|
32
32
|
type GetProps,
|
|
33
33
|
isWeb,
|
|
34
|
+
styleable,
|
|
34
35
|
styled,
|
|
35
36
|
type TamaguiElement,
|
|
36
37
|
withStaticProperties,
|
|
@@ -192,7 +193,7 @@ export interface CalendarBaseProps {
|
|
|
192
193
|
* below resolves `width: 100%` against this root, so the root itself must opt in.
|
|
193
194
|
*/
|
|
194
195
|
const CalendarFrame = styled(Box, {
|
|
195
|
-
|
|
196
|
+
displayName: "Calendar",
|
|
196
197
|
|
|
197
198
|
variants: {
|
|
198
199
|
/**
|
|
@@ -213,7 +214,7 @@ const CalendarFrame = styled(Box, {
|
|
|
213
214
|
// `MouseEventHandler`) so `CalendarBaseProps` can re-declare it cross-platform.
|
|
214
215
|
type CalendarFrameProps = Omit<
|
|
215
216
|
GetProps<typeof CalendarFrame>,
|
|
216
|
-
"size" | "children" | "onMouseLeave"
|
|
217
|
+
"size" | "children" | "onMouseLeave" | "fullWidth"
|
|
217
218
|
>;
|
|
218
219
|
|
|
219
220
|
export interface CalendarProps extends CalendarFrameProps, CalendarSettings, CalendarBaseProps {
|
|
@@ -248,9 +249,9 @@ export interface CalendarProps extends CalendarFrameProps, CalendarSettings, Cal
|
|
|
248
249
|
* enhanced Ctrl/Cmd+Arrow and `Y` shortcuts are web-only and live behind an
|
|
249
250
|
* `isWeb` guard (a no-op on native). The root is a `styled(Box)` frame (never an
|
|
250
251
|
* HTML element), exposed as `Calendar.Frame` and forwarding its ref + style
|
|
251
|
-
* props via
|
|
252
|
+
* props via `styleable()`. Accent comes from the active Tamagui theme.
|
|
252
253
|
*/
|
|
253
|
-
const CalendarComponent =
|
|
254
|
+
const CalendarComponent = styleable<CalendarProps>(CalendarFrame, function Calendar(props, ref) {
|
|
254
255
|
const {
|
|
255
256
|
// Level / navigation owned by Calendar
|
|
256
257
|
maxLevel = "decade",
|