@handijitcom/ui 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1025 -2
- package/build/base.css +1 -0
- package/build/calendar.cjs +2 -0
- package/build/calendar.cjs.map +1 -0
- package/build/calendar.css +1 -0
- package/build/calendar.js +741 -0
- package/build/calendar.js.map +1 -0
- package/build/charts.cjs +2 -0
- package/build/charts.cjs.map +1 -0
- package/build/charts.css +1 -0
- package/build/charts.js +1866 -0
- package/build/charts.js.map +1 -0
- package/build/chat.cjs +4 -0
- package/build/chat.cjs.map +1 -0
- package/build/chat.css +1 -0
- package/build/chat.js +1126 -0
- package/build/chat.js.map +1 -0
- package/build/components/Accordion/index.cjs +2 -0
- package/build/components/Accordion/index.cjs.map +1 -0
- package/build/components/Accordion/index.d.cts +29 -0
- package/build/components/Accordion/index.d.ts +29 -0
- package/build/components/Accordion/index.js +42 -0
- package/build/components/Accordion/index.js.map +1 -0
- package/build/components/Accordion/style.css +1 -0
- package/build/components/Alert/index.cjs +2 -0
- package/build/components/Alert/index.cjs.map +1 -0
- package/build/components/Alert/index.d.cts +15 -0
- package/build/components/Alert/index.d.ts +15 -0
- package/build/components/Alert/index.js +32 -0
- package/build/components/Alert/index.js.map +1 -0
- package/build/components/Alert/style.css +1 -0
- package/build/components/Avatar/index.cjs +2 -0
- package/build/components/Avatar/index.cjs.map +1 -0
- package/build/components/Avatar/index.d.cts +26 -0
- package/build/components/Avatar/index.d.ts +26 -0
- package/build/components/Avatar/index.js +57 -0
- package/build/components/Avatar/index.js.map +1 -0
- package/build/components/Avatar/style.css +1 -0
- package/build/components/Badge/index.cjs +2 -0
- package/build/components/Badge/index.cjs.map +1 -0
- package/build/components/Badge/index.d.cts +21 -0
- package/build/components/Badge/index.d.ts +21 -0
- package/build/components/Badge/index.js +26 -0
- package/build/components/Badge/index.js.map +1 -0
- package/build/components/Badge/style.css +1 -0
- package/build/components/BottomSheet/index.cjs +2 -0
- package/build/components/BottomSheet/index.cjs.map +1 -0
- package/build/components/BottomSheet/index.d.cts +21 -0
- package/build/components/BottomSheet/index.d.ts +21 -0
- package/build/components/BottomSheet/index.js +85 -0
- package/build/components/BottomSheet/index.js.map +1 -0
- package/build/components/BottomSheet/style.css +1 -0
- package/build/components/Breadcrumb/index.cjs +2 -0
- package/build/components/Breadcrumb/index.cjs.map +1 -0
- package/build/components/Breadcrumb/index.d.cts +20 -0
- package/build/components/Breadcrumb/index.d.ts +20 -0
- package/build/components/Breadcrumb/index.js +31 -0
- package/build/components/Breadcrumb/index.js.map +1 -0
- package/build/components/Breadcrumb/style.css +1 -0
- package/build/components/Button/index.cjs +2 -0
- package/build/components/Button/index.cjs.map +1 -0
- package/build/components/Button/index.d.cts +32 -0
- package/build/components/Button/index.d.ts +32 -0
- package/build/components/Button/index.js +88 -0
- package/build/components/Button/index.js.map +1 -0
- package/build/components/Button/style.css +1 -0
- package/build/components/Card/index.cjs +2 -0
- package/build/components/Card/index.cjs.map +1 -0
- package/build/components/Card/index.d.cts +51 -0
- package/build/components/Card/index.d.ts +51 -0
- package/build/components/Card/index.js +58 -0
- package/build/components/Card/index.js.map +1 -0
- package/build/components/Card/style.css +1 -0
- package/build/components/Carousel/index.cjs +2 -0
- package/build/components/Carousel/index.cjs.map +1 -0
- package/build/components/Carousel/index.d.cts +24 -0
- package/build/components/Carousel/index.d.ts +24 -0
- package/build/components/Carousel/index.js +111 -0
- package/build/components/Carousel/index.js.map +1 -0
- package/build/components/Carousel/style.css +1 -0
- package/build/components/Checkbox/index.cjs +2 -0
- package/build/components/Checkbox/index.cjs.map +1 -0
- package/build/components/Checkbox/index.d.cts +15 -0
- package/build/components/Checkbox/index.d.ts +15 -0
- package/build/components/Checkbox/index.js +50 -0
- package/build/components/Checkbox/index.js.map +1 -0
- package/build/components/Checkbox/style.css +1 -0
- package/build/components/Chip/index.cjs +2 -0
- package/build/components/Chip/index.cjs.map +1 -0
- package/build/components/Chip/index.d.cts +27 -0
- package/build/components/Chip/index.d.ts +27 -0
- package/build/components/Chip/index.js +67 -0
- package/build/components/Chip/index.js.map +1 -0
- package/build/components/Chip/style.css +1 -0
- package/build/components/ChipGroup/index.cjs +2 -0
- package/build/components/ChipGroup/index.cjs.map +1 -0
- package/build/components/ChipGroup/index.d.cts +53 -0
- package/build/components/ChipGroup/index.d.ts +53 -0
- package/build/components/ChipGroup/index.js +81 -0
- package/build/components/ChipGroup/index.js.map +1 -0
- package/build/components/ChipGroup/style.css +1 -0
- package/build/components/CodeBadge/index.cjs +2 -0
- package/build/components/CodeBadge/index.cjs.map +1 -0
- package/build/components/CodeBadge/index.d.cts +36 -0
- package/build/components/CodeBadge/index.d.ts +36 -0
- package/build/components/CodeBadge/index.js +62 -0
- package/build/components/CodeBadge/index.js.map +1 -0
- package/build/components/CodeBadge/style.css +1 -0
- package/build/components/Combobox/index.cjs +2 -0
- package/build/components/Combobox/index.cjs.map +1 -0
- package/build/components/Combobox/index.d.cts +8 -0
- package/build/components/Combobox/index.d.ts +8 -0
- package/build/components/Combobox/index.js +332 -0
- package/build/components/Combobox/index.js.map +1 -0
- package/build/components/Combobox/style.css +1 -0
- package/build/components/CommandPalette/index.cjs +2 -0
- package/build/components/CommandPalette/index.cjs.map +1 -0
- package/build/components/CommandPalette/index.d.cts +37 -0
- package/build/components/CommandPalette/index.d.ts +37 -0
- package/build/components/CommandPalette/index.js +181 -0
- package/build/components/CommandPalette/index.js.map +1 -0
- package/build/components/CommandPalette/style.css +1 -0
- package/build/components/ConfirmDialog/index.cjs +2 -0
- package/build/components/ConfirmDialog/index.cjs.map +1 -0
- package/build/components/ConfirmDialog/index.d.cts +34 -0
- package/build/components/ConfirmDialog/index.d.ts +34 -0
- package/build/components/ConfirmDialog/index.js +85 -0
- package/build/components/ConfirmDialog/index.js.map +1 -0
- package/build/components/CopyField/index.cjs +2 -0
- package/build/components/CopyField/index.cjs.map +1 -0
- package/build/components/CopyField/index.d.cts +20 -0
- package/build/components/CopyField/index.d.ts +20 -0
- package/build/components/CopyField/index.js +44 -0
- package/build/components/CopyField/index.js.map +1 -0
- package/build/components/CopyField/style.css +1 -0
- package/build/components/DataTable/index.cjs +2 -0
- package/build/components/DataTable/index.cjs.map +1 -0
- package/build/components/DataTable/index.d.cts +60 -0
- package/build/components/DataTable/index.d.ts +60 -0
- package/build/components/DataTable/index.js +109 -0
- package/build/components/DataTable/index.js.map +1 -0
- package/build/components/DataTable/style.css +1 -0
- package/build/components/DateField/index.cjs +2 -0
- package/build/components/DateField/index.cjs.map +1 -0
- package/build/components/DateField/index.d.cts +57 -0
- package/build/components/DateField/index.d.ts +57 -0
- package/build/components/DateField/index.js +90 -0
- package/build/components/DateField/index.js.map +1 -0
- package/build/components/DateField/style.css +1 -0
- package/build/components/Directory/index.cjs +2 -0
- package/build/components/Directory/index.cjs.map +1 -0
- package/build/components/Directory/index.d.cts +51 -0
- package/build/components/Directory/index.d.ts +51 -0
- package/build/components/Directory/index.js +46 -0
- package/build/components/Directory/index.js.map +1 -0
- package/build/components/Directory/style.css +1 -0
- package/build/components/Disclosure/index.cjs +2 -0
- package/build/components/Disclosure/index.cjs.map +1 -0
- package/build/components/Disclosure/index.d.cts +34 -0
- package/build/components/Disclosure/index.d.ts +34 -0
- package/build/components/Disclosure/index.js +64 -0
- package/build/components/Disclosure/index.js.map +1 -0
- package/build/components/Disclosure/style.css +1 -0
- package/build/components/Divider/index.cjs +2 -0
- package/build/components/Divider/index.cjs.map +1 -0
- package/build/components/Divider/index.d.cts +10 -0
- package/build/components/Divider/index.d.ts +10 -0
- package/build/components/Divider/index.js +24 -0
- package/build/components/Divider/index.js.map +1 -0
- package/build/components/Divider/style.css +1 -0
- package/build/components/Drawer/index.cjs +2 -0
- package/build/components/Drawer/index.cjs.map +1 -0
- package/build/components/Drawer/index.d.cts +29 -0
- package/build/components/Drawer/index.d.ts +29 -0
- package/build/components/Drawer/index.js +91 -0
- package/build/components/Drawer/index.js.map +1 -0
- package/build/components/Drawer/style.css +1 -0
- package/build/components/EmptyState/index.cjs +2 -0
- package/build/components/EmptyState/index.cjs.map +1 -0
- package/build/components/EmptyState/index.d.cts +19 -0
- package/build/components/EmptyState/index.d.ts +19 -0
- package/build/components/EmptyState/index.js +35 -0
- package/build/components/EmptyState/index.js.map +1 -0
- package/build/components/EmptyState/style.css +1 -0
- package/build/components/Field/index.cjs +2 -0
- package/build/components/Field/index.cjs.map +1 -0
- package/build/components/Field/index.d.cts +37 -0
- package/build/components/Field/index.d.ts +37 -0
- package/build/components/Field/index.js +54 -0
- package/build/components/Field/index.js.map +1 -0
- package/build/components/Field/style.css +1 -0
- package/build/components/FileUpload/index.cjs +2 -0
- package/build/components/FileUpload/index.cjs.map +1 -0
- package/build/components/FileUpload/index.d.cts +42 -0
- package/build/components/FileUpload/index.d.ts +42 -0
- package/build/components/FileUpload/index.js +145 -0
- package/build/components/FileUpload/index.js.map +1 -0
- package/build/components/FileUpload/style.css +1 -0
- package/build/components/FilterBar/index.cjs +2 -0
- package/build/components/FilterBar/index.cjs.map +1 -0
- package/build/components/FilterBar/index.d.cts +28 -0
- package/build/components/FilterBar/index.d.ts +28 -0
- package/build/components/FilterBar/index.js +35 -0
- package/build/components/FilterBar/index.js.map +1 -0
- package/build/components/FilterBar/style.css +1 -0
- package/build/components/IconButton/index.cjs +2 -0
- package/build/components/IconButton/index.cjs.map +1 -0
- package/build/components/IconButton/index.d.cts +26 -0
- package/build/components/IconButton/index.d.ts +26 -0
- package/build/components/IconButton/index.js +61 -0
- package/build/components/IconButton/index.js.map +1 -0
- package/build/components/IconButton/style.css +1 -0
- package/build/components/Input/index.cjs +2 -0
- package/build/components/Input/index.cjs.map +1 -0
- package/build/components/Input/index.d.cts +15 -0
- package/build/components/Input/index.d.ts +15 -0
- package/build/components/Input/index.js +52 -0
- package/build/components/Input/index.js.map +1 -0
- package/build/components/Input/style.css +1 -0
- package/build/components/Kbd/index.cjs +2 -0
- package/build/components/Kbd/index.cjs.map +1 -0
- package/build/components/Kbd/index.d.cts +12 -0
- package/build/components/Kbd/index.d.ts +12 -0
- package/build/components/Kbd/index.js +13 -0
- package/build/components/Kbd/index.js.map +1 -0
- package/build/components/Kbd/style.css +1 -0
- package/build/components/Link/index.cjs +2 -0
- package/build/components/Link/index.cjs.map +1 -0
- package/build/components/Link/index.d.cts +5 -0
- package/build/components/Link/index.d.ts +5 -0
- package/build/components/Link/index.js +11 -0
- package/build/components/Link/index.js.map +1 -0
- package/build/components/Menu/index.cjs +2 -0
- package/build/components/Menu/index.cjs.map +1 -0
- package/build/components/Menu/index.d.cts +46 -0
- package/build/components/Menu/index.d.ts +46 -0
- package/build/components/Menu/index.js +241 -0
- package/build/components/Menu/index.js.map +1 -0
- package/build/components/Menu/style.css +1 -0
- package/build/components/Modal/index.cjs +2 -0
- package/build/components/Modal/index.cjs.map +1 -0
- package/build/components/Modal/index.d.cts +35 -0
- package/build/components/Modal/index.d.ts +35 -0
- package/build/components/Modal/index.js +95 -0
- package/build/components/Modal/index.js.map +1 -0
- package/build/components/Modal/style.css +1 -0
- package/build/components/MoneyInput/index.cjs +2 -0
- package/build/components/MoneyInput/index.cjs.map +1 -0
- package/build/components/MoneyInput/index.d.cts +17 -0
- package/build/components/MoneyInput/index.d.ts +17 -0
- package/build/components/MoneyInput/index.js +22 -0
- package/build/components/MoneyInput/index.js.map +1 -0
- package/build/components/PageHeader/index.cjs +2 -0
- package/build/components/PageHeader/index.cjs.map +1 -0
- package/build/components/PageHeader/index.d.cts +24 -0
- package/build/components/PageHeader/index.d.ts +24 -0
- package/build/components/PageHeader/index.js +34 -0
- package/build/components/PageHeader/index.js.map +1 -0
- package/build/components/PageHeader/style.css +1 -0
- package/build/components/Pagination/index.cjs +2 -0
- package/build/components/Pagination/index.cjs.map +1 -0
- package/build/components/Pagination/index.d.cts +39 -0
- package/build/components/Pagination/index.d.ts +39 -0
- package/build/components/Pagination/index.js +128 -0
- package/build/components/Pagination/index.js.map +1 -0
- package/build/components/Pagination/style.css +1 -0
- package/build/components/Panel/index.cjs +2 -0
- package/build/components/Panel/index.cjs.map +1 -0
- package/build/components/Panel/index.d.cts +43 -0
- package/build/components/Panel/index.d.ts +43 -0
- package/build/components/Panel/index.js +55 -0
- package/build/components/Panel/index.js.map +1 -0
- package/build/components/Panel/style.css +1 -0
- package/build/components/PasswordInput/index.cjs +2 -0
- package/build/components/PasswordInput/index.cjs.map +1 -0
- package/build/components/PasswordInput/index.d.cts +14 -0
- package/build/components/PasswordInput/index.d.ts +14 -0
- package/build/components/PasswordInput/index.js +40 -0
- package/build/components/PasswordInput/index.js.map +1 -0
- package/build/components/PasswordInput/style.css +1 -0
- package/build/components/PercentInput/index.cjs +2 -0
- package/build/components/PercentInput/index.cjs.map +1 -0
- package/build/components/PercentInput/index.d.cts +10 -0
- package/build/components/PercentInput/index.d.ts +10 -0
- package/build/components/PercentInput/index.js +14 -0
- package/build/components/PercentInput/index.js.map +1 -0
- package/build/components/Popover/index.cjs +2 -0
- package/build/components/Popover/index.cjs.map +1 -0
- package/build/components/Popover/index.d.cts +26 -0
- package/build/components/Popover/index.d.ts +26 -0
- package/build/components/Popover/index.js +106 -0
- package/build/components/Popover/index.js.map +1 -0
- package/build/components/Popover/style.css +1 -0
- package/build/components/Price/index.cjs +2 -0
- package/build/components/Price/index.cjs.map +1 -0
- package/build/components/Price/index.d.cts +22 -0
- package/build/components/Price/index.d.ts +22 -0
- package/build/components/Price/index.js +46 -0
- package/build/components/Price/index.js.map +1 -0
- package/build/components/Price/style.css +1 -0
- package/build/components/Progress/index.cjs +2 -0
- package/build/components/Progress/index.cjs.map +1 -0
- package/build/components/Progress/index.d.cts +59 -0
- package/build/components/Progress/index.d.ts +59 -0
- package/build/components/Progress/index.js +124 -0
- package/build/components/Progress/index.js.map +1 -0
- package/build/components/Progress/style.css +1 -0
- package/build/components/PromptDialog/index.cjs +2 -0
- package/build/components/PromptDialog/index.cjs.map +1 -0
- package/build/components/PromptDialog/index.d.cts +36 -0
- package/build/components/PromptDialog/index.d.ts +36 -0
- package/build/components/PromptDialog/index.js +119 -0
- package/build/components/PromptDialog/index.js.map +1 -0
- package/build/components/PromptDialog/style.css +1 -0
- package/build/components/QuantityInput/index.cjs +2 -0
- package/build/components/QuantityInput/index.cjs.map +1 -0
- package/build/components/QuantityInput/index.d.cts +17 -0
- package/build/components/QuantityInput/index.d.ts +17 -0
- package/build/components/QuantityInput/index.js +23 -0
- package/build/components/QuantityInput/index.js.map +1 -0
- package/build/components/QuantityStepper/index.cjs +2 -0
- package/build/components/QuantityStepper/index.cjs.map +1 -0
- package/build/components/QuantityStepper/index.d.cts +37 -0
- package/build/components/QuantityStepper/index.d.ts +37 -0
- package/build/components/QuantityStepper/index.js +118 -0
- package/build/components/QuantityStepper/index.js.map +1 -0
- package/build/components/QuantityStepper/style.css +1 -0
- package/build/components/Radio/index.cjs +2 -0
- package/build/components/Radio/index.cjs.map +1 -0
- package/build/components/Radio/index.d.cts +18 -0
- package/build/components/Radio/index.d.ts +18 -0
- package/build/components/Radio/index.js +53 -0
- package/build/components/Radio/index.js.map +1 -0
- package/build/components/Radio/style.css +1 -0
- package/build/components/RadioCard/index.cjs +2 -0
- package/build/components/RadioCard/index.cjs.map +1 -0
- package/build/components/RadioCard/index.d.cts +16 -0
- package/build/components/RadioCard/index.d.ts +16 -0
- package/build/components/RadioCard/index.js +48 -0
- package/build/components/RadioCard/index.js.map +1 -0
- package/build/components/RadioCard/style.css +1 -0
- package/build/components/RangeSlider/index.cjs +2 -0
- package/build/components/RangeSlider/index.cjs.map +1 -0
- package/build/components/RangeSlider/index.d.cts +45 -0
- package/build/components/RangeSlider/index.d.ts +45 -0
- package/build/components/RangeSlider/index.js +121 -0
- package/build/components/RangeSlider/index.js.map +1 -0
- package/build/components/RangeSlider/style.css +1 -0
- package/build/components/RateInput/index.cjs +2 -0
- package/build/components/RateInput/index.cjs.map +1 -0
- package/build/components/RateInput/index.d.cts +9 -0
- package/build/components/RateInput/index.d.ts +9 -0
- package/build/components/RateInput/index.js +18 -0
- package/build/components/RateInput/index.js.map +1 -0
- package/build/components/Rating/index.cjs +2 -0
- package/build/components/Rating/index.cjs.map +1 -0
- package/build/components/Rating/index.d.cts +16 -0
- package/build/components/Rating/index.d.ts +16 -0
- package/build/components/Rating/index.js +29 -0
- package/build/components/Rating/index.js.map +1 -0
- package/build/components/Rating/style.css +1 -0
- package/build/components/RatingInput/index.cjs +2 -0
- package/build/components/RatingInput/index.cjs.map +1 -0
- package/build/components/RatingInput/index.d.cts +34 -0
- package/build/components/RatingInput/index.d.ts +34 -0
- package/build/components/RatingInput/index.js +89 -0
- package/build/components/RatingInput/index.js.map +1 -0
- package/build/components/RatingInput/style.css +1 -0
- package/build/components/ScaledInput/index.cjs +2 -0
- package/build/components/ScaledInput/index.cjs.map +1 -0
- package/build/components/ScaledInput/index.d.cts +77 -0
- package/build/components/ScaledInput/index.d.ts +77 -0
- package/build/components/ScaledInput/index.js +77 -0
- package/build/components/ScaledInput/index.js.map +1 -0
- package/build/components/ScaledInput/style.css +1 -0
- package/build/components/ScrollArea/index.cjs +2 -0
- package/build/components/ScrollArea/index.cjs.map +1 -0
- package/build/components/ScrollArea/index.d.cts +23 -0
- package/build/components/ScrollArea/index.d.ts +23 -0
- package/build/components/ScrollArea/index.js +65 -0
- package/build/components/ScrollArea/index.js.map +1 -0
- package/build/components/ScrollArea/style.css +1 -0
- package/build/components/SectionHeader/index.cjs +2 -0
- package/build/components/SectionHeader/index.cjs.map +1 -0
- package/build/components/SectionHeader/index.d.cts +17 -0
- package/build/components/SectionHeader/index.d.ts +17 -0
- package/build/components/SectionHeader/index.js +25 -0
- package/build/components/SectionHeader/index.js.map +1 -0
- package/build/components/SectionHeader/style.css +1 -0
- package/build/components/SegmentedControl/index.cjs +2 -0
- package/build/components/SegmentedControl/index.cjs.map +1 -0
- package/build/components/SegmentedControl/index.d.cts +39 -0
- package/build/components/SegmentedControl/index.d.ts +39 -0
- package/build/components/SegmentedControl/index.js +84 -0
- package/build/components/SegmentedControl/index.js.map +1 -0
- package/build/components/SegmentedControl/style.css +1 -0
- package/build/components/Select/index.cjs +2 -0
- package/build/components/Select/index.cjs.map +1 -0
- package/build/components/Select/index.d.cts +52 -0
- package/build/components/Select/index.d.ts +52 -0
- package/build/components/Select/index.js +206 -0
- package/build/components/Select/index.js.map +1 -0
- package/build/components/Select/style.css +1 -0
- package/build/components/Skeleton/index.cjs +2 -0
- package/build/components/Skeleton/index.cjs.map +1 -0
- package/build/components/Skeleton/index.d.cts +25 -0
- package/build/components/Skeleton/index.d.ts +25 -0
- package/build/components/Skeleton/index.js +50 -0
- package/build/components/Skeleton/index.js.map +1 -0
- package/build/components/Skeleton/style.css +1 -0
- package/build/components/Spinner/index.cjs +2 -0
- package/build/components/Spinner/index.cjs.map +1 -0
- package/build/components/Spinner/index.d.cts +16 -0
- package/build/components/Spinner/index.d.ts +16 -0
- package/build/components/Spinner/index.js +15 -0
- package/build/components/Spinner/index.js.map +1 -0
- package/build/components/Spinner/style.css +1 -0
- package/build/components/Stat/index.cjs +2 -0
- package/build/components/Stat/index.cjs.map +1 -0
- package/build/components/Stat/index.d.cts +34 -0
- package/build/components/Stat/index.d.ts +34 -0
- package/build/components/Stat/index.js +72 -0
- package/build/components/Stat/index.js.map +1 -0
- package/build/components/Stat/style.css +1 -0
- package/build/components/StatusDot/index.cjs +2 -0
- package/build/components/StatusDot/index.cjs.map +1 -0
- package/build/components/StatusDot/index.d.cts +23 -0
- package/build/components/StatusDot/index.d.ts +23 -0
- package/build/components/StatusDot/index.js +23 -0
- package/build/components/StatusDot/index.js.map +1 -0
- package/build/components/StatusDot/style.css +1 -0
- package/build/components/Steps/index.cjs +2 -0
- package/build/components/Steps/index.cjs.map +1 -0
- package/build/components/Steps/index.d.cts +23 -0
- package/build/components/Steps/index.d.ts +23 -0
- package/build/components/Steps/index.js +69 -0
- package/build/components/Steps/index.js.map +1 -0
- package/build/components/Steps/style.css +1 -0
- package/build/components/SummaryCard/index.cjs +2 -0
- package/build/components/SummaryCard/index.cjs.map +1 -0
- package/build/components/SummaryCard/index.d.cts +24 -0
- package/build/components/SummaryCard/index.d.ts +24 -0
- package/build/components/SummaryCard/index.js +33 -0
- package/build/components/SummaryCard/index.js.map +1 -0
- package/build/components/SummaryCard/style.css +1 -0
- package/build/components/Switch/index.cjs +2 -0
- package/build/components/Switch/index.cjs.map +1 -0
- package/build/components/Switch/index.d.cts +21 -0
- package/build/components/Switch/index.d.ts +21 -0
- package/build/components/Switch/index.js +60 -0
- package/build/components/Switch/index.js.map +1 -0
- package/build/components/Switch/style.css +1 -0
- package/build/components/Table/index.cjs +2 -0
- package/build/components/Table/index.cjs.map +1 -0
- package/build/components/Table/index.d.cts +28 -0
- package/build/components/Table/index.d.ts +28 -0
- package/build/components/Table/index.js +58 -0
- package/build/components/Table/index.js.map +1 -0
- package/build/components/Table/style.css +1 -0
- package/build/components/TableCheckbox/index.cjs +2 -0
- package/build/components/TableCheckbox/index.cjs.map +1 -0
- package/build/components/TableCheckbox/index.d.cts +15 -0
- package/build/components/TableCheckbox/index.d.ts +15 -0
- package/build/components/TableCheckbox/index.js +31 -0
- package/build/components/TableCheckbox/index.js.map +1 -0
- package/build/components/TableCheckbox/style.css +1 -0
- package/build/components/Tabs/index.cjs +2 -0
- package/build/components/Tabs/index.cjs.map +1 -0
- package/build/components/Tabs/index.d.cts +27 -0
- package/build/components/Tabs/index.d.ts +27 -0
- package/build/components/Tabs/index.js +102 -0
- package/build/components/Tabs/index.js.map +1 -0
- package/build/components/Tabs/style.css +1 -0
- package/build/components/TagInput/index.cjs +2 -0
- package/build/components/TagInput/index.cjs.map +1 -0
- package/build/components/TagInput/index.d.cts +43 -0
- package/build/components/TagInput/index.d.ts +43 -0
- package/build/components/TagInput/index.js +134 -0
- package/build/components/TagInput/index.js.map +1 -0
- package/build/components/TagInput/style.css +1 -0
- package/build/components/TextLink/index.cjs +2 -0
- package/build/components/TextLink/index.cjs.map +1 -0
- package/build/components/TextLink/index.d.cts +16 -0
- package/build/components/TextLink/index.d.ts +16 -0
- package/build/components/TextLink/index.js +32 -0
- package/build/components/TextLink/index.js.map +1 -0
- package/build/components/TextLink/style.css +1 -0
- package/build/components/Textarea/index.cjs +2 -0
- package/build/components/Textarea/index.cjs.map +1 -0
- package/build/components/Textarea/index.d.cts +20 -0
- package/build/components/Textarea/index.d.ts +20 -0
- package/build/components/Textarea/index.js +68 -0
- package/build/components/Textarea/index.js.map +1 -0
- package/build/components/Textarea/style.css +1 -0
- package/build/components/Tile/index.cjs +2 -0
- package/build/components/Tile/index.cjs.map +1 -0
- package/build/components/Tile/index.d.cts +19 -0
- package/build/components/Tile/index.d.ts +19 -0
- package/build/components/Tile/index.js +24 -0
- package/build/components/Tile/index.js.map +1 -0
- package/build/components/Tile/style.css +1 -0
- package/build/components/Timeline/index.cjs +2 -0
- package/build/components/Timeline/index.cjs.map +1 -0
- package/build/components/Timeline/index.d.cts +24 -0
- package/build/components/Timeline/index.d.ts +24 -0
- package/build/components/Timeline/index.js +56 -0
- package/build/components/Timeline/index.js.map +1 -0
- package/build/components/Timeline/style.css +1 -0
- package/build/components/Toast/index.cjs +2 -0
- package/build/components/Toast/index.cjs.map +1 -0
- package/build/components/Toast/index.d.cts +63 -0
- package/build/components/Toast/index.d.ts +63 -0
- package/build/components/Toast/index.js +159 -0
- package/build/components/Toast/index.js.map +1 -0
- package/build/components/Toast/style.css +1 -0
- package/build/components/ToastPortal/index.cjs +2 -0
- package/build/components/ToastPortal/index.cjs.map +1 -0
- package/build/components/ToastPortal/index.d.cts +10 -0
- package/build/components/ToastPortal/index.d.ts +10 -0
- package/build/components/ToastPortal/index.js +15 -0
- package/build/components/ToastPortal/index.js.map +1 -0
- package/build/components/Tooltip/index.cjs +2 -0
- package/build/components/Tooltip/index.cjs.map +1 -0
- package/build/components/Tooltip/index.d.cts +23 -0
- package/build/components/Tooltip/index.d.ts +23 -0
- package/build/components/Tooltip/index.js +116 -0
- package/build/components/Tooltip/index.js.map +1 -0
- package/build/components/Tooltip/style.css +1 -0
- package/build/constants/breakpoint.constants.cjs +2 -0
- package/build/constants/breakpoint.constants.cjs.map +1 -0
- package/build/constants/breakpoint.constants.d.cts +15 -0
- package/build/constants/breakpoint.constants.d.ts +15 -0
- package/build/constants/breakpoint.constants.js +12 -0
- package/build/constants/breakpoint.constants.js.map +1 -0
- package/build/constants/combobox.constants.cjs +2 -0
- package/build/constants/combobox.constants.cjs.map +1 -0
- package/build/constants/combobox.constants.d.cts +11 -0
- package/build/constants/combobox.constants.d.ts +11 -0
- package/build/constants/combobox.constants.js +7 -0
- package/build/constants/combobox.constants.js.map +1 -0
- package/build/constants/scale.constants.cjs +2 -0
- package/build/constants/scale.constants.cjs.map +1 -0
- package/build/constants/scale.constants.d.cts +10 -0
- package/build/constants/scale.constants.d.ts +10 -0
- package/build/constants/scale.constants.js +8 -0
- package/build/constants/scale.constants.js.map +1 -0
- package/build/constants/scroll.constants.cjs +2 -0
- package/build/constants/scroll.constants.cjs.map +1 -0
- package/build/constants/scroll.constants.d.cts +7 -0
- package/build/constants/scroll.constants.d.ts +7 -0
- package/build/constants/scroll.constants.js +5 -0
- package/build/constants/scroll.constants.js.map +1 -0
- package/build/design/fonts/LICENSE-archivo.txt +93 -0
- package/build/design/fonts/LICENSE-ibm-plex-mono.txt +93 -0
- package/build/design/fonts/LICENSE-inter.txt +93 -0
- package/build/design/fonts/archivo-latin-ext-wdth-normal.woff2 +0 -0
- package/build/design/fonts/archivo-latin-wdth-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/build/design/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/build/design/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/build/design/fonts.css +75 -0
- package/build/design/fonts.d.css.ts +1 -0
- package/build/design/index.cjs +778 -0
- package/build/design/index.cjs.map +1 -0
- package/build/design/index.d.cts +263 -0
- package/build/design/index.d.mts +263 -0
- package/build/design/index.mjs +751 -0
- package/build/design/index.mjs.map +1 -0
- package/build/design/index.umd.cjs +2 -0
- package/build/design/index.umd.cjs.map +1 -0
- package/build/design/logos/horizontal.svg +1 -0
- package/build/design/logos/mark.svg +1 -0
- package/build/design/tokens.css +477 -0
- package/build/design/tokens.d.css.ts +1 -0
- package/build/design/tokens.json +542 -0
- package/build/design/tokens.scss +616 -0
- package/build/enums/ui-size.enum.cjs +2 -0
- package/build/enums/ui-size.enum.cjs.map +1 -0
- package/build/enums/ui-size.enum.d.cts +12 -0
- package/build/enums/ui-size.enum.d.ts +12 -0
- package/build/enums/ui-size.enum.js +5 -0
- package/build/enums/ui-size.enum.js.map +1 -0
- package/build/enums/ui-variant.enum.cjs +2 -0
- package/build/enums/ui-variant.enum.cjs.map +1 -0
- package/build/enums/ui-variant.enum.d.cts +20 -0
- package/build/enums/ui-variant.enum.d.ts +20 -0
- package/build/enums/ui-variant.enum.js +5 -0
- package/build/enums/ui-variant.enum.js.map +1 -0
- package/build/helpers/aria.helper.cjs +2 -0
- package/build/helpers/aria.helper.cjs.map +1 -0
- package/build/helpers/aria.helper.d.cts +7 -0
- package/build/helpers/aria.helper.d.ts +7 -0
- package/build/helpers/aria.helper.js +5 -0
- package/build/helpers/aria.helper.js.map +1 -0
- package/build/helpers/class-name.helper.cjs +2 -0
- package/build/helpers/class-name.helper.cjs.map +1 -0
- package/build/helpers/class-name.helper.d.cts +3 -0
- package/build/helpers/class-name.helper.d.ts +3 -0
- package/build/helpers/class-name.helper.js +10 -0
- package/build/helpers/class-name.helper.js.map +1 -0
- package/build/helpers/component.helper.cjs +2 -0
- package/build/helpers/component.helper.cjs.map +1 -0
- package/build/helpers/component.helper.d.cts +13 -0
- package/build/helpers/component.helper.d.ts +13 -0
- package/build/helpers/component.helper.js +5 -0
- package/build/helpers/component.helper.js.map +1 -0
- package/build/helpers/focus.helper.cjs +2 -0
- package/build/helpers/focus.helper.cjs.map +1 -0
- package/build/helpers/focus.helper.d.cts +90 -0
- package/build/helpers/focus.helper.d.ts +90 -0
- package/build/helpers/focus.helper.js +83 -0
- package/build/helpers/focus.helper.js.map +1 -0
- package/build/helpers/label.helper.cjs +2 -0
- package/build/helpers/label.helper.cjs.map +1 -0
- package/build/helpers/label.helper.d.cts +11 -0
- package/build/helpers/label.helper.d.ts +11 -0
- package/build/helpers/label.helper.js +11 -0
- package/build/helpers/label.helper.js.map +1 -0
- package/build/helpers/portal.helper.cjs +2 -0
- package/build/helpers/portal.helper.cjs.map +1 -0
- package/build/helpers/portal.helper.d.cts +28 -0
- package/build/helpers/portal.helper.d.ts +28 -0
- package/build/helpers/portal.helper.js +36 -0
- package/build/helpers/portal.helper.js.map +1 -0
- package/build/helpers/ref.helper.cjs +2 -0
- package/build/helpers/ref.helper.cjs.map +1 -0
- package/build/helpers/ref.helper.d.cts +3 -0
- package/build/helpers/ref.helper.d.ts +3 -0
- package/build/helpers/ref.helper.js +7 -0
- package/build/helpers/ref.helper.js.map +1 -0
- package/build/helpers/scaled-number.helper.cjs +2 -0
- package/build/helpers/scaled-number.helper.cjs.map +1 -0
- package/build/helpers/scaled-number.helper.d.cts +54 -0
- package/build/helpers/scaled-number.helper.d.ts +54 -0
- package/build/helpers/scaled-number.helper.js +34 -0
- package/build/helpers/scaled-number.helper.js.map +1 -0
- package/build/helpers/scroll.helper.cjs +2 -0
- package/build/helpers/scroll.helper.cjs.map +1 -0
- package/build/helpers/scroll.helper.d.cts +8 -0
- package/build/helpers/scroll.helper.d.ts +8 -0
- package/build/helpers/scroll.helper.js +11 -0
- package/build/helpers/scroll.helper.js.map +1 -0
- package/build/helpers/text.helper.cjs +2 -0
- package/build/helpers/text.helper.cjs.map +1 -0
- package/build/helpers/text.helper.d.cts +5 -0
- package/build/helpers/text.helper.d.ts +5 -0
- package/build/helpers/text.helper.js +6 -0
- package/build/helpers/text.helper.js.map +1 -0
- package/build/helpers/theme.helper.cjs +2 -0
- package/build/helpers/theme.helper.cjs.map +1 -0
- package/build/helpers/theme.helper.d.cts +18 -0
- package/build/helpers/theme.helper.d.ts +18 -0
- package/build/helpers/theme.helper.js +37 -0
- package/build/helpers/theme.helper.js.map +1 -0
- package/build/hooks/useAnnounce.cjs +2 -0
- package/build/hooks/useAnnounce.cjs.map +1 -0
- package/build/hooks/useAnnounce.d.cts +4 -0
- package/build/hooks/useAnnounce.d.ts +4 -0
- package/build/hooks/useAnnounce.js +23 -0
- package/build/hooks/useAnnounce.js.map +1 -0
- package/build/hooks/useAsyncSearch.cjs +2 -0
- package/build/hooks/useAsyncSearch.cjs.map +1 -0
- package/build/hooks/useAsyncSearch.d.cts +11 -0
- package/build/hooks/useAsyncSearch.d.ts +11 -0
- package/build/hooks/useAsyncSearch.js +17 -0
- package/build/hooks/useAsyncSearch.js.map +1 -0
- package/build/hooks/useCopyFeedback.cjs +2 -0
- package/build/hooks/useCopyFeedback.cjs.map +1 -0
- package/build/hooks/useCopyFeedback.d.cts +10 -0
- package/build/hooks/useCopyFeedback.d.ts +10 -0
- package/build/hooks/useCopyFeedback.js +25 -0
- package/build/hooks/useCopyFeedback.js.map +1 -0
- package/build/hooks/useDismissOnEscape.cjs +2 -0
- package/build/hooks/useDismissOnEscape.cjs.map +1 -0
- package/build/hooks/useDismissOnEscape.d.cts +16 -0
- package/build/hooks/useDismissOnEscape.d.ts +16 -0
- package/build/hooks/useDismissOnEscape.js +18 -0
- package/build/hooks/useDismissOnEscape.js.map +1 -0
- package/build/hooks/useListboxNavigation.cjs +2 -0
- package/build/hooks/useListboxNavigation.cjs.map +1 -0
- package/build/hooks/useListboxNavigation.d.cts +7 -0
- package/build/hooks/useListboxNavigation.d.ts +7 -0
- package/build/hooks/useListboxNavigation.js +53 -0
- package/build/hooks/useListboxNavigation.js.map +1 -0
- package/build/hooks/usePortalSurface.cjs +2 -0
- package/build/hooks/usePortalSurface.cjs.map +1 -0
- package/build/hooks/usePortalSurface.d.cts +25 -0
- package/build/hooks/usePortalSurface.d.ts +25 -0
- package/build/hooks/usePortalSurface.js +19 -0
- package/build/hooks/usePortalSurface.js.map +1 -0
- package/build/hooks/usePositioning.cjs +2 -0
- package/build/hooks/usePositioning.cjs.map +1 -0
- package/build/hooks/usePositioning.d.cts +13 -0
- package/build/hooks/usePositioning.d.ts +13 -0
- package/build/hooks/usePositioning.js +74 -0
- package/build/hooks/usePositioning.js.map +1 -0
- package/build/hooks/useScrollLock.cjs +2 -0
- package/build/hooks/useScrollLock.cjs.map +1 -0
- package/build/hooks/useScrollLock.d.cts +2 -0
- package/build/hooks/useScrollLock.d.ts +2 -0
- package/build/hooks/useScrollLock.js +34 -0
- package/build/hooks/useScrollLock.js.map +1 -0
- package/build/hooks/useSheetViewport.cjs +2 -0
- package/build/hooks/useSheetViewport.cjs.map +1 -0
- package/build/hooks/useSheetViewport.d.cts +6 -0
- package/build/hooks/useSheetViewport.d.ts +6 -0
- package/build/hooks/useSheetViewport.js +29 -0
- package/build/hooks/useSheetViewport.js.map +1 -0
- package/build/hooks/useStickToBottom.cjs +2 -0
- package/build/hooks/useStickToBottom.cjs.map +1 -0
- package/build/hooks/useStickToBottom.d.cts +12 -0
- package/build/hooks/useStickToBottom.d.ts +12 -0
- package/build/hooks/useStickToBottom.js +39 -0
- package/build/hooks/useStickToBottom.js.map +1 -0
- package/build/hooks/useUiTheme.cjs +2 -0
- package/build/hooks/useUiTheme.cjs.map +1 -0
- package/build/hooks/useUiTheme.d.cts +10 -0
- package/build/hooks/useUiTheme.d.ts +10 -0
- package/build/hooks/useUiTheme.js +42 -0
- package/build/hooks/useUiTheme.js.map +1 -0
- package/build/hooks/useUiTokens.cjs +2 -0
- package/build/hooks/useUiTokens.cjs.map +1 -0
- package/build/hooks/useUiTokens.d.cts +11 -0
- package/build/hooks/useUiTokens.d.ts +11 -0
- package/build/hooks/useUiTokens.js +36 -0
- package/build/hooks/useUiTokens.js.map +1 -0
- package/build/hooks/useVirtualList.cjs +2 -0
- package/build/hooks/useVirtualList.cjs.map +1 -0
- package/build/hooks/useVirtualList.d.cts +13 -0
- package/build/hooks/useVirtualList.d.ts +13 -0
- package/build/hooks/useVirtualList.js +41 -0
- package/build/hooks/useVirtualList.js.map +1 -0
- package/build/index.cjs +2 -0
- package/build/index.cjs.map +1 -0
- package/build/index.d.cts +98 -0
- package/build/index.d.ts +98 -0
- package/build/index.js +209 -0
- package/build/index.js.map +1 -0
- package/build/scss/_index.scss +7 -0
- package/build/scss/_mixins.scss +861 -0
- package/build/scss/_variables.scss +245 -0
- package/build/styles/base.d.cts +0 -0
- package/build/styles/base.d.ts +0 -0
- package/build/styles.css +135 -0
- package/build/theme/UiProvider.cjs +2 -0
- package/build/theme/UiProvider.cjs.map +1 -0
- package/build/theme/UiProvider.d.cts +23 -0
- package/build/theme/UiProvider.d.ts +23 -0
- package/build/theme/UiProvider.js +12 -0
- package/build/theme/UiProvider.js.map +1 -0
- package/build/theme/UiThemeScript.cjs +2 -0
- package/build/theme/UiThemeScript.cjs.map +1 -0
- package/build/theme/UiThemeScript.d.cts +22 -0
- package/build/theme/UiThemeScript.d.ts +22 -0
- package/build/theme/UiThemeScript.js +8 -0
- package/build/theme/UiThemeScript.js.map +1 -0
- package/build/theme/context.cjs +2 -0
- package/build/theme/context.cjs.map +1 -0
- package/build/theme/context.d.cts +5 -0
- package/build/theme/context.d.ts +5 -0
- package/build/theme/context.js +8 -0
- package/build/theme/context.js.map +1 -0
- package/build/types/calendar/Calendar/EventBlock.d.cts +29 -0
- package/build/types/calendar/Calendar/EventBlock.d.ts +29 -0
- package/build/types/calendar/Calendar/MonthGrid.d.cts +28 -0
- package/build/types/calendar/Calendar/MonthGrid.d.ts +28 -0
- package/build/types/calendar/Calendar/TimeGrid.d.cts +37 -0
- package/build/types/calendar/Calendar/TimeGrid.d.ts +37 -0
- package/build/types/calendar/Calendar/index.d.cts +72 -0
- package/build/types/calendar/Calendar/index.d.ts +72 -0
- package/build/types/calendar/core/layout.d.cts +43 -0
- package/build/types/calendar/core/layout.d.ts +43 -0
- package/build/types/calendar/core/moves.d.cts +37 -0
- package/build/types/calendar/core/moves.d.ts +37 -0
- package/build/types/calendar/core/time.d.cts +19 -0
- package/build/types/calendar/core/time.d.ts +19 -0
- package/build/types/calendar/core/types.d.cts +75 -0
- package/build/types/calendar/core/types.d.ts +75 -0
- package/build/types/calendar/core/useCalendarDrag.d.cts +32 -0
- package/build/types/calendar/core/useCalendarDrag.d.ts +32 -0
- package/build/types/calendar/index.d.cts +13 -0
- package/build/types/calendar/index.d.ts +13 -0
- package/build/types/charts/AreaChart/index.d.cts +14 -0
- package/build/types/charts/AreaChart/index.d.ts +14 -0
- package/build/types/charts/BarChart/index.d.cts +16 -0
- package/build/types/charts/BarChart/index.d.ts +16 -0
- package/build/types/charts/BoxPlot/index.d.cts +43 -0
- package/build/types/charts/BoxPlot/index.d.ts +43 -0
- package/build/types/charts/ComposedChart/index.d.cts +16 -0
- package/build/types/charts/ComposedChart/index.d.ts +16 -0
- package/build/types/charts/Heatmap/index.d.cts +30 -0
- package/build/types/charts/Heatmap/index.d.ts +30 -0
- package/build/types/charts/Histogram/index.d.cts +29 -0
- package/build/types/charts/Histogram/index.d.ts +29 -0
- package/build/types/charts/LineChart/index.d.cts +14 -0
- package/build/types/charts/LineChart/index.d.ts +14 -0
- package/build/types/charts/PieChart/index.d.cts +36 -0
- package/build/types/charts/PieChart/index.d.ts +36 -0
- package/build/types/charts/RadarChart/index.d.cts +40 -0
- package/build/types/charts/RadarChart/index.d.ts +40 -0
- package/build/types/charts/ScatterPlot/index.d.cts +41 -0
- package/build/types/charts/ScatterPlot/index.d.ts +41 -0
- package/build/types/charts/core/CartesianChart.d.cts +43 -0
- package/build/types/charts/core/CartesianChart.d.ts +43 -0
- package/build/types/charts/core/ChartFrame.d.cts +55 -0
- package/build/types/charts/core/ChartFrame.d.ts +55 -0
- package/build/types/charts/core/axes.d.cts +37 -0
- package/build/types/charts/core/axes.d.ts +37 -0
- package/build/types/charts/core/cartesian.d.cts +80 -0
- package/build/types/charts/core/cartesian.d.ts +80 -0
- package/build/types/charts/core/format.d.cts +19 -0
- package/build/types/charts/core/format.d.ts +19 -0
- package/build/types/charts/core/margins.d.cts +9 -0
- package/build/types/charts/core/margins.d.ts +9 -0
- package/build/types/charts/core/palette.d.cts +11 -0
- package/build/types/charts/core/palette.d.ts +11 -0
- package/build/types/charts/core/path.d.cts +24 -0
- package/build/types/charts/core/path.d.ts +24 -0
- package/build/types/charts/core/scale.d.cts +40 -0
- package/build/types/charts/core/scale.d.ts +40 -0
- package/build/types/charts/core/series.d.cts +11 -0
- package/build/types/charts/core/series.d.ts +11 -0
- package/build/types/charts/core/spatial.d.cts +12 -0
- package/build/types/charts/core/spatial.d.ts +12 -0
- package/build/types/charts/core/stats.d.cts +34 -0
- package/build/types/charts/core/stats.d.ts +34 -0
- package/build/types/charts/core/types.d.cts +31 -0
- package/build/types/charts/core/types.d.ts +31 -0
- package/build/types/charts/core/useChartWidth.d.cts +7 -0
- package/build/types/charts/core/useChartWidth.d.ts +7 -0
- package/build/types/charts/index.d.cts +21 -0
- package/build/types/charts/index.d.ts +21 -0
- package/build/types/chat/ActionList/index.d.cts +46 -0
- package/build/types/chat/ActionList/index.d.ts +46 -0
- package/build/types/chat/AppBar/index.d.cts +21 -0
- package/build/types/chat/AppBar/index.d.ts +21 -0
- package/build/types/chat/ChatMessage/index.d.cts +24 -0
- package/build/types/chat/ChatMessage/index.d.ts +24 -0
- package/build/types/chat/ChatThread/index.d.cts +24 -0
- package/build/types/chat/ChatThread/index.d.ts +24 -0
- package/build/types/chat/Citation/index.d.cts +15 -0
- package/build/types/chat/Citation/index.d.ts +15 -0
- package/build/types/chat/CodeBlock/format.d.cts +7 -0
- package/build/types/chat/CodeBlock/format.d.ts +7 -0
- package/build/types/chat/CodeBlock/grammars.d.cts +44 -0
- package/build/types/chat/CodeBlock/grammars.d.ts +44 -0
- package/build/types/chat/CodeBlock/highlight.d.cts +22 -0
- package/build/types/chat/CodeBlock/highlight.d.ts +22 -0
- package/build/types/chat/CodeBlock/index.d.cts +33 -0
- package/build/types/chat/CodeBlock/index.d.ts +33 -0
- package/build/types/chat/DescriptionList/index.d.cts +16 -0
- package/build/types/chat/DescriptionList/index.d.ts +16 -0
- package/build/types/chat/Legend/index.d.cts +21 -0
- package/build/types/chat/Legend/index.d.ts +21 -0
- package/build/types/chat/MessageActions/index.d.cts +21 -0
- package/build/types/chat/MessageActions/index.d.ts +21 -0
- package/build/types/chat/PromptInput/index.d.cts +47 -0
- package/build/types/chat/PromptInput/index.d.ts +47 -0
- package/build/types/chat/PromptSuggestions/index.d.cts +25 -0
- package/build/types/chat/PromptSuggestions/index.d.ts +25 -0
- package/build/types/chat/Prose/index.d.cts +15 -0
- package/build/types/chat/Prose/index.d.ts +15 -0
- package/build/types/chat/ReasoningBlock/index.d.cts +24 -0
- package/build/types/chat/ReasoningBlock/index.d.ts +24 -0
- package/build/types/chat/ReasoningText/index.d.cts +14 -0
- package/build/types/chat/ReasoningText/index.d.ts +14 -0
- package/build/types/chat/SegmentBar/index.d.cts +46 -0
- package/build/types/chat/SegmentBar/index.d.ts +46 -0
- package/build/types/chat/SourceList/index.d.cts +25 -0
- package/build/types/chat/SourceList/index.d.ts +25 -0
- package/build/types/chat/TerminalOutput/index.d.cts +25 -0
- package/build/types/chat/TerminalOutput/index.d.ts +25 -0
- package/build/types/chat/ToolCall/index.d.cts +41 -0
- package/build/types/chat/ToolCall/index.d.ts +41 -0
- package/build/types/chat/index.d.cts +26 -0
- package/build/types/chat/index.d.ts +26 -0
- package/build/types/combobox.type.d.cts +65 -0
- package/build/types/combobox.type.d.ts +65 -0
- package/build/types/common-element-props.type.d.cts +8 -0
- package/build/types/common-element-props.type.d.ts +8 -0
- package/build/types/helpers/class-name.helper.d.cts +3 -0
- package/build/types/helpers/class-name.helper.d.ts +3 -0
- package/build/types/helpers/component.helper.d.cts +13 -0
- package/build/types/helpers/component.helper.d.ts +13 -0
- package/build/types/helpers/label.helper.d.cts +12 -0
- package/build/types/helpers/label.helper.d.ts +12 -0
- package/build/types/hook.type.d.cts +36 -0
- package/build/types/hook.type.d.ts +36 -0
- package/build/types/link.type.d.cts +14 -0
- package/build/types/link.type.d.ts +14 -0
- package/build/types/positioning.type.d.cts +38 -0
- package/build/types/positioning.type.d.ts +38 -0
- package/build/types/theme.type.d.cts +197 -0
- package/build/types/theme.type.d.ts +197 -0
- package/build/types/types/common-element-props.type.d.cts +8 -0
- package/build/types/types/common-element-props.type.d.ts +8 -0
- package/build/types/types/link.type.d.cts +14 -0
- package/build/types/types/link.type.d.ts +14 -0
- package/build/types/types/theme.type.d.cts +197 -0
- package/build/types/types/theme.type.d.ts +197 -0
- package/package.json +929 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Gösterilecek ve panoya kopyalanacak değer. */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Kopyalama düğmesinin erişilebilir adı. */
|
|
6
|
+
copyLabel?: string;
|
|
7
|
+
/** Kopyalandıktan sonraki ad. */
|
|
8
|
+
copiedLabel?: string;
|
|
9
|
+
/** `aria-live` ile duyurulan onay cümlesi. */
|
|
10
|
+
copiedAnnouncement?: string;
|
|
11
|
+
size?: 'sm' | 'md';
|
|
12
|
+
/** Kopyalama düğmesini gizler. */
|
|
13
|
+
isReadOnly?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
/** Kopyalanabilir teknik değer — tek dokunuşla panoya. */
|
|
18
|
+
declare const CopyField: FC<Props>;
|
|
19
|
+
declare const _default: typeof CopyField;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as h, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { memo as b } from "react";
|
|
4
|
+
import { ClipboardCheckFill as x, ClipboardFill as N } from "react-bootstrap-icons";
|
|
5
|
+
import { cx as d } from "../../helpers/class-name.helper.js";
|
|
6
|
+
import { resolveFormatter as m, resolveLabel as k } from "../../helpers/label.helper.js";
|
|
7
|
+
import { useCopyFeedback as L } from "../../hooks/useCopyFeedback.js";
|
|
8
|
+
import { useUi as j } from "../../theme/context.js";
|
|
9
|
+
const e = {"copy":"ui-copy-Yht5s","copy--sm":"ui-copy--sm-Tjqws","copy__code":"ui-copy__code-CYlCA","copy--md":"ui-copy--md-00rhU","copy__button":"ui-copy__button-GDdH6","copy__button--done":"ui-copy__button--done-MujUR","copy__srOnly":"ui-copy__srOnly-WMTNN"};
|
|
10
|
+
const A = ({
|
|
11
|
+
value: p,
|
|
12
|
+
copyLabel: s,
|
|
13
|
+
copiedLabel: a,
|
|
14
|
+
copiedAnnouncement: l,
|
|
15
|
+
size: y = "sm",
|
|
16
|
+
isReadOnly: f,
|
|
17
|
+
className: F,
|
|
18
|
+
testId: u
|
|
19
|
+
}) => {
|
|
20
|
+
var t, c, n;
|
|
21
|
+
const { labels: o } = j(), { isCopied: r, copy: C, nodeRef: _ } = L(p);
|
|
22
|
+
return /* @__PURE__ */ h("span", { className: d(e.copy, e[`copy--${y}`], F), "data-testid": u, children: [
|
|
23
|
+
/* @__PURE__ */ i("span", { className: e.copy__code, ref: _, children: p }),
|
|
24
|
+
!f && /* @__PURE__ */ i(
|
|
25
|
+
"button",
|
|
26
|
+
{
|
|
27
|
+
type: "button",
|
|
28
|
+
className: d(e.copy__button, r && e["copy__button--done"]),
|
|
29
|
+
onClick: C,
|
|
30
|
+
"aria-label": r ? a ?? m("CopyField.copiedLabel", (t = o == null ? void 0 : o.copyField) == null ? void 0 : t.copied, p) : s ?? m("CopyField.copyLabel", (c = o == null ? void 0 : o.copyField) == null ? void 0 : c.copy, p),
|
|
31
|
+
children: r ? /* @__PURE__ */ i(x, { "aria-hidden": !0 }) : /* @__PURE__ */ i(N, { "aria-hidden": !0 })
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ i("span", { "aria-live": "polite", className: e.copy__srOnly, children: r ? k(
|
|
35
|
+
"CopyField.copiedAnnouncement",
|
|
36
|
+
l,
|
|
37
|
+
(n = o == null ? void 0 : o.copyField) == null ? void 0 : n.announcement
|
|
38
|
+
) : "" })
|
|
39
|
+
] });
|
|
40
|
+
}, z = /* @__PURE__ */ b(A);
|
|
41
|
+
export {
|
|
42
|
+
z as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/CopyField/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, memo } from 'react';\n\nimport { ClipboardCheckFill, ClipboardFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { resolveFormatter, resolveLabel } from '../../helpers/label.helper';\nimport { useCopyFeedback } from '../../hooks/useCopyFeedback';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\ntype Props = {\n /** Gösterilecek ve panoya kopyalanacak değer. */\n value: string;\n /** Kopyalama düğmesinin erişilebilir adı. */\n copyLabel?: string;\n /** Kopyalandıktan sonraki ad. */\n copiedLabel?: string;\n /** `aria-live` ile duyurulan onay cümlesi. */\n copiedAnnouncement?: string;\n size?: 'sm' | 'md';\n /** Kopyalama düğmesini gizler. */\n isReadOnly?: boolean;\n className?: string;\n testId?: string;\n};\n\n/** Kopyalanabilir teknik değer — tek dokunuşla panoya. */\nconst CopyField: FC<Props> = ({\n value,\n copyLabel,\n copiedLabel,\n copiedAnnouncement,\n size = 'sm',\n isReadOnly,\n className,\n testId,\n}) => {\n const { labels } = useUi();\n const { isCopied, copy, nodeRef } = useCopyFeedback(value);\n\n return (\n <span className={cx(styles.copy, styles[`copy--${size}`], className)} data-testid={testId}>\n {/*\n `user-select: all` (CSS): tek tiklama degerin TAMAMINI secer.\n Kullanicilar fareyle surukleyip yarim deger kopyaliyordu.\n */}\n <span className={styles.copy__code} ref={nodeRef}>\n {value}\n </span>\n\n {!isReadOnly && (\n <button\n type=\"button\"\n className={cx(styles.copy__button, isCopied && styles['copy__button--done'])}\n onClick={copy}\n aria-label={\n isCopied\n ? (copiedLabel ??\n resolveFormatter('CopyField.copiedLabel', labels?.copyField?.copied, value))\n : (copyLabel ??\n resolveFormatter('CopyField.copyLabel', labels?.copyField?.copy, value))\n }\n >\n {/*\n Kopyalandi ISARETLI PANO, yalin tik degil: yalin tik \"dogru\n deger\" diye de okunabiliyordu. Ayni gövde + tik, degisimin\n kopyalama eylemine ait oldugunu birakiyor.\n */}\n {isCopied ? <ClipboardCheckFill aria-hidden /> : <ClipboardFill aria-hidden />}\n </button>\n )}\n\n {/*\n Ekran okuyucu icin: ikon degisimi gorsel bir sinyal, duyulmuyor.\n `aria-live` yalnizca DEGISTIGINDE konusur.\n */}\n <span aria-live=\"polite\" className={styles.copy__srOnly}>\n {isCopied\n ? resolveLabel(\n 'CopyField.copiedAnnouncement',\n copiedAnnouncement,\n labels?.copyField?.announcement,\n )\n : ''}\n </span>\n </span>\n );\n};\n\nexport default /*#__PURE__*/ memo(CopyField) as typeof CopyField;\n"],"names":["CopyField","value","copyLabel","copiedLabel","copiedAnnouncement","size","isReadOnly","className","testId","labels","useUi","isCopied","copy","nodeRef","useCopyFeedback","jsxs","cx","styles","jsx","resolveFormatter","_a","_b","ClipboardCheckFill","ClipboardFill","resolveLabel","_c","index"],"mappings":";;;;;;;;;AA6BA,MAAMA,IAAuB,CAAC;AAAA,EAC5B,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AACF,MAAM;;AACJ,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACb,EAAE,UAAAC,GAAU,MAAAC,GAAM,SAAAC,EAAA,IAAYC,EAAgBb,CAAK;AAEzD,SACE,gBAAAc,EAAC,QAAA,EAAK,WAAWC,EAAGC,EAAO,MAAMA,EAAO,SAASZ,CAAI,EAAE,GAAGE,CAAS,GAAG,eAAaC,GAKjF,UAAA;AAAA,IAAA,gBAAAU,EAAC,UAAK,WAAWD,EAAO,YAAY,KAAKJ,GACtC,UAAAZ,GACH;AAAA,IAEC,CAACK,KACA,gBAAAY;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAWF,EAAGC,EAAO,cAAcN,KAAYM,EAAO,oBAAoB,CAAC;AAAA,QAC3E,SAASL;AAAA,QACT,cACED,IACKR,KACDgB,EAAiB,0BAAyBC,IAAAX,KAAA,gBAAAA,EAAQ,cAAR,gBAAAW,EAAmB,QAAQnB,CAAK,IACzEC,KACDiB,EAAiB,wBAAuBE,IAAAZ,KAAA,gBAAAA,EAAQ,cAAR,gBAAAY,EAAmB,MAAMpB,CAAK;AAAA,QAQ3E,UAAAU,sBAAYW,GAAA,EAAmB,eAAW,IAAC,IAAK,gBAAAJ,EAACK,GAAA,EAAc,eAAW,GAAA,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,sBAQ/E,QAAA,EAAK,aAAU,UAAS,WAAWN,EAAO,cACxC,UAAAN,IACGa;AAAA,MACE;AAAA,MACApB;AAAA,OACAqB,IAAAhB,KAAA,gBAAAA,EAAQ,cAAR,gBAAAgB,EAAmB;AAAA,IAAA,IAErB,GAAA,CACN;AAAA,EAAA,GACF;AAEJ,GAEAC,sBAAkC1B,CAAS;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer ui{.ui-copy-Yht5s{display:inline-flex;align-items:center;gap:var(--hd-space-1);max-width:100%;min-width:0}.ui-copy--sm-Tjqws .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy--md-00rhU .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-small-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy__code-CYlCA{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;-webkit-user-select:all;user-select:all;color:inherit}.ui-copy__button-GDdH6{position:relative}.ui-copy__button-GDdH6:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-copy__button-GDdH6{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;padding:0;border:none;border-radius:var(--hd-radius-xs);background:none;color:var(--hd-text-3);font-size:16px;cursor:pointer;transition:color var(--hd-duration-fast) var(--hd-ease-standard),background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-copy__button-GDdH6:hover{color:var(--hd-text);background-color:var(--hd-bg-raised)}.ui-copy__button-GDdH6:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, -1px)}@media (prefers-reduced-motion: reduce){.ui-copy__button-GDdH6{transition:none}}.ui-copy__button--done-MujUR,.ui-copy__button--done-MujUR:hover{color:var(--hd-success-solid)}.ui-copy__srOnly-WMTNN{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),u=require("react"),q=require("react-bootstrap-icons"),r=require("../../helpers/class-name.helper.cjs"),D=require("../../helpers/component.helper.cjs"),f=require("../../helpers/label.helper.cjs"),S=require("../../theme/context.cjs"),s={default:{"wrapper":"ui-wrapper-KXCZg","wrapper--capped":"ui-wrapper--capped-M2QUJ","table":"ui-table-LF5Ow","state":"ui-state-YPPb0","state--error":"ui-state--error-A492d","state__message":"ui-state__message-wwbIW","row--warning":"ui-row--warning-BAUN2","srOnly":"ui-srOnly-Oia8c","sort":"ui-sort-3Q6Fx","sort__arrow":"ui-sort__arrow-MITWb","sort__arrow--ascending":"ui-sort__arrow--ascending-85T5d","sort__arrow--descending":"ui-sort__arrow--descending-gs3VU","sticky":"ui-sticky-KDEvQ","bulkBar":"ui-bulkBar-62qk0"}},v=({columns:l,label:c,children:i,isLoading:o,error:b,emptyMessage:g,loadingMessage:N,hasViewportCap:_,onSort:d,bulkBar:h,className:m,testId:w})=>{var p,j;const{labels:t}=S.useUi(),y=u.Children.count(i),x=(e,n)=>a.jsx("tr",{children:a.jsx("td",{colSpan:l.length,className:r.cx(s.default.state,n&&s.default[`state--${n}`]),children:e})});return a.jsxs("div",{className:r.cx(s.default.wrapper,_&&s.default["wrapper--capped"],m),"data-testid":w,children:[h&&a.jsx("div",{className:s.default.bulkBar,children:h}),a.jsxs("table",{className:s.default.table,"aria-label":c,children:[a.jsx("thead",{children:a.jsx("tr",{children:l.map(e=>{const n=!!(e.isSortable&&d),T=e.ariaSort==="ascending"?"descending":"ascending";return a.jsx("th",{scope:"col","aria-sort":e.ariaSort,className:r.cx(e.className,e.isSticky&&s.default.sticky),children:n?a.jsxs("button",{type:"button",className:s.default.sort,onClick:()=>d==null?void 0:d(e.key,T),children:[e.label,e.srLabel&&a.jsx("span",{className:s.default.srOnly,children:e.srLabel}),a.jsx("span",{"aria-hidden":!0,className:r.cx(s.default.sort__arrow,e.ariaSort&&s.default[`sort__arrow--${e.ariaSort}`]),children:e.ariaSort==="descending"?"▾":"▴"})]}):a.jsxs(a.Fragment,{children:[e.label,e.srLabel&&a.jsx("span",{className:s.default.srOnly,children:e.srLabel})]})},e.key)})})}),a.jsx("tbody",{children:b?x(a.jsxs("span",{role:"alert",className:s.default.state__message,children:[a.jsx(q.ExclamationCircleFill,{"aria-hidden":!0}),b]}),"error"):o?x(f.resolveLabel("DataTable.loadingMessage",N,(p=t==null?void 0:t.dataTable)==null?void 0:p.loading)):y===0?x(f.resolveLabel("DataTable.emptyMessage",g,(j=t==null?void 0:t.dataTable)==null?void 0:j.empty)):i})]})]})},L=D.named(u.memo(({isWarning:l,className:c,children:i,...o})=>a.jsx("tr",{className:r.cx(l&&s.default["row--warning"],c),...o,children:i})),"DataTableRow"),k=u.memo(v);exports.DataTableRow=L;exports.default=k;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/DataTable/index.tsx"],"sourcesContent":["'use client';\n\nimport { Children, type FC, type HTMLAttributes, memo, type ReactNode } from 'react';\n\nimport { ExclamationCircleFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\nexport type DataTableColumn = {\n /** Sütun kimliği (React key). */\n key: string;\n /** Başlık hücresinin içeriği. */\n label?: ReactNode;\n /** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */\n srLabel?: string;\n /** Sıralanabilir sütunun yönü (`aria-sort`). */\n ariaSort?: 'ascending' | 'descending';\n /**\n * Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz\n * metin kalır\n */\n isSortable?: boolean;\n /** Sütun yatay kaydırmada YERİNDE kalır. */\n isSticky?: boolean;\n className?: string;\n};\n\ntype Props = {\n columns: DataTableColumn[];\n /**\n * Tablonun erişilebilir adı (\"Bekleyen siparişler\").\n * ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA \"tablo\" DİYE OKUNUR.\n */\n label?: string;\n /**\n * Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;\n * tablo yalnızca kabuğu ve durum satırlarını üstlenir.\n */\n children?: ReactNode;\n /** Satır yokken gösterilen metin. */\n emptyMessage?: string;\n /** Yükleme sürerken gösterilen metin. */\n loadingMessage?: string;\n isLoading?: boolean;\n /**\n * Liste ÇEKİLEMEDİ. \"Yüklenemedi\" ile \"boş\" ayrı durumlardır: hata verilmişken boş mesajı asla\n * çizilmez\n */\n error?: string | null;\n /** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */\n hasViewportCap?: boolean;\n /** Sıralanabilir bir başlığa basıldığında çağrılır. */\n onSort?: (key: string, direction: 'ascending' | 'descending') => void;\n /** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */\n bulkBar?: ReactNode;\n className?: string;\n testId?: string;\n};\n\n/** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */\nconst DataTable: FC<Props> = ({\n columns,\n label,\n children,\n isLoading,\n error,\n emptyMessage,\n loadingMessage,\n hasViewportCap,\n onSort,\n bulkBar,\n className,\n testId,\n}) => {\n /* Bosluk karari satir SAYISINDAN verilir; cagiranin ayrica `isEmpty` gecmesi gerekmez. */\n const { labels } = useUi();\n const rowCount = Children.count(children);\n\n const renderStateRow = (content: ReactNode, modifier?: 'error') => (\n <tr>\n <td\n colSpan={columns.length}\n className={cx(styles.state, modifier && styles[`state--${modifier}`])}\n >\n {content}\n </td>\n </tr>\n );\n\n return (\n <div\n className={cx(styles.wrapper, hasViewportCap && styles['wrapper--capped'], className)}\n data-testid={testId}\n >\n {bulkBar && <div className={styles.bulkBar}>{bulkBar}</div>}\n\n <table className={styles.table} aria-label={label}>\n <thead>\n <tr>\n {columns.map(column => {\n const isSortable = Boolean(column.isSortable && onSort);\n /* Ilk tikta ARTAN; ikinci tik yonu cevirir. */\n const nextDirection = column.ariaSort === 'ascending' ? 'descending' : 'ascending';\n\n return (\n <th\n key={column.key}\n scope=\"col\"\n aria-sort={column.ariaSort}\n className={cx(column.className, column.isSticky && styles.sticky)}\n >\n {isSortable ? (\n /* Siralama bir DUGME, ` `ye yazilan `onClick` degil. */\n <button\n type=\"button\"\n className={styles.sort}\n onClick={() => onSort?.(column.key, nextDirection)}\n >\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n\n {/*\n Yon oku: `aria-hidden` cunku ayni bilgi `aria-sort`ta.\n Siralanabilir ama siralanmamis sutunda SOLUK bir cift\n ok duruyor — sutunun siralanabildigi ancak uzerine\n gelince anlasiliyordu.\n */}\n <span\n aria-hidden\n className={cx(\n styles.sort__arrow,\n column.ariaSort && styles[`sort__arrow--${column.ariaSort}`],\n )}\n >\n {column.ariaSort === 'descending' ? '▾' : '▴'}\n </span>\n </button>\n ) : (\n <>\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n </>\n )}\n </th>\n );\n })}\n </tr>\n </thead>\n <tbody>\n {error\n ? renderStateRow(\n <span role=\"alert\" className={styles.state__message}>\n <ExclamationCircleFill aria-hidden />\n {error}\n </span>,\n 'error',\n )\n : isLoading\n ? renderStateRow(\n resolveLabel(\n 'DataTable.loadingMessage',\n loadingMessage,\n labels?.dataTable?.loading,\n ),\n )\n : rowCount === 0\n ? renderStateRow(\n resolveLabel('DataTable.emptyMessage', emptyMessage, labels?.dataTable?.empty),\n )\n : children}\n </tbody>\n </table>\n </div>\n );\n};\n\ntype RowProps = HTMLAttributes<HTMLTableRowElement> & {\n children: ReactNode;\n /** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */\n isWarning?: boolean;\n};\n\nexport const DataTableRow: FC<RowProps> = /*#__PURE__*/ named(\n /*#__PURE__*/ memo(({ isWarning, className, children, ...rest }) => (\n <tr className={cx(isWarning && styles['row--warning'], className)} {...rest}>\n {children}\n </tr>\n )),\n 'DataTableRow',\n);\n\nexport default /*#__PURE__*/ memo(DataTable) as typeof DataTable;\n"],"names":["DataTable","columns","label","children","isLoading","error","emptyMessage","loadingMessage","hasViewportCap","onSort","bulkBar","className","testId","labels","useUi","rowCount","Children","renderStateRow","content","modifier","jsx","cx","styles","jsxs","column","isSortable","nextDirection","Fragment","ExclamationCircleFill","resolveLabel","_a","_b","DataTableRow","named","memo","isWarning","rest","index"],"mappings":"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"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type DataTableColumn = {
|
|
3
|
+
/** Sütun kimliği (React key). */
|
|
4
|
+
key: string;
|
|
5
|
+
/** Başlık hücresinin içeriği. */
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
/** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */
|
|
8
|
+
srLabel?: string;
|
|
9
|
+
/** Sıralanabilir sütunun yönü (`aria-sort`). */
|
|
10
|
+
ariaSort?: 'ascending' | 'descending';
|
|
11
|
+
/**
|
|
12
|
+
* Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz
|
|
13
|
+
* metin kalır
|
|
14
|
+
*/
|
|
15
|
+
isSortable?: boolean;
|
|
16
|
+
/** Sütun yatay kaydırmada YERİNDE kalır. */
|
|
17
|
+
isSticky?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
type Props = {
|
|
21
|
+
columns: DataTableColumn[];
|
|
22
|
+
/**
|
|
23
|
+
* Tablonun erişilebilir adı ("Bekleyen siparişler").
|
|
24
|
+
* ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA "tablo" DİYE OKUNUR.
|
|
25
|
+
*/
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;
|
|
29
|
+
* tablo yalnızca kabuğu ve durum satırlarını üstlenir.
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
/** Satır yokken gösterilen metin. */
|
|
33
|
+
emptyMessage?: string;
|
|
34
|
+
/** Yükleme sürerken gösterilen metin. */
|
|
35
|
+
loadingMessage?: string;
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Liste ÇEKİLEMEDİ. "Yüklenemedi" ile "boş" ayrı durumlardır: hata verilmişken boş mesajı asla
|
|
39
|
+
* çizilmez
|
|
40
|
+
*/
|
|
41
|
+
error?: string | null;
|
|
42
|
+
/** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */
|
|
43
|
+
hasViewportCap?: boolean;
|
|
44
|
+
/** Sıralanabilir bir başlığa basıldığında çağrılır. */
|
|
45
|
+
onSort?: (key: string, direction: 'ascending' | 'descending') => void;
|
|
46
|
+
/** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */
|
|
47
|
+
bulkBar?: ReactNode;
|
|
48
|
+
className?: string;
|
|
49
|
+
testId?: string;
|
|
50
|
+
};
|
|
51
|
+
/** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */
|
|
52
|
+
declare const DataTable: FC<Props>;
|
|
53
|
+
type RowProps = HTMLAttributes<HTMLTableRowElement> & {
|
|
54
|
+
children: ReactNode;
|
|
55
|
+
/** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */
|
|
56
|
+
isWarning?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export declare const DataTableRow: FC<RowProps>;
|
|
59
|
+
declare const _default: typeof DataTable;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type DataTableColumn = {
|
|
3
|
+
/** Sütun kimliği (React key). */
|
|
4
|
+
key: string;
|
|
5
|
+
/** Başlık hücresinin içeriği. */
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
/** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */
|
|
8
|
+
srLabel?: string;
|
|
9
|
+
/** Sıralanabilir sütunun yönü (`aria-sort`). */
|
|
10
|
+
ariaSort?: 'ascending' | 'descending';
|
|
11
|
+
/**
|
|
12
|
+
* Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz
|
|
13
|
+
* metin kalır
|
|
14
|
+
*/
|
|
15
|
+
isSortable?: boolean;
|
|
16
|
+
/** Sütun yatay kaydırmada YERİNDE kalır. */
|
|
17
|
+
isSticky?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
type Props = {
|
|
21
|
+
columns: DataTableColumn[];
|
|
22
|
+
/**
|
|
23
|
+
* Tablonun erişilebilir adı ("Bekleyen siparişler").
|
|
24
|
+
* ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA "tablo" DİYE OKUNUR.
|
|
25
|
+
*/
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;
|
|
29
|
+
* tablo yalnızca kabuğu ve durum satırlarını üstlenir.
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
/** Satır yokken gösterilen metin. */
|
|
33
|
+
emptyMessage?: string;
|
|
34
|
+
/** Yükleme sürerken gösterilen metin. */
|
|
35
|
+
loadingMessage?: string;
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Liste ÇEKİLEMEDİ. "Yüklenemedi" ile "boş" ayrı durumlardır: hata verilmişken boş mesajı asla
|
|
39
|
+
* çizilmez
|
|
40
|
+
*/
|
|
41
|
+
error?: string | null;
|
|
42
|
+
/** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */
|
|
43
|
+
hasViewportCap?: boolean;
|
|
44
|
+
/** Sıralanabilir bir başlığa basıldığında çağrılır. */
|
|
45
|
+
onSort?: (key: string, direction: 'ascending' | 'descending') => void;
|
|
46
|
+
/** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */
|
|
47
|
+
bulkBar?: ReactNode;
|
|
48
|
+
className?: string;
|
|
49
|
+
testId?: string;
|
|
50
|
+
};
|
|
51
|
+
/** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */
|
|
52
|
+
declare const DataTable: FC<Props>;
|
|
53
|
+
type RowProps = HTMLAttributes<HTMLTableRowElement> & {
|
|
54
|
+
children: ReactNode;
|
|
55
|
+
/** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */
|
|
56
|
+
isWarning?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export declare const DataTableRow: FC<RowProps>;
|
|
59
|
+
declare const _default: typeof DataTable;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as s, jsx as r, Fragment as S } from "react/jsx-runtime";
|
|
3
|
+
import { memo as w, Children as C } from "react";
|
|
4
|
+
import { ExclamationCircleFill as v } from "react-bootstrap-icons";
|
|
5
|
+
import { cx as i } from "../../helpers/class-name.helper.js";
|
|
6
|
+
import { named as R } from "../../helpers/component.helper.js";
|
|
7
|
+
import { resolveLabel as y } from "../../helpers/label.helper.js";
|
|
8
|
+
import { useUi as j } from "../../theme/context.js";
|
|
9
|
+
const e = {"wrapper":"ui-wrapper-KXCZg","wrapper--capped":"ui-wrapper--capped-M2QUJ","table":"ui-table-LF5Ow","state":"ui-state-YPPb0","state--error":"ui-state--error-A492d","state__message":"ui-state__message-wwbIW","row--warning":"ui-row--warning-BAUN2","srOnly":"ui-srOnly-Oia8c","sort":"ui-sort-3Q6Fx","sort__arrow":"ui-sort__arrow-MITWb","sort__arrow--ascending":"ui-sort__arrow--ascending-85T5d","sort__arrow--descending":"ui-sort__arrow--descending-gs3VU","sticky":"ui-sticky-KDEvQ","bulkBar":"ui-bulkBar-62qk0"};
|
|
10
|
+
const F = ({
|
|
11
|
+
columns: l,
|
|
12
|
+
label: o,
|
|
13
|
+
children: d,
|
|
14
|
+
isLoading: p,
|
|
15
|
+
error: m,
|
|
16
|
+
emptyMessage: f,
|
|
17
|
+
loadingMessage: x,
|
|
18
|
+
hasViewportCap: T,
|
|
19
|
+
onSort: n,
|
|
20
|
+
bulkBar: b,
|
|
21
|
+
className: D,
|
|
22
|
+
testId: _
|
|
23
|
+
}) => {
|
|
24
|
+
var g, N;
|
|
25
|
+
const { labels: t } = j(), k = C.count(d), h = (a, c) => /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r(
|
|
26
|
+
"td",
|
|
27
|
+
{
|
|
28
|
+
colSpan: l.length,
|
|
29
|
+
className: i(e.state, c && e[`state--${c}`]),
|
|
30
|
+
children: a
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
33
|
+
return /* @__PURE__ */ s(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: i(e.wrapper, T && e["wrapper--capped"], D),
|
|
37
|
+
"data-testid": _,
|
|
38
|
+
children: [
|
|
39
|
+
b && /* @__PURE__ */ r("div", { className: e.bulkBar, children: b }),
|
|
40
|
+
/* @__PURE__ */ s("table", { className: e.table, "aria-label": o, children: [
|
|
41
|
+
/* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { children: l.map((a) => {
|
|
42
|
+
const c = !!(a.isSortable && n), L = a.ariaSort === "ascending" ? "descending" : "ascending";
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
44
|
+
"th",
|
|
45
|
+
{
|
|
46
|
+
scope: "col",
|
|
47
|
+
"aria-sort": a.ariaSort,
|
|
48
|
+
className: i(a.className, a.isSticky && e.sticky),
|
|
49
|
+
children: c ? (
|
|
50
|
+
/* Siralama bir DUGME, ` `ye yazilan `onClick` degil. */
|
|
51
|
+
/* @__PURE__ */ s(
|
|
52
|
+
"button",
|
|
53
|
+
{
|
|
54
|
+
type: "button",
|
|
55
|
+
className: e.sort,
|
|
56
|
+
onClick: () => n == null ? void 0 : n(a.key, L),
|
|
57
|
+
children: [
|
|
58
|
+
a.label,
|
|
59
|
+
a.srLabel && /* @__PURE__ */ r("span", { className: e.srOnly, children: a.srLabel }),
|
|
60
|
+
/* @__PURE__ */ r(
|
|
61
|
+
"span",
|
|
62
|
+
{
|
|
63
|
+
"aria-hidden": !0,
|
|
64
|
+
className: i(
|
|
65
|
+
e.sort__arrow,
|
|
66
|
+
a.ariaSort && e[`sort__arrow--${a.ariaSort}`]
|
|
67
|
+
),
|
|
68
|
+
children: a.ariaSort === "descending" ? "▾" : "▴"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
) : /* @__PURE__ */ s(S, { children: [
|
|
75
|
+
a.label,
|
|
76
|
+
a.srLabel && /* @__PURE__ */ r("span", { className: e.srOnly, children: a.srLabel })
|
|
77
|
+
] })
|
|
78
|
+
},
|
|
79
|
+
a.key
|
|
80
|
+
);
|
|
81
|
+
}) }) }),
|
|
82
|
+
/* @__PURE__ */ r("tbody", { children: m ? h(
|
|
83
|
+
/* @__PURE__ */ s("span", { role: "alert", className: e.state__message, children: [
|
|
84
|
+
/* @__PURE__ */ r(v, { "aria-hidden": !0 }),
|
|
85
|
+
m
|
|
86
|
+
] }),
|
|
87
|
+
"error"
|
|
88
|
+
) : p ? h(
|
|
89
|
+
y(
|
|
90
|
+
"DataTable.loadingMessage",
|
|
91
|
+
x,
|
|
92
|
+
(g = t == null ? void 0 : t.dataTable) == null ? void 0 : g.loading
|
|
93
|
+
)
|
|
94
|
+
) : k === 0 ? h(
|
|
95
|
+
y("DataTable.emptyMessage", f, (N = t == null ? void 0 : t.dataTable) == null ? void 0 : N.empty)
|
|
96
|
+
) : d })
|
|
97
|
+
] })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}, A = /* @__PURE__ */ R(
|
|
102
|
+
/* @__PURE__ */ w(({ isWarning: l, className: o, children: d, ...p }) => /* @__PURE__ */ r("tr", { className: i(l && e["row--warning"], o), ...p, children: d })),
|
|
103
|
+
"DataTableRow"
|
|
104
|
+
), G = /* @__PURE__ */ w(F);
|
|
105
|
+
export {
|
|
106
|
+
A as DataTableRow,
|
|
107
|
+
G as default
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/DataTable/index.tsx"],"sourcesContent":["'use client';\n\nimport { Children, type FC, type HTMLAttributes, memo, type ReactNode } from 'react';\n\nimport { ExclamationCircleFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\nexport type DataTableColumn = {\n /** Sütun kimliği (React key). */\n key: string;\n /** Başlık hücresinin içeriği. */\n label?: ReactNode;\n /** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */\n srLabel?: string;\n /** Sıralanabilir sütunun yönü (`aria-sort`). */\n ariaSort?: 'ascending' | 'descending';\n /**\n * Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz\n * metin kalır\n */\n isSortable?: boolean;\n /** Sütun yatay kaydırmada YERİNDE kalır. */\n isSticky?: boolean;\n className?: string;\n};\n\ntype Props = {\n columns: DataTableColumn[];\n /**\n * Tablonun erişilebilir adı (\"Bekleyen siparişler\").\n * ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA \"tablo\" DİYE OKUNUR.\n */\n label?: string;\n /**\n * Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;\n * tablo yalnızca kabuğu ve durum satırlarını üstlenir.\n */\n children?: ReactNode;\n /** Satır yokken gösterilen metin. */\n emptyMessage?: string;\n /** Yükleme sürerken gösterilen metin. */\n loadingMessage?: string;\n isLoading?: boolean;\n /**\n * Liste ÇEKİLEMEDİ. \"Yüklenemedi\" ile \"boş\" ayrı durumlardır: hata verilmişken boş mesajı asla\n * çizilmez\n */\n error?: string | null;\n /** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */\n hasViewportCap?: boolean;\n /** Sıralanabilir bir başlığa basıldığında çağrılır. */\n onSort?: (key: string, direction: 'ascending' | 'descending') => void;\n /** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */\n bulkBar?: ReactNode;\n className?: string;\n testId?: string;\n};\n\n/** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */\nconst DataTable: FC<Props> = ({\n columns,\n label,\n children,\n isLoading,\n error,\n emptyMessage,\n loadingMessage,\n hasViewportCap,\n onSort,\n bulkBar,\n className,\n testId,\n}) => {\n /* Bosluk karari satir SAYISINDAN verilir; cagiranin ayrica `isEmpty` gecmesi gerekmez. */\n const { labels } = useUi();\n const rowCount = Children.count(children);\n\n const renderStateRow = (content: ReactNode, modifier?: 'error') => (\n <tr>\n <td\n colSpan={columns.length}\n className={cx(styles.state, modifier && styles[`state--${modifier}`])}\n >\n {content}\n </td>\n </tr>\n );\n\n return (\n <div\n className={cx(styles.wrapper, hasViewportCap && styles['wrapper--capped'], className)}\n data-testid={testId}\n >\n {bulkBar && <div className={styles.bulkBar}>{bulkBar}</div>}\n\n <table className={styles.table} aria-label={label}>\n <thead>\n <tr>\n {columns.map(column => {\n const isSortable = Boolean(column.isSortable && onSort);\n /* Ilk tikta ARTAN; ikinci tik yonu cevirir. */\n const nextDirection = column.ariaSort === 'ascending' ? 'descending' : 'ascending';\n\n return (\n <th\n key={column.key}\n scope=\"col\"\n aria-sort={column.ariaSort}\n className={cx(column.className, column.isSticky && styles.sticky)}\n >\n {isSortable ? (\n /* Siralama bir DUGME, ` `ye yazilan `onClick` degil. */\n <button\n type=\"button\"\n className={styles.sort}\n onClick={() => onSort?.(column.key, nextDirection)}\n >\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n\n {/*\n Yon oku: `aria-hidden` cunku ayni bilgi `aria-sort`ta.\n Siralanabilir ama siralanmamis sutunda SOLUK bir cift\n ok duruyor — sutunun siralanabildigi ancak uzerine\n gelince anlasiliyordu.\n */}\n <span\n aria-hidden\n className={cx(\n styles.sort__arrow,\n column.ariaSort && styles[`sort__arrow--${column.ariaSort}`],\n )}\n >\n {column.ariaSort === 'descending' ? '▾' : '▴'}\n </span>\n </button>\n ) : (\n <>\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n </>\n )}\n </th>\n );\n })}\n </tr>\n </thead>\n <tbody>\n {error\n ? renderStateRow(\n <span role=\"alert\" className={styles.state__message}>\n <ExclamationCircleFill aria-hidden />\n {error}\n </span>,\n 'error',\n )\n : isLoading\n ? renderStateRow(\n resolveLabel(\n 'DataTable.loadingMessage',\n loadingMessage,\n labels?.dataTable?.loading,\n ),\n )\n : rowCount === 0\n ? renderStateRow(\n resolveLabel('DataTable.emptyMessage', emptyMessage, labels?.dataTable?.empty),\n )\n : children}\n </tbody>\n </table>\n </div>\n );\n};\n\ntype RowProps = HTMLAttributes<HTMLTableRowElement> & {\n children: ReactNode;\n /** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */\n isWarning?: boolean;\n};\n\nexport const DataTableRow: FC<RowProps> = /*#__PURE__*/ named(\n /*#__PURE__*/ memo(({ isWarning, className, children, ...rest }) => (\n <tr className={cx(isWarning && styles['row--warning'], className)} {...rest}>\n {children}\n </tr>\n )),\n 'DataTableRow',\n);\n\nexport default /*#__PURE__*/ memo(DataTable) as typeof DataTable;\n"],"names":["DataTable","columns","label","children","isLoading","error","emptyMessage","loadingMessage","hasViewportCap","onSort","bulkBar","className","testId","labels","useUi","rowCount","Children","renderStateRow","content","modifier","jsx","cx","styles","jsxs","column","isSortable","nextDirection","Fragment","ExclamationCircleFill","resolveLabel","_a","_b","DataTableRow","named","memo","isWarning","rest","index"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";@layer ui{.ui-wrapper-KXCZg{overflow:auto;position:relative;background-color:var(--hd-bg-surface);border:1px solid var(--hd-border);border-radius:var(--hd-radius-sm)}.ui-wrapper--capped-M2QUJ{max-height:calc(100dvh - var(--ui-header-height, 0px) - var(--hd-space-12))}.ui-wrapper--capped-M2QUJ .ui-table-LF5Ow thead th{position:sticky;top:0;z-index:var(--hd-z-sticky)}.ui-table-LF5Ow{width:100%;border-collapse:collapse;font-family:var(--hd-font-body);font-size:var(--hd-type-small-size)}.ui-table-LF5Ow th,.ui-table-LF5Ow td{padding:var(--hd-space-3);text-align:start;border-bottom:1px solid var(--hd-border);vertical-align:middle}.ui-table-LF5Ow thead th{background-color:var(--hd-bg-raised);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text-2);white-space:nowrap}.ui-table-LF5Ow tbody tr:hover{background-color:var(--hd-bg-inset)}.ui-state-YPPb0{text-align:center;color:var(--hd-text-2);padding-block:var(--hd-space-6)}.ui-state--error-A492d{color:var(--hd-danger-fg)}.ui-state__message-wwbIW{display:inline-flex;align-items:center;gap:var(--hd-space-2)}.ui-state__message-wwbIW svg{font-size:18px;flex-shrink:0}.ui-row--warning-BAUN2{background-color:var(--hd-warning-bg)}.ui-row--warning-BAUN2 td:first-child{box-shadow:inset 3px 0 0 var(--hd-warning-fg)}.ui-srOnly-Oia8c{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ui-sort-3Q6Fx{display:inline-flex;align-items:center;gap:var(--hd-space-1);width:100%;padding:0;border:none;background:none;cursor:pointer;font:inherit;color:inherit;text-align:inherit}.ui-sort-3Q6Fx:hover .ui-sort__arrow-MITWb:not(.ui-sort__arrow--ascending-85T5d,.ui-sort__arrow--descending-gs3VU){color:var(--hd-text)}.ui-sort-3Q6Fx:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, -2px)}.ui-sort__arrow-MITWb{flex-shrink:0;font-size:var(--hd-type-caption-size);color:var(--hd-text-3);transition:color var(--hd-duration-fast) var(--hd-ease-standard)}@media (forced-colors: active){.ui-sort__arrow-MITWb{color:GrayText}}.ui-sort__arrow--ascending-85T5d,.ui-sort__arrow--descending-gs3VU{color:var(--hd-text)}@media (prefers-reduced-motion: reduce){.ui-sort__arrow-MITWb{transition:none}}.ui-sticky-KDEvQ{position:sticky;left:0;z-index:var(--hd-z-raised);background-color:var(--hd-bg-surface)}[dir=rtl] .ui-sticky-KDEvQ{left:auto;right:0}.ui-sticky-KDEvQ:after{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:1px;background-color:var(--hd-border)}thead .ui-sticky-KDEvQ{background-color:var(--hd-bg-raised)}.ui-bulkBar-62qk0{display:flex;align-items:center;gap:var(--hd-space-3);position:sticky;top:0;z-index:var(--hd-z-sticky);padding:var(--hd-space-2) var(--hd-space-3);border-bottom:1px solid var(--hd-border-strong);background-color:var(--hd-primary-soft);font-size:var(--hd-type-small-size);color:var(--hd-text)}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),u=require("react"),_=require("../../helpers/class-name.helper.cjs"),h=require("../../helpers/component.helper.cjs"),F=require("../../theme/context.cjs"),t={default:{"dateField":"ui-dateField-UnUwe","dateField--sm":"ui-dateField--sm-bcDe9","range":"ui-range-nGuRH","range__row":"ui-range__row--debA","range__separator":"ui-range__separator-fEqqr","range__field":"ui-range__field-tmoNH","range__summary":"ui-range__summary-L6v1T"}},m=u.forwardRef(({type:e="date",size:n="md",className:l,testId:c,...s},d)=>a.jsx("input",{ref:d,type:e,className:_.cx(t.default.dateField,n==="sm"&&t.default["dateField--sm"],l),"data-testid":c,...s})),v=u.memo(h.named(m,"DateField")),$=({value:e,onChange:n,startLabel:l,endLabel:c,separator:s="–",min:d,max:f,isSummaryVisible:j,size:D,isDisabled:b,isReadOnly:p,id:o,required:y,"aria-describedby":N,"aria-invalid":q,className:R,testId:w})=>{const{labels:i}=F.useUi(),g=(()=>{if(!j||!(i!=null&&i.locale)||e.start===""||e.end==="")return null;try{const r=new Intl.DateTimeFormat(i.locale,{dateStyle:"medium"});return`${r.format(new Date(e.start))} ${s} ${r.format(new Date(e.end))}`}catch{return null}})(),x={className:t.default.range__field,size:D,disabled:b,readOnly:p,required:y,"aria-describedby":N,"aria-invalid":q||void 0};return a.jsxs("div",{className:_.cx(t.default.range,R),"data-testid":w,children:[a.jsxs("div",{className:t.default.range__row,children:[a.jsx(m,{...x,id:o,"aria-label":l,value:e.start,min:d,max:e.end||f,onChange:r=>n({...e,start:r.target.value})}),a.jsx("span",{className:t.default.range__separator,"aria-hidden":!0,children:s}),a.jsx(m,{...x,id:o===void 0?void 0:`${o}-end`,"aria-label":c,value:e.end,min:e.start||d,max:f,onChange:r=>n({...e,end:r.target.value})})]}),g&&a.jsx("span",{className:t.default.range__summary,children:g})]})},S=h.named(u.memo($),"DateRange");exports.DateRange=S;exports.default=v;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/DateField/index.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, type InputHTMLAttributes, memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\n/* `size` yerel ozellikte karakter genisligi (`number`); burada olcu adi — `Input` ile ayni. */\ntype Props = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {\n /** `date` (varsayılan) · `datetime-local` · `month` · `time`. */\n type?: 'date' | 'datetime-local' | 'month' | 'time';\n /** `sm` yoğun şeritler içindir (araç çubuğu, `Select size=\"sm\"` yanında); varsayılan form ölçüsü `md`. */\n size?: 'sm' | 'md';\n testId?: string;\n};\n\n/** Tarih alanı — yerel `<input type=\"date\">`. */\nconst DateField = forwardRef<HTMLInputElement, Props>(\n ({ type = 'date', size = 'md', className, testId, ...rest }, ref) => (\n <input\n ref={ref}\n type={type}\n className={cx(styles.dateField, size === 'sm' && styles['dateField--sm'], className)}\n data-testid={testId}\n {...rest}\n />\n ),\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(DateField, 'DateField')) as typeof DateField;\n\nexport type DateRangeValue = {\n /** ISO tarih (`YYYY-MM-DD`) ya da boş dize. */\n start: string;\n end: string;\n};\n\ntype RangeProps = {\n value: DateRangeValue;\n onChange: (value: DateRangeValue) => void;\n /** Başlangıç alanının erişilebilir adı (\"Başlangıç\"). */\n startLabel: string;\n /** Bitiş alanının erişilebilir adı (\"Bitiş\"). */\n endLabel: string;\n /** İki alanın arasındaki ayraç. */\n separator?: string;\n /** Ölçeğin uçları; ikisi de yerel öğeye geçer. */\n min?: string;\n max?: string;\n /** Seçilen aralığın okunur özetini gösterir. */\n isSummaryVisible?: boolean;\n /** İki alanın ölçüsü — `DateField.size`. */\n size?: Props['size'];\n isDisabled?: boolean;\n /** Read-only (2.2): the native `readOnly` of both fields — focusable and readable, not editable. */\n isReadOnly?: boolean;\n /**\n * The id of the START field (2.2) — the `id` of `Field`'s `FieldChildProps`, so a form's focus\n * reaches the range. The end field takes `<id>-end`.\n */\n id?: string;\n /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); native `required` on both fields. */\n required?: boolean;\n /** On both fields (2.2), with the error and hint ids of `Field`. */\n 'aria-describedby'?: string;\n /** On both fields (2.2); each draws the danger edge of an invalid field. */\n 'aria-invalid'?: boolean;\n className?: string;\n testId?: string;\n};\n\n/** Tarih aralığı — iki yerel alan, taklit takvim değil. */\nconst DateRangeBase = ({\n value,\n onChange,\n startLabel,\n endLabel,\n separator = '–',\n min,\n max,\n isSummaryVisible,\n size,\n isDisabled,\n isReadOnly,\n id,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid,\n className,\n testId,\n}: RangeProps) => {\n const { labels } = useUi();\n\n /* OZET `Intl` ile ve `labels.locale`den. */\n const summary = (() => {\n if (!isSummaryVisible || !labels?.locale || value.start === '' || value.end === '') return null;\n\n try {\n const format = new Intl.DateTimeFormat(labels.locale, { dateStyle: 'medium' });\n return `${format.format(new Date(value.start))} ${separator} ${format.format(new Date(value.end))}`;\n } catch {\n /* Gecersiz yerel ayar ya da tarih: ozet cizilmez, alanlar calismaya devam eder. */\n return null;\n }\n })();\n\n /* The same state and links on both fields: each is a stop of its own for a screen reader. */\n const fieldProps = {\n className: styles.range__field,\n size,\n disabled: isDisabled,\n readOnly: isReadOnly,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid || undefined,\n };\n\n return (\n <div className={cx(styles.range, className)} data-testid={testId}>\n <div className={styles.range__row}>\n <DateField\n {...fieldProps}\n id={id}\n aria-label={startLabel}\n value={value.start}\n min={min}\n /* Baslangic bitisi GECEMEZ: tarayici gecersiz araligi en bastan sectirmiyor. */\n max={value.end || max}\n onChange={event => onChange({ ...value, start: event.target.value })}\n />\n\n <span className={styles.range__separator} aria-hidden>\n {separator}\n </span>\n\n <DateField\n {...fieldProps}\n id={id === undefined ? undefined : `${id}-end`}\n aria-label={endLabel}\n value={value.end}\n min={value.start || min}\n max={max}\n onChange={event => onChange({ ...value, end: event.target.value })}\n />\n </div>\n\n {summary && <span className={styles.range__summary}>{summary}</span>}\n </div>\n );\n};\n\nexport const DateRange = /*#__PURE__*/ named(/*#__PURE__*/ memo(DateRangeBase), 'DateRange');\n"],"names":["DateField","forwardRef","type","size","className","testId","rest","ref","jsx","cx","styles","index","memo","named","DateRangeBase","value","onChange","startLabel","endLabel","separator","min","max","isSummaryVisible","isDisabled","isReadOnly","id","required","describedBy","isInvalid","labels","useUi","summary","format","fieldProps","jsxs","event","DateRange"],"mappings":"4VAmBMA,EAAYC,EAAAA,WAChB,CAAC,CAAE,KAAAC,EAAO,OAAQ,KAAAC,EAAO,KAAM,UAAAC,EAAW,OAAAC,EAAQ,GAAGC,GAAQC,IAC3DC,EAAAA,IAAC,QAAA,CACC,IAAAD,EACA,KAAAL,EACA,UAAWO,EAAAA,GAAGC,EAAAA,QAAO,UAAWP,IAAS,MAAQO,EAAAA,QAAO,eAAe,EAAGN,CAAS,EACnF,cAAaC,EACZ,GAAGC,CAAA,CAAA,CAGV,EAEAK,EAA6BC,OAAmBC,EAAAA,MAAMb,EAAW,WAAW,CAAC,EA2CvEc,EAAgB,CAAC,CACrB,MAAAC,EACA,SAAAC,EACA,WAAAC,EACA,SAAAC,EACA,UAAAC,EAAY,IACZ,IAAAC,EACA,IAAAC,EACA,iBAAAC,EACA,KAAAnB,EACA,WAAAoB,EACA,WAAAC,EACA,GAAAC,EACA,SAAAC,EACA,mBAAoBC,EACpB,eAAgBC,EAChB,UAAAxB,EACA,OAAAC,CACF,IAAkB,CAChB,KAAM,CAAE,OAAAwB,CAAA,EAAWC,QAAA,EAGbC,GAAW,IAAM,CACrB,GAAI,CAACT,GAAoB,EAACO,GAAA,MAAAA,EAAQ,SAAUd,EAAM,QAAU,IAAMA,EAAM,MAAQ,GAAI,OAAO,KAE3F,GAAI,CACF,MAAMiB,EAAS,IAAI,KAAK,eAAeH,EAAO,OAAQ,CAAE,UAAW,SAAU,EAC7E,MAAO,GAAGG,EAAO,OAAO,IAAI,KAAKjB,EAAM,KAAK,CAAC,CAAC,IAAII,CAAS,IAAIa,EAAO,OAAO,IAAI,KAAKjB,EAAM,GAAG,CAAC,CAAC,EACnG,MAAQ,CAEN,OAAO,IACT,CACF,GAAA,EAGMkB,EAAa,CACjB,UAAWvB,EAAAA,QAAO,aAClB,KAAAP,EACA,SAAUoB,EACV,SAAUC,EACV,SAAAE,EACA,mBAAoBC,EACpB,eAAgBC,GAAa,MAAA,EAG/B,OACEM,OAAC,OAAI,UAAWzB,EAAAA,GAAGC,EAAAA,QAAO,MAAON,CAAS,EAAG,cAAaC,EACxD,SAAA,CAAA6B,EAAAA,KAAC,MAAA,CAAI,UAAWxB,EAAAA,QAAO,WACrB,SAAA,CAAAF,EAAAA,IAACR,EAAA,CACE,GAAGiC,EACJ,GAAAR,EACA,aAAYR,EACZ,MAAOF,EAAM,MACb,IAAAK,EAEA,IAAKL,EAAM,KAAOM,EAClB,SAAUc,GAASnB,EAAS,CAAE,GAAGD,EAAO,MAAOoB,EAAM,OAAO,KAAA,CAAO,CAAA,CAAA,QAGpE,OAAA,CAAK,UAAWzB,EAAAA,QAAO,iBAAkB,cAAW,GAClD,SAAAS,EACH,EAEAX,EAAAA,IAACR,EAAA,CACE,GAAGiC,EACJ,GAAIR,IAAO,OAAY,OAAY,GAAGA,CAAE,OACxC,aAAYP,EACZ,MAAOH,EAAM,IACb,IAAKA,EAAM,OAASK,EACpB,IAAAC,EACA,SAAUc,GAASnB,EAAS,CAAE,GAAGD,EAAO,IAAKoB,EAAM,OAAO,KAAA,CAAO,CAAA,CAAA,CACnE,EACF,EAECJ,GAAWvB,EAAAA,IAAC,OAAA,CAAK,UAAWE,EAAAA,QAAO,eAAiB,SAAAqB,CAAA,CAAQ,CAAA,EAC/D,CAEJ,EAEaK,EAA0BvB,EAAAA,MAAoBD,OAAKE,CAAa,EAAG,WAAW"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
type Props = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {
|
|
3
|
+
/** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
|
|
4
|
+
type?: 'date' | 'datetime-local' | 'month' | 'time';
|
|
5
|
+
/** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
|
|
6
|
+
size?: 'sm' | 'md';
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
/** Tarih alanı — yerel `<input type="date">`. */
|
|
10
|
+
declare const DateField: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
|
|
11
|
+
/** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
|
|
12
|
+
type?: "date" | "datetime-local" | "month" | "time";
|
|
13
|
+
/** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
|
|
14
|
+
size?: "sm" | "md";
|
|
15
|
+
testId?: string;
|
|
16
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
17
|
+
declare const _default: typeof DateField;
|
|
18
|
+
export default _default;
|
|
19
|
+
export type DateRangeValue = {
|
|
20
|
+
/** ISO tarih (`YYYY-MM-DD`) ya da boş dize. */
|
|
21
|
+
start: string;
|
|
22
|
+
end: string;
|
|
23
|
+
};
|
|
24
|
+
type RangeProps = {
|
|
25
|
+
value: DateRangeValue;
|
|
26
|
+
onChange: (value: DateRangeValue) => void;
|
|
27
|
+
/** Başlangıç alanının erişilebilir adı ("Başlangıç"). */
|
|
28
|
+
startLabel: string;
|
|
29
|
+
/** Bitiş alanının erişilebilir adı ("Bitiş"). */
|
|
30
|
+
endLabel: string;
|
|
31
|
+
/** İki alanın arasındaki ayraç. */
|
|
32
|
+
separator?: string;
|
|
33
|
+
/** Ölçeğin uçları; ikisi de yerel öğeye geçer. */
|
|
34
|
+
min?: string;
|
|
35
|
+
max?: string;
|
|
36
|
+
/** Seçilen aralığın okunur özetini gösterir. */
|
|
37
|
+
isSummaryVisible?: boolean;
|
|
38
|
+
/** İki alanın ölçüsü — `DateField.size`. */
|
|
39
|
+
size?: Props['size'];
|
|
40
|
+
isDisabled?: boolean;
|
|
41
|
+
/** Read-only (2.2): the native `readOnly` of both fields — focusable and readable, not editable. */
|
|
42
|
+
isReadOnly?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The id of the START field (2.2) — the `id` of `Field`'s `FieldChildProps`, so a form's focus
|
|
45
|
+
* reaches the range. The end field takes `<id>-end`.
|
|
46
|
+
*/
|
|
47
|
+
id?: string;
|
|
48
|
+
/** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); native `required` on both fields. */
|
|
49
|
+
required?: boolean;
|
|
50
|
+
/** On both fields (2.2), with the error and hint ids of `Field`. */
|
|
51
|
+
'aria-describedby'?: string;
|
|
52
|
+
/** On both fields (2.2); each draws the danger edge of an invalid field. */
|
|
53
|
+
'aria-invalid'?: boolean;
|
|
54
|
+
className?: string;
|
|
55
|
+
testId?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const DateRange: import('react').MemoExoticComponent<({ value, onChange, startLabel, endLabel, separator, min, max, isSummaryVisible, size, isDisabled, isReadOnly, id, required, "aria-describedby": describedBy, "aria-invalid": isInvalid, className, testId, }: RangeProps) => import("react").JSX.Element>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
type Props = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {
|
|
3
|
+
/** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
|
|
4
|
+
type?: 'date' | 'datetime-local' | 'month' | 'time';
|
|
5
|
+
/** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
|
|
6
|
+
size?: 'sm' | 'md';
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
/** Tarih alanı — yerel `<input type="date">`. */
|
|
10
|
+
declare const DateField: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
|
|
11
|
+
/** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
|
|
12
|
+
type?: "date" | "datetime-local" | "month" | "time";
|
|
13
|
+
/** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
|
|
14
|
+
size?: "sm" | "md";
|
|
15
|
+
testId?: string;
|
|
16
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
17
|
+
declare const _default: typeof DateField;
|
|
18
|
+
export default _default;
|
|
19
|
+
export type DateRangeValue = {
|
|
20
|
+
/** ISO tarih (`YYYY-MM-DD`) ya da boş dize. */
|
|
21
|
+
start: string;
|
|
22
|
+
end: string;
|
|
23
|
+
};
|
|
24
|
+
type RangeProps = {
|
|
25
|
+
value: DateRangeValue;
|
|
26
|
+
onChange: (value: DateRangeValue) => void;
|
|
27
|
+
/** Başlangıç alanının erişilebilir adı ("Başlangıç"). */
|
|
28
|
+
startLabel: string;
|
|
29
|
+
/** Bitiş alanının erişilebilir adı ("Bitiş"). */
|
|
30
|
+
endLabel: string;
|
|
31
|
+
/** İki alanın arasındaki ayraç. */
|
|
32
|
+
separator?: string;
|
|
33
|
+
/** Ölçeğin uçları; ikisi de yerel öğeye geçer. */
|
|
34
|
+
min?: string;
|
|
35
|
+
max?: string;
|
|
36
|
+
/** Seçilen aralığın okunur özetini gösterir. */
|
|
37
|
+
isSummaryVisible?: boolean;
|
|
38
|
+
/** İki alanın ölçüsü — `DateField.size`. */
|
|
39
|
+
size?: Props['size'];
|
|
40
|
+
isDisabled?: boolean;
|
|
41
|
+
/** Read-only (2.2): the native `readOnly` of both fields — focusable and readable, not editable. */
|
|
42
|
+
isReadOnly?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The id of the START field (2.2) — the `id` of `Field`'s `FieldChildProps`, so a form's focus
|
|
45
|
+
* reaches the range. The end field takes `<id>-end`.
|
|
46
|
+
*/
|
|
47
|
+
id?: string;
|
|
48
|
+
/** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); native `required` on both fields. */
|
|
49
|
+
required?: boolean;
|
|
50
|
+
/** On both fields (2.2), with the error and hint ids of `Field`. */
|
|
51
|
+
'aria-describedby'?: string;
|
|
52
|
+
/** On both fields (2.2); each draws the danger edge of an invalid field. */
|
|
53
|
+
'aria-invalid'?: boolean;
|
|
54
|
+
className?: string;
|
|
55
|
+
testId?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const DateRange: import('react').MemoExoticComponent<({ value, onChange, startLabel, endLabel, separator, min, max, isSummaryVisible, size, isDisabled, isReadOnly, id, required, "aria-describedby": describedBy, "aria-invalid": isInvalid, className, testId, }: RangeProps) => import("react").JSX.Element>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import { memo as y, forwardRef as v } from "react";
|
|
4
|
+
import { cx as D } from "../../helpers/class-name.helper.js";
|
|
5
|
+
import { named as _ } from "../../helpers/component.helper.js";
|
|
6
|
+
import { useUi as B } from "../../theme/context.js";
|
|
7
|
+
const e = {"dateField":"ui-dateField-UnUwe","dateField--sm":"ui-dateField--sm-bcDe9","range":"ui-range-nGuRH","range__row":"ui-range__row--debA","range__separator":"ui-range__separator-fEqqr","range__field":"ui-range__field-tmoNH","range__summary":"ui-range__summary-L6v1T"};
|
|
8
|
+
const c = v(
|
|
9
|
+
({ type: a = "date", size: n = "md", className: m, testId: o, ...d }, s) => /* @__PURE__ */ r(
|
|
10
|
+
"input",
|
|
11
|
+
{
|
|
12
|
+
ref: s,
|
|
13
|
+
type: a,
|
|
14
|
+
className: D(e.dateField, n === "sm" && e["dateField--sm"], m),
|
|
15
|
+
"data-testid": o,
|
|
16
|
+
...d
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
), k = /* @__PURE__ */ y(/* @__PURE__ */ _(c, "DateField")), C = ({
|
|
20
|
+
value: a,
|
|
21
|
+
onChange: n,
|
|
22
|
+
startLabel: m,
|
|
23
|
+
endLabel: o,
|
|
24
|
+
separator: d = "–",
|
|
25
|
+
min: s,
|
|
26
|
+
max: f,
|
|
27
|
+
isSummaryVisible: h,
|
|
28
|
+
size: b,
|
|
29
|
+
isDisabled: N,
|
|
30
|
+
isReadOnly: w,
|
|
31
|
+
id: l,
|
|
32
|
+
required: x,
|
|
33
|
+
"aria-describedby": F,
|
|
34
|
+
"aria-invalid": R,
|
|
35
|
+
className: $,
|
|
36
|
+
testId: j
|
|
37
|
+
}) => {
|
|
38
|
+
const { labels: i } = B(), g = (() => {
|
|
39
|
+
if (!h || !(i != null && i.locale) || a.start === "" || a.end === "") return null;
|
|
40
|
+
try {
|
|
41
|
+
const t = new Intl.DateTimeFormat(i.locale, { dateStyle: "medium" });
|
|
42
|
+
return `${t.format(new Date(a.start))} ${d} ${t.format(new Date(a.end))}`;
|
|
43
|
+
} catch {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
})(), p = {
|
|
47
|
+
className: e.range__field,
|
|
48
|
+
size: b,
|
|
49
|
+
disabled: N,
|
|
50
|
+
readOnly: w,
|
|
51
|
+
required: x,
|
|
52
|
+
"aria-describedby": F,
|
|
53
|
+
"aria-invalid": R || void 0
|
|
54
|
+
};
|
|
55
|
+
return /* @__PURE__ */ u("div", { className: D(e.range, $), "data-testid": j, children: [
|
|
56
|
+
/* @__PURE__ */ u("div", { className: e.range__row, children: [
|
|
57
|
+
/* @__PURE__ */ r(
|
|
58
|
+
c,
|
|
59
|
+
{
|
|
60
|
+
...p,
|
|
61
|
+
id: l,
|
|
62
|
+
"aria-label": m,
|
|
63
|
+
value: a.start,
|
|
64
|
+
min: s,
|
|
65
|
+
max: a.end || f,
|
|
66
|
+
onChange: (t) => n({ ...a, start: t.target.value })
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ r("span", { className: e.range__separator, "aria-hidden": !0, children: d }),
|
|
70
|
+
/* @__PURE__ */ r(
|
|
71
|
+
c,
|
|
72
|
+
{
|
|
73
|
+
...p,
|
|
74
|
+
id: l === void 0 ? void 0 : `${l}-end`,
|
|
75
|
+
"aria-label": o,
|
|
76
|
+
value: a.end,
|
|
77
|
+
min: a.start || s,
|
|
78
|
+
max: f,
|
|
79
|
+
onChange: (t) => n({ ...a, end: t.target.value })
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }),
|
|
83
|
+
g && /* @__PURE__ */ r("span", { className: e.range__summary, children: g })
|
|
84
|
+
] });
|
|
85
|
+
}, q = /* @__PURE__ */ _(/* @__PURE__ */ y(C), "DateRange");
|
|
86
|
+
export {
|
|
87
|
+
q as DateRange,
|
|
88
|
+
k as default
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=index.js.map
|