@handijit/ui 0.0.0-stage → 1.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 +872 -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 +1865 -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 +1120 -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 +26 -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 +8 -0
- package/build/constants/breakpoint.constants.js +9 -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 +9 -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 +24 -0
- package/build/helpers/theme.helper.cjs.map +1 -0
- package/build/helpers/theme.helper.d.ts +49 -0
- package/build/helpers/theme.helper.js +75 -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 +7 -0
- package/build/hooks/useUiTheme.js +36 -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 +39 -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 +95 -0
- package/build/index.js +207 -0
- package/build/index.js.map +1 -0
- package/build/scss/_colors.generated.scss +119 -0
- package/build/scss/_index.scss +6 -0
- package/build/scss/_metrics.generated.scss +49 -0
- package/build/scss/_mixins.scss +710 -0
- package/build/scss/_variables.scss +51 -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 +22 -0
- package/build/theme/UiProvider.js +30 -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 +19 -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/theme/initUi.cjs +2 -0
- package/build/theme/initUi.cjs.map +1 -0
- package/build/theme/initUi.d.ts +7 -0
- package/build/theme/initUi.js +10 -0
- package/build/theme/initUi.js.map +1 -0
- package/build/theme/palette.cjs +2 -0
- package/build/theme/palette.cjs.map +1 -0
- package/build/theme/palette.d.ts +219 -0
- package/build/theme/palette.js +148 -0
- package/build/theme/palette.js.map +1 -0
- package/build/theme/tokens.cjs +2 -0
- package/build/theme/tokens.cjs.map +1 -0
- package/build/theme/tokens.d.ts +225 -0
- package/build/theme/tokens.js +384 -0
- package/build/theme/tokens.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 +13 -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 +20 -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/palette.d.ts +219 -0
- package/build/types/theme/tokens.d.ts +225 -0
- package/build/types/theme.type.d.ts +223 -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 +223 -0
- package/package.json +487 -4
|
@@ -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,20 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
/** Kategorik paletin adları (`cat-*`, `series-*`) + bekleme/boşluk için `muted`. */
|
|
3
|
+
export type LegendTone = 'cat-1' | 'cat-2' | 'cat-3' | 'cat-4' | 'cat-5' | 'series-1' | 'series-2' | '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
|
+
/**
|
|
15
|
+
* Grafik lejantı — renk karesi + ad. Renk yalnızca kategorik paletten gelir (iki temanın üç
|
|
16
|
+
* yüzeyinde ≥3:1); ad her zaman metin olarak yazılır, renk tek başına anlam taşımaz.
|
|
17
|
+
*/
|
|
18
|
+
declare const Legend: FC<Props>;
|
|
19
|
+
declare const _default: typeof Legend;
|
|
20
|
+
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;
|
|
@@ -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;
|