@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Button variants. */
|
|
2
|
+
declare enum UIVariant {
|
|
3
|
+
/** The one expected action of the screen: cobalt fill. One per screen. */
|
|
4
|
+
PRIMARY = "PRIMARY",
|
|
5
|
+
/** The conversion action (download, try, subscribe): coral fill — and only that. */
|
|
6
|
+
ACCENT = "ACCENT",
|
|
7
|
+
/** Neutral secondary action: grey border, body text ("Cancel"). */
|
|
8
|
+
SECONDARY = "SECONDARY",
|
|
9
|
+
/** Cobalt frame — an encouraged navigation that is not the primary action ("See all"). */
|
|
10
|
+
OUTLINE = "OUTLINE",
|
|
11
|
+
/** Neutral fill; a secondary action inside a card. */
|
|
12
|
+
SOFT = "SOFT",
|
|
13
|
+
/** No surface: toolbar and inline secondary actions, in the link colour. */
|
|
14
|
+
GHOST = "GHOST",
|
|
15
|
+
/** Destructive action: a delete confirmation. */
|
|
16
|
+
DANGER = "DANGER",
|
|
17
|
+
/** An action on the brand band (deep cobalt in both themes). */
|
|
18
|
+
ON_BAND = "ON_BAND"
|
|
19
|
+
}
|
|
20
|
+
export default UIVariant;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Button variants. */
|
|
2
|
+
declare enum UIVariant {
|
|
3
|
+
/** The one expected action of the screen: cobalt fill. One per screen. */
|
|
4
|
+
PRIMARY = "PRIMARY",
|
|
5
|
+
/** The conversion action (download, try, subscribe): coral fill — and only that. */
|
|
6
|
+
ACCENT = "ACCENT",
|
|
7
|
+
/** Neutral secondary action: grey border, body text ("Cancel"). */
|
|
8
|
+
SECONDARY = "SECONDARY",
|
|
9
|
+
/** Cobalt frame — an encouraged navigation that is not the primary action ("See all"). */
|
|
10
|
+
OUTLINE = "OUTLINE",
|
|
11
|
+
/** Neutral fill; a secondary action inside a card. */
|
|
12
|
+
SOFT = "SOFT",
|
|
13
|
+
/** No surface: toolbar and inline secondary actions, in the link colour. */
|
|
14
|
+
GHOST = "GHOST",
|
|
15
|
+
/** Destructive action: a delete confirmation. */
|
|
16
|
+
DANGER = "DANGER",
|
|
17
|
+
/** An action on the brand band (deep cobalt in both themes). */
|
|
18
|
+
ON_BAND = "ON_BAND"
|
|
19
|
+
}
|
|
20
|
+
export default UIVariant;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var A = /* @__PURE__ */ ((N) => (N.PRIMARY = "PRIMARY", N.ACCENT = "ACCENT", N.SECONDARY = "SECONDARY", N.OUTLINE = "OUTLINE", N.SOFT = "SOFT", N.GHOST = "GHOST", N.DANGER = "DANGER", N.ON_BAND = "ON_BAND", N))(A || {});
|
|
2
|
+
export {
|
|
3
|
+
A as default
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=ui-variant.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-variant.enum.js","sources":["../../src/enums/ui-variant.enum.ts"],"sourcesContent":["/** Button variants. */\nenum UIVariant {\n /** The one expected action of the screen: cobalt fill. One per screen. */\n PRIMARY = 'PRIMARY',\n /** The conversion action (download, try, subscribe): coral fill — and only that. */\n ACCENT = 'ACCENT',\n /** Neutral secondary action: grey border, body text (\"Cancel\"). */\n SECONDARY = 'SECONDARY',\n /** Cobalt frame — an encouraged navigation that is not the primary action (\"See all\"). */\n OUTLINE = 'OUTLINE',\n /** Neutral fill; a secondary action inside a card. */\n SOFT = 'SOFT',\n /** No surface: toolbar and inline secondary actions, in the link colour. */\n GHOST = 'GHOST',\n /** Destructive action: a delete confirmation. */\n DANGER = 'DANGER',\n /** An action on the brand band (deep cobalt in both themes). */\n ON_BAND = 'ON_BAND',\n}\n\nexport default UIVariant;\n"],"names":["UIVariant"],"mappings":"AACA,IAAKA,sBAAAA,OAEHA,EAAA,UAAU,WAEVA,EAAA,SAAS,UAETA,EAAA,YAAY,aAEZA,EAAA,UAAU,WAEVA,EAAA,OAAO,QAEPA,EAAA,QAAQ,SAERA,EAAA,SAAS,UAETA,EAAA,UAAU,WAhBPA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.helper.cjs","sources":["../../src/helpers/aria.helper.ts"],"sourcesContent":["/**\n * An id reference list (`aria-describedby`, `aria-labelledby`): the given ids in order, each once,\n * empty entries dropped, `undefined` when nothing is left (an empty attribute points at nothing).\n * An entry may itself be a list (`\"a b\"`): a passed `aria-describedby` that already names the\n * control's hint does not make the hint read twice.\n */\nexport const idList = (...ids: (string | false | null | undefined)[]): string | undefined =>\n [...new Set(ids.flatMap(id => (id ? id.split(/\\s+/) : [])).filter(Boolean))].join(' ') ||\n undefined;\n"],"names":["idList","ids","id"],"mappings":"gFAMO,MAAMA,EAAS,IAAIC,IACxB,CAAC,GAAG,IAAI,IAAIA,EAAI,QAAQC,GAAOA,EAAKA,EAAG,MAAM,KAAK,EAAI,CAAA,CAAG,EAAE,OAAO,OAAO,CAAC,CAAC,EAAE,KAAK,GAAG,GACrF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An id reference list (`aria-describedby`, `aria-labelledby`): the given ids in order, each once,
|
|
3
|
+
* empty entries dropped, `undefined` when nothing is left (an empty attribute points at nothing).
|
|
4
|
+
* An entry may itself be a list (`"a b"`): a passed `aria-describedby` that already names the
|
|
5
|
+
* control's hint does not make the hint read twice.
|
|
6
|
+
*/
|
|
7
|
+
export declare const idList: (...ids: (string | false | null | undefined)[]) => string | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An id reference list (`aria-describedby`, `aria-labelledby`): the given ids in order, each once,
|
|
3
|
+
* empty entries dropped, `undefined` when nothing is left (an empty attribute points at nothing).
|
|
4
|
+
* An entry may itself be a list (`"a b"`): a passed `aria-describedby` that already names the
|
|
5
|
+
* control's hint does not make the hint read twice.
|
|
6
|
+
*/
|
|
7
|
+
export declare const idList: (...ids: (string | false | null | undefined)[]) => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.helper.js","sources":["../../src/helpers/aria.helper.ts"],"sourcesContent":["/**\n * An id reference list (`aria-describedby`, `aria-labelledby`): the given ids in order, each once,\n * empty entries dropped, `undefined` when nothing is left (an empty attribute points at nothing).\n * An entry may itself be a list (`\"a b\"`): a passed `aria-describedby` that already names the\n * control's hint does not make the hint read twice.\n */\nexport const idList = (...ids: (string | false | null | undefined)[]): string | undefined =>\n [...new Set(ids.flatMap(id => (id ? id.split(/\\s+/) : [])).filter(Boolean))].join(' ') ||\n undefined;\n"],"names":["idList","ids","id"],"mappings":"AAMO,MAAMA,IAAS,IAAIC,MACxB,CAAC,GAAG,IAAI,IAAIA,EAAI,QAAQ,CAAAC,MAAOA,IAAKA,EAAG,MAAM,KAAK,IAAI,CAAA,CAAG,EAAE,OAAO,OAAO,CAAC,CAAC,EAAE,KAAK,GAAG,KACrF;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-name.helper.cjs","sources":["../../src/helpers/class-name.helper.ts"],"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"],"names":["cx","values","result","value"],"mappings":"gFAGO,MAAMA,EAAK,IAAIC,IAAiC,CACrD,IAAIC,EAAS,GAEb,UAAWC,KAASF,EACbE,IACLD,EAASA,IAAW,GAAKC,EAAQ,GAAGD,CAAM,IAAIC,CAAK,IAGrD,OAAOD,CACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-name.helper.js","sources":["../../src/helpers/class-name.helper.ts"],"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"],"names":["cx","values","result","value"],"mappings":"AAGO,MAAMA,IAAK,IAAIC,MAAiC;AACrD,MAAIC,IAAS;AAEb,aAAWC,KAASF;AAClB,IAAKE,MACLD,IAASA,MAAW,KAAKC,IAAQ,GAAGD,CAAM,IAAIC,CAAK;AAGrD,SAAOD;AACT;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.helper.cjs","sources":["../../src/helpers/component.helper.ts"],"sourcesContent":["/**\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"],"names":["named","component","displayName"],"mappings":"gFAYO,MAAMA,EAAQ,CACnBC,EACAC,IACe,OAAO,OAAOD,EAAW,CAAE,YAAAC,CAAA,CAAa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DevTools adı — modül düzeyinde YAN ETKİ bırakmadan.
|
|
3
|
+
*
|
|
4
|
+
* ⚠ `X.displayName = 'X'` KULLANILMAZ: modül düzeyindeki özellik ataması
|
|
5
|
+
* bundler için yan etkidir ve hedefinin tüm bağımlılık zincirini ayakta tutar.
|
|
6
|
+
* Ölçüldü: yalnızca `Badge` import eden uygulama 20,7 kB indiriyordu (paketin
|
|
7
|
+
* tamamı 21,8 kB). Atama çağrıya dönüşünce `#__PURE__` işaretlenebiliyor →
|
|
8
|
+
* `Badge` 2,71 kB. Nöbetçi `.size-limit.json`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* export default memo(named(Button, 'Button')) as typeof Button;
|
|
12
|
+
*/
|
|
13
|
+
export declare const named: <TComponent extends object>(component: TComponent, displayName: string) => TComponent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DevTools adı — modül düzeyinde YAN ETKİ bırakmadan.
|
|
3
|
+
*
|
|
4
|
+
* ⚠ `X.displayName = 'X'` KULLANILMAZ: modül düzeyindeki özellik ataması
|
|
5
|
+
* bundler için yan etkidir ve hedefinin tüm bağımlılık zincirini ayakta tutar.
|
|
6
|
+
* Ölçüldü: yalnızca `Badge` import eden uygulama 20,7 kB indiriyordu (paketin
|
|
7
|
+
* tamamı 21,8 kB). Atama çağrıya dönüşünce `#__PURE__` işaretlenebiliyor →
|
|
8
|
+
* `Badge` 2,71 kB. Nöbetçi `.size-limit.json`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* export default memo(named(Button, 'Button')) as typeof Button;
|
|
12
|
+
*/
|
|
13
|
+
export declare const named: <TComponent extends object>(component: TComponent, displayName: string) => TComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.helper.js","sources":["../../src/helpers/component.helper.ts"],"sourcesContent":["/**\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"],"names":["named","component","displayName"],"mappings":"AAYO,MAAMA,IAAQ,CACnBC,GACAC,MACe,OAAO,OAAOD,GAAW,EAAE,aAAAC,EAAA,CAAa;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../constants/breakpoint.constants.cjs"),b=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),i=t=>{if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.getAttribute("contenteditable");if(e===""||e==="true"||e==="plaintext-only")return!0;const n=t.tagName;return n==="TEXTAREA"?!0:n!=="INPUT"?!1:!b.has(t.type)},u=t=>{const e=t.ownerDocument.activeElement;!t.contains(e)||!i(e)||(e.blur(),t.tabIndex=-1,t.focus({preventScroll:!0}))},m=()=>{const t=typeof document>"u"?null:document.activeElement;return()=>{t instanceof HTMLElement&&t.isConnected&&t.focus({preventScroll:!0})}},s=["a[href]","button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].map(t=>`${t}:not([inert]):not([aria-hidden="true"])`).join(", "),a=(t,e="[data-ui-close]")=>{const n=t.querySelector("[data-ui-autofocus]");if(n){n.focus({preventScroll:!0});return}const o=[...t.querySelectorAll(s)],c=o.find(d=>!d.matches(e))??o[0];if(c){c.focus({preventScroll:!0});return}t.tabIndex=-1,t.focus({preventScroll:!0})},l=(t,e,n)=>{const o=e==null?void 0:e.current;return o!=null&&o.isConnected&&t.contains(o)&&(o.focus({preventScroll:!0}),o.ownerDocument.activeElement===o)?!0:(a(t,n),!1)},f=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(p.TOUCH_MEDIA_QUERY).matches,S=(t,e,n)=>{!l(t,e,n)&&f()&&u(t)},E=(t,e)=>[...t.ownerDocument.querySelectorAll(s)].find(n=>!t.contains(n)&&!(e!=null&&e.contains(n))&&!!(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING))??null,T=t=>[...t.querySelectorAll(s)],r=[],y=({isTransient:t=!1}={})=>{const e=Symbol("ui-modal");return r.push({token:e,isTransient:t}),{token:e,pop:()=>{const n=r.findIndex(o=>o.token===e);n>=0&&r.splice(n,1)}}},h=t=>{var e;return((e=r.at(-1))==null?void 0:e.token)===t},v=({includeTransient:t=!1}={})=>t?r.length>0:r.some(e=>!e.isTransient);exports.captureFocus=m;exports.focusDialogContent=S;exports.focusFirstMeaningful=a;exports.focusInitial=l;exports.focusableWithin=T;exports.hasOpenSurface=v;exports.isKeyboardOpeningElement=i;exports.isTopModal=h;exports.isTouchPrimary=f;exports.nextFocusableAfter=E;exports.preventAutoKeyboard=u;exports.pushModal=y;
|
|
2
|
+
//# sourceMappingURL=focus.helper.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.helper.cjs","sources":["../../src/helpers/focus.helper.ts"],"sourcesContent":["import { TOUCH_MEDIA_QUERY } from '../constants/breakpoint.constants';\n\n/** Kipsel panel açılırken ekran klavyesinin kendiliğinden açılmasını engeller. */\n\n/** Odaklanınca ekran klavyesi AÇMAYAN giriş türleri. */\nconst NON_TEXT_INPUT_TYPES = new Set([\n 'button',\n 'checkbox',\n 'color',\n 'file',\n 'hidden',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n]);\n\n/** Odaklanınca mobilde ekran klavyesini açacak bir öğe mi? */\nexport const isKeyboardOpeningElement = (element: Element | null): boolean => {\n if (!(element instanceof HTMLElement)) return false;\n\n /*\n * `isContentEditable` mirasi da kapsar (duzenlenebilir bolgenin ICINDEKI oge), ama jsdom onu\n * uygulamiyor ve her zaman false donuyor\n */\n if (element.isContentEditable) return true;\n const editable = element.getAttribute('contenteditable');\n if (editable === '' || editable === 'true' || editable === 'plaintext-only') return true;\n\n const tagName = element.tagName;\n if (tagName === 'TEXTAREA') return true;\n if (tagName !== 'INPUT') return false;\n\n return !NON_TEXT_INPUT_TYPES.has((element as HTMLInputElement).type);\n};\n\n/** `showModal()` ÇAĞRILDIKTAN SONRA çağrılır. */\nexport const preventAutoKeyboard = (dialog: HTMLDialogElement): void => {\n const active = dialog.ownerDocument.activeElement;\n if (!dialog.contains(active) || !isKeyboardOpeningElement(active)) return;\n\n (active as HTMLElement).blur();\n // `<dialog>` varsayılan olarak odaklanabilir değil; odağı alabilmesi için sıra dışı bırakılır\n // (Tab ile gezinmede görünmez, `focus()` ile alınır).\n dialog.tabIndex = -1;\n dialog.focus({ preventScroll: true });\n};\n\n/**\n * ODAK GERİ DÖNÜŞÜ.\n * @returns Odağı geri veren fonksiyon.\n */\nexport const captureFocus = (): (() => void) => {\n const previous = typeof document === 'undefined' ? null : document.activeElement;\n\n return () => {\n if (!(previous instanceof HTMLElement)) return;\n\n /*\n * Oge hala BELGEDE mi: acan dugme, panel kapanirken DOM'dan kalkmis olabilir (bir satiri silen\n * onay penceresi, satirla birlikte dugmeyi de goturuyor).\n */\n if (!previous.isConnected) return;\n\n /*\n * `preventScroll` — odaklanan oge gorunum alaninin disindaysa tarayici sayfayi oraya kaydiriyor\n * ve kullanici kapattigi pencerenin yerine bambaska bir…\n */\n previous.focus({ preventScroll: true });\n };\n};\n\n/** Odaklanabilir öğelerin seçicisi — `inert` ve `disabled` olanlar hariç. */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not(:disabled)',\n 'input:not(:disabled)',\n 'select:not(:disabled)',\n 'textarea:not(:disabled)',\n '[tabindex]:not([tabindex=\"-1\"])',\n]\n .map(selector => `${selector}:not([inert]):not([aria-hidden=\"true\"])`)\n .join(', ');\n\n/**\n * Panelin İLK ANLAMLI öğesine odaklanır.\n * @param container Odak aranacak kök.\n * @param skipSelector Atlanacak öğe (varsayılan: kapatma düğmesi).\n */\nexport const focusFirstMeaningful = (\n container: HTMLElement,\n skipSelector = '[data-ui-close]',\n): void => {\n const explicit = container.querySelector<HTMLElement>('[data-ui-autofocus]');\n if (explicit) {\n explicit.focus({ preventScroll: true });\n return;\n }\n\n const candidates = [...container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)];\n const target = candidates.find(element => !element.matches(skipSelector)) ?? candidates[0];\n\n if (target) {\n target.focus({ preventScroll: true });\n return;\n }\n\n container.tabIndex = -1;\n container.focus({ preventScroll: true });\n};\n\n/** `initialFocus` prop'unun biçimi: bir `useRef` ya da `createRef` sonucu. */\nexport type FocusTarget = { readonly current: HTMLElement | null };\n\n/**\n * Açılan yüzeyin İLK odağı: verilmişse `initialFocus` (yüzeyin İÇİNDE ve belgede olmalı), yoksa\n * `focusFirstMeaningful`.\n * ⚠ React'in `autoFocus`u `showModal()` ile açılan bir `<dialog>`ın ya da konumlanana kadar gizli\n * duran bir panelin içinde ÇALIŞMAZ: React odağı kendi işleme anında verir, o an kap henüz görünür\n * değildir ve tarayıcı isteği sessizce yok sayar. Yol `initialFocus` ya da `data-ui-autofocus`.\n * @returns `initialFocus` uygulandıysa `true` (çağıran ekran klavyesi korumasını atlar).\n */\nexport const focusInitial = (\n container: HTMLElement,\n initialFocus?: FocusTarget,\n skipSelector?: string,\n): boolean => {\n const explicit = initialFocus?.current;\n if (explicit?.isConnected && container.contains(explicit)) {\n explicit.focus({ preventScroll: true });\n if (explicit.ownerDocument.activeElement === explicit) return true;\n }\n\n focusFirstMeaningful(container, skipSelector);\n return false;\n};\n\n/** Birincil işaretçi dokunmatik mi — odaklanan metin alanının ekran klavyesi açtığı cihaz. */\nexport const isTouchPrimary = (): boolean =>\n typeof window !== 'undefined' &&\n typeof window.matchMedia === 'function' &&\n window.matchMedia(TOUCH_MEDIA_QUERY).matches;\n\n/**\n * Kipsel `<dialog>`ın açılış odağı (`Modal`, `Drawer`): `focusInitial` + YALNIZCA dokunmatik cihazda\n * ekran klavyesi koruması.\n * ⚠ 2.2'ye kadar koruma HER cihazda koşuyordu: ilk alanı metin kutusu olan bir pencere masaüstünde\n * de odağı `<dialog>`ın kendisine veriyordu ve kullanıcı yazmaya başlamak için alana tıklamak\n * zorundaydı (masaüstü programı her pencerede `setTimeout(focus, 50)` ile atlatıyordu).\n */\nexport const focusDialogContent = (\n dialog: HTMLDialogElement,\n initialFocus?: FocusTarget,\n skipSelector?: string,\n): void => {\n const isExplicit = focusInitial(dialog, initialFocus, skipSelector);\n if (!isExplicit && isTouchPrimary()) preventAutoKeyboard(dialog);\n};\n\n/**\n * Belge sırasında `anchor`dan SONRA gelen ilk odaklanabilir öğe (`exclude`un içindekiler hariç).\n * Portallanmış bir panelden `Tab` ile çıkarken sıradaki durak: panel `<body>`nin sonunda durduğu\n * için tarayıcının kendi sırası odağı sayfanın dışına (adres çubuğuna) atıyordu.\n */\nexport const nextFocusableAfter = (anchor: Element, exclude?: Element | null): HTMLElement | null =>\n [...anchor.ownerDocument.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)].find(\n element =>\n !anchor.contains(element) &&\n !exclude?.contains(element) &&\n Boolean(anchor.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_FOLLOWING),\n ) ?? null;\n\n/** Kabın içindeki odaklanabilir öğeler, belge sırasıyla. */\nexport const focusableWithin = (container: ParentNode): HTMLElement[] => [\n ...container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR),\n];\n\n/**\n * KİPSEL YIĞIN — üst üste binen paneller. Sahiplik LIFO: en son açılan yüzey tuşu tüketir.\n * ⚠ Yığın yalnızca `<dialog>` tabanlı kipsel yüzeyleri DEĞİL, `Escape` ile kapanan HER yüzeyi taşır\n * (`Popover`, `Toast`, `Tooltip`). `Escape` sırası hepsi için tek: en son açılan önce kapanır.\n * ⚠ 2.3: `Toast` ve `Tooltip` GEÇİCİ (`isTransient`) kayıttır. `Escape`i yine sırayla tüketirler ama\n * klavyeyi SAHİPLENMEZLER: `hasOpenSurface()` onları saymaz. Saydığında bir bildirim ekranda durduğu\n * 4–8 saniye boyunca ⌘K ve uygulamanın kısayolları ölüydü (masaüstü programı, `hasOpenDialog()`\n * geçici çözümü).\n */\ntype StackEntry = { token: symbol; isTransient: boolean };\n\nconst modalStack: StackEntry[] = [];\n\n/** Yığına katılma seçenekleri. */\nexport type SurfaceOptions = {\n /** Klavyeyi sahiplenmeyen yüzey (bildirim, araç ipucu): `Escape` sırasında var, `hasOpenSurface()`ta yok. */\n isTransient?: boolean;\n};\n\n/** Yığına katılır; dönen fonksiyon çıkarır. */\nexport const pushModal = ({ isTransient = false }: SurfaceOptions = {}): {\n token: symbol;\n pop: () => void;\n} => {\n const token = Symbol('ui-modal');\n modalStack.push({ token, isTransient });\n\n return {\n token,\n pop: () => {\n const index = modalStack.findIndex(entry => entry.token === token);\n if (index >= 0) modalStack.splice(index, 1);\n },\n };\n};\n\n/** Verilen panel yığının EN ÜSTÜNDE mi. */\nexport const isTopModal = (token: symbol): boolean => modalStack.at(-1)?.token === token;\n\n/** `hasOpenSurface` seçenekleri. */\nexport type OpenSurfaceQuery = {\n /**\n * Geçici yüzeyleri (görünen bildirim, açık araç ipucu) de say. YALNIZCA `Escape` dinleyen kod için:\n * o tuşu bir bildirim ya da ipucu da tüketir (WCAG 1.4.13). Kısayollar bunu VERMEZ.\n */\n includeTransient?: boolean;\n};\n\n/**\n * Klavyeyi sahiplenen AÇIK bir yüzey var mı — kipsel pencere (`Modal`, `Drawer`, `BottomSheet`,\n * `ConfirmDialog`, `PromptDialog`), `CommandPalette`, odağı içine alan `Popover`.\n * ⚠ 2.3'ten beri görünen bir `Toast` ve açık bir `Tooltip` SAYILMAZ: ikisi de klavyeyi almıyor ve\n * sayıldıklarında ⌘K ve uygulama kısayolları bildirim süresince çalışmıyordu. Uygulama kısayolu\n * (⌘S, ⌘N, F2…) yalnızca `hasOpenSurface()` sorar.\n * ⚠ Sayfa düzeyinde `Escape` dinleyen her kod (sohbetin \"akışı durdur\" kısayolu gibi) İKİSİNİ BİRDEN\n * sorar ve geçicileri de sayar: `event.defaultPrevented || hasOpenSurface({ includeTransient: true })`.\n * Sormayan bir dinleyici, kullanıcı yalnızca bir yüzeyi kapatmak isterken arkadaki işi de iptal\n * ediyordu.\n * - `Popover`, `Tooltip` ve `Toast` tuşu belge düzeyindeki kendi dinleyicilerinde tüketir, işaretler\n * (`preventDefault`) ve AYNI tuş vuruşunda yığından düşer: gerçek tarayıcıda React ayrık olayın\n * güncellemesini dinleyiciler arasında boşaltır. Yüzeyin dinleyicisinden SONRA koşan kod (pencerede\n * ya da belgede sonradan eklenmiş) burada `false` görür; ona kalan kanıt `defaultPrevented`.\n * Ölçüldü (2026-10-27): yardım `Popover`ını kapatan `Escape` bir grafik seçimini de siliyordu.\n * jsdom bunu göremez: `fireEvent` betikten gönderilir, dinleyiciler arasında mikro görev\n * boşaltılmaz.\n * - Yüzeyin dinleyicisinden ÖNCE koşan kod işareti göremez ama yığın henüz düşmemiştir: `true`.\n * - `<dialog>` tabanlı kipsel yüzeyler (`Modal`, `Drawer`, `BottomSheet`, `CommandPalette`) tuş olayı\n * bittikten sonra `cancel` ile kapanır: tuş boyunca burada `true`.\n */\nexport const hasOpenSurface = ({ includeTransient = false }: OpenSurfaceQuery = {}): boolean =>\n includeTransient ? modalStack.length > 0 : modalStack.some(entry => !entry.isTransient);\n\n/** Yalnızca test içindir: modül düzeyindeki yığın testler arasında sızmamalı. */\nexport const resetModalStack = (): void => {\n modalStack.length = 0;\n};\n"],"names":["NON_TEXT_INPUT_TYPES","isKeyboardOpeningElement","element","editable","tagName","preventAutoKeyboard","dialog","active","captureFocus","previous","FOCUSABLE_SELECTOR","selector","focusFirstMeaningful","container","skipSelector","explicit","candidates","target","focusInitial","initialFocus","isTouchPrimary","TOUCH_MEDIA_QUERY","focusDialogContent","nextFocusableAfter","anchor","exclude","focusableWithin","modalStack","pushModal","isTransient","token","index","entry","isTopModal","_a","hasOpenSurface","includeTransient"],"mappings":"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"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/** Odaklanınca mobilde ekran klavyesini açacak bir öğe mi? */
|
|
2
|
+
export declare const isKeyboardOpeningElement: (element: Element | null) => boolean;
|
|
3
|
+
/** `showModal()` ÇAĞRILDIKTAN SONRA çağrılır. */
|
|
4
|
+
export declare const preventAutoKeyboard: (dialog: HTMLDialogElement) => void;
|
|
5
|
+
/**
|
|
6
|
+
* ODAK GERİ DÖNÜŞÜ.
|
|
7
|
+
* @returns Odağı geri veren fonksiyon.
|
|
8
|
+
*/
|
|
9
|
+
export declare const captureFocus: () => (() => void);
|
|
10
|
+
/**
|
|
11
|
+
* Panelin İLK ANLAMLI öğesine odaklanır.
|
|
12
|
+
* @param container Odak aranacak kök.
|
|
13
|
+
* @param skipSelector Atlanacak öğe (varsayılan: kapatma düğmesi).
|
|
14
|
+
*/
|
|
15
|
+
export declare const focusFirstMeaningful: (container: HTMLElement, skipSelector?: string) => void;
|
|
16
|
+
/** `initialFocus` prop'unun biçimi: bir `useRef` ya da `createRef` sonucu. */
|
|
17
|
+
export type FocusTarget = {
|
|
18
|
+
readonly current: HTMLElement | null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Açılan yüzeyin İLK odağı: verilmişse `initialFocus` (yüzeyin İÇİNDE ve belgede olmalı), yoksa
|
|
22
|
+
* `focusFirstMeaningful`.
|
|
23
|
+
* ⚠ React'in `autoFocus`u `showModal()` ile açılan bir `<dialog>`ın ya da konumlanana kadar gizli
|
|
24
|
+
* duran bir panelin içinde ÇALIŞMAZ: React odağı kendi işleme anında verir, o an kap henüz görünür
|
|
25
|
+
* değildir ve tarayıcı isteği sessizce yok sayar. Yol `initialFocus` ya da `data-ui-autofocus`.
|
|
26
|
+
* @returns `initialFocus` uygulandıysa `true` (çağıran ekran klavyesi korumasını atlar).
|
|
27
|
+
*/
|
|
28
|
+
export declare const focusInitial: (container: HTMLElement, initialFocus?: FocusTarget, skipSelector?: string) => boolean;
|
|
29
|
+
/** Birincil işaretçi dokunmatik mi — odaklanan metin alanının ekran klavyesi açtığı cihaz. */
|
|
30
|
+
export declare const isTouchPrimary: () => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Kipsel `<dialog>`ın açılış odağı (`Modal`, `Drawer`): `focusInitial` + YALNIZCA dokunmatik cihazda
|
|
33
|
+
* ekran klavyesi koruması.
|
|
34
|
+
* ⚠ 2.2'ye kadar koruma HER cihazda koşuyordu: ilk alanı metin kutusu olan bir pencere masaüstünde
|
|
35
|
+
* de odağı `<dialog>`ın kendisine veriyordu ve kullanıcı yazmaya başlamak için alana tıklamak
|
|
36
|
+
* zorundaydı (masaüstü programı her pencerede `setTimeout(focus, 50)` ile atlatıyordu).
|
|
37
|
+
*/
|
|
38
|
+
export declare const focusDialogContent: (dialog: HTMLDialogElement, initialFocus?: FocusTarget, skipSelector?: string) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Belge sırasında `anchor`dan SONRA gelen ilk odaklanabilir öğe (`exclude`un içindekiler hariç).
|
|
41
|
+
* Portallanmış bir panelden `Tab` ile çıkarken sıradaki durak: panel `<body>`nin sonunda durduğu
|
|
42
|
+
* için tarayıcının kendi sırası odağı sayfanın dışına (adres çubuğuna) atıyordu.
|
|
43
|
+
*/
|
|
44
|
+
export declare const nextFocusableAfter: (anchor: Element, exclude?: Element | null) => HTMLElement | null;
|
|
45
|
+
/** Kabın içindeki odaklanabilir öğeler, belge sırasıyla. */
|
|
46
|
+
export declare const focusableWithin: (container: ParentNode) => HTMLElement[];
|
|
47
|
+
/** Yığına katılma seçenekleri. */
|
|
48
|
+
export type SurfaceOptions = {
|
|
49
|
+
/** Klavyeyi sahiplenmeyen yüzey (bildirim, araç ipucu): `Escape` sırasında var, `hasOpenSurface()`ta yok. */
|
|
50
|
+
isTransient?: boolean;
|
|
51
|
+
};
|
|
52
|
+
/** Yığına katılır; dönen fonksiyon çıkarır. */
|
|
53
|
+
export declare const pushModal: ({ isTransient }?: SurfaceOptions) => {
|
|
54
|
+
token: symbol;
|
|
55
|
+
pop: () => void;
|
|
56
|
+
};
|
|
57
|
+
/** Verilen panel yığının EN ÜSTÜNDE mi. */
|
|
58
|
+
export declare const isTopModal: (token: symbol) => boolean;
|
|
59
|
+
/** `hasOpenSurface` seçenekleri. */
|
|
60
|
+
export type OpenSurfaceQuery = {
|
|
61
|
+
/**
|
|
62
|
+
* Geçici yüzeyleri (görünen bildirim, açık araç ipucu) de say. YALNIZCA `Escape` dinleyen kod için:
|
|
63
|
+
* o tuşu bir bildirim ya da ipucu da tüketir (WCAG 1.4.13). Kısayollar bunu VERMEZ.
|
|
64
|
+
*/
|
|
65
|
+
includeTransient?: boolean;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Klavyeyi sahiplenen AÇIK bir yüzey var mı — kipsel pencere (`Modal`, `Drawer`, `BottomSheet`,
|
|
69
|
+
* `ConfirmDialog`, `PromptDialog`), `CommandPalette`, odağı içine alan `Popover`.
|
|
70
|
+
* ⚠ 2.3'ten beri görünen bir `Toast` ve açık bir `Tooltip` SAYILMAZ: ikisi de klavyeyi almıyor ve
|
|
71
|
+
* sayıldıklarında ⌘K ve uygulama kısayolları bildirim süresince çalışmıyordu. Uygulama kısayolu
|
|
72
|
+
* (⌘S, ⌘N, F2…) yalnızca `hasOpenSurface()` sorar.
|
|
73
|
+
* ⚠ Sayfa düzeyinde `Escape` dinleyen her kod (sohbetin "akışı durdur" kısayolu gibi) İKİSİNİ BİRDEN
|
|
74
|
+
* sorar ve geçicileri de sayar: `event.defaultPrevented || hasOpenSurface({ includeTransient: true })`.
|
|
75
|
+
* Sormayan bir dinleyici, kullanıcı yalnızca bir yüzeyi kapatmak isterken arkadaki işi de iptal
|
|
76
|
+
* ediyordu.
|
|
77
|
+
* - `Popover`, `Tooltip` ve `Toast` tuşu belge düzeyindeki kendi dinleyicilerinde tüketir, işaretler
|
|
78
|
+
* (`preventDefault`) ve AYNI tuş vuruşunda yığından düşer: gerçek tarayıcıda React ayrık olayın
|
|
79
|
+
* güncellemesini dinleyiciler arasında boşaltır. Yüzeyin dinleyicisinden SONRA koşan kod (pencerede
|
|
80
|
+
* ya da belgede sonradan eklenmiş) burada `false` görür; ona kalan kanıt `defaultPrevented`.
|
|
81
|
+
* Ölçüldü (2026-10-27): yardım `Popover`ını kapatan `Escape` bir grafik seçimini de siliyordu.
|
|
82
|
+
* jsdom bunu göremez: `fireEvent` betikten gönderilir, dinleyiciler arasında mikro görev
|
|
83
|
+
* boşaltılmaz.
|
|
84
|
+
* - Yüzeyin dinleyicisinden ÖNCE koşan kod işareti göremez ama yığın henüz düşmemiştir: `true`.
|
|
85
|
+
* - `<dialog>` tabanlı kipsel yüzeyler (`Modal`, `Drawer`, `BottomSheet`, `CommandPalette`) tuş olayı
|
|
86
|
+
* bittikten sonra `cancel` ile kapanır: tuş boyunca burada `true`.
|
|
87
|
+
*/
|
|
88
|
+
export declare const hasOpenSurface: ({ includeTransient }?: OpenSurfaceQuery) => boolean;
|
|
89
|
+
/** Yalnızca test içindir: modül düzeyindeki yığın testler arasında sızmamalı. */
|
|
90
|
+
export declare const resetModalStack: () => void;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/** Odaklanınca mobilde ekran klavyesini açacak bir öğe mi? */
|
|
2
|
+
export declare const isKeyboardOpeningElement: (element: Element | null) => boolean;
|
|
3
|
+
/** `showModal()` ÇAĞRILDIKTAN SONRA çağrılır. */
|
|
4
|
+
export declare const preventAutoKeyboard: (dialog: HTMLDialogElement) => void;
|
|
5
|
+
/**
|
|
6
|
+
* ODAK GERİ DÖNÜŞÜ.
|
|
7
|
+
* @returns Odağı geri veren fonksiyon.
|
|
8
|
+
*/
|
|
9
|
+
export declare const captureFocus: () => (() => void);
|
|
10
|
+
/**
|
|
11
|
+
* Panelin İLK ANLAMLI öğesine odaklanır.
|
|
12
|
+
* @param container Odak aranacak kök.
|
|
13
|
+
* @param skipSelector Atlanacak öğe (varsayılan: kapatma düğmesi).
|
|
14
|
+
*/
|
|
15
|
+
export declare const focusFirstMeaningful: (container: HTMLElement, skipSelector?: string) => void;
|
|
16
|
+
/** `initialFocus` prop'unun biçimi: bir `useRef` ya da `createRef` sonucu. */
|
|
17
|
+
export type FocusTarget = {
|
|
18
|
+
readonly current: HTMLElement | null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Açılan yüzeyin İLK odağı: verilmişse `initialFocus` (yüzeyin İÇİNDE ve belgede olmalı), yoksa
|
|
22
|
+
* `focusFirstMeaningful`.
|
|
23
|
+
* ⚠ React'in `autoFocus`u `showModal()` ile açılan bir `<dialog>`ın ya da konumlanana kadar gizli
|
|
24
|
+
* duran bir panelin içinde ÇALIŞMAZ: React odağı kendi işleme anında verir, o an kap henüz görünür
|
|
25
|
+
* değildir ve tarayıcı isteği sessizce yok sayar. Yol `initialFocus` ya da `data-ui-autofocus`.
|
|
26
|
+
* @returns `initialFocus` uygulandıysa `true` (çağıran ekran klavyesi korumasını atlar).
|
|
27
|
+
*/
|
|
28
|
+
export declare const focusInitial: (container: HTMLElement, initialFocus?: FocusTarget, skipSelector?: string) => boolean;
|
|
29
|
+
/** Birincil işaretçi dokunmatik mi — odaklanan metin alanının ekran klavyesi açtığı cihaz. */
|
|
30
|
+
export declare const isTouchPrimary: () => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Kipsel `<dialog>`ın açılış odağı (`Modal`, `Drawer`): `focusInitial` + YALNIZCA dokunmatik cihazda
|
|
33
|
+
* ekran klavyesi koruması.
|
|
34
|
+
* ⚠ 2.2'ye kadar koruma HER cihazda koşuyordu: ilk alanı metin kutusu olan bir pencere masaüstünde
|
|
35
|
+
* de odağı `<dialog>`ın kendisine veriyordu ve kullanıcı yazmaya başlamak için alana tıklamak
|
|
36
|
+
* zorundaydı (masaüstü programı her pencerede `setTimeout(focus, 50)` ile atlatıyordu).
|
|
37
|
+
*/
|
|
38
|
+
export declare const focusDialogContent: (dialog: HTMLDialogElement, initialFocus?: FocusTarget, skipSelector?: string) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Belge sırasında `anchor`dan SONRA gelen ilk odaklanabilir öğe (`exclude`un içindekiler hariç).
|
|
41
|
+
* Portallanmış bir panelden `Tab` ile çıkarken sıradaki durak: panel `<body>`nin sonunda durduğu
|
|
42
|
+
* için tarayıcının kendi sırası odağı sayfanın dışına (adres çubuğuna) atıyordu.
|
|
43
|
+
*/
|
|
44
|
+
export declare const nextFocusableAfter: (anchor: Element, exclude?: Element | null) => HTMLElement | null;
|
|
45
|
+
/** Kabın içindeki odaklanabilir öğeler, belge sırasıyla. */
|
|
46
|
+
export declare const focusableWithin: (container: ParentNode) => HTMLElement[];
|
|
47
|
+
/** Yığına katılma seçenekleri. */
|
|
48
|
+
export type SurfaceOptions = {
|
|
49
|
+
/** Klavyeyi sahiplenmeyen yüzey (bildirim, araç ipucu): `Escape` sırasında var, `hasOpenSurface()`ta yok. */
|
|
50
|
+
isTransient?: boolean;
|
|
51
|
+
};
|
|
52
|
+
/** Yığına katılır; dönen fonksiyon çıkarır. */
|
|
53
|
+
export declare const pushModal: ({ isTransient }?: SurfaceOptions) => {
|
|
54
|
+
token: symbol;
|
|
55
|
+
pop: () => void;
|
|
56
|
+
};
|
|
57
|
+
/** Verilen panel yığının EN ÜSTÜNDE mi. */
|
|
58
|
+
export declare const isTopModal: (token: symbol) => boolean;
|
|
59
|
+
/** `hasOpenSurface` seçenekleri. */
|
|
60
|
+
export type OpenSurfaceQuery = {
|
|
61
|
+
/**
|
|
62
|
+
* Geçici yüzeyleri (görünen bildirim, açık araç ipucu) de say. YALNIZCA `Escape` dinleyen kod için:
|
|
63
|
+
* o tuşu bir bildirim ya da ipucu da tüketir (WCAG 1.4.13). Kısayollar bunu VERMEZ.
|
|
64
|
+
*/
|
|
65
|
+
includeTransient?: boolean;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Klavyeyi sahiplenen AÇIK bir yüzey var mı — kipsel pencere (`Modal`, `Drawer`, `BottomSheet`,
|
|
69
|
+
* `ConfirmDialog`, `PromptDialog`), `CommandPalette`, odağı içine alan `Popover`.
|
|
70
|
+
* ⚠ 2.3'ten beri görünen bir `Toast` ve açık bir `Tooltip` SAYILMAZ: ikisi de klavyeyi almıyor ve
|
|
71
|
+
* sayıldıklarında ⌘K ve uygulama kısayolları bildirim süresince çalışmıyordu. Uygulama kısayolu
|
|
72
|
+
* (⌘S, ⌘N, F2…) yalnızca `hasOpenSurface()` sorar.
|
|
73
|
+
* ⚠ Sayfa düzeyinde `Escape` dinleyen her kod (sohbetin "akışı durdur" kısayolu gibi) İKİSİNİ BİRDEN
|
|
74
|
+
* sorar ve geçicileri de sayar: `event.defaultPrevented || hasOpenSurface({ includeTransient: true })`.
|
|
75
|
+
* Sormayan bir dinleyici, kullanıcı yalnızca bir yüzeyi kapatmak isterken arkadaki işi de iptal
|
|
76
|
+
* ediyordu.
|
|
77
|
+
* - `Popover`, `Tooltip` ve `Toast` tuşu belge düzeyindeki kendi dinleyicilerinde tüketir, işaretler
|
|
78
|
+
* (`preventDefault`) ve AYNI tuş vuruşunda yığından düşer: gerçek tarayıcıda React ayrık olayın
|
|
79
|
+
* güncellemesini dinleyiciler arasında boşaltır. Yüzeyin dinleyicisinden SONRA koşan kod (pencerede
|
|
80
|
+
* ya da belgede sonradan eklenmiş) burada `false` görür; ona kalan kanıt `defaultPrevented`.
|
|
81
|
+
* Ölçüldü (2026-10-27): yardım `Popover`ını kapatan `Escape` bir grafik seçimini de siliyordu.
|
|
82
|
+
* jsdom bunu göremez: `fireEvent` betikten gönderilir, dinleyiciler arasında mikro görev
|
|
83
|
+
* boşaltılmaz.
|
|
84
|
+
* - Yüzeyin dinleyicisinden ÖNCE koşan kod işareti göremez ama yığın henüz düşmemiştir: `true`.
|
|
85
|
+
* - `<dialog>` tabanlı kipsel yüzeyler (`Modal`, `Drawer`, `BottomSheet`, `CommandPalette`) tuş olayı
|
|
86
|
+
* bittikten sonra `cancel` ile kapanır: tuş boyunca burada `true`.
|
|
87
|
+
*/
|
|
88
|
+
export declare const hasOpenSurface: ({ includeTransient }?: OpenSurfaceQuery) => boolean;
|
|
89
|
+
/** Yalnızca test içindir: modül düzeyindeki yığın testler arasında sızmamalı. */
|
|
90
|
+
export declare const resetModalStack: () => void;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { TOUCH_MEDIA_QUERY as u } from "../constants/breakpoint.constants.js";
|
|
2
|
+
const a = /* @__PURE__ */ new Set([
|
|
3
|
+
"button",
|
|
4
|
+
"checkbox",
|
|
5
|
+
"color",
|
|
6
|
+
"file",
|
|
7
|
+
"hidden",
|
|
8
|
+
"image",
|
|
9
|
+
"radio",
|
|
10
|
+
"range",
|
|
11
|
+
"reset",
|
|
12
|
+
"submit"
|
|
13
|
+
]), l = (t) => {
|
|
14
|
+
if (!(t instanceof HTMLElement)) return !1;
|
|
15
|
+
if (t.isContentEditable) return !0;
|
|
16
|
+
const e = t.getAttribute("contenteditable");
|
|
17
|
+
if (e === "" || e === "true" || e === "plaintext-only") return !0;
|
|
18
|
+
const n = t.tagName;
|
|
19
|
+
return n === "TEXTAREA" ? !0 : n !== "INPUT" ? !1 : !a.has(t.type);
|
|
20
|
+
}, f = (t) => {
|
|
21
|
+
const e = t.ownerDocument.activeElement;
|
|
22
|
+
!t.contains(e) || !l(e) || (e.blur(), t.tabIndex = -1, t.focus({ preventScroll: !0 }));
|
|
23
|
+
}, E = () => {
|
|
24
|
+
const t = typeof document > "u" ? null : document.activeElement;
|
|
25
|
+
return () => {
|
|
26
|
+
t instanceof HTMLElement && t.isConnected && t.focus({ preventScroll: !0 });
|
|
27
|
+
};
|
|
28
|
+
}, s = [
|
|
29
|
+
"a[href]",
|
|
30
|
+
"button:not(:disabled)",
|
|
31
|
+
"input:not(:disabled)",
|
|
32
|
+
"select:not(:disabled)",
|
|
33
|
+
"textarea:not(:disabled)",
|
|
34
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
35
|
+
].map((t) => `${t}:not([inert]):not([aria-hidden="true"])`).join(", "), d = (t, e = "[data-ui-close]") => {
|
|
36
|
+
const n = t.querySelector("[data-ui-autofocus]");
|
|
37
|
+
if (n) {
|
|
38
|
+
n.focus({ preventScroll: !0 });
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const o = [...t.querySelectorAll(s)], c = o.find((i) => !i.matches(e)) ?? o[0];
|
|
42
|
+
if (c) {
|
|
43
|
+
c.focus({ preventScroll: !0 });
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
t.tabIndex = -1, t.focus({ preventScroll: !0 });
|
|
47
|
+
}, p = (t, e, n) => {
|
|
48
|
+
const o = e == null ? void 0 : e.current;
|
|
49
|
+
return o != null && o.isConnected && t.contains(o) && (o.focus({ preventScroll: !0 }), o.ownerDocument.activeElement === o) ? !0 : (d(t, n), !1);
|
|
50
|
+
}, m = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(u).matches, S = (t, e, n) => {
|
|
51
|
+
!p(t, e, n) && m() && f(t);
|
|
52
|
+
}, T = (t, e) => [...t.ownerDocument.querySelectorAll(s)].find(
|
|
53
|
+
(n) => !t.contains(n) && !(e != null && e.contains(n)) && !!(t.compareDocumentPosition(n) & Node.DOCUMENT_POSITION_FOLLOWING)
|
|
54
|
+
) ?? null, h = (t) => [
|
|
55
|
+
...t.querySelectorAll(s)
|
|
56
|
+
], r = [], y = ({ isTransient: t = !1 } = {}) => {
|
|
57
|
+
const e = Symbol("ui-modal");
|
|
58
|
+
return r.push({ token: e, isTransient: t }), {
|
|
59
|
+
token: e,
|
|
60
|
+
pop: () => {
|
|
61
|
+
const n = r.findIndex((o) => o.token === e);
|
|
62
|
+
n >= 0 && r.splice(n, 1);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}, v = (t) => {
|
|
66
|
+
var e;
|
|
67
|
+
return ((e = r.at(-1)) == null ? void 0 : e.token) === t;
|
|
68
|
+
}, O = ({ includeTransient: t = !1 } = {}) => t ? r.length > 0 : r.some((e) => !e.isTransient);
|
|
69
|
+
export {
|
|
70
|
+
E as captureFocus,
|
|
71
|
+
S as focusDialogContent,
|
|
72
|
+
d as focusFirstMeaningful,
|
|
73
|
+
p as focusInitial,
|
|
74
|
+
h as focusableWithin,
|
|
75
|
+
O as hasOpenSurface,
|
|
76
|
+
l as isKeyboardOpeningElement,
|
|
77
|
+
v as isTopModal,
|
|
78
|
+
m as isTouchPrimary,
|
|
79
|
+
T as nextFocusableAfter,
|
|
80
|
+
f as preventAutoKeyboard,
|
|
81
|
+
y as pushModal
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=focus.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.helper.js","sources":["../../src/helpers/focus.helper.ts"],"sourcesContent":["import { TOUCH_MEDIA_QUERY } from '../constants/breakpoint.constants';\n\n/** Kipsel panel açılırken ekran klavyesinin kendiliğinden açılmasını engeller. */\n\n/** Odaklanınca ekran klavyesi AÇMAYAN giriş türleri. */\nconst NON_TEXT_INPUT_TYPES = new Set([\n 'button',\n 'checkbox',\n 'color',\n 'file',\n 'hidden',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n]);\n\n/** Odaklanınca mobilde ekran klavyesini açacak bir öğe mi? */\nexport const isKeyboardOpeningElement = (element: Element | null): boolean => {\n if (!(element instanceof HTMLElement)) return false;\n\n /*\n * `isContentEditable` mirasi da kapsar (duzenlenebilir bolgenin ICINDEKI oge), ama jsdom onu\n * uygulamiyor ve her zaman false donuyor\n */\n if (element.isContentEditable) return true;\n const editable = element.getAttribute('contenteditable');\n if (editable === '' || editable === 'true' || editable === 'plaintext-only') return true;\n\n const tagName = element.tagName;\n if (tagName === 'TEXTAREA') return true;\n if (tagName !== 'INPUT') return false;\n\n return !NON_TEXT_INPUT_TYPES.has((element as HTMLInputElement).type);\n};\n\n/** `showModal()` ÇAĞRILDIKTAN SONRA çağrılır. */\nexport const preventAutoKeyboard = (dialog: HTMLDialogElement): void => {\n const active = dialog.ownerDocument.activeElement;\n if (!dialog.contains(active) || !isKeyboardOpeningElement(active)) return;\n\n (active as HTMLElement).blur();\n // `<dialog>` varsayılan olarak odaklanabilir değil; odağı alabilmesi için sıra dışı bırakılır\n // (Tab ile gezinmede görünmez, `focus()` ile alınır).\n dialog.tabIndex = -1;\n dialog.focus({ preventScroll: true });\n};\n\n/**\n * ODAK GERİ DÖNÜŞÜ.\n * @returns Odağı geri veren fonksiyon.\n */\nexport const captureFocus = (): (() => void) => {\n const previous = typeof document === 'undefined' ? null : document.activeElement;\n\n return () => {\n if (!(previous instanceof HTMLElement)) return;\n\n /*\n * Oge hala BELGEDE mi: acan dugme, panel kapanirken DOM'dan kalkmis olabilir (bir satiri silen\n * onay penceresi, satirla birlikte dugmeyi de goturuyor).\n */\n if (!previous.isConnected) return;\n\n /*\n * `preventScroll` — odaklanan oge gorunum alaninin disindaysa tarayici sayfayi oraya kaydiriyor\n * ve kullanici kapattigi pencerenin yerine bambaska bir…\n */\n previous.focus({ preventScroll: true });\n };\n};\n\n/** Odaklanabilir öğelerin seçicisi — `inert` ve `disabled` olanlar hariç. */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not(:disabled)',\n 'input:not(:disabled)',\n 'select:not(:disabled)',\n 'textarea:not(:disabled)',\n '[tabindex]:not([tabindex=\"-1\"])',\n]\n .map(selector => `${selector}:not([inert]):not([aria-hidden=\"true\"])`)\n .join(', ');\n\n/**\n * Panelin İLK ANLAMLI öğesine odaklanır.\n * @param container Odak aranacak kök.\n * @param skipSelector Atlanacak öğe (varsayılan: kapatma düğmesi).\n */\nexport const focusFirstMeaningful = (\n container: HTMLElement,\n skipSelector = '[data-ui-close]',\n): void => {\n const explicit = container.querySelector<HTMLElement>('[data-ui-autofocus]');\n if (explicit) {\n explicit.focus({ preventScroll: true });\n return;\n }\n\n const candidates = [...container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)];\n const target = candidates.find(element => !element.matches(skipSelector)) ?? candidates[0];\n\n if (target) {\n target.focus({ preventScroll: true });\n return;\n }\n\n container.tabIndex = -1;\n container.focus({ preventScroll: true });\n};\n\n/** `initialFocus` prop'unun biçimi: bir `useRef` ya da `createRef` sonucu. */\nexport type FocusTarget = { readonly current: HTMLElement | null };\n\n/**\n * Açılan yüzeyin İLK odağı: verilmişse `initialFocus` (yüzeyin İÇİNDE ve belgede olmalı), yoksa\n * `focusFirstMeaningful`.\n * ⚠ React'in `autoFocus`u `showModal()` ile açılan bir `<dialog>`ın ya da konumlanana kadar gizli\n * duran bir panelin içinde ÇALIŞMAZ: React odağı kendi işleme anında verir, o an kap henüz görünür\n * değildir ve tarayıcı isteği sessizce yok sayar. Yol `initialFocus` ya da `data-ui-autofocus`.\n * @returns `initialFocus` uygulandıysa `true` (çağıran ekran klavyesi korumasını atlar).\n */\nexport const focusInitial = (\n container: HTMLElement,\n initialFocus?: FocusTarget,\n skipSelector?: string,\n): boolean => {\n const explicit = initialFocus?.current;\n if (explicit?.isConnected && container.contains(explicit)) {\n explicit.focus({ preventScroll: true });\n if (explicit.ownerDocument.activeElement === explicit) return true;\n }\n\n focusFirstMeaningful(container, skipSelector);\n return false;\n};\n\n/** Birincil işaretçi dokunmatik mi — odaklanan metin alanının ekran klavyesi açtığı cihaz. */\nexport const isTouchPrimary = (): boolean =>\n typeof window !== 'undefined' &&\n typeof window.matchMedia === 'function' &&\n window.matchMedia(TOUCH_MEDIA_QUERY).matches;\n\n/**\n * Kipsel `<dialog>`ın açılış odağı (`Modal`, `Drawer`): `focusInitial` + YALNIZCA dokunmatik cihazda\n * ekran klavyesi koruması.\n * ⚠ 2.2'ye kadar koruma HER cihazda koşuyordu: ilk alanı metin kutusu olan bir pencere masaüstünde\n * de odağı `<dialog>`ın kendisine veriyordu ve kullanıcı yazmaya başlamak için alana tıklamak\n * zorundaydı (masaüstü programı her pencerede `setTimeout(focus, 50)` ile atlatıyordu).\n */\nexport const focusDialogContent = (\n dialog: HTMLDialogElement,\n initialFocus?: FocusTarget,\n skipSelector?: string,\n): void => {\n const isExplicit = focusInitial(dialog, initialFocus, skipSelector);\n if (!isExplicit && isTouchPrimary()) preventAutoKeyboard(dialog);\n};\n\n/**\n * Belge sırasında `anchor`dan SONRA gelen ilk odaklanabilir öğe (`exclude`un içindekiler hariç).\n * Portallanmış bir panelden `Tab` ile çıkarken sıradaki durak: panel `<body>`nin sonunda durduğu\n * için tarayıcının kendi sırası odağı sayfanın dışına (adres çubuğuna) atıyordu.\n */\nexport const nextFocusableAfter = (anchor: Element, exclude?: Element | null): HTMLElement | null =>\n [...anchor.ownerDocument.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)].find(\n element =>\n !anchor.contains(element) &&\n !exclude?.contains(element) &&\n Boolean(anchor.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_FOLLOWING),\n ) ?? null;\n\n/** Kabın içindeki odaklanabilir öğeler, belge sırasıyla. */\nexport const focusableWithin = (container: ParentNode): HTMLElement[] => [\n ...container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR),\n];\n\n/**\n * KİPSEL YIĞIN — üst üste binen paneller. Sahiplik LIFO: en son açılan yüzey tuşu tüketir.\n * ⚠ Yığın yalnızca `<dialog>` tabanlı kipsel yüzeyleri DEĞİL, `Escape` ile kapanan HER yüzeyi taşır\n * (`Popover`, `Toast`, `Tooltip`). `Escape` sırası hepsi için tek: en son açılan önce kapanır.\n * ⚠ 2.3: `Toast` ve `Tooltip` GEÇİCİ (`isTransient`) kayıttır. `Escape`i yine sırayla tüketirler ama\n * klavyeyi SAHİPLENMEZLER: `hasOpenSurface()` onları saymaz. Saydığında bir bildirim ekranda durduğu\n * 4–8 saniye boyunca ⌘K ve uygulamanın kısayolları ölüydü (masaüstü programı, `hasOpenDialog()`\n * geçici çözümü).\n */\ntype StackEntry = { token: symbol; isTransient: boolean };\n\nconst modalStack: StackEntry[] = [];\n\n/** Yığına katılma seçenekleri. */\nexport type SurfaceOptions = {\n /** Klavyeyi sahiplenmeyen yüzey (bildirim, araç ipucu): `Escape` sırasında var, `hasOpenSurface()`ta yok. */\n isTransient?: boolean;\n};\n\n/** Yığına katılır; dönen fonksiyon çıkarır. */\nexport const pushModal = ({ isTransient = false }: SurfaceOptions = {}): {\n token: symbol;\n pop: () => void;\n} => {\n const token = Symbol('ui-modal');\n modalStack.push({ token, isTransient });\n\n return {\n token,\n pop: () => {\n const index = modalStack.findIndex(entry => entry.token === token);\n if (index >= 0) modalStack.splice(index, 1);\n },\n };\n};\n\n/** Verilen panel yığının EN ÜSTÜNDE mi. */\nexport const isTopModal = (token: symbol): boolean => modalStack.at(-1)?.token === token;\n\n/** `hasOpenSurface` seçenekleri. */\nexport type OpenSurfaceQuery = {\n /**\n * Geçici yüzeyleri (görünen bildirim, açık araç ipucu) de say. YALNIZCA `Escape` dinleyen kod için:\n * o tuşu bir bildirim ya da ipucu da tüketir (WCAG 1.4.13). Kısayollar bunu VERMEZ.\n */\n includeTransient?: boolean;\n};\n\n/**\n * Klavyeyi sahiplenen AÇIK bir yüzey var mı — kipsel pencere (`Modal`, `Drawer`, `BottomSheet`,\n * `ConfirmDialog`, `PromptDialog`), `CommandPalette`, odağı içine alan `Popover`.\n * ⚠ 2.3'ten beri görünen bir `Toast` ve açık bir `Tooltip` SAYILMAZ: ikisi de klavyeyi almıyor ve\n * sayıldıklarında ⌘K ve uygulama kısayolları bildirim süresince çalışmıyordu. Uygulama kısayolu\n * (⌘S, ⌘N, F2…) yalnızca `hasOpenSurface()` sorar.\n * ⚠ Sayfa düzeyinde `Escape` dinleyen her kod (sohbetin \"akışı durdur\" kısayolu gibi) İKİSİNİ BİRDEN\n * sorar ve geçicileri de sayar: `event.defaultPrevented || hasOpenSurface({ includeTransient: true })`.\n * Sormayan bir dinleyici, kullanıcı yalnızca bir yüzeyi kapatmak isterken arkadaki işi de iptal\n * ediyordu.\n * - `Popover`, `Tooltip` ve `Toast` tuşu belge düzeyindeki kendi dinleyicilerinde tüketir, işaretler\n * (`preventDefault`) ve AYNI tuş vuruşunda yığından düşer: gerçek tarayıcıda React ayrık olayın\n * güncellemesini dinleyiciler arasında boşaltır. Yüzeyin dinleyicisinden SONRA koşan kod (pencerede\n * ya da belgede sonradan eklenmiş) burada `false` görür; ona kalan kanıt `defaultPrevented`.\n * Ölçüldü (2026-10-27): yardım `Popover`ını kapatan `Escape` bir grafik seçimini de siliyordu.\n * jsdom bunu göremez: `fireEvent` betikten gönderilir, dinleyiciler arasında mikro görev\n * boşaltılmaz.\n * - Yüzeyin dinleyicisinden ÖNCE koşan kod işareti göremez ama yığın henüz düşmemiştir: `true`.\n * - `<dialog>` tabanlı kipsel yüzeyler (`Modal`, `Drawer`, `BottomSheet`, `CommandPalette`) tuş olayı\n * bittikten sonra `cancel` ile kapanır: tuş boyunca burada `true`.\n */\nexport const hasOpenSurface = ({ includeTransient = false }: OpenSurfaceQuery = {}): boolean =>\n includeTransient ? modalStack.length > 0 : modalStack.some(entry => !entry.isTransient);\n\n/** Yalnızca test içindir: modül düzeyindeki yığın testler arasında sızmamalı. */\nexport const resetModalStack = (): void => {\n modalStack.length = 0;\n};\n"],"names":["NON_TEXT_INPUT_TYPES","isKeyboardOpeningElement","element","editable","tagName","preventAutoKeyboard","dialog","active","captureFocus","previous","FOCUSABLE_SELECTOR","selector","focusFirstMeaningful","container","skipSelector","explicit","candidates","target","focusInitial","initialFocus","isTouchPrimary","TOUCH_MEDIA_QUERY","focusDialogContent","nextFocusableAfter","anchor","exclude","focusableWithin","modalStack","pushModal","isTransient","token","index","entry","isTopModal","_a","hasOpenSurface","includeTransient"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=new Set,a=(e,...r)=>{for(const o of r)if(o!==void 0)return o;return process.env.NODE_ENV!=="production"&&!n.has(e)&&(n.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.`)),""},t=(e,r,...o)=>r?r(...o):a(e);exports.resolveFormatter=t;exports.resolveLabel=a;
|
|
2
|
+
//# sourceMappingURL=label.helper.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.helper.cjs","sources":["../../src/helpers/label.helper.ts"],"sourcesContent":["/** 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"],"names":["warned","resolveLabel","key","values","value","resolveFormatter","formatter","args"],"mappings":"gFAKA,MAAMA,MAAa,IAUNC,EAAe,CAACC,KAAgBC,IAA2C,CACtF,UAAWC,KAASD,EAAQ,GAAIC,IAAU,OAAW,OAAOA,EAE5D,OAAI,QAAQ,IAAI,WAAa,cAAgB,CAACJ,EAAO,IAAIE,CAAG,IAC1DF,EAAO,IAAIE,CAAG,EACd,QAAQ,MACN,kCAAkCA,CAAG,kIAAA,GAMlC,EACT,EAGaG,EAAmB,CAC9BH,EACAI,KACGC,IAECD,EAAkBA,EAAU,GAAGC,CAAI,EAEhCN,EAAaC,CAAG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Formatter } from '../types/theme.type.cjs';
|
|
2
|
+
/** Uyarı durumu testler arasında sızmamalı; her test kendi durumundan başlar. */
|
|
3
|
+
export declare const resetLabelWarnings: () => void;
|
|
4
|
+
/**
|
|
5
|
+
* Verilen metni çözer.
|
|
6
|
+
* @param key Uyarıda gösterilecek yol (`Modal.closeLabel`).
|
|
7
|
+
* @param values Öncelik sırasına göre adaylar: prop önce, config sonra.
|
|
8
|
+
*/
|
|
9
|
+
export declare const resolveLabel: (key: string, ...values: (string | undefined)[]) => string;
|
|
10
|
+
/** Biçimlendirici çözümü — değere bağlı metinler için. */
|
|
11
|
+
export declare const resolveFormatter: <TArgs extends unknown[]>(key: string, formatter: Formatter<TArgs> | undefined, ...args: TArgs) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Formatter } from '../types/theme.type.js';
|
|
2
|
+
/** Uyarı durumu testler arasında sızmamalı; her test kendi durumundan başlar. */
|
|
3
|
+
export declare const resetLabelWarnings: () => void;
|
|
4
|
+
/**
|
|
5
|
+
* Verilen metni çözer.
|
|
6
|
+
* @param key Uyarıda gösterilecek yol (`Modal.closeLabel`).
|
|
7
|
+
* @param values Öncelik sırasına göre adaylar: prop önce, config sonra.
|
|
8
|
+
*/
|
|
9
|
+
export declare const resolveLabel: (key: string, ...values: (string | undefined)[]) => string;
|
|
10
|
+
/** Biçimlendirici çözümü — değere bağlı metinler için. */
|
|
11
|
+
export declare const resolveFormatter: <TArgs extends unknown[]>(key: string, formatter: Formatter<TArgs> | undefined, ...args: TArgs) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const o = /* @__PURE__ */ new Set(), a = (r, ...e) => {
|
|
2
|
+
for (const n of e) if (n !== void 0) return n;
|
|
3
|
+
return process.env.NODE_ENV !== "production" && !o.has(r) && (o.add(r), console.error(
|
|
4
|
+
`[@handijitcom/ui] Eksik metin: ${r}. 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.`
|
|
5
|
+
)), "";
|
|
6
|
+
}, i = (r, e, ...n) => e ? e(...n) : a(r);
|
|
7
|
+
export {
|
|
8
|
+
i as resolveFormatter,
|
|
9
|
+
a as resolveLabel
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=label.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.helper.js","sources":["../../src/helpers/label.helper.ts"],"sourcesContent":["/** 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"],"names":["warned","resolveLabel","key","values","value","resolveFormatter","formatter","args"],"mappings":"AAKA,MAAMA,wBAAa,IAAA,GAUNC,IAAe,CAACC,MAAgBC,MAA2C;AACtF,aAAWC,KAASD,EAAQ,KAAIC,MAAU,OAAW,QAAOA;AAE5D,SAAI,QAAQ,IAAI,aAAa,gBAAgB,CAACJ,EAAO,IAAIE,CAAG,MAC1DF,EAAO,IAAIE,CAAG,GACd,QAAQ;AAAA,IACN,kCAAkCA,CAAG;AAAA,EAAA,IAMlC;AACT,GAGaG,IAAmB,CAC9BH,GACAI,MACGC,MAECD,IAAkBA,EAAU,GAAGC,CAAI,IAEhCN,EAAaC,CAAG;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=t=>{var e;const o=((e=t==null?void 0:t.closest)==null?void 0:e.call(t,"dialog"))??null;return o&&o.isConnected?{container:o,needsTopLayer:s(o)}:{container:document.body,needsTopLayer:!1}},s=t=>{try{return t.matches(":modal")}catch{return t.hasAttribute("open")}},i={margin:0,right:"auto",bottom:"auto"},n=t=>{if(!t||typeof t.showPopover!="function")return()=>{};try{t.showPopover()}catch{return()=>{}}return()=>{try{t.isConnected&&t.hidePopover()}catch{}}};exports.POPOVER_RESET=i;exports.resolvePortalTarget=r;exports.showTopLayer=n;
|
|
2
|
+
//# sourceMappingURL=portal.helper.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal.helper.cjs","sources":["../../src/helpers/portal.helper.ts"],"sourcesContent":["/**\n * Portal hedefi çözümü — üst katman (top layer) farkındalığıyla.\n * ⚠ `createPortal(..., document.body)` TEK BAŞINA YANLIŞ. `<dialog>.showModal()` elemanı\n * tarayıcının **üst katmanına** taşır ve üst katman…\n */\n\n/** Portal hedefi ve o hedefte üst katmana çıkmanın gerekip gerekmediği. */\nexport type PortalTarget = {\n container: HTMLElement;\n /** `true` ise yüzey `popover=\"manual\"` taşımalı ve `showPopover()` çağırmalı. */\n needsTopLayer: boolean;\n};\n\n/**\n * `anchor`ın en yakın açık `<dialog>` atası varsa oraya, yoksa `document.body`e.\n * ⚠ `dialog[open]` yerine `:modal` denenmedi: `show()` ile açılan modalsız bir dialog üst katmana\n * GİRMEZ, ama içine portallamak yine de…\n */\nexport const resolvePortalTarget = (anchor: Element | null | undefined): PortalTarget => {\n const dialog = anchor?.closest?.('dialog') ?? null;\n\n if (dialog && dialog.isConnected) {\n return { container: dialog, needsTopLayer: isTopLayerDialog(dialog) };\n }\n\n return { container: document.body, needsTopLayer: false };\n};\n\n/**\n * Dialog üst katmanda mı — yani `showModal()` ile mi açıldı.\n * ⚠ `:modal` bazı ortamlarda (jsdom) desteklenmiyor ve `matches` fırlatıyor\n */\nconst isTopLayerDialog = (dialog: Element): boolean => {\n try {\n return dialog.matches(':modal');\n } catch {\n return dialog.hasAttribute('open');\n }\n};\n\n/**\n * Üst katman yüzeyini gösterir; temizleyiciyi döndürür.\n * ⚠ UA stil sayfası `[popover]`a `inset: 0` ve `margin: auto` veriyor.\n */\nexport const POPOVER_RESET = {\n margin: 0,\n right: 'auto',\n bottom: 'auto',\n} as const;\n\n/*\n * Yenilemeyen tek şey satır içi stilin YAZMADIĞI kutu özellikleri: `usePositioning` yalnızca\n * `top`/`left` üretiyor, dolayısıyla UA'nın `inset: 0` +…\n * ⚠ SIFIRLAMA BİLİNÇLİ OLARAK ÜÇ ÖZELLİK.\n */\n\n/** `showPopover()` çağırır ve kapatma fonksiyonunu döndürür. */\nexport const showTopLayer = (element: HTMLElement | null): (() => void) => {\n if (!element || typeof element.showPopover !== 'function') return () => {};\n\n try {\n element.showPopover();\n } catch {\n /* Zaten görünürse veya eleman bağlı değilse: yapacak bir şey yok. */\n return () => {};\n }\n\n return () => {\n try {\n if (element.isConnected) element.hidePopover();\n } catch {\n /* Kapanış sırasında eleman zaten sökülmüş olabilir. */\n }\n };\n};\n"],"names":["resolvePortalTarget","anchor","dialog","_a","isTopLayerDialog","POPOVER_RESET","showTopLayer","element"],"mappings":"gFAkBO,MAAMA,EAAuBC,GAAqD,OACvF,MAAMC,IAASC,EAAAF,GAAA,YAAAA,EAAQ,UAAR,YAAAE,EAAA,KAAAF,EAAkB,YAAa,KAE9C,OAAIC,GAAUA,EAAO,YACZ,CAAE,UAAWA,EAAQ,cAAeE,EAAiBF,CAAM,CAAA,EAG7D,CAAE,UAAW,SAAS,KAAM,cAAe,EAAA,CACpD,EAMME,EAAoBF,GAA6B,CACrD,GAAI,CACF,OAAOA,EAAO,QAAQ,QAAQ,CAChC,MAAQ,CACN,OAAOA,EAAO,aAAa,MAAM,CACnC,CACF,EAMaG,EAAgB,CAC3B,OAAQ,EACR,MAAO,OACP,OAAQ,MACV,EASaC,EAAgBC,GAA8C,CACzE,GAAI,CAACA,GAAW,OAAOA,EAAQ,aAAgB,iBAAmB,IAAM,CAAC,EAEzE,GAAI,CACFA,EAAQ,YAAA,CACV,MAAQ,CAEN,MAAO,IAAM,CAAC,CAChB,CAEA,MAAO,IAAM,CACX,GAAI,CACEA,EAAQ,aAAaA,EAAQ,YAAA,CACnC,MAAQ,CAER,CACF,CACF"}
|