@handijit/ui 0.0.0-stage → 2.0.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 +786 -2
- package/build/base.css +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 +1121 -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.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.ts +15 -0
- package/build/components/Alert/index.js +30 -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.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.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.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.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.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.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.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.ts +10 -0
- package/build/components/Checkbox/index.js +33 -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.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.ts +34 -0
- package/build/components/ChipGroup/index.js +64 -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.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.ts +6 -0
- package/build/components/Combobox/index.js +302 -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.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.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.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.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.ts +44 -0
- package/build/components/DateField/index.js +79 -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.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.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.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.ts +22 -0
- package/build/components/Drawer/index.js +88 -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.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.ts +31 -0
- package/build/components/Field/index.js +52 -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.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.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.ts +22 -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.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.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.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.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.ts +28 -0
- package/build/components/Modal/index.js +92 -0
- package/build/components/Modal/index.js.map +1 -0
- package/build/components/Modal/style.css +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.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.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.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.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/Popover/index.cjs +2 -0
- package/build/components/Popover/index.cjs.map +1 -0
- package/build/components/Popover/index.d.ts +20 -0
- package/build/components/Popover/index.js +91 -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.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.ts +49 -0
- package/build/components/Progress/index.js +120 -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.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/QuantityStepper/index.cjs +2 -0
- package/build/components/QuantityStepper/index.cjs.map +1 -0
- package/build/components/QuantityStepper/index.d.ts +21 -0
- package/build/components/QuantityStepper/index.js +106 -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.ts +12 -0
- package/build/components/Radio/index.js +35 -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.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.ts +26 -0
- package/build/components/RangeSlider/index.js +102 -0
- package/build/components/RangeSlider/index.js.map +1 -0
- package/build/components/RangeSlider/style.css +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.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.ts +21 -0
- package/build/components/RatingInput/index.js +75 -0
- package/build/components/RatingInput/index.js.map +1 -0
- package/build/components/RatingInput/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.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.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.ts +24 -0
- package/build/components/SegmentedControl/index.js +69 -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.ts +39 -0
- package/build/components/Select/index.js +179 -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.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.ts +11 -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.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.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.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.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.ts +16 -0
- package/build/components/Switch/index.js +42 -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.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.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.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.ts +25 -0
- package/build/components/TagInput/index.js +124 -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.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.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.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.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.ts +43 -0
- package/build/components/Toast/index.js +136 -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.ts +8 -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.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.ts +13 -0
- package/build/constants/breakpoint.constants.js +11 -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.ts +11 -0
- package/build/constants/combobox.constants.js +7 -0
- package/build/constants/combobox.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.ts +7 -0
- package/build/constants/scroll.constants.js +5 -0
- package/build/constants/scroll.constants.js.map +1 -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.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.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/class-name.helper.cjs +2 -0
- package/build/helpers/class-name.helper.cjs.map +1 -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.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.ts +42 -0
- package/build/helpers/focus.helper.js +65 -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.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.ts +28 -0
- package/build/helpers/portal.helper.js +36 -0
- package/build/helpers/portal.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.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.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.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.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.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.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.ts +12 -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.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.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.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.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.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.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.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.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.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.ts +93 -0
- package/build/index.js +199 -0
- package/build/index.js.map +1 -0
- package/build/scss/_index.scss +7 -0
- package/build/scss/_mixins.scss +828 -0
- package/build/scss/_variables.scss +243 -0
- package/build/styles/base.d.ts +0 -0
- package/build/styles.css +133 -0
- package/build/theme/UiProvider.cjs +2 -0
- package/build/theme/UiProvider.cjs.map +1 -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.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.ts +5 -0
- package/build/theme/context.js +8 -0
- package/build/theme/context.js.map +1 -0
- package/build/types/charts/AreaChart/index.d.ts +14 -0
- package/build/types/charts/BarChart/index.d.ts +16 -0
- package/build/types/charts/BoxPlot/index.d.ts +43 -0
- package/build/types/charts/ComposedChart/index.d.ts +16 -0
- package/build/types/charts/Heatmap/index.d.ts +30 -0
- package/build/types/charts/Histogram/index.d.ts +29 -0
- package/build/types/charts/LineChart/index.d.ts +14 -0
- package/build/types/charts/PieChart/index.d.ts +36 -0
- package/build/types/charts/RadarChart/index.d.ts +40 -0
- package/build/types/charts/ScatterPlot/index.d.ts +41 -0
- package/build/types/charts/core/CartesianChart.d.ts +43 -0
- package/build/types/charts/core/ChartFrame.d.ts +55 -0
- package/build/types/charts/core/axes.d.ts +37 -0
- package/build/types/charts/core/cartesian.d.ts +80 -0
- package/build/types/charts/core/format.d.ts +19 -0
- package/build/types/charts/core/margins.d.ts +9 -0
- package/build/types/charts/core/palette.d.ts +11 -0
- package/build/types/charts/core/path.d.ts +24 -0
- package/build/types/charts/core/scale.d.ts +40 -0
- package/build/types/charts/core/series.d.ts +11 -0
- package/build/types/charts/core/spatial.d.ts +12 -0
- package/build/types/charts/core/stats.d.ts +34 -0
- package/build/types/charts/core/types.d.ts +31 -0
- package/build/types/charts/core/useChartWidth.d.ts +7 -0
- package/build/types/charts/index.d.ts +21 -0
- package/build/types/chat/ActionList/index.d.ts +46 -0
- package/build/types/chat/AppBar/index.d.ts +21 -0
- package/build/types/chat/ChatMessage/index.d.ts +24 -0
- package/build/types/chat/ChatThread/index.d.ts +24 -0
- package/build/types/chat/Citation/index.d.ts +15 -0
- package/build/types/chat/CodeBlock/format.d.ts +7 -0
- package/build/types/chat/CodeBlock/grammars.d.ts +44 -0
- package/build/types/chat/CodeBlock/highlight.d.ts +22 -0
- package/build/types/chat/CodeBlock/index.d.ts +33 -0
- package/build/types/chat/DescriptionList/index.d.ts +16 -0
- package/build/types/chat/Legend/index.d.ts +21 -0
- package/build/types/chat/MessageActions/index.d.ts +21 -0
- package/build/types/chat/PromptInput/index.d.ts +47 -0
- package/build/types/chat/PromptSuggestions/index.d.ts +25 -0
- package/build/types/chat/Prose/index.d.ts +15 -0
- package/build/types/chat/ReasoningBlock/index.d.ts +24 -0
- package/build/types/chat/ReasoningText/index.d.ts +14 -0
- package/build/types/chat/SegmentBar/index.d.ts +46 -0
- package/build/types/chat/SourceList/index.d.ts +25 -0
- package/build/types/chat/TerminalOutput/index.d.ts +25 -0
- package/build/types/chat/ToolCall/index.d.ts +41 -0
- package/build/types/chat/index.d.ts +26 -0
- package/build/types/combobox.type.d.ts +49 -0
- package/build/types/common-element-props.type.d.ts +8 -0
- package/build/types/helpers/class-name.helper.d.ts +3 -0
- package/build/types/helpers/component.helper.d.ts +13 -0
- package/build/types/helpers/label.helper.d.ts +12 -0
- package/build/types/hook.type.d.ts +36 -0
- package/build/types/link.type.d.ts +14 -0
- package/build/types/positioning.type.d.ts +38 -0
- package/build/types/theme.type.d.ts +181 -0
- package/build/types/types/common-element-props.type.d.ts +8 -0
- package/build/types/types/link.type.d.ts +14 -0
- package/build/types/types/theme.type.d.ts +181 -0
- package/package.json +487 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
export type ToolCallStatus = 'running' | 'ok' | 'error' | 'aborted' | 'interrupted';
|
|
3
|
+
type Props = {
|
|
4
|
+
/** Aracın ikonu. */
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
/** Aracın adı — çağrı yerine özgü ("bash", "araştır"). */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Tek satırlık özet (komut, sorgu); teknik fontta, taşan kesilir. */
|
|
9
|
+
summary?: string;
|
|
10
|
+
status: ToolCallStatus;
|
|
11
|
+
/** Sağdaki ikincil bilgi (süre). */
|
|
12
|
+
meta?: ReactNode;
|
|
13
|
+
isDefaultOpen?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Kontrollü açılış — `onOpenChange` ile. Örn. çalışırken açık, bitince (kullanıcı dokunmadıysa)
|
|
16
|
+
* kapalı bir terminal kartı.
|
|
17
|
+
*/
|
|
18
|
+
isOpen?: boolean;
|
|
19
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
20
|
+
/** Gövde — `ToolCallSection`lar. */
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
testId?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Araç çağrısı kartı — ikon, ad, özet, durum noktası ve süre; açılınca bölümleri.
|
|
27
|
+
*
|
|
28
|
+
* Durum hem noktayla hem OKUNAN metinle bildirilir (`labels.chat.toolStatus`): renk tek başına
|
|
29
|
+
* anlam taşımaz. Çalışan çağrının noktası nabız atar ve NÖTRDÜR — süren iş marka yüzeyi değil.
|
|
30
|
+
*/
|
|
31
|
+
declare const ToolCall: FC<Props>;
|
|
32
|
+
type SectionProps = {
|
|
33
|
+
/** Bölümün başlığı ("Girdi", "Çıktı", "Hata") — overline. */
|
|
34
|
+
label: string;
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
className?: string;
|
|
37
|
+
};
|
|
38
|
+
/** Araç çağrısının bir bölümü — başlık + gövde. */
|
|
39
|
+
export declare const ToolCallSection: FC<SectionProps>;
|
|
40
|
+
declare const _default: typeof ToolCall;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @handijit/ui/chat — sohbet ve uygulama bileşenleri. Dışa verilen her ad bir SÖZLEŞMEDİR.
|
|
3
|
+
*
|
|
4
|
+
* ⚠ Ana girişe ait HER ŞEY (bileşenler, `useUi`, kancalar) paket adıyla alınır:
|
|
5
|
+
* `import { … } from '@handijit/ui'`. Göreli yol yalnızca durumsuz yardımcılar (`cx`,
|
|
6
|
+
* `named`, metin çözümü) ve SCSS içindir. Nöbetçi `__tests__/subentry-boundary.test.ts`.
|
|
7
|
+
* Stiller `@handijit/ui/chat.css` — `styles.css`ten AYRI ve ONDAN SONRA içe aktarılır.
|
|
8
|
+
*/
|
|
9
|
+
export { default as ChatThread } from './ChatThread';
|
|
10
|
+
export { default as ChatMessage, type ChatMessageAuthor } from './ChatMessage';
|
|
11
|
+
export { default as PromptInput } from './PromptInput';
|
|
12
|
+
export { default as PromptSuggestions, type PromptSuggestion } from './PromptSuggestions';
|
|
13
|
+
export { default as Prose } from './Prose';
|
|
14
|
+
export { default as CodeBlock } from './CodeBlock';
|
|
15
|
+
export { default as ReasoningBlock } from './ReasoningBlock';
|
|
16
|
+
export { default as ReasoningText } from './ReasoningText';
|
|
17
|
+
export { default as ToolCall, ToolCallSection, type ToolCallStatus } from './ToolCall';
|
|
18
|
+
export { default as TerminalOutput, type TerminalChunk } from './TerminalOutput';
|
|
19
|
+
export { default as SourceList, type SourceItem } from './SourceList';
|
|
20
|
+
export { default as Citation } from './Citation';
|
|
21
|
+
export { default as MessageActions } from './MessageActions';
|
|
22
|
+
export { default as AppBar } from './AppBar';
|
|
23
|
+
export { default as ActionList, ActionListItem } from './ActionList';
|
|
24
|
+
export { default as SegmentBar, type SegmentBarMarker, type SegmentBarSegment } from './SegmentBar';
|
|
25
|
+
export { default as Legend, type LegendItem, type LegendTone } from './Legend';
|
|
26
|
+
export { default as DescriptionList, type DescriptionItem } from './DescriptionList';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ComboboxOption<T extends string = string> = {
|
|
3
|
+
value: T;
|
|
4
|
+
label: string;
|
|
5
|
+
/** İkincil satır: kod, numara, ayırt edici bilgi. */
|
|
6
|
+
description?: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** Bileşenin çizdiği metinler. */
|
|
10
|
+
export type ComboboxLabels = {
|
|
11
|
+
/** Seçim yokken tetikleyicide ve alt sayfa başlığında görünen metin. */
|
|
12
|
+
placeholder: string;
|
|
13
|
+
/** Arama kutusunun yer tutucusu ve erişilebilir adı. */
|
|
14
|
+
searchPlaceholder?: string;
|
|
15
|
+
/** Liste boşken gösterilen metin. */
|
|
16
|
+
emptyMessage?: string;
|
|
17
|
+
/** Arama sürerken liste yerine gösterilen metin. */
|
|
18
|
+
loadingMessage?: string;
|
|
19
|
+
/** Seçimi kaldıran çarpının erişilebilir adı. */
|
|
20
|
+
clearLabel?: string;
|
|
21
|
+
/** Alt sayfanın kapatma düğmesinin erişilebilir adı. */
|
|
22
|
+
closeLabel?: string;
|
|
23
|
+
};
|
|
24
|
+
export type ComboboxProps<T extends string> = {
|
|
25
|
+
options: ComboboxOption<T>[];
|
|
26
|
+
value: T | null;
|
|
27
|
+
onChange: (value: T | null) => void;
|
|
28
|
+
labels: ComboboxLabels;
|
|
29
|
+
/**
|
|
30
|
+
* Verilirse arama sunucuda yapılır: bileşen listeyi kendisi filtrelemez, yazılanı 300 ms bekleyip
|
|
31
|
+
* buraya bildirir.
|
|
32
|
+
*/
|
|
33
|
+
onSearch?: (query: string) => void;
|
|
34
|
+
isLoading?: boolean;
|
|
35
|
+
isDisabled?: boolean;
|
|
36
|
+
/** Seçimi kaldıran çarpı düğmesi gösterilir. */
|
|
37
|
+
isClearable?: boolean;
|
|
38
|
+
/** Arama kutusu GİZLENİR. */
|
|
39
|
+
isSearchHidden?: boolean;
|
|
40
|
+
/** Tetikleyicinin solundaki ikon. */
|
|
41
|
+
icon?: ReactNode;
|
|
42
|
+
id?: string;
|
|
43
|
+
/** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi. */
|
|
44
|
+
required?: boolean;
|
|
45
|
+
'aria-describedby'?: string;
|
|
46
|
+
'aria-invalid'?: boolean;
|
|
47
|
+
className?: string;
|
|
48
|
+
testId?: string;
|
|
49
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Her bileşenin kabul ettiği ortak kanca noktaları. */
|
|
2
|
+
export type CommonElementProps = Partial<{
|
|
3
|
+
className: string;
|
|
4
|
+
id: string;
|
|
5
|
+
testId: string;
|
|
6
|
+
}>;
|
|
7
|
+
/** Sınıf birleştiricinin kabul ettiği değerler. */
|
|
8
|
+
export type ClassValue = string | false | null | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DevTools adı — modül düzeyinde YAN ETKİ bırakmadan.
|
|
3
|
+
*
|
|
4
|
+
* ⚠ `X.displayName = 'X'` KULLANILMAZ: modül düzeyindeki özellik ataması
|
|
5
|
+
* bundler için yan etkidir ve hedefinin tüm bağımlılık zincirini ayakta tutar.
|
|
6
|
+
* Ölçüldü: yalnızca `Badge` import eden uygulama 20,7 kB indiriyordu (paketin
|
|
7
|
+
* tamamı 21,8 kB). Atama çağrıya dönüşünce `#__PURE__` işaretlenebiliyor →
|
|
8
|
+
* `Badge` 2,71 kB. Nöbetçi `.size-limit.json`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* export default memo(named(Button, 'Button')) as typeof Button;
|
|
12
|
+
*/
|
|
13
|
+
export declare const named: <TComponent extends object>(component: TComponent, displayName: string) => TComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Metin çözümlemesi: prop → sağlayıcı config'i → geliştirme uyarısı. */
|
|
2
|
+
import type { Formatter } from '@/types/theme.type';
|
|
3
|
+
/** Uyarı durumu testler arasında sızmamalı; her test kendi durumundan başlar. */
|
|
4
|
+
export declare const resetLabelWarnings: () => void;
|
|
5
|
+
/**
|
|
6
|
+
* Verilen metni çözer.
|
|
7
|
+
* @param key Uyarıda gösterilecek yol (`Modal.closeLabel`).
|
|
8
|
+
* @param values Öncelik sırasına göre adaylar: prop önce, config sonra.
|
|
9
|
+
*/
|
|
10
|
+
export declare const resolveLabel: (key: string, ...values: (string | undefined)[]) => string;
|
|
11
|
+
/** Biçimlendirici çözümü — değere bağlı metinler için. */
|
|
12
|
+
export declare const resolveFormatter: <TArgs extends unknown[]>(key: string, formatter: Formatter<TArgs> | undefined, ...args: TArgs) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { KeyboardEvent, RefObject } from 'react';
|
|
2
|
+
export type VirtualRange = {
|
|
3
|
+
/** Çizilecek ilk öğenin dizini. */
|
|
4
|
+
start: number;
|
|
5
|
+
/** Çizilecek son öğenin dizini (dahil DEĞİL). */
|
|
6
|
+
end: number;
|
|
7
|
+
/** Listenin gerçek toplam yüksekliği — kaydırma çubuğu doğru boyda olmalı. */
|
|
8
|
+
totalHeight: number;
|
|
9
|
+
/** Görünen ilk öğenin üstünde bırakılacak boşluk. */
|
|
10
|
+
offset: number;
|
|
11
|
+
};
|
|
12
|
+
/** Duyurunun aciliyeti. */
|
|
13
|
+
export type AnnouncePoliteness = 'polite' | 'assertive';
|
|
14
|
+
export type ListboxNavigation<T extends HTMLElement = HTMLElement> = {
|
|
15
|
+
activeIndex: number;
|
|
16
|
+
setActiveIndex: (index: number) => void;
|
|
17
|
+
/** Etkin seçeneği görünür alanda tutmak için LİSTEYE bağlanır. */
|
|
18
|
+
listRef: RefObject<T | null>;
|
|
19
|
+
handleKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
20
|
+
};
|
|
21
|
+
export type ListboxNavigationOptions = {
|
|
22
|
+
/** Seçenek sayısı. */
|
|
23
|
+
count: number;
|
|
24
|
+
isOpen: boolean;
|
|
25
|
+
/** Açılışta etkin olacak dizin — genellikle seçili olan. */
|
|
26
|
+
initialIndex?: number;
|
|
27
|
+
/** `Enter` / `Space` ile seçildiğinde. */
|
|
28
|
+
onSelect: (index: number) => void;
|
|
29
|
+
onClose: () => void;
|
|
30
|
+
};
|
|
31
|
+
export type StickToBottom = {
|
|
32
|
+
/** Kutu sonda mı (pay dahilinde). `false` iken "en yeniye in" düğmesi gösterilir. */
|
|
33
|
+
isAtEnd: boolean;
|
|
34
|
+
/** Sona kaydırır ve yeniden yapışır. */
|
|
35
|
+
scrollToEnd: () => void;
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ComponentType, ReactNode } from 'react';
|
|
2
|
+
/** Kütüphanenin bir bağlantı bileşenine geçirdiği props. */
|
|
3
|
+
export type UiLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
+
href: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
/** Tüketicinin yönlendiricisi (`next/link`, `react-router`ın `Link`i…). */
|
|
9
|
+
export type UiLinkComponent = ComponentType<UiLinkProps>;
|
|
10
|
+
/**
|
|
11
|
+
* Bileşenden yönlendiriciye geçirilecek ek props.
|
|
12
|
+
* @example // Next.js App Router: sayfa numarasına basınca liste yukarı sıçramasın.…
|
|
13
|
+
*/
|
|
14
|
+
export type UiLinkExtraProps = Record<string, unknown>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type PositioningRect = {
|
|
2
|
+
top: number;
|
|
3
|
+
left: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
7
|
+
export type PositioningState = {
|
|
8
|
+
/** Yüzeye uygulanacak stil — `position: fixed` + hesaplanmış koordinat. */
|
|
9
|
+
style: {
|
|
10
|
+
position: 'fixed';
|
|
11
|
+
top: number;
|
|
12
|
+
left: number;
|
|
13
|
+
};
|
|
14
|
+
/** ÇÖZÜLMÜŞ kenar: çarpışma yüzünden tercih edilenin karşıtı olabilir. */
|
|
15
|
+
side: PositionSide;
|
|
16
|
+
/**
|
|
17
|
+
* Tetikleyicinin ölçülen genişliği (px) — açılır listeler panelin genişliğini buna bağlıyor.
|
|
18
|
+
* ⚠ ÖLÇÜM BURADA, ÇAĞIRANDA DEĞİL. `Combobox` ve `Select` bu değeri render sırasında
|
|
19
|
+
* `triggerRef.current?.offsetWidth` ile okuyordu
|
|
20
|
+
*/
|
|
21
|
+
anchorWidth: number;
|
|
22
|
+
/** İlk ölçüm yapıldı mı. */
|
|
23
|
+
isPositioned: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type PositioningOptions = {
|
|
26
|
+
side?: PositionSide;
|
|
27
|
+
align?: PositionAlign;
|
|
28
|
+
/** Tetikleyici ile yüzey arasındaki boşluk (px). */
|
|
29
|
+
offset?: number;
|
|
30
|
+
/** Görünüm alanının kenarından bırakılacak asgari pay (px). */
|
|
31
|
+
padding?: number;
|
|
32
|
+
/** Kapalıyken ölçüm yapılmaz ve dinleyici kurulmaz. */
|
|
33
|
+
isOpen: boolean;
|
|
34
|
+
};
|
|
35
|
+
/** Tercih edilen kenar boyunca hizalama. */
|
|
36
|
+
export type PositionAlign = 'start' | 'center' | 'end';
|
|
37
|
+
/** Yüzeyin tercih ettiği kenar. */
|
|
38
|
+
export type PositionSide = 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { ThemeName, ThemePreference } from '@handijit/design';
|
|
2
|
+
import { UiLinkComponent } from './link.type';
|
|
3
|
+
/**
|
|
4
|
+
* Sayı biçimlendiricileri: değere bağlı metinler dizeyle verilemez.
|
|
5
|
+
* ⚠ `helpers/label.helper.ts` de aynı imzayı ELLE taşıyordu.
|
|
6
|
+
*/
|
|
7
|
+
export type Formatter<TArgs extends unknown[]> = (...args: TArgs) => string;
|
|
8
|
+
/**
|
|
9
|
+
* The user's CHOICE. `system` = no explicit choice, the operating system's setting is followed.
|
|
10
|
+
* The same union as `ThemePreference` of `@handijit/design`.
|
|
11
|
+
*/
|
|
12
|
+
export type UiColorPreference = ThemePreference;
|
|
13
|
+
/** The RESOLVED theme — the one actually drawn. The same union as design's `ThemeName`. */
|
|
14
|
+
export type UiColorScheme = ThemeName;
|
|
15
|
+
export type UiContextValue = {
|
|
16
|
+
/** Tüketicinin yönlendiricisi (`next/link`, `react-router`ın `Link`i…). */
|
|
17
|
+
linkComponent?: UiLinkComponent;
|
|
18
|
+
/**
|
|
19
|
+
* Arayüz metinleri.
|
|
20
|
+
* ⚠ Referans bir dönem `theme/labels.ts`yi gösteriyordu; o dosya yalnızca tek satırlık bir başlık
|
|
21
|
+
* yorumu taşıyordu (sıfır export, sıfır…
|
|
22
|
+
*/
|
|
23
|
+
labels?: UiLabels;
|
|
24
|
+
};
|
|
25
|
+
export type UiLabels = Partial<{
|
|
26
|
+
/** Kip pencere ve alt sayfanın kapatma düğmesi. `Modal`, `BottomSheet`. */
|
|
27
|
+
close: string;
|
|
28
|
+
/**
|
|
29
|
+
* Bildirim yığınının bölge adı ("Bildirimler"). `ToastHub`.
|
|
30
|
+
* ⚠ Yığın bir `role="region"` ve `aria-live` bölgesi; adsız bir bölge ekran okuyucuda yalnızca
|
|
31
|
+
* "bölge" diye okunur.
|
|
32
|
+
*/
|
|
33
|
+
notifications: string;
|
|
34
|
+
/** Vazgeçme eylemi. `ConfirmDialog`, `PromptDialog`. */
|
|
35
|
+
cancel: string;
|
|
36
|
+
/** Kaydetme/gönderme eylemi. `PromptDialog`. */
|
|
37
|
+
submit: string;
|
|
38
|
+
/** Bekleme göstergesinin ekran okuyucu metni. `Spinner`. */
|
|
39
|
+
loading: string;
|
|
40
|
+
/** Zorunlu alanın yıldızının yanındaki okunabilir karşılık. `Field`. */
|
|
41
|
+
required: string;
|
|
42
|
+
/** Filtre şeridinin erişilebilir adı. `FilterBar`. */
|
|
43
|
+
filters: string;
|
|
44
|
+
/** Kırıntı yolunun gezinme bölgesi adı. `Breadcrumb`. */
|
|
45
|
+
breadcrumb: string;
|
|
46
|
+
/** Alfabe atlama şeridinin gezinme bölgesi adı. `DirectoryJump`. */
|
|
47
|
+
directoryJump: string;
|
|
48
|
+
/** Seçim yokken `Select` tetikleyicisinde görünen metin. */
|
|
49
|
+
selectPlaceholder: string;
|
|
50
|
+
/** Şifreyi görünür kılan düğmenin erişilebilir adı. `PasswordInput`. */
|
|
51
|
+
passwordShow: string;
|
|
52
|
+
/** Şifreyi gizleyen düğmenin erişilebilir adı. `PasswordInput`. */
|
|
53
|
+
passwordHide: string;
|
|
54
|
+
/** Baş harf büyütmesinde kullanılacak dil etiketi. `Avatar`. */
|
|
55
|
+
locale: string;
|
|
56
|
+
/** Para birimi simgesi ya da kodu. `Price`. */
|
|
57
|
+
currency: string;
|
|
58
|
+
combobox: Partial<{
|
|
59
|
+
searchPlaceholder: string;
|
|
60
|
+
emptyMessage: string;
|
|
61
|
+
loadingMessage: string;
|
|
62
|
+
clearLabel: string;
|
|
63
|
+
}>;
|
|
64
|
+
pagination: Partial<{
|
|
65
|
+
/** Gezinme bölgesinin adı ("Sayfalar"). */
|
|
66
|
+
label: string;
|
|
67
|
+
previous: string;
|
|
68
|
+
next: string;
|
|
69
|
+
}>;
|
|
70
|
+
quantity: Partial<{
|
|
71
|
+
label: string;
|
|
72
|
+
decrease: string;
|
|
73
|
+
increase: string;
|
|
74
|
+
}>;
|
|
75
|
+
range: Partial<{
|
|
76
|
+
/** Alt kulbun ad eki ("En az"). */
|
|
77
|
+
min: string;
|
|
78
|
+
/** Üst kulbun ad eki ("En çok"). */
|
|
79
|
+
max: string;
|
|
80
|
+
}>;
|
|
81
|
+
dataTable: Partial<{
|
|
82
|
+
empty: string;
|
|
83
|
+
loading: string;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Sohbet bileşenleri (`@handijit/ui/chat`). Çağrı yerine ÖZGÜ metinler buraya girmez:
|
|
87
|
+
* `PromptInput.placeholder`, `ReasoningBlock.summary`, `ToolCall.name`.
|
|
88
|
+
*/
|
|
89
|
+
chat: Partial<{
|
|
90
|
+
/** Sohbet akışının bölge adı ("Sohbet"). `ChatThread`. */
|
|
91
|
+
thread: string;
|
|
92
|
+
/** Gönder düğmesi. `PromptInput`. */
|
|
93
|
+
send: string;
|
|
94
|
+
/** Akışı durdur düğmesi. `PromptInput`. */
|
|
95
|
+
stop: string;
|
|
96
|
+
/** Kullanıcı yukarı kaydırınca beliren düğme ("En yeniye in"). `ChatThread`. */
|
|
97
|
+
scrollToLatest: string;
|
|
98
|
+
/** Yanıt tamamlandığında duyurulan cümle ("Yanıt hazır"). `ChatThread`. */
|
|
99
|
+
replyReady: string;
|
|
100
|
+
/** Mesaj eylemleri araç çubuğunun adı. `MessageActions`. */
|
|
101
|
+
messageActions: string;
|
|
102
|
+
/** Kaynak listesinin adı ("Kaynaklar"). `SourceList`. */
|
|
103
|
+
sources: string;
|
|
104
|
+
/** Atıf numarasının okunan adı, örn. `n => 'Kaynak ' + n`. `Citation`. */
|
|
105
|
+
citation: Formatter<[index: number]>;
|
|
106
|
+
/** stderr satırının önündeki gizli işaret ("hata çıktısı"): renk tek başına anlam taşımaz. */
|
|
107
|
+
stderr: string;
|
|
108
|
+
/** Araç çağrısının durum metinleri. `ToolCall`. */
|
|
109
|
+
toolStatus: Partial<Record<'running' | 'ok' | 'error' | 'aborted' | 'interrupted', string>>;
|
|
110
|
+
/** Kod bloğunu kopyalama düğmesi, örn. `language => language + ' kodunu kopyala'`. `CodeBlock`. */
|
|
111
|
+
codeCopy: Formatter<[language: string]>;
|
|
112
|
+
/** Kopyalandıktan sonra duyurulan cümle. `CodeBlock`. */
|
|
113
|
+
codeCopied: string;
|
|
114
|
+
}>;
|
|
115
|
+
copyField: Partial<{
|
|
116
|
+
/** Kopyalama düğmesinin adı. */
|
|
117
|
+
copy: Formatter<[value: string]>;
|
|
118
|
+
copied: Formatter<[value: string]>;
|
|
119
|
+
announcement: string;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Dosya yukleme.
|
|
123
|
+
* ⚠ `tooLarge` bir BICIMLENDIRICI: mesaj dosya adini ve siniri TASIMALI.
|
|
124
|
+
*/
|
|
125
|
+
fileUpload: Partial<{
|
|
126
|
+
tooLarge: Formatter<[name: string, max: string]>;
|
|
127
|
+
/** Yukleme sirasindaki ekran okuyucu duyurusu. */
|
|
128
|
+
uploading: Formatter<[name: string]>;
|
|
129
|
+
/** Dosya secildiginde yapilan duyuru. */
|
|
130
|
+
added: Formatter<[count: number]>;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Sayisal gostergenin YON metni.
|
|
134
|
+
* ⚠ Uc deger de SR-ONLY: ok isareti gorsel bir sinyal ve ekran okuyucuya hicbir sey soylemiyor.
|
|
135
|
+
*/
|
|
136
|
+
stat: Partial<{
|
|
137
|
+
increase: string;
|
|
138
|
+
decrease: string;
|
|
139
|
+
unchanged: string;
|
|
140
|
+
}>;
|
|
141
|
+
/** Adim gostergesinin DURUM metinleri — hepsi sr-only. */
|
|
142
|
+
steps: Partial<{
|
|
143
|
+
completed: string;
|
|
144
|
+
current: string;
|
|
145
|
+
upcoming: string;
|
|
146
|
+
}>;
|
|
147
|
+
/** Zaman cizelgesinin DURUM metinleri — hepsi sr-only. */
|
|
148
|
+
timeline: Partial<{
|
|
149
|
+
completed: string;
|
|
150
|
+
current: string;
|
|
151
|
+
failed: string;
|
|
152
|
+
}>;
|
|
153
|
+
/** Etiket girisi. `removed` bir bicimlendirici: hangi etiketin kalktigi. */
|
|
154
|
+
tagInput: Partial<{
|
|
155
|
+
added: Formatter<[value: string]>;
|
|
156
|
+
removed: Formatter<[value: string]>;
|
|
157
|
+
}>;
|
|
158
|
+
rating: Partial<{
|
|
159
|
+
/** Yıldızların ekran okuyucu karşılığı ("5 üzerinden 4,5 — 12 değerlendirme"). */
|
|
160
|
+
srLabel: Formatter<[value: number, count: number | undefined]>;
|
|
161
|
+
/** Puan girişinde yıldız sayısı ("4 yıldız"). */
|
|
162
|
+
starCount: Formatter<[star: number]>;
|
|
163
|
+
/** Beş puanın anlamı. */
|
|
164
|
+
scale: Record<1 | 2 | 3 | 4 | 5, string>;
|
|
165
|
+
}>;
|
|
166
|
+
}>;
|
|
167
|
+
export type UiThemeState = {
|
|
168
|
+
/**
|
|
169
|
+
* ÇÖZÜLMÜŞ tema — ekranda çizili olan. `preference` `system` iken bu alan işletim sisteminin o
|
|
170
|
+
* anki tercihini taşır.
|
|
171
|
+
*/
|
|
172
|
+
scheme: UiColorScheme;
|
|
173
|
+
/** Kullanıcının SEÇİMİ. */
|
|
174
|
+
preference: UiColorPreference;
|
|
175
|
+
/** `'system'` verildiğinde AÇIK seçim silinir ve sistem tercihi izlenir. */
|
|
176
|
+
setScheme: (preference: UiColorPreference) => void;
|
|
177
|
+
/** Açık ↔ koyu. `system` iken ÇÖZÜLMÜŞ değerin tersine geçer. */
|
|
178
|
+
toggle: () => void;
|
|
179
|
+
/** Sunucu çıktısında ve hidrasyondan önceki ilk karede `false`. */
|
|
180
|
+
isReady: boolean;
|
|
181
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Her bileşenin kabul ettiği ortak kanca noktaları. */
|
|
2
|
+
export type CommonElementProps = Partial<{
|
|
3
|
+
className: string;
|
|
4
|
+
id: string;
|
|
5
|
+
testId: string;
|
|
6
|
+
}>;
|
|
7
|
+
/** Sınıf birleştiricinin kabul ettiği değerler. */
|
|
8
|
+
export type ClassValue = string | false | null | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes, ComponentType, ReactNode } from 'react';
|
|
2
|
+
/** Kütüphanenin bir bağlantı bileşenine geçirdiği props. */
|
|
3
|
+
export type UiLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
+
href: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
/** Tüketicinin yönlendiricisi (`next/link`, `react-router`ın `Link`i…). */
|
|
9
|
+
export type UiLinkComponent = ComponentType<UiLinkProps>;
|
|
10
|
+
/**
|
|
11
|
+
* Bileşenden yönlendiriciye geçirilecek ek props.
|
|
12
|
+
* @example // Next.js App Router: sayfa numarasına basınca liste yukarı sıçramasın.…
|
|
13
|
+
*/
|
|
14
|
+
export type UiLinkExtraProps = Record<string, unknown>;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { ThemeName, ThemePreference } from '@handijit/design';
|
|
2
|
+
import type { UiLinkComponent } from '@/types/link.type';
|
|
3
|
+
/**
|
|
4
|
+
* Sayı biçimlendiricileri: değere bağlı metinler dizeyle verilemez.
|
|
5
|
+
* ⚠ `helpers/label.helper.ts` de aynı imzayı ELLE taşıyordu.
|
|
6
|
+
*/
|
|
7
|
+
export type Formatter<TArgs extends unknown[]> = (...args: TArgs) => string;
|
|
8
|
+
/**
|
|
9
|
+
* The user's CHOICE. `system` = no explicit choice, the operating system's setting is followed.
|
|
10
|
+
* The same union as `ThemePreference` of `@handijit/design`.
|
|
11
|
+
*/
|
|
12
|
+
export type UiColorPreference = ThemePreference;
|
|
13
|
+
/** The RESOLVED theme — the one actually drawn. The same union as design's `ThemeName`. */
|
|
14
|
+
export type UiColorScheme = ThemeName;
|
|
15
|
+
export type UiContextValue = {
|
|
16
|
+
/** Tüketicinin yönlendiricisi (`next/link`, `react-router`ın `Link`i…). */
|
|
17
|
+
linkComponent?: UiLinkComponent;
|
|
18
|
+
/**
|
|
19
|
+
* Arayüz metinleri.
|
|
20
|
+
* ⚠ Referans bir dönem `theme/labels.ts`yi gösteriyordu; o dosya yalnızca tek satırlık bir başlık
|
|
21
|
+
* yorumu taşıyordu (sıfır export, sıfır…
|
|
22
|
+
*/
|
|
23
|
+
labels?: UiLabels;
|
|
24
|
+
};
|
|
25
|
+
export type UiLabels = Partial<{
|
|
26
|
+
/** Kip pencere ve alt sayfanın kapatma düğmesi. `Modal`, `BottomSheet`. */
|
|
27
|
+
close: string;
|
|
28
|
+
/**
|
|
29
|
+
* Bildirim yığınının bölge adı ("Bildirimler"). `ToastHub`.
|
|
30
|
+
* ⚠ Yığın bir `role="region"` ve `aria-live` bölgesi; adsız bir bölge ekran okuyucuda yalnızca
|
|
31
|
+
* "bölge" diye okunur.
|
|
32
|
+
*/
|
|
33
|
+
notifications: string;
|
|
34
|
+
/** Vazgeçme eylemi. `ConfirmDialog`, `PromptDialog`. */
|
|
35
|
+
cancel: string;
|
|
36
|
+
/** Kaydetme/gönderme eylemi. `PromptDialog`. */
|
|
37
|
+
submit: string;
|
|
38
|
+
/** Bekleme göstergesinin ekran okuyucu metni. `Spinner`. */
|
|
39
|
+
loading: string;
|
|
40
|
+
/** Zorunlu alanın yıldızının yanındaki okunabilir karşılık. `Field`. */
|
|
41
|
+
required: string;
|
|
42
|
+
/** Filtre şeridinin erişilebilir adı. `FilterBar`. */
|
|
43
|
+
filters: string;
|
|
44
|
+
/** Kırıntı yolunun gezinme bölgesi adı. `Breadcrumb`. */
|
|
45
|
+
breadcrumb: string;
|
|
46
|
+
/** Alfabe atlama şeridinin gezinme bölgesi adı. `DirectoryJump`. */
|
|
47
|
+
directoryJump: string;
|
|
48
|
+
/** Seçim yokken `Select` tetikleyicisinde görünen metin. */
|
|
49
|
+
selectPlaceholder: string;
|
|
50
|
+
/** Şifreyi görünür kılan düğmenin erişilebilir adı. `PasswordInput`. */
|
|
51
|
+
passwordShow: string;
|
|
52
|
+
/** Şifreyi gizleyen düğmenin erişilebilir adı. `PasswordInput`. */
|
|
53
|
+
passwordHide: string;
|
|
54
|
+
/** Baş harf büyütmesinde kullanılacak dil etiketi. `Avatar`. */
|
|
55
|
+
locale: string;
|
|
56
|
+
/** Para birimi simgesi ya da kodu. `Price`. */
|
|
57
|
+
currency: string;
|
|
58
|
+
combobox: Partial<{
|
|
59
|
+
searchPlaceholder: string;
|
|
60
|
+
emptyMessage: string;
|
|
61
|
+
loadingMessage: string;
|
|
62
|
+
clearLabel: string;
|
|
63
|
+
}>;
|
|
64
|
+
pagination: Partial<{
|
|
65
|
+
/** Gezinme bölgesinin adı ("Sayfalar"). */
|
|
66
|
+
label: string;
|
|
67
|
+
previous: string;
|
|
68
|
+
next: string;
|
|
69
|
+
}>;
|
|
70
|
+
quantity: Partial<{
|
|
71
|
+
label: string;
|
|
72
|
+
decrease: string;
|
|
73
|
+
increase: string;
|
|
74
|
+
}>;
|
|
75
|
+
range: Partial<{
|
|
76
|
+
/** Alt kulbun ad eki ("En az"). */
|
|
77
|
+
min: string;
|
|
78
|
+
/** Üst kulbun ad eki ("En çok"). */
|
|
79
|
+
max: string;
|
|
80
|
+
}>;
|
|
81
|
+
dataTable: Partial<{
|
|
82
|
+
empty: string;
|
|
83
|
+
loading: string;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Sohbet bileşenleri (`@handijit/ui/chat`). Çağrı yerine ÖZGÜ metinler buraya girmez:
|
|
87
|
+
* `PromptInput.placeholder`, `ReasoningBlock.summary`, `ToolCall.name`.
|
|
88
|
+
*/
|
|
89
|
+
chat: Partial<{
|
|
90
|
+
/** Sohbet akışının bölge adı ("Sohbet"). `ChatThread`. */
|
|
91
|
+
thread: string;
|
|
92
|
+
/** Gönder düğmesi. `PromptInput`. */
|
|
93
|
+
send: string;
|
|
94
|
+
/** Akışı durdur düğmesi. `PromptInput`. */
|
|
95
|
+
stop: string;
|
|
96
|
+
/** Kullanıcı yukarı kaydırınca beliren düğme ("En yeniye in"). `ChatThread`. */
|
|
97
|
+
scrollToLatest: string;
|
|
98
|
+
/** Yanıt tamamlandığında duyurulan cümle ("Yanıt hazır"). `ChatThread`. */
|
|
99
|
+
replyReady: string;
|
|
100
|
+
/** Mesaj eylemleri araç çubuğunun adı. `MessageActions`. */
|
|
101
|
+
messageActions: string;
|
|
102
|
+
/** Kaynak listesinin adı ("Kaynaklar"). `SourceList`. */
|
|
103
|
+
sources: string;
|
|
104
|
+
/** Atıf numarasının okunan adı, örn. `n => 'Kaynak ' + n`. `Citation`. */
|
|
105
|
+
citation: Formatter<[index: number]>;
|
|
106
|
+
/** stderr satırının önündeki gizli işaret ("hata çıktısı"): renk tek başına anlam taşımaz. */
|
|
107
|
+
stderr: string;
|
|
108
|
+
/** Araç çağrısının durum metinleri. `ToolCall`. */
|
|
109
|
+
toolStatus: Partial<Record<'running' | 'ok' | 'error' | 'aborted' | 'interrupted', string>>;
|
|
110
|
+
/** Kod bloğunu kopyalama düğmesi, örn. `language => language + ' kodunu kopyala'`. `CodeBlock`. */
|
|
111
|
+
codeCopy: Formatter<[language: string]>;
|
|
112
|
+
/** Kopyalandıktan sonra duyurulan cümle. `CodeBlock`. */
|
|
113
|
+
codeCopied: string;
|
|
114
|
+
}>;
|
|
115
|
+
copyField: Partial<{
|
|
116
|
+
/** Kopyalama düğmesinin adı. */
|
|
117
|
+
copy: Formatter<[value: string]>;
|
|
118
|
+
copied: Formatter<[value: string]>;
|
|
119
|
+
announcement: string;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Dosya yukleme.
|
|
123
|
+
* ⚠ `tooLarge` bir BICIMLENDIRICI: mesaj dosya adini ve siniri TASIMALI.
|
|
124
|
+
*/
|
|
125
|
+
fileUpload: Partial<{
|
|
126
|
+
tooLarge: Formatter<[name: string, max: string]>;
|
|
127
|
+
/** Yukleme sirasindaki ekran okuyucu duyurusu. */
|
|
128
|
+
uploading: Formatter<[name: string]>;
|
|
129
|
+
/** Dosya secildiginde yapilan duyuru. */
|
|
130
|
+
added: Formatter<[count: number]>;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Sayisal gostergenin YON metni.
|
|
134
|
+
* ⚠ Uc deger de SR-ONLY: ok isareti gorsel bir sinyal ve ekran okuyucuya hicbir sey soylemiyor.
|
|
135
|
+
*/
|
|
136
|
+
stat: Partial<{
|
|
137
|
+
increase: string;
|
|
138
|
+
decrease: string;
|
|
139
|
+
unchanged: string;
|
|
140
|
+
}>;
|
|
141
|
+
/** Adim gostergesinin DURUM metinleri — hepsi sr-only. */
|
|
142
|
+
steps: Partial<{
|
|
143
|
+
completed: string;
|
|
144
|
+
current: string;
|
|
145
|
+
upcoming: string;
|
|
146
|
+
}>;
|
|
147
|
+
/** Zaman cizelgesinin DURUM metinleri — hepsi sr-only. */
|
|
148
|
+
timeline: Partial<{
|
|
149
|
+
completed: string;
|
|
150
|
+
current: string;
|
|
151
|
+
failed: string;
|
|
152
|
+
}>;
|
|
153
|
+
/** Etiket girisi. `removed` bir bicimlendirici: hangi etiketin kalktigi. */
|
|
154
|
+
tagInput: Partial<{
|
|
155
|
+
added: Formatter<[value: string]>;
|
|
156
|
+
removed: Formatter<[value: string]>;
|
|
157
|
+
}>;
|
|
158
|
+
rating: Partial<{
|
|
159
|
+
/** Yıldızların ekran okuyucu karşılığı ("5 üzerinden 4,5 — 12 değerlendirme"). */
|
|
160
|
+
srLabel: Formatter<[value: number, count: number | undefined]>;
|
|
161
|
+
/** Puan girişinde yıldız sayısı ("4 yıldız"). */
|
|
162
|
+
starCount: Formatter<[star: number]>;
|
|
163
|
+
/** Beş puanın anlamı. */
|
|
164
|
+
scale: Record<1 | 2 | 3 | 4 | 5, string>;
|
|
165
|
+
}>;
|
|
166
|
+
}>;
|
|
167
|
+
export type UiThemeState = {
|
|
168
|
+
/**
|
|
169
|
+
* ÇÖZÜLMÜŞ tema — ekranda çizili olan. `preference` `system` iken bu alan işletim sisteminin o
|
|
170
|
+
* anki tercihini taşır.
|
|
171
|
+
*/
|
|
172
|
+
scheme: UiColorScheme;
|
|
173
|
+
/** Kullanıcının SEÇİMİ. */
|
|
174
|
+
preference: UiColorPreference;
|
|
175
|
+
/** `'system'` verildiğinde AÇIK seçim silinir ve sistem tercihi izlenir. */
|
|
176
|
+
setScheme: (preference: UiColorPreference) => void;
|
|
177
|
+
/** Açık ↔ koyu. `system` iken ÇÖZÜLMÜŞ değerin tersine geçer. */
|
|
178
|
+
toggle: () => void;
|
|
179
|
+
/** Sunucu çıktısında ve hidrasyondan önceki ilk karede `false`. */
|
|
180
|
+
isReady: boolean;
|
|
181
|
+
};
|