se-design 1.0.81-dev1 → 1.0.81-dev2
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/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +2 -2
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +2 -2
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +2 -2
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +2 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +2 -2
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +2 -2
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +2 -2
- package/dist/index120.js +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +2 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +2 -2
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +2 -2
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +2 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +2 -2
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -2
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +1 -1
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +2 -2
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +2 -2
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +2 -2
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +2 -2
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +2 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +2 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +2 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +2 -2
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +2 -2
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +2 -2
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +2 -2
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +1 -1
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +2 -2
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +2 -2
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +1 -1
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +1 -1
- package/dist/index190.js +1 -1
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +1 -1
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +2 -2
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +1 -1
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +1 -1
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +1 -1
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -2
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +1 -1
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +149 -2
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +9 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +6 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +5 -2
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +42 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +21 -2
- package/dist/index204.js.map +1 -1
- package/dist/{index79.js → index211.js} +1 -1
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +71 -0
- package/dist/index212.js.map +1 -0
- package/dist/{index221.js → index220.js} +1 -1
- package/dist/{index221.js.map → index220.js.map} +1 -1
- package/dist/{index229.js → index228.js} +1 -1
- package/dist/{index229.js.map → index228.js.map} +1 -1
- package/dist/index23.js +2 -2
- package/dist/{index232.js → index231.js} +1 -1
- package/dist/{index232.js.map → index231.js.map} +1 -1
- package/dist/index240.js +173 -0
- package/dist/index240.js.map +1 -0
- package/dist/index241.js +3 -169
- package/dist/index241.js.map +1 -1
- package/dist/index243.js +22 -0
- package/dist/index243.js.map +1 -0
- package/dist/index25.js +1 -1
- package/dist/index28.js +2 -2
- package/dist/index29.js +1 -1
- package/dist/index30.js +1 -1
- package/dist/index33.js +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.js +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.js +2 -2
- package/dist/index40.js +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.js +2 -2
- package/dist/index49.js +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index6.js +120 -120
- package/dist/index63.js +1 -1
- package/dist/index65.js +1 -1
- package/dist/index7.js +1 -1
- package/dist/index76.js +21 -24
- package/dist/index76.js.map +1 -1
- package/dist/index80.js +2 -19
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -9
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +2 -42
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +2 -6
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +2 -68
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +2 -21
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +5 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +2 -2
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +2 -2
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +2 -2
- package/dist/index90.js +2 -2
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index205.js +0 -5
- package/dist/index205.js.map +0 -1
- package/dist/index206.js +0 -152
- package/dist/index206.js.map +0 -1
- package/dist/index207.js +0 -8
- package/dist/index207.js.map +0 -1
- package/dist/index242.js +0 -7
- package/dist/index242.js.map +0 -1
- package/dist/index79.js.map +0 -1
package/dist/index241.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index241.js","sources":["../src/components/DatePicker/useDatePickerA11y.ts"],"sourcesContent":["import React, { useState, useCallback, useEffect, useMemo } from 'react';\n\nimport { useRovingFocus, RovingItemProps, RovingContainerProps, AccessibleNameInput } from '../../utils/a11y/useRovingFocus';\nimport type { DateRange } from './index';\n\nexport const getCellAriaLabel = (\n date: Date,\n isStart: boolean,\n isEnd: boolean,\n isSameStartEnd: boolean,\n singleDateSelection: boolean,\n inRange: boolean = false\n): string => {\n const base = date.toLocaleDateString('en-US', {\n weekday: 'long',\n month: 'long',\n day: 'numeric',\n year: 'numeric'\n });\n if (singleDateSelection) return base;\n if (isSameStartEnd) return `${base}, start and end of range`;\n if (isStart) return `${base}, start of range`;\n if (isEnd) return `${base}, end of range`;\n if (inRange) return `${base}, in range`;\n return base;\n};\n\nexport const formatDateId = (d: Date) => {\n const y = d.getFullYear();\n const m = String(d.getMonth() + 1).padStart(2, '0');\n const dd = String(d.getDate()).padStart(2, '0');\n return `date-${y}-${m}-${dd}`;\n};\n\nconst getDaysInMonth = (year: number, month: number) => new Date(year, month + 1, 0).getDate();\n\nconst getPanelItemIds = (panelDate: Date): string[] => {\n const year = panelDate.getFullYear();\n const month = panelDate.getMonth();\n return Array.from({ length: getDaysInMonth(year, month) }, (_, i) =>\n formatDateId(new Date(year, month, i + 1))\n );\n};\n\nconst getPanelDefaultFocusId = (panelDate: Date, itemIds: string[], selectedRange: DateRange): string => {\n const year = panelDate.getFullYear();\n const month = panelDate.getMonth();\n const isInPanel = (d: Date) => d.getFullYear() === year && d.getMonth() === month;\n\n // Prefer startDate if it falls in this panel\n if (selectedRange.startDate && isInPanel(selectedRange.startDate)) {\n const d = new Date(selectedRange.startDate);\n d.setHours(0, 0, 0, 0);\n const id = formatDateId(d);\n if (itemIds.includes(id)) return id;\n }\n // Fall back to endDate if it falls in this panel (e.g. right panel when start is in left panel)\n if (selectedRange.endDate && isInPanel(selectedRange.endDate)) {\n const d = new Date(selectedRange.endDate);\n d.setHours(0, 0, 0, 0);\n const id = formatDateId(d);\n if (itemIds.includes(id)) return id;\n }\n const today = new Date();\n if (isInPanel(today)) {\n const id = formatDateId(today);\n if (itemIds.includes(id)) return id;\n }\n return itemIds[0] || '';\n};\n\ninterface UseDatePickerA11yOptions {\n leftMonth: Date;\n rightMonth: Date;\n showSingleMonth: boolean;\n selectedRange: DateRange;\n onMonthChange: (date: Date, isLeft: boolean) => void;\n}\n\ninterface CellKeyDownOptions {\n isLeftCalendar: boolean;\n isDateDisabled: (date: Date) => boolean;\n handleDateClick: (date: Date) => void;\n}\n\ninterface GridCellItemInput {\n cellId: string;\n cellDate: Date;\n disabled: boolean;\n ariaLabel: string;\n ariaCurrent: 'date' | undefined;\n ariaDisabled: true | undefined;\n}\n\nexport interface GridCellElementProps {\n id: string;\n ref: (el: HTMLElement | null) => void;\n tabIndex: number;\n onFocus: () => void;\n 'aria-label': string;\n 'aria-current': 'date' | undefined;\n 'aria-disabled': true | undefined;\n onKeyDown: (e: React.KeyboardEvent) => void;\n onClick: () => void;\n}\n\ninterface UseDatePickerA11yReturn {\n getGridCellProps: (options: CellKeyDownOptions) => (item: GridCellItemInput) => GridCellElementProps;\n getLeftRovingItemProps: (id: string) => RovingItemProps;\n getRightRovingItemProps: (id: string) => RovingItemProps;\n getLeftContainerProps: (nameInput?: AccessibleNameInput) => RovingContainerProps;\n getRightContainerProps: (nameInput?: AccessibleNameInput) => RovingContainerProps;\n focusLeftItem: (id: string) => void;\n focusRightItem: (id: string) => void;\n}\n\nexport function useDatePickerA11y({\n leftMonth,\n rightMonth,\n showSingleMonth,\n selectedRange,\n onMonthChange\n}: UseDatePickerA11yOptions): UseDatePickerA11yReturn {\n const [keyboardFocusDate, setKeyboardFocusDate] = useState<Date | null>(null);\n\n const leftItemIds = useMemo(() => getPanelItemIds(leftMonth), [leftMonth]);\n const rightItemIds = useMemo(() => getPanelItemIds(rightMonth), [rightMonth]);\n\n const leftDefaultFocusId = useMemo(\n () => getPanelDefaultFocusId(leftMonth, leftItemIds, selectedRange),\n [leftMonth, leftItemIds, selectedRange]\n );\n const rightDefaultFocusId = useMemo(\n () => getPanelDefaultFocusId(rightMonth, rightItemIds, selectedRange),\n [rightMonth, rightItemIds, selectedRange]\n );\n\n const { getRovingItemProps: getLeftRovingItemProps, focusItem: focusLeftItem, getContainerProps: getLeftContainerProps } = useRovingFocus({\n itemIds: leftItemIds,\n defaultFocusedId: leftDefaultFocusId,\n orientation: 'grid',\n cols: 7,\n loop: false,\n role: 'grid'\n });\n\n const { getRovingItemProps: getRightRovingItemProps, focusItem: focusRightItem, getContainerProps: getRightContainerProps } = useRovingFocus({\n itemIds: rightItemIds,\n defaultFocusedId: rightDefaultFocusId,\n orientation: 'grid',\n cols: 7,\n loop: false,\n role: 'grid'\n });\n\n // After keyboard navigation shifts a panel to a new month, focus the target cell via roving focus refs\n useEffect(() => {\n if (!keyboardFocusDate) return;\n const id = formatDateId(keyboardFocusDate);\n if (leftItemIds.includes(id)) {\n focusLeftItem(id);\n setKeyboardFocusDate(null);\n } else if (rightItemIds.includes(id)) {\n focusRightItem(id);\n setKeyboardFocusDate(null);\n }\n }, [keyboardFocusDate, leftItemIds, rightItemIds, focusLeftItem, focusRightItem]);\n\n // Navigate the keyboard focus to a date that may be in a different month.\n // Each panel advances completely independently — never touches the other panel.\n const handleKeyboardNavigate = useCallback(\n (targetDate: Date, sourcePanel: 'left' | 'right') => {\n const isLeft = showSingleMonth || sourcePanel === 'left';\n onMonthChange(new Date(targetDate.getFullYear(), targetDate.getMonth(), 1), isLeft);\n setKeyboardFocusDate(new Date(targetDate));\n },\n [showSingleMonth, onMonthChange]\n );\n\n const getGridCellProps = useCallback(\n ({ isLeftCalendar, isDateDisabled, handleDateClick }: CellKeyDownOptions) => {\n const panel: 'left' | 'right' = isLeftCalendar ? 'left' : 'right';\n const focusPanelItem = isLeftCalendar ? focusLeftItem : focusRightItem;\n const getRovingItemProps = isLeftCalendar ? getLeftRovingItemProps : getRightRovingItemProps;\n\n const handleKeyDown = (e: React.KeyboardEvent, cellDate: Date) => {\n const cellYear = cellDate.getFullYear();\n const cellMonth = cellDate.getMonth();\n const cellDay = cellDate.getDate();\n\n const navigateTo = (targetDate: Date) => {\n if (targetDate.getFullYear() !== cellYear || targetDate.getMonth() !== cellMonth) {\n handleKeyboardNavigate(targetDate, panel);\n return;\n }\n focusPanelItem(formatDateId(targetDate));\n };\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault(); e.stopPropagation();\n navigateTo(new Date(cellYear, cellMonth, cellDay - 1));\n break;\n case 'ArrowRight':\n e.preventDefault(); e.stopPropagation();\n navigateTo(new Date(cellYear, cellMonth, cellDay + 1));\n break;\n case 'ArrowUp':\n e.preventDefault(); e.stopPropagation();\n navigateTo(new Date(cellYear, cellMonth, cellDay - 7));\n break;\n case 'ArrowDown':\n e.preventDefault(); e.stopPropagation();\n navigateTo(new Date(cellYear, cellMonth, cellDay + 7));\n break;\n case 'Home': {\n // First day of the current week row (Sunday), clamped to month start\n e.preventDefault(); e.stopPropagation();\n const dayOfWeek = cellDate.getDay();\n const homeDate = new Date(cellYear, cellMonth, cellDay - dayOfWeek);\n const clamped = homeDate.getMonth() !== cellMonth ? new Date(cellYear, cellMonth, 1) : homeDate;\n focusPanelItem(formatDateId(clamped));\n break;\n }\n case 'End': {\n // Last day of the current week row (Saturday), clamped to month end\n e.preventDefault(); e.stopPropagation();\n const dayOfWeek = cellDate.getDay();\n const endDate = new Date(cellYear, cellMonth, cellDay + (6 - dayOfWeek));\n const daysInThisMonth = getDaysInMonth(cellYear, cellMonth);\n const clamped =\n endDate.getMonth() !== cellMonth ? new Date(cellYear, cellMonth, daysInThisMonth) : endDate;\n focusPanelItem(formatDateId(clamped));\n break;\n }\n case 'PageUp': {\n // Shift+PageUp = previous year, PageUp = previous month\n e.preventDefault(); e.stopPropagation();\n const tYear = e.shiftKey ? cellYear - 1 : cellYear;\n const tMonth = e.shiftKey ? cellMonth : cellMonth - 1;\n const tDay = Math.min(cellDay, getDaysInMonth(tYear, tMonth));\n handleKeyboardNavigate(new Date(tYear, tMonth, tDay), panel);\n break;\n }\n case 'PageDown': {\n // Shift+PageDown = next year, PageDown = next month\n e.preventDefault(); e.stopPropagation();\n const tYear = e.shiftKey ? cellYear + 1 : cellYear;\n const tMonth = e.shiftKey ? cellMonth : cellMonth + 1;\n const tDay = Math.min(cellDay, getDaysInMonth(tYear, tMonth));\n handleKeyboardNavigate(new Date(tYear, tMonth, tDay), panel);\n break;\n }\n case 'Enter':\n case ' ':\n e.preventDefault();\n if (!isDateDisabled(cellDate)) {\n handleDateClick(cellDate);\n }\n break;\n }\n };\n\n return ({ cellId, cellDate, disabled, ariaLabel, ariaCurrent, ariaDisabled }: GridCellItemInput): GridCellElementProps => {\n const rovingProps = getRovingItemProps(cellId);\n return {\n id: cellId,\n ref: rovingProps.ref,\n tabIndex: rovingProps.tabIndex,\n onFocus: rovingProps.onFocus,\n 'aria-label': ariaLabel,\n 'aria-current': ariaCurrent,\n 'aria-disabled': ariaDisabled,\n onKeyDown: (e: React.KeyboardEvent) => handleKeyDown(e, cellDate),\n onClick: () => { if (!disabled) handleDateClick(cellDate); }\n };\n };\n },\n [handleKeyboardNavigate, focusLeftItem, focusRightItem, getLeftRovingItemProps, getRightRovingItemProps]\n );\n\n return {\n getGridCellProps,\n getLeftRovingItemProps,\n getRightRovingItemProps,\n getLeftContainerProps,\n getRightContainerProps,\n focusLeftItem,\n focusRightItem\n };\n}\n"],"names":["useState","useMemo","useEffect","useCallback","useRovingFocus","getCellAriaLabel","date","isStart","isEnd","isSameStartEnd","singleDateSelection","inRange","base","toLocaleDateString","weekday","month","day","year","formatDateId","d","y","getFullYear","m","String","getMonth","padStart","dd","getDate","getDaysInMonth","Date","getPanelItemIds","panelDate","Array","from","length","_","i","getPanelDefaultFocusId","itemIds","selectedRange","isInPanel","startDate","setHours","id","includes","endDate","today","useDatePickerA11y","leftMonth","rightMonth","showSingleMonth","onMonthChange","keyboardFocusDate","setKeyboardFocusDate","leftItemIds","rightItemIds","leftDefaultFocusId","rightDefaultFocusId","getRovingItemProps","getLeftRovingItemProps","focusItem","focusLeftItem","getContainerProps","getLeftContainerProps","defaultFocusedId","orientation","cols","loop","role","getRightRovingItemProps","focusRightItem","getRightContainerProps","handleKeyboardNavigate","targetDate","sourcePanel","isLeft","getGridCellProps","isLeftCalendar","isDateDisabled","handleDateClick","panel","focusPanelItem","handleKeyDown","e","cellDate","cellYear","cellMonth","cellDay","navigateTo","key","preventDefault","stopPropagation","dayOfWeek","getDay","homeDate","clamped","daysInThisMonth","tYear","shiftKey","tMonth","tDay","Math","min","cellId","disabled","ariaLabel","ariaCurrent","ariaDisabled","rovingProps","ref","tabIndex","onFocus","onKeyDown","onClick"],"mappings":"AAKO,SAAA,YAAAA,GAAA,WAAAC,GAAA,aAAAC,GAAA,eAAAC,SAAA;AAAA,SAAA,kBAAAC,SAAA;AAAA,MAAMC,IAAmBA,CAC9BC,GACAC,GACAC,GACAC,GACAC,GACAC,IAAmB,OACR;AACX,QAAMC,IAAON,EAAKO,mBAAmB,SAAS;AAAA,IAC5CC,SAAS;AAAA,IACTC,OAAO;AAAA,IACPC,KAAK;AAAA,IACLC,MAAM;AAAA,EAAA,CACP;AACD,SAAIP,IAA4BE,IAC5BH,IAAuB,GAAGG,CAAI,6BAC9BL,IAAgB,GAAGK,CAAI,qBACvBJ,IAAc,GAAGI,CAAI,mBACrBD,IAAgB,GAAGC,CAAI,eACpBA;AACT,GAEaM,IAAeA,CAACC,MAAY;AACvC,QAAMC,IAAID,EAAE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,CAAC7B,MAA2BD,EAAcC,GAAGC,CAAQ;AAAA,UAChE6B,SAASA,MAAM;AAAE,YAAKT,KAAUzB,EAAgBK,CAAQ;AAAA,UAAG;AAAA,QAAA;AAAA,MAE/D;AAAA,IACF,GACA,CAACZ,GAAwBX,GAAeS,GAAgBX,GAAwBU,CAAuB,CACzG;AAAA,IAIEV,wBAAAA;AAAAA,IACAU,yBAAAA;AAAAA,IACAN,uBAAAA;AAAAA,IACAQ,wBAAAA;AAAAA,IACAV,eAAAA;AAAAA,IACAS,gBAAAA;AAAAA,EAAAA;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"index241.js","sources":["../src/utils/delay.ts"],"sourcesContent":["/**\n * Delays execution by the specified number of milliseconds\n * @param ms - The number of milliseconds to delay\n * @returns A Promise that resolves after the specified delay\n */\nexport function delay(ms: number): Promise<void> {\n return new Promise(resolve => setTimeout(resolve, ms));\n} "],"names":["delay","ms","Promise","resolve","setTimeout"],"mappings":"AAKO,SAASA,EAAMC,GAA2B;AAC7C,SAAO,IAAIC,QAAQC,CAAAA,MAAWC,WAAWD,GAASF,CAAE,CAAC;AACzD;"}
|
package/dist/index243.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useEffect as s } from "react";
|
|
2
|
+
const u = {
|
|
3
|
+
block: "nearest"
|
|
4
|
+
};
|
|
5
|
+
function m({
|
|
6
|
+
containerRef: t,
|
|
7
|
+
activeIndex: o,
|
|
8
|
+
itemSelector: r = '[role="option"]',
|
|
9
|
+
enabled: c = !0,
|
|
10
|
+
scrollOptions: e = u
|
|
11
|
+
}) {
|
|
12
|
+
s(() => {
|
|
13
|
+
if (!c || o < 0 || !t?.current)
|
|
14
|
+
return;
|
|
15
|
+
const n = t.current.querySelectorAll(r)[o];
|
|
16
|
+
n && n.scrollIntoView(e);
|
|
17
|
+
}, [o, t, r, c, e]);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
m as useScrollActiveIntoView
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index243.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index243.js","sources":["../src/utils/a11y/useScrollActiveIntoView.ts"],"sourcesContent":["import { useEffect } from 'react';\nimport type { RefObject } from 'react';\n\nconst DEFAULT_SCROLL_OPTIONS: ScrollIntoViewOptions = { block: 'nearest' };\n\nexport interface UseScrollActiveIntoViewOptions {\n /**\n * Ref to the container element\n */\n containerRef?: RefObject<HTMLElement | null>;\n \n /**\n * Index of the currently active/highlighted item (-1 if none)\n */\n activeIndex: number;\n \n /**\n * CSS selector for item elements\n * Default: '[role=\"option\"]'\n */\n itemSelector?: string;\n \n /**\n * Whether scrolling is enabled\n * Default: true\n */\n enabled?: boolean;\n \n /**\n * ScrollIntoView options\n * Default: { block: 'nearest' }\n */\n scrollOptions?: ScrollIntoViewOptions;\n}\n\n/**\n * Hook to automatically scroll the active item into view.\n * \n * Useful for aria-activedescendant patterns where DOM focus stays\n * on the container (e.g., input field) but we need to visually show\n * which descendant option is logically active.\n * \n * Common use cases:\n * - Combobox dropdown options\n * - Menu items with virtual focus\n * - Grid cells with keyboard navigation\n * - Tree view items\n * - Listbox options\n * \n * @example\n * ```tsx\n * const [highlightedIndex, setHighlightedIndex] = useState(-1);\n * const listboxRef = useRef<HTMLDivElement>(null);\n * \n * useScrollActiveIntoView({\n * containerRef: listboxRef,\n * activeIndex: highlightedIndex,\n * itemSelector: '[role=\"option\"]'\n * });\n * \n * // Now when highlightedIndex changes, the item scrolls into view\n * ```\n * \n * @example Custom scroll behavior\n * ```tsx\n * useScrollActiveIntoView({\n * containerRef: menuRef,\n * activeIndex: activeMenuIndex,\n * itemSelector: '[role=\"menuitem\"]',\n * scrollOptions: { block: 'center', behavior: 'smooth' }\n * });\n * ```\n */\nexport function useScrollActiveIntoView({\n containerRef,\n activeIndex,\n itemSelector = '[role=\"option\"]',\n enabled = true,\n scrollOptions = DEFAULT_SCROLL_OPTIONS\n}: UseScrollActiveIntoViewOptions): void {\n useEffect(() => {\n // Early returns for disabled states\n if (!enabled || activeIndex < 0 || !containerRef?.current) {\n return;\n }\n \n const container = containerRef.current;\n const items = container.querySelectorAll(itemSelector);\n const activeItem = items[activeIndex] as HTMLElement;\n \n if (activeItem) {\n activeItem.scrollIntoView(scrollOptions);\n }\n }, [activeIndex, containerRef, itemSelector, enabled, scrollOptions]);\n}\n"],"names":["useEffect","DEFAULT_SCROLL_OPTIONS","block","useScrollActiveIntoView","containerRef","activeIndex","itemSelector","enabled","scrollOptions","current","activeItem","querySelectorAll","scrollIntoView"],"mappings":"AAGA,SAAA,aAAAA,SAAA;AAAA,MAAMC,IAAgD;AAAA,EAAEC,OAAO;AAAU;AAsElE,SAASC,EAAwB;AAAA,EACtCC,cAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,cAAAA,IAAe;AAAA,EACfC,SAAAA,IAAU;AAAA,EACVC,eAAAA,IAAgBP;AACc,GAAS;AACvCD,EAAAA,EAAU,MAAM;AAEd,QAAI,CAACO,KAAWF,IAAc,KAAK,CAACD,GAAcK;AAChD;AAKF,UAAMC,IAFYN,EAAaK,QACPE,iBAAiBL,CAAY,EAC5BD,CAAW;AAEpC,IAAIK,KACFA,EAAWE,eAAeJ,CAAa;AAAA,EAE3C,GAAG,CAACH,GAAaD,GAAcE,GAAcC,GAASC,CAAa,CAAC;AACtE;"}
|
package/dist/index25.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Icon as oe } from "./index6.js";
|
|
|
4
4
|
import { Checkbox as $e } from "./index23.js";
|
|
5
5
|
import { Button as le } from "./index4.js";
|
|
6
6
|
import { InputWithIcon as Le } from "./index52.js";
|
|
7
|
-
import { useStableId as q } from "./
|
|
7
|
+
import { useStableId as q } from "./index201.js";
|
|
8
8
|
import { useCombobox as re } from "./index68.js";
|
|
9
9
|
function p() {
|
|
10
10
|
return p = Object.assign ? Object.assign.bind() : function(t) {
|
package/dist/index28.js
CHANGED
|
@@ -2,8 +2,8 @@ import i, { useMemo as D, useRef as j, useEffect as m } from "react";
|
|
|
2
2
|
import { Icon as M } from "./index6.js";
|
|
3
3
|
import { getA11yNameAttributes as $ } from "./index78.js";
|
|
4
4
|
import { useFocusTrap as k } from "./index72.js";
|
|
5
|
-
import { useDismissOnEscape as z } from "./
|
|
6
|
-
import { useFocusSentinel as T } from "./
|
|
5
|
+
import { useDismissOnEscape as z } from "./index211.js";
|
|
6
|
+
import { useFocusSentinel as T } from "./index212.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
function u() {
|
|
9
9
|
return u = Object.assign ? Object.assign.bind() : function(s) {
|
package/dist/index29.js
CHANGED
|
@@ -2,7 +2,7 @@ import r, { useState as $, useMemo as j, useRef as F, useEffect as B } from "rea
|
|
|
2
2
|
import { Icon as L } from "./index6.js";
|
|
3
3
|
import { Popover as z } from "./index19.js";
|
|
4
4
|
import { MenuList as H } from "./index18.js";
|
|
5
|
-
import { useStableId as U } from "./
|
|
5
|
+
import { useStableId as U } from "./index201.js";
|
|
6
6
|
import "./index72.js";
|
|
7
7
|
import { useTabsA11y as V, getPanelId as q } from "./index73.js";
|
|
8
8
|
/* empty css */
|
package/dist/index30.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e, { forwardRef as K } from "react";
|
|
2
2
|
import { Icon as M } from "./index6.js";
|
|
3
3
|
import { Button as d } from "./index4.js";
|
|
4
|
-
import { useStableId as B } from "./
|
|
4
|
+
import { useStableId as B } from "./index201.js";
|
|
5
5
|
import { getRegionAttributes as Q } from "./index66.js";
|
|
6
6
|
import { useAccessiblePress as U } from "./index67.js";
|
|
7
7
|
import "./index72.js";
|
package/dist/index33.js
CHANGED
package/dist/index35.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e, { useState as h, useEffect as E } from "react";
|
|
2
2
|
import { Icon as N } from "./index6.js";
|
|
3
|
-
import { useStableId as $ } from "./
|
|
3
|
+
import { useStableId as $ } from "./index201.js";
|
|
4
4
|
import { getRegionAttributes as I } from "./index66.js";
|
|
5
5
|
import { useAccessiblePress as _ } from "./index67.js";
|
|
6
6
|
import "./index72.js";
|
package/dist/index36.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e, { useState as k, useEffect as w } from "react";
|
|
2
2
|
import { Icon as x } from "./index6.js";
|
|
3
|
-
import { useStableId as F } from "./
|
|
3
|
+
import { useStableId as F } from "./index201.js";
|
|
4
4
|
import { getA11yNameAttributes as P } from "./index78.js";
|
|
5
5
|
import { getRegionAttributes as V } from "./index66.js";
|
|
6
6
|
import { useAccessiblePress as q } from "./index67.js";
|
package/dist/index38.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Checkbox as ke } from "./index23.js";
|
|
|
5
5
|
import { Button as G } from "./index4.js";
|
|
6
6
|
import "./index72.js";
|
|
7
7
|
import { useCombobox as be } from "./index68.js";
|
|
8
|
-
import { useStableId as Ce } from "./
|
|
8
|
+
import { useStableId as Ce } from "./index201.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
function g() {
|
|
11
11
|
return g = Object.assign ? Object.assign.bind() : function(v) {
|
package/dist/index39.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import { useStableId as A } from "./
|
|
3
|
-
import { mergeIds as P } from "./
|
|
2
|
+
import { useStableId as A } from "./index201.js";
|
|
3
|
+
import { mergeIds as P } from "./index202.js";
|
|
4
4
|
import { getA11yNameAttributes as _ } from "./index78.js";
|
|
5
5
|
import "./index72.js";
|
|
6
6
|
/* empty css */
|
package/dist/index40.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a, { useState as d, useRef as $, useEffect as r, useMemo as D } from "react";
|
|
2
2
|
import { Icon as g } from "./index6.js";
|
|
3
3
|
import { LabelChip as F } from "./index11.js";
|
|
4
|
-
import { debounce as L } from "./
|
|
4
|
+
import { debounce as L } from "./index220.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
function z(p) {
|
|
7
7
|
const {
|
package/dist/index45.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e, { useState as S, useRef as k, useCallback as P, useEffect as Y } from "react";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { Icon as x } from "./index6.js";
|
|
4
|
-
import { useStableId as Z } from "./
|
|
4
|
+
import { useStableId as Z } from "./index201.js";
|
|
5
5
|
import { getA11yNameAttributes as L } from "./index78.js";
|
|
6
6
|
import "./index72.js";
|
|
7
7
|
import { useCombobox as ee } from "./index68.js";
|
package/dist/index46.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t, { useState as h, useRef as f, useCallback as g, useEffect as _ } from "react";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import C from "./
|
|
3
|
+
import C from "./index228.js";
|
|
4
4
|
import { Icon as M } from "./index6.js";
|
|
5
|
-
import { useStableId as v } from "./
|
|
5
|
+
import { useStableId as v } from "./index201.js";
|
|
6
6
|
import { getA11yNameAttributes as T } from "./index78.js";
|
|
7
7
|
import "./index72.js";
|
|
8
8
|
import { useCombobox as le } from "./index68.js";
|
package/dist/index49.js
CHANGED
|
@@ -31,7 +31,7 @@ import { Popover as $ } from "./index19.js";
|
|
|
31
31
|
/* empty css */
|
|
32
32
|
/* empty css */
|
|
33
33
|
/* empty css */
|
|
34
|
-
import { TabButton as j } from "./
|
|
34
|
+
import { TabButton as j } from "./index231.js";
|
|
35
35
|
/* empty css */
|
|
36
36
|
/* empty css */
|
|
37
37
|
/* empty css */
|
package/dist/index51.js
CHANGED
|
@@ -2,7 +2,7 @@ import r, { useState as S } from "react";
|
|
|
2
2
|
import { Button as z } from "./index4.js";
|
|
3
3
|
import { Icon as _ } from "./index6.js";
|
|
4
4
|
import { Dropdown as te } from "./index25.js";
|
|
5
|
-
import { useDatePickerA11y as Fe, formatDateId as Pe, getCellAriaLabel as Ce } from "./
|
|
5
|
+
import { useDatePickerA11y as Fe, formatDateId as Pe, getCellAriaLabel as Ce } from "./index240.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
function T() {
|
|
8
8
|
return T = Object.assign ? Object.assign.bind() : function(p) {
|
package/dist/index52.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { Icon as W } from "./index6.js";
|
|
3
|
-
import { useStableId as j } from "./
|
|
3
|
+
import { useStableId as j } from "./index201.js";
|
|
4
4
|
import { getA11yNameAttributes as q } from "./index78.js";
|
|
5
5
|
import "./index72.js";
|
|
6
6
|
/* empty css */
|
package/dist/index53.js
CHANGED
package/dist/index57.js
CHANGED
package/dist/index6.js
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
import j from "./
|
|
2
|
-
import L from "./
|
|
3
|
-
import R from "./
|
|
4
|
-
import F from "./
|
|
5
|
-
import B from "./
|
|
6
|
-
import D from "./
|
|
7
|
-
import M from "./
|
|
8
|
-
import T from "./
|
|
9
|
-
import q from "./
|
|
10
|
-
import G from "./
|
|
11
|
-
import V from "./
|
|
12
|
-
import H from "./
|
|
13
|
-
import J from "./
|
|
14
|
-
import K from "./
|
|
15
|
-
import Q from "./
|
|
16
|
-
import U from "./
|
|
17
|
-
import W from "./
|
|
18
|
-
import X from "./
|
|
19
|
-
import Y from "./
|
|
20
|
-
import Z from "./
|
|
21
|
-
import z from "./
|
|
22
|
-
import ss from "./
|
|
23
|
-
import os from "./
|
|
24
|
-
import _s from "./
|
|
25
|
-
import ts from "./
|
|
26
|
-
import is from "./
|
|
27
|
-
import rs from "./
|
|
28
|
-
import es from "./
|
|
29
|
-
import cs from "./
|
|
30
|
-
import as from "./
|
|
31
|
-
import ms from "./
|
|
32
|
-
import gs from "./
|
|
33
|
-
import vs from "./
|
|
34
|
-
import ls from "./
|
|
35
|
-
import ns from "./
|
|
36
|
-
import fs from "./
|
|
37
|
-
import bs from "./
|
|
38
|
-
import ps from "./
|
|
39
|
-
import ds from "./
|
|
40
|
-
import us from "./
|
|
41
|
-
import hs from "./
|
|
42
|
-
import ks from "./
|
|
43
|
-
import xs from "./
|
|
44
|
-
import As from "./
|
|
45
|
-
import ws from "./
|
|
46
|
-
import ys from "./
|
|
47
|
-
import Ps from "./
|
|
48
|
-
import Is from "./
|
|
49
|
-
import Ns from "./
|
|
50
|
-
import Cs from "./
|
|
51
|
-
import Os from "./
|
|
52
|
-
import $s from "./
|
|
53
|
-
import Es from "./
|
|
54
|
-
import Ss from "./
|
|
55
|
-
import js from "./
|
|
56
|
-
import Ls from "./
|
|
57
|
-
import Rs from "./
|
|
58
|
-
import Fs from "./
|
|
59
|
-
import Bs from "./
|
|
60
|
-
import Ds from "./
|
|
61
|
-
import Ms from "./
|
|
62
|
-
import Ts from "./
|
|
63
|
-
import qs from "./
|
|
64
|
-
import Gs from "./
|
|
65
|
-
import Vs from "./
|
|
66
|
-
import Hs from "./
|
|
67
|
-
import Js from "./
|
|
68
|
-
import Ks from "./
|
|
69
|
-
import Qs from "./
|
|
70
|
-
import Us from "./
|
|
71
|
-
import Ws from "./
|
|
72
|
-
import Xs from "./
|
|
73
|
-
import Ys from "./
|
|
74
|
-
import Zs from "./
|
|
75
|
-
import zs from "./
|
|
76
|
-
import so from "./
|
|
77
|
-
import oo from "./
|
|
78
|
-
import _o from "./
|
|
79
|
-
import to from "./
|
|
80
|
-
import io from "./
|
|
81
|
-
import ro from "./
|
|
82
|
-
import eo from "./
|
|
83
|
-
import co from "./
|
|
84
|
-
import ao from "./
|
|
85
|
-
import mo from "./
|
|
86
|
-
import go from "./
|
|
87
|
-
import vo from "./
|
|
88
|
-
import lo from "./
|
|
89
|
-
import no from "./
|
|
90
|
-
import fo from "./
|
|
91
|
-
import bo from "./
|
|
92
|
-
import po from "./
|
|
93
|
-
import uo from "./
|
|
94
|
-
import ho from "./
|
|
95
|
-
import ko from "./
|
|
96
|
-
import xo from "./
|
|
97
|
-
import Ao from "./
|
|
98
|
-
import wo from "./
|
|
99
|
-
import yo from "./
|
|
100
|
-
import Po from "./
|
|
101
|
-
import Io from "./
|
|
102
|
-
import No from "./
|
|
103
|
-
import Co from "./
|
|
104
|
-
import Oo from "./
|
|
105
|
-
import $o from "./
|
|
106
|
-
import Eo from "./
|
|
107
|
-
import So from "./
|
|
108
|
-
import jo from "./
|
|
109
|
-
import Lo from "./
|
|
110
|
-
import Ro from "./
|
|
111
|
-
import Fo from "./
|
|
112
|
-
import Bo from "./
|
|
113
|
-
import Do from "./
|
|
114
|
-
import Mo from "./
|
|
115
|
-
import To from "./
|
|
116
|
-
import qo from "./
|
|
117
|
-
import Go from "./
|
|
118
|
-
import Vo from "./
|
|
119
|
-
import Ho from "./
|
|
1
|
+
import j from "./index80.js";
|
|
2
|
+
import L from "./index81.js";
|
|
3
|
+
import R from "./index82.js";
|
|
4
|
+
import F from "./index83.js";
|
|
5
|
+
import B from "./index84.js";
|
|
6
|
+
import D from "./index85.js";
|
|
7
|
+
import M from "./index86.js";
|
|
8
|
+
import T from "./index87.js";
|
|
9
|
+
import q from "./index88.js";
|
|
10
|
+
import G from "./index89.js";
|
|
11
|
+
import V from "./index90.js";
|
|
12
|
+
import H from "./index91.js";
|
|
13
|
+
import J from "./index92.js";
|
|
14
|
+
import K from "./index93.js";
|
|
15
|
+
import Q from "./index94.js";
|
|
16
|
+
import U from "./index95.js";
|
|
17
|
+
import W from "./index96.js";
|
|
18
|
+
import X from "./index97.js";
|
|
19
|
+
import Y from "./index98.js";
|
|
20
|
+
import Z from "./index99.js";
|
|
21
|
+
import z from "./index100.js";
|
|
22
|
+
import ss from "./index101.js";
|
|
23
|
+
import os from "./index102.js";
|
|
24
|
+
import _s from "./index103.js";
|
|
25
|
+
import ts from "./index104.js";
|
|
26
|
+
import is from "./index105.js";
|
|
27
|
+
import rs from "./index106.js";
|
|
28
|
+
import es from "./index107.js";
|
|
29
|
+
import cs from "./index108.js";
|
|
30
|
+
import as from "./index109.js";
|
|
31
|
+
import ms from "./index110.js";
|
|
32
|
+
import gs from "./index111.js";
|
|
33
|
+
import vs from "./index112.js";
|
|
34
|
+
import ls from "./index113.js";
|
|
35
|
+
import ns from "./index114.js";
|
|
36
|
+
import fs from "./index115.js";
|
|
37
|
+
import bs from "./index116.js";
|
|
38
|
+
import ps from "./index117.js";
|
|
39
|
+
import ds from "./index118.js";
|
|
40
|
+
import us from "./index119.js";
|
|
41
|
+
import hs from "./index120.js";
|
|
42
|
+
import ks from "./index121.js";
|
|
43
|
+
import xs from "./index122.js";
|
|
44
|
+
import As from "./index123.js";
|
|
45
|
+
import ws from "./index124.js";
|
|
46
|
+
import ys from "./index125.js";
|
|
47
|
+
import Ps from "./index126.js";
|
|
48
|
+
import Is from "./index127.js";
|
|
49
|
+
import Ns from "./index128.js";
|
|
50
|
+
import Cs from "./index129.js";
|
|
51
|
+
import Os from "./index130.js";
|
|
52
|
+
import $s from "./index131.js";
|
|
53
|
+
import Es from "./index132.js";
|
|
54
|
+
import Ss from "./index133.js";
|
|
55
|
+
import js from "./index134.js";
|
|
56
|
+
import Ls from "./index135.js";
|
|
57
|
+
import Rs from "./index136.js";
|
|
58
|
+
import Fs from "./index137.js";
|
|
59
|
+
import Bs from "./index138.js";
|
|
60
|
+
import Ds from "./index139.js";
|
|
61
|
+
import Ms from "./index140.js";
|
|
62
|
+
import Ts from "./index141.js";
|
|
63
|
+
import qs from "./index142.js";
|
|
64
|
+
import Gs from "./index143.js";
|
|
65
|
+
import Vs from "./index144.js";
|
|
66
|
+
import Hs from "./index145.js";
|
|
67
|
+
import Js from "./index146.js";
|
|
68
|
+
import Ks from "./index147.js";
|
|
69
|
+
import Qs from "./index148.js";
|
|
70
|
+
import Us from "./index149.js";
|
|
71
|
+
import Ws from "./index150.js";
|
|
72
|
+
import Xs from "./index151.js";
|
|
73
|
+
import Ys from "./index152.js";
|
|
74
|
+
import Zs from "./index153.js";
|
|
75
|
+
import zs from "./index154.js";
|
|
76
|
+
import so from "./index155.js";
|
|
77
|
+
import oo from "./index156.js";
|
|
78
|
+
import _o from "./index157.js";
|
|
79
|
+
import to from "./index158.js";
|
|
80
|
+
import io from "./index159.js";
|
|
81
|
+
import ro from "./index160.js";
|
|
82
|
+
import eo from "./index161.js";
|
|
83
|
+
import co from "./index162.js";
|
|
84
|
+
import ao from "./index163.js";
|
|
85
|
+
import mo from "./index164.js";
|
|
86
|
+
import go from "./index165.js";
|
|
87
|
+
import vo from "./index166.js";
|
|
88
|
+
import lo from "./index167.js";
|
|
89
|
+
import no from "./index168.js";
|
|
90
|
+
import fo from "./index169.js";
|
|
91
|
+
import bo from "./index170.js";
|
|
92
|
+
import po from "./index171.js";
|
|
93
|
+
import uo from "./index172.js";
|
|
94
|
+
import ho from "./index173.js";
|
|
95
|
+
import ko from "./index174.js";
|
|
96
|
+
import xo from "./index175.js";
|
|
97
|
+
import Ao from "./index176.js";
|
|
98
|
+
import wo from "./index177.js";
|
|
99
|
+
import yo from "./index178.js";
|
|
100
|
+
import Po from "./index179.js";
|
|
101
|
+
import Io from "./index180.js";
|
|
102
|
+
import No from "./index181.js";
|
|
103
|
+
import Co from "./index182.js";
|
|
104
|
+
import Oo from "./index183.js";
|
|
105
|
+
import $o from "./index184.js";
|
|
106
|
+
import Eo from "./index185.js";
|
|
107
|
+
import So from "./index186.js";
|
|
108
|
+
import jo from "./index187.js";
|
|
109
|
+
import Lo from "./index188.js";
|
|
110
|
+
import Ro from "./index189.js";
|
|
111
|
+
import Fo from "./index190.js";
|
|
112
|
+
import Bo from "./index191.js";
|
|
113
|
+
import Do from "./index192.js";
|
|
114
|
+
import Mo from "./index193.js";
|
|
115
|
+
import To from "./index194.js";
|
|
116
|
+
import qo from "./index195.js";
|
|
117
|
+
import Go from "./index196.js";
|
|
118
|
+
import Vo from "./index197.js";
|
|
119
|
+
import Ho from "./index198.js";
|
|
120
120
|
import c from "react";
|
|
121
|
-
import { ReactSVG as Jo } from "./
|
|
121
|
+
import { ReactSVG as Jo } from "./index199.js";
|
|
122
122
|
import { getA11yNameAttributes as Ko } from "./index78.js";
|
|
123
123
|
import { useAccessiblePress as Qo } from "./index67.js";
|
|
124
124
|
import "./index72.js";
|
package/dist/index63.js
CHANGED
|
@@ -2,7 +2,7 @@ import F, { useState as ot, useRef as X, useEffect as $ } from "react";
|
|
|
2
2
|
import { createPortal as nt } from "react-dom";
|
|
3
3
|
import { Icon as it } from "./index6.js";
|
|
4
4
|
import { Button as rt } from "./index4.js";
|
|
5
|
-
import { debounce as lt } from "./
|
|
5
|
+
import { debounce as lt } from "./index220.js";
|
|
6
6
|
const q = 500, S = 50, U = 150, st = {
|
|
7
7
|
"top-left": {
|
|
8
8
|
rotate: "315",
|
package/dist/index65.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Badge as j } from "./index10.js";
|
|
|
4
4
|
import { Icon as q } from "./index6.js";
|
|
5
5
|
import { Link as N } from "./index64.js";
|
|
6
6
|
import { CustomModal as G } from "./index13.js";
|
|
7
|
-
import { useStableId as J } from "./
|
|
7
|
+
import { useStableId as J } from "./index201.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
const K = {
|
|
10
10
|
lg: {
|
package/dist/index7.js
CHANGED
package/dist/index76.js
CHANGED
|
@@ -1,43 +1,40 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { useScrollActiveIntoView as x } from "./
|
|
3
|
-
function
|
|
4
|
-
items:
|
|
1
|
+
import { useState as m, useEffect as w, useCallback as b } from "react";
|
|
2
|
+
import { useScrollActiveIntoView as x } from "./index243.js";
|
|
3
|
+
function s({
|
|
4
|
+
items: c,
|
|
5
5
|
isOpen: t,
|
|
6
|
-
onSelect:
|
|
6
|
+
onSelect: l,
|
|
7
7
|
onClose: i,
|
|
8
8
|
onOpen: n,
|
|
9
|
-
loop:
|
|
10
|
-
disabled:
|
|
9
|
+
loop: o = !0,
|
|
10
|
+
disabled: h = !1,
|
|
11
11
|
listboxRef: k,
|
|
12
|
-
optionSelector:
|
|
12
|
+
optionSelector: g = '[role="option"]'
|
|
13
13
|
}) {
|
|
14
|
-
const [
|
|
14
|
+
const [f, r] = m(-1);
|
|
15
15
|
w(() => {
|
|
16
16
|
t || r(-1);
|
|
17
17
|
}, [t]), x({
|
|
18
18
|
containerRef: k,
|
|
19
|
-
activeIndex:
|
|
20
|
-
itemSelector:
|
|
19
|
+
activeIndex: f,
|
|
20
|
+
itemSelector: g,
|
|
21
21
|
enabled: t
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
23
|
+
const D = b((a) => {
|
|
24
|
+
if (h) {
|
|
25
25
|
a.key === "Escape" && t && (a.preventDefault(), i());
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const e = c.length;
|
|
29
29
|
switch (a.key) {
|
|
30
30
|
case "ArrowDown":
|
|
31
|
-
a.preventDefault(), !t &&
|
|
31
|
+
a.preventDefault(), !t && e > 0 ? (n?.(), r(0)) : t && e > 0 && r((u) => o ? (u + 1) % e : Math.min(u + 1, e - 1));
|
|
32
32
|
break;
|
|
33
33
|
case "ArrowUp":
|
|
34
|
-
a.preventDefault(), t &&
|
|
34
|
+
a.preventDefault(), t && e > 0 && r((u) => u === -1 ? e - 1 : o ? (u - 1 + e) % e : Math.max(u - 1, 0));
|
|
35
35
|
break;
|
|
36
36
|
case "Enter":
|
|
37
|
-
a.preventDefault(), t ?
|
|
38
|
-
break;
|
|
39
|
-
case " ":
|
|
40
|
-
a.preventDefault(), t ? e >= 0 && u[e] && (o(u[e], e), r(-1)) : (n?.(), r(0));
|
|
37
|
+
a.preventDefault(), t ? f >= 0 && c[f] && (l(c[f], f), r(-1)) : (n?.(), r(0));
|
|
41
38
|
break;
|
|
42
39
|
case "Escape":
|
|
43
40
|
t && (a.preventDefault(), i(), r(-1));
|
|
@@ -46,15 +43,15 @@ function E({
|
|
|
46
43
|
t && (i(), r(-1));
|
|
47
44
|
break;
|
|
48
45
|
}
|
|
49
|
-
}, [
|
|
46
|
+
}, [h, c, t, f, l, i, n, o]), d = b((a, e) => `${a}-option-${e}`, []);
|
|
50
47
|
return {
|
|
51
|
-
highlightedIndex:
|
|
48
|
+
highlightedIndex: f,
|
|
52
49
|
setHighlightedIndex: r,
|
|
53
|
-
handleKeyDown:
|
|
50
|
+
handleKeyDown: D,
|
|
54
51
|
getOptionId: d
|
|
55
52
|
};
|
|
56
53
|
}
|
|
57
54
|
export {
|
|
58
|
-
|
|
55
|
+
s as useComboboxNavigation
|
|
59
56
|
};
|
|
60
57
|
//# sourceMappingURL=index76.js.map
|