@knitui/dates 0.2.0 → 0.3.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.
|
@@ -30,7 +30,7 @@ The numbered rules below map 1:1 onto the numbered comments in
|
|
|
30
30
|
declare the slot→part map once, and distribute it with `slotStyles().merge`
|
|
31
31
|
(from `@knitui/core`). Per-item dynamics stay on a `getXxxProps(date)` callback.
|
|
32
32
|
Precedence is fixed: `defaults < styles[slot] < explicit xxxProps < inline
|
|
33
|
-
|
|
33
|
+
props on a composed part` — **explicit beats sugar**.
|
|
34
34
|
8. **Controlled + uncontrolled value** through `useUncontrolled`.
|
|
35
35
|
9. **Locale + formatting** via `useDatesContext().getLocale(locale)` + dayjs
|
|
36
36
|
(consumer `locale` prop wins over the provider).
|
|
@@ -30,7 +30,7 @@ The numbered rules below map 1:1 onto the numbered comments in
|
|
|
30
30
|
declare the slot→part map once, and distribute it with `slotStyles().merge`
|
|
31
31
|
(from `@knitui/core`). Per-item dynamics stay on a `getXxxProps(date)` callback.
|
|
32
32
|
Precedence is fixed: `defaults < styles[slot] < explicit xxxProps < inline
|
|
33
|
-
|
|
33
|
+
props on a composed part` — **explicit beats sugar**.
|
|
34
34
|
8. **Controlled + uncontrolled value** through `useUncontrolled`.
|
|
35
35
|
9. **Locale + formatting** via `useDatesContext().getLocale(locale)` + dayjs
|
|
36
36
|
(consumer `locale` prop wins over the provider).
|
|
@@ -69,6 +69,6 @@ export declare function pickCalendarProps<T extends Partial<CalendarProps>>(prop
|
|
|
69
69
|
maxDate: string | Date | undefined;
|
|
70
70
|
locale: string | undefined;
|
|
71
71
|
};
|
|
72
|
-
others: Omit<T, "date" | "
|
|
72
|
+
others: Omit<T, "date" | "level" | "nextIcon" | "previousIcon" | "locale" | "firstDayOfWeek" | "weekendDays" | "renderDay" | "highlightToday" | "minDate" | "maxDate" | "getDayProps" | "excludeDate" | "hideOutsideDates" | "nextLabel" | "previousLabel" | "headerControlsOrder" | "getYearControlProps" | "yearsListFormat" | "withCellSpacing" | "decadeLabelFormat" | "numberOfColumns" | "weekdayFormat" | "withWeekNumbers" | "hideWeekdays" | "getDayAriaLabel" | "monthLabelFormat" | "getMonthControlProps" | "monthsListFormat" | "yearLabelFormat" | "defaultLevel" | "onLevelChange" | "onYearSelect" | "onMonthSelect" | "onYearMouseEnter" | "onMonthMouseEnter" | "maxLevel" | "minLevel" | "__updateDateOnYearSelect" | "__updateDateOnMonthSelect" | "__setDateRef" | "__setLevelRef" | "defaultDate" | "onDateChange" | "columnsToScroll" | "ariaLabels" | "onNextDecade" | "onPreviousDecade" | "onNextYear" | "onPreviousYear" | "onNextMonth" | "onPreviousMonth">;
|
|
73
73
|
};
|
|
74
74
|
//# sourceMappingURL=pick-calendar-props.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knitui/dates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.13",
|
|
58
|
-
"@knitui/components": "0.
|
|
59
|
-
"@knitui/core": "0.
|
|
60
|
-
"@knitui/hooks": "0.
|
|
58
|
+
"@knitui/components": "0.3.0",
|
|
59
|
+
"@knitui/core": "0.3.0",
|
|
60
|
+
"@knitui/hooks": "0.3.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "*",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"@types/react": "~19.2.0",
|
|
86
86
|
"@vitejs/plugin-react": "^6.0.2",
|
|
87
87
|
"babel-jest": "^29.7.0",
|
|
88
|
-
"babel-preset-expo": "^
|
|
88
|
+
"babel-preset-expo": "^57.0.2",
|
|
89
89
|
"jest": "^29.7.0",
|
|
90
90
|
"jest-environment-jsdom": "^29.7.0",
|
|
91
91
|
"react": "19.2.3",
|
|
92
92
|
"react-dom": "19.2.3",
|
|
93
|
-
"react-native": "0.
|
|
93
|
+
"react-native": "0.86.0",
|
|
94
94
|
"react-native-builder-bob": "^0.40.5",
|
|
95
95
|
"react-native-web": "~0.21.0",
|
|
96
96
|
"storybook": "^10.4.1",
|
package/src/_reference/README.md
CHANGED
|
@@ -30,7 +30,7 @@ The numbered rules below map 1:1 onto the numbered comments in
|
|
|
30
30
|
declare the slot→part map once, and distribute it with `slotStyles().merge`
|
|
31
31
|
(from `@knitui/core`). Per-item dynamics stay on a `getXxxProps(date)` callback.
|
|
32
32
|
Precedence is fixed: `defaults < styles[slot] < explicit xxxProps < inline
|
|
33
|
-
|
|
33
|
+
props on a composed part` — **explicit beats sugar**.
|
|
34
34
|
8. **Controlled + uncontrolled value** through `useUncontrolled`.
|
|
35
35
|
9. **Locale + formatting** via `useDatesContext().getLocale(locale)` + dayjs
|
|
36
36
|
(consumer `locale` prop wins over the provider).
|