@handijitcom/ui 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1025 -2
- package/build/base.css +1 -0
- package/build/calendar.cjs +2 -0
- package/build/calendar.cjs.map +1 -0
- package/build/calendar.css +1 -0
- package/build/calendar.js +741 -0
- package/build/calendar.js.map +1 -0
- package/build/charts.cjs +2 -0
- package/build/charts.cjs.map +1 -0
- package/build/charts.css +1 -0
- package/build/charts.js +1866 -0
- package/build/charts.js.map +1 -0
- package/build/chat.cjs +4 -0
- package/build/chat.cjs.map +1 -0
- package/build/chat.css +1 -0
- package/build/chat.js +1126 -0
- package/build/chat.js.map +1 -0
- package/build/components/Accordion/index.cjs +2 -0
- package/build/components/Accordion/index.cjs.map +1 -0
- package/build/components/Accordion/index.d.cts +29 -0
- package/build/components/Accordion/index.d.ts +29 -0
- package/build/components/Accordion/index.js +42 -0
- package/build/components/Accordion/index.js.map +1 -0
- package/build/components/Accordion/style.css +1 -0
- package/build/components/Alert/index.cjs +2 -0
- package/build/components/Alert/index.cjs.map +1 -0
- package/build/components/Alert/index.d.cts +15 -0
- package/build/components/Alert/index.d.ts +15 -0
- package/build/components/Alert/index.js +32 -0
- package/build/components/Alert/index.js.map +1 -0
- package/build/components/Alert/style.css +1 -0
- package/build/components/Avatar/index.cjs +2 -0
- package/build/components/Avatar/index.cjs.map +1 -0
- package/build/components/Avatar/index.d.cts +26 -0
- package/build/components/Avatar/index.d.ts +26 -0
- package/build/components/Avatar/index.js +57 -0
- package/build/components/Avatar/index.js.map +1 -0
- package/build/components/Avatar/style.css +1 -0
- package/build/components/Badge/index.cjs +2 -0
- package/build/components/Badge/index.cjs.map +1 -0
- package/build/components/Badge/index.d.cts +21 -0
- package/build/components/Badge/index.d.ts +21 -0
- package/build/components/Badge/index.js +26 -0
- package/build/components/Badge/index.js.map +1 -0
- package/build/components/Badge/style.css +1 -0
- package/build/components/BottomSheet/index.cjs +2 -0
- package/build/components/BottomSheet/index.cjs.map +1 -0
- package/build/components/BottomSheet/index.d.cts +21 -0
- package/build/components/BottomSheet/index.d.ts +21 -0
- package/build/components/BottomSheet/index.js +85 -0
- package/build/components/BottomSheet/index.js.map +1 -0
- package/build/components/BottomSheet/style.css +1 -0
- package/build/components/Breadcrumb/index.cjs +2 -0
- package/build/components/Breadcrumb/index.cjs.map +1 -0
- package/build/components/Breadcrumb/index.d.cts +20 -0
- package/build/components/Breadcrumb/index.d.ts +20 -0
- package/build/components/Breadcrumb/index.js +31 -0
- package/build/components/Breadcrumb/index.js.map +1 -0
- package/build/components/Breadcrumb/style.css +1 -0
- package/build/components/Button/index.cjs +2 -0
- package/build/components/Button/index.cjs.map +1 -0
- package/build/components/Button/index.d.cts +32 -0
- package/build/components/Button/index.d.ts +32 -0
- package/build/components/Button/index.js +88 -0
- package/build/components/Button/index.js.map +1 -0
- package/build/components/Button/style.css +1 -0
- package/build/components/Card/index.cjs +2 -0
- package/build/components/Card/index.cjs.map +1 -0
- package/build/components/Card/index.d.cts +51 -0
- package/build/components/Card/index.d.ts +51 -0
- package/build/components/Card/index.js +58 -0
- package/build/components/Card/index.js.map +1 -0
- package/build/components/Card/style.css +1 -0
- package/build/components/Carousel/index.cjs +2 -0
- package/build/components/Carousel/index.cjs.map +1 -0
- package/build/components/Carousel/index.d.cts +24 -0
- package/build/components/Carousel/index.d.ts +24 -0
- package/build/components/Carousel/index.js +111 -0
- package/build/components/Carousel/index.js.map +1 -0
- package/build/components/Carousel/style.css +1 -0
- package/build/components/Checkbox/index.cjs +2 -0
- package/build/components/Checkbox/index.cjs.map +1 -0
- package/build/components/Checkbox/index.d.cts +15 -0
- package/build/components/Checkbox/index.d.ts +15 -0
- package/build/components/Checkbox/index.js +50 -0
- package/build/components/Checkbox/index.js.map +1 -0
- package/build/components/Checkbox/style.css +1 -0
- package/build/components/Chip/index.cjs +2 -0
- package/build/components/Chip/index.cjs.map +1 -0
- package/build/components/Chip/index.d.cts +27 -0
- package/build/components/Chip/index.d.ts +27 -0
- package/build/components/Chip/index.js +67 -0
- package/build/components/Chip/index.js.map +1 -0
- package/build/components/Chip/style.css +1 -0
- package/build/components/ChipGroup/index.cjs +2 -0
- package/build/components/ChipGroup/index.cjs.map +1 -0
- package/build/components/ChipGroup/index.d.cts +53 -0
- package/build/components/ChipGroup/index.d.ts +53 -0
- package/build/components/ChipGroup/index.js +81 -0
- package/build/components/ChipGroup/index.js.map +1 -0
- package/build/components/ChipGroup/style.css +1 -0
- package/build/components/CodeBadge/index.cjs +2 -0
- package/build/components/CodeBadge/index.cjs.map +1 -0
- package/build/components/CodeBadge/index.d.cts +36 -0
- package/build/components/CodeBadge/index.d.ts +36 -0
- package/build/components/CodeBadge/index.js +62 -0
- package/build/components/CodeBadge/index.js.map +1 -0
- package/build/components/CodeBadge/style.css +1 -0
- package/build/components/Combobox/index.cjs +2 -0
- package/build/components/Combobox/index.cjs.map +1 -0
- package/build/components/Combobox/index.d.cts +8 -0
- package/build/components/Combobox/index.d.ts +8 -0
- package/build/components/Combobox/index.js +332 -0
- package/build/components/Combobox/index.js.map +1 -0
- package/build/components/Combobox/style.css +1 -0
- package/build/components/CommandPalette/index.cjs +2 -0
- package/build/components/CommandPalette/index.cjs.map +1 -0
- package/build/components/CommandPalette/index.d.cts +37 -0
- package/build/components/CommandPalette/index.d.ts +37 -0
- package/build/components/CommandPalette/index.js +181 -0
- package/build/components/CommandPalette/index.js.map +1 -0
- package/build/components/CommandPalette/style.css +1 -0
- package/build/components/ConfirmDialog/index.cjs +2 -0
- package/build/components/ConfirmDialog/index.cjs.map +1 -0
- package/build/components/ConfirmDialog/index.d.cts +34 -0
- package/build/components/ConfirmDialog/index.d.ts +34 -0
- package/build/components/ConfirmDialog/index.js +85 -0
- package/build/components/ConfirmDialog/index.js.map +1 -0
- package/build/components/CopyField/index.cjs +2 -0
- package/build/components/CopyField/index.cjs.map +1 -0
- package/build/components/CopyField/index.d.cts +20 -0
- package/build/components/CopyField/index.d.ts +20 -0
- package/build/components/CopyField/index.js +44 -0
- package/build/components/CopyField/index.js.map +1 -0
- package/build/components/CopyField/style.css +1 -0
- package/build/components/DataTable/index.cjs +2 -0
- package/build/components/DataTable/index.cjs.map +1 -0
- package/build/components/DataTable/index.d.cts +60 -0
- package/build/components/DataTable/index.d.ts +60 -0
- package/build/components/DataTable/index.js +109 -0
- package/build/components/DataTable/index.js.map +1 -0
- package/build/components/DataTable/style.css +1 -0
- package/build/components/DateField/index.cjs +2 -0
- package/build/components/DateField/index.cjs.map +1 -0
- package/build/components/DateField/index.d.cts +57 -0
- package/build/components/DateField/index.d.ts +57 -0
- package/build/components/DateField/index.js +90 -0
- package/build/components/DateField/index.js.map +1 -0
- package/build/components/DateField/style.css +1 -0
- package/build/components/Directory/index.cjs +2 -0
- package/build/components/Directory/index.cjs.map +1 -0
- package/build/components/Directory/index.d.cts +51 -0
- package/build/components/Directory/index.d.ts +51 -0
- package/build/components/Directory/index.js +46 -0
- package/build/components/Directory/index.js.map +1 -0
- package/build/components/Directory/style.css +1 -0
- package/build/components/Disclosure/index.cjs +2 -0
- package/build/components/Disclosure/index.cjs.map +1 -0
- package/build/components/Disclosure/index.d.cts +34 -0
- package/build/components/Disclosure/index.d.ts +34 -0
- package/build/components/Disclosure/index.js +64 -0
- package/build/components/Disclosure/index.js.map +1 -0
- package/build/components/Disclosure/style.css +1 -0
- package/build/components/Divider/index.cjs +2 -0
- package/build/components/Divider/index.cjs.map +1 -0
- package/build/components/Divider/index.d.cts +10 -0
- package/build/components/Divider/index.d.ts +10 -0
- package/build/components/Divider/index.js +24 -0
- package/build/components/Divider/index.js.map +1 -0
- package/build/components/Divider/style.css +1 -0
- package/build/components/Drawer/index.cjs +2 -0
- package/build/components/Drawer/index.cjs.map +1 -0
- package/build/components/Drawer/index.d.cts +29 -0
- package/build/components/Drawer/index.d.ts +29 -0
- package/build/components/Drawer/index.js +91 -0
- package/build/components/Drawer/index.js.map +1 -0
- package/build/components/Drawer/style.css +1 -0
- package/build/components/EmptyState/index.cjs +2 -0
- package/build/components/EmptyState/index.cjs.map +1 -0
- package/build/components/EmptyState/index.d.cts +19 -0
- package/build/components/EmptyState/index.d.ts +19 -0
- package/build/components/EmptyState/index.js +35 -0
- package/build/components/EmptyState/index.js.map +1 -0
- package/build/components/EmptyState/style.css +1 -0
- package/build/components/Field/index.cjs +2 -0
- package/build/components/Field/index.cjs.map +1 -0
- package/build/components/Field/index.d.cts +37 -0
- package/build/components/Field/index.d.ts +37 -0
- package/build/components/Field/index.js +54 -0
- package/build/components/Field/index.js.map +1 -0
- package/build/components/Field/style.css +1 -0
- package/build/components/FileUpload/index.cjs +2 -0
- package/build/components/FileUpload/index.cjs.map +1 -0
- package/build/components/FileUpload/index.d.cts +42 -0
- package/build/components/FileUpload/index.d.ts +42 -0
- package/build/components/FileUpload/index.js +145 -0
- package/build/components/FileUpload/index.js.map +1 -0
- package/build/components/FileUpload/style.css +1 -0
- package/build/components/FilterBar/index.cjs +2 -0
- package/build/components/FilterBar/index.cjs.map +1 -0
- package/build/components/FilterBar/index.d.cts +28 -0
- package/build/components/FilterBar/index.d.ts +28 -0
- package/build/components/FilterBar/index.js +35 -0
- package/build/components/FilterBar/index.js.map +1 -0
- package/build/components/FilterBar/style.css +1 -0
- package/build/components/IconButton/index.cjs +2 -0
- package/build/components/IconButton/index.cjs.map +1 -0
- package/build/components/IconButton/index.d.cts +26 -0
- package/build/components/IconButton/index.d.ts +26 -0
- package/build/components/IconButton/index.js +61 -0
- package/build/components/IconButton/index.js.map +1 -0
- package/build/components/IconButton/style.css +1 -0
- package/build/components/Input/index.cjs +2 -0
- package/build/components/Input/index.cjs.map +1 -0
- package/build/components/Input/index.d.cts +15 -0
- package/build/components/Input/index.d.ts +15 -0
- package/build/components/Input/index.js +52 -0
- package/build/components/Input/index.js.map +1 -0
- package/build/components/Input/style.css +1 -0
- package/build/components/Kbd/index.cjs +2 -0
- package/build/components/Kbd/index.cjs.map +1 -0
- package/build/components/Kbd/index.d.cts +12 -0
- package/build/components/Kbd/index.d.ts +12 -0
- package/build/components/Kbd/index.js +13 -0
- package/build/components/Kbd/index.js.map +1 -0
- package/build/components/Kbd/style.css +1 -0
- package/build/components/Link/index.cjs +2 -0
- package/build/components/Link/index.cjs.map +1 -0
- package/build/components/Link/index.d.cts +5 -0
- package/build/components/Link/index.d.ts +5 -0
- package/build/components/Link/index.js +11 -0
- package/build/components/Link/index.js.map +1 -0
- package/build/components/Menu/index.cjs +2 -0
- package/build/components/Menu/index.cjs.map +1 -0
- package/build/components/Menu/index.d.cts +46 -0
- package/build/components/Menu/index.d.ts +46 -0
- package/build/components/Menu/index.js +241 -0
- package/build/components/Menu/index.js.map +1 -0
- package/build/components/Menu/style.css +1 -0
- package/build/components/Modal/index.cjs +2 -0
- package/build/components/Modal/index.cjs.map +1 -0
- package/build/components/Modal/index.d.cts +35 -0
- package/build/components/Modal/index.d.ts +35 -0
- package/build/components/Modal/index.js +95 -0
- package/build/components/Modal/index.js.map +1 -0
- package/build/components/Modal/style.css +1 -0
- package/build/components/MoneyInput/index.cjs +2 -0
- package/build/components/MoneyInput/index.cjs.map +1 -0
- package/build/components/MoneyInput/index.d.cts +17 -0
- package/build/components/MoneyInput/index.d.ts +17 -0
- package/build/components/MoneyInput/index.js +22 -0
- package/build/components/MoneyInput/index.js.map +1 -0
- package/build/components/PageHeader/index.cjs +2 -0
- package/build/components/PageHeader/index.cjs.map +1 -0
- package/build/components/PageHeader/index.d.cts +24 -0
- package/build/components/PageHeader/index.d.ts +24 -0
- package/build/components/PageHeader/index.js +34 -0
- package/build/components/PageHeader/index.js.map +1 -0
- package/build/components/PageHeader/style.css +1 -0
- package/build/components/Pagination/index.cjs +2 -0
- package/build/components/Pagination/index.cjs.map +1 -0
- package/build/components/Pagination/index.d.cts +39 -0
- package/build/components/Pagination/index.d.ts +39 -0
- package/build/components/Pagination/index.js +128 -0
- package/build/components/Pagination/index.js.map +1 -0
- package/build/components/Pagination/style.css +1 -0
- package/build/components/Panel/index.cjs +2 -0
- package/build/components/Panel/index.cjs.map +1 -0
- package/build/components/Panel/index.d.cts +43 -0
- package/build/components/Panel/index.d.ts +43 -0
- package/build/components/Panel/index.js +55 -0
- package/build/components/Panel/index.js.map +1 -0
- package/build/components/Panel/style.css +1 -0
- package/build/components/PasswordInput/index.cjs +2 -0
- package/build/components/PasswordInput/index.cjs.map +1 -0
- package/build/components/PasswordInput/index.d.cts +14 -0
- package/build/components/PasswordInput/index.d.ts +14 -0
- package/build/components/PasswordInput/index.js +40 -0
- package/build/components/PasswordInput/index.js.map +1 -0
- package/build/components/PasswordInput/style.css +1 -0
- package/build/components/PercentInput/index.cjs +2 -0
- package/build/components/PercentInput/index.cjs.map +1 -0
- package/build/components/PercentInput/index.d.cts +10 -0
- package/build/components/PercentInput/index.d.ts +10 -0
- package/build/components/PercentInput/index.js +14 -0
- package/build/components/PercentInput/index.js.map +1 -0
- package/build/components/Popover/index.cjs +2 -0
- package/build/components/Popover/index.cjs.map +1 -0
- package/build/components/Popover/index.d.cts +26 -0
- package/build/components/Popover/index.d.ts +26 -0
- package/build/components/Popover/index.js +106 -0
- package/build/components/Popover/index.js.map +1 -0
- package/build/components/Popover/style.css +1 -0
- package/build/components/Price/index.cjs +2 -0
- package/build/components/Price/index.cjs.map +1 -0
- package/build/components/Price/index.d.cts +22 -0
- package/build/components/Price/index.d.ts +22 -0
- package/build/components/Price/index.js +46 -0
- package/build/components/Price/index.js.map +1 -0
- package/build/components/Price/style.css +1 -0
- package/build/components/Progress/index.cjs +2 -0
- package/build/components/Progress/index.cjs.map +1 -0
- package/build/components/Progress/index.d.cts +59 -0
- package/build/components/Progress/index.d.ts +59 -0
- package/build/components/Progress/index.js +124 -0
- package/build/components/Progress/index.js.map +1 -0
- package/build/components/Progress/style.css +1 -0
- package/build/components/PromptDialog/index.cjs +2 -0
- package/build/components/PromptDialog/index.cjs.map +1 -0
- package/build/components/PromptDialog/index.d.cts +36 -0
- package/build/components/PromptDialog/index.d.ts +36 -0
- package/build/components/PromptDialog/index.js +119 -0
- package/build/components/PromptDialog/index.js.map +1 -0
- package/build/components/PromptDialog/style.css +1 -0
- package/build/components/QuantityInput/index.cjs +2 -0
- package/build/components/QuantityInput/index.cjs.map +1 -0
- package/build/components/QuantityInput/index.d.cts +17 -0
- package/build/components/QuantityInput/index.d.ts +17 -0
- package/build/components/QuantityInput/index.js +23 -0
- package/build/components/QuantityInput/index.js.map +1 -0
- package/build/components/QuantityStepper/index.cjs +2 -0
- package/build/components/QuantityStepper/index.cjs.map +1 -0
- package/build/components/QuantityStepper/index.d.cts +37 -0
- package/build/components/QuantityStepper/index.d.ts +37 -0
- package/build/components/QuantityStepper/index.js +118 -0
- package/build/components/QuantityStepper/index.js.map +1 -0
- package/build/components/QuantityStepper/style.css +1 -0
- package/build/components/Radio/index.cjs +2 -0
- package/build/components/Radio/index.cjs.map +1 -0
- package/build/components/Radio/index.d.cts +18 -0
- package/build/components/Radio/index.d.ts +18 -0
- package/build/components/Radio/index.js +53 -0
- package/build/components/Radio/index.js.map +1 -0
- package/build/components/Radio/style.css +1 -0
- package/build/components/RadioCard/index.cjs +2 -0
- package/build/components/RadioCard/index.cjs.map +1 -0
- package/build/components/RadioCard/index.d.cts +16 -0
- package/build/components/RadioCard/index.d.ts +16 -0
- package/build/components/RadioCard/index.js +48 -0
- package/build/components/RadioCard/index.js.map +1 -0
- package/build/components/RadioCard/style.css +1 -0
- package/build/components/RangeSlider/index.cjs +2 -0
- package/build/components/RangeSlider/index.cjs.map +1 -0
- package/build/components/RangeSlider/index.d.cts +45 -0
- package/build/components/RangeSlider/index.d.ts +45 -0
- package/build/components/RangeSlider/index.js +121 -0
- package/build/components/RangeSlider/index.js.map +1 -0
- package/build/components/RangeSlider/style.css +1 -0
- package/build/components/RateInput/index.cjs +2 -0
- package/build/components/RateInput/index.cjs.map +1 -0
- package/build/components/RateInput/index.d.cts +9 -0
- package/build/components/RateInput/index.d.ts +9 -0
- package/build/components/RateInput/index.js +18 -0
- package/build/components/RateInput/index.js.map +1 -0
- package/build/components/Rating/index.cjs +2 -0
- package/build/components/Rating/index.cjs.map +1 -0
- package/build/components/Rating/index.d.cts +16 -0
- package/build/components/Rating/index.d.ts +16 -0
- package/build/components/Rating/index.js +29 -0
- package/build/components/Rating/index.js.map +1 -0
- package/build/components/Rating/style.css +1 -0
- package/build/components/RatingInput/index.cjs +2 -0
- package/build/components/RatingInput/index.cjs.map +1 -0
- package/build/components/RatingInput/index.d.cts +34 -0
- package/build/components/RatingInput/index.d.ts +34 -0
- package/build/components/RatingInput/index.js +89 -0
- package/build/components/RatingInput/index.js.map +1 -0
- package/build/components/RatingInput/style.css +1 -0
- package/build/components/ScaledInput/index.cjs +2 -0
- package/build/components/ScaledInput/index.cjs.map +1 -0
- package/build/components/ScaledInput/index.d.cts +77 -0
- package/build/components/ScaledInput/index.d.ts +77 -0
- package/build/components/ScaledInput/index.js +77 -0
- package/build/components/ScaledInput/index.js.map +1 -0
- package/build/components/ScaledInput/style.css +1 -0
- package/build/components/ScrollArea/index.cjs +2 -0
- package/build/components/ScrollArea/index.cjs.map +1 -0
- package/build/components/ScrollArea/index.d.cts +23 -0
- package/build/components/ScrollArea/index.d.ts +23 -0
- package/build/components/ScrollArea/index.js +65 -0
- package/build/components/ScrollArea/index.js.map +1 -0
- package/build/components/ScrollArea/style.css +1 -0
- package/build/components/SectionHeader/index.cjs +2 -0
- package/build/components/SectionHeader/index.cjs.map +1 -0
- package/build/components/SectionHeader/index.d.cts +17 -0
- package/build/components/SectionHeader/index.d.ts +17 -0
- package/build/components/SectionHeader/index.js +25 -0
- package/build/components/SectionHeader/index.js.map +1 -0
- package/build/components/SectionHeader/style.css +1 -0
- package/build/components/SegmentedControl/index.cjs +2 -0
- package/build/components/SegmentedControl/index.cjs.map +1 -0
- package/build/components/SegmentedControl/index.d.cts +39 -0
- package/build/components/SegmentedControl/index.d.ts +39 -0
- package/build/components/SegmentedControl/index.js +84 -0
- package/build/components/SegmentedControl/index.js.map +1 -0
- package/build/components/SegmentedControl/style.css +1 -0
- package/build/components/Select/index.cjs +2 -0
- package/build/components/Select/index.cjs.map +1 -0
- package/build/components/Select/index.d.cts +52 -0
- package/build/components/Select/index.d.ts +52 -0
- package/build/components/Select/index.js +206 -0
- package/build/components/Select/index.js.map +1 -0
- package/build/components/Select/style.css +1 -0
- package/build/components/Skeleton/index.cjs +2 -0
- package/build/components/Skeleton/index.cjs.map +1 -0
- package/build/components/Skeleton/index.d.cts +25 -0
- package/build/components/Skeleton/index.d.ts +25 -0
- package/build/components/Skeleton/index.js +50 -0
- package/build/components/Skeleton/index.js.map +1 -0
- package/build/components/Skeleton/style.css +1 -0
- package/build/components/Spinner/index.cjs +2 -0
- package/build/components/Spinner/index.cjs.map +1 -0
- package/build/components/Spinner/index.d.cts +16 -0
- package/build/components/Spinner/index.d.ts +16 -0
- package/build/components/Spinner/index.js +15 -0
- package/build/components/Spinner/index.js.map +1 -0
- package/build/components/Spinner/style.css +1 -0
- package/build/components/Stat/index.cjs +2 -0
- package/build/components/Stat/index.cjs.map +1 -0
- package/build/components/Stat/index.d.cts +34 -0
- package/build/components/Stat/index.d.ts +34 -0
- package/build/components/Stat/index.js +72 -0
- package/build/components/Stat/index.js.map +1 -0
- package/build/components/Stat/style.css +1 -0
- package/build/components/StatusDot/index.cjs +2 -0
- package/build/components/StatusDot/index.cjs.map +1 -0
- package/build/components/StatusDot/index.d.cts +23 -0
- package/build/components/StatusDot/index.d.ts +23 -0
- package/build/components/StatusDot/index.js +23 -0
- package/build/components/StatusDot/index.js.map +1 -0
- package/build/components/StatusDot/style.css +1 -0
- package/build/components/Steps/index.cjs +2 -0
- package/build/components/Steps/index.cjs.map +1 -0
- package/build/components/Steps/index.d.cts +23 -0
- package/build/components/Steps/index.d.ts +23 -0
- package/build/components/Steps/index.js +69 -0
- package/build/components/Steps/index.js.map +1 -0
- package/build/components/Steps/style.css +1 -0
- package/build/components/SummaryCard/index.cjs +2 -0
- package/build/components/SummaryCard/index.cjs.map +1 -0
- package/build/components/SummaryCard/index.d.cts +24 -0
- package/build/components/SummaryCard/index.d.ts +24 -0
- package/build/components/SummaryCard/index.js +33 -0
- package/build/components/SummaryCard/index.js.map +1 -0
- package/build/components/SummaryCard/style.css +1 -0
- package/build/components/Switch/index.cjs +2 -0
- package/build/components/Switch/index.cjs.map +1 -0
- package/build/components/Switch/index.d.cts +21 -0
- package/build/components/Switch/index.d.ts +21 -0
- package/build/components/Switch/index.js +60 -0
- package/build/components/Switch/index.js.map +1 -0
- package/build/components/Switch/style.css +1 -0
- package/build/components/Table/index.cjs +2 -0
- package/build/components/Table/index.cjs.map +1 -0
- package/build/components/Table/index.d.cts +28 -0
- package/build/components/Table/index.d.ts +28 -0
- package/build/components/Table/index.js +58 -0
- package/build/components/Table/index.js.map +1 -0
- package/build/components/Table/style.css +1 -0
- package/build/components/TableCheckbox/index.cjs +2 -0
- package/build/components/TableCheckbox/index.cjs.map +1 -0
- package/build/components/TableCheckbox/index.d.cts +15 -0
- package/build/components/TableCheckbox/index.d.ts +15 -0
- package/build/components/TableCheckbox/index.js +31 -0
- package/build/components/TableCheckbox/index.js.map +1 -0
- package/build/components/TableCheckbox/style.css +1 -0
- package/build/components/Tabs/index.cjs +2 -0
- package/build/components/Tabs/index.cjs.map +1 -0
- package/build/components/Tabs/index.d.cts +27 -0
- package/build/components/Tabs/index.d.ts +27 -0
- package/build/components/Tabs/index.js +102 -0
- package/build/components/Tabs/index.js.map +1 -0
- package/build/components/Tabs/style.css +1 -0
- package/build/components/TagInput/index.cjs +2 -0
- package/build/components/TagInput/index.cjs.map +1 -0
- package/build/components/TagInput/index.d.cts +43 -0
- package/build/components/TagInput/index.d.ts +43 -0
- package/build/components/TagInput/index.js +134 -0
- package/build/components/TagInput/index.js.map +1 -0
- package/build/components/TagInput/style.css +1 -0
- package/build/components/TextLink/index.cjs +2 -0
- package/build/components/TextLink/index.cjs.map +1 -0
- package/build/components/TextLink/index.d.cts +16 -0
- package/build/components/TextLink/index.d.ts +16 -0
- package/build/components/TextLink/index.js +32 -0
- package/build/components/TextLink/index.js.map +1 -0
- package/build/components/TextLink/style.css +1 -0
- package/build/components/Textarea/index.cjs +2 -0
- package/build/components/Textarea/index.cjs.map +1 -0
- package/build/components/Textarea/index.d.cts +20 -0
- package/build/components/Textarea/index.d.ts +20 -0
- package/build/components/Textarea/index.js +68 -0
- package/build/components/Textarea/index.js.map +1 -0
- package/build/components/Textarea/style.css +1 -0
- package/build/components/Tile/index.cjs +2 -0
- package/build/components/Tile/index.cjs.map +1 -0
- package/build/components/Tile/index.d.cts +19 -0
- package/build/components/Tile/index.d.ts +19 -0
- package/build/components/Tile/index.js +24 -0
- package/build/components/Tile/index.js.map +1 -0
- package/build/components/Tile/style.css +1 -0
- package/build/components/Timeline/index.cjs +2 -0
- package/build/components/Timeline/index.cjs.map +1 -0
- package/build/components/Timeline/index.d.cts +24 -0
- package/build/components/Timeline/index.d.ts +24 -0
- package/build/components/Timeline/index.js +56 -0
- package/build/components/Timeline/index.js.map +1 -0
- package/build/components/Timeline/style.css +1 -0
- package/build/components/Toast/index.cjs +2 -0
- package/build/components/Toast/index.cjs.map +1 -0
- package/build/components/Toast/index.d.cts +63 -0
- package/build/components/Toast/index.d.ts +63 -0
- package/build/components/Toast/index.js +159 -0
- package/build/components/Toast/index.js.map +1 -0
- package/build/components/Toast/style.css +1 -0
- package/build/components/ToastPortal/index.cjs +2 -0
- package/build/components/ToastPortal/index.cjs.map +1 -0
- package/build/components/ToastPortal/index.d.cts +10 -0
- package/build/components/ToastPortal/index.d.ts +10 -0
- package/build/components/ToastPortal/index.js +15 -0
- package/build/components/ToastPortal/index.js.map +1 -0
- package/build/components/Tooltip/index.cjs +2 -0
- package/build/components/Tooltip/index.cjs.map +1 -0
- package/build/components/Tooltip/index.d.cts +23 -0
- package/build/components/Tooltip/index.d.ts +23 -0
- package/build/components/Tooltip/index.js +116 -0
- package/build/components/Tooltip/index.js.map +1 -0
- package/build/components/Tooltip/style.css +1 -0
- package/build/constants/breakpoint.constants.cjs +2 -0
- package/build/constants/breakpoint.constants.cjs.map +1 -0
- package/build/constants/breakpoint.constants.d.cts +15 -0
- package/build/constants/breakpoint.constants.d.ts +15 -0
- package/build/constants/breakpoint.constants.js +12 -0
- package/build/constants/breakpoint.constants.js.map +1 -0
- package/build/constants/combobox.constants.cjs +2 -0
- package/build/constants/combobox.constants.cjs.map +1 -0
- package/build/constants/combobox.constants.d.cts +11 -0
- package/build/constants/combobox.constants.d.ts +11 -0
- package/build/constants/combobox.constants.js +7 -0
- package/build/constants/combobox.constants.js.map +1 -0
- package/build/constants/scale.constants.cjs +2 -0
- package/build/constants/scale.constants.cjs.map +1 -0
- package/build/constants/scale.constants.d.cts +10 -0
- package/build/constants/scale.constants.d.ts +10 -0
- package/build/constants/scale.constants.js +8 -0
- package/build/constants/scale.constants.js.map +1 -0
- package/build/constants/scroll.constants.cjs +2 -0
- package/build/constants/scroll.constants.cjs.map +1 -0
- package/build/constants/scroll.constants.d.cts +7 -0
- package/build/constants/scroll.constants.d.ts +7 -0
- package/build/constants/scroll.constants.js +5 -0
- package/build/constants/scroll.constants.js.map +1 -0
- package/build/design/fonts/LICENSE-archivo.txt +93 -0
- package/build/design/fonts/LICENSE-ibm-plex-mono.txt +93 -0
- package/build/design/fonts/LICENSE-inter.txt +93 -0
- package/build/design/fonts/archivo-latin-ext-wdth-normal.woff2 +0 -0
- package/build/design/fonts/archivo-latin-wdth-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/build/design/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/build/design/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/build/design/fonts.css +75 -0
- package/build/design/fonts.d.css.ts +1 -0
- package/build/design/index.cjs +778 -0
- package/build/design/index.cjs.map +1 -0
- package/build/design/index.d.cts +263 -0
- package/build/design/index.d.mts +263 -0
- package/build/design/index.mjs +751 -0
- package/build/design/index.mjs.map +1 -0
- package/build/design/index.umd.cjs +2 -0
- package/build/design/index.umd.cjs.map +1 -0
- package/build/design/logos/horizontal.svg +1 -0
- package/build/design/logos/mark.svg +1 -0
- package/build/design/tokens.css +477 -0
- package/build/design/tokens.d.css.ts +1 -0
- package/build/design/tokens.json +542 -0
- package/build/design/tokens.scss +616 -0
- package/build/enums/ui-size.enum.cjs +2 -0
- package/build/enums/ui-size.enum.cjs.map +1 -0
- package/build/enums/ui-size.enum.d.cts +12 -0
- package/build/enums/ui-size.enum.d.ts +12 -0
- package/build/enums/ui-size.enum.js +5 -0
- package/build/enums/ui-size.enum.js.map +1 -0
- package/build/enums/ui-variant.enum.cjs +2 -0
- package/build/enums/ui-variant.enum.cjs.map +1 -0
- package/build/enums/ui-variant.enum.d.cts +20 -0
- package/build/enums/ui-variant.enum.d.ts +20 -0
- package/build/enums/ui-variant.enum.js +5 -0
- package/build/enums/ui-variant.enum.js.map +1 -0
- package/build/helpers/aria.helper.cjs +2 -0
- package/build/helpers/aria.helper.cjs.map +1 -0
- package/build/helpers/aria.helper.d.cts +7 -0
- package/build/helpers/aria.helper.d.ts +7 -0
- package/build/helpers/aria.helper.js +5 -0
- package/build/helpers/aria.helper.js.map +1 -0
- package/build/helpers/class-name.helper.cjs +2 -0
- package/build/helpers/class-name.helper.cjs.map +1 -0
- package/build/helpers/class-name.helper.d.cts +3 -0
- package/build/helpers/class-name.helper.d.ts +3 -0
- package/build/helpers/class-name.helper.js +10 -0
- package/build/helpers/class-name.helper.js.map +1 -0
- package/build/helpers/component.helper.cjs +2 -0
- package/build/helpers/component.helper.cjs.map +1 -0
- package/build/helpers/component.helper.d.cts +13 -0
- package/build/helpers/component.helper.d.ts +13 -0
- package/build/helpers/component.helper.js +5 -0
- package/build/helpers/component.helper.js.map +1 -0
- package/build/helpers/focus.helper.cjs +2 -0
- package/build/helpers/focus.helper.cjs.map +1 -0
- package/build/helpers/focus.helper.d.cts +90 -0
- package/build/helpers/focus.helper.d.ts +90 -0
- package/build/helpers/focus.helper.js +83 -0
- package/build/helpers/focus.helper.js.map +1 -0
- package/build/helpers/label.helper.cjs +2 -0
- package/build/helpers/label.helper.cjs.map +1 -0
- package/build/helpers/label.helper.d.cts +11 -0
- package/build/helpers/label.helper.d.ts +11 -0
- package/build/helpers/label.helper.js +11 -0
- package/build/helpers/label.helper.js.map +1 -0
- package/build/helpers/portal.helper.cjs +2 -0
- package/build/helpers/portal.helper.cjs.map +1 -0
- package/build/helpers/portal.helper.d.cts +28 -0
- package/build/helpers/portal.helper.d.ts +28 -0
- package/build/helpers/portal.helper.js +36 -0
- package/build/helpers/portal.helper.js.map +1 -0
- package/build/helpers/ref.helper.cjs +2 -0
- package/build/helpers/ref.helper.cjs.map +1 -0
- package/build/helpers/ref.helper.d.cts +3 -0
- package/build/helpers/ref.helper.d.ts +3 -0
- package/build/helpers/ref.helper.js +7 -0
- package/build/helpers/ref.helper.js.map +1 -0
- package/build/helpers/scaled-number.helper.cjs +2 -0
- package/build/helpers/scaled-number.helper.cjs.map +1 -0
- package/build/helpers/scaled-number.helper.d.cts +54 -0
- package/build/helpers/scaled-number.helper.d.ts +54 -0
- package/build/helpers/scaled-number.helper.js +34 -0
- package/build/helpers/scaled-number.helper.js.map +1 -0
- package/build/helpers/scroll.helper.cjs +2 -0
- package/build/helpers/scroll.helper.cjs.map +1 -0
- package/build/helpers/scroll.helper.d.cts +8 -0
- package/build/helpers/scroll.helper.d.ts +8 -0
- package/build/helpers/scroll.helper.js +11 -0
- package/build/helpers/scroll.helper.js.map +1 -0
- package/build/helpers/text.helper.cjs +2 -0
- package/build/helpers/text.helper.cjs.map +1 -0
- package/build/helpers/text.helper.d.cts +5 -0
- package/build/helpers/text.helper.d.ts +5 -0
- package/build/helpers/text.helper.js +6 -0
- package/build/helpers/text.helper.js.map +1 -0
- package/build/helpers/theme.helper.cjs +2 -0
- package/build/helpers/theme.helper.cjs.map +1 -0
- package/build/helpers/theme.helper.d.cts +18 -0
- package/build/helpers/theme.helper.d.ts +18 -0
- package/build/helpers/theme.helper.js +37 -0
- package/build/helpers/theme.helper.js.map +1 -0
- package/build/hooks/useAnnounce.cjs +2 -0
- package/build/hooks/useAnnounce.cjs.map +1 -0
- package/build/hooks/useAnnounce.d.cts +4 -0
- package/build/hooks/useAnnounce.d.ts +4 -0
- package/build/hooks/useAnnounce.js +23 -0
- package/build/hooks/useAnnounce.js.map +1 -0
- package/build/hooks/useAsyncSearch.cjs +2 -0
- package/build/hooks/useAsyncSearch.cjs.map +1 -0
- package/build/hooks/useAsyncSearch.d.cts +11 -0
- package/build/hooks/useAsyncSearch.d.ts +11 -0
- package/build/hooks/useAsyncSearch.js +17 -0
- package/build/hooks/useAsyncSearch.js.map +1 -0
- package/build/hooks/useCopyFeedback.cjs +2 -0
- package/build/hooks/useCopyFeedback.cjs.map +1 -0
- package/build/hooks/useCopyFeedback.d.cts +10 -0
- package/build/hooks/useCopyFeedback.d.ts +10 -0
- package/build/hooks/useCopyFeedback.js +25 -0
- package/build/hooks/useCopyFeedback.js.map +1 -0
- package/build/hooks/useDismissOnEscape.cjs +2 -0
- package/build/hooks/useDismissOnEscape.cjs.map +1 -0
- package/build/hooks/useDismissOnEscape.d.cts +16 -0
- package/build/hooks/useDismissOnEscape.d.ts +16 -0
- package/build/hooks/useDismissOnEscape.js +18 -0
- package/build/hooks/useDismissOnEscape.js.map +1 -0
- package/build/hooks/useListboxNavigation.cjs +2 -0
- package/build/hooks/useListboxNavigation.cjs.map +1 -0
- package/build/hooks/useListboxNavigation.d.cts +7 -0
- package/build/hooks/useListboxNavigation.d.ts +7 -0
- package/build/hooks/useListboxNavigation.js +53 -0
- package/build/hooks/useListboxNavigation.js.map +1 -0
- package/build/hooks/usePortalSurface.cjs +2 -0
- package/build/hooks/usePortalSurface.cjs.map +1 -0
- package/build/hooks/usePortalSurface.d.cts +25 -0
- package/build/hooks/usePortalSurface.d.ts +25 -0
- package/build/hooks/usePortalSurface.js +19 -0
- package/build/hooks/usePortalSurface.js.map +1 -0
- package/build/hooks/usePositioning.cjs +2 -0
- package/build/hooks/usePositioning.cjs.map +1 -0
- package/build/hooks/usePositioning.d.cts +13 -0
- package/build/hooks/usePositioning.d.ts +13 -0
- package/build/hooks/usePositioning.js +74 -0
- package/build/hooks/usePositioning.js.map +1 -0
- package/build/hooks/useScrollLock.cjs +2 -0
- package/build/hooks/useScrollLock.cjs.map +1 -0
- package/build/hooks/useScrollLock.d.cts +2 -0
- package/build/hooks/useScrollLock.d.ts +2 -0
- package/build/hooks/useScrollLock.js +34 -0
- package/build/hooks/useScrollLock.js.map +1 -0
- package/build/hooks/useSheetViewport.cjs +2 -0
- package/build/hooks/useSheetViewport.cjs.map +1 -0
- package/build/hooks/useSheetViewport.d.cts +6 -0
- package/build/hooks/useSheetViewport.d.ts +6 -0
- package/build/hooks/useSheetViewport.js +29 -0
- package/build/hooks/useSheetViewport.js.map +1 -0
- package/build/hooks/useStickToBottom.cjs +2 -0
- package/build/hooks/useStickToBottom.cjs.map +1 -0
- package/build/hooks/useStickToBottom.d.cts +12 -0
- package/build/hooks/useStickToBottom.d.ts +12 -0
- package/build/hooks/useStickToBottom.js +39 -0
- package/build/hooks/useStickToBottom.js.map +1 -0
- package/build/hooks/useUiTheme.cjs +2 -0
- package/build/hooks/useUiTheme.cjs.map +1 -0
- package/build/hooks/useUiTheme.d.cts +10 -0
- package/build/hooks/useUiTheme.d.ts +10 -0
- package/build/hooks/useUiTheme.js +42 -0
- package/build/hooks/useUiTheme.js.map +1 -0
- package/build/hooks/useUiTokens.cjs +2 -0
- package/build/hooks/useUiTokens.cjs.map +1 -0
- package/build/hooks/useUiTokens.d.cts +11 -0
- package/build/hooks/useUiTokens.d.ts +11 -0
- package/build/hooks/useUiTokens.js +36 -0
- package/build/hooks/useUiTokens.js.map +1 -0
- package/build/hooks/useVirtualList.cjs +2 -0
- package/build/hooks/useVirtualList.cjs.map +1 -0
- package/build/hooks/useVirtualList.d.cts +13 -0
- package/build/hooks/useVirtualList.d.ts +13 -0
- package/build/hooks/useVirtualList.js +41 -0
- package/build/hooks/useVirtualList.js.map +1 -0
- package/build/index.cjs +2 -0
- package/build/index.cjs.map +1 -0
- package/build/index.d.cts +98 -0
- package/build/index.d.ts +98 -0
- package/build/index.js +209 -0
- package/build/index.js.map +1 -0
- package/build/scss/_index.scss +7 -0
- package/build/scss/_mixins.scss +861 -0
- package/build/scss/_variables.scss +245 -0
- package/build/styles/base.d.cts +0 -0
- package/build/styles/base.d.ts +0 -0
- package/build/styles.css +135 -0
- package/build/theme/UiProvider.cjs +2 -0
- package/build/theme/UiProvider.cjs.map +1 -0
- package/build/theme/UiProvider.d.cts +23 -0
- package/build/theme/UiProvider.d.ts +23 -0
- package/build/theme/UiProvider.js +12 -0
- package/build/theme/UiProvider.js.map +1 -0
- package/build/theme/UiThemeScript.cjs +2 -0
- package/build/theme/UiThemeScript.cjs.map +1 -0
- package/build/theme/UiThemeScript.d.cts +22 -0
- package/build/theme/UiThemeScript.d.ts +22 -0
- package/build/theme/UiThemeScript.js +8 -0
- package/build/theme/UiThemeScript.js.map +1 -0
- package/build/theme/context.cjs +2 -0
- package/build/theme/context.cjs.map +1 -0
- package/build/theme/context.d.cts +5 -0
- package/build/theme/context.d.ts +5 -0
- package/build/theme/context.js +8 -0
- package/build/theme/context.js.map +1 -0
- package/build/types/calendar/Calendar/EventBlock.d.cts +29 -0
- package/build/types/calendar/Calendar/EventBlock.d.ts +29 -0
- package/build/types/calendar/Calendar/MonthGrid.d.cts +28 -0
- package/build/types/calendar/Calendar/MonthGrid.d.ts +28 -0
- package/build/types/calendar/Calendar/TimeGrid.d.cts +37 -0
- package/build/types/calendar/Calendar/TimeGrid.d.ts +37 -0
- package/build/types/calendar/Calendar/index.d.cts +72 -0
- package/build/types/calendar/Calendar/index.d.ts +72 -0
- package/build/types/calendar/core/layout.d.cts +43 -0
- package/build/types/calendar/core/layout.d.ts +43 -0
- package/build/types/calendar/core/moves.d.cts +37 -0
- package/build/types/calendar/core/moves.d.ts +37 -0
- package/build/types/calendar/core/time.d.cts +19 -0
- package/build/types/calendar/core/time.d.ts +19 -0
- package/build/types/calendar/core/types.d.cts +75 -0
- package/build/types/calendar/core/types.d.ts +75 -0
- package/build/types/calendar/core/useCalendarDrag.d.cts +32 -0
- package/build/types/calendar/core/useCalendarDrag.d.ts +32 -0
- package/build/types/calendar/index.d.cts +13 -0
- package/build/types/calendar/index.d.ts +13 -0
- package/build/types/charts/AreaChart/index.d.cts +14 -0
- package/build/types/charts/AreaChart/index.d.ts +14 -0
- package/build/types/charts/BarChart/index.d.cts +16 -0
- package/build/types/charts/BarChart/index.d.ts +16 -0
- package/build/types/charts/BoxPlot/index.d.cts +43 -0
- package/build/types/charts/BoxPlot/index.d.ts +43 -0
- package/build/types/charts/ComposedChart/index.d.cts +16 -0
- package/build/types/charts/ComposedChart/index.d.ts +16 -0
- package/build/types/charts/Heatmap/index.d.cts +30 -0
- package/build/types/charts/Heatmap/index.d.ts +30 -0
- package/build/types/charts/Histogram/index.d.cts +29 -0
- package/build/types/charts/Histogram/index.d.ts +29 -0
- package/build/types/charts/LineChart/index.d.cts +14 -0
- package/build/types/charts/LineChart/index.d.ts +14 -0
- package/build/types/charts/PieChart/index.d.cts +36 -0
- package/build/types/charts/PieChart/index.d.ts +36 -0
- package/build/types/charts/RadarChart/index.d.cts +40 -0
- package/build/types/charts/RadarChart/index.d.ts +40 -0
- package/build/types/charts/ScatterPlot/index.d.cts +41 -0
- package/build/types/charts/ScatterPlot/index.d.ts +41 -0
- package/build/types/charts/core/CartesianChart.d.cts +43 -0
- package/build/types/charts/core/CartesianChart.d.ts +43 -0
- package/build/types/charts/core/ChartFrame.d.cts +55 -0
- package/build/types/charts/core/ChartFrame.d.ts +55 -0
- package/build/types/charts/core/axes.d.cts +37 -0
- package/build/types/charts/core/axes.d.ts +37 -0
- package/build/types/charts/core/cartesian.d.cts +80 -0
- package/build/types/charts/core/cartesian.d.ts +80 -0
- package/build/types/charts/core/format.d.cts +19 -0
- package/build/types/charts/core/format.d.ts +19 -0
- package/build/types/charts/core/margins.d.cts +9 -0
- package/build/types/charts/core/margins.d.ts +9 -0
- package/build/types/charts/core/palette.d.cts +11 -0
- package/build/types/charts/core/palette.d.ts +11 -0
- package/build/types/charts/core/path.d.cts +24 -0
- package/build/types/charts/core/path.d.ts +24 -0
- package/build/types/charts/core/scale.d.cts +40 -0
- package/build/types/charts/core/scale.d.ts +40 -0
- package/build/types/charts/core/series.d.cts +11 -0
- package/build/types/charts/core/series.d.ts +11 -0
- package/build/types/charts/core/spatial.d.cts +12 -0
- package/build/types/charts/core/spatial.d.ts +12 -0
- package/build/types/charts/core/stats.d.cts +34 -0
- package/build/types/charts/core/stats.d.ts +34 -0
- package/build/types/charts/core/types.d.cts +31 -0
- package/build/types/charts/core/types.d.ts +31 -0
- package/build/types/charts/core/useChartWidth.d.cts +7 -0
- package/build/types/charts/core/useChartWidth.d.ts +7 -0
- package/build/types/charts/index.d.cts +21 -0
- package/build/types/charts/index.d.ts +21 -0
- package/build/types/chat/ActionList/index.d.cts +46 -0
- package/build/types/chat/ActionList/index.d.ts +46 -0
- package/build/types/chat/AppBar/index.d.cts +21 -0
- package/build/types/chat/AppBar/index.d.ts +21 -0
- package/build/types/chat/ChatMessage/index.d.cts +24 -0
- package/build/types/chat/ChatMessage/index.d.ts +24 -0
- package/build/types/chat/ChatThread/index.d.cts +24 -0
- package/build/types/chat/ChatThread/index.d.ts +24 -0
- package/build/types/chat/Citation/index.d.cts +15 -0
- package/build/types/chat/Citation/index.d.ts +15 -0
- package/build/types/chat/CodeBlock/format.d.cts +7 -0
- package/build/types/chat/CodeBlock/format.d.ts +7 -0
- package/build/types/chat/CodeBlock/grammars.d.cts +44 -0
- package/build/types/chat/CodeBlock/grammars.d.ts +44 -0
- package/build/types/chat/CodeBlock/highlight.d.cts +22 -0
- package/build/types/chat/CodeBlock/highlight.d.ts +22 -0
- package/build/types/chat/CodeBlock/index.d.cts +33 -0
- package/build/types/chat/CodeBlock/index.d.ts +33 -0
- package/build/types/chat/DescriptionList/index.d.cts +16 -0
- package/build/types/chat/DescriptionList/index.d.ts +16 -0
- package/build/types/chat/Legend/index.d.cts +21 -0
- package/build/types/chat/Legend/index.d.ts +21 -0
- package/build/types/chat/MessageActions/index.d.cts +21 -0
- package/build/types/chat/MessageActions/index.d.ts +21 -0
- package/build/types/chat/PromptInput/index.d.cts +47 -0
- package/build/types/chat/PromptInput/index.d.ts +47 -0
- package/build/types/chat/PromptSuggestions/index.d.cts +25 -0
- package/build/types/chat/PromptSuggestions/index.d.ts +25 -0
- package/build/types/chat/Prose/index.d.cts +15 -0
- package/build/types/chat/Prose/index.d.ts +15 -0
- package/build/types/chat/ReasoningBlock/index.d.cts +24 -0
- package/build/types/chat/ReasoningBlock/index.d.ts +24 -0
- package/build/types/chat/ReasoningText/index.d.cts +14 -0
- package/build/types/chat/ReasoningText/index.d.ts +14 -0
- package/build/types/chat/SegmentBar/index.d.cts +46 -0
- package/build/types/chat/SegmentBar/index.d.ts +46 -0
- package/build/types/chat/SourceList/index.d.cts +25 -0
- package/build/types/chat/SourceList/index.d.ts +25 -0
- package/build/types/chat/TerminalOutput/index.d.cts +25 -0
- package/build/types/chat/TerminalOutput/index.d.ts +25 -0
- package/build/types/chat/ToolCall/index.d.cts +41 -0
- package/build/types/chat/ToolCall/index.d.ts +41 -0
- package/build/types/chat/index.d.cts +26 -0
- package/build/types/chat/index.d.ts +26 -0
- package/build/types/combobox.type.d.cts +65 -0
- package/build/types/combobox.type.d.ts +65 -0
- package/build/types/common-element-props.type.d.cts +8 -0
- package/build/types/common-element-props.type.d.ts +8 -0
- package/build/types/helpers/class-name.helper.d.cts +3 -0
- package/build/types/helpers/class-name.helper.d.ts +3 -0
- package/build/types/helpers/component.helper.d.cts +13 -0
- package/build/types/helpers/component.helper.d.ts +13 -0
- package/build/types/helpers/label.helper.d.cts +12 -0
- package/build/types/helpers/label.helper.d.ts +12 -0
- package/build/types/hook.type.d.cts +36 -0
- package/build/types/hook.type.d.ts +36 -0
- package/build/types/link.type.d.cts +14 -0
- package/build/types/link.type.d.ts +14 -0
- package/build/types/positioning.type.d.cts +38 -0
- package/build/types/positioning.type.d.ts +38 -0
- package/build/types/theme.type.d.cts +197 -0
- package/build/types/theme.type.d.ts +197 -0
- package/build/types/types/common-element-props.type.d.cts +8 -0
- package/build/types/types/common-element-props.type.d.ts +8 -0
- package/build/types/types/link.type.d.cts +14 -0
- package/build/types/types/link.type.d.ts +14 -0
- package/build/types/types/theme.type.d.cts +197 -0
- package/build/types/types/theme.type.d.ts +197 -0
- package/package.json +929 -4
package/build/base.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer ui{[class^=ui-],[class*=" ui-"],[class^=ui-]:before,[class^=ui-]:after,[class*=" ui-"]:before,[class*=" ui-"]:after{box-sizing:border-box}@keyframes ui-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes ui-spin{to{transform:rotate(360deg)}}@keyframes ui-fade-in-up{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-fade-in-down{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ui-pulse{0%{box-shadow:0 0 color-mix(in srgb,currentColor 55%,transparent)}to{box-shadow:0 0 0 6px color-mix(in srgb,currentColor 0%,transparent)}}@keyframes ui-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}:root{--ui-anim-shimmer: ui-shimmer;--ui-anim-spin: ui-spin;--ui-anim-fade-in-up: ui-fade-in-up;--ui-anim-fade-in-down: ui-fade-in-down;--ui-anim-fade-in: ui-fade-in;--ui-anim-slide-up: ui-slide-up;--ui-anim-pulse: ui-pulse;--ui-anim-progress-slide: ui-progress-slide}.ui-theme-switching,.ui-theme-switching *,.ui-theme-switching *:before,.ui-theme-switching *:after{transition:none!important}.ui-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media (forced-colors: active){:focus-visible{outline:3px solid Highlight;outline-offset:2px}[class*=badge],[class*=alert],[class*=chip],[class*=panel],[class*=card],[class*=tile]{border:1px solid ButtonBorder}[aria-selected=true],[aria-current=page],[aria-pressed=true],[class*=--selected],[class*=--active]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}:disabled,[aria-disabled=true]{color:GrayText;border-color:GrayText}input[type=checkbox],input[type=radio],input[type=range]{forced-color-adjust:auto}}@keyframes ui-progress-slide{0%{translate:-100% 0}to{translate:250% 0}}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),y=require("react"),me=require("@handijitcom/ui"),L=(...e)=>{let t="";for(const n of e)n&&(t=t===""?n:`${t} ${n}`);return t},we=(e,t)=>Object.assign(e,{displayName:t}),ge=new Set,re=(e,...t)=>{for(const n of t)if(n!==void 0)return n;return process.env.NODE_ENV!=="production"&&!ge.has(e)&&(ge.add(e),console.error(`[@handijitcom/ui] Eksik metin: ${e}. Prop olarak geçin ya da <UiProvider labels={…}> içinde bir kez tanımlayın. Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.`)),""},ve=(e,t,...n)=>t?t(...n):re(e),ke=1440,W=e=>{const[t,n]=e.split(":");return Number(t)*60+Number(n??0)},Q=e=>`${String(Math.floor(e/60)).padStart(2,"0")}:${String(e%60).padStart(2,"0")}`,F=e=>e.slice(0,10),U=e=>W(e.slice(11,16)),ee=(e,t)=>`${e}T${Q(t)}`,oe=(e,t)=>`${Q(e)}–${Q(t)}`,q=(e,t,n)=>Math.min(Math.max(e,t),n),Me=(e,t)=>`${e}|${t??""}`,je=(e,t)=>t&&t.length>0?e.flatMap((n,r)=>t.map((a,o)=>({index:r*t.length+o,day:n,resource:a,label:`${n.label}, ${a.label}`}))):e.map((n,r)=>({index:r,day:n,label:n.label})),pe=(e,t)=>{const n=F(e.start),r=F(e.end);return n<=t&&(t<r||t===r&&U(e.end)>0)},te=e=>F(e.start)===F(e.end),Ne=e=>{e.sort((o,s)=>o.startMin-s.startMin||s.endMin-o.endMin);let t=[],n=[],r=-1;const a=()=>{for(const o of t)o.lanes=n.length;t=[],n=[]};for(const o of e){o.startMin>=r&&a();const s=n.findIndex(_=>_<=o.startMin);o.lane=s===-1?n.length:s;const l=Math.max(o.endMin,o.startMin+1);n[o.lane]=l,r=Math.max(r,l),t.push(o)}a()},Ce=(e,t,n,r,a)=>{var k;const o=new Map(t.map(f=>{var c;return[Me(f.day.date,(c=f.resource)==null?void 0:c.id),f]})),s=t.some(f=>f.resource),l=t.map(()=>[]),_=(f,c)=>{const p=c.day.date,i=F(f.start)===p?U(f.start):0,m=F(f.end)===p?U(f.end):ke;m<=n||i>=r||l[c.index].push({key:`${f.id}@${c.index}`,event:f,column:c.index,startMin:Math.max(i,n),endMin:Math.min(m,r),lane:0,lanes:1,isMovable:a&&!f.isLocked&&te(f)&&i>=n&&m<=r})};for(const f of e){const c=s?f.resourceId:void 0;if(!(s&&c===void 0)){if(te(f)){const p=o.get(Me(F(f.start),c));p&&_(f,p);continue}for(const p of t)((k=p.resource)==null?void 0:k.id)===c&&pe(f,p.day.date)&&_(f,p)}}for(const f of l)Ne(f);return l},De=(e,t,n)=>{const r=new Map(t.map((s,l)=>[s.date,l])),a=t.map(()=>[]),o=(s,l)=>a[l].push({key:`${s.id}@${l}`,event:s,column:l,startMin:U(s.start),endMin:U(s.end),lane:0,lanes:1,isMovable:n&&!s.isLocked&&te(s)});for(const s of e){if(te(s)){const l=r.get(F(s.start));l!==void 0&&o(s,l);continue}t.forEach((l,_)=>{pe(s,l.date)&&o(s,_)})}for(const s of a)s.sort((l,_)=>l.event.start<_.event.start?-1:l.event.start>_.event.start?1:0);return a},$e=(e,t,n)=>(e??[]).flatMap((r,a)=>{const o=Math.max(W(r.start),t),s=Math.min(W(r.end),n);return s>o?[{key:`${a}`,label:r.label,startMin:o,endMin:s}]:[]}),V=(e,t,n,r,a)=>{if(a.view==="month")return r<0||r>=a.columnCount?void 0:{column:r,startMin:e.startMin,endMin:e.endMin};if(t){const l=Math.min(e.startMin+a.slotMinutes,a.rangeEnd);return{column:e.column,startMin:e.startMin,endMin:q(e.endMin+n,l,a.rangeEnd)}}const o=e.endMin-e.startMin,s=q(e.startMin+n,a.rangeStart,a.rangeEnd-o);return{column:q(r,0,a.columnCount-1),startMin:s,endMin:s+o}},Ee=(e,t,n,r,a)=>{var _;if(t.column===e.column&&t.startMin===e.startMin&&t.endMin===e.endMin)return;const s=n==="time"?r[t.column]:void 0,l=s?s.day.date:a[t.column].date;return{id:e.event.id,start:ee(l,t.startMin),end:ee(l,t.endMin),resourceId:((_=s==null?void 0:s.resource)==null?void 0:_.id)??e.event.resourceId}},Ae=e=>e==="ArrowUp"||e==="ArrowDown"||e==="ArrowLeft"||e==="ArrowRight",Re=(e,t,n)=>{if(n==="ArrowUp"||n==="ArrowDown"){const a=e[t.column],o=a.findIndex(s=>s.key===t.key);return a[o+(n==="ArrowDown"?1:-1)]}const r=n==="ArrowRight"?1:-1;for(let a=t.column+r;a>=0&&a<e.length;a+=r){const o=e[a];if(o.length!==0)return o.reduce((s,l)=>Math.abs(l.startMin-t.startMin)<Math.abs(s.startMin-t.startMin)?l:s)}},Te=(e,t,n,r)=>{const a=t==="ArrowUp"||t==="ArrowDown",o=t==="ArrowDown"||t==="ArrowRight"?1:-1;if(r.view==="month")return n?void 0:V(e,!1,0,e.column+o*(a?7:1),r);if(!(n&&!a))return a?V(e,n,o*r.slotMinutes,e.column,r):V(e,!1,0,e.column+o,r)},Le=4,Z=7,Oe=({bodyRef:e,bounds:t,onDrop:n})=>{const[r,a]=y.useState(null),o=y.useRef(null),s=y.useRef(!1),l=y.useRef({bounds:t,onDrop:n});l.current={bounds:t,onDrop:n};const _=(c,p)=>{var E;const i=(E=e.current)==null?void 0:E.getBoundingClientRect(),{bounds:m}=l.current;if(!i||i.width===0||i.height===0)return;if(m.view==="time"){const R=(m.rangeEnd-m.rangeStart)/i.height,$=(c.clientY-p.y)*R,x=Math.round($/m.slotMinutes)*m.slotMinutes,w=Math.floor((c.clientX-i.left)/i.width*m.columnCount);return V(p.item,p.isResize,x,w,m)}const j=Math.ceil(m.columnCount/Z),C=Math.floor((c.clientX-i.left)/i.width*Z),N=Math.floor((c.clientY-i.top)/i.height*j);if(!(C<0||C>=Z||N<0||N>=j))return V(p.item,!1,0,N*Z+C,m)},k=y.useCallback((c,p,i)=>{var x;if(s.current=!1,p.button!==0||!c.isMovable)return;(x=o.current)==null||x.call(o);const m={item:c,isResize:i,x:p.clientX,y:p.clientY,isStarted:!1},j=()=>{window.removeEventListener("pointermove",N),window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",R),window.removeEventListener("keydown",$,!0),o.current=null,a(null)},C=()=>{s.current=!0,window.setTimeout(()=>{s.current=!1},0)},N=w=>{const O=Math.hypot(w.clientX-m.x,w.clientY-m.y);if(!m.isStarted&&O<Le)return;m.isStarted=!0;const S=_(w,m);a(S?{key:m.item.key,isResize:m.isResize,target:S}:null)},E=w=>{if(j(),!m.isStarted)return;C();const O=_(w,m);O&&l.current.onDrop(m.item,O)},R=()=>j(),$=w=>{w.key!=="Escape"||!m.isStarted||(w.preventDefault(),w.stopPropagation(),C(),j())};window.addEventListener("pointermove",N),window.addEventListener("pointerup",E),window.addEventListener("pointercancel",R),window.addEventListener("keydown",$,!0),o.current=j},[]);y.useEffect(()=>()=>{var c;return(c=o.current)==null?void 0:c.call(o)},[]);const f=y.useCallback(()=>s.current,[]);return{preview:r,begin:k,isClickSwallowed:f}},Se="ui-calendar-YEgbk",Ke="ui-srOnly-6NUr9",Ie="ui-scroller-IkPuv",Pe="ui-time-DPj2K",Ye="ui-corner-7ggOq",Fe="ui-headers-c6s18",Ue="ui-header-vuk-c",Xe="ui-resource-i6zVF",ze="ui-resource__detail-ssEve",Be="ui-gutter-YjM1s",Ge="ui-gutter__hour-oyYrg",Je="ui-gutter__band-D6P6s",He="ui-band-GkAex",qe="ui-columns-aXu-3",Ve="ui-column-BsLn7",We="ui-event-uQH1A",Qe="ui-event__body-jClWr",Ze="ui-event__time-8Nt0z",et="ui-event__handle-cXUkS",tt="ui-preview-FsJaC",nt="ui-preview__title-GkNhx",st="ui-month-aEknN",rt="ui-weekdays-VJ6EQ",ot="ui-cells-jQJ7X",at="ui-cell-c3itR",ct="ui-cell__day-40ADs",it="ui-cell__more-e3wMw",u={calendar:Se,srOnly:Ke,scroller:Ie,time:Pe,"time--bands":"ui-time--bands-7Kndf",corner:Ye,headers:Fe,header:Ue,resource:Xe,"header--today":"ui-header--today-eLJzT",resource__detail:ze,"resource--primary":"ui-resource--primary--iCwp","resource--neutral":"ui-resource--neutral-cxIaY","resource--success":"ui-resource--success-qhCEv","resource--warning":"ui-resource--warning-GR4eo","resource--danger":"ui-resource--danger-S8dwG","resource--info":"ui-resource--info-hZjna",gutter:Be,gutter__hour:Ge,gutter__band:Je,band:He,"band--alternate":"ui-band--alternate-5aeTI",columns:qe,column:Ve,"column--off":"ui-column--off-4yR85",event:We,"event--primary":"ui-event--primary-ykXcJ","event--neutral":"ui-event--neutral-uTBTX","event--success":"ui-event--success-vosp6","event--warning":"ui-event--warning-scg6H","event--danger":"ui-event--danger-UY-OD","event--info":"ui-event--info-SHlJD","event--time":"ui-event--time-cg0iK","event--month":"ui-event--month-7wAJO","event--movable":"ui-event--movable-1n8nf","event--dragging":"ui-event--dragging-E2r9s","event--cancelled":"ui-event--cancelled-eG-x9",event__body:Qe,event__time:Ze,event__handle:et,preview:tt,preview__title:nt,month:st,weekdays:rt,cells:ot,cell:at,"cell--off":"ui-cell--off-TIR0O","cell--outside":"ui-cell--outside-F23oJ",cell__day:ct,"cell--target":"ui-cell--target-utfa-","cell__day--today":"ui-cell__day--today-2i28S",cell__more:it},lt=(e,t,n)=>({"--ui-calendar-top":`${(e.startMin-t)/n*100}%`,"--ui-calendar-height":`${(e.endMin-e.startMin)/n*100}%`,"--ui-calendar-lane":e.lane,"--ui-calendar-lanes":e.lanes}),ut=({item:e,view:t,isActive:n,isDragSource:r,isResizable:a,rangeStart:o,rangeLength:s,columnLabel:l,cancelledLabel:_,renderEvent:k,handlers:f})=>{const{event:c}=e,p=t==="time"?oe(U(c.start),U(c.end)):Q(U(c.start));return d.jsxs("button",{type:"button",className:L(u.event,u[`event--${t}`],u[`event--${c.tone??"primary"}`],c.isCancelled&&u["event--cancelled"],e.isMovable&&u["event--movable"],r&&u["event--dragging"]),style:t==="time"?lt(e,o,s):void 0,tabIndex:n?0:-1,"data-key":e.key,onPointerDown:i=>f.onPointerDown(e,i,!1),onClick:i=>f.onClick(e,i),onKeyDown:i=>f.onKeyDown(e,i),onFocus:()=>f.onFocus(e),children:[c.isCancelled&&d.jsx("span",{className:u.srOnly,children:`${_}: `}),d.jsx("span",{className:u.event__time,children:p}),d.jsx("span",{className:u.event__body,children:k?k(c):c.title}),d.jsx("span",{className:u.srOnly,children:`, ${l}`}),a&&d.jsx("span",{className:u.event__handle,"aria-hidden":!0,onPointerDown:i=>{i.stopPropagation(),f.onPointerDown(e,i,!0)}})]})},_e=y.memo(ut),dt=7,ht=({days:e,shown:t,hiddenCounts:n,weekdays:r,selectedDate:a,bodyRef:o,activeKey:s,preview:l,cancelledLabel:_,formatMore:k,renderEvent:f,handlers:c,onDaySelect:p})=>d.jsxs("div",{className:u.month,style:{"--ui-calendar-rows":Math.ceil(e.length/dt)},children:[r&&d.jsx("div",{className:u.weekdays,"aria-hidden":!0,children:r.map(i=>d.jsx("span",{children:i},i))}),d.jsx("div",{ref:o,className:u.cells,children:e.map((i,m)=>{const j=n[m],C=i.shortLabel??i.label;return d.jsxs("div",{role:"group","aria-label":i.label,className:L(u.cell,i.isOff&&u["cell--off"],i.isOutside&&u["cell--outside"],(l==null?void 0:l.target.column)===m&&u["cell--target"]),children:[p?d.jsx("button",{type:"button",className:L(u.cell__day,i.isToday&&u["cell__day--today"]),"aria-label":i.label,"aria-current":i.isToday?"date":void 0,"aria-pressed":a===void 0?void 0:i.date===a,onClick:()=>p(i.date),children:C}):d.jsx("span",{className:L(u.cell__day,i.isToday&&u["cell__day--today"]),"aria-hidden":!0,children:C}),t[m].map(N=>d.jsx(_e,{item:N,view:"month",isActive:N.key===s,isDragSource:N.key===(l==null?void 0:l.key),isResizable:!1,rangeStart:0,rangeLength:1,columnLabel:i.label,cancelledLabel:_,renderEvent:f,handlers:c},N.key)),j>0&&(p?d.jsx("button",{type:"button",className:u.cell__more,onClick:()=>p(i.date),children:k(j)}):d.jsx("span",{className:u.cell__more,children:k(j)}))]},i.date)})})]}),ft=({day:e,span:t})=>d.jsx("div",{className:L(u.header,e.isToday&&u["header--today"]),style:{gridColumn:`span ${t}`},"aria-current":e.isToday?"date":void 0,children:e.shortLabel?d.jsxs(d.Fragment,{children:[d.jsx("span",{"aria-hidden":!0,children:e.shortLabel}),d.jsx("span",{className:u.srOnly,children:e.label})]}):e.label}),mt=({resource:e,renderResource:t})=>d.jsx("div",{className:L(u.resource,e.tone&&u[`resource--${e.tone}`]),"data-tone":e.tone,children:t?t(e):d.jsxs(d.Fragment,{children:[e.label,e.detail&&d.jsx("span",{className:u.resource__detail,children:e.detail})]})}),gt=({label:e,days:t,resources:n,columns:r,bands:a,placed:o,rangeStart:s,rangeEnd:l,slotMinutes:_,bodyRef:k,activeKey:f,preview:c,isEditable:p,cancelledLabel:i,renderEvent:m,renderResource:j,handlers:C,isClickSwallowed:N,onSlotSelect:E,onExternalDrop:R})=>{const $=l-s,x=(n==null?void 0:n.length)??0,w=x>0,O=Array.from({length:Math.floor((l-1)/60)-Math.ceil(s/60)+1},(h,g)=>(Math.ceil(s/60)+g)*60),S=h=>`${h/$*100}%`,K=h=>S(h-s),G=c?o.flat().find(h=>h.key===c.key):void 0,X=(h,g,T)=>{var z;const A=g.getBoundingClientRect(),ne=A.height>0?q((T-A.top)/A.height,0,1):0,P=Math.floor(ne*$/_)*_,Y=q(s+P,s,l-_);return{start:ee(h.day.date,Y),end:ee(h.day.date,Y+_),resourceId:(z=h.resource)==null?void 0:z.id}},I={"--ui-calendar-columns":r.length,"--ui-calendar-hours":$/60,"--ui-calendar-slot-ratio":_/60};return d.jsx("div",{className:u.scroller,...o.some(h=>h.length>0)?{}:{tabIndex:0,role:"region","aria-label":e},children:d.jsxs("div",{className:L(u.time,a.length>0&&u["time--bands"]),style:I,children:[d.jsx("div",{className:u.corner}),d.jsxs("div",{className:u.headers,children:[t.map(h=>d.jsx(ft,{day:h,span:w?x:1},h.date)),w&&r.map(h=>d.jsx(mt,{resource:h.resource,renderResource:j},h.index))]}),d.jsxs("div",{className:u.gutter,"aria-hidden":!0,children:[O.map(h=>d.jsx("span",{className:u.gutter__hour,style:{top:K(h)},children:Q(h)},h)),a.map(h=>d.jsx("span",{className:u.gutter__band,style:{top:K(h.startMin),height:S(h.endMin-h.startMin)},children:h.label},h.key))]}),d.jsx("div",{ref:k,className:u.columns,children:r.map(h=>d.jsxs("div",{role:"group","aria-label":h.label,className:L(u.column,h.day.isOff&&u["column--off"]),onClick:E?g=>{g.target!==g.currentTarget||N()||E(X(h,g.currentTarget,g.clientY))}:void 0,onDragOver:R?g=>{g.preventDefault(),g.dataTransfer.dropEffect="move"}:void 0,onDrop:R?g=>{g.preventDefault(),R({...X(h,g.currentTarget,g.clientY),data:g.dataTransfer.getData("text/plain")})}:void 0,children:[a.map((g,T)=>d.jsx("div",{className:L(u.band,T%2===1&&u["band--alternate"]),style:{top:K(g.startMin),height:S(g.endMin-g.startMin)},"aria-hidden":!0},g.key)),o[h.index].map(g=>d.jsx(_e,{item:g,view:"time",isActive:g.key===f,isDragSource:g.key===(c==null?void 0:c.key),isResizable:p&&g.isMovable,rangeStart:s,rangeLength:$,columnLabel:h.label,cancelledLabel:i,renderEvent:m,handlers:C},g.key)),c&&G&&c.target.column===h.index&&d.jsxs("div",{className:u.preview,style:{"--ui-calendar-top":K(c.target.startMin),"--ui-calendar-height":`${(c.target.endMin-c.target.startMin)/$*100}%`},"aria-hidden":!0,children:[oe(c.target.startMin,c.target.endMin),d.jsx("span",{className:u.preview__title,children:G.event.title})]})]},h.index))})]})})},vt=3,Mt=({label:e,days:t,events:n,view:r="time",resources:a,renderResource:o,bands:s,startTime:l="08:00",endTime:_="20:00",slotMinutes:k=30,weekdays:f,maxEventsPerDay:c=vt,selectedDate:p,onEventChange:i,onEventOpen:m,onSlotSelect:j,onDaySelect:C,onExternalDrop:N,renderEvent:E,className:R,testId:$})=>{var de,he,fe;const{labels:x}=me.useUi(),w=me.useAnnounce(),O=y.useId(),S=y.useRef(null),K=y.useRef(null),[G,X]=y.useState(),I=y.useRef(null),h=!!i,g=W(l),T=W(_),A=y.useMemo(()=>je(t,a),[t,a]),ne=y.useMemo(()=>$e(s,g,T),[s,g,T]),P=y.useMemo(()=>r==="time"?Ce(n,A,g,T,h):De(n,t,h),[r,n,A,t,g,T,h]),Y=y.useMemo(()=>r==="month"?P.map(v=>v.slice(0,c)):P,[r,P,c]),z={view:r,columnCount:r==="time"?A.length:t.length,rangeStart:g,rangeEnd:T,slotMinutes:k},ae=Y.flat(),ce=ae.some(v=>v.key===G)?G:(de=ae[0])==null?void 0:de.key,ye=v=>r==="time"?A[v.column].label:t[v.column].label,J=y.useRef({view:r,columns:A,days:t,onEventChange:i,onEventOpen:m,focusable:Y,bounds:z});J.current={view:r,columns:A,days:t,onEventChange:i,onEventOpen:m,focusable:Y,bounds:z};const se=y.useCallback((v,M)=>{const b=J.current,D=Ee(v,M,b.view,b.columns,b.days);if(!(!D||!b.onEventChange))return b.onEventChange(D),D},[]),H=Oe({bodyRef:K,bounds:z,onDrop:se}),ie=v=>{const b=[...S.current.querySelectorAll("[data-key]")].find(D=>D.dataset.key===v);b==null||b.focus()},le=y.useMemo(()=>({onPointerDown:(v,M,b)=>{I.current=null,J.current.onEventChange&&H.begin(v,M,b)},onClick:(v,M)=>{var b,D;H.isClickSwallowed()||(D=(b=J.current).onEventOpen)==null||D.call(b,v.event.id)},onFocus:v=>X(v.key),onKeyDown:(v,M)=>{if(I.current=null,!Ae(M.key))return;const b=J.current;if(M.metaKey||M.ctrlKey){if(M.preventDefault(),!v.isMovable)return;const B=Te(v,M.key,M.shiftKey,b.bounds);if(!B)return;I.current={key:`${v.event.id}@${B.column}`,before:v.event},se(v,B)||(I.current=null);return}const D=Re(b.focusable,v,M.key);D&&(M.preventDefault(),X(D.key),ie(D.key))}}),[se]);y.useEffect(()=>{var B;const v=I.current;if(!v)return;const M=P.flat().find(xe=>xe.key===v.key),{before:b}=v;M!==void 0&&(M.event.start!==b.start||M.event.end!==b.end||M.event.resourceId!==b.resourceId)&&(I.current=null,X(M.key),ie(M.key),w(ve("Calendar.moved",(B=x==null?void 0:x.calendar)==null?void 0:B.moved,M.event.title,`${ye(M)}, ${oe(M.startMin,M.endMin)}`)))},[n]);const ue=re("Calendar.cancelled",(he=x==null?void 0:x.calendar)==null?void 0:he.cancelled),be=re("Calendar.instructions",(fe=x==null?void 0:x.calendar)==null?void 0:fe.instructions);return d.jsxs("div",{ref:S,className:L(u.calendar,R),role:"group","aria-label":e,"aria-describedby":O,"data-testid":$,children:[d.jsx("span",{id:O,className:u.srOnly,children:be}),r==="time"?d.jsx(gt,{label:e,days:t,resources:a,columns:A,bands:ne,placed:P,rangeStart:g,rangeEnd:T,slotMinutes:k,bodyRef:K,activeKey:ce,preview:H.preview,isEditable:h,cancelledLabel:ue,renderEvent:E,renderResource:o,handlers:le,isClickSwallowed:H.isClickSwallowed,onSlotSelect:j,onExternalDrop:N}):d.jsx(ht,{days:t,shown:Y,hiddenCounts:P.map((v,M)=>v.length-Y[M].length),weekdays:f,selectedDate:p,bodyRef:K,activeKey:ce,preview:H.preview,cancelledLabel:ue,formatMore:v=>{var M;return ve("Calendar.more",(M=x==null?void 0:x.calendar)==null?void 0:M.more,v)},renderEvent:E,handlers:le,onDaySelect:C})]})},pt=y.memo(we(Mt,"Calendar"));exports.Calendar=pt;
|
|
2
|
+
//# sourceMappingURL=calendar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.cjs","sources":["../src/helpers/class-name.helper.ts","../src/helpers/component.helper.ts","../src/helpers/label.helper.ts","../src/calendar/core/time.ts","../src/calendar/core/layout.ts","../src/calendar/core/moves.ts","../src/calendar/core/useCalendarDrag.ts","../src/calendar/Calendar/EventBlock.tsx","../src/calendar/Calendar/MonthGrid.tsx","../src/calendar/Calendar/TimeGrid.tsx","../src/calendar/Calendar/index.tsx"],"sourcesContent":["import { ClassValue } from '@/types/common-element-props.type';\n\n/** Sınıf adı birleştirici. */\nexport const cx = (...values: ClassValue[]): string => {\n let result = '';\n\n for (const value of values) {\n if (!value) continue;\n result = result === '' ? value : `${result} ${value}`;\n }\n\n return result;\n};\n","/**\n * DevTools adı — modül düzeyinde YAN ETKİ bırakmadan.\n *\n * ⚠ `X.displayName = 'X'` KULLANILMAZ: modül düzeyindeki özellik ataması\n * bundler için yan etkidir ve hedefinin tüm bağımlılık zincirini ayakta tutar.\n * Ölçüldü: yalnızca `Badge` import eden uygulama 20,7 kB indiriyordu (paketin\n * tamamı 21,8 kB). Atama çağrıya dönüşünce `#__PURE__` işaretlenebiliyor →\n * `Badge` 2,71 kB. Nöbetçi `.size-limit.json`.\n *\n * @example\n * export default memo(named(Button, 'Button')) as typeof Button;\n */\nexport const named = <TComponent extends object>(\n component: TComponent,\n displayName: string,\n): TComponent => Object.assign(component, { displayName });\n","/** Metin çözümlemesi: prop → sağlayıcı config'i → geliştirme uyarısı. */\n\nimport type { Formatter } from '@/types/theme.type';\n\n/* Uyari ANAHTAR BASINA bir kez verilir. */\nconst warned = new Set<string>();\n\n/** Uyarı durumu testler arasında sızmamalı; her test kendi durumundan başlar. */\nexport const resetLabelWarnings = (): void => warned.clear();\n\n/**\n * Verilen metni çözer.\n * @param key Uyarıda gösterilecek yol (`Modal.closeLabel`).\n * @param values Öncelik sırasına göre adaylar: prop önce, config sonra.\n */\nexport const resolveLabel = (key: string, ...values: (string | undefined)[]): string => {\n for (const value of values) if (value !== undefined) return value;\n\n if (process.env.NODE_ENV !== 'production' && !warned.has(key)) {\n warned.add(key);\n console.error(\n `[@handijitcom/ui] Eksik metin: ${key}. Prop olarak geçin ya da ` +\n '<UiProvider labels={…}> içinde bir kez tanımlayın. ' +\n 'Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.',\n );\n }\n\n return '';\n};\n\n/** Biçimlendirici çözümü — değere bağlı metinler için. */\nexport const resolveFormatter = <TArgs extends unknown[]>(\n key: string,\n formatter: Formatter<TArgs> | undefined,\n ...args: TArgs\n): string => {\n if (formatter) return formatter(...args);\n\n return resolveLabel(key);\n};\n","/**\n * Minutes of a day and the wall-clock text around them — string work only. Day arithmetic (adding\n * a day, the weekday of a date) is NOT here: it belongs to the caller, who passes\n * the days already computed.\n */\n\nexport const MINUTES_PER_DAY = 1440;\n\n/** \"09:30\" → 570. */\nexport const toMinutes = (time: string): number => {\n const [hours, minutes] = time.split(':') as [string, string?];\n\n return Number(hours) * 60 + Number(minutes ?? 0);\n};\n\n/** 570 → \"09:30\". */\nexport const toTime = (minutes: number): string =>\n `${String(Math.floor(minutes / 60)).padStart(2, '0')}:${String(minutes % 60).padStart(2, '0')}`;\n\n/** \"2026-11-12T09:30\" → \"2026-11-12\". */\nexport const dateOf = (wall: string): string => wall.slice(0, 10);\n\n/** \"2026-11-12T09:30\" → 570. */\nexport const minutesOf = (wall: string): number => toMinutes(wall.slice(11, 16));\n\n/** (\"2026-11-12\", 570) → \"2026-11-12T09:30\". */\nexport const toWall = (date: string, minutes: number): string => `${date}T${toTime(minutes)}`;\n\n/** The time range an event or a segment covers, as it is read: \"09:30–11:00\". */\nexport const timeRange = (start: number, end: number): string => `${toTime(start)}–${toTime(end)}`;\n\nexport const clamp = (value: number, low: number, high: number): number =>\n Math.min(Math.max(value, low), high);\n","import { dateOf, MINUTES_PER_DAY, minutesOf, toMinutes } from './time';\nimport type { CalendarBand, CalendarDay, CalendarEvent, CalendarResource } from './types';\n\n/** One column of the time grid: a day, or a day of one resource. */\nexport type CalendarColumn = {\n index: number;\n day: CalendarDay;\n resource?: CalendarResource;\n /** What a screen reader hears for the column: \"Salı 12 Kasım, Derslik 2\". */\n label: string;\n};\n\n/** An event as drawn in one column (time grid) or one day cell (month). */\nexport type PlacedEvent = {\n /** `<id>@<column>`: a multi-day event is drawn once per day it covers. */\n key: string;\n event: CalendarEvent;\n column: number;\n /** The drawn stretch, clipped to the visible hours (time grid). */\n startMin: number;\n endMin: number;\n /** Side-by-side position among overlapping events: lane `lane` of `lanes`. */\n lane: number;\n lanes: number;\n /** Starts and ends on the same day inside the drawn hours, not locked: it can be moved. */\n isMovable: boolean;\n};\n\nconst columnKey = (date: string, resourceId?: string) => `${date}|${resourceId ?? ''}`;\n\n/** The columns, day by day; with resources, every resource of a day under that day. */\nexport const buildColumns = (\n days: readonly CalendarDay[],\n resources: readonly CalendarResource[] | undefined,\n): CalendarColumn[] =>\n resources && resources.length > 0\n ? days.flatMap((day, dayIndex) =>\n resources.map((resource, resourceIndex) => ({\n index: dayIndex * resources.length + resourceIndex,\n day,\n resource,\n label: `${day.label}, ${resource.label}`,\n })),\n )\n : days.map((day, index) => ({ index, day, label: day.label }));\n\n/** Does the event cover the day? Days compare as text: `YYYY-MM-DD` sorts in time. */\nconst covers = (event: CalendarEvent, date: string): boolean => {\n const startDate = dateOf(event.start);\n const endDate = dateOf(event.end);\n\n return startDate <= date && (date < endDate || (date === endDate && minutesOf(event.end) > 0));\n};\n\nconst isSameDay = (event: CalendarEvent) => dateOf(event.start) === dateOf(event.end);\n\n/**\n * Lanes: overlapping events share a column side by side. A cluster is a run of events that\n * overlap one another directly or through a neighbour; every member is as wide as the cluster has\n * lanes, and each takes the first lane that is free at its start.\n */\nconst assignLanes = (items: PlacedEvent[]): void => {\n items.sort((a, b) => a.startMin - b.startMin || b.endMin - a.endMin);\n\n let cluster: PlacedEvent[] = [];\n let laneEnds: number[] = [];\n let clusterEnd = -1;\n\n const close = () => {\n for (const item of cluster) item.lanes = laneEnds.length;\n cluster = [];\n laneEnds = [];\n };\n\n for (const item of items) {\n if (item.startMin >= clusterEnd) close();\n\n const free = laneEnds.findIndex(end => end <= item.startMin);\n item.lane = free === -1 ? laneEnds.length : free;\n /* A zero-length event still holds its lane for a minute: two at 09:00 sit side by side. */\n const laneEnd = Math.max(item.endMin, item.startMin + 1);\n laneEnds[item.lane] = laneEnd;\n clusterEnd = Math.max(clusterEnd, laneEnd);\n cluster.push(item);\n }\n\n close();\n};\n\n/**\n * Places the events in the time grid, column by column, clipped to `[rangeStart, rangeEnd)`.\n * With resources an event goes to its resource's column; one without a known resource is not\n * drawn (it belongs to the caller's pool of unassigned work).\n */\nexport const placeTimeEvents = (\n events: readonly CalendarEvent[],\n columns: readonly CalendarColumn[],\n rangeStart: number,\n rangeEnd: number,\n isEditable: boolean,\n): PlacedEvent[][] => {\n const byKey = new Map(\n columns.map(column => [columnKey(column.day.date, column.resource?.id), column]),\n );\n const hasResources = columns.some(column => column.resource);\n const placed = columns.map((): PlacedEvent[] => []);\n\n const place = (event: CalendarEvent, column: CalendarColumn) => {\n const date = column.day.date;\n const start = dateOf(event.start) === date ? minutesOf(event.start) : 0;\n const end = dateOf(event.end) === date ? minutesOf(event.end) : MINUTES_PER_DAY;\n if (end <= rangeStart || start >= rangeEnd) return;\n\n placed[column.index].push({\n key: `${event.id}@${column.index}`,\n event,\n column: column.index,\n startMin: Math.max(start, rangeStart),\n endMin: Math.min(end, rangeEnd),\n lane: 0,\n lanes: 1,\n isMovable:\n isEditable && !event.isLocked && isSameDay(event) && start >= rangeStart && end <= rangeEnd,\n });\n };\n\n for (const event of events) {\n const resourceId = hasResources ? event.resourceId : undefined;\n if (hasResources && resourceId === undefined) continue;\n\n if (isSameDay(event)) {\n const column = byKey.get(columnKey(dateOf(event.start), resourceId));\n if (column) place(event, column);\n continue;\n }\n\n for (const column of columns)\n if (column.resource?.id === resourceId && covers(event, column.day.date))\n place(event, column);\n }\n\n for (const column of placed) assignLanes(column);\n\n return placed;\n};\n\n/** The events of every day cell of the month, in time order. */\nexport const placeMonthEvents = (\n events: readonly CalendarEvent[],\n days: readonly CalendarDay[],\n isEditable: boolean,\n): PlacedEvent[][] => {\n const byDate = new Map(days.map((day, index) => [day.date, index]));\n const placed = days.map((): PlacedEvent[] => []);\n\n const place = (event: CalendarEvent, index: number) =>\n placed[index].push({\n key: `${event.id}@${index}`,\n event,\n column: index,\n startMin: minutesOf(event.start),\n endMin: minutesOf(event.end),\n lane: 0,\n lanes: 1,\n isMovable: isEditable && !event.isLocked && isSameDay(event),\n });\n\n for (const event of events) {\n if (isSameDay(event)) {\n const index = byDate.get(dateOf(event.start));\n if (index !== undefined) place(event, index);\n continue;\n }\n\n days.forEach((day, index) => {\n if (covers(event, day.date)) place(event, index);\n });\n }\n\n for (const cell of placed)\n cell.sort((a, b) =>\n a.event.start < b.event.start ? -1 : a.event.start > b.event.start ? 1 : 0,\n );\n\n return placed;\n};\n\n/** A band as drawn: its stretch in minutes, clipped to the drawn hours. */\nexport type PlacedBand = {\n key: string;\n label: string;\n startMin: number;\n endMin: number;\n};\n\n/** The bands inside the drawn hours, clipped to them; one that falls outside them is left out. */\nexport const placeBands = (\n bands: readonly CalendarBand[] | undefined,\n rangeStart: number,\n rangeEnd: number,\n): PlacedBand[] =>\n (bands ?? []).flatMap((band, index) => {\n const startMin = Math.max(toMinutes(band.start), rangeStart);\n const endMin = Math.min(toMinutes(band.end), rangeEnd);\n\n return endMin > startMin ? [{ key: `${index}`, label: band.label, startMin, endMin }] : [];\n });\n","import type { CalendarColumn, PlacedEvent } from './layout';\nimport { clamp, toWall } from './time';\nimport type { CalendarDay, CalendarEventChange } from './types';\n\nexport type CalendarView = 'time' | 'month';\n\n/** Where a moved or resized event lands: a column (or day cell) and its minutes. */\nexport type CalendarTarget = { column: number; startMin: number; endMin: number };\n\nexport type MoveBounds = {\n view: CalendarView;\n columnCount: number;\n rangeStart: number;\n rangeEnd: number;\n slotMinutes: number;\n};\n\n/**\n * The target of moving (`resize: false`) or stretching an event by `deltaMinutes` into `column`.\n * The time grid keeps the event inside the drawn hours and at least one slot long; the month\n * keeps the time of day and refuses a day off the drawn grid (`undefined`).\n */\nexport const targetOf = (\n item: PlacedEvent,\n isResize: boolean,\n deltaMinutes: number,\n column: number,\n bounds: MoveBounds,\n): CalendarTarget | undefined => {\n if (bounds.view === 'month')\n return column < 0 || column >= bounds.columnCount\n ? undefined\n : { column, startMin: item.startMin, endMin: item.endMin };\n\n if (isResize) {\n const shortest = Math.min(item.startMin + bounds.slotMinutes, bounds.rangeEnd);\n return {\n column: item.column,\n startMin: item.startMin,\n endMin: clamp(item.endMin + deltaMinutes, shortest, bounds.rangeEnd),\n };\n }\n\n const duration = item.endMin - item.startMin;\n const startMin = clamp(\n item.startMin + deltaMinutes,\n bounds.rangeStart,\n bounds.rangeEnd - duration,\n );\n\n return {\n column: clamp(column, 0, bounds.columnCount - 1),\n startMin,\n endMin: startMin + duration,\n };\n};\n\n/** The change a target means for the caller, or `undefined` when nothing moved. */\nexport const changeOf = (\n item: PlacedEvent,\n target: CalendarTarget,\n view: CalendarView,\n columns: readonly CalendarColumn[],\n days: readonly CalendarDay[],\n): CalendarEventChange | undefined => {\n const isSame =\n target.column === item.column &&\n target.startMin === item.startMin &&\n target.endMin === item.endMin;\n if (isSame) return undefined;\n\n const column = view === 'time' ? columns[target.column] : undefined;\n const date = column ? column.day.date : days[target.column].date;\n\n return {\n id: item.event.id,\n start: toWall(date, target.startMin),\n end: toWall(date, target.endMin),\n resourceId: column?.resource?.id ?? item.event.resourceId,\n };\n};\n\nexport type ArrowKey = 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight';\n\nexport const isArrowKey = (key: string): key is ArrowKey =>\n key === 'ArrowUp' || key === 'ArrowDown' || key === 'ArrowLeft' || key === 'ArrowRight';\n\n/**\n * The event an arrow key moves the focus to: ↑ ↓ the previous and next in the same column (or\n * day), ← → the nearest in time in the closest column that has one.\n */\nexport const neighbourOf = (\n lists: readonly (readonly PlacedEvent[])[],\n from: PlacedEvent,\n key: ArrowKey,\n): PlacedEvent | undefined => {\n if (key === 'ArrowUp' || key === 'ArrowDown') {\n const list = lists[from.column];\n const index = list.findIndex(item => item.key === from.key);\n\n return list[index + (key === 'ArrowDown' ? 1 : -1)];\n }\n\n const step = key === 'ArrowRight' ? 1 : -1;\n for (let column = from.column + step; column >= 0 && column < lists.length; column += step) {\n const list = lists[column];\n if (list.length === 0) continue;\n\n return list.reduce((best, item) =>\n Math.abs(item.startMin - from.startMin) < Math.abs(best.startMin - from.startMin)\n ? item\n : best,\n );\n }\n\n return undefined;\n};\n\n/**\n * The keyboard move of a focused event — ⌘/Ctrl with an arrow: ↑ ↓ one slot earlier or later\n * (month: a week), ← → the previous or next column (month: a day). ⌘/Ctrl ⇧ ↑ ↓ shortens or\n * lengthens it by one slot (time grid only).\n */\nexport const keyboardTarget = (\n item: PlacedEvent,\n key: ArrowKey,\n isResize: boolean,\n bounds: MoveBounds,\n): CalendarTarget | undefined => {\n const isVertical = key === 'ArrowUp' || key === 'ArrowDown';\n const direction = key === 'ArrowDown' || key === 'ArrowRight' ? 1 : -1;\n\n if (bounds.view === 'month') {\n if (isResize) return undefined;\n return targetOf(item, false, 0, item.column + direction * (isVertical ? 7 : 1), bounds);\n }\n\n if (isResize && !isVertical) return undefined;\n\n return isVertical\n ? targetOf(item, isResize, direction * bounds.slotMinutes, item.column, bounds)\n : targetOf(item, false, 0, item.column + direction, bounds);\n};\n","'use client';\n\nimport { type RefObject, useCallback, useEffect, useRef, useState } from 'react';\n\nimport type { PlacedEvent } from './layout';\nimport { type CalendarTarget, type MoveBounds, targetOf } from './moves';\n\n/** A press that travels less than this is a click, not a drag (px). */\nconst DRAG_THRESHOLD = 4;\n\nconst WEEK = 7;\n\ntype Origin = { item: PlacedEvent; isResize: boolean; x: number; y: number; isStarted: boolean };\n\nexport type DragPreview = { key: string; isResize: boolean; target: CalendarTarget };\n\n/**\n * POINTER DRAG of an event: move it (the body) or stretch it (the bottom handle), snapped to the\n * slot, with a preview while the pointer travels and `Escape` to give up.\n *\n * The listeners go on `window` for the length of one drag, not on the event's element: the\n * preview is drawn in the target column while the source stays where it is, and a pointer\n * released outside the calendar still ends the drag. The click a drag ends with is swallowed\n * (`isClickSwallowed`) so that dropping an event does not also open it.\n */\nconst useCalendarDrag = ({\n bodyRef,\n bounds,\n onDrop,\n}: {\n /** The element whose box is the grid of columns (time) or of day cells (month). */\n bodyRef: RefObject<HTMLElement | null>;\n bounds: MoveBounds;\n onDrop: (item: PlacedEvent, target: CalendarTarget) => void;\n}) => {\n const [preview, setPreview] = useState<DragPreview | null>(null);\n const cleanupRef = useRef<(() => void) | null>(null);\n const isSwallowingRef = useRef(false);\n const latest = useRef({ bounds, onDrop });\n latest.current = { bounds, onDrop };\n\n const targetAt = (event: PointerEvent, origin: Origin): CalendarTarget | undefined => {\n const box = bodyRef.current?.getBoundingClientRect();\n const { bounds: current } = latest.current;\n if (!box || box.width === 0 || box.height === 0) return undefined;\n\n if (current.view === 'time') {\n const minutesPerPixel = (current.rangeEnd - current.rangeStart) / box.height;\n const minutes = (event.clientY - origin.y) * minutesPerPixel;\n const delta = Math.round(minutes / current.slotMinutes) * current.slotMinutes;\n const column = Math.floor(((event.clientX - box.left) / box.width) * current.columnCount);\n\n return targetOf(origin.item, origin.isResize, delta, column, current);\n }\n\n const rows = Math.ceil(current.columnCount / WEEK);\n const column = Math.floor(((event.clientX - box.left) / box.width) * WEEK);\n const row = Math.floor(((event.clientY - box.top) / box.height) * rows);\n if (column < 0 || column >= WEEK || row < 0 || row >= rows) return undefined;\n\n return targetOf(origin.item, false, 0, row * WEEK + column, current);\n };\n\n const begin = useCallback(\n (\n item: PlacedEvent,\n event: { button: number; clientX: number; clientY: number },\n isResize: boolean,\n ) => {\n isSwallowingRef.current = false;\n if (event.button !== 0 || !item.isMovable) return;\n\n cleanupRef.current?.();\n const origin: Origin = {\n item,\n isResize,\n x: event.clientX,\n y: event.clientY,\n isStarted: false,\n };\n\n const stop = () => {\n window.removeEventListener('pointermove', move);\n window.removeEventListener('pointerup', end);\n window.removeEventListener('pointercancel', cancel);\n window.removeEventListener('keydown', escape, true);\n cleanupRef.current = null;\n setPreview(null);\n };\n\n /* The click that follows the release in the same task is the drag's, not an \"open\". */\n const swallowNextClick = () => {\n isSwallowingRef.current = true;\n window.setTimeout(() => {\n isSwallowingRef.current = false;\n }, 0);\n };\n\n const move = (moveEvent: PointerEvent) => {\n const travelled = Math.hypot(moveEvent.clientX - origin.x, moveEvent.clientY - origin.y);\n if (!origin.isStarted && travelled < DRAG_THRESHOLD) return;\n origin.isStarted = true;\n\n const target = targetAt(moveEvent, origin);\n setPreview(target ? { key: origin.item.key, isResize: origin.isResize, target } : null);\n };\n\n const end = (upEvent: PointerEvent) => {\n stop();\n if (!origin.isStarted) return;\n\n swallowNextClick();\n const target = targetAt(upEvent, origin);\n if (target) latest.current.onDrop(origin.item, target);\n };\n\n const cancel = () => stop();\n\n /* Captured: the `Escape` that gives up a drag must not also close the dialog around it. */\n const escape = (keyEvent: KeyboardEvent) => {\n if (keyEvent.key !== 'Escape' || !origin.isStarted) return;\n keyEvent.preventDefault();\n keyEvent.stopPropagation();\n swallowNextClick();\n stop();\n };\n\n window.addEventListener('pointermove', move);\n window.addEventListener('pointerup', end);\n window.addEventListener('pointercancel', cancel);\n window.addEventListener('keydown', escape, true);\n cleanupRef.current = stop;\n },\n // `targetAt` reads the box and the bounds through refs at the moment of the event.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n /* A calendar unmounted mid-drag leaves no listener behind. */\n useEffect(() => () => cleanupRef.current?.(), []);\n\n const isClickSwallowed = useCallback(() => isSwallowingRef.current, []);\n\n return { preview, begin, isClickSwallowed };\n};\n\nexport default useCalendarDrag;\n","'use client';\n\nimport {\n type CSSProperties,\n type KeyboardEvent,\n memo,\n type MouseEvent,\n type PointerEvent,\n type ReactNode,\n} from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport type { PlacedEvent } from '../core/layout';\nimport { minutesOf, timeRange, toTime } from '../core/time';\nimport type { CalendarEvent } from '../core/types';\n\nimport styles from './index.module.scss';\n\nexport type EventHandlers = {\n onPointerDown: (item: PlacedEvent, event: PointerEvent, isResize: boolean) => void;\n onClick: (item: PlacedEvent, event: MouseEvent) => void;\n onKeyDown: (item: PlacedEvent, event: KeyboardEvent) => void;\n onFocus: (item: PlacedEvent) => void;\n};\n\ntype Props = {\n item: PlacedEvent;\n view: 'time' | 'month';\n /** The one event of the calendar in the tab order (roving `tabindex`). */\n isActive: boolean;\n /** Being dragged: the source keeps its place, marked, while the preview travels. */\n isDragSource: boolean;\n /** Can be resized with the pointer (time grid, movable, a change handler given). */\n isResizable: boolean;\n /** Time grid: the drawn hours, for the position in the column. */\n rangeStart: number;\n rangeLength: number;\n /** The day (and resource) of the column, read after the event. */\n columnLabel: string;\n cancelledLabel: string;\n renderEvent?: (event: CalendarEvent) => ReactNode;\n handlers: EventHandlers;\n};\n\n/** Percentages of the column for the time grid; the month cell lists its events instead. */\nconst placement = (item: PlacedEvent, rangeStart: number, rangeLength: number): CSSProperties =>\n ({\n '--ui-calendar-top': `${((item.startMin - rangeStart) / rangeLength) * 100}%`,\n '--ui-calendar-height': `${((item.endMin - item.startMin) / rangeLength) * 100}%`,\n '--ui-calendar-lane': item.lane,\n '--ui-calendar-lanes': item.lanes,\n }) as CSSProperties;\n\n/**\n * One event: a button (Enter opens it), its time and its body, the day of its column read after\n * it. A struck-through title is not the only sign of a cancelled event: the \"cancelled\" text is\n * read first.\n */\nconst EventBlock = ({\n item,\n view,\n isActive,\n isDragSource,\n isResizable,\n rangeStart,\n rangeLength,\n columnLabel,\n cancelledLabel,\n renderEvent,\n handlers,\n}: Props) => {\n const { event } = item;\n const time =\n view === 'time'\n ? timeRange(minutesOf(event.start), minutesOf(event.end))\n : toTime(minutesOf(event.start));\n\n return (\n <button\n type=\"button\"\n className={cx(\n styles.event,\n styles[`event--${view}`],\n styles[`event--${event.tone ?? 'primary'}`],\n event.isCancelled && styles['event--cancelled'],\n item.isMovable && styles['event--movable'],\n isDragSource && styles['event--dragging'],\n )}\n style={view === 'time' ? placement(item, rangeStart, rangeLength) : undefined}\n tabIndex={isActive ? 0 : -1}\n data-key={item.key}\n onPointerDown={pointerEvent => handlers.onPointerDown(item, pointerEvent, false)}\n onClick={mouseEvent => handlers.onClick(item, mouseEvent)}\n onKeyDown={keyEvent => handlers.onKeyDown(item, keyEvent)}\n onFocus={() => handlers.onFocus(item)}\n >\n {event.isCancelled && <span className={styles.srOnly}>{`${cancelledLabel}: `}</span>}\n <span className={styles.event__time}>{time}</span>\n <span className={styles.event__body}>{renderEvent ? renderEvent(event) : event.title}</span>\n <span className={styles.srOnly}>{`, ${columnLabel}`}</span>\n {isResizable && (\n <span\n className={styles.event__handle}\n aria-hidden\n onPointerDown={pointerEvent => {\n pointerEvent.stopPropagation();\n handlers.onPointerDown(item, pointerEvent, true);\n }}\n />\n )}\n </button>\n );\n};\n\nexport default /*#__PURE__*/ memo(EventBlock);\n","'use client';\n\nimport { type CSSProperties, type ReactNode, type RefObject } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport type { PlacedEvent } from '../core/layout';\nimport type { CalendarDay, CalendarEvent } from '../core/types';\nimport type { DragPreview } from '../core/useCalendarDrag';\n\nimport EventBlock, { type EventHandlers } from './EventBlock';\nimport styles from './index.module.scss';\n\ntype Props = {\n days: readonly CalendarDay[];\n /** The events of each day, already cut to the ones the cell shows. */\n shown: readonly (readonly PlacedEvent[])[];\n /** How many more events each day has than it shows. */\n hiddenCounts: readonly number[];\n weekdays?: readonly string[];\n selectedDate?: string;\n bodyRef: RefObject<HTMLDivElement | null>;\n activeKey: string | undefined;\n preview: DragPreview | null;\n cancelledLabel: string;\n formatMore: (count: number) => string;\n renderEvent?: (event: CalendarEvent) => ReactNode;\n handlers: EventHandlers;\n onDaySelect?: (date: string) => void;\n};\n\nconst WEEK = 7;\n\n/**\n * The month — a cell per day, seven to a row, each listing its first events in time order and a\n * \"+N\" for the rest. The day number opens the day (`onDaySelect`), so does the \"+N\".\n */\nconst MonthGrid = ({\n days,\n shown,\n hiddenCounts,\n weekdays,\n selectedDate,\n bodyRef,\n activeKey,\n preview,\n cancelledLabel,\n formatMore,\n renderEvent,\n handlers,\n onDaySelect,\n}: Props) => (\n <div\n className={styles.month}\n style={{ '--ui-calendar-rows': Math.ceil(days.length / WEEK) } as CSSProperties}\n >\n {weekdays && (\n /* Each cell is named by its full day; the row of weekday names is for the eye. */\n <div className={styles.weekdays} aria-hidden>\n {weekdays.map(weekday => (\n <span key={weekday}>{weekday}</span>\n ))}\n </div>\n )}\n <div ref={bodyRef} className={styles.cells}>\n {days.map((day, index) => {\n const hidden = hiddenCounts[index];\n const dayText = day.shortLabel ?? day.label;\n\n return (\n <div\n key={day.date}\n role=\"group\"\n aria-label={day.label}\n className={cx(\n styles.cell,\n day.isOff && styles['cell--off'],\n day.isOutside && styles['cell--outside'],\n preview?.target.column === index && styles['cell--target'],\n )}\n >\n {onDaySelect ? (\n <button\n type=\"button\"\n className={cx(styles.cell__day, day.isToday && styles['cell__day--today'])}\n aria-label={day.label}\n aria-current={day.isToday ? 'date' : undefined}\n aria-pressed={selectedDate === undefined ? undefined : day.date === selectedDate}\n onClick={() => onDaySelect(day.date)}\n >\n {dayText}\n </button>\n ) : (\n <span\n className={cx(styles.cell__day, day.isToday && styles['cell__day--today'])}\n aria-hidden\n >\n {dayText}\n </span>\n )}\n {shown[index].map(item => (\n <EventBlock\n key={item.key}\n item={item}\n view=\"month\"\n isActive={item.key === activeKey}\n isDragSource={item.key === preview?.key}\n isResizable={false}\n rangeStart={0}\n rangeLength={1}\n columnLabel={day.label}\n cancelledLabel={cancelledLabel}\n renderEvent={renderEvent}\n handlers={handlers}\n />\n ))}\n {hidden > 0 &&\n (onDaySelect ? (\n <button\n type=\"button\"\n className={styles.cell__more}\n onClick={() => onDaySelect(day.date)}\n >\n {formatMore(hidden)}\n </button>\n ) : (\n <span className={styles.cell__more}>{formatMore(hidden)}</span>\n ))}\n </div>\n );\n })}\n </div>\n </div>\n);\n\nexport default MonthGrid;\n","'use client';\n\nimport {\n type CSSProperties,\n type DragEvent,\n type MouseEvent,\n type ReactNode,\n type RefObject,\n} from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport type { CalendarColumn, PlacedBand, PlacedEvent } from '../core/layout';\nimport { clamp, timeRange, toTime, toWall } from '../core/time';\nimport type { CalendarDay, CalendarEvent, CalendarResource, CalendarSlot } from '../core/types';\nimport type { DragPreview } from '../core/useCalendarDrag';\n\nimport EventBlock, { type EventHandlers } from './EventBlock';\nimport styles from './index.module.scss';\n\ntype Props = {\n label: string;\n days: readonly CalendarDay[];\n resources?: readonly CalendarResource[];\n columns: readonly CalendarColumn[];\n bands: readonly PlacedBand[];\n placed: readonly (readonly PlacedEvent[])[];\n rangeStart: number;\n rangeEnd: number;\n slotMinutes: number;\n bodyRef: RefObject<HTMLDivElement | null>;\n activeKey: string | undefined;\n preview: DragPreview | null;\n isEditable: boolean;\n cancelledLabel: string;\n renderEvent?: (event: CalendarEvent) => ReactNode;\n renderResource?: (resource: CalendarResource) => ReactNode;\n handlers: EventHandlers;\n /** True for the click that ends a drag: released on an empty slot, it is not a new event. */\n isClickSwallowed: () => boolean;\n onSlotSelect?: (slot: CalendarSlot) => void;\n onExternalDrop?: (drop: CalendarSlot & { data: string }) => void;\n};\n\n/** The header of a day: the short text shown, the full name read. */\nconst DayHeader = ({ day, span }: { day: CalendarDay; span: number }) => (\n <div\n className={cx(styles.header, day.isToday && styles['header--today'])}\n style={{ gridColumn: `span ${span}` }}\n aria-current={day.isToday ? 'date' : undefined}\n >\n {day.shortLabel ? (\n <>\n <span aria-hidden>{day.shortLabel}</span>\n <span className={styles.srOnly}>{day.label}</span>\n </>\n ) : (\n day.label\n )}\n </div>\n);\n\n/** The header of a resource column: its label and detail, tinted by its tone. */\nconst ResourceHeader = ({\n resource,\n renderResource,\n}: {\n resource: CalendarResource;\n renderResource?: (resource: CalendarResource) => ReactNode;\n}) => (\n <div\n className={cx(styles.resource, resource.tone && styles[`resource--${resource.tone}`])}\n data-tone={resource.tone}\n >\n {renderResource ? (\n renderResource(resource)\n ) : (\n <>\n {resource.label}\n {resource.detail && <span className={styles.resource__detail}>{resource.detail}</span>}\n </>\n )}\n </div>\n);\n\n/**\n * The time grid — days (and their resources) as columns, the drawn hours as rows. Events sit at\n * their time; overlapping ones share the column side by side. One scroll box: the headers stay\n * on top and the hours on the left while it scrolls both ways.\n */\nconst TimeGrid = ({\n label,\n days,\n resources,\n columns,\n bands,\n placed,\n rangeStart,\n rangeEnd,\n slotMinutes,\n bodyRef,\n activeKey,\n preview,\n isEditable,\n cancelledLabel,\n renderEvent,\n renderResource,\n handlers,\n isClickSwallowed,\n onSlotSelect,\n onExternalDrop,\n}: Props) => {\n const rangeLength = rangeEnd - rangeStart;\n const resourceCount = resources?.length ?? 0;\n const hasResources = resourceCount > 0;\n const hours = Array.from(\n { length: Math.floor((rangeEnd - 1) / 60) - Math.ceil(rangeStart / 60) + 1 },\n (_, index) => (Math.ceil(rangeStart / 60) + index) * 60,\n );\n /** A length of minutes as a share of the drawn hours; `percent(t)` is where time `t` sits. */\n const share = (minutes: number) => `${(minutes / rangeLength) * 100}%`;\n const percent = (minutes: number) => share(minutes - rangeStart);\n const previewItem = preview ? placed.flat().find(item => item.key === preview.key) : undefined;\n\n /** The slot under a pointer in a column, snapped down to the slot. */\n const slotAt = (column: CalendarColumn, element: HTMLElement, clientY: number): CalendarSlot => {\n const box = element.getBoundingClientRect();\n const ratio = box.height > 0 ? clamp((clientY - box.top) / box.height, 0, 1) : 0;\n const minutes = Math.floor((ratio * rangeLength) / slotMinutes) * slotMinutes;\n const start = clamp(rangeStart + minutes, rangeStart, rangeEnd - slotMinutes);\n\n return {\n start: toWall(column.day.date, start),\n end: toWall(column.day.date, start + slotMinutes),\n resourceId: column.resource?.id,\n };\n };\n\n const style = {\n '--ui-calendar-columns': columns.length,\n '--ui-calendar-hours': rangeLength / 60,\n '--ui-calendar-slot-ratio': slotMinutes / 60,\n } as CSSProperties;\n\n return (\n /*\n * With no event to focus, the scroll box itself takes the focus (2.1.1): the hours past the\n * fold are reached with the arrow keys of the box.\n */\n <div\n className={styles.scroller}\n {...(placed.some(list => list.length > 0)\n ? {}\n : { tabIndex: 0, role: 'region', 'aria-label': label })}\n >\n <div className={cx(styles.time, bands.length > 0 && styles['time--bands'])} style={style}>\n <div className={styles.corner} />\n <div className={styles.headers}>\n {days.map(day => (\n <DayHeader key={day.date} day={day} span={hasResources ? resourceCount : 1} />\n ))}\n {hasResources &&\n columns.map(column => (\n <ResourceHeader\n key={column.index}\n resource={column.resource as CalendarResource}\n renderResource={renderResource}\n />\n ))}\n </div>\n\n <div className={styles.gutter} aria-hidden>\n {hours.map(minutes => (\n <span key={minutes} className={styles.gutter__hour} style={{ top: percent(minutes) }}>\n {toTime(minutes)}\n </span>\n ))}\n {bands.map(band => (\n <span\n key={band.key}\n className={styles.gutter__band}\n style={{ top: percent(band.startMin), height: share(band.endMin - band.startMin) }}\n >\n {band.label}\n </span>\n ))}\n </div>\n\n <div ref={bodyRef} className={styles.columns}>\n {columns.map(column => (\n <div\n key={column.index}\n role=\"group\"\n aria-label={column.label}\n className={cx(styles.column, column.day.isOff && styles['column--off'])}\n onClick={\n onSlotSelect\n ? (event: MouseEvent<HTMLDivElement>) => {\n if (event.target !== event.currentTarget || isClickSwallowed()) return;\n onSlotSelect(slotAt(column, event.currentTarget, event.clientY));\n }\n : undefined\n }\n onDragOver={\n onExternalDrop\n ? (event: DragEvent<HTMLDivElement>) => {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'move';\n }\n : undefined\n }\n onDrop={\n onExternalDrop\n ? (event: DragEvent<HTMLDivElement>) => {\n event.preventDefault();\n onExternalDrop({\n ...slotAt(column, event.currentTarget, event.clientY),\n data: event.dataTransfer.getData('text/plain'),\n });\n }\n : undefined\n }\n >\n {bands.map((band, index) => (\n <div\n key={band.key}\n className={cx(styles.band, index % 2 === 1 && styles['band--alternate'])}\n style={{\n top: percent(band.startMin),\n height: share(band.endMin - band.startMin),\n }}\n aria-hidden\n />\n ))}\n {placed[column.index].map(item => (\n <EventBlock\n key={item.key}\n item={item}\n view=\"time\"\n isActive={item.key === activeKey}\n isDragSource={item.key === preview?.key}\n isResizable={isEditable && item.isMovable}\n rangeStart={rangeStart}\n rangeLength={rangeLength}\n columnLabel={column.label}\n cancelledLabel={cancelledLabel}\n renderEvent={renderEvent}\n handlers={handlers}\n />\n ))}\n {preview && previewItem && preview.target.column === column.index && (\n <div\n className={styles.preview}\n style={\n {\n '--ui-calendar-top': percent(preview.target.startMin),\n '--ui-calendar-height': `${((preview.target.endMin - preview.target.startMin) / rangeLength) * 100}%`,\n } as CSSProperties\n }\n aria-hidden\n >\n {timeRange(preview.target.startMin, preview.target.endMin)}\n <span className={styles.preview__title}>{previewItem.event.title}</span>\n </div>\n )}\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n};\n\nexport default TimeGrid;\n","'use client';\n\nimport {\n type KeyboardEvent,\n memo,\n type MouseEvent,\n type PointerEvent,\n type ReactNode,\n useCallback,\n useEffect,\n useId,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { useAnnounce, useUi } from '@handijitcom/ui';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { resolveFormatter, resolveLabel } from '../../helpers/label.helper';\nimport {\n buildColumns,\n placeBands,\n type PlacedEvent,\n placeMonthEvents,\n placeTimeEvents,\n} from '../core/layout';\nimport {\n type CalendarTarget,\n type CalendarView,\n changeOf,\n isArrowKey,\n keyboardTarget,\n type MoveBounds,\n neighbourOf,\n} from '../core/moves';\nimport { timeRange, toMinutes } from '../core/time';\nimport type {\n CalendarBand,\n CalendarDay,\n CalendarEvent,\n CalendarEventChange,\n CalendarResource,\n CalendarSlot,\n} from '../core/types';\nimport useCalendarDrag from '../core/useCalendarDrag';\n\nimport type { EventHandlers } from './EventBlock';\nimport styles from './index.module.scss';\nimport MonthGrid from './MonthGrid';\nimport TimeGrid from './TimeGrid';\n\ntype Props = {\n /** The calendar's accessible name (\"Ders planı\"). */\n label: string;\n /** The days to draw, in order — computed by the caller (the caller owns day arithmetic). */\n days: readonly CalendarDay[];\n events: readonly CalendarEvent[];\n /** `time` (default): days as columns, hours as rows — day and week. `month`: day cells. */\n view?: CalendarView;\n /**\n * Time grid: a column per resource under every day (teacher, room, technician). A resource's\n * `detail` is a second header line and its `tone` tints the header (a full day: `warning`).\n */\n resources?: readonly CalendarResource[];\n /** Time grid (2.5): the header of a resource column; its label and detail by default. */\n renderResource?: (resource: CalendarResource) => ReactNode;\n /**\n * Time grid (2.5): named stretches of the day (\"Sabah\", \"Öğle\", \"Akşam\") drawn beside the hours\n * and shaded across the columns, under the events and the hour blocks.\n */\n bands?: readonly CalendarBand[];\n /** Time grid: the first drawn hour, `HH:MM`. */\n startTime?: string;\n /** Time grid: the end of the drawn hours, `HH:MM` (at most \"24:00\"). */\n endTime?: string;\n /** Time grid: the snap of a move, a resize and a keyboard step, and the grid lines (minutes). */\n slotMinutes?: number;\n /** Month: the weekday names over the columns (\"Pzt\" … \"Paz\"). */\n weekdays?: readonly string[];\n /** Month: how many events a day cell lists before its \"+N\". */\n maxEventsPerDay?: number;\n /** Month: the day whose list the caller shows beside the calendar (`aria-pressed`). */\n selectedDate?: string;\n /**\n * An event dropped, stretched or moved with the keyboard. Without it the calendar only shows\n * and opens. The calendar is controlled: the move stands once `events` carries it, and a\n * refused move (a conflict) is simply not applied — say why in a toast.\n */\n onEventChange?: (change: CalendarEventChange) => void;\n /** Enter or a click on an event. */\n onEventOpen?: (id: string) => void;\n /** Time grid: a click on an empty slot (a new lesson there). */\n onSlotSelect?: (slot: CalendarSlot) => void;\n /** Month: the day number or the \"+N\" of a cell. */\n onDaySelect?: (date: string) => void;\n /**\n * Time grid: something dragged in from outside (an unassigned job of a pool) and dropped on a\n * slot; `data` is its `text/plain` drag data.\n */\n onExternalDrop?: (drop: CalendarSlot & { data: string }) => void;\n /** The body of an event under its time; its title by default. */\n renderEvent?: (event: CalendarEvent) => ReactNode;\n className?: string;\n testId?: string;\n};\n\nconst DEFAULT_MAX_PER_DAY = 3;\n\ntype Pending = { key: string; before: CalendarEvent };\n\n/**\n * Calendar (2.4) — the base of a scheduling screen: a time grid of days or of days and\n * resources, or a month; events moved and stretched with the pointer and with the keyboard.\n *\n * Keyboard: Tab reaches ONE event (roving `tabindex`; 500 lessons are not 500 tab stops);\n * ← ↑ → ↓ go to the neighbouring event; Enter opens it; ⌘/Ctrl + an arrow moves it one slot or\n * one column (month: a day or a week); ⌘/Ctrl ⇧ ↑ ↓ shortens or lengthens it. The move is\n * announced once `events` carries it. A short event can be smaller than the 44px touch target:\n * its size is its duration, and every pointer action has the keyboard way above.\n */\nconst Calendar = ({\n label,\n days,\n events,\n view = 'time',\n resources,\n renderResource,\n bands,\n startTime = '08:00',\n endTime = '20:00',\n slotMinutes = 30,\n weekdays,\n maxEventsPerDay = DEFAULT_MAX_PER_DAY,\n selectedDate,\n onEventChange,\n onEventOpen,\n onSlotSelect,\n onDaySelect,\n onExternalDrop,\n renderEvent,\n className,\n testId,\n}: Props) => {\n const { labels } = useUi();\n const announce = useAnnounce();\n const instructionsId = useId();\n const rootRef = useRef<HTMLDivElement>(null);\n const bodyRef = useRef<HTMLDivElement>(null);\n const [activeKey, setActiveKey] = useState<string>();\n const pendingRef = useRef<Pending | null>(null);\n\n const isEditable = Boolean(onEventChange);\n const rangeStart = toMinutes(startTime);\n const rangeEnd = toMinutes(endTime);\n\n const columns = useMemo(() => buildColumns(days, resources), [days, resources]);\n const placedBands = useMemo(\n () => placeBands(bands, rangeStart, rangeEnd),\n [bands, rangeStart, rangeEnd],\n );\n const placed = useMemo(\n () =>\n view === 'time'\n ? placeTimeEvents(events, columns, rangeStart, rangeEnd, isEditable)\n : placeMonthEvents(events, days, isEditable),\n [view, events, columns, days, rangeStart, rangeEnd, isEditable],\n );\n /* The month shows the first events of a day; the rest are behind \"+N\" and out of the tab order. */\n const focusable = useMemo(\n () => (view === 'month' ? placed.map(list => list.slice(0, maxEventsPerDay)) : placed),\n [view, placed, maxEventsPerDay],\n );\n\n const bounds: MoveBounds = {\n view,\n columnCount: view === 'time' ? columns.length : days.length,\n rangeStart,\n rangeEnd,\n slotMinutes,\n };\n\n const items = focusable.flat();\n const tabbableKey = items.some(item => item.key === activeKey) ? activeKey : items[0]?.key;\n\n const columnLabel = (item: PlacedEvent) =>\n view === 'time' ? columns[item.column].label : days[item.column].label;\n\n /* The latest props for the stable handlers the memoised events hold. */\n const latest = useRef({ view, columns, days, onEventChange, onEventOpen, focusable, bounds });\n latest.current = { view, columns, days, onEventChange, onEventOpen, focusable, bounds };\n\n const apply = useCallback((item: PlacedEvent, target: CalendarTarget) => {\n const current = latest.current;\n const change = changeOf(item, target, current.view, current.columns, current.days);\n if (!change || !current.onEventChange) return undefined;\n current.onEventChange(change);\n\n return change;\n }, []);\n\n const drag = useCalendarDrag({ bodyRef, bounds, onDrop: apply });\n\n const focusKey = (key: string) => {\n /* Only called from the calendar's own handlers and effect: the root is there. */\n const root = rootRef.current as HTMLDivElement;\n const element = [...root.querySelectorAll<HTMLElement>('[data-key]')].find(\n candidate => candidate.dataset.key === key,\n );\n element?.focus();\n };\n\n const handlers = useMemo<EventHandlers>(\n () => ({\n onPointerDown: (item: PlacedEvent, event: PointerEvent, isResize: boolean) => {\n pendingRef.current = null;\n if (latest.current.onEventChange) drag.begin(item, event, isResize);\n },\n onClick: (item: PlacedEvent, _event: MouseEvent) => {\n if (drag.isClickSwallowed()) return;\n latest.current.onEventOpen?.(item.event.id);\n },\n onFocus: (item: PlacedEvent) => setActiveKey(item.key),\n onKeyDown: (item: PlacedEvent, event: KeyboardEvent) => {\n pendingRef.current = null;\n if (!isArrowKey(event.key)) return;\n const current = latest.current;\n\n if (event.metaKey || event.ctrlKey) {\n event.preventDefault();\n if (!item.isMovable) return;\n const target = keyboardTarget(item, event.key, event.shiftKey, current.bounds);\n if (!target) return;\n pendingRef.current = {\n key: `${item.event.id}@${target.column}`,\n before: item.event,\n };\n if (!apply(item, target)) pendingRef.current = null;\n return;\n }\n\n const next = neighbourOf(current.focusable, item, event.key);\n if (!next) return;\n event.preventDefault();\n setActiveKey(next.key);\n focusKey(next.key);\n },\n }),\n // `drag.begin` and `drag.isClickSwallowed` are stable; the rest is read through `latest`.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [apply],\n );\n\n /*\n * A keyboard move stands once `events` carries it: the focus follows the event into its new\n * column (its button there is a new element) and the new place is announced.\n */\n useEffect(() => {\n const pending = pendingRef.current;\n if (!pending) return;\n const item = placed.flat().find(candidate => candidate.key === pending.key);\n const { before } = pending;\n const isMoved =\n item !== undefined &&\n (item.event.start !== before.start ||\n item.event.end !== before.end ||\n item.event.resourceId !== before.resourceId);\n if (!isMoved) return;\n\n pendingRef.current = null;\n setActiveKey(item.key);\n focusKey(item.key);\n announce(\n resolveFormatter(\n 'Calendar.moved',\n labels?.calendar?.moved,\n item.event.title,\n `${columnLabel(item)}, ${timeRange(item.startMin, item.endMin)}`,\n ),\n );\n // Runs when the events change: that is when a move stands.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [events]);\n\n const cancelledLabel = resolveLabel('Calendar.cancelled', labels?.calendar?.cancelled);\n const instructions = resolveLabel('Calendar.instructions', labels?.calendar?.instructions);\n\n return (\n <div\n ref={rootRef}\n className={cx(styles.calendar, className)}\n role=\"group\"\n aria-label={label}\n aria-describedby={instructionsId}\n data-testid={testId}\n >\n <span id={instructionsId} className={styles.srOnly}>\n {instructions}\n </span>\n {view === 'time' ? (\n <TimeGrid\n label={label}\n days={days}\n resources={resources}\n columns={columns}\n bands={placedBands}\n placed={placed}\n rangeStart={rangeStart}\n rangeEnd={rangeEnd}\n slotMinutes={slotMinutes}\n bodyRef={bodyRef}\n activeKey={tabbableKey}\n preview={drag.preview}\n isEditable={isEditable}\n cancelledLabel={cancelledLabel}\n renderEvent={renderEvent}\n renderResource={renderResource}\n handlers={handlers}\n isClickSwallowed={drag.isClickSwallowed}\n onSlotSelect={onSlotSelect}\n onExternalDrop={onExternalDrop}\n />\n ) : (\n <MonthGrid\n days={days}\n shown={focusable}\n hiddenCounts={placed.map((list, index) => list.length - focusable[index].length)}\n weekdays={weekdays}\n selectedDate={selectedDate}\n bodyRef={bodyRef}\n activeKey={tabbableKey}\n preview={drag.preview}\n cancelledLabel={cancelledLabel}\n formatMore={count => resolveFormatter('Calendar.more', labels?.calendar?.more, count)}\n renderEvent={renderEvent}\n handlers={handlers}\n onDaySelect={onDaySelect}\n />\n )}\n </div>\n );\n};\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Calendar, 'Calendar')) as typeof Calendar;\n"],"names":["cx","values","result","value","named","component","displayName","warned","resolveLabel","key","resolveFormatter","formatter","args","MINUTES_PER_DAY","toMinutes","time","hours","minutes","toTime","dateOf","wall","minutesOf","toWall","date","timeRange","start","end","clamp","low","high","columnKey","resourceId","buildColumns","days","resources","day","dayIndex","resource","resourceIndex","index","covers","event","startDate","endDate","isSameDay","assignLanes","items","a","b","cluster","laneEnds","clusterEnd","close","item","free","laneEnd","placeTimeEvents","events","columns","rangeStart","rangeEnd","isEditable","byKey","column","_a","hasResources","placed","place","placeMonthEvents","byDate","cell","placeBands","bands","band","startMin","endMin","targetOf","isResize","deltaMinutes","bounds","shortest","duration","changeOf","target","view","isArrowKey","neighbourOf","lists","from","list","step","best","keyboardTarget","isVertical","direction","DRAG_THRESHOLD","WEEK","useCalendarDrag","bodyRef","onDrop","preview","setPreview","useState","cleanupRef","useRef","isSwallowingRef","latest","targetAt","origin","box","current","minutesPerPixel","delta","rows","row","begin","useCallback","stop","move","cancel","escape","swallowNextClick","moveEvent","travelled","upEvent","keyEvent","useEffect","isClickSwallowed","placement","rangeLength","EventBlock","isActive","isDragSource","isResizable","columnLabel","cancelledLabel","renderEvent","handlers","jsxs","styles","pointerEvent","mouseEvent","jsx","MonthGrid","shown","hiddenCounts","weekdays","selectedDate","activeKey","formatMore","onDaySelect","weekday","hidden","dayText","DayHeader","span","Fragment","ResourceHeader","renderResource","TimeGrid","label","slotMinutes","onSlotSelect","onExternalDrop","resourceCount","_","share","percent","previewItem","slotAt","element","clientY","ratio","style","DEFAULT_MAX_PER_DAY","Calendar","startTime","endTime","maxEventsPerDay","onEventChange","onEventOpen","className","testId","labels","useUi","announce","useAnnounce","instructionsId","useId","rootRef","setActiveKey","pendingRef","useMemo","placedBands","focusable","tabbableKey","apply","change","drag","focusKey","candidate","_event","_b","next","pending","before","instructions","_c","count","memo"],"mappings":"mLAGaA,EAAK,IAAIC,IAAiC,CACrD,IAAIC,EAAS,GAEb,UAAWC,KAASF,EACbE,IACLD,EAASA,IAAW,GAAKC,EAAQ,GAAGD,CAAM,IAAIC,CAAK,IAGrD,OAAOD,CACT,ECAaE,GAAQ,CACnBC,EACAC,IACe,OAAO,OAAOD,EAAW,CAAE,YAAAC,EAAa,ECVnDC,OAAa,IAUNC,GAAe,CAACC,KAAgBR,IAA2C,CACtF,UAAWE,KAASF,EAAQ,GAAIE,IAAU,OAAW,OAAOA,EAE5D,OAAI,QAAQ,IAAI,WAAa,cAAgB,CAACI,GAAO,IAAIE,CAAG,IAC1DF,GAAO,IAAIE,CAAG,EACd,QAAQ,MACN,kCAAkCA,CAAG,kIAAA,GAMlC,EACT,EAGaC,GAAmB,CAC9BD,EACAE,KACGC,IAECD,EAAkBA,EAAU,GAAGC,CAAI,EAEhCJ,GAAaC,CAAG,EChCZI,GAAkB,KAGlBC,EAAaC,GAAyB,CACjD,KAAM,CAACC,EAAOC,CAAO,EAAIF,EAAK,MAAM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AOiK,EACP,aAAchI,EAAO,IAAI,CAACuB,EAAMlD,IAAUkD,EAAK,OAASyG,EAAU3J,CAAK,EAAE,MAAM,EAC/E,SAAA2G,EACA,aAAAC,EACA,QAAAjD,EACA,UAAWiG,GACX,QAASG,EAAK,QACd,eAAA/D,GACA,WAAYyE,GAAA,OAAS,OAAAtM,GAAiB,iBAAiBsD,EAAAuH,GAAA,YAAAA,EAAQ,WAAR,YAAAvH,EAAkB,KAAMgJ,CAAK,GACpF,YAAAxE,EACA,SAAAC,GACA,YAAAa,CAAA,CAAA,CACF,CAAA,CAAA,CAIR,EAEA/G,GAA6B0K,OAAmB7M,GAAM2K,GAAU,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer ui{.ui-calendar-YEgbk{position:relative;display:flex;flex-direction:column;min-height:0;color:var(--hd-text);font-family:var(--hd-font-body)}.ui-srOnly-6NUr9{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ui-scroller-IkPuv{position:relative;overflow:auto;min-height:0;flex:1 1 auto;border:1px solid var(--hd-border);border-radius:var(--hd-radius-sm);background-color:var(--hd-bg-surface)}.ui-scroller-IkPuv:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-primary-text);outline-offset:var(--ui-ring-offset, -2px)}.ui-scroller-IkPuv{scrollbar-width:thin;scrollbar-color:var(--hd-border-strong) transparent}.ui-scroller-IkPuv::-webkit-scrollbar{width:8px;height:8px}.ui-scroller-IkPuv::-webkit-scrollbar-track{background:transparent}.ui-scroller-IkPuv::-webkit-scrollbar-thumb{background-color:var(--hd-border-strong);border-radius:var(--hd-radius-pill);border:2px solid transparent;background-clip:content-box}.ui-scroller-IkPuv::-webkit-scrollbar-thumb:hover{background-color:var(--hd-text-3)}.ui-time-DPj2K{--ui-calendar-track: repeat( var(--ui-calendar-columns), minmax(var(--ui-calendar-column-min, 7rem), 1fr) );display:grid;grid-template-columns:var(--ui-calendar-gutter, 3.5rem) minmax(0,1fr);grid-template-rows:auto auto;min-width:min-content}.ui-time--bands-7Kndf{grid-template-columns:var(--ui-calendar-gutter, 4.75rem) minmax(0,1fr)}.ui-corner-7ggOq{position:sticky;inset-block-start:0;inset-inline-start:0;z-index:3;background-color:var(--hd-bg-surface);border-block-end:1px solid var(--hd-border);border-inline-end:1px solid var(--hd-border)}.ui-headers-c6s18{position:sticky;inset-block-start:0;z-index:2;display:grid;grid-template-columns:var(--ui-calendar-track);background-color:var(--hd-bg-surface);border-block-end:1px solid var(--hd-border)}.ui-header-vuk-c,.ui-resource-i6zVF{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;padding:var(--hd-space-2) var(--hd-space-2);font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-semibold);text-align:center;color:var(--hd-text-2);border-inline-start:1px solid var(--hd-border)}.ui-header--today-eLJzT{color:var(--hd-primary-text);text-decoration:underline;text-underline-offset:3px}.ui-resource-i6zVF{font-weight:var(--hd-font-weight-regular);border-block-start:1px solid var(--hd-border)}.ui-resource__detail-ssEve{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;font-size:var(--hd-type-caption-size);font-variant-numeric:tabular-nums}.ui-resource--primary--iCwp{background-color:var(--hd-primary-soft);color:var(--hd-primary-text)}.ui-resource--neutral-cxIaY{background-color:var(--hd-bg-raised);border:1px solid var(--hd-border);color:var(--hd-text-2)}.ui-resource--success-qhCEv{background-color:var(--hd-success-bg);border:1px solid var(--hd-success-line);color:var(--hd-success-fg)}.ui-resource--warning-GR4eo{background-color:var(--hd-warning-bg);border:1px solid var(--hd-warning-line);color:var(--hd-warning-fg)}.ui-resource--danger-S8dwG{background-color:var(--hd-danger-bg);border:1px solid var(--hd-danger-line);color:var(--hd-danger-fg)}.ui-resource--info-hZjna{background-color:var(--hd-info-bg);border:1px solid var(--hd-info-line);color:var(--hd-info-fg)}.ui-resource--neutral-cxIaY,.ui-resource--success-qhCEv,.ui-resource--warning-GR4eo,.ui-resource--danger-S8dwG,.ui-resource--info-hZjna{font-weight:var(--hd-font-weight-semibold)}.ui-gutter-YjM1s{position:sticky;inset-inline-start:0;z-index:1;background-color:var(--hd-bg-surface);border-inline-end:1px solid var(--hd-border)}.ui-gutter__hour-oyYrg{position:absolute;inset-inline-end:var(--hd-space-2);translate:0 -50%;font-size:var(--hd-type-caption-size);font-variant-numeric:tabular-nums;color:var(--hd-text-3)}.ui-gutter__hour-oyYrg:first-child{translate:0 0}.ui-gutter__band-D6P6s{position:absolute;inset-inline-start:0;display:flex;align-items:flex-start;justify-content:center;width:1.25rem;overflow:hidden;padding-block:var(--hd-space-1);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text-2);white-space:nowrap;writing-mode:vertical-rl;rotate:180deg;border-inline-end:2px solid var(--hd-border)}.ui-band-GkAex{position:absolute;inset-inline:0;border-block-start:2px solid var(--hd-border);pointer-events:none}.ui-band--alternate-5aeTI{background-color:color-mix(in srgb,var(--hd-bg-raised) 60%,transparent)}.ui-columns-aXu-3{position:relative;display:grid;grid-template-columns:var(--ui-calendar-track);height:calc(var(--ui-calendar-hours) * var(--ui-calendar-hour-height, 3rem))}.ui-column-BsLn7{position:relative;border-inline-start:1px solid var(--hd-border);background-image:linear-gradient(to bottom,var(--hd-border) 1px,transparent 1px);background-size:100% calc(var(--ui-calendar-hour-height, 3rem) * var(--ui-calendar-slot-ratio))}.ui-column--off-4yR85{background-color:var(--hd-bg-raised)}.ui-event-uQH1A{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0;overflow:hidden;padding:2px var(--hd-space-2);font:inherit;font-size:var(--hd-type-small-size);line-height:var(--hd-type-h4-line-height);text-align:start;border-radius:var(--hd-radius-xs);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--hd-bg-raised);border:1px solid var(--hd-border);color:var(--hd-text-2)}.ui-event-uQH1A:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 1px)}.ui-event--primary-ykXcJ{background-color:var(--hd-primary-soft);border-color:var(--hd-primary-line);color:var(--hd-primary-text)}.ui-event--neutral-uTBTX{background-color:var(--hd-bg-raised);border:1px solid var(--hd-border);color:var(--hd-text-2)}.ui-event--success-vosp6{background-color:var(--hd-success-bg);border:1px solid var(--hd-success-line);color:var(--hd-success-fg)}.ui-event--warning-scg6H{background-color:var(--hd-warning-bg);border:1px solid var(--hd-warning-line);color:var(--hd-warning-fg)}.ui-event--danger-UY-OD{background-color:var(--hd-danger-bg);border:1px solid var(--hd-danger-line);color:var(--hd-danger-fg)}.ui-event--info-SHlJD{background-color:var(--hd-info-bg);border:1px solid var(--hd-info-line);color:var(--hd-info-fg)}.ui-event--time-cg0iK{position:absolute;inset-block-start:var(--ui-calendar-top);inset-inline-start:calc(100% / var(--ui-calendar-lanes) * var(--ui-calendar-lane));width:calc(100% / var(--ui-calendar-lanes) - 2px);height:var(--ui-calendar-height);min-height:1.25rem}.ui-event--month-7wAJO{flex-direction:row;gap:var(--hd-space-1);width:100%;white-space:nowrap}.ui-event--movable-1n8nf{cursor:grab}.ui-event--dragging-E2r9s{border-style:dashed;cursor:grabbing}.ui-event--cancelled-eG-x9 .ui-event__body-jClWr{text-decoration:line-through}.ui-event--cancelled-eG-x9{border-style:dashed}.ui-event__time-8Nt0z{font-size:var(--hd-type-caption-size);font-variant-numeric:tabular-nums;font-weight:var(--hd-font-weight-semibold)}.ui-event__body-jClWr{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%}.ui-event__handle-cXUkS{position:absolute;inset-inline:0;inset-block-end:0;height:6px;cursor:ns-resize}.ui-preview-FsJaC{position:absolute;inset-block-start:var(--ui-calendar-top);inset-inline:0;height:var(--ui-calendar-height);z-index:1;display:flex;flex-direction:column;padding:2px var(--hd-space-2);overflow:hidden;font-size:var(--hd-type-caption-size);font-variant-numeric:tabular-nums;font-weight:var(--hd-font-weight-semibold);color:var(--hd-primary-text);background-color:var(--hd-primary-soft);border:2px dashed var(--hd-primary);border-radius:var(--hd-radius-xs);pointer-events:none}.ui-preview__title-GkNhx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:var(--hd-font-weight-regular)}.ui-month-aEknN{display:flex;flex-direction:column;border:1px solid var(--hd-border);border-radius:var(--hd-radius-sm);background-color:var(--hd-bg-surface);overflow:hidden}.ui-weekdays-VJ6EQ{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-block-end:1px solid var(--hd-border)}.ui-weekdays-VJ6EQ span{padding:var(--hd-space-2);font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-semibold);text-align:center;color:var(--hd-text-2)}.ui-cells-jQJ7X{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(var(--ui-calendar-rows),minmax(6rem,1fr))}.ui-cell-c3itR{display:flex;flex-direction:column;gap:2px;min-width:0;padding:var(--hd-space-1);border-block-start:1px solid var(--hd-border);border-inline-start:1px solid var(--hd-border)}.ui-cell--off-TIR0O{background-color:var(--hd-bg-raised)}.ui-cell--outside-F23oJ .ui-cell__day-40ADs{color:var(--hd-text-3)}.ui-cell--target-utfa-{background-color:var(--hd-primary-soft);box-shadow:inset 0 0 0 2px var(--hd-primary)}.ui-cell__day-40ADs{align-self:flex-end;min-width:1.75rem;padding:2px var(--hd-space-1);font:inherit;font-size:var(--hd-type-small-size);font-variant-numeric:tabular-nums;text-align:center;color:var(--hd-text-2);border:0;border-radius:var(--hd-radius-xs);background-color:transparent;transition:background-color var(--hd-duration-fast) var(--hd-ease-standard),translate var(--hd-duration-fast) var(--hd-ease-standard)}.ui-cell__day-40ADs:hover:not(:disabled):not([aria-disabled=true]){background-color:color-mix(in srgb,var(--hd-text) 8%,transparent)}.ui-cell__day-40ADs:active:not(:disabled):not([aria-disabled=true]){background-color:color-mix(in srgb,var(--hd-text) 14%,transparent);translate:0 1px}@media (prefers-reduced-motion: reduce){.ui-cell__day-40ADs{transition:none}.ui-cell__day-40ADs:active:not(:disabled):not([aria-disabled=true]){translate:none}}.ui-cell__day-40ADs:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 1px)}.ui-cell__day-40ADs[aria-pressed=true]{background-color:var(--hd-primary-soft);color:var(--hd-primary-text);font-weight:var(--hd-font-weight-semibold)}.ui-cell__day--today-2i28S{color:var(--hd-primary-text);font-weight:var(--hd-font-weight-bold);text-decoration:underline;text-underline-offset:3px}.ui-cell__more-e3wMw{align-self:flex-start;padding:0 var(--hd-space-1);font:inherit;font-size:var(--hd-type-caption-size);color:var(--hd-text-2);border:0;border-radius:var(--hd-radius-xs);background-color:transparent;transition:background-color var(--hd-duration-fast) var(--hd-ease-standard),translate var(--hd-duration-fast) var(--hd-ease-standard)}.ui-cell__more-e3wMw:hover:not(:disabled):not([aria-disabled=true]){background-color:color-mix(in srgb,var(--hd-text) 8%,transparent)}.ui-cell__more-e3wMw:active:not(:disabled):not([aria-disabled=true]){background-color:color-mix(in srgb,var(--hd-text) 14%,transparent);translate:0 1px}@media (prefers-reduced-motion: reduce){.ui-cell__more-e3wMw{transition:none}.ui-cell__more-e3wMw:active:not(:disabled):not([aria-disabled=true]){translate:none}}.ui-cell__more-e3wMw:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 1px)}}
|