@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,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MEKÂNSAL KOVA — işaretçiye en yakın noktayı her harekette TÜM noktaları taramadan bulur.
|
|
3
|
+
* Noktalar sabit boyutlu piksel hücrelerine dağıtılır; arama yalnızca komşu hücrelerde.
|
|
4
|
+
*/
|
|
5
|
+
export type SpatialIndex = {
|
|
6
|
+
/** `(x, y)`ye `radius` içindeki en yakın noktanın dizini; yoksa `null`. */
|
|
7
|
+
nearest: (x: number, y: number, radius: number) => number | null;
|
|
8
|
+
};
|
|
9
|
+
export declare const spatialIndex: (points: readonly {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}[], cell?: number) => SpatialIndex;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** İSTATİSTİK — kutu grafiği ve histogram. Sonlu olmayan değerler (`NaN`, `±Infinity`) atılır. */
|
|
2
|
+
export declare const finite: (values: readonly (number | null | undefined)[]) => number[];
|
|
3
|
+
/** `[en küçük, en büyük]`; boş girdide `[0, 0]`. Dizi YAYILMAZ: büyük veride çağrı yığını taşmaz. */
|
|
4
|
+
export declare const extent: (values: readonly number[]) => [number, number];
|
|
5
|
+
/** Sıralı dizide çeyreklik — doğrusal ara değer (R tip 7 / Excel / NumPy varsayılanı). */
|
|
6
|
+
export declare const quantile: (sorted: readonly number[], probability: number) => number;
|
|
7
|
+
export type BoxStats = {
|
|
8
|
+
count: number;
|
|
9
|
+
min: number;
|
|
10
|
+
q1: number;
|
|
11
|
+
median: number;
|
|
12
|
+
q3: number;
|
|
13
|
+
max: number;
|
|
14
|
+
/** Bıyıkların ucu: 1,5 × IQR içindeki en uç GÖZLEM (Tukey). */
|
|
15
|
+
whiskerLow: number;
|
|
16
|
+
whiskerHigh: number;
|
|
17
|
+
/** Bıyık dışında kalan gözlemler. */
|
|
18
|
+
outliers: number[];
|
|
19
|
+
};
|
|
20
|
+
/** Beş sayı özeti + Tukey bıyıkları. Boş girdide `null`. */
|
|
21
|
+
export declare const boxStats: (values: readonly number[]) => BoxStats | null;
|
|
22
|
+
export type Bin = {
|
|
23
|
+
/** Dahil alt sınır. */
|
|
24
|
+
from: number;
|
|
25
|
+
/** Hariç üst sınır — SON bölme dahil. */
|
|
26
|
+
to: number;
|
|
27
|
+
count: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Histogram bölmeleri. Bölme sayısı verilmezse Sturges (`⌈log₂ n⌉ + 1`); sınırlar "güzel" bir adıma
|
|
31
|
+
* oturur, yani bölmeler 0-10-20 gibi okunur.
|
|
32
|
+
* ⚠ Son bölme üst ucu DAHİL eder: en büyük değer dışarıda kalmaz.
|
|
33
|
+
*/
|
|
34
|
+
export declare const histogram: (values: readonly number[], binCount?: number) => Bin[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ChartTone } from './palette';
|
|
2
|
+
/** İpucunun bir satırı — renk karesi + ad + değer. */
|
|
3
|
+
export type TooltipRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
tone?: ChartTone;
|
|
8
|
+
};
|
|
9
|
+
export type TooltipContent = {
|
|
10
|
+
title?: string;
|
|
11
|
+
rows: TooltipRow[];
|
|
12
|
+
};
|
|
13
|
+
/** Görsel olarak gizli veri tablosu — ekran okuyucu grafiği TABLO olarak da okur. */
|
|
14
|
+
export type ChartTable = {
|
|
15
|
+
columns: string[];
|
|
16
|
+
rows: string[][];
|
|
17
|
+
};
|
|
18
|
+
export type LegendEntry = {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
tone: ChartTone;
|
|
22
|
+
};
|
|
23
|
+
/** Grafiğin çizim alanı — eksenler kenar boşluklarında. */
|
|
24
|
+
export type PlotArea = {
|
|
25
|
+
left: number;
|
|
26
|
+
top: number;
|
|
27
|
+
right: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Kapsayıcının genişliği — `ResizeObserver` ile, BOYAMADAN ÖNCE ölçülür (ilk karede yanlış boyutta
|
|
4
|
+
* çizilip zıplamasın). `fixed` verilirse ölçüm yapılmaz.
|
|
5
|
+
*/
|
|
6
|
+
declare const useChartWidth: (fixed?: number) => [RefObject<HTMLDivElement | null>, number];
|
|
7
|
+
export default useChartWidth;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @handijit/ui/charts — SVG grafikleri, sıfır bağımlılık. Dışa verilen her ad bir SÖZLEŞMEDİR.
|
|
3
|
+
*
|
|
4
|
+
* ⚠ Ana girişe ait her şey paket adıyla alınır (`@handijit/ui`); göreli yol yalnızca durumsuz
|
|
5
|
+
* yardımcılar ve SCSS içindir. Nöbetçi `__tests__/subentry-boundary.test.ts`.
|
|
6
|
+
* Stiller `@handijit/ui/charts.css` — `styles.css`ten SONRA içe aktarılır.
|
|
7
|
+
*/
|
|
8
|
+
export { default as LineChart } from './LineChart';
|
|
9
|
+
export { default as AreaChart } from './AreaChart';
|
|
10
|
+
export { default as BarChart } from './BarChart';
|
|
11
|
+
export { default as ComposedChart } from './ComposedChart';
|
|
12
|
+
export { default as PieChart, type PieSlice } from './PieChart';
|
|
13
|
+
export { default as ScatterPlot, type ScatterPoint, type ScatterSeries } from './ScatterPlot';
|
|
14
|
+
export { default as Heatmap } from './Heatmap';
|
|
15
|
+
export { default as BoxPlot, type BoxPlotGroup, type BoxPlotLabels } from './BoxPlot';
|
|
16
|
+
export { default as Histogram } from './Histogram';
|
|
17
|
+
export { default as RadarChart, type RadarAxis, type RadarSeries } from './RadarChart';
|
|
18
|
+
export type { ChartRow } from './core/CartesianChart';
|
|
19
|
+
export type { ChartSeries, ComposedSeries } from './core/series';
|
|
20
|
+
export type { ChartTone } from './core/palette';
|
|
21
|
+
export type { ValueFormat } from './core/format';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
type ListProps = {
|
|
3
|
+
/** Listenin erişilebilir adı ("Bağlam haritası"). */
|
|
4
|
+
label: string;
|
|
5
|
+
/** `ActionListItem` öğeleri. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Verilirse liste SANALLAŞTIRILIR: yalnızca görünen satırlar çizilir. Satır yüksekliği SABİT
|
|
9
|
+
* olmalı (px).
|
|
10
|
+
*/
|
|
11
|
+
rowHeight?: number;
|
|
12
|
+
/** Sanal listede görünen alanın yüksekliği (px). */
|
|
13
|
+
maxHeight?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
type ItemProps = {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/** Satırın başında duran öğe (kimlik, ikon). */
|
|
20
|
+
start?: ReactNode;
|
|
21
|
+
/** Satırın sonunda duran öğe (tur numarası, süre). */
|
|
22
|
+
end?: ReactNode;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
href?: string;
|
|
25
|
+
/** Verilirse satır bir SEÇİMDİR (`aria-pressed`); verilmezse düz bir eylem. */
|
|
26
|
+
isSelected?: boolean;
|
|
27
|
+
/** Geri planda kalan satır (gizlenmiş, eski) — renkle, saydamlıkla değil. */
|
|
28
|
+
isMuted?: boolean;
|
|
29
|
+
testId?: string;
|
|
30
|
+
/** Sanal listenin kendisi yazar: satırın gerçek konumu ve listenin gerçek boyu. */
|
|
31
|
+
'aria-posinset'?: number;
|
|
32
|
+
'aria-setsize'?: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Çerçeveli satır listesi — her satır bir EYLEM (açar, gider) ya da bir SEÇİM (ayrıntıyı gösterir).
|
|
36
|
+
*
|
|
37
|
+
* ⚠ Seçim mi eylem mi satır başına `isSelected` ile söylenir: verilirse satır bir aç/kapa düğmesidir
|
|
38
|
+
* (`aria-pressed`), verilmezse düz bir eylem. Eylemi seçim gibi sunmak kalıcı bir durum vaat ediyordu.
|
|
39
|
+
* ⚠ Sanal listede ekran okuyucu yalnızca çizilen satırları görür; gerçek konumu `aria-posinset` /
|
|
40
|
+
* `aria-setsize` söyler.
|
|
41
|
+
*/
|
|
42
|
+
declare const ActionList: FC<ListProps>;
|
|
43
|
+
/** `ActionList` satırı — kendi `li`sini taşır. */
|
|
44
|
+
export declare const ActionListItem: FC<ItemProps>;
|
|
45
|
+
declare const _default: typeof ActionList;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Sol baştaki marka (logo + ad). */
|
|
4
|
+
brand: ReactNode;
|
|
5
|
+
/** Markanın yanında, esneyen orta bölge (model, bağlantı durumu). */
|
|
6
|
+
start?: ReactNode;
|
|
7
|
+
/** Sağdaki eylem kümesi. */
|
|
8
|
+
end?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Uygulamanın üst bandı — sayfaya yapışık, sayfanın devamı (bant sayfayı ÖRTMEZ: `nav-*`).
|
|
14
|
+
*
|
|
15
|
+
* Kendi yüksekliğini ölçüp `--ui-header-height`e yazar. README bu `ResizeObserver` kodunu her
|
|
16
|
+
* tüketiciye elle yazdırıyordu; sabit bir sayı yazan da vardı ve bant mobilde iki satıra düştüğünde
|
|
17
|
+
* yapışkan başlıklar altında kalıyordu.
|
|
18
|
+
*/
|
|
19
|
+
declare const AppBar: FC<Props>;
|
|
20
|
+
declare const _default: typeof AppBar;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
export type ChatMessageAuthor = 'user' | 'assistant';
|
|
3
|
+
type Props = {
|
|
4
|
+
author: ChatMessageAuthor;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Asistan mesajının avatarı (`Avatar tone="brand"`); ilk satır hizasında durur. */
|
|
7
|
+
avatar?: ReactNode;
|
|
8
|
+
/** Mesajın altındaki eylem çubuğu (`MessageActions`). */
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
/** Yanıt hâlâ akıyor — `aria-busy`: ekran okuyucu yarım metni okumaz. */
|
|
11
|
+
isStreaming?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
testId?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Sohbet mesajı. Kullanıcı mesajı sağa yaslı bir balon (`surface-2`, satır sonları korunur);
|
|
17
|
+
* asistan mesajı tam genişlik, avatar sol üstte.
|
|
18
|
+
*
|
|
19
|
+
* ⚠ Eylemler hover'da VE `:focus-within`de belirginleşir: klavye kullanıcısı da görmeli. Gizlenmez,
|
|
20
|
+
* yalnızca sessizleşir — `opacity` değil renk (soluklaştırma yasak).
|
|
21
|
+
*/
|
|
22
|
+
declare const ChatMessage: FC<Props>;
|
|
23
|
+
declare const _default: typeof ChatMessage;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Mesajlar (`ChatMessage`). */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Alt dok — yazma alanı (`PromptInput`) ve ipucu satırı. */
|
|
6
|
+
dock?: ReactNode;
|
|
7
|
+
/** Yanıt akıyor. Akış bittiğinde "yanıt hazır" duyurulur. */
|
|
8
|
+
isStreaming?: boolean;
|
|
9
|
+
/** Bölgenin adı; verilmezse `labels.chat.thread`. */
|
|
10
|
+
label?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
testId?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Sohbet iskeleti — kaydırma alanı, ortalanmış sütun ve alt dok.
|
|
16
|
+
*
|
|
17
|
+
* - Sona yapışık kalır; kullanıcı yukarı kaydırınca bırakır ve "en yeniye in" düğmesi belirir.
|
|
18
|
+
* - ⚠ Akan belirteçler OKUNMAZ (`aria-live` yok, `role="log"` değil): her belirteci duyuran bir bölge
|
|
19
|
+
* ekran okuyucuyu kullanılamaz kılıyordu. Yanıt BİTTİĞİNDE tek bir cümle duyurulur.
|
|
20
|
+
* - Dok sayfanın dibine yapışır ve `safe-area` payını taşır; iOS'ta klavye açıkken görünür kalır.
|
|
21
|
+
*/
|
|
22
|
+
declare const ChatThread: FC<Props>;
|
|
23
|
+
declare const _default: typeof ChatThread;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Kaynağın numarası — `SourceList`teki sırayla eşleşir (1'den başlar). */
|
|
4
|
+
index: number;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Metin içi atıf — "[3]". Okunan adı `labels.chat.citation(3)` ("Kaynak 3"): görünen rakam tek
|
|
11
|
+
* başına ekran okuyucuda "üç" diye, bağlamsız okunuyordu.
|
|
12
|
+
*/
|
|
13
|
+
declare const Citation: FC<Props>;
|
|
14
|
+
declare const _default: typeof Citation;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kod bloğunun biçimlendiricisi. Her dilde başındaki ve sonundaki boş satırları atar (çitli
|
|
3
|
+
* bloğun son `\n`i gövdede boş bir satır çiziyordu); JSON'u yeniden girintiler.
|
|
4
|
+
* ⚠ Girinti başka hiçbir dilde DEĞİŞTİRİLMEZ: bir dosyadan alınmış parçanın girintisi o dosyadaki
|
|
5
|
+
* derinliği anlatıyor ve Python'da anlamın kendisi.
|
|
6
|
+
*/
|
|
7
|
+
export declare const formatCode: (code: string, language: string | undefined) => string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DİL TANIMLARI — yerleşik vurgulayıcının (`highlight.ts`) kuralları.
|
|
3
|
+
*
|
|
4
|
+
* Her dil SIRALI bir kural listesidir: aynı konumda eşleşen İLK kural kazanır. Kurallar tek bir
|
|
5
|
+
* düzenli ifadede birleşir (`gm` bayraklı), bu yüzden:
|
|
6
|
+
* - kural ifadeleri bayrak TAŞIMAZ ve YAKALAYAN GRUP içermez (`(?:…)` yazılır) — eşleşen kuralı
|
|
7
|
+
* grubun sırası söyler;
|
|
8
|
+
* - geriye bakış (`(?<=…)`) KULLANILMAZ: Safari 16.4 öncesinde ifade kurulurken `SyntaxError`
|
|
9
|
+
* atıyor ve kod bloğu çizilemiyordu. Önceki karaktere bağlı kurallar `reject` ile yazılır.
|
|
10
|
+
*
|
|
11
|
+
* ⚠ Kapanmamış yorum ve dize metnin SONUNA kadar uzanır (`(?![\s\S])`): akan yanıtta blok henüz
|
|
12
|
+
* bitmemişken renk doğru tarafta kalır.
|
|
13
|
+
*
|
|
14
|
+
* Kurallar ve kelime kümeleri ilk kullanımda kurulur (fabrika): modül düzeyinde çağrı yok, sohbet
|
|
15
|
+
* girişinden yalnızca başka bir bileşen alan uygulamaya vurgulayıcı inmez.
|
|
16
|
+
*/
|
|
17
|
+
/** Vurgulanan parçanın türü; her biri bir renk token'ına bağlanır (`index.module.scss`). */
|
|
18
|
+
export type CodeTokenType = 'comment' | 'keyword' | 'string' | 'number' | 'name' | 'type' | 'punctuation' | 'inserted' | 'deleted';
|
|
19
|
+
/**
|
|
20
|
+
* Kuralın türü. Bir `CodeTokenType` eşleşmeyi olduğu gibi boyar; ötekiler ek karar ister:
|
|
21
|
+
* - `word` — tanıtıcı; anahtar kelime / sabit / tip / çağrı ayrımını `classify` yapar
|
|
22
|
+
* - `tag` — `<ad` ya da `</ad`: ayraç noktalama, ad etiket (büyük harfle başlıyorsa bileşen → tip)
|
|
23
|
+
* - `markup` — işaretleme etiketinin tamamı; içi `MARKUP_TAG` ile ayrıca vurgulanır
|
|
24
|
+
* - `regex` — JS düzenli ifade değişmezi; `/` bölme işareti de olabildiği için bağlama bakılır
|
|
25
|
+
*/
|
|
26
|
+
export type RuleKind = CodeTokenType | 'word' | 'tag' | 'markup' | 'regex';
|
|
27
|
+
/** `[tür, ifade, reject?]` — `reject` eşleşmeden ÖNCEKİ karaktere uyarsa eşleşme reddedilir. */
|
|
28
|
+
export type Rule = readonly [kind: RuleKind, pattern: RegExp, reject?: RegExp];
|
|
29
|
+
export type Grammar = {
|
|
30
|
+
rules: readonly Rule[];
|
|
31
|
+
keywords?: ReadonlySet<string>;
|
|
32
|
+
/** Sabit değişmezler (`true`, `null`, `None`) — sayıyla aynı renk. */
|
|
33
|
+
literals?: ReadonlySet<string>;
|
|
34
|
+
/** Yerleşik tipler (`string`, `int`, `varchar`). */
|
|
35
|
+
types?: ReadonlySet<string>;
|
|
36
|
+
/** Büyük harfle başlayan ad tiptir (`Button`); TAMAMI büyük harf olan sabittir (`MAX_SIZE`). */
|
|
37
|
+
hasCapitalTypes?: boolean;
|
|
38
|
+
/** SQL: anahtar kelime ve tip kümesi küçük harfle yazılır, kelime küçültülerek aranır. */
|
|
39
|
+
isCaseInsensitive?: boolean;
|
|
40
|
+
};
|
|
41
|
+
/** İşaretleme etiketinin İÇİ (`markup` kuralının eşleşmesi): ad, öznitelik, değer. */
|
|
42
|
+
export declare const MARKUP_TAG: () => Grammar;
|
|
43
|
+
/** Dil adı (küçük harf) → dil. Takma adlar aynı fabrikayı gösterir; önbellek fabrikaya bağlı. */
|
|
44
|
+
export declare const GRAMMARS: Readonly<Record<string, () => Grammar>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type CodeTokenType } from './grammars';
|
|
2
|
+
export type { CodeTokenType } from './grammars';
|
|
3
|
+
/** Vurgulanmış bir parça; `type` yoksa düz metin. */
|
|
4
|
+
export type CodeToken = {
|
|
5
|
+
text: string;
|
|
6
|
+
type?: CodeTokenType;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Bu boyun üstündeki kod VURGULANMAZ, düz çizilir.
|
|
10
|
+
* ⚠ Maliyet çözümlemede DEĞİL, `<span>` sayısında. Ölçüldü (chromium, galeri sunucusu, React
|
|
11
|
+
* geliştirme kipi): 50 000 karakterlik TypeScript 8,5 ms'de 4 333 parçaya ayrılıyor, ama yalnızca
|
|
12
|
+
* DOM kurulumu + yerleşim 66 ms, React'in ilk çizimi 590 ms ve akan yanıtta her güncelleme 173 ms.
|
|
13
|
+
* 20 000 karakterde aynı ölçüm 3,8 ms · 1 555 parça · 17 ms · 139 ms · 78 ms. Sınırın altında renk,
|
|
14
|
+
* üstünde akıcılık; ~500 satırdan uzun bir sohbet bloğu zaten istisna.
|
|
15
|
+
*/
|
|
16
|
+
export declare const HIGHLIGHT_LIMIT = 20000;
|
|
17
|
+
/**
|
|
18
|
+
* Kodu renk parçalarına ayırır — bağımlılıksız, tek geçişlik bir sözcük çözümleyici.
|
|
19
|
+
* Bir dilbilgisi ÇÖZÜMLEYİCİSİ değil: Shiki düzeyinde doğruluk gerekiyorsa vurgulanmış HTML
|
|
20
|
+
* `CodeBlock`a `html` olarak verilir.
|
|
21
|
+
*/
|
|
22
|
+
export declare const highlight: (code: string, language: string | undefined) => CodeToken[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Ham kod. `html` yoksa biçimlendirilip vurgulanır; kopyalanan metin ekranda görünendir. */
|
|
4
|
+
code: string;
|
|
5
|
+
/**
|
|
6
|
+
* Dil adı (`ts`, `json`, `bash`, `diff`…); başlık şeridinde, kopyalama düğmesinin adında ve
|
|
7
|
+
* vurgulayıcının seçiminde. Tanınmayan dil düz çizilir.
|
|
8
|
+
*/
|
|
9
|
+
language?: string;
|
|
10
|
+
/**
|
|
11
|
+
* ÖNCEDEN VURGULANMIŞ HTML (Shiki çıktısı) — yerleşik vurgulayıcının yerine geçer; `code`
|
|
12
|
+
* biçimlendirilmez ve olduğu gibi kopyalanır.
|
|
13
|
+
* ⚠ GÜVENLİK ÇAĞIRANIN: bu dize olduğu gibi DOM'a yazılır. Yalnızca kendi vurgulayıcınızın
|
|
14
|
+
* ürettiği çıktıyı verin; kullanıcı girdisini asla doğrudan geçirmeyin.
|
|
15
|
+
*/
|
|
16
|
+
html?: string;
|
|
17
|
+
/** Gövdenin tavanı (px); uzun kod kendi içinde kayar. */
|
|
18
|
+
maxHeight?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
testId?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Kod bloğu — başlık şeridi (dil + kopyala) ve kod gövdesi.
|
|
24
|
+
*
|
|
25
|
+
* Yerleşik vurgulayıcı ve biçimlendirici (bağımlılıksız): renkler `syntax-*` token'larından,
|
|
26
|
+
* yani temayla döner ve kontrastı derlemede ölçülür. JSON yeniden girintilenir, kenarlardaki boş
|
|
27
|
+
* satırlar atılır. Shiki düzeyinde doğruluk gerekiyorsa `html` verilir; Shiki'nin çift tema
|
|
28
|
+
* çıktısı (`--shiki-light` / `--shiki-dark`) burada temaya bağlanır.
|
|
29
|
+
* Kod satırları SARILMAZ: dar ekranda kutu yatay kayar (kodun girintisi anlamdır).
|
|
30
|
+
*/
|
|
31
|
+
declare const CodeBlock: FC<Props>;
|
|
32
|
+
declare const _default: typeof CodeBlock;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
export type DescriptionItem = {
|
|
3
|
+
term: ReactNode;
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
/** Değer teknik bir kimlik (kod, yol, karma): teknik fontta ve satır içinde bölünebilir. */
|
|
6
|
+
isTechnical?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type Props = {
|
|
9
|
+
items: DescriptionItem[];
|
|
10
|
+
className?: string;
|
|
11
|
+
testId?: string;
|
|
12
|
+
};
|
|
13
|
+
/** Terim–değer listesi — yerel `<dl>`; ekran okuyucu terimi değeriyle birlikte okur. */
|
|
14
|
+
declare const DescriptionList: FC<Props>;
|
|
15
|
+
declare const _default: typeof DescriptionList;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
/** The data series tokens of `@handijit/design` (`chart-1…6`) + `muted` for a waiting or empty part. */
|
|
3
|
+
export type LegendTone = 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'chart-5' | 'chart-6' | 'muted';
|
|
4
|
+
export type LegendItem = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
tone: LegendTone;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
items: LegendItem[];
|
|
11
|
+
className?: string;
|
|
12
|
+
testId?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const legendToneColor: (tone: LegendTone) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Grafik lejantı — renk karesi + ad. Renk yalnızca kategorik paletten gelir (iki temanın üç
|
|
17
|
+
* yüzeyinde ≥3:1); ad her zaman metin olarak yazılır, renk tek başına anlam taşımaz.
|
|
18
|
+
*/
|
|
19
|
+
declare const Legend: FC<Props>;
|
|
20
|
+
declare const _default: typeof Legend;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** `IconButton` / `Button size={UISize.XSMALL}` öğeleri. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Araç çubuğunun sonunda duran okunan bilgi (süre, belirteç, maliyet). */
|
|
6
|
+
meta?: ReactNode;
|
|
7
|
+
/** Araç çubuğunun adı; verilmezse `labels.chat.messageActions`. */
|
|
8
|
+
label?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Mesajın eylem çubuğu — kopyala, yeniden dene, ayrıntı.
|
|
14
|
+
*
|
|
15
|
+
* Klavye (`role="toolbar"`, tek sekme durağı değil — her düğme sekme sırasında kalır):
|
|
16
|
+
* `ArrowRight` / `ArrowLeft` sonraki / önceki eylem · `Home` / `End` ilk / son.
|
|
17
|
+
* ⚠ Satır içi araç çubuğu: ok tuşu yalnızca odak ÇUBUKTAYKEN çalışır, sayfayı kaydırmaz.
|
|
18
|
+
*/
|
|
19
|
+
declare const MessageActions: FC<Props>;
|
|
20
|
+
declare const _default: typeof MessageActions;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
/** Enter ya da gönder düğmesi. Boş (yalnızca boşluk) metinde çağrılmaz. */
|
|
6
|
+
onSubmit: () => void;
|
|
7
|
+
/** Akışı durdurur — `isBusy` iken düğme ve `Escape`. */
|
|
8
|
+
onStop?: () => void;
|
|
9
|
+
/** Yanıt akıyor: gönder yerine durdur düğmesi. */
|
|
10
|
+
isBusy?: boolean;
|
|
11
|
+
/** Alanın tamamı pasif — yazılamaz. */
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Yazmaya izin var ama GÖNDERİM kapalı (bağlantı yok, oturum hazırlanıyor). Kullanıcı mesajını
|
|
15
|
+
* yazabilir; gönder düğmesi ve `Enter` bekler.
|
|
16
|
+
*/
|
|
17
|
+
isSubmitDisabled?: boolean;
|
|
18
|
+
/** Yer tutucu — çağrı yerine ÖZGÜ metin, `labels`a girmez. */
|
|
19
|
+
placeholder: string;
|
|
20
|
+
/** Alanın erişilebilir adı; verilmezse yer tutucu. */
|
|
21
|
+
label?: string;
|
|
22
|
+
/** Otomatik büyümenin tavanı (satır). */
|
|
23
|
+
maxRows?: number;
|
|
24
|
+
/** Alanın altındaki ipucu satırı (`Kbd` ile kısayollar). */
|
|
25
|
+
hint?: ReactNode;
|
|
26
|
+
/** Alanın solunda (ek dosya, model seçici). */
|
|
27
|
+
start?: ReactNode;
|
|
28
|
+
/** Gönder düğmesinin solunda. */
|
|
29
|
+
end?: ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
testId?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Sohbet yazma alanı — çerçevesiz `Textarea` + yuvarlak gönder / durdur düğmesi.
|
|
35
|
+
*
|
|
36
|
+
* Klavye: `Enter` gönderir · `Shift+Enter` yeni satır · `Escape` (akış sürerken) durdurur.
|
|
37
|
+
* - ⚠ IME yazımı sırasında (`isComposing`, Türkçe dışı klavyeler) `Enter` GÖNDERMEZ: harf seçimini
|
|
38
|
+
* onaylıyor, mesajı değil.
|
|
39
|
+
* - ⚠ `Escape` açık bir yüzey (modal, menü, bildirim) varken DOKUNMAZ (`hasOpenSurface`): kullanıcı
|
|
40
|
+
* yalnızca o yüzeyi kapatmak istiyordu, arkadaki akış da duruyordu.
|
|
41
|
+
* - Gönder düğmesi ekranın TEK birincil eylemi: çam dolgu, koyu temada mint sınır.
|
|
42
|
+
* - Odak göstergesini çerçeve çizer (`:focus-within`); alan çerçevesiz (`variant="bare"`).
|
|
43
|
+
* - `ref` metin alanına iletilir: gönderimden ya da bir öneri seçildikten sonra odağı geri vermek için.
|
|
44
|
+
*/
|
|
45
|
+
declare const PromptInput: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
46
|
+
declare const _default: typeof PromptInput;
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export type PromptSuggestion = {
|
|
3
|
+
id: string;
|
|
4
|
+
/** Gönderilecek istem ya da kısa adı. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** İkinci satır — neyi sorduğu. */
|
|
7
|
+
description?: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
/** Grubun erişilebilir adı ("Örnek istemler"). */
|
|
11
|
+
label: string;
|
|
12
|
+
items: PromptSuggestion[];
|
|
13
|
+
onPick: (item: PromptSuggestion) => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Hazır istem önerileri — boş sohbetin başlangıç kartları.
|
|
19
|
+
*
|
|
20
|
+
* ⚠ Bunlar EYLEM, seçim değil: `ChipGroup` (seçim) yerine düğme ızgarası. Basmak bir şey seçmez,
|
|
21
|
+
* istemi gönderir ya da yazma alanına koyar.
|
|
22
|
+
*/
|
|
23
|
+
declare const PromptSuggestions: FC<Props>;
|
|
24
|
+
declare const _default: typeof PromptSuggestions;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type FC, type HTMLAttributes } from 'react';
|
|
2
|
+
type Props = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
testId?: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Uzun metin kabı — markdown çıktısının (başlık, paragraf, liste, alıntı, tablo, satır içi kod,
|
|
7
|
+
* bağlantı, formül) tipografisi.
|
|
8
|
+
*
|
|
9
|
+
* ⚠ AYRIŞTIRICI İÇERMEZ: `react-markdown`, `remark`/`rehype` eklentileri ve KaTeX tüketicide kalır;
|
|
10
|
+
* ui yalnızca çıktının nasıl göründüğünü verir (`linkComponent` ile aynı desen). Bir UI paketinin
|
|
11
|
+
* markdown ayrıştırıcısı taşıması, sohbet kullanmayan tüketicinin hiç kullanmadığı yüzlerce kB demek.
|
|
12
|
+
*/
|
|
13
|
+
declare const Prose: FC<Props>;
|
|
14
|
+
declare const _default: typeof Prose;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Başlık — çağrı yerine ÖZGÜ ("Düşündü · 3 araç · 2,4 sn"), `labels`a girmez. */
|
|
4
|
+
summary: ReactNode;
|
|
5
|
+
/** Tur sürüyor: blok AÇIK durur ve gösterge döner. */
|
|
6
|
+
isRunning?: boolean;
|
|
7
|
+
/** Süren işin göstergesi; verilmezse `Spinner`. Marka yükleyicisi buraya geçer. */
|
|
8
|
+
indicator?: ReactNode;
|
|
9
|
+
/** Kapalı bir turda açılış durumu. */
|
|
10
|
+
isDefaultOpen?: boolean;
|
|
11
|
+
/** Gövde: `ReasoningText`, ara metinler, `ToolCall`lar. */
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
testId?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* "Model ne yaptı" bloğu — akıl yürütme, ara metinler, araç çağrıları.
|
|
18
|
+
*
|
|
19
|
+
* Tur sürerken AÇIK durur, bitince kapanır. ⚠ Kullanıcı bloğu elle açtıysa ya da kapattıysa o
|
|
20
|
+
* tercihe DOKUNULMAZ: tur bittiğinde okuduğu bloğun elinden çekilmesi en sık şikâyetti.
|
|
21
|
+
*/
|
|
22
|
+
declare const ReasoningBlock: FC<Props>;
|
|
23
|
+
declare const _default: typeof ReasoningBlock;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
text: string;
|
|
4
|
+
/** Kaydırılabildiğinde bölgenin okunan adı ("Akıl yürütme"). */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Kutunun tavanı (px); akan metin bu yükseklikte sona yapışık kayar. */
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
testId?: string;
|
|
10
|
+
};
|
|
11
|
+
/** Akıl yürütme metni — yüksekliği sınırlı, akarken sona yapışık (`ScrollArea isFollowingEnd`). */
|
|
12
|
+
declare const ReasoningText: FC<Props>;
|
|
13
|
+
declare const _default: typeof ReasoningText;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { LegendTone } from '../Legend';
|
|
3
|
+
export type SegmentBarSegment = {
|
|
4
|
+
id: string;
|
|
5
|
+
/** Parçanın okunan adı, değeriyle: "Önek · 12,4 B". Özet adın parçası olur. */
|
|
6
|
+
label: string;
|
|
7
|
+
tone: LegendTone;
|
|
8
|
+
} & ({
|
|
9
|
+
/** Yığılmış çubukta parçanın büyüklüğü — parçalar sırayla dizilir. */
|
|
10
|
+
value: number;
|
|
11
|
+
from?: never;
|
|
12
|
+
to?: never;
|
|
13
|
+
} | {
|
|
14
|
+
/** Zaman çizelgesinde parçanın başlangıcı ve bitişi (aynı ölçekte). */
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
value?: never;
|
|
18
|
+
});
|
|
19
|
+
export type SegmentBarMarker = {
|
|
20
|
+
id: string;
|
|
21
|
+
/** Konum, `max` ile aynı ölçekte. */
|
|
22
|
+
at: number;
|
|
23
|
+
label: string;
|
|
24
|
+
tone?: 'neutral' | 'danger';
|
|
25
|
+
};
|
|
26
|
+
type Props = {
|
|
27
|
+
/** Grafiğin adı ("Bağlam bileşimi"); parçaların ve işaretlerin adlarıyla birlikte okunur. */
|
|
28
|
+
label: string;
|
|
29
|
+
/** Ölçeğin tavanı. */
|
|
30
|
+
max: number;
|
|
31
|
+
segments: SegmentBarSegment[];
|
|
32
|
+
/** Dikey çizgi işaretleri — bütçe sınırı, hedef. */
|
|
33
|
+
markers?: SegmentBarMarker[];
|
|
34
|
+
className?: string;
|
|
35
|
+
testId?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Parçalı çubuk — yığılmış bileşim (`value`) ya da zaman çizelgesi (`from`/`to`).
|
|
39
|
+
*
|
|
40
|
+
* Erişilebilirlik: çubuk TEK bir görseldir (`role="img"`); adı grafiğin adı + her parçanın ve
|
|
41
|
+
* işaretin okunan adıdır. Parça başına odaklanılabilir öğe çizilmez — bir çubuğun içinde sekme
|
|
42
|
+
* durağı dizmek, okunan özetten daha az bilgi verip daha çok tuş istiyordu.
|
|
43
|
+
*/
|
|
44
|
+
declare const SegmentBar: FC<Props>;
|
|
45
|
+
declare const _default: typeof SegmentBar;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export type SourceItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
/** Dış kaynak — yeni sekmede açılır. */
|
|
6
|
+
url?: string;
|
|
7
|
+
/** Kaynağın alan adı ("tr.wikipedia.org") — başlığın altında. */
|
|
8
|
+
domain?: string;
|
|
9
|
+
/** Uygulama içinde açılan kaynak (yan panel, kip pencere). `url` ile birlikte verilmez. */
|
|
10
|
+
onSelect?: () => void;
|
|
11
|
+
};
|
|
12
|
+
type Props = {
|
|
13
|
+
items: SourceItem[];
|
|
14
|
+
/** Listenin adı; verilmezse `labels.chat.sources`. */
|
|
15
|
+
label?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
testId?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Yanıtın kaynakları — numaralı liste; numara yanıttaki `Citation` ile eşleşir.
|
|
21
|
+
* Dış bağlantı yeni sekmede açılır ve `noopener` taşır; uygulama içi kaynak bir düğmedir.
|
|
22
|
+
*/
|
|
23
|
+
declare const SourceList: FC<Props>;
|
|
24
|
+
declare const _default: typeof SourceList;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export type TerminalChunk = {
|
|
3
|
+
stream: 'stdout' | 'stderr';
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
/** Çalıştırılan komut — `$` istemiyle ilk satırda. */
|
|
8
|
+
command?: string;
|
|
9
|
+
chunks: TerminalChunk[];
|
|
10
|
+
/** Kaydırılabildiğinde bölgenin okunan adı ("Komut çıktısı"). */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Gövdenin tavanı (px). */
|
|
13
|
+
maxHeight?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Terminal çıktısı — MÜREKKEP yüzey, iki temada da koyu (`shell*`). Akarken sona yapışık kalır.
|
|
19
|
+
*
|
|
20
|
+
* ⚠ stderr satırı renkten başka bir işaret de taşır: görsel olarak gizli bir önek
|
|
21
|
+
* (`labels.chat.stderr`, "hata çıktısı"). Kırmızı tek başına anlam taşıyamaz (1.4.1).
|
|
22
|
+
*/
|
|
23
|
+
declare const TerminalOutput: FC<Props>;
|
|
24
|
+
declare const _default: typeof TerminalOutput;
|
|
25
|
+
export default _default;
|