@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,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FocusTarget } from '../../helpers/focus.helper.cjs';
|
|
3
|
+
export type ModalTone = 'neutral' | 'danger' | 'warning' | 'success' | 'info';
|
|
4
|
+
type Props = {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
/** Kapatma düğmesinin erişilebilir adı. */
|
|
9
|
+
closeLabel?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/** Başlığın altındaki bir cümlelik açıklama. */
|
|
12
|
+
description?: ReactNode;
|
|
13
|
+
/** Altta duran eylemler. */
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
/** Başlığın solunda duran ikon madalyonu; `tone` rengini alır. */
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
/** İkon madalyonunun tonu. */
|
|
18
|
+
tone?: ModalTone;
|
|
19
|
+
/** `xl` (≈1040 px) sekmeli, tablolu panolar için; dar ekranda diğerleri gibi tam genişlik. */
|
|
20
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
21
|
+
/** `false` iken arka plana tıklama, Escape ve kapatma düğmesi kapatmaz. */
|
|
22
|
+
isDismissable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Açılınca odaklanacak öğe (pencerenin içinde). Verilmezse `data-ui-autofocus` taşıyan öğe, o da
|
|
25
|
+
* yoksa kapatma düğmesinden sonraki ilk odaklanabilir öğe. ⚠ İçerikteki React `autoFocus`u
|
|
26
|
+
* `showModal()`dan ÖNCE koştuğu için etkisizdir; yerine bu prop.
|
|
27
|
+
*/
|
|
28
|
+
initialFocus?: FocusTarget;
|
|
29
|
+
className?: string;
|
|
30
|
+
testId?: string;
|
|
31
|
+
};
|
|
32
|
+
/** Kip pencere (modal). */
|
|
33
|
+
declare const Modal: ({ isOpen, onClose, title, closeLabel, children, description, footer, icon, tone, size, isDismissable, initialFocus, className, testId, }: Props) => import("react").JSX.Element;
|
|
34
|
+
declare const _default: typeof Modal;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FocusTarget } from '../../helpers/focus.helper.js';
|
|
3
|
+
export type ModalTone = 'neutral' | 'danger' | 'warning' | 'success' | 'info';
|
|
4
|
+
type Props = {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
/** Kapatma düğmesinin erişilebilir adı. */
|
|
9
|
+
closeLabel?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/** Başlığın altındaki bir cümlelik açıklama. */
|
|
12
|
+
description?: ReactNode;
|
|
13
|
+
/** Altta duran eylemler. */
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
/** Başlığın solunda duran ikon madalyonu; `tone` rengini alır. */
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
/** İkon madalyonunun tonu. */
|
|
18
|
+
tone?: ModalTone;
|
|
19
|
+
/** `xl` (≈1040 px) sekmeli, tablolu panolar için; dar ekranda diğerleri gibi tam genişlik. */
|
|
20
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
21
|
+
/** `false` iken arka plana tıklama, Escape ve kapatma düğmesi kapatmaz. */
|
|
22
|
+
isDismissable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Açılınca odaklanacak öğe (pencerenin içinde). Verilmezse `data-ui-autofocus` taşıyan öğe, o da
|
|
25
|
+
* yoksa kapatma düğmesinden sonraki ilk odaklanabilir öğe. ⚠ İçerikteki React `autoFocus`u
|
|
26
|
+
* `showModal()`dan ÖNCE koştuğu için etkisizdir; yerine bu prop.
|
|
27
|
+
*/
|
|
28
|
+
initialFocus?: FocusTarget;
|
|
29
|
+
className?: string;
|
|
30
|
+
testId?: string;
|
|
31
|
+
};
|
|
32
|
+
/** Kip pencere (modal). */
|
|
33
|
+
declare const Modal: ({ isOpen, onClose, title, closeLabel, children, description, footer, icon, tone, size, isDismissable, initialFocus, className, testId, }: Props) => import("react").JSX.Element;
|
|
34
|
+
declare const _default: typeof Modal;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import { memo as C, useRef as f, useId as L, useEffect as M, useCallback as F } from "react";
|
|
4
|
+
import { XLg as w } from "react-bootstrap-icons";
|
|
5
|
+
import { cx as b } from "../../helpers/class-name.helper.js";
|
|
6
|
+
import { focusDialogContent as z, pushModal as S, captureFocus as T, isTopModal as U } from "../../helpers/focus.helper.js";
|
|
7
|
+
import { resolveLabel as X } from "../../helpers/label.helper.js";
|
|
8
|
+
import q from "../../hooks/useScrollLock.js";
|
|
9
|
+
import { useUi as A } from "../../theme/context.js";
|
|
10
|
+
import G from "../IconButton/index.js";
|
|
11
|
+
const o = {"modal":"ui-modal-3IDi9","modal--sm":"ui-modal--sm-A7WsS","modal--lg":"ui-modal--lg-z99Em","modal--xl":"ui-modal--xl-g3d6F","modal__panel":"ui-modal__panel--qLSz","modal__header":"ui-modal__header-meWm6","modal__icon":"ui-modal__icon-df2dd","modal__icon--neutral":"ui-modal__icon--neutral-QSL7c","modal__icon--danger":"ui-modal__icon--danger-6V90a","modal__icon--warning":"ui-modal__icon--warning-a--FX","modal__icon--success":"ui-modal__icon--success-YWxZs","modal__icon--info":"ui-modal__icon--info-WRLah","modal__heading":"ui-modal__heading-PwDS8","modal__title":"ui-modal__title-80Sh6","modal__description":"ui-modal__description-fsCHI","modal__close":"ui-modal__close-vFPbw","modal__body":"ui-modal__body-PDF12","modal__footer":"ui-modal__footer-CCCkx"};
|
|
12
|
+
const H = ({
|
|
13
|
+
isOpen: d,
|
|
14
|
+
onClose: t,
|
|
15
|
+
title: x,
|
|
16
|
+
closeLabel: y,
|
|
17
|
+
children: p,
|
|
18
|
+
description: s,
|
|
19
|
+
footer: _,
|
|
20
|
+
icon: h,
|
|
21
|
+
tone: I = "neutral",
|
|
22
|
+
size: R = "md",
|
|
23
|
+
isDismissable: a = !0,
|
|
24
|
+
initialFocus: v,
|
|
25
|
+
className: $,
|
|
26
|
+
testId: E
|
|
27
|
+
}) => {
|
|
28
|
+
const { labels: i } = A(), l = f(null), c = f(null), N = f(v);
|
|
29
|
+
N.current = v;
|
|
30
|
+
const g = L(), k = L();
|
|
31
|
+
M(() => {
|
|
32
|
+
const e = l.current;
|
|
33
|
+
if (!e) return;
|
|
34
|
+
if (!d) {
|
|
35
|
+
e.open && e.close();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const n = T();
|
|
39
|
+
e.open || e.showModal(), z(e, N.current, `.${o.modal__close}`);
|
|
40
|
+
const { token: m, pop: B } = S();
|
|
41
|
+
return c.current = m, () => {
|
|
42
|
+
e.open && e.close(), B(), c.current = null, n();
|
|
43
|
+
};
|
|
44
|
+
}, [d]), q(d), M(() => {
|
|
45
|
+
const e = l.current;
|
|
46
|
+
if (!e) return;
|
|
47
|
+
const n = (m) => {
|
|
48
|
+
m.preventDefault(), a && (c.current && !U(c.current) || t());
|
|
49
|
+
};
|
|
50
|
+
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
|
|
51
|
+
}, [t, a]);
|
|
52
|
+
const j = F(
|
|
53
|
+
(e) => {
|
|
54
|
+
a && e.target === l.current && t();
|
|
55
|
+
},
|
|
56
|
+
[a, t]
|
|
57
|
+
);
|
|
58
|
+
return /* @__PURE__ */ r(
|
|
59
|
+
"dialog",
|
|
60
|
+
{
|
|
61
|
+
ref: l,
|
|
62
|
+
className: b(o.modal, o[`modal--${R}`], $),
|
|
63
|
+
"aria-labelledby": g,
|
|
64
|
+
"aria-describedby": s ? k : void 0,
|
|
65
|
+
"data-testid": E,
|
|
66
|
+
onClick: j,
|
|
67
|
+
children: /* @__PURE__ */ u("div", { className: o.modal__panel, children: [
|
|
68
|
+
/* @__PURE__ */ u("header", { className: o.modal__header, children: [
|
|
69
|
+
h && /* @__PURE__ */ r("span", { className: b(o.modal__icon, o[`modal__icon--${I}`]), children: h }),
|
|
70
|
+
/* @__PURE__ */ u("div", { className: o.modal__heading, children: [
|
|
71
|
+
/* @__PURE__ */ r("h2", { id: g, className: o.modal__title, children: x }),
|
|
72
|
+
s && /* @__PURE__ */ r("p", { id: k, className: o.modal__description, children: s })
|
|
73
|
+
] }),
|
|
74
|
+
a && /* @__PURE__ */ r(
|
|
75
|
+
G,
|
|
76
|
+
{
|
|
77
|
+
icon: /* @__PURE__ */ r(w, { "aria-hidden": !0 }),
|
|
78
|
+
label: X("Modal.closeLabel", y, i == null ? void 0 : i.close),
|
|
79
|
+
variant: "ghost",
|
|
80
|
+
size: "sm",
|
|
81
|
+
className: o.modal__close,
|
|
82
|
+
onClick: t
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
p && /* @__PURE__ */ r("div", { className: o.modal__body, children: p }),
|
|
87
|
+
_ && /* @__PURE__ */ r("footer", { className: o.modal__footer, children: _ })
|
|
88
|
+
] })
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}, ee = /* @__PURE__ */ C(H);
|
|
92
|
+
export {
|
|
93
|
+
ee as default
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Modal/index.tsx"],"sourcesContent":["'use client';\n\nimport {\n memo,\n type MouseEvent,\n type ReactNode,\n useCallback,\n useEffect,\n useId,\n useRef,\n} from 'react';\n\nimport { XLg } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport {\n captureFocus,\n focusDialogContent,\n type FocusTarget,\n isTopModal,\n pushModal,\n} from '../../helpers/focus.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport useScrollLock from '../../hooks/useScrollLock';\nimport { useUi } from '../../theme/context';\nimport IconButton from '../IconButton';\n\nimport styles from './index.module.scss';\n\nexport type ModalTone = 'neutral' | 'danger' | 'warning' | 'success' | 'info';\n\ntype Props = {\n isOpen: boolean;\n onClose: () => void;\n title: string;\n /** Kapatma düğmesinin erişilebilir adı. */\n closeLabel?: string;\n children?: ReactNode;\n /** Başlığın altındaki bir cümlelik açıklama. */\n description?: ReactNode;\n /** Altta duran eylemler. */\n footer?: ReactNode;\n /** Başlığın solunda duran ikon madalyonu; `tone` rengini alır. */\n icon?: ReactNode;\n /** İkon madalyonunun tonu. */\n tone?: ModalTone;\n /** `xl` (≈1040 px) sekmeli, tablolu panolar için; dar ekranda diğerleri gibi tam genişlik. */\n size?: 'sm' | 'md' | 'lg' | 'xl';\n /** `false` iken arka plana tıklama, Escape ve kapatma düğmesi kapatmaz. */\n isDismissable?: boolean;\n /**\n * Açılınca odaklanacak öğe (pencerenin içinde). Verilmezse `data-ui-autofocus` taşıyan öğe, o da\n * yoksa kapatma düğmesinden sonraki ilk odaklanabilir öğe. ⚠ İçerikteki React `autoFocus`u\n * `showModal()`dan ÖNCE koştuğu için etkisizdir; yerine bu prop.\n */\n initialFocus?: FocusTarget;\n className?: string;\n testId?: string;\n};\n\n/** Kip pencere (modal). */\nconst Modal = ({\n isOpen,\n onClose,\n title,\n closeLabel,\n children,\n description,\n footer,\n icon,\n tone = 'neutral',\n size = 'md',\n isDismissable = true,\n initialFocus,\n className,\n testId,\n}: Props) => {\n const { labels } = useUi();\n const dialogRef = useRef<HTMLDialogElement>(null);\n /* Yigindaki yerimiz: */\n const tokenRef = useRef<symbol | null>(null);\n /* Acilis etkisi yalnizca `isOpen`a bagli; hedef her cizimde guncel okunur. */\n const initialFocusRef = useRef(initialFocus);\n initialFocusRef.current = initialFocus;\n const titleId = useId();\n const descriptionId = useId();\n\n /* ACILIS: `showModal()` + odak + yigina katilma. */\n useEffect(() => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n\n if (!isOpen) {\n if (dialog.open) dialog.close();\n return;\n }\n\n const restoreFocus = captureFocus();\n if (!dialog.open) dialog.showModal();\n\n /*\n * Odak KAPATMA DUGMESINE degil ilk anlamli ogeye (ya da `initialFocus`a). `showModal()` DOM\n * sirasindaki ilk odaklanabilir ogeye gidiyor ve o neredeyse her zaman basliktaki kapatma dugmesi.\n * Ilk oge bir metin alaniysa odak YALNIZCA dokunmatik cihazda geri alinir (ekran klavyesi\n * kullanici istemeden aciliyordu); masaustunde alan odakta kalir (bkz. `helpers/focus.helper`).\n */\n focusDialogContent(dialog, initialFocusRef.current, `.${styles.modal__close}`);\n\n const { token, pop } = pushModal();\n tokenRef.current = token;\n\n return () => {\n /*\n * Siralama ZORUNLU (`CommandPalette` gibi): kipsel pencere acikken disaridaki oge odak ALAMAZ.\n * Pencere once kapanir, sonra odak acan ogeye doner.\n */\n if (dialog.open) dialog.close();\n pop();\n tokenRef.current = null;\n restoreFocus();\n };\n }, [isOpen]);\n\n /*\n * Arka plan kaydirmasi kilitlenir. `showModal()` arka plani etkilesime kapatir ama kaydirmayi her\n * tarayicida engellemiyor: kullanici pencereyi…\n */\n useScrollLock(isOpen);\n\n /*\n * Escape'i tarayici isliyor ama React durumu bundan haberdar olmuyor; `cancel` olayi yakalanmazsa\n * pencere kapanip `isOpen` true kaliyor ve bir daha…\n */\n useEffect(() => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n\n const handleCancel = (event: Event) => {\n /*\n * Varsayilan HER ZAMAN engellenir: kapanis karari React'te veriliyor ve tarayicinin pencereyi\n * kendi basina kapatmasi durumu `isOpen: true` birakiyordu.\n */\n event.preventDefault();\n if (!isDismissable) return;\n\n /* Yalnizca EN USTTEKI panel kapanir. */\n if (tokenRef.current && !isTopModal(tokenRef.current)) return;\n\n onClose();\n };\n\n dialog.addEventListener('cancel', handleCancel);\n return () => dialog.removeEventListener('cancel', handleCancel);\n }, [onClose, isDismissable]);\n\n const handleBackdropClick = useCallback(\n (event: MouseEvent<HTMLDialogElement>) => {\n if (!isDismissable) return;\n // Hedef dialog'un KENDISI ise arka plana tiklanmistir; panel degil.\n if (event.target === dialogRef.current) onClose();\n },\n [isDismissable, onClose],\n );\n\n return (\n <dialog\n ref={dialogRef}\n className={cx(styles.modal, styles[`modal--${size}`], className)}\n aria-labelledby={titleId}\n aria-describedby={description ? descriptionId : undefined}\n data-testid={testId}\n onClick={handleBackdropClick}\n >\n <div className={styles.modal__panel}>\n <header className={styles.modal__header}>\n {icon && (\n <span className={cx(styles.modal__icon, styles[`modal__icon--${tone}`])}>{icon}</span>\n )}\n\n <div className={styles.modal__heading}>\n <h2 id={titleId} className={styles.modal__title}>\n {title}\n </h2>\n {description && (\n <p id={descriptionId} className={styles.modal__description}>\n {description}\n </p>\n )}\n </div>\n\n {isDismissable && (\n <IconButton\n icon={<XLg aria-hidden />}\n label={resolveLabel('Modal.closeLabel', closeLabel, labels?.close)}\n variant=\"ghost\"\n size=\"sm\"\n className={styles.modal__close}\n onClick={onClose}\n />\n )}\n </header>\n\n {/*\n Gövde yalnızca içerik VARSA çizilir: onay pencerelerinin çoğunda soru\n başlıkta ve açıklamada duruyor, gövde boş kalıyor ve boş bir kutu\n 40 px'lik bir boşluk bırakıyordu.\n */}\n {children && <div className={styles.modal__body}>{children}</div>}\n\n {footer && <footer className={styles.modal__footer}>{footer}</footer>}\n </div>\n </dialog>\n );\n};\n\nexport default /*#__PURE__*/ memo(Modal) as typeof Modal;\n"],"names":["Modal","isOpen","onClose","title","closeLabel","children","description","footer","icon","tone","size","isDismissable","initialFocus","className","testId","labels","useUi","dialogRef","useRef","tokenRef","initialFocusRef","titleId","useId","descriptionId","useEffect","dialog","restoreFocus","captureFocus","focusDialogContent","styles","token","pop","pushModal","useScrollLock","handleCancel","event","isTopModal","handleBackdropClick","useCallback","jsx","cx","jsxs","IconButton","XLg","resolveLabel","Modal$1"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer ui{.ui-modal-3IDi9{border:none;padding:0;background:none;color:var(--hd-text);max-width:min(92vw,560px);width:100%;max-height:90dvh}.ui-modal--sm-A7WsS{max-width:min(92vw,440px)}.ui-modal--lg-z99Em{max-width:min(92vw,880px)}.ui-modal--xl-g3d6F{max-width:min(94vw,1040px)}.ui-modal-3IDi9{opacity:0;translate:0 6px;transition:opacity var(--hd-duration-fast) var(--hd-ease-standard),translate var(--hd-duration-fast) var(--hd-ease-standard),overlay var(--hd-duration-fast) allow-discrete,display var(--hd-duration-fast) allow-discrete}.ui-modal-3IDi9[open]{opacity:1;translate:0 0}@starting-style{.ui-modal-3IDi9[open]{opacity:0;translate:0 6px}}@media (prefers-reduced-motion: reduce){.ui-modal-3IDi9{transition:none}}.ui-modal-3IDi9::backdrop{opacity:0;transition:opacity var(--hd-duration-fast) var(--hd-ease-standard),overlay var(--hd-duration-fast) allow-discrete,display var(--hd-duration-fast) allow-discrete}.ui-modal-3IDi9[open]::backdrop{opacity:1}@starting-style{.ui-modal-3IDi9[open]::backdrop{opacity:0}}@media (prefers-reduced-motion: reduce){.ui-modal-3IDi9::backdrop{transition:none}}.ui-modal-3IDi9:focus-visible{outline:none}.ui-modal-3IDi9:focus-visible .ui-modal__panel--qLSz{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, -2px)}.ui-modal-3IDi9::backdrop{background-color:var(--hd-scrim);-webkit-backdrop-filter:blur(var(--ui-scrim-blur, 3px));backdrop-filter:blur(var(--ui-scrim-blur, 3px))}@media (max-width: 640px){.ui-modal-3IDi9,.ui-modal--sm-A7WsS,.ui-modal--lg-z99Em,.ui-modal--xl-g3d6F{max-width:none;width:100%;max-height:calc(92dvh - env(safe-area-inset-top,0px));margin:auto 0 0;margin-bottom:max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px))}.ui-modal-3IDi9:not([open]),.ui-modal-3IDi9[open]{opacity:0;translate:0 100%;transition:opacity var(--hd-duration-base) var(--hd-ease-standard),translate var(--hd-duration-base) var(--hd-ease-standard),overlay var(--hd-duration-base) allow-discrete,display var(--hd-duration-base) allow-discrete}.ui-modal-3IDi9:not([open])[open],.ui-modal-3IDi9[open][open]{opacity:1;translate:0 0}@starting-style{.ui-modal-3IDi9:not([open])[open],.ui-modal-3IDi9[open][open]{opacity:0;translate:0 100%}}}@media (max-width: 640px) and (prefers-reduced-motion: reduce){.ui-modal-3IDi9:not([open]),.ui-modal-3IDi9[open]{transition:none}}.ui-modal__panel--qLSz{display:flex;flex-direction:column;max-height:90dvh;background-color:var(--hd-bg-overlay);border:1px solid var(--hd-border);border-radius:var(--hd-radius-lg);box-shadow:var(--hd-shadow-3);overflow:hidden}@media (max-width: 640px){.ui-modal__panel--qLSz{max-height:92dvh;border-radius:var(--hd-radius-lg) var(--hd-radius-lg) 0 0;border-bottom:none}}.ui-modal__header-meWm6{display:flex;align-items:flex-start;gap:var(--hd-space-3);padding:var(--hd-space-4) var(--hd-space-5);border-bottom:1px solid var(--hd-border);flex-shrink:0}@media (max-width: 640px){.ui-modal__header-meWm6{padding:var(--hd-space-4);padding-left:max(var(--hd-space-4),env(safe-area-inset-left,0px));padding-right:max(var(--hd-space-4),env(safe-area-inset-right,0px))}}.ui-modal__icon-df2dd{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:var(--hd-radius-sm);font-size:24px}.ui-modal__icon--neutral-QSL7c{background-color:var(--hd-bg-raised);border:1px solid var(--hd-border);color:var(--hd-text-2)}.ui-modal__icon--danger-6V90a{background-color:var(--hd-danger-bg);border:1px solid var(--hd-danger-line);color:var(--hd-danger-fg)}.ui-modal__icon--warning-a--FX{background-color:var(--hd-warning-bg);border:1px solid var(--hd-warning-line);color:var(--hd-warning-fg)}.ui-modal__icon--success-YWxZs{background-color:var(--hd-success-bg);border:1px solid var(--hd-success-line);color:var(--hd-success-fg)}.ui-modal__icon--info-WRLah{background-color:var(--hd-info-bg);border:1px solid var(--hd-info-line);color:var(--hd-info-fg)}.ui-modal__heading-PwDS8{display:flex;flex-direction:column;gap:var(--hd-space-1);flex:1;min-width:0;padding-top:2px}.ui-modal__title-80Sh6{font-family:var(--hd-font-display);font-size:var(--hd-type-h4-size);font-weight:var(--hd-type-h4-weight);font-stretch:var(--hd-type-h4-stretch);line-height:var(--hd-type-h4-line-height);letter-spacing:var(--hd-type-h4-letter-spacing);color:var(--hd-text);margin:0;text-wrap:balance}.ui-modal__description-fsCHI{font-size:var(--hd-type-small-size);line-height:var(--hd-type-body-line-height);color:var(--hd-text-2);margin:0;max-width:68ch}.ui-modal__close-vFPbw{flex-shrink:0;margin-top:-2px}.ui-modal__body-PDF12{padding:var(--hd-space-5);position:relative;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:var(--hd-border-strong) transparent}.ui-modal__body-PDF12::-webkit-scrollbar{width:8px;height:8px}.ui-modal__body-PDF12::-webkit-scrollbar-track{background:transparent}.ui-modal__body-PDF12::-webkit-scrollbar-thumb{background-color:var(--hd-border-strong);border-radius:var(--hd-radius-pill);border:2px solid transparent;background-clip:content-box}.ui-modal__body-PDF12::-webkit-scrollbar-thumb:hover{background-color:var(--hd-text-3)}@media (max-width: 640px){.ui-modal__body-PDF12{padding:var(--hd-space-4);padding-left:max(var(--hd-space-4),env(safe-area-inset-left,0px));padding-right:max(var(--hd-space-4),env(safe-area-inset-right,0px))}.ui-modal__body-PDF12:last-child{padding-bottom:max(var(--hd-space-4),env(safe-area-inset-bottom,0px) - max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px)))}}.ui-modal__footer-CCCkx{display:flex;flex-wrap:wrap;align-items:center;gap:var(--hd-space-2);justify-content:flex-end;padding:var(--hd-space-4) var(--hd-space-5);border-top:1px solid var(--hd-border);background-color:var(--hd-bg-raised);flex-shrink:0}@media (max-width: 640px){.ui-modal__footer-CCCkx{padding:var(--hd-space-3) var(--hd-space-4);padding-left:max(var(--hd-space-4),env(safe-area-inset-left,0px));padding-right:max(var(--hd-space-4),env(safe-area-inset-right,0px));padding-bottom:max(var(--hd-space-3),env(safe-area-inset-bottom,0px) - max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px)));flex-direction:column-reverse}.ui-modal__footer-CCCkx>*{width:100%}}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),t=require("react"),i=require("../../helpers/component.helper.cjs"),s=require("../ScaledInput/index.cjs"),c=t.forwardRef(({minorDigits:e,currency:n,...o},r)=>u.jsx(s.default,{ref:r,...o,scaleDigits:e,minFractionDigits:e,suffix:n})),a=t.memo(i.named(c,"MoneyInput"));exports.default=a;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/MoneyInput/index.tsx"],"sourcesContent":["import { forwardRef, memo, type ReactNode } from 'react';\n\nimport { named } from '../../helpers/component.helper';\nimport ScaledInput, { type ScaledInputProps } from '../ScaledInput';\n\ntype Props = Omit<\n ScaledInputProps,\n 'scaleDigits' | 'maxFractionDigits' | 'minFractionDigits' | 'suffix'\n> & {\n /**\n * The minor-unit digits of the currency — the scale of the amount (TRY, USD, EUR 2; JPY 0;\n * `HAS-G` 3). The currency table belongs to the caller.\n */\n minorDigits: number;\n /** The currency code or sign after the amount (\"TL\", \"USD\"). */\n currency?: ReactNode;\n};\n\n/**\n * Money field (2.4): takes and gives the amount in the currency's minor unit (`Kurus`) —\n * `123450` with `minorDigits={2}` reads \"1.234,50\". Every minor digit is shown at rest.\n */\nconst MoneyInput = /*#__PURE__*/ forwardRef<HTMLInputElement, Props>(\n ({ minorDigits, currency, ...rest }, ref) => (\n <ScaledInput\n ref={ref}\n {...rest}\n scaleDigits={minorDigits}\n minFractionDigits={minorDigits}\n suffix={currency}\n />\n ),\n);\n\nexport default /*#__PURE__*/ memo(\n /*#__PURE__*/ named(MoneyInput, 'MoneyInput'),\n) as typeof MoneyInput;\n"],"names":["MoneyInput","forwardRef","minorDigits","currency","rest","ref","jsx","ScaledInput","index","memo","named"],"mappings":"0PAsBMA,EAA2BC,EAAAA,WAC/B,CAAC,CAAE,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAA,EAAQC,IACnCC,EAAAA,IAACC,EAAAA,QAAA,CACC,IAAAF,EACC,GAAGD,EACJ,YAAaF,EACb,kBAAmBA,EACnB,OAAQC,CAAA,CAAA,CAGd,EAEAK,EAA6BC,EAAAA,KACbC,EAAAA,MAAMV,EAAY,YAAY,CAC9C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ScaledInputProps } from '../ScaledInput/index.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Money field (2.4): takes and gives the amount in the currency's minor unit (`Kurus`) —
|
|
5
|
+
* `123450` with `minorDigits={2}` reads "1.234,50". Every minor digit is shown at rest.
|
|
6
|
+
*/
|
|
7
|
+
declare const MoneyInput: import('react').ForwardRefExoticComponent<Omit<ScaledInputProps, "suffix" | "scaleDigits" | "minFractionDigits" | "maxFractionDigits"> & {
|
|
8
|
+
/**
|
|
9
|
+
* The minor-unit digits of the currency — the scale of the amount (TRY, USD, EUR 2; JPY 0;
|
|
10
|
+
* `HAS-G` 3). The currency table belongs to the caller.
|
|
11
|
+
*/
|
|
12
|
+
minorDigits: number;
|
|
13
|
+
/** The currency code or sign after the amount ("TL", "USD"). */
|
|
14
|
+
currency?: ReactNode;
|
|
15
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
16
|
+
declare const _default: typeof MoneyInput;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ScaledInputProps } from '../ScaledInput/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Money field (2.4): takes and gives the amount in the currency's minor unit (`Kurus`) —
|
|
5
|
+
* `123450` with `minorDigits={2}` reads "1.234,50". Every minor digit is shown at rest.
|
|
6
|
+
*/
|
|
7
|
+
declare const MoneyInput: import('react').ForwardRefExoticComponent<Omit<ScaledInputProps, "suffix" | "scaleDigits" | "minFractionDigits" | "maxFractionDigits"> & {
|
|
8
|
+
/**
|
|
9
|
+
* The minor-unit digits of the currency — the scale of the amount (TRY, USD, EUR 2; JPY 0;
|
|
10
|
+
* `HAS-G` 3). The currency table belongs to the caller.
|
|
11
|
+
*/
|
|
12
|
+
minorDigits: number;
|
|
13
|
+
/** The currency code or sign after the amount ("TL", "USD"). */
|
|
14
|
+
currency?: ReactNode;
|
|
15
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
16
|
+
declare const _default: typeof MoneyInput;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as n, forwardRef as f } from "react";
|
|
3
|
+
import { named as i } from "../../helpers/component.helper.js";
|
|
4
|
+
import p from "../ScaledInput/index.js";
|
|
5
|
+
const a = /* @__PURE__ */ f(
|
|
6
|
+
({ minorDigits: o, currency: t, ...m }, r) => /* @__PURE__ */ e(
|
|
7
|
+
p,
|
|
8
|
+
{
|
|
9
|
+
ref: r,
|
|
10
|
+
...m,
|
|
11
|
+
scaleDigits: o,
|
|
12
|
+
minFractionDigits: o,
|
|
13
|
+
suffix: t
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
), x = /* @__PURE__ */ n(
|
|
17
|
+
/* @__PURE__ */ i(a, "MoneyInput")
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
x as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/MoneyInput/index.tsx"],"sourcesContent":["import { forwardRef, memo, type ReactNode } from 'react';\n\nimport { named } from '../../helpers/component.helper';\nimport ScaledInput, { type ScaledInputProps } from '../ScaledInput';\n\ntype Props = Omit<\n ScaledInputProps,\n 'scaleDigits' | 'maxFractionDigits' | 'minFractionDigits' | 'suffix'\n> & {\n /**\n * The minor-unit digits of the currency — the scale of the amount (TRY, USD, EUR 2; JPY 0;\n * `HAS-G` 3). The currency table belongs to the caller.\n */\n minorDigits: number;\n /** The currency code or sign after the amount (\"TL\", \"USD\"). */\n currency?: ReactNode;\n};\n\n/**\n * Money field (2.4): takes and gives the amount in the currency's minor unit (`Kurus`) —\n * `123450` with `minorDigits={2}` reads \"1.234,50\". Every minor digit is shown at rest.\n */\nconst MoneyInput = /*#__PURE__*/ forwardRef<HTMLInputElement, Props>(\n ({ minorDigits, currency, ...rest }, ref) => (\n <ScaledInput\n ref={ref}\n {...rest}\n scaleDigits={minorDigits}\n minFractionDigits={minorDigits}\n suffix={currency}\n />\n ),\n);\n\nexport default /*#__PURE__*/ memo(\n /*#__PURE__*/ named(MoneyInput, 'MoneyInput'),\n) as typeof MoneyInput;\n"],"names":["MoneyInput","forwardRef","minorDigits","currency","rest","ref","jsx","ScaledInput","index","memo","named"],"mappings":";;;;AAsBA,MAAMA,IAA2B,gBAAAC;AAAA,EAC/B,CAAC,EAAE,aAAAC,GAAa,UAAAC,GAAU,GAAGC,EAAA,GAAQC,MACnC,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACC,GAAGD;AAAA,MACJ,aAAaF;AAAA,MACb,mBAAmBA;AAAA,MACnB,QAAQC;AAAA,IAAA;AAAA,EAAA;AAGd,GAEAK,IAA6B,gBAAAC;AAAA,EACb,gBAAAC,EAAMV,GAAY,YAAY;AAC9C;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),_=require("react"),m=require("../../helpers/class-name.helper.cjs"),a={default:{"header":"ui-header-yJwus","header__top":"ui-header__top-UK4si","header__breadcrumb":"ui-header__breadcrumb-A2j0i","header__text":"ui-header__text-HIo8U","header__eyebrow":"ui-header__eyebrow-dZ9Zc","header__titleRow":"ui-header__titleRow-KgDZj","header__title":"ui-header__title-s1giF","header__meta":"ui-header__meta-UxuaD","header__description":"ui-header__description-NXbbC","header__actions":"ui-header__actions-aShpt"}},o=({title:c,eyebrow:s,description:d,actions:l,breadcrumb:r,meta:t,children:i,as:h="h1",className:n,testId:u})=>e.jsxs("header",{className:m.cx(a.default.header,n),"data-testid":u,children:[r&&e.jsx("div",{className:a.default.header__breadcrumb,children:r}),e.jsxs("div",{className:a.default.header__top,children:[e.jsxs("div",{className:a.default.header__text,children:[s&&e.jsx("span",{className:a.default.header__eyebrow,children:s}),e.jsxs("div",{className:a.default.header__titleRow,children:[e.jsx(h,{className:a.default.header__title,children:c}),t&&e.jsx("span",{className:a.default.header__meta,children:t})]}),d&&e.jsx("p",{className:a.default.header__description,children:d})]}),l&&e.jsx("div",{className:a.default.header__actions,children:l})]}),i]}),x=_.memo(o);exports.default=x;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/PageHeader/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\ntype Props = {\n title: string;\n /** Başlığın üstündeki küçük bağlam etiketi (\"HESABIM\", \"KATEGORİ\"). */\n eyebrow?: string;\n /** Bir cümlelik açıklama. 68ch ile sınırlı tutulur. */\n description?: ReactNode;\n /** Sağ tarafta duran eylemler. */\n actions?: ReactNode;\n /** Başlık satırının üstündeki kırıntı yolu. */\n breadcrumb?: ReactNode;\n /** Başlığın yanındaki sayaç (\"1.248 kayıt\"). */\n meta?: ReactNode;\n /** Başlık bloğunun altında duran ek içerik (filtre şeridi, sekmeler). */\n children?: ReactNode;\n /** `h1` sayfada bir kez bulunur; iç bölümler `h2` alır. */\n as?: 'h1' | 'h2';\n className?: string;\n testId?: string;\n};\n\n/** Sayfa başlığı — her ekranın aynı giriş bloğu. */\nconst PageHeader: FC<Props> = ({\n title,\n eyebrow,\n description,\n actions,\n breadcrumb,\n meta,\n children,\n as: Heading = 'h1',\n className,\n testId,\n}) => (\n <header className={cx(styles.header, className)} data-testid={testId}>\n {/*\n Yuva KENDI kutusunda: `header` bir dikey esnek kutu ve yuvanin cocugu\n dogrudan ona dustugunde `align-items: stretch` aliyordu. `Breadcrumb`\n zaten tam genislikte akan bir seritti, fark etmiyordu; icine bir dugme\n konunca (bir kayit formunun \"Geri\"si) dugme baslik genisligine yayilip\n ortalanmis metinle cikiyordu. Yuva artik icerigi kadar.\n */}\n {breadcrumb && <div className={styles.header__breadcrumb}>{breadcrumb}</div>}\n\n <div className={styles.header__top}>\n <div className={styles.header__text}>\n {eyebrow && <span className={styles.header__eyebrow}>{eyebrow}</span>}\n\n <div className={styles.header__titleRow}>\n <Heading className={styles.header__title}>{title}</Heading>\n {meta && <span className={styles.header__meta}>{meta}</span>}\n </div>\n\n {description && <p className={styles.header__description}>{description}</p>}\n </div>\n\n {actions && <div className={styles.header__actions}>{actions}</div>}\n </div>\n\n {children}\n </header>\n);\n\nexport default /*#__PURE__*/ memo(PageHeader) as typeof PageHeader;\n"],"names":["PageHeader","title","eyebrow","description","actions","breadcrumb","meta","children","Heading","className","testId","jsxs","cx","styles","jsx","index"],"mappings":"0PA2BMA,EAAwB,CAAC,CAC7B,MAAAC,EACA,QAAAC,EACA,YAAAC,EACA,QAAAC,EACA,WAAAC,EACA,KAAAC,EACA,SAAAC,EACA,GAAIC,EAAU,KACd,UAAAC,EACA,OAAAC,CACF,IACEC,OAAC,UAAO,UAAWC,EAAAA,GAAGC,EAAAA,QAAO,OAAQJ,CAAS,EAAG,cAAaC,EAQ3D,SAAA,CAAAL,GAAcS,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,mBAAqB,SAAAR,EAAW,EAEtEM,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAAA,QAAO,YACrB,SAAA,CAAAF,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAAA,QAAO,aACpB,SAAA,CAAAX,GAAWY,EAAAA,IAAC,OAAA,CAAK,UAAWD,EAAAA,QAAO,gBAAkB,SAAAX,EAAQ,EAE9DS,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAAA,QAAO,iBACrB,SAAA,CAAAC,EAAAA,IAACN,EAAA,CAAQ,UAAWK,EAAAA,QAAO,cAAgB,SAAAZ,EAAM,EAChDK,GAAQQ,EAAAA,IAAC,OAAA,CAAK,UAAWD,EAAAA,QAAO,aAAe,SAAAP,CAAA,CAAK,CAAA,EACvD,EAECH,GAAeW,EAAAA,IAAC,IAAA,CAAE,UAAWD,EAAAA,QAAO,oBAAsB,SAAAV,CAAA,CAAY,CAAA,EACzE,EAECC,GAAWU,EAAAA,IAAC,MAAA,CAAI,UAAWD,EAAAA,QAAO,gBAAkB,SAAAT,CAAA,CAAQ,CAAA,EAC/D,EAECG,CAAA,EACH,EAGFQ,SAAkCf,CAAU"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
/** Başlığın üstündeki küçük bağlam etiketi ("HESABIM", "KATEGORİ"). */
|
|
5
|
+
eyebrow?: string;
|
|
6
|
+
/** Bir cümlelik açıklama. 68ch ile sınırlı tutulur. */
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/** Sağ tarafta duran eylemler. */
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
/** Başlık satırının üstündeki kırıntı yolu. */
|
|
11
|
+
breadcrumb?: ReactNode;
|
|
12
|
+
/** Başlığın yanındaki sayaç ("1.248 kayıt"). */
|
|
13
|
+
meta?: ReactNode;
|
|
14
|
+
/** Başlık bloğunun altında duran ek içerik (filtre şeridi, sekmeler). */
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/** `h1` sayfada bir kez bulunur; iç bölümler `h2` alır. */
|
|
17
|
+
as?: 'h1' | 'h2';
|
|
18
|
+
className?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Sayfa başlığı — her ekranın aynı giriş bloğu. */
|
|
22
|
+
declare const PageHeader: FC<Props>;
|
|
23
|
+
declare const _default: typeof PageHeader;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
/** Başlığın üstündeki küçük bağlam etiketi ("HESABIM", "KATEGORİ"). */
|
|
5
|
+
eyebrow?: string;
|
|
6
|
+
/** Bir cümlelik açıklama. 68ch ile sınırlı tutulur. */
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/** Sağ tarafta duran eylemler. */
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
/** Başlık satırının üstündeki kırıntı yolu. */
|
|
11
|
+
breadcrumb?: ReactNode;
|
|
12
|
+
/** Başlığın yanındaki sayaç ("1.248 kayıt"). */
|
|
13
|
+
meta?: ReactNode;
|
|
14
|
+
/** Başlık bloğunun altında duran ek içerik (filtre şeridi, sekmeler). */
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/** `h1` sayfada bir kez bulunur; iç bölümler `h2` alır. */
|
|
17
|
+
as?: 'h1' | 'h2';
|
|
18
|
+
className?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Sayfa başlığı — her ekranın aynı giriş bloğu. */
|
|
22
|
+
declare const PageHeader: FC<Props>;
|
|
23
|
+
declare const _default: typeof PageHeader;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { memo as o } from "react";
|
|
3
|
+
import { cx as N } from "../../helpers/class-name.helper.js";
|
|
4
|
+
const e = {"header":"ui-header-yJwus","header__top":"ui-header__top-UK4si","header__breadcrumb":"ui-header__breadcrumb-A2j0i","header__text":"ui-header__text-HIo8U","header__eyebrow":"ui-header__eyebrow-dZ9Zc","header__titleRow":"ui-header__titleRow-KgDZj","header__title":"ui-header__title-s1giF","header__meta":"ui-header__meta-UxuaD","header__description":"ui-header__description-NXbbC","header__actions":"ui-header__actions-aShpt"};
|
|
5
|
+
const p = ({
|
|
6
|
+
title: h,
|
|
7
|
+
eyebrow: d,
|
|
8
|
+
description: r,
|
|
9
|
+
actions: l,
|
|
10
|
+
breadcrumb: c,
|
|
11
|
+
meta: i,
|
|
12
|
+
children: m,
|
|
13
|
+
as: t = "h1",
|
|
14
|
+
className: _,
|
|
15
|
+
testId: n
|
|
16
|
+
}) => /* @__PURE__ */ s("header", { className: N(e.header, _), "data-testid": n, children: [
|
|
17
|
+
c && /* @__PURE__ */ a("div", { className: e.header__breadcrumb, children: c }),
|
|
18
|
+
/* @__PURE__ */ s("div", { className: e.header__top, children: [
|
|
19
|
+
/* @__PURE__ */ s("div", { className: e.header__text, children: [
|
|
20
|
+
d && /* @__PURE__ */ a("span", { className: e.header__eyebrow, children: d }),
|
|
21
|
+
/* @__PURE__ */ s("div", { className: e.header__titleRow, children: [
|
|
22
|
+
/* @__PURE__ */ a(t, { className: e.header__title, children: h }),
|
|
23
|
+
i && /* @__PURE__ */ a("span", { className: e.header__meta, children: i })
|
|
24
|
+
] }),
|
|
25
|
+
r && /* @__PURE__ */ a("p", { className: e.header__description, children: r })
|
|
26
|
+
] }),
|
|
27
|
+
l && /* @__PURE__ */ a("div", { className: e.header__actions, children: l })
|
|
28
|
+
] }),
|
|
29
|
+
m
|
|
30
|
+
] }), g = /* @__PURE__ */ o(p);
|
|
31
|
+
export {
|
|
32
|
+
g as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/PageHeader/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\ntype Props = {\n title: string;\n /** Başlığın üstündeki küçük bağlam etiketi (\"HESABIM\", \"KATEGORİ\"). */\n eyebrow?: string;\n /** Bir cümlelik açıklama. 68ch ile sınırlı tutulur. */\n description?: ReactNode;\n /** Sağ tarafta duran eylemler. */\n actions?: ReactNode;\n /** Başlık satırının üstündeki kırıntı yolu. */\n breadcrumb?: ReactNode;\n /** Başlığın yanındaki sayaç (\"1.248 kayıt\"). */\n meta?: ReactNode;\n /** Başlık bloğunun altında duran ek içerik (filtre şeridi, sekmeler). */\n children?: ReactNode;\n /** `h1` sayfada bir kez bulunur; iç bölümler `h2` alır. */\n as?: 'h1' | 'h2';\n className?: string;\n testId?: string;\n};\n\n/** Sayfa başlığı — her ekranın aynı giriş bloğu. */\nconst PageHeader: FC<Props> = ({\n title,\n eyebrow,\n description,\n actions,\n breadcrumb,\n meta,\n children,\n as: Heading = 'h1',\n className,\n testId,\n}) => (\n <header className={cx(styles.header, className)} data-testid={testId}>\n {/*\n Yuva KENDI kutusunda: `header` bir dikey esnek kutu ve yuvanin cocugu\n dogrudan ona dustugunde `align-items: stretch` aliyordu. `Breadcrumb`\n zaten tam genislikte akan bir seritti, fark etmiyordu; icine bir dugme\n konunca (bir kayit formunun \"Geri\"si) dugme baslik genisligine yayilip\n ortalanmis metinle cikiyordu. Yuva artik icerigi kadar.\n */}\n {breadcrumb && <div className={styles.header__breadcrumb}>{breadcrumb}</div>}\n\n <div className={styles.header__top}>\n <div className={styles.header__text}>\n {eyebrow && <span className={styles.header__eyebrow}>{eyebrow}</span>}\n\n <div className={styles.header__titleRow}>\n <Heading className={styles.header__title}>{title}</Heading>\n {meta && <span className={styles.header__meta}>{meta}</span>}\n </div>\n\n {description && <p className={styles.header__description}>{description}</p>}\n </div>\n\n {actions && <div className={styles.header__actions}>{actions}</div>}\n </div>\n\n {children}\n </header>\n);\n\nexport default /*#__PURE__*/ memo(PageHeader) as typeof PageHeader;\n"],"names":["PageHeader","title","eyebrow","description","actions","breadcrumb","meta","children","Heading","className","testId","jsxs","cx","styles","jsx","index"],"mappings":";;;;AA2BA,MAAMA,IAAwB,CAAC;AAAA,EAC7B,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,IAAIC,IAAU;AAAA,EACd,WAAAC;AAAA,EACA,QAAAC;AACF,MACE,gBAAAC,EAAC,YAAO,WAAWC,EAAGC,EAAO,QAAQJ,CAAS,GAAG,eAAaC,GAQ3D,UAAA;AAAA,EAAAL,KAAc,gBAAAS,EAAC,OAAA,EAAI,WAAWD,EAAO,oBAAqB,UAAAR,GAAW;AAAA,EAEtE,gBAAAM,EAAC,OAAA,EAAI,WAAWE,EAAO,aACrB,UAAA;AAAA,IAAA,gBAAAF,EAAC,OAAA,EAAI,WAAWE,EAAO,cACpB,UAAA;AAAA,MAAAX,KAAW,gBAAAY,EAAC,QAAA,EAAK,WAAWD,EAAO,iBAAkB,UAAAX,GAAQ;AAAA,MAE9D,gBAAAS,EAAC,OAAA,EAAI,WAAWE,EAAO,kBACrB,UAAA;AAAA,QAAA,gBAAAC,EAACN,GAAA,EAAQ,WAAWK,EAAO,eAAgB,UAAAZ,GAAM;AAAA,QAChDK,KAAQ,gBAAAQ,EAAC,QAAA,EAAK,WAAWD,EAAO,cAAe,UAAAP,EAAA,CAAK;AAAA,MAAA,GACvD;AAAA,MAECH,KAAe,gBAAAW,EAAC,KAAA,EAAE,WAAWD,EAAO,qBAAsB,UAAAV,EAAA,CAAY;AAAA,IAAA,GACzE;AAAA,IAECC,KAAW,gBAAAU,EAAC,OAAA,EAAI,WAAWD,EAAO,iBAAkB,UAAAT,EAAA,CAAQ;AAAA,EAAA,GAC/D;AAAA,EAECG;AAAA,GACH,GAGFQ,sBAAkCf,CAAU;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer ui{.ui-header-yJwus{display:flex;flex-direction:column;gap:var(--hd-space-4)}@media (max-width: 640px){.ui-header-yJwus{gap:var(--hd-space-3)}}.ui-header__top-UK4si{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--hd-space-5);flex-wrap:wrap}.ui-header__breadcrumb-A2j0i{align-self:flex-start;max-inline-size:100%;min-inline-size:0}.ui-header__text-HIo8U{display:flex;flex-direction:column;gap:var(--hd-space-2);min-width:0;flex:1 1 auto}.ui-header__eyebrow-dZ9Zc{font-family:var(--hd-font-body);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);letter-spacing:.045em;text-transform:uppercase;color:var(--hd-text-2)}.ui-header__titleRow-KgDZj{display:flex;align-items:baseline;gap:var(--hd-space-3);flex-wrap:wrap}.ui-header__title-s1giF{font-family:var(--hd-font-display);font-size:var(--hd-type-h2-size);font-weight:var(--hd-type-h2-weight);font-stretch:var(--hd-type-h2-stretch);line-height:var(--hd-type-h2-line-height);letter-spacing:var(--hd-type-h2-letter-spacing);color:var(--hd-text);text-wrap:balance;margin:0}.ui-header__meta-UxuaD{font-family:var(--hd-font-body);font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-medium);color:var(--hd-text-2);font-variant-numeric:tabular-nums;white-space:nowrap}.ui-header__description-NXbbC{font-size:var(--hd-type-body-size);line-height:var(--hd-type-body-line-height);color:var(--hd-text-2);margin:0;max-width:68ch}.ui-header__actions-aShpt{display:flex;flex-wrap:wrap;align-items:center;gap:var(--hd-space-2);flex-shrink:0}@media (max-width: 640px){.ui-header__actions-aShpt{width:100%}.ui-header__actions-aShpt>*{flex:1 1 auto}}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),h=require("react"),K=require("react-bootstrap-icons"),m=require("../../helpers/class-name.helper.cjs"),q=require("../../helpers/label.helper.cjs"),D=require("../../helpers/scroll.helper.cjs"),F=require("../../hooks/useAnnounce.cjs"),W=require("../../theme/context.cjs"),B=require("../../enums/ui-size.enum.cjs"),G=require("../../enums/ui-variant.enum.cjs"),I=require("../Button/index.cjs"),O=require("../IconButton/index.cjs"),M=require("../Link/index.cjs"),c={default:{"pagination":"ui-pagination-K-L20","pagination__list":"ui-pagination__list--9HqC","pagination__arrow":"ui-pagination__arrow-XIgoX","pagination__page":"ui-pagination__page-TpoJM","pagination__page--active":"ui-pagination__page--active-XHeaz","pagination__gap":"ui-pagination__gap-qoDyI"}},U=(i,n)=>{if(n<=7)return Array.from({length:n},(r,a)=>a+1);const u=new Set([1,n,i]);i-1>1&&u.add(i-1),i+1<n&&u.add(i+1);const f=[...u].sort((r,a)=>r-a),d=[];return f.forEach((r,a)=>{a>0&&r-f[a-1]>1&&d.push("gap"),d.push(r)}),d},V=({page:i,totalPages:n,label:u,previousLabel:f,nextLabel:d,buildHref:r,onPageChange:a,linkProps:l,formatAnnouncement:x,scrollTo:R,className:T,testId:$})=>{var S,g,w;const{labels:s}=W.useUi(),j=F.default(),L=h.useRef(i);h.useEffect(()=>{L.current!==i&&(L.current=i,x&&j(x(i,n)))},[i,n,x,j]);const E=h.useMemo(()=>U(i,n),[i,n]);if(n<=1)return null;const N=e=>{R==="top"&&e!==i&&D.scrollWindowToTop()},b=e=>{a&&(a(e),N(e))},p=l==null?void 0:l.onClick,C=(e,o)=>{p==null||p(e),!(e.defaultPrevented||e.button!==0)&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||N(o))},y=(e,o,_)=>{const A=e<1||e>n;return r&&!A?t.jsx(M.default,{href:r(e),className:c.default.pagination__arrow,"aria-label":o,...l,onClick:z=>C(z,e),children:_}):t.jsx(O.default,{className:c.default.pagination__arrow,icon:_,label:o,variant:"secondary",disabled:A,onClick:()=>b(e)})};return t.jsxs("nav",{className:m.cx(c.default.pagination,T),"aria-label":q.resolveLabel("Pagination.label",u,(S=s==null?void 0:s.pagination)==null?void 0:S.label),"data-testid":$,children:[y(i-1,q.resolveLabel("Pagination.previousLabel",f,(g=s==null?void 0:s.pagination)==null?void 0:g.previous),t.jsx(K.CaretLeftFill,{"aria-hidden":!0})),t.jsx("ul",{className:c.default.pagination__list,children:E.map((e,o)=>e==="gap"?t.jsx("li",{className:c.default.pagination__gap,"aria-hidden":!0,children:"…"},`gap-${o}`):t.jsx("li",{children:r?t.jsx(M.default,{href:r(e),className:m.cx(c.default.pagination__page,e===i&&c.default["pagination__page--active"]),"aria-current":e===i?"page":void 0,...l,onClick:_=>C(_,e),children:e}):t.jsx(I.default,{variant:G.default.SECONDARY,size:B.default.SMALL,className:m.cx(c.default.pagination__page,e===i&&c.default["pagination__page--active"]),"aria-current":e===i?"page":void 0,onClick:()=>b(e),children:e})},e))}),y(i+1,q.resolveLabel("Pagination.nextLabel",d,(w=s==null?void 0:s.pagination)==null?void 0:w.next),t.jsx(K.CaretRightFill,{"aria-hidden":!0}))]})},Y=h.memo(V);exports.default=Y;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/Pagination/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, type MouseEvent, type ReactNode, memo, useEffect, useMemo, useRef } from 'react';\n\nimport { CaretLeftFill, CaretRightFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { scrollWindowToTop } from '../../helpers/scroll.helper';\nimport useAnnounce from '../../hooks/useAnnounce';\nimport { useUi } from '../../theme/context';\nimport UISize from '../../enums/ui-size.enum';\nimport UIVariant from '../../enums/ui-variant.enum';\nimport type { UiLinkExtraProps } from '../../types/link.type';\nimport Button from '../Button';\nimport IconButton from '../IconButton';\nimport UiLink from '../Link';\n\nimport styles from './index.module.scss';\n\ntype BaseProps = {\n page: number;\n totalPages: number;\n /** Gezinme bölgesinin erişilebilir adı. */\n label?: string;\n /** Verilmezse `labels.pagination.previous`. */\n previousLabel?: string;\n /** Verilmezse `labels.pagination.next`. */\n nextLabel?: string;\n /** Sayfa değiştiğinde ekran okuyucuya duyurulacak metin (\"3. sayfa · 1.248 sonuç\"). */\n formatAnnouncement?: (page: number, totalPages: number) => string;\n /**\n * Sayfa değiştiren bir tıklamadan sonra kaydırma. `'top'` verilirse pencere en üste alınır —\n * çağıran tarafta kaydırma kodu yazılmaz.\n */\n scrollTo?: 'top';\n className?: string;\n testId?: string;\n};\n\ntype LinkProps = BaseProps & {\n /** Sayfa numarasının adresini üretir. */\n buildHref: (page: number) => string;\n onPageChange?: never;\n /** Yönlendiriciye geçirilecek ek props (`{ scroll: false }` gibi). */\n linkProps?: UiLinkExtraProps;\n};\n\ntype ButtonProps = BaseProps & {\n /** Sayfa değişimi adres çubuğu YERİNE buraya bildirilir. */\n onPageChange: (page: number) => void;\n buildHref?: never;\n linkProps?: never;\n};\n\ntype Props = LinkProps | ButtonProps;\n\n/** Kenarlarda 1 ve son sayfa her zaman gorunur; arasi kisaltilir. */\nconst buildPageList = (page: number, totalPages: number): (number | 'gap')[] => {\n if (totalPages <= 7) return Array.from({ length: totalPages }, (_, index) => index + 1);\n\n const pages = new Set<number>([1, totalPages, page]);\n if (page - 1 > 1) pages.add(page - 1);\n if (page + 1 < totalPages) pages.add(page + 1);\n\n const sorted = [...pages].sort((left, right) => left - right);\n const pagesWithGaps: (number | 'gap')[] = [];\n\n sorted.forEach((value, index) => {\n if (index > 0 && value - sorted[index - 1] > 1) pagesWithGaps.push('gap');\n pagesWithGaps.push(value);\n });\n\n return pagesWithGaps;\n};\n\n/** Sayfalama. */\nconst Pagination: FC<Props> = ({\n page,\n totalPages,\n label,\n previousLabel,\n nextLabel,\n buildHref,\n onPageChange,\n linkProps,\n formatAnnouncement,\n scrollTo,\n className,\n testId,\n}) => {\n const { labels } = useUi();\n const announce = useAnnounce();\n\n /*\n * Sayfa DEGISTIGINDE duyurulur, ilk cizimde degil: acilista \"1. sayfa\" demek, kullanicinin\n * sormadigi bir soruyu cevaplamak ve ekran okuyucunun sayfa…\n */\n const previousPage = useRef(page);\n\n useEffect(() => {\n if (previousPage.current === page) return;\n previousPage.current = page;\n\n if (formatAnnouncement) announce(formatAnnouncement(page, totalPages));\n }, [page, totalPages, formatAnnouncement, announce]);\n const pages = useMemo(() => buildPageList(page, totalPages), [page, totalPages]);\n\n if (totalPages <= 1) return null;\n\n /*\n * Sayfa GERCEKTEN degistiyse kaydirilir: etkin sayfaya basmak icerigi degistirmiyor, oyleyse\n * gorunumu de degistirmemeli.\n */\n const scrollAfterChange = (target: number) => {\n if (scrollTo === 'top' && target !== page) scrollWindowToTop();\n };\n\n const goTo = (target: number) => {\n if (!onPageChange) return;\n\n onPageChange(target);\n scrollAfterChange(target);\n };\n\n const extraOnClick = linkProps?.onClick as\n ((event: MouseEvent<HTMLAnchorElement>) => void) | undefined;\n\n /*\n * Yeni sekmede acan tiklamada (orta tus, Ctrl/Cmd) MEVCUT sayfa yerinde kalir; onu basa almak\n * kullanicinin okudugu yeri elinden almak olurdu.\n */\n const handleLinkClick = (event: MouseEvent<HTMLAnchorElement>, target: number) => {\n extraOnClick?.(event);\n\n if (event.defaultPrevented || event.button !== 0) return;\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n\n scrollAfterChange(target);\n };\n\n /* Baglanti kipinde oklar da BAGLANTIDIR. */\n const renderArrow = (target: number, arrowLabel: string, icon: ReactNode) => {\n const isDisabled = target < 1 || target > totalPages;\n\n if (buildHref && !isDisabled)\n return (\n <UiLink\n href={buildHref(target)}\n className={styles.pagination__arrow}\n aria-label={arrowLabel}\n {...linkProps}\n onClick={event => handleLinkClick(event, target)}\n >\n {icon}\n </UiLink>\n );\n\n return (\n <IconButton\n className={styles.pagination__arrow}\n icon={icon}\n label={arrowLabel}\n variant=\"secondary\"\n disabled={isDisabled}\n onClick={() => goTo(target)}\n />\n );\n };\n\n return (\n <nav\n className={cx(styles.pagination, className)}\n aria-label={resolveLabel('Pagination.label', label, labels?.pagination?.label)}\n data-testid={testId}\n >\n {renderArrow(\n page - 1,\n resolveLabel('Pagination.previousLabel', previousLabel, labels?.pagination?.previous),\n <CaretLeftFill aria-hidden />,\n )}\n\n <ul className={styles.pagination__list}>\n {pages.map((value, index) =>\n value === 'gap' ? (\n <li key={`gap-${index}`} className={styles.pagination__gap} aria-hidden>\n …\n </li>\n ) : (\n <li key={value}>\n {buildHref ? (\n <UiLink\n href={buildHref(value)}\n className={cx(\n styles.pagination__page,\n value === page && styles['pagination__page--active'],\n )}\n aria-current={value === page ? 'page' : undefined}\n {...linkProps}\n onClick={event => handleLinkClick(event, value)}\n >\n {value}\n </UiLink>\n ) : (\n <Button\n variant={UIVariant.SECONDARY}\n size={UISize.SMALL}\n className={cx(\n styles.pagination__page,\n value === page && styles['pagination__page--active'],\n )}\n aria-current={value === page ? 'page' : undefined}\n onClick={() => goTo(value)}\n >\n {value}\n </Button>\n )}\n </li>\n ),\n )}\n </ul>\n\n {renderArrow(\n page + 1,\n resolveLabel('Pagination.nextLabel', nextLabel, labels?.pagination?.next),\n <CaretRightFill aria-hidden />,\n )}\n </nav>\n );\n};\n\nexport default /*#__PURE__*/ memo(Pagination) as typeof Pagination;\n"],"names":["buildPageList","page","totalPages","_","index","pages","sorted","left","right","pagesWithGaps","value","Pagination","label","previousLabel","nextLabel","buildHref","onPageChange","linkProps","formatAnnouncement","scrollTo","className","testId","labels","useUi","announce","useAnnounce","previousPage","useRef","useEffect","useMemo","scrollAfterChange","target","scrollWindowToTop","goTo","extraOnClick","handleLinkClick","event","renderArrow","arrowLabel","icon","isDisabled","jsx","UiLink","styles","IconButton","jsxs","cx","resolveLabel","_a","_b","CaretLeftFill","Button","UIVariant","UISize","_c","CaretRightFill"],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { UiLinkExtraProps } from '../../types/link.type.cjs';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
page: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
/** Gezinme bölgesinin erişilebilir adı. */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Verilmezse `labels.pagination.previous`. */
|
|
9
|
+
previousLabel?: string;
|
|
10
|
+
/** Verilmezse `labels.pagination.next`. */
|
|
11
|
+
nextLabel?: string;
|
|
12
|
+
/** Sayfa değiştiğinde ekran okuyucuya duyurulacak metin ("3. sayfa · 1.248 sonuç"). */
|
|
13
|
+
formatAnnouncement?: (page: number, totalPages: number) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Sayfa değiştiren bir tıklamadan sonra kaydırma. `'top'` verilirse pencere en üste alınır —
|
|
16
|
+
* çağıran tarafta kaydırma kodu yazılmaz.
|
|
17
|
+
*/
|
|
18
|
+
scrollTo?: 'top';
|
|
19
|
+
className?: string;
|
|
20
|
+
testId?: string;
|
|
21
|
+
};
|
|
22
|
+
type LinkProps = BaseProps & {
|
|
23
|
+
/** Sayfa numarasının adresini üretir. */
|
|
24
|
+
buildHref: (page: number) => string;
|
|
25
|
+
onPageChange?: never;
|
|
26
|
+
/** Yönlendiriciye geçirilecek ek props (`{ scroll: false }` gibi). */
|
|
27
|
+
linkProps?: UiLinkExtraProps;
|
|
28
|
+
};
|
|
29
|
+
type ButtonProps = BaseProps & {
|
|
30
|
+
/** Sayfa değişimi adres çubuğu YERİNE buraya bildirilir. */
|
|
31
|
+
onPageChange: (page: number) => void;
|
|
32
|
+
buildHref?: never;
|
|
33
|
+
linkProps?: never;
|
|
34
|
+
};
|
|
35
|
+
type Props = LinkProps | ButtonProps;
|
|
36
|
+
/** Sayfalama. */
|
|
37
|
+
declare const Pagination: FC<Props>;
|
|
38
|
+
declare const _default: typeof Pagination;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { UiLinkExtraProps } from '../../types/link.type.js';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
page: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
/** Gezinme bölgesinin erişilebilir adı. */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Verilmezse `labels.pagination.previous`. */
|
|
9
|
+
previousLabel?: string;
|
|
10
|
+
/** Verilmezse `labels.pagination.next`. */
|
|
11
|
+
nextLabel?: string;
|
|
12
|
+
/** Sayfa değiştiğinde ekran okuyucuya duyurulacak metin ("3. sayfa · 1.248 sonuç"). */
|
|
13
|
+
formatAnnouncement?: (page: number, totalPages: number) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Sayfa değiştiren bir tıklamadan sonra kaydırma. `'top'` verilirse pencere en üste alınır —
|
|
16
|
+
* çağıran tarafta kaydırma kodu yazılmaz.
|
|
17
|
+
*/
|
|
18
|
+
scrollTo?: 'top';
|
|
19
|
+
className?: string;
|
|
20
|
+
testId?: string;
|
|
21
|
+
};
|
|
22
|
+
type LinkProps = BaseProps & {
|
|
23
|
+
/** Sayfa numarasının adresini üretir. */
|
|
24
|
+
buildHref: (page: number) => string;
|
|
25
|
+
onPageChange?: never;
|
|
26
|
+
/** Yönlendiriciye geçirilecek ek props (`{ scroll: false }` gibi). */
|
|
27
|
+
linkProps?: UiLinkExtraProps;
|
|
28
|
+
};
|
|
29
|
+
type ButtonProps = BaseProps & {
|
|
30
|
+
/** Sayfa değişimi adres çubuğu YERİNE buraya bildirilir. */
|
|
31
|
+
onPageChange: (page: number) => void;
|
|
32
|
+
buildHref?: never;
|
|
33
|
+
linkProps?: never;
|
|
34
|
+
};
|
|
35
|
+
type Props = LinkProps | ButtonProps;
|
|
36
|
+
/** Sayfalama. */
|
|
37
|
+
declare const Pagination: FC<Props>;
|
|
38
|
+
declare const _default: typeof Pagination;
|
|
39
|
+
export default _default;
|