@wordpress/components 29.12.0 → 29.13.1-next.719a03cbe.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/CHANGELOG.md +12 -0
- package/build/box-control/input-control.js +2 -2
- package/build/box-control/input-control.js.map +1 -1
- package/build/calendar/date-calendar/index.js +60 -0
- package/build/calendar/date-calendar/index.js.map +1 -0
- package/build/calendar/date-range-calendar/index.js +168 -0
- package/build/calendar/date-range-calendar/index.js.map +1 -0
- package/build/calendar/index.js +27 -0
- package/build/calendar/index.js.map +1 -0
- package/build/calendar/types.js +6 -0
- package/build/calendar/types.js.map +1 -0
- package/build/calendar/utils/constants.js +68 -0
- package/build/calendar/utils/constants.js.map +1 -0
- package/build/calendar/utils/day-cell.js +137 -0
- package/build/calendar/utils/day-cell.js.map +1 -0
- package/build/calendar/utils/misc.js +10 -0
- package/build/calendar/utils/misc.js.map +1 -0
- package/build/calendar/utils/use-controlled-value.js +58 -0
- package/build/calendar/utils/use-controlled-value.js.map +1 -0
- package/build/calendar/utils/use-localization-props.js +162 -0
- package/build/calendar/utils/use-localization-props.js.map +1 -0
- package/build/custom-gradient-picker/gradient-bar/control-points.js +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/custom-select-control-v2/custom-select.js +3 -3
- package/build/custom-select-control-v2/custom-select.js.map +1 -1
- package/build/date-time/date/index.js +1 -1
- package/build/date-time/date/index.js.map +1 -1
- package/build/form-token-field/index.js +11 -1
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/token.js +1 -1
- package/build/form-token-field/token.js.map +1 -1
- package/build/index.js +19 -0
- package/build/index.js.map +1 -1
- package/build/mobile/bottom-sheet/cell.native.js +2 -2
- package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
- package/build/mobile/link-picker/index.native.js +1 -1
- package/build/mobile/link-picker/index.native.js.map +1 -1
- package/build/navigation/menu/menu-title-search.js +1 -1
- package/build/navigation/menu/menu-title-search.js.map +1 -1
- package/build/palette-edit/index.js +4 -4
- package/build/palette-edit/index.js.map +1 -1
- package/build-module/box-control/input-control.js +2 -2
- package/build-module/box-control/input-control.js.map +1 -1
- package/build-module/calendar/date-calendar/index.js +51 -0
- package/build-module/calendar/date-calendar/index.js.map +1 -0
- package/build-module/calendar/date-range-calendar/index.js +157 -0
- package/build-module/calendar/date-range-calendar/index.js.map +1 -0
- package/build-module/calendar/index.js +4 -0
- package/build-module/calendar/index.js.map +1 -0
- package/build-module/calendar/types.js +2 -0
- package/build-module/calendar/types.js.map +1 -0
- package/build-module/calendar/utils/constants.js +61 -0
- package/build-module/calendar/utils/constants.js.map +1 -0
- package/build-module/calendar/utils/day-cell.js +131 -0
- package/build-module/calendar/utils/day-cell.js.map +1 -0
- package/build-module/calendar/utils/misc.js +4 -0
- package/build-module/calendar/utils/misc.js.map +1 -0
- package/build-module/calendar/utils/use-controlled-value.js +51 -0
- package/build-module/calendar/utils/use-controlled-value.js.map +1 -0
- package/build-module/calendar/utils/use-localization-props.js +154 -0
- package/build-module/calendar/utils/use-localization-props.js.map +1 -0
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build-module/custom-select-control-v2/custom-select.js +4 -4
- package/build-module/custom-select-control-v2/custom-select.js.map +1 -1
- package/build-module/date-time/date/index.js +1 -1
- package/build-module/date-time/date/index.js.map +1 -1
- package/build-module/form-token-field/index.js +11 -1
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/token.js +1 -1
- package/build-module/form-token-field/token.js.map +1 -1
- package/build-module/index.js +1 -0
- package/build-module/index.js.map +1 -1
- package/build-module/mobile/bottom-sheet/cell.native.js +2 -2
- package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
- package/build-module/mobile/link-picker/index.native.js +1 -1
- package/build-module/mobile/link-picker/index.native.js.map +1 -1
- package/build-module/navigation/menu/menu-title-search.js +1 -1
- package/build-module/navigation/menu/menu-title-search.js.map +1 -1
- package/build-module/palette-edit/index.js +4 -4
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-style/style-rtl.css +358 -5
- package/build-style/style.css +358 -5
- package/build-types/box-control/input-control.d.ts.map +1 -1
- package/build-types/box-control/utils.d.ts +7 -7
- package/build-types/calendar/date-calendar/index.d.ts +11 -0
- package/build-types/calendar/date-calendar/index.d.ts.map +1 -0
- package/build-types/calendar/date-range-calendar/index.d.ts +14 -0
- package/build-types/calendar/date-range-calendar/index.d.ts.map +1 -0
- package/build-types/calendar/index.d.ts +4 -0
- package/build-types/calendar/index.d.ts.map +1 -0
- package/build-types/calendar/stories/date-calendar.story.d.ts +16 -0
- package/build-types/calendar/stories/date-calendar.story.d.ts.map +1 -0
- package/build-types/calendar/stories/date-range-calendar.story.d.ts +16 -0
- package/build-types/calendar/stories/date-range-calendar.story.d.ts.map +1 -0
- package/build-types/calendar/test/__utils__/index.d.ts +10 -0
- package/build-types/calendar/test/__utils__/index.d.ts.map +1 -0
- package/build-types/calendar/test/date-calendar.d.ts +2 -0
- package/build-types/calendar/test/date-calendar.d.ts.map +1 -0
- package/build-types/calendar/test/date-range-calendar.d.ts +2 -0
- package/build-types/calendar/test/date-range-calendar.d.ts.map +1 -0
- package/build-types/calendar/types.d.ts +317 -0
- package/build-types/calendar/types.d.ts.map +1 -0
- package/build-types/calendar/utils/constants.d.ts +52 -0
- package/build-types/calendar/utils/constants.d.ts.map +1 -0
- package/build-types/calendar/utils/day-cell.d.ts +21 -0
- package/build-types/calendar/utils/day-cell.d.ts.map +1 -0
- package/build-types/calendar/utils/misc.d.ts +2 -0
- package/build-types/calendar/utils/misc.d.ts.map +1 -0
- package/build-types/calendar/utils/use-controlled-value.d.ts +27 -0
- package/build-types/calendar/utils/use-controlled-value.d.ts.map +1 -0
- package/build-types/calendar/utils/use-localization-props.d.ts +64 -0
- package/build-types/calendar/utils/use-localization-props.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/constants.d.ts +6 -3
- package/build-types/custom-gradient-picker/constants.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
- package/build-types/dimension-control/sizes.d.ts +15 -3
- package/build-types/dimension-control/sizes.d.ts.map +1 -1
- package/build-types/font-size-picker/constants.d.ts +2 -2
- package/build-types/font-size-picker/constants.d.ts.map +1 -1
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/index.d.ts +1 -0
- package/build-types/index.d.ts.map +1 -1
- package/build-types/popover/overlay-middlewares.d.ts +6 -1
- package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
- package/package.json +21 -20
- package/src/box-control/input-control.tsx +14 -5
- package/src/calendar/date-calendar/README.md +250 -0
- package/src/calendar/date-calendar/index.tsx +55 -0
- package/src/calendar/date-range-calendar/README.md +287 -0
- package/src/calendar/date-range-calendar/index.tsx +203 -0
- package/src/calendar/index.tsx +3 -0
- package/src/calendar/stories/date-calendar.story.tsx +221 -0
- package/src/calendar/stories/date-range-calendar.story.tsx +230 -0
- package/src/calendar/style.scss +431 -0
- package/src/calendar/test/__utils__/index.ts +56 -0
- package/src/calendar/test/date-calendar.tsx +975 -0
- package/src/calendar/test/date-range-calendar.tsx +1701 -0
- package/src/calendar/types.ts +342 -0
- package/src/calendar/utils/constants.ts +62 -0
- package/src/calendar/utils/day-cell.tsx +133 -0
- package/src/calendar/utils/misc.ts +3 -0
- package/src/calendar/utils/use-controlled-value.ts +61 -0
- package/src/calendar/utils/use-localization-props.ts +169 -0
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +1 -1
- package/src/custom-select-control-v2/custom-select.tsx +6 -3
- package/src/date-time/date/index.tsx +1 -1
- package/src/form-token-field/index.tsx +12 -1
- package/src/form-token-field/token.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/mobile/bottom-sheet/cell.native.js +2 -2
- package/src/mobile/link-picker/index.native.js +1 -1
- package/src/navigation/menu/menu-title-search.tsx +1 -1
- package/src/palette-edit/index.tsx +4 -4
- package/src/select-control/style.scss +0 -6
- package/src/style.scss +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Locale } from 'date-fns';
|
|
5
|
+
import type * as React from 'react';
|
|
6
|
+
/**
|
|
7
|
+
* Represents the modifiers that match a specific day in the calendar.
|
|
8
|
+
* @example
|
|
9
|
+
* const modifiers: Modifiers = {
|
|
10
|
+
* today: false, // the day is not today
|
|
11
|
+
* selected: true, // the day is selected
|
|
12
|
+
* disabled: false, // the day is not disabled
|
|
13
|
+
* outside: false, // the day is not outside the month
|
|
14
|
+
* focused: false, // the day is not focused
|
|
15
|
+
*
|
|
16
|
+
* weekend: false // custom modifier example for matching a weekend
|
|
17
|
+
* booked: true // custom modifier example for matching a booked day
|
|
18
|
+
* available: false // custom modifier example for matching an available day
|
|
19
|
+
* };
|
|
20
|
+
*/
|
|
21
|
+
export type Modifiers = Record<string, boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* A value or a function that matches a specific day.
|
|
24
|
+
* @example
|
|
25
|
+
* // will always match the day
|
|
26
|
+
* const booleanMatcher: Matcher = true;
|
|
27
|
+
*
|
|
28
|
+
* // will match the today's date
|
|
29
|
+
* const dateMatcher: Matcher = new Date();
|
|
30
|
+
*
|
|
31
|
+
* // will match the days in the array
|
|
32
|
+
* const arrayMatcher: Matcher = [
|
|
33
|
+
* new Date(2019, 1, 2),
|
|
34
|
+
* new Date(2019, 1, 4)
|
|
35
|
+
* ];
|
|
36
|
+
*
|
|
37
|
+
* // will match days after the 2nd of February 2019
|
|
38
|
+
* const afterMatcher: DateAfter = { after: new Date(2019, 1, 2) };
|
|
39
|
+
*
|
|
40
|
+
* // will match days before the 2nd of February 2019 }
|
|
41
|
+
* const beforeMatcher: DateBefore = { before: new Date(2019, 1, 2) };
|
|
42
|
+
*
|
|
43
|
+
* // will match Sundays
|
|
44
|
+
* const dayOfWeekMatcher: DayOfWeek = {
|
|
45
|
+
* dayOfWeek: 0
|
|
46
|
+
* };
|
|
47
|
+
*
|
|
48
|
+
* // will match the included days, except the two dates
|
|
49
|
+
* const intervalMatcher: DateInterval = {
|
|
50
|
+
* after: new Date(2019, 1, 2),
|
|
51
|
+
* before: new Date(2019, 1, 5)
|
|
52
|
+
* };
|
|
53
|
+
*
|
|
54
|
+
* // will match the included days, including the two dates
|
|
55
|
+
* const rangeMatcher: DateRange = {
|
|
56
|
+
* from: new Date(2019, 1, 2),
|
|
57
|
+
* to: new Date(2019, 1, 5)
|
|
58
|
+
* };
|
|
59
|
+
*
|
|
60
|
+
* // will match when the function return true
|
|
61
|
+
* const functionMatcher: Matcher = (day: Date) => {
|
|
62
|
+
* return day.getMonth() === 2; // match when month is March
|
|
63
|
+
* };
|
|
64
|
+
*/
|
|
65
|
+
type Matcher = boolean | ((date: Date) => boolean) | Date | Date[] | DateRange | DateBefore | DateAfter | DateInterval | DayOfWeek;
|
|
66
|
+
/**
|
|
67
|
+
* Match a day falling after the specified date, with the date not included.
|
|
68
|
+
* @example
|
|
69
|
+
* // Match days after the 2nd of February 2019
|
|
70
|
+
* const matcher: DateAfter = { after: new Date(2019, 1, 2) };
|
|
71
|
+
*/
|
|
72
|
+
type DateAfter = {
|
|
73
|
+
after: Date;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Match a day falling before the specified date, with the date not included.
|
|
77
|
+
* @example
|
|
78
|
+
* // Match days before the 2nd of February 2019
|
|
79
|
+
* const matcher: DateBefore = { before: new Date(2019, 1, 2) };
|
|
80
|
+
*/
|
|
81
|
+
type DateBefore = {
|
|
82
|
+
before: Date;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* An interval of dates. Differently from `DateRange`, the range ends here
|
|
86
|
+
* are not included.
|
|
87
|
+
* @example
|
|
88
|
+
* // Match the days between the 2nd and the 5th of February 2019
|
|
89
|
+
* const matcher: DateInterval = {
|
|
90
|
+
* after: new Date(2019, 1, 2),
|
|
91
|
+
* before: new Date(2019, 1, 5)
|
|
92
|
+
* };
|
|
93
|
+
*/
|
|
94
|
+
type DateInterval = {
|
|
95
|
+
before: Date;
|
|
96
|
+
after: Date;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* A range of dates. The range can be open. Differently from
|
|
100
|
+
* `DateInterval`, the range ends here are included.
|
|
101
|
+
* @example
|
|
102
|
+
* // Match the days between the 2nd and the 5th of February 2019
|
|
103
|
+
* const matcher: DateRange = {
|
|
104
|
+
* from: new Date(2019, 1, 2),
|
|
105
|
+
* to: new Date(2019, 1, 5)
|
|
106
|
+
* };
|
|
107
|
+
*/
|
|
108
|
+
export type DateRange = {
|
|
109
|
+
from: Date | undefined;
|
|
110
|
+
to?: Date | undefined;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Match dates being one of the specified days of the week (`0-6`, where `0` is
|
|
114
|
+
* Sunday).
|
|
115
|
+
* @example
|
|
116
|
+
* // Match Sundays
|
|
117
|
+
* const matcher: DayOfWeek = { dayOfWeek: 0 };
|
|
118
|
+
* // Match weekends
|
|
119
|
+
* const matcher: DayOfWeek = { dayOfWeek: [0, 6] };
|
|
120
|
+
*/
|
|
121
|
+
type DayOfWeek = {
|
|
122
|
+
dayOfWeek: number | number[];
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Shared handler type for `onSelect` callback when a selection mode is set.
|
|
126
|
+
* @example
|
|
127
|
+
* const handleSelect: OnSelectHandler<Date> = (
|
|
128
|
+
* selected,
|
|
129
|
+
* triggerDate,
|
|
130
|
+
* modifiers,
|
|
131
|
+
* e
|
|
132
|
+
* ) => {
|
|
133
|
+
* console.log( "Selected:", selected );
|
|
134
|
+
* console.log( "Triggered by:", triggerDate );
|
|
135
|
+
* };
|
|
136
|
+
* @template T - The type of the selected item.
|
|
137
|
+
* @callback OnSelectHandler
|
|
138
|
+
* @param {T} selected - The selected item after the event.
|
|
139
|
+
* @param {Date} triggerDate - The date when the event was triggered. This is
|
|
140
|
+
* typically the day clicked or interacted with.
|
|
141
|
+
* @param {Modifiers} modifiers - The modifiers associated with the event.
|
|
142
|
+
* @param {React.MouseEvent | React.KeyboardEvent} e - The event object.
|
|
143
|
+
*/
|
|
144
|
+
type OnSelectHandler<T> = (selected: T, triggerDate: Date, modifiers: Modifiers, e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
145
|
+
export interface BaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'defaultValue'> {
|
|
146
|
+
/**
|
|
147
|
+
* Whether the selection is required.
|
|
148
|
+
* When `true`, there always needs to be a date selected.
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
required?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* The initial month to show in the calendar view (uncontrolled).
|
|
154
|
+
* @default The current month
|
|
155
|
+
*/
|
|
156
|
+
defaultMonth?: Date;
|
|
157
|
+
/**
|
|
158
|
+
* The month displayed in the calendar view (controlled). Use together with
|
|
159
|
+
* `onMonthChange` to change the month programmatically.
|
|
160
|
+
*/
|
|
161
|
+
month?: Date;
|
|
162
|
+
/**
|
|
163
|
+
* The number of months displayed at once.
|
|
164
|
+
* @default 1
|
|
165
|
+
*/
|
|
166
|
+
numberOfMonths?: number;
|
|
167
|
+
/**
|
|
168
|
+
* The earliest month to start the month navigation.
|
|
169
|
+
*/
|
|
170
|
+
startMonth?: Date;
|
|
171
|
+
/**
|
|
172
|
+
* The latest month to end the month navigation.
|
|
173
|
+
*/
|
|
174
|
+
endMonth?: Date;
|
|
175
|
+
/**
|
|
176
|
+
* Focus the first selected day (if set) or today's date (if not disabled).
|
|
177
|
+
*
|
|
178
|
+
* Use this prop when you need to focus the calendar after a user action
|
|
179
|
+
* (e.g. opening the dialog with the calendar).
|
|
180
|
+
*/
|
|
181
|
+
autoFocus?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Specify which days are disabled. Using `true` will disable all dates.
|
|
184
|
+
*/
|
|
185
|
+
disabled?: Matcher | Matcher[] | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Disable the navigation buttons.
|
|
188
|
+
*/
|
|
189
|
+
disableNavigation?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Use custom labels, useful for translating the component.
|
|
192
|
+
*
|
|
193
|
+
* For a correct localized experience, consumers should make sure the locale
|
|
194
|
+
* used for the translated labels and `locale` prop are consistent.
|
|
195
|
+
*/
|
|
196
|
+
labels?: {
|
|
197
|
+
/**
|
|
198
|
+
* The label for the navigation toolbar.
|
|
199
|
+
* @default ""
|
|
200
|
+
*/
|
|
201
|
+
labelNav?: () => string;
|
|
202
|
+
/**
|
|
203
|
+
* The label for the month grid.
|
|
204
|
+
* @default "LLLL y" (e.g. "November 2022")
|
|
205
|
+
*/
|
|
206
|
+
labelGrid?: (date: Date) => string;
|
|
207
|
+
/**
|
|
208
|
+
* The label for the gridcell, when the calendar is not interactive.
|
|
209
|
+
* @default The formatted date.
|
|
210
|
+
*/
|
|
211
|
+
labelGridcell?: (date: Date, modifiers?: Modifiers) => string;
|
|
212
|
+
/**
|
|
213
|
+
* The label for the "next month" button.
|
|
214
|
+
* @default "Go to the Next Month"
|
|
215
|
+
*/
|
|
216
|
+
labelNext?: (month: Date | undefined) => string;
|
|
217
|
+
/**
|
|
218
|
+
* The label for the "previous month" button.
|
|
219
|
+
* @default "Go to the Previous Month"
|
|
220
|
+
*/
|
|
221
|
+
labelPrevious?: (month: Date | undefined) => string;
|
|
222
|
+
/**
|
|
223
|
+
* The label for the day button.
|
|
224
|
+
* @default The formatted date.
|
|
225
|
+
*/
|
|
226
|
+
labelDayButton?: (date: Date, modifiers?: Modifiers) => string;
|
|
227
|
+
/**
|
|
228
|
+
* The label for the weekday.
|
|
229
|
+
* @default ( date: Date ) => "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"
|
|
230
|
+
*/
|
|
231
|
+
labelWeekday?: (date: Date) => string;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* The locale object used to localize dates. Pass a locale from
|
|
235
|
+
* `@date-fns/locale` to localize the calendar.
|
|
236
|
+
*
|
|
237
|
+
* For a correct localized experience, consumers should make sure the locale
|
|
238
|
+
* used for the translated labels and `locale` prop are consistent.
|
|
239
|
+
* @see https://github.com/date-fns/date-fns/tree/main/src/locale for a list of the supported locales
|
|
240
|
+
* @default The `enUS` locale from `@date-fns/locale`
|
|
241
|
+
*/
|
|
242
|
+
locale?: Locale;
|
|
243
|
+
/**
|
|
244
|
+
* The index of the first day of the week (0 - Sunday). Overrides the locale's
|
|
245
|
+
* one.
|
|
246
|
+
* @default Based on the `locale` prop
|
|
247
|
+
*/
|
|
248
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* Event fired when the user navigates between months.
|
|
251
|
+
*/
|
|
252
|
+
onMonthChange?: (month: Date) => void;
|
|
253
|
+
/**
|
|
254
|
+
* The time zone (IANA or UTC offset) to use in the calendar.
|
|
255
|
+
*
|
|
256
|
+
* See
|
|
257
|
+
* [Wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
|
|
258
|
+
* for the possible values.
|
|
259
|
+
*
|
|
260
|
+
* When working with time zones, use the `TZDate` object exported by this
|
|
261
|
+
* package instead of the native `Date` object.
|
|
262
|
+
* @example
|
|
263
|
+
* import { DateCalendar, TZDate } from "@automattic/components";
|
|
264
|
+
*
|
|
265
|
+
* export function WithTimeZone() {
|
|
266
|
+
* const timeZone = "America/New_York";
|
|
267
|
+
* const [ selected, setSelected ] = useState< Date | undefined >(
|
|
268
|
+
* new TZDate( 2024, 12, 10, timeZone ) // Use `TZDate` instead of `Date`
|
|
269
|
+
* );
|
|
270
|
+
* return (
|
|
271
|
+
* <DateCalendar
|
|
272
|
+
* timeZone={ timeZone }
|
|
273
|
+
* selected={ selected }
|
|
274
|
+
* onSelect={ setSelected }
|
|
275
|
+
* />
|
|
276
|
+
* );
|
|
277
|
+
* }
|
|
278
|
+
*/
|
|
279
|
+
timeZone?: string;
|
|
280
|
+
/**
|
|
281
|
+
* The role attribute to add to the container element.
|
|
282
|
+
* @default 'application'
|
|
283
|
+
*/
|
|
284
|
+
role?: 'application' | 'dialog' | undefined;
|
|
285
|
+
}
|
|
286
|
+
interface SingleProps {
|
|
287
|
+
/** The selected date. */
|
|
288
|
+
selected?: Date | undefined | null;
|
|
289
|
+
/** Event handler when a day is selected. */
|
|
290
|
+
onSelect?: OnSelectHandler<Date | undefined>;
|
|
291
|
+
/** The default selected date (for uncontrolled usage). */
|
|
292
|
+
defaultSelected?: Date;
|
|
293
|
+
}
|
|
294
|
+
interface RangeProps {
|
|
295
|
+
/**
|
|
296
|
+
* When `true`, the range will reset when including a disabled day.
|
|
297
|
+
*/
|
|
298
|
+
excludeDisabled?: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* The minimum number of nights to include in the range.
|
|
301
|
+
*/
|
|
302
|
+
min?: number;
|
|
303
|
+
/**
|
|
304
|
+
* The maximum number of nights to include in the range.
|
|
305
|
+
*/
|
|
306
|
+
max?: number;
|
|
307
|
+
/** The selected range. */
|
|
308
|
+
selected?: DateRange | undefined | null;
|
|
309
|
+
/** Event handler when the selection changes. */
|
|
310
|
+
onSelect?: OnSelectHandler<DateRange | undefined>;
|
|
311
|
+
/** The default selected range (for uncontrolled usage). */
|
|
312
|
+
defaultSelected?: DateRange;
|
|
313
|
+
}
|
|
314
|
+
export type DateCalendarProps = BaseProps & SingleProps;
|
|
315
|
+
export type DateRangeCalendarProps = BaseProps & RangeProps;
|
|
316
|
+
export {};
|
|
317
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/calendar/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC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|
+
preview: string;
|
|
7
|
+
preview_start: string;
|
|
8
|
+
preview_end: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const COMMON_PROPS: {
|
|
11
|
+
readonly animate: true;
|
|
12
|
+
readonly showOutsideDays: false;
|
|
13
|
+
readonly showWeekNumber: false;
|
|
14
|
+
readonly hideWeekdays: false;
|
|
15
|
+
readonly captionLayout: "label";
|
|
16
|
+
readonly fixedWeeks: false;
|
|
17
|
+
readonly hideNavigation: false;
|
|
18
|
+
readonly classNames: {
|
|
19
|
+
root: string;
|
|
20
|
+
day: string;
|
|
21
|
+
day_button: string;
|
|
22
|
+
caption_label: string;
|
|
23
|
+
button_next: string;
|
|
24
|
+
button_previous: string;
|
|
25
|
+
chevron: string;
|
|
26
|
+
nav: string;
|
|
27
|
+
month_caption: string;
|
|
28
|
+
months: string;
|
|
29
|
+
month_grid: string;
|
|
30
|
+
weekday: string;
|
|
31
|
+
today: string;
|
|
32
|
+
selected: string;
|
|
33
|
+
disabled: string;
|
|
34
|
+
hidden: string;
|
|
35
|
+
range_start: string;
|
|
36
|
+
range_end: string;
|
|
37
|
+
range_middle: string;
|
|
38
|
+
weeks_before_enter: string;
|
|
39
|
+
weeks_before_exit: string;
|
|
40
|
+
weeks_after_enter: string;
|
|
41
|
+
weeks_after_exit: string;
|
|
42
|
+
caption_after_enter: string;
|
|
43
|
+
caption_after_exit: string;
|
|
44
|
+
caption_before_enter: string;
|
|
45
|
+
caption_before_exit: string;
|
|
46
|
+
};
|
|
47
|
+
readonly role: "application";
|
|
48
|
+
readonly components: {
|
|
49
|
+
readonly Day: typeof Day;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AA+BjC,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBf,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { CalendarDay } from 'react-day-picker';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import type { Modifiers } from '../types';
|
|
9
|
+
/**
|
|
10
|
+
* Render a grid cell for a specific day in the calendar.
|
|
11
|
+
*
|
|
12
|
+
* Handles interaction and focus for the day.
|
|
13
|
+
* @see https://daypicker.dev/guides/custom-components
|
|
14
|
+
*/
|
|
15
|
+
export declare function Day(props: {
|
|
16
|
+
/** The day to render. */
|
|
17
|
+
day: CalendarDay;
|
|
18
|
+
/** The modifiers to apply to the day. */
|
|
19
|
+
modifiers: Modifiers;
|
|
20
|
+
} & React.HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=day-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"day-cell.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/day-cell.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AA4F1C;;;;;GAKG;AACH,wBAAgB,GAAG,CAClB,KAAK,EAAE;IACN,yBAAyB;IACzB,GAAG,EAAE,WAAW,CAAC;IACjB,yCAAyC;IACzC,SAAS,EAAE,SAAS,CAAC;CACrB,GAAG,KAAK,CAAC,cAAc,CAAE,cAAc,CAAE,+BAqB1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/misc.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAE,cAAc,EAAE,MAAM,UAE1D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type Props<T> = {
|
|
2
|
+
defaultValue?: T;
|
|
3
|
+
value?: T | null | undefined;
|
|
4
|
+
onChange?: (newValue: T, ...args: any[]) => void;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Handles controlled and uncontrolled state for the selected calendar value.
|
|
8
|
+
* It is assumed that the `value` prop is controlled when it's not undefined:
|
|
9
|
+
* - initial date selected, uncontrolled: use a non-undefined`defaultValue`
|
|
10
|
+
* - initial date selected, controlled: use a non-undefined `value`
|
|
11
|
+
* - no date selected, controlled: set `value` to `null`
|
|
12
|
+
*
|
|
13
|
+
* The `onChange` prop will return `undefined` when no date is selected,
|
|
14
|
+
* regardless of controlled / uncontrolled. It is expected that the consumer
|
|
15
|
+
* of the component will handle setting the value to `null` to indicate no date
|
|
16
|
+
* selected in controlled mode.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The props object.
|
|
19
|
+
* @param props.defaultValue - The default value.
|
|
20
|
+
* @param props.onChange - The onChange callback.
|
|
21
|
+
* @param props.value - The value.
|
|
22
|
+
*
|
|
23
|
+
* @return The value and the setValue function.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useControlledValue<T>({ defaultValue, onChange, value: valueProp, }: Props<T>): readonly [NonNullable<T> | undefined, (newValue: T, ...args: any[]) => void];
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=use-controlled-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-controlled-value.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/use-controlled-value.ts"],"names":[],"mappings":"AAKA,KAAK,KAAK,CAAE,CAAC,IAAK;IACjB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAM,IAAI,CAAC;CACnD,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAE,CAAC,EAAI,EACxC,YAAY,EACZ,QAAQ,EACR,KAAK,EAAE,SAAS,GAChB,EAAE,KAAK,CAAE,CAAC,CAAE,gEA1BuB,GAAG,EAAE,KAAM,IAAI,EAoDlD"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Modifiers, BaseProps } from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* Returns localization props for the calendar components.
|
|
7
|
+
*
|
|
8
|
+
* Notes:
|
|
9
|
+
* - the following props should be intended as defaults, and should
|
|
10
|
+
* be overridden by consumer props if listed as public props.
|
|
11
|
+
* - It is possible for the translated strings to use a different locale
|
|
12
|
+
* than the formatted dates and the computed `dir`. This is because the
|
|
13
|
+
* translation function doesn't expose the locale used for the translated
|
|
14
|
+
* strings, meaning that the dates are formatted using the `locale` prop.
|
|
15
|
+
* For a correct localized experience, consumers should make sure that
|
|
16
|
+
* translation context and `locale` prop are consistent.
|
|
17
|
+
* @param props
|
|
18
|
+
* @param props.locale
|
|
19
|
+
* @param props.timeZone
|
|
20
|
+
* @param props.mode
|
|
21
|
+
*/
|
|
22
|
+
export declare const useLocalizationProps: ({ locale, timeZone, mode, }: {
|
|
23
|
+
locale: NonNullable<BaseProps["locale"]>;
|
|
24
|
+
timeZone: BaseProps["timeZone"];
|
|
25
|
+
mode: "single" | "range";
|
|
26
|
+
}) => {
|
|
27
|
+
readonly 'aria-label': import("@wordpress/i18n/build-types/types").TranslatableText<"Date calendar"> | import("@wordpress/i18n/build-types/types").TranslatableText<"Date range calendar">;
|
|
28
|
+
readonly labels: {
|
|
29
|
+
/**
|
|
30
|
+
* The label for the month grid.
|
|
31
|
+
* @param date
|
|
32
|
+
*/
|
|
33
|
+
readonly labelGrid: (date: Date) => string;
|
|
34
|
+
/**
|
|
35
|
+
* The label for the gridcell, when the calendar is not interactive.
|
|
36
|
+
* @param date
|
|
37
|
+
* @param modifiers
|
|
38
|
+
*/
|
|
39
|
+
readonly labelGridcell: (date: Date, modifiers?: Modifiers) => string;
|
|
40
|
+
/** The label for the "next month" button. */
|
|
41
|
+
readonly labelNext: () => import("@wordpress/i18n/build-types/types").TranslatableText<"Go to the Next Month">;
|
|
42
|
+
/** The label for the "previous month" button. */
|
|
43
|
+
readonly labelPrevious: () => import("@wordpress/i18n/build-types/types").TranslatableText<"Go to the Previous Month">;
|
|
44
|
+
/**
|
|
45
|
+
* The label for the day button.
|
|
46
|
+
* @param date
|
|
47
|
+
* @param modifiers
|
|
48
|
+
*/
|
|
49
|
+
readonly labelDayButton: (date: Date, modifiers?: Modifiers) => string;
|
|
50
|
+
/**
|
|
51
|
+
* The label for the weekday.
|
|
52
|
+
* @param date
|
|
53
|
+
*/
|
|
54
|
+
readonly labelWeekday: (date: Date) => string;
|
|
55
|
+
};
|
|
56
|
+
readonly locale: import("date-fns").Locale;
|
|
57
|
+
readonly dir: "ltr" | "rtl";
|
|
58
|
+
readonly formatters: {
|
|
59
|
+
readonly formatWeekdayName: (date: Date) => string;
|
|
60
|
+
readonly formatCaption: (date: Date) => string;
|
|
61
|
+
};
|
|
62
|
+
readonly timeZone: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=use-localization-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-localization-props.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/use-localization-props.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAsBrD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB,gCAI9B;IACF,MAAM,EAAE,WAAW,CAAE,SAAS,CAAE,QAAQ,CAAE,CAAE,CAAC;IAC7C,QAAQ,EAAE,SAAS,CAAE,UAAU,CAAE,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CACzB;;;QAmCG;;;WAGG;mCACgB,IAAI;QACvB;;;;WAIG;uCAEI,IAAI,cAEE,SAAS;QAatB,6CAA6C;;QAE7C,iDAAiD;;QAEjD;;;;WAIG;wCAEI,IAAI,cAEE,SAAS;QAoBtB;;;WAGG;sCACmB,IAAI;;;;;2CAMC,IAAI;uCAGR,IAAI;;;CAO9B,CAAC"}
|
|
@@ -4,10 +4,13 @@ export declare const HORIZONTAL_GRADIENT_ORIENTATION: {
|
|
|
4
4
|
readonly type: "angular";
|
|
5
5
|
readonly value: "90";
|
|
6
6
|
};
|
|
7
|
-
export declare const GRADIENT_OPTIONS: {
|
|
7
|
+
export declare const GRADIENT_OPTIONS: ({
|
|
8
8
|
value: string;
|
|
9
|
-
label:
|
|
10
|
-
}
|
|
9
|
+
label: import("@wordpress/i18n/build-types/types").TranslatableText<"Linear">;
|
|
10
|
+
} | {
|
|
11
|
+
value: string;
|
|
12
|
+
label: import("@wordpress/i18n/build-types/types").TranslatableText<"Radial">;
|
|
13
|
+
})[];
|
|
11
14
|
export declare const DIRECTIONAL_ORIENTATION_ANGLE_MAP: {
|
|
12
15
|
top: number;
|
|
13
16
|
'top right': number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,6EAC8C,CAAC;AAE5E,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AAEX,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,6EAC8C,CAAC;AAE5E,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;IAG5B,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;CAa7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-select.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/custom-select.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACX,mBAAmB,IAAI,uBAAuB,EAC9C,iBAAiB,EAEjB,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,mBAAmB,kDACsB,CAAC;
|
|
1
|
+
{"version":3,"file":"custom-select.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/custom-select.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACX,mBAAmB,IAAI,uBAAuB,EAC9C,iBAAiB,EAEjB,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,mBAAmB,kDACsB,CAAC;AAyDvD,iBAAS,aAAa,CACrB,KAAK,EAAE,0BAA0B,GAChC,kBAAkB,GAClB,iBAAiB,GACjB,sBAAsB,+BAsEvB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -18,9 +18,21 @@ import type { Size } from './types';
|
|
|
18
18
|
* @param slug a string representation of the size (eg: `medium`).
|
|
19
19
|
*/
|
|
20
20
|
export declare const findSizeBySlug: (sizes: Size[], slug: string) => Size | undefined;
|
|
21
|
-
declare const _default: {
|
|
22
|
-
name:
|
|
21
|
+
declare const _default: ({
|
|
22
|
+
name: import("@wordpress/i18n/build-types/types").TranslatableText<"None">;
|
|
23
23
|
slug: string;
|
|
24
|
-
}
|
|
24
|
+
} | {
|
|
25
|
+
name: import("@wordpress/i18n/build-types/types").TranslatableText<"Small">;
|
|
26
|
+
slug: string;
|
|
27
|
+
} | {
|
|
28
|
+
name: import("@wordpress/i18n/build-types/types").TranslatableText<"Medium">;
|
|
29
|
+
slug: string;
|
|
30
|
+
} | {
|
|
31
|
+
name: import("@wordpress/i18n/build-types/types").TranslatableText<"Large">;
|
|
32
|
+
slug: string;
|
|
33
|
+
} | {
|
|
34
|
+
name: import("@wordpress/i18n/build-types/types").TranslatableText<"Extra Large">;
|
|
35
|
+
slug: string;
|
|
36
|
+
})[];
|
|
25
37
|
export default _default;
|
|
26
38
|
//# sourceMappingURL=sizes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../src/dimension-control/sizes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAY,IAAI,EAAE,QAAQ,MAAM,qBACd,CAAC
|
|
1
|
+
{"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../src/dimension-control/sizes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAY,IAAI,EAAE,QAAQ,MAAM,qBACd,CAAC;;;;;;;;;;;;;;;;;AAE9C,wBAqBE"}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* When there are 5 font sizes or fewer, we assume that the font sizes are
|
|
5
5
|
* ordered by size and show T-shirt labels.
|
|
6
6
|
*/
|
|
7
|
-
export declare const T_SHIRT_ABBREVIATIONS:
|
|
7
|
+
export declare const T_SHIRT_ABBREVIATIONS: (import("@wordpress/i18n/build-types/types").TranslatableText<"S"> | import("@wordpress/i18n/build-types/types").TranslatableText<"M"> | import("@wordpress/i18n/build-types/types").TranslatableText<"L"> | import("@wordpress/i18n/build-types/types").TranslatableText<"XL"> | import("@wordpress/i18n/build-types/types").TranslatableText<"XXL">)[];
|
|
8
8
|
/**
|
|
9
9
|
* List of T-shirt names.
|
|
10
10
|
*
|
|
11
11
|
* When there are 5 font sizes or fewer, we assume that the font sizes are
|
|
12
12
|
* ordered by size and show T-shirt labels.
|
|
13
13
|
*/
|
|
14
|
-
export declare const T_SHIRT_NAMES:
|
|
14
|
+
export declare const T_SHIRT_NAMES: (import("@wordpress/i18n/build-types/types").TranslatableText<"Small"> | import("@wordpress/i18n/build-types/types").TranslatableText<"Medium"> | import("@wordpress/i18n/build-types/types").TranslatableText<"Large"> | import("@wordpress/i18n/build-types/types").TranslatableText<"Extra Large"> | import("@wordpress/i18n/build-types/types").TranslatableText<"Extra Extra Large">)[];
|
|
15
15
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/constants.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/constants.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,0VAWjC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,8XAMzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form-token-field/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,mBAAmB,EAAa,MAAM,SAAS,CAAC;AAa9D;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAE,KAAK,EAAE,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form-token-field/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,mBAAmB,EAAa,MAAM,SAAS,CAAC;AAa9D;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAE,KAAK,EAAE,mBAAmB,+BA6tBzD;AAED,eAAe,cAAc,CAAC"}
|
package/build-types/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ default as __experimentalBoxControl, default as BoxControl, applyValueToSides as
|
|
|
19
19
|
export { default as Button } from './button';
|
|
20
20
|
export { default as ButtonGroup } from './button-group';
|
|
21
21
|
export { Card, CardBody, CardDivider, CardFooter, CardHeader, CardMedia, } from './card';
|
|
22
|
+
export { DateCalendar, DateRangeCalendar, TZDate } from './calendar';
|
|
22
23
|
export { default as CheckboxControl } from './checkbox-control';
|
|
23
24
|
export { default as ClipboardButton } from './clipboard-button';
|
|
24
25
|
export { default as __experimentalPaletteEdit } from './palette-edit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACN,GAAG,EACH,IAAI,EACJ,MAAM,EACN,OAAO,EACP,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,cAAc,EACd,cAAc,GACd,MAAM,uBAAuB,CAAC;AAG/B,OAAO;AACN,2DAA2D;AAC3D,OAAO,IAAI,oCAAoC,EAC/C,OAAO,IAAI,sBAAsB,GACjC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACN,OAAO,IAAI,OAAO,EAClB,mBAAmB,IAAI,6BAA6B,GACpD,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EACN,OAAO,IAAI,YAAY,EACvB,oBAAoB,IAAI,8BAA8B,GACtD,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,W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