@cdx-ui/components 0.2.5 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/coverage.svg +1 -1
  2. package/docs/components/bottom-sheet/content.md +2 -0
  3. package/docs/components/calendar/content.md +25 -1
  4. package/docs/components/carousel/content.md +1 -1
  5. package/docs/components/data-grid/content.md +50 -8
  6. package/docs/components/icon-button/content.md +23 -1
  7. package/docs/components/month-calendar/content.md +2 -0
  8. package/docs/components/range-calendar/content.md +3 -1
  9. package/docs/components/toast/content.md +23 -7
  10. package/docs/llms.txt +2 -0
  11. package/docs/resources/release-notes/0.2.5/content.md +25 -0
  12. package/docs/resources/release-notes/0.3.0/content.md +19 -0
  13. package/docs/resources/release-notes/content.md +2 -0
  14. package/lib/commonjs/components/BottomSheet/index.js +25 -1
  15. package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
  16. package/lib/commonjs/components/BottomSheet/styles.js +8 -2
  17. package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
  18. package/lib/commonjs/components/Calendar/CalendarMonthHeader.js +15 -5
  19. package/lib/commonjs/components/Calendar/CalendarMonthHeader.js.map +1 -1
  20. package/lib/commonjs/components/Calendar/CalendarYearList.js +116 -0
  21. package/lib/commonjs/components/Calendar/CalendarYearList.js.map +1 -0
  22. package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js +58 -31
  23. package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js.map +1 -1
  24. package/lib/commonjs/components/Calendar/flashCalendarAdapter.js +22 -3
  25. package/lib/commonjs/components/Calendar/flashCalendarAdapter.js.map +1 -1
  26. package/lib/commonjs/components/Calendar/index.js +6 -2
  27. package/lib/commonjs/components/Calendar/index.js.map +1 -1
  28. package/lib/commonjs/components/Calendar/styles.js +16 -2
  29. package/lib/commonjs/components/Calendar/styles.js.map +1 -1
  30. package/lib/commonjs/components/IconButton/styles.js +107 -2
  31. package/lib/commonjs/components/IconButton/styles.js.map +1 -1
  32. package/lib/commonjs/components/MonthCalendar/index.js +39 -13
  33. package/lib/commonjs/components/MonthCalendar/index.js.map +1 -1
  34. package/lib/commonjs/components/RangeCalendar/index.js +6 -2
  35. package/lib/commonjs/components/RangeCalendar/index.js.map +1 -1
  36. package/lib/commonjs/components/Toast/index.js +5 -2
  37. package/lib/commonjs/components/Toast/index.js.map +1 -1
  38. package/lib/module/components/BottomSheet/index.js +27 -3
  39. package/lib/module/components/BottomSheet/index.js.map +1 -1
  40. package/lib/module/components/BottomSheet/styles.js +8 -2
  41. package/lib/module/components/BottomSheet/styles.js.map +1 -1
  42. package/lib/module/components/Calendar/CalendarMonthHeader.js +15 -5
  43. package/lib/module/components/Calendar/CalendarMonthHeader.js.map +1 -1
  44. package/lib/module/components/Calendar/CalendarYearList.js +112 -0
  45. package/lib/module/components/Calendar/CalendarYearList.js.map +1 -0
  46. package/lib/module/components/Calendar/CalendarYearPickerGrid.js +61 -34
  47. package/lib/module/components/Calendar/CalendarYearPickerGrid.js.map +1 -1
  48. package/lib/module/components/Calendar/flashCalendarAdapter.js +20 -2
  49. package/lib/module/components/Calendar/flashCalendarAdapter.js.map +1 -1
  50. package/lib/module/components/Calendar/index.js +7 -3
  51. package/lib/module/components/Calendar/index.js.map +1 -1
  52. package/lib/module/components/Calendar/styles.js +15 -1
  53. package/lib/module/components/Calendar/styles.js.map +1 -1
  54. package/lib/module/components/IconButton/styles.js +107 -2
  55. package/lib/module/components/IconButton/styles.js.map +1 -1
  56. package/lib/module/components/MonthCalendar/index.js +42 -15
  57. package/lib/module/components/MonthCalendar/index.js.map +1 -1
  58. package/lib/module/components/RangeCalendar/index.js +7 -3
  59. package/lib/module/components/RangeCalendar/index.js.map +1 -1
  60. package/lib/module/components/Toast/index.js +5 -2
  61. package/lib/module/components/Toast/index.js.map +1 -1
  62. package/lib/typescript/components/BottomSheet/index.d.ts +8 -0
  63. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
  64. package/lib/typescript/components/BottomSheet/styles.d.ts +5 -1
  65. package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
  66. package/lib/typescript/components/Calendar/CalendarMonthHeader.d.ts.map +1 -1
  67. package/lib/typescript/components/Calendar/CalendarYearList.d.ts +23 -0
  68. package/lib/typescript/components/Calendar/CalendarYearList.d.ts.map +1 -0
  69. package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts +5 -1
  70. package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts.map +1 -1
  71. package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts +8 -0
  72. package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts.map +1 -1
  73. package/lib/typescript/components/Calendar/index.d.ts.map +1 -1
  74. package/lib/typescript/components/Calendar/styles.d.ts +7 -1
  75. package/lib/typescript/components/Calendar/styles.d.ts.map +1 -1
  76. package/lib/typescript/components/IconButton/styles.d.ts +2 -2
  77. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
  78. package/lib/typescript/components/MonthCalendar/index.d.ts.map +1 -1
  79. package/lib/typescript/components/RangeCalendar/index.d.ts.map +1 -1
  80. package/lib/typescript/components/Toast/index.d.ts.map +1 -1
  81. package/lib/typescript/components/ToggleButton/styles.d.ts +1 -1
  82. package/package.json +5 -5
  83. package/src/components/BottomSheet/index.tsx +174 -138
  84. package/src/components/BottomSheet/styles.ts +11 -3
  85. package/src/components/Calendar/CalendarMonthHeader.tsx +29 -22
  86. package/src/components/Calendar/CalendarYearList.tsx +136 -0
  87. package/src/components/Calendar/CalendarYearPickerGrid.tsx +60 -33
  88. package/src/components/Calendar/flashCalendarAdapter.ts +27 -2
  89. package/src/components/Calendar/index.tsx +8 -3
  90. package/src/components/Calendar/styles.ts +17 -1
  91. package/src/components/IconButton/styles.ts +111 -0
  92. package/src/components/MonthCalendar/index.tsx +55 -33
  93. package/src/components/RangeCalendar/index.tsx +8 -3
  94. package/src/components/Toast/index.tsx +13 -3
package/coverage.svg CHANGED
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="108" height="20" role="img" aria-label="coverage: 92.6%"><title>coverage: 92.6%</title><filter id="blur"><feGaussianBlur stdDeviation="16"/></filter><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="108" height="20" rx="3"/></clipPath><g clip-path="url(#r)"><rect width="61" height="20" fill="#555"/><rect x="61" width="47" height="20" fill="#4b0"/><rect width="108" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><g transform="scale(.1)"><g aria-hidden="true" fill="#010101"><text x="315" y="150" fill-opacity=".8" filter="url(#blur)" textLength="510">coverage</text><text x="315" y="150" fill-opacity=".3" textLength="510">coverage</text></g><text x="315" y="140" textLength="510">coverage</text></g><g transform="scale(.1)"><g aria-hidden="true" fill="#010101"><text x="835" y="150" fill-opacity=".8" filter="url(#blur)" textLength="370">92.6%</text><text x="835" y="150" fill-opacity=".3" textLength="370">92.6%</text></g><text x="835" y="140" textLength="370">92.6%</text></g></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="108" height="20" role="img" aria-label="coverage: 92.7%"><title>coverage: 92.7%</title><filter id="blur"><feGaussianBlur stdDeviation="16"/></filter><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="108" height="20" rx="3"/></clipPath><g clip-path="url(#r)"><rect width="61" height="20" fill="#555"/><rect x="61" width="47" height="20" fill="#4b0"/><rect width="108" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><g transform="scale(.1)"><g aria-hidden="true" fill="#010101"><text x="315" y="150" fill-opacity=".8" filter="url(#blur)" textLength="510">coverage</text><text x="315" y="150" fill-opacity=".3" textLength="510">coverage</text></g><text x="315" y="140" textLength="510">coverage</text></g><g transform="scale(.1)"><g aria-hidden="true" fill="#010101"><text x="835" y="150" fill-opacity=".8" filter="url(#blur)" textLength="370">92.7%</text><text x="835" y="150" fill-opacity=".3" textLength="370">92.7%</text></g><text x="835" y="140" textLength="370">92.7%</text></g></g></svg>
@@ -261,6 +261,7 @@ export default function BottomSheetHandleHiddenDemo() {
261
261
  | --- | --- | --- | --- |
262
262
  | `handleVisible?` | `boolean` | `true` | Show the drag handle indicator. When false, `handleComponent` is set to null. |
263
263
  | `footer?` | `React.ReactNode` | — | Footer content rendered via gorhom's BottomSheetFooter for animated positioning and safe-area handling. Pass it through this prop; a footer placed as a child does not animate with the sheet. |
264
+ | `fullBleed?` | `boolean \| null` | — | Removes `BottomSheet.Content`'s horizontal padding so content can span the sheet edge to edge. `BottomSheet.Content` inherits this unless it sets its own `fullBleed`. The footer keeps its padding. |
264
265
 
265
266
  Also accepts all props from `@gorhom/bottom-sheet`'s `BottomSheetModal` including `snapPoints`, `enableDynamicSizing`, `onDismiss`, and `onChange`.
266
267
 
@@ -284,6 +285,7 @@ Also accepts all props from `@gorhom/bottom-sheet`'s `BottomSheetModal` includin
284
285
  | `children?` | `React.ReactNode` | — | — |
285
286
  | `className?` | `string` | — | — |
286
287
  | `hasSafeAreaInset?` | `boolean` | — | Adds bottom padding equal to the safe-area inset. |
288
+ | `fullBleed?` | `boolean \| null` | — | Removes horizontal padding. Inherits the parent `BottomSheet.Modal`'s `fullBleed` when omitted. |
287
289
  | `style?` | `ViewStyle` | — | — |
288
290
 
289
291
  ### BottomSheet.Footer
@@ -33,7 +33,7 @@ export default function CalendarBasicDemo() {
33
33
 
34
34
  ## Date limits
35
35
 
36
- Set `minValue` and `maxValue` to restrict which days can be selected.
36
+ Set `minValue` and `maxValue` to restrict which days can be selected. The bounds also set the year picker's range: it lists every year from the `minValue` year to the `maxValue` year and scrolls to the visible year when it opens.
37
37
 
38
38
  ```tsx
39
39
  import { useState } from 'react';
@@ -57,6 +57,28 @@ export default function CalendarMinMaxDemo() {
57
57
  }
58
58
  ```
59
59
 
60
+ With a bound unset, the year picker extends 100 years from today on that side. For a date of birth, set `maxValue` to today and leave `minValue` unset to reach any year in the past century.
61
+
62
+ ```tsx
63
+ import { useState } from 'react';
64
+ import { Calendar } from '@cdx-ui/components';
65
+ import { todayDateId, type DateId } from '@cdx-ui/formatters';
66
+
67
+ export default function CalendarDateOfBirthDemo() {
68
+ const [value, setValue] = useState<DateId | undefined>();
69
+
70
+ return (
71
+ <Calendar
72
+ value={value}
73
+ onValueChange={setValue}
74
+ maxValue={todayDateId()}
75
+ aria-label="Date of birth"
76
+ className="w-full max-w-sm"
77
+ />
78
+ );
79
+ }
80
+ ```
81
+
60
82
  ## Unavailable dates
61
83
 
62
84
  Pass `isDateUnavailable` to disable individual days — here, weekends and a holiday list for business-days-only payments.
@@ -109,6 +131,8 @@ export default function CalendarDisabledDemo() {
109
131
 
110
132
  By default, `Calendar` renders a month header with previous/next navigation and a year drill-down, followed by the day grid. `locale` defaults to `en-US` and controls weekday and month formatting.
111
133
 
134
+ The year drill-down replaces the day grid with a scrolling list of years at the same height. It lists the years from `minValue` to `maxValue`; a side with no bound extends 100 years before or after the current year. Selecting a year keeps the visible month, moved inside the bounds when the chosen year is a boundary year, and returns to the day grid. `isDateUnavailable` does not hide years.
135
+
112
136
  `isDateUnavailable` combines with `minValue` and `maxValue`: a day is selectable only when it is inside the bounds and the predicate returns `false`. The predicate runs for every day of the visible month; define it outside the component or memoize it so that check is skipped on renders that do not change it.
113
137
 
114
138
  | Prop | Type | Default | Description |
@@ -362,7 +362,7 @@ Ghost `IconButton` prev/next controls. Nest inside `Carousel` to read context, o
362
362
  | `accessibilityLargeContentTitle?` | `string` | — | When `accessibilityShowsLargeContentViewer` is set, this string will be used as title for the large content viewer. https://reactnative.dev/docs/accessibility#accessibilitylargecontenttitle |
363
363
  | `accessibilityRespondsToUserInteraction?` | `boolean` | — | Blocks the user from interacting with the component through keyboard while still allowing screen reader to interact with it if this View is still accessible. |
364
364
  | `size?` | `'default' \| 'small' \| null` | — | — |
365
- | `color?` | `'neutral' \| 'action' \| 'danger' \| null` | — | — |
365
+ | `color?` | `'neutral' \| 'action' \| 'danger' \| 'warning' \| 'success' \| 'info' \| null` | — | — |
366
366
  | `iconClassName?` | `string` | — | Passed through to the underlying `Icon`. |
367
367
  | `onHoverIn?` | `((event: MouseEvent) => void) \| null` | — | Called when the hover is activated to provide visual feedback. |
368
368
  | `onHoverOut?` | `((event: MouseEvent) => void) \| null` | — | Called when the hover is deactivated to undo visual feedback. |
@@ -334,12 +334,14 @@ export default function DataGridSelectionDemo() {
334
334
 
335
335
  ## Server data
336
336
 
337
- Set `paginationMode="server"` and `sortingMode="server"` to let your data source own those operations. Keep the models controlled, pass the current page in `rows`, and provide the full `rowCount`.
337
+ Set `paginationMode="server"` and `sortingMode="server"` to let your data source own those operations. `filterMode` follows `paginationMode` unless you set it, so server pagination also means server filtering. Keep the models controlled, pass the current page in `rows`, and provide the full `rowCount` of matching rows.
338
338
 
339
- Server-side filtering is not supported yet. Do not combine quick or header filters with server-paged rows; those filters only inspect the current `rows` array.
339
+ With server filtering, search and header filters no longer filter `rows`. Send `quickFilter` and `filterModel` to your data source instead. Both change on every keystroke, so debounce the request and return to page 0 when the debounced query changes, as this demo does. Passing `filterMode="client"` with server pagination filters only the current page of `rows`.
340
+
341
+ `GridFilterItem` will gain an optional `operator` field, defaulting to `'contains'`, in a future minor release. Existing `{ field, value }` items keep working, so server handlers should treat a missing `operator` as `'contains'`.
340
342
 
341
343
  ```tsx
342
- import { useState } from 'react';
344
+ import { useEffect, useMemo, useState } from 'react';
343
345
  import {
344
346
  DataGrid,
345
347
  type GridColDef,
@@ -366,8 +368,23 @@ const columns: GridColDef<Account>[] = [
366
368
  },
367
369
  ];
368
370
 
369
- function queryAccounts(paginationModel: GridPaginationModel, sortModel: GridSortModel): Account[] {
370
- const sortedRows = [...accounts];
371
+ // Mirrors the client quick filter: every filterable column's raw (unformatted) value,
372
+ // matched as a case-insensitive substring.
373
+ const searchableFields = columns
374
+ .filter((column) => column.filterable !== false)
375
+ .map((column) => column.field as keyof Account);
376
+
377
+ const SEARCH_DEBOUNCE_MS = 300;
378
+
379
+ function queryAccounts(
380
+ search: string,
381
+ paginationModel: GridPaginationModel,
382
+ sortModel: GridSortModel,
383
+ ): { rows: Account[]; rowCount: number } {
384
+ const needle = search.toLowerCase();
385
+ const sortedRows = accounts.filter((account) =>
386
+ searchableFields.some((field) => String(account[field]).toLowerCase().includes(needle)),
387
+ );
371
388
  const activeSort = sortModel.length > 0 ? sortModel[0] : undefined;
372
389
 
373
390
  if (activeSort) {
@@ -383,7 +400,10 @@ function queryAccounts(paginationModel: GridPaginationModel, sortModel: GridSort
383
400
  }
384
401
 
385
402
  const start = paginationModel.page * paginationModel.pageSize;
386
- return sortedRows.slice(start, start + paginationModel.pageSize);
403
+ return {
404
+ rows: sortedRows.slice(start, start + paginationModel.pageSize),
405
+ rowCount: sortedRows.length,
406
+ };
387
407
  }
388
408
 
389
409
  export default function DataGridServerDataDemo() {
@@ -392,15 +412,37 @@ export default function DataGridServerDataDemo() {
392
412
  pageSize: 5,
393
413
  });
394
414
  const [sortModel, setSortModel] = useState<GridSortModel>([]);
395
- const rows = queryAccounts(paginationModel, sortModel);
415
+ const [search, setSearch] = useState('');
416
+ const [debouncedSearch, setDebouncedSearch] = useState('');
417
+
418
+ useEffect(() => {
419
+ if (search === debouncedSearch) {
420
+ return;
421
+ }
422
+ const timeout = setTimeout(() => {
423
+ setDebouncedSearch(search);
424
+ // The user may have paged during the debounce; a new result set always starts on page 0.
425
+ setPaginationModel((current) => (current.page === 0 ? current : { ...current, page: 0 }));
426
+ }, SEARCH_DEBOUNCE_MS);
427
+ return () => clearTimeout(timeout);
428
+ }, [search, debouncedSearch]);
429
+
430
+ const { rows, rowCount } = useMemo(
431
+ () => queryAccounts(debouncedSearch, paginationModel, sortModel),
432
+ [debouncedSearch, paginationModel, sortModel],
433
+ );
396
434
 
397
435
  return (
398
436
  <DataGrid
399
437
  rows={rows}
400
438
  columns={columns}
401
- rowCount={accounts.length}
439
+ rowCount={rowCount}
402
440
  paginationMode="server"
403
441
  sortingMode="server"
442
+ filterMode="server"
443
+ showToolbar
444
+ quickFilter={search}
445
+ onQuickFilterChange={setSearch}
404
446
  paginationModel={paginationModel}
405
447
  onPaginationModelChange={setPaginationModel}
406
448
  sortModel={sortModel}
@@ -37,6 +37,9 @@ export default function IconButtonSolidDemo() {
37
37
  <IconButton as={ArrowCircleUp} color="neutral" accessibilityLabel="Neutral" />
38
38
  <IconButton as={ArrowCircleUp} color="action" accessibilityLabel="Action" />
39
39
  <IconButton as={ArrowCircleUp} color="danger" accessibilityLabel="Danger" />
40
+ <IconButton as={ArrowCircleUp} color="warning" accessibilityLabel="Warning" />
41
+ <IconButton as={ArrowCircleUp} color="success" accessibilityLabel="Success" />
42
+ <IconButton as={ArrowCircleUp} color="info" accessibilityLabel="Info" />
40
43
  </Box>
41
44
  );
42
45
  }
@@ -59,6 +62,19 @@ export default function IconButtonSubtleDemo() {
59
62
  />
60
63
  <IconButton as={ArrowCircleUp} variant="subtle" color="action" accessibilityLabel="Action" />
61
64
  <IconButton as={ArrowCircleUp} variant="subtle" color="danger" accessibilityLabel="Danger" />
65
+ <IconButton
66
+ as={ArrowCircleUp}
67
+ variant="subtle"
68
+ color="warning"
69
+ accessibilityLabel="Warning"
70
+ />
71
+ <IconButton
72
+ as={ArrowCircleUp}
73
+ variant="subtle"
74
+ color="success"
75
+ accessibilityLabel="Success"
76
+ />
77
+ <IconButton as={ArrowCircleUp} variant="subtle" color="info" accessibilityLabel="Info" />
62
78
  </Box>
63
79
  );
64
80
  }
@@ -76,6 +92,9 @@ export default function IconButtonGhostDemo() {
76
92
  <IconButton as={ArrowCircleUp} variant="ghost" color="neutral" accessibilityLabel="Neutral" />
77
93
  <IconButton as={ArrowCircleUp} variant="ghost" color="action" accessibilityLabel="Action" />
78
94
  <IconButton as={ArrowCircleUp} variant="ghost" color="danger" accessibilityLabel="Danger" />
95
+ <IconButton as={ArrowCircleUp} variant="ghost" color="warning" accessibilityLabel="Warning" />
96
+ <IconButton as={ArrowCircleUp} variant="ghost" color="success" accessibilityLabel="Success" />
97
+ <IconButton as={ArrowCircleUp} variant="ghost" color="info" accessibilityLabel="Info" />
79
98
  </Box>
80
99
  );
81
100
  }
@@ -93,6 +112,9 @@ export default function IconButtonColorsDemo() {
93
112
  <IconButton as={ArrowCircleUp} color="neutral" accessibilityLabel="Neutral" />
94
113
  <IconButton as={ArrowCircleUp} color="action" accessibilityLabel="Action" />
95
114
  <IconButton as={ArrowCircleUp} color="danger" accessibilityLabel="Danger" />
115
+ <IconButton as={ArrowCircleUp} color="warning" accessibilityLabel="Warning" />
116
+ <IconButton as={ArrowCircleUp} color="success" accessibilityLabel="Success" />
117
+ <IconButton as={ArrowCircleUp} color="info" accessibilityLabel="Info" />
96
118
  </Box>
97
119
  );
98
120
  }
@@ -176,7 +198,7 @@ export default function IconButtonAsLinkDemo() {
176
198
  | `children?` | `React.ReactNode \| ((state: PressableStateCallbackType) => React.ReactNode)` | — | Either children or a render prop that receives a boolean reflecting whether the component is currently pressed. |
177
199
  | `size?` | `'default' \| 'small' \| null` | — | — |
178
200
  | `variant?` | `'solid' \| 'subtle' \| 'ghost' \| 'tint'` | `'solid'` | Visual style variant. |
179
- | `color?` | `'neutral' \| 'action' \| 'danger' \| null` | — | — |
201
+ | `color?` | `'neutral' \| 'action' \| 'danger' \| 'warning' \| 'success' \| 'info' \| null` | — | — |
180
202
  | `as` | `ForgeIcon` | — | Forge icon component to render (icon-only control). |
181
203
  | `iconClassName?` | `string` | — | Passed through to the underlying `Icon`. |
182
204
  | `isDisabled?` | `boolean` | — | If true, the button will be disabled. |
@@ -57,6 +57,8 @@ export default function MonthCalendarDisabledDemo() {
57
57
 
58
58
  By default, `MonthCalendar` renders a year header — tap it to switch to the year picker, or use the previous/next controls to shift the visible year — followed by a twelve-month grid. `locale` defaults to `en-US` and controls month formatting.
59
59
 
60
+ The year picker replaces the month grid with a scrolling list of years at the same height and opens scrolled to the visible year. It lists the years from `minValue` to `maxValue`; a side with no bound extends 100 years before or after the current year.
61
+
60
62
  | Prop | Type | Default | Description |
61
63
  | --- | --- | --- | --- |
62
64
  | `className?` | `string` | — | — |
@@ -38,7 +38,7 @@ export default function RangeCalendarBasicDemo() {
38
38
 
39
39
  ## Date limits
40
40
 
41
- Set `minValue` and `maxValue` to restrict which days can be selected.
41
+ Set `minValue` and `maxValue` to restrict which days can be selected. The bounds also set the year picker's range: it lists every year from the `minValue` year to the `maxValue` year, and a side with no bound extends 100 years from today.
42
42
 
43
43
  ```tsx
44
44
  import { useState } from 'react';
@@ -94,6 +94,8 @@ export default function RangeCalendarDisabledDemo() {
94
94
 
95
95
  By default, `RangeCalendar` renders a month header with previous/next navigation and a year drill-down, followed by the day grid. Selecting a day while a range is empty or complete starts a new range; the second tap completes it, and an inverted selection is normalized so the earlier day becomes the start. `locale` defaults to `en-US` and controls weekday and month formatting.
96
96
 
97
+ The year drill-down replaces the day grid with a scrolling list of years at the same height, scrolled to the visible year when it opens. It lists the years from `minValue` to `maxValue`; a side with no bound extends 100 years before or after the current year. Selecting a year keeps the visible month, moved inside the bounds when the chosen year is a boundary year, and returns to the day grid.
98
+
97
99
  | Prop | Type | Default | Description |
98
100
  | --- | --- | --- | --- |
99
101
  | `className?` | `string` | — | Additional Uniwind/Tailwind classes, merged after the calendar's own styles. |
@@ -42,13 +42,24 @@ export default function ToastBasicDemo() {
42
42
 
43
43
  ## Colors
44
44
 
45
- `color` sets the surface fill and the title, description, and icon. `neutral` is a dark inverse surface; status values use the matching subtle fill and on-subtle content color.
45
+ `color` sets the surface fill and the title, description, icon, and close control. `neutral` is a dark inverse surface; status values use the matching subtle fill and on-subtle content color. On a `neutral` toast the close glyph keeps the inverse stand-in so it stays legible on the dark surface.
46
46
 
47
47
  ```tsx
48
- import { Button, HStack, useToast, type ToastColor } from '@cdx-ui/components';
48
+ import { Button, HStack, Toast, useToast, type ToastComponentProps } from '@cdx-ui/components';
49
+ import { CheckCircle, ErrorIcon, InfoIcon, WarningIcon } from '@cdx-ui/icons';
50
+
51
+ const COLOR_ICONS = {
52
+ neutral: InfoIcon,
53
+ info: InfoIcon,
54
+ success: CheckCircle,
55
+ warning: WarningIcon,
56
+ danger: ErrorIcon,
57
+ } as const;
58
+
59
+ type ToastSemanticColor = keyof typeof COLOR_ICONS;
49
60
 
50
61
  const scenarios: {
51
- color: ToastColor;
62
+ color: ToastSemanticColor;
52
63
  buttonColor: 'action' | 'danger' | 'warning' | 'success';
53
64
  label: string;
54
65
  description: string;
@@ -97,9 +108,14 @@ export default function ToastColorsDemo() {
97
108
  color={scenario.buttonColor}
98
109
  onPress={() =>
99
110
  toast.show({
100
- color: scenario.color,
101
- label: scenario.label,
102
- description: scenario.description,
111
+ component: (props: ToastComponentProps) => (
112
+ <Toast {...props} color={scenario.color}>
113
+ <Toast.Icon as={COLOR_ICONS[scenario.color]} />
114
+ <Toast.Title>{scenario.label}</Toast.Title>
115
+ <Toast.Description>{scenario.description}</Toast.Description>
116
+ <Toast.Close />
117
+ </Toast>
118
+ ),
103
119
  })
104
120
  }
105
121
  >
@@ -374,7 +390,7 @@ Action control rendered as a [`Button`](https://design.candescent.com/docs/compo
374
390
 
375
391
  ### Toast.Close
376
392
 
377
- Dismiss control rendered as an [`IconButton`](https://design.candescent.com/docs/components/icon-button/content.md) and accepting all of its props except `as`, which is narrowed to a `ForgeIcon`. Defaults to `variant="ghost"`, `size="small"`, `aria-label="Close"`, and the close glyph. Pressing it hides the parent toast, so no `onPress` is required; a supplied `onPress` runs in addition.
393
+ Dismiss control rendered as an [`IconButton`](https://design.candescent.com/docs/components/icon-button/content.md) and accepting all of its props except `as`, which is narrowed to a `ForgeIcon`. Defaults to `variant="ghost"`, `size="small"`, `aria-label="Close"`, and the close glyph. With no `color` of its own it follows the parent toast's `color`; on a `neutral` toast that uses an inverse stand-in for the glyph and hover so they stay legible on the dark surface, and an explicit `color` still wins. Pressing it hides the parent toast, so no `onPress` is required; a supplied `onPress` runs in addition.
378
394
 
379
395
  ## Hook
380
396
 
package/docs/llms.txt CHANGED
@@ -138,6 +138,8 @@ Links point at each page's `content.md`, which carries the page's prose, demo so
138
138
 
139
139
  ## Release notes
140
140
 
141
+ - [0.3.0](resources/release-notes/0.3.0/content.md): Calendar and MonthCalendar year pickers scroll the full selectable range; BottomSheet adds fullBleed and updated Content and Footer padding.
142
+ - [0.2.5](resources/release-notes/0.2.5/content.md): Box is the supported layout primitive with hardened stacks; View from @cdx-ui/components is deprecated. Align Expo apps with SDK 57 and React Native 0.86.
141
143
  - [0.2.4](resources/release-notes/0.2.4/content.md): ScrollShadow fades scroll edges on iOS, Android, and web; ListItem.SectionHeader adds a gradient variant for account-style lists.
142
144
  - [0.2.3](resources/release-notes/0.2.3/content.md): ReorderableList brings drag-and-drop list reordering on web and native; Tile flat rows show the selected background again.
143
145
  - [0.2.2](resources/release-notes/0.2.2/content.md): Fixes web Text layout in production, Button solid edges on native, and Field required labels on web.
@@ -0,0 +1,25 @@
1
+ # 0.2.5 (https://design.candescent.com/docs/resources/release-notes/0.2.5)
2
+
3
+ Box is the supported layout primitive with hardened stacks; View from @cdx-ui/components is deprecated. Align Expo apps with SDK 57 and React Native 0.86.
4
+
5
+ This release makes **[Box](https://design.candescent.com/docs/components/box/content.md)** the supported layout container, aligns the native toolchain with Expo SDK 57 and React Native 0.86, and fixes touch targets and styling on several inputs.
6
+
7
+ ## What's new
8
+
9
+ **[Box](https://design.candescent.com/docs/components/box/content.md)** — Forge UI’s cross-platform layout primitive (a styled `View` on native and a `div` on web). Box gains `asChild` for composition and emits `data-slot="box"`. **[HStack](https://design.candescent.com/docs/components/stack/content.md)** and **[VStack](https://design.candescent.com/docs/components/stack/content.md)** now render through Box and emit `data-slot="hstack"` and `data-slot="vstack"`; caller `data-*` attributes still win when you compose higher-level components. The `View` re-export from `@cdx-ui/components` remains at runtime but is marked `@deprecated` in favor of Box; migrate imports when you touch layout code ([#801](https://github.com/dfh-candescent/forge-design-system/pull/801)).
10
+
11
+ **Expo and React Native** — Forge UI’s development and CI stack now targets Expo SDK 57, React Native 0.86, and React 19.2. If you integrate `@cdx-ui/native` or mirror Forge’s Expo app setup, bump your app to a compatible SDK 57 / RN 0.86 line before upgrading these packages ([#737](https://github.com/dfh-candescent/forge-design-system/pull/737)).
12
+
13
+ ## Bug fixes
14
+
15
+ **[Slider](https://design.candescent.com/docs/components/slider/content.md)** — Restores the rail hit area on React Native 0.85 and later, where `StyleSheet.absoluteFillObject` was removed and absolute positioning on the rail silently stopped applying ([#732](https://github.com/dfh-candescent/forge-design-system/pull/732)).
16
+
17
+ **ColorSlider** — Sizes the track from layout so scaled ancestor views no longer skew thumb position ([#807](https://github.com/dfh-candescent/forge-design-system/pull/807)).
18
+
19
+ **[Breadcrumbs](https://design.candescent.com/docs/components/breadcrumbs/content.md)** — Direct `Icon` and `Text` children of `Breadcrumbs.Item` and separators pick up the item’s state color on native and inherit content color on web unless they set their own `color` ([#802](https://github.com/dfh-candescent/forge-design-system/pull/802)).
20
+
21
+ **@cdx-ui/web** — The Vite pre-bundle patch for `react-native-worklets` matches both pre-0.10 and 0.10+ initializer paths, so Vite apps and the theme editor pre-bundle worklets without a dev-only self-check failure ([#735](https://github.com/dfh-candescent/forge-design-system/pull/735)).
22
+
23
+ ## Documentation
24
+
25
+ - **Docs site navigation** — Top-level sidebar folders (for example Developers under Getting Started) open by default so you see nested pages without expanding each section ([#794](https://github.com/dfh-candescent/forge-design-system/pull/794)).
@@ -0,0 +1,19 @@
1
+ # 0.3.0 (https://design.candescent.com/docs/resources/release-notes/0.3.0)
2
+
3
+ Calendar and MonthCalendar year pickers scroll the full selectable range; BottomSheet adds fullBleed and updated Content and Footer padding.
4
+
5
+ This release improves year selection in the calendar family and updates **[BottomSheet](https://design.candescent.com/docs/components/bottom-sheet/content.md)** layout padding and bleed options.
6
+
7
+ ## What's new
8
+
9
+ **[BottomSheet](https://design.candescent.com/docs/components/bottom-sheet/content.md)** — `BottomSheet.Modal` and `BottomSheet.Content` accept `fullBleed` so edge-to-edge content can drop horizontal padding, matching the design full-bleed variant. Set `fullBleed` on the modal to pass the behavior through to content, or override it on `Content` when you need mixed layouts ([#811](https://github.com/dfh-candescent/forge-design-system/pull/811)).
10
+
11
+ ## Bug fixes
12
+
13
+ **[Calendar](https://design.candescent.com/docs/components/calendar/content.md)**, **[MonthCalendar](https://design.candescent.com/docs/components/month-calendar/content.md)**, and **[RangeCalendar](https://design.candescent.com/docs/components/range-calendar/content.md)** — The year view scrolls across every year between `minValue` and `maxValue` (defaulting to a wide range when a bound is unset) instead of a short fixed window, opens scrolled to the current year, and keeps header navigation mounted so the header height stays stable in year view ([#812](https://github.com/dfh-candescent/forge-design-system/pull/812)).
14
+
15
+ **[BottomSheet](https://design.candescent.com/docs/components/bottom-sheet/content.md)** — `Content` and `Footer` horizontal padding matches the design spec ([#811](https://github.com/dfh-candescent/forge-design-system/pull/811)).
16
+
17
+ ## Dependencies
18
+
19
+ **@cdx-ui/\*** — Upgrade every installed Forge UI package to `0.3.0` together when you adopt this release.
@@ -8,6 +8,8 @@ Notes are generated from the release commit itself, so the versions and commit r
8
8
  each entry are exact. Releases that contained nothing but backlog or dependency bookkeeping
9
9
  are omitted.
10
10
 
11
+ - [0.3.0](https://design.candescent.com/docs/resources/release-notes/0.3.0/content.md) — 2026-10-13 — Calendar and MonthCalendar year pickers scroll the full selectable range; BottomSheet adds fullBleed and updated Content and Footer padding.
12
+ - [0.2.5](https://design.candescent.com/docs/resources/release-notes/0.2.5/content.md) — 2026-10-12 — Box is the supported layout primitive with hardened stacks; View from @cdx-ui/components is deprecated. Align Expo apps with SDK 57 and React Native 0.86.
11
13
  - [0.2.4](https://design.candescent.com/docs/resources/release-notes/0.2.4/content.md) — 2026-10-09 — ScrollShadow fades scroll edges on iOS, Android, and web; ListItem.SectionHeader adds a gradient variant for account-style lists.
12
14
  - [0.2.3](https://design.candescent.com/docs/resources/release-notes/0.2.3/content.md) — 2026-10-08 — ReorderableList brings drag-and-drop list reordering on web and native; Tile flat rows show the selected background again.
13
15
  - [0.2.2](https://design.candescent.com/docs/resources/release-notes/0.2.2/content.md) — 2026-10-07 — Fixes web Text layout in production, Button solid edges on native, and Field required labels on web.
@@ -17,6 +17,8 @@ var _sheetHeader = require("../sheet-header");
17
17
  var _styles = require("./styles");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
+ const SCOPE = 'BOTTOM_SHEET';
21
+ const useBottomSheetStyleContext = () => (0, _utils.useStyleContext)(SCOPE) ?? {};
20
22
  const ZERO_INSETS = {
21
23
  top: 0,
22
24
  bottom: 0,
@@ -59,10 +61,16 @@ const BottomSheetContent = /*#__PURE__*/(0, _react.forwardRef)(({
59
61
  children,
60
62
  className,
61
63
  hasSafeAreaInset,
64
+ fullBleed,
62
65
  style
63
66
  }, ref) => {
64
67
  const insets = useSafeInsets();
65
- const computedClassName = (0, _utils.cn)((0, _styles.bottomSheetContentVariants)(), className);
68
+ const {
69
+ fullBleed: fullBleedFromContext
70
+ } = useBottomSheetStyleContext();
71
+ const computedClassName = (0, _utils.cn)((0, _styles.bottomSheetContentVariants)({
72
+ fullBleed: fullBleed ?? fullBleedFromContext
73
+ }), className);
66
74
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
67
75
  ref: ref,
68
76
  className: computedClassName,
@@ -121,11 +129,20 @@ const CustomBackground = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative
121
129
  const BottomSheetModalStyled = /*#__PURE__*/(0, _react.forwardRef)(({
122
130
  handleVisible = true,
123
131
  footer,
132
+ fullBleed,
133
+ children,
124
134
  onDismiss,
125
135
  onChange,
126
136
  onAnimate,
127
137
  ...rest
128
138
  }, ref) => {
139
+ const parent = (0, _utils.useParentContext)();
140
+ const ctx = (0, _react.useMemo)(() => ({
141
+ ...parent,
142
+ [SCOPE]: {
143
+ fullBleed
144
+ }
145
+ }), [parent, fullBleed]);
129
146
  const renderFooter = (0, _react.useCallback)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSheet.BottomSheetFooter, {
130
147
  ...props,
131
148
  children: footer
@@ -244,6 +261,13 @@ const BottomSheetModalStyled = /*#__PURE__*/(0, _react.forwardRef)(({
244
261
  onAnimate: handleAnimate,
245
262
  ...(footer != null && {
246
263
  footerComponent: renderFooter
264
+ }),
265
+ children: typeof children === 'function' ? props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
266
+ value: ctx,
267
+ children: children(props)
268
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
269
+ value: ctx,
270
+ children: children
247
271
  })
248
272
  });
249
273
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_uniwind","_bottomSheet","_primitives","_utils","_sheetHeader","_styles","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ZERO_INSETS","top","bottom","left","right","useSafeInsets","useContext","SafeAreaInsetsContext","BottomSheetHeader","forwardRef","title","subtitle","children","className","onClose","closeAccessibilityLabel","onBack","backAccessibilityLabel","ref","jsx","SheetHeader","displayName","BottomSheetContent","hasSafeAreaInset","style","insets","computedClassName","cn","bottomSheetContentVariants","View","paddingBottom","pointerEvents","BottomSheetFooter","bottomSheetFooterVariants","Math","max","MAX_DYNAMIC_CONTENT_SIZE","Dimensions","height","CustomBackdrop","props","BottomSheetBackdrop","disappearsOnIndex","appearsOnIndex","opacity","pressBehavior","CustomBackground","bottomSheetBackgroundClassName","BottomSheetModalStyled","handleVisible","footer","onDismiss","onChange","onAnimate","rest","renderFooter","useCallback","modalRef","useRef","dismissedRef","sheetMountedRef","mountPendingRef","pendingDismissRef","presented","setPresented","useState","setModalRef","instance","current","dismissSheet","args","dismiss","markSheetMounted","pendingDismiss","useImperativeHandle","present","snapToIndex","snapToPosition","expand","collapse","close","forceClose","handleDismiss","handleChange","handleAnimate","id","useId","overlayId","useEscapeKey","groupId","layer","isTopmost","useOverlayStackRegistration","active","Platform","OS","capabilities","useEffect","backHandler","BackHandler","addEventListener","remove","sheetContainerStyle","useResolveClassNames","bottomSheetModalContainerClassName","handleIndicatorStyle","BottomSheetModal","enableDynamicSizing","maxDynamicContentSize","handleComponent","undefined","backdropComponent","backgroundComponent","footerComponent","BottomSheetScrollViewStyled","enableFooterMarginAdjustment","BottomSheetScrollView","BottomSheetViewStyled","BottomSheetView","BottomSheetModalProvider","BottomSheet","exports","Modal","Header","Content","Footer","Provider","ScrollView","useBottomSheet","useBottomSheetScrollable","useBottomSheetScrollableCreator"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/index.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAWA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAYA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;A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U,EAAEb,2BAA2B;EACvCrF,IAAI,EAAEwF;AACR,CAAwB;;AAExB;;AAEO,SAASW,cAAcA,CAAA,EAAG;EAC/B,MAAM9G,GAAG,GAAG,IAAAwC,aAAM,EAAsB,IAAI,CAAC;EAC7C,MAAMiB,OAAO,GAAG,IAAAnB,kBAAW,EAAC,MAAM;IAChCtC,GAAG,CAACkD,OAAO,EAAEO,OAAO,CAAC,CAAC;EACxB,CAAC,EAAE,EAAE,CAAC;EACN,MAAMJ,OAAO,GAAG,IAAAf,kBAAW,EAAC,MAAM;IAChCtC,GAAG,CAACkD,OAAO,EAAEG,OAAO,CAAC,CAAC;EACxB,CAAC,EAAE,EAAE,CAAC;EACN,OAAO;IAAErD,GAAG;IAAEyD,OAAO;IAAEJ;EAAQ,CAAC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS0D,wBAAwBA,CAAA,EAAG;EACzC,OAAO,IAAAC,4CAA+B,EAAC;IAAEf,4BAA4B,EAAE;EAAK,CAAC,CAAC;AAChF","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_uniwind","_bottomSheet","_primitives","_utils","_sheetHeader","_styles","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SCOPE","useBottomSheetStyleContext","useStyleContext","ZERO_INSETS","top","bottom","left","right","useSafeInsets","useContext","SafeAreaInsetsContext","BottomSheetHeader","forwardRef","title","subtitle","children","className","onClose","closeAccessibilityLabel","onBack","backAccessibilityLabel","ref","jsx","SheetHeader","displayName","BottomSheetContent","hasSafeAreaInset","fullBleed","style","insets","fullBleedFromContext","computedClassName","cn","bottomSheetContentVariants","View","paddingBottom","pointerEvents","BottomSheetFooter","bottomSheetFooterVariants","Math","max","MAX_DYNAMIC_CONTENT_SIZE","Dimensions","height","CustomBackdrop","props","BottomSheetBackdrop","disappearsOnIndex","appearsOnIndex","opacity","pressBehavior","CustomBackground","bottomSheetBackgroundClassName","BottomSheetModalStyled","handleVisible","footer","onDismiss","onChange","onAnimate","rest","parent","useParentContext","ctx","useMemo","renderFooter","useCallback","modalRef","useRef","dismissedRef","sheetMountedRef","mountPendingRef","pendingDismissRef","presented","setPresented","useState","setModalRef","instance","current","dismissSheet","args","dismiss","markSheetMounted","pendingDismiss","useImperativeHandle","present","snapToIndex","snapToPosition","expand","collapse","close","forceClose","handleDismiss","handleChange","handleAnimate","id","useId","overlayId","useEscapeKey","groupId","layer","isTopmost","useOverlayStackRegistration","active","Platform","OS","capabilities","useEffect","backHandler","BackHandler","addEventListener","remove","sheetContainerStyle","useResolveClassNames","bottomSheetModalContainerClassName","handleIndicatorStyle","BottomSheetModal","enableDynamicSizing","maxDynamicContentSize","handleComponent","undefined","backdropComponent","backgroundComponent","footerComponent","ParentContext","Provider","value","BottomSheetScrollViewStyled","enableFooterMarginAdjustment","BottomSheetScrollView","BottomSheetViewStyled","BottomSheetView","BottomSheetModalProvider","BottomSheet","exports","Modal","Header","Content","Footer","ScrollView","useBottomSheet","useBottomSheetScrollable","useBottomSheetScrollableCreator"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/index.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAYA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAYA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AAMkB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,O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D,OAAO;IAAEJ;EAAQ,CAAC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS4D,wBAAwBA,CAAA,EAAG;EACzC,OAAO,IAAAC,4CAA+B,EAAC;IAAEd,4BAA4B,EAAE;EAAK,CAAC,CAAC;AAChF","ignoreList":[]}
@@ -10,6 +10,12 @@ const bottomSheetModalContainerClassName = exports.bottomSheetModalContainerClas
10
10
 
11
11
  /** Clip the static background for rounded corners without clipping the animated sheet. */
12
12
  const bottomSheetBackgroundClassName = exports.bottomSheetBackgroundClassName = `${bottomSheetModalContainerClassName} overflow-hidden bg-surface-primary`;
13
- const bottomSheetContentVariants = exports.bottomSheetContentVariants = (0, _utils.cva)(['bg-surface-primary', 'px-5 pb-5 gap-3']);
14
- const bottomSheetFooterVariants = exports.bottomSheetFooterVariants = (0, _utils.cva)(['px-5 pb-5 gap-2', 'bg-surface-primary']);
13
+ const bottomSheetContentVariants = exports.bottomSheetContentVariants = (0, _utils.cva)(['bg-surface-primary', 'px-4 pb-4 gap-3'], {
14
+ variants: {
15
+ fullBleed: {
16
+ true: 'px-0'
17
+ }
18
+ }
19
+ });
20
+ const bottomSheetFooterVariants = exports.bottomSheetFooterVariants = (0, _utils.cva)(['px-4 pb-5 gap-2', 'bg-surface-primary']);
15
21
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_utils","require","bottomSheetModalContainerClassName","exports","bottomSheetBackgroundClassName","bottomSheetContentVariants","cva","bottomSheetFooterVariants"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA;AACO,MAAMC,kCAAkC,GAAAC,OAAA,CAAAD,kCAAA,GAAG,eAAe;;AAEjE;AACO,MAAME,8BAA8B,GAAAD,OAAA,CAAAC,8BAAA,GAAG,GAAGF,kCAAkC,qCAAqC;AAEjH,MAAMG,0BAA0B,GAAAF,OAAA,CAAAE,0BAAA,GAAG,IAAAC,UAAG,EAAC,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;AAEjF,MAAMC,yBAAyB,GAAAJ,OAAA,CAAAI,yBAAA,GAAG,IAAAD,UAAG,EAAC,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_utils","require","bottomSheetModalContainerClassName","exports","bottomSheetBackgroundClassName","bottomSheetContentVariants","cva","variants","fullBleed","true","bottomSheetFooterVariants"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA;AACO,MAAMC,kCAAkC,GAAAC,OAAA,CAAAD,kCAAA,GAAG,eAAe;;AAEjE;AACO,MAAME,8BAA8B,GAAAD,OAAA,CAAAC,8BAAA,GAAG,GAAGF,kCAAkC,qCAAqC;AAEjH,MAAMG,0BAA0B,GAAAF,OAAA,CAAAE,0BAAA,GAAG,IAAAC,UAAG,EAAC,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,EAAE;EACvFC,QAAQ,EAAE;IACRC,SAAS,EAAE;MACTC,IAAI,EAAE;IACR;EACF;AACF,CAAC,CAAC;AAIK,MAAMC,yBAAyB,GAAAP,OAAA,CAAAO,yBAAA,GAAG,IAAAJ,UAAG,EAAC,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC","ignoreList":[]}
@@ -70,15 +70,24 @@ const CalendarMonthHeader = exports.CalendarMonthHeader = /*#__PURE__*/(0, _reac
70
70
  isYearView
71
71
  })
72
72
  })]
73
- }), !isYearView ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
74
- className: (0, _styles.calendarMonthHeaderNavVariants)(),
73
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
74
+ className: (0, _styles.calendarMonthHeaderNavVariants)({
75
+ hidden: isYearView
76
+ }),
77
+ pointerEvents: isYearView ? 'none' : 'auto',
78
+ accessibilityElementsHidden: isYearView,
79
+ importantForAccessibility: isYearView ? 'no-hide-descendants' : 'auto',
80
+ ...(isYearView ? {
81
+ 'aria-hidden': true
82
+ } : {}),
75
83
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.IconButton, {
76
84
  as: _icons.ChevronLeft,
77
85
  variant: "ghost",
78
86
  color: "neutral",
79
87
  size: "small",
80
88
  accessibilityLabel: labels.previousMonth,
81
- isDisabled: disabled,
89
+ isDisabled: disabled || isYearView,
90
+ focusable: !isYearView,
82
91
  onPress: () => shiftMonth(-1)
83
92
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.IconButton, {
84
93
  as: _icons.ChevronRight,
@@ -86,10 +95,11 @@ const CalendarMonthHeader = exports.CalendarMonthHeader = /*#__PURE__*/(0, _reac
86
95
  color: "neutral",
87
96
  size: "small",
88
97
  accessibilityLabel: labels.nextMonth,
89
- isDisabled: disabled,
98
+ isDisabled: disabled || isYearView,
99
+ focusable: !isYearView,
90
100
  onPress: () => shiftMonth(1)
91
101
  })]
92
- }) : null]
102
+ })]
93
103
  });
94
104
  });
95
105
  CalendarMonthHeader.displayName = 'CalendarMonthHeader';
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_formatters","_utils","_icons","_Icon","_IconButton","_styles","_jsxRuntime","CalendarMonthHeader","exports","forwardRef","monthId","onMonthIdChange","disabled","view","onViewChange","locale","labels","labelsProp","className","style","props","ref","useMemo","resolveDateComponentLabels","label","formatCalendarMonthYear","isYearView","shiftMonth","useCallback","delta","parts","parseMonthId","date","Date","year","month","formatMonthId","getFullYear","getMonth","toggleYearView","jsxs","View","cn","calendarMonthHeaderVariants","children","Pressable","accessibilityRole","accessibilityLabel","showCalendar","showYearPicker","onPress","calendarMonthHeaderToggleVariants","jsx","Text","calendarMonthHeaderLabelVariants","numberOfLines","Icon","as","KeyboardArrowDown","ChevronRight","calendarMonthHeaderIconVariants","calendarMonthHeaderNavVariants","IconButton","ChevronLeft","variant","color","size","previousMonth","isDisabled","nextMonth","displayName"],"sourceRoot":"../../../../src","sources":["components/Calendar/CalendarMonthHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAQA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAMkB,IAAAQ,WAAA,GAAAR,OAAA;AAcX,MAAMS,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAG,IAAAE,iBAAU,EAC3C,CACE;EACEC,OAAO;EACPC,eAAe;EACfC,QAAQ,GAAG,KAAK;EAChBC,IAAI;EACJC,YAAY;EACZC,MAAM,GAAG,OAAO;EAChBC,MAAM,EAAEC,UAAU;EAClBC,SAAS;EACTC,KAAK;EACL,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAML,MAAM,GAAG,IAAAM,cAAO,EAAC,MAAM,IAAAC,sCAA0B,EAACN,UAAU,CAAC,EAAE,CAACA,UAAU,CAAC,CAAC;EAClF,MAAMO,KAAK,GAAG,IAAAC,mCAAuB,EAACf,OAAO,EAAE;IAAEK;EAAO,CAAC,CAAC;EAC1D,MAAMW,UAAU,GAAGb,IAAI,KAAK,MAAM;EAElC,MAAMc,UAAU,GAAG,IAAAC,kBAAW,EAC3BC,KAAa,IAAK;IACjB,MAAMC,KAAK,GAAG,IAAAC,wBAAY,EAACrB,OAAO,CAAC;IACnC,IAAI,CAACoB,KAAK,EAAE;MACV;IACF;IACA,MAAME,IAAI,GAAG,IAAIC,IAAI,CAACH,KAAK,CAACI,IAAI,EAAEJ,KAAK,CAACK,KAAK,GAAG,CAAC,GAAGN,KAAK,EA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,EAACjD,KAAA,CAAAqD,IAAI;QACHC,EAAE,EAAE/B,UAAU,GAAGgC,wBAAiB,GAAGC,mBAAa;QAClDzC,SAAS,EAAE,IAAA0C,uCAA+B,EAAC;UAAElC;QAAW,CAAC;MAAE,CAC5D,CAAC;IAAA,CACO,CAAC,EAEX,CAACA,UAAU,gBACV,IAAApB,WAAA,CAAAkC,IAAA,EAACzC,YAAA,CAAA0C,IAAI;MAACvB,SAAS,EAAE,IAAA2C,sCAA8B,EAAC,CAAE;MAAAjB,QAAA,gBAChD,IAAAtC,WAAA,CAAA8C,GAAA,EAAChD,WAAA,CAAA0D,UAAU;QACTL,EAAE,EAAEM,kBAAY;QAChBC,OAAO,EAAC,OAAO;QACfC,KAAK,EAAC,SAAS;QACfC,IAAI,EAAC,OAAO;QACZnB,kBAAkB,EAAE/B,MAAM,CAACmD,aAAc;QACzCC,UAAU,EAAExD,QAAS;QACrBsC,OAAO,EAAEA,CAAA,KAAMvB,UAAU,CAAC,CAAC,CAAC;MAAE,CAC/B,CAAC,eACF,IAAArB,WAAA,CAAA8C,GAAA,EAAChD,WAAA,CAAA0D,UAAU;QACTL,EAAE,EAAEE,mBAAa;QACjBK,OAAO,EAAC,OAAO;QACfC,KAAK,EAAC,SAAS;QACfC,IAAI,EAAC,OAAO;QACZnB,kBAAkB,EAAE/B,MAAM,CAACqD,SAAU;QACrCD,UAAU,EAAExD,QAAS;QACrBsC,OAAO,EAAEA,CAAA,KAAMvB,UAAU,CAAC,CAAC;MAAE,CAC9B,CAAC;IAAA,CACE,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX,CACF,CAAC;AAEDpB,mBAAmB,CAAC+D,WAAW,GAAG,qBAAqB","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_formatters","_utils","_icons","_Icon","_IconButton","_styles","_jsxRuntime","CalendarMonthHeader","exports","forwardRef","monthId","onMonthIdChange","disabled","view","onViewChange","locale","labels","labelsProp","className","style","props","ref","useMemo","resolveDateComponentLabels","label","formatCalendarMonthYear","isYearView","shiftMonth","useCallback","delta","parts","parseMonthId","date","Date","year","month","formatMonthId","getFullYear","getMonth","toggleYearView","jsxs","View","cn","calendarMonthHeaderVariants","children","Pressable","accessibilityRole","accessibilityLabel","showCalendar","showYearPicker","onPress","calendarMonthHeaderToggleVariants","jsx","Text","calendarMonthHeaderLabelVariants","numberOfLines","Icon","as","KeyboardArrowDown","ChevronRight","calendarMonthHeaderIconVariants","calendarMonthHeaderNavVariants","hidden","pointerEvents","accessibilityElementsHidden","importantForAccessibility","IconButton","ChevronLeft","variant","color","size","previousMonth","isDisabled","focusable","nextMonth","displayName"],"sourceRoot":"../../../../src","sources":["components/Calendar/CalendarMonthHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAQA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAMkB,IAAAQ,WAAA,GAAAR,OAAA;AAcX,MAAMS,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAG,IAAAE,iBAAU,EAC3C,CACE;EACEC,OAAO;EACPC,eAAe;EACfC,QAAQ,GAAG,KAAK;EAChBC,IAAI;EACJC,YAAY;EACZC,MAAM,GAAG,OAAO;EAChBC,MAAM,EAAEC,UAAU;EAClBC,SAAS;EACTC,KAAK;EACL,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAML,MAAM,GAAG,IAAAM,cAAO,EAAC,MAAM,IAAAC,sCAA0B,EAACN,UAAU,CAAC,EAAE,CAACA,UAAU,CAAC,CAAC;EAClF,MAAMO,KAAK,GAAG,IAAAC,mCAAuB,EAACf,OAAO,EAAE;IAAEK;EAAO,CAAC,CAAC;EAC1D,MAAM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