@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
package/build/chat.js
ADDED
|
@@ -0,0 +1,1120 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as p, jsx as a, Fragment as Ye } from "react/jsx-runtime";
|
|
3
|
+
import { memo as g, useRef as L, useEffect as U, forwardRef as We, useState as ce, useMemo as pe, Fragment as Xe, Children as Je, isValidElement as Qe, cloneElement as Ve } from "react";
|
|
4
|
+
import { ArrowDown as et, StopFill as tt, ArrowUp as st, CheckLg as nt, ClipboardFill as at } from "react-bootstrap-icons";
|
|
5
|
+
import { useUi as C, useAnnounce as Pe, useStickToBottom as Ke, IconButton as te, Textarea as it, hasOpenSurface as rt, Disclosure as Be, Spinner as ot, ScrollArea as ct, StatusDot as lt } from "@handijit/ui";
|
|
6
|
+
const m = (...e) => {
|
|
7
|
+
let s = "";
|
|
8
|
+
for (const t of e)
|
|
9
|
+
t && (s = s === "" ? t : `${s} ${t}`);
|
|
10
|
+
return s;
|
|
11
|
+
}, k = (e, s) => Object.assign(e, { displayName: s }), he = /* @__PURE__ */ new Set(), x = (e, ...s) => {
|
|
12
|
+
for (const t of s) if (t !== void 0) return t;
|
|
13
|
+
return process.env.NODE_ENV !== "production" && !he.has(e) && (he.add(e), console.error(
|
|
14
|
+
`[@handijit/ui] Eksik metin: ${e}. Prop olarak geçin ya da <UiProvider labels={…}> içinde bir kez tanımlayın. Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.`
|
|
15
|
+
)), "";
|
|
16
|
+
}, Fe = (e, s, ...t) => s ? s(...t) : x(e), dt = "ui-thread-R1LCJ", _t = "ui-thread__scroll-37EaI", ut = "ui-thread__column-57FQh", mt = "ui-thread__dock-y0Tt9", pt = "ui-thread__latest-ZNmqY", D = {
|
|
17
|
+
thread: dt,
|
|
18
|
+
thread__scroll: _t,
|
|
19
|
+
thread__column: ut,
|
|
20
|
+
thread__dock: mt,
|
|
21
|
+
thread__latest: pt
|
|
22
|
+
}, ht = ({ children: e, dock: s, isStreaming: t, label: i, className: r, testId: o }) => {
|
|
23
|
+
var f, b, y;
|
|
24
|
+
const { labels: n } = C(), l = Pe(), c = L(null), { isAtEnd: _, scrollToEnd: d } = Ke(c), u = L(t);
|
|
25
|
+
return U(() => {
|
|
26
|
+
var v;
|
|
27
|
+
u.current && !t && l(x("ChatThread.replyReady", (v = n == null ? void 0 : n.chat) == null ? void 0 : v.replyReady)), u.current = t;
|
|
28
|
+
}, [l, t, (f = n == null ? void 0 : n.chat) == null ? void 0 : f.replyReady]), /* @__PURE__ */ p("div", { className: m(D.thread, r), "data-testid": o, children: [
|
|
29
|
+
/* @__PURE__ */ a(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
ref: c,
|
|
33
|
+
className: D.thread__scroll,
|
|
34
|
+
role: "region",
|
|
35
|
+
"aria-label": x("ChatThread.label", i, (b = n == null ? void 0 : n.chat) == null ? void 0 : b.thread),
|
|
36
|
+
tabIndex: 0,
|
|
37
|
+
children: /* @__PURE__ */ a("div", { className: D.thread__column, children: e })
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ p("div", { className: D.thread__dock, children: [
|
|
41
|
+
!_ && /* @__PURE__ */ a(
|
|
42
|
+
te,
|
|
43
|
+
{
|
|
44
|
+
className: D.thread__latest,
|
|
45
|
+
icon: /* @__PURE__ */ a(et, { "aria-hidden": !0 }),
|
|
46
|
+
label: x("ChatThread.scrollToLatest", (y = n == null ? void 0 : n.chat) == null ? void 0 : y.scrollToLatest),
|
|
47
|
+
variant: "outline",
|
|
48
|
+
shape: "round",
|
|
49
|
+
size: "sm",
|
|
50
|
+
onClick: d
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
s !== void 0 && /* @__PURE__ */ a("div", { className: D.thread__column, children: s })
|
|
54
|
+
] })
|
|
55
|
+
] });
|
|
56
|
+
}, Xn = /* @__PURE__ */ g(
|
|
57
|
+
/* @__PURE__ */ k(ht, "ChatThread")
|
|
58
|
+
), bt = "ui-message-z5uVx", ft = "ui-message__avatar-QzWck", yt = "ui-message__main-1rh-A", gt = "ui-message__body-Ngiqq", kt = "ui-message__actions-dQ0Fn", M = {
|
|
59
|
+
message: bt,
|
|
60
|
+
"message--user": "ui-message--user-Mq6gb",
|
|
61
|
+
message__avatar: ft,
|
|
62
|
+
message__main: yt,
|
|
63
|
+
"message--assistant": "ui-message--assistant-ndkmH",
|
|
64
|
+
message__body: gt,
|
|
65
|
+
message__actions: kt
|
|
66
|
+
}, wt = ({
|
|
67
|
+
author: e,
|
|
68
|
+
children: s,
|
|
69
|
+
avatar: t,
|
|
70
|
+
actions: i,
|
|
71
|
+
isStreaming: r,
|
|
72
|
+
className: o,
|
|
73
|
+
testId: n
|
|
74
|
+
}) => /* @__PURE__ */ p(
|
|
75
|
+
"article",
|
|
76
|
+
{
|
|
77
|
+
className: m(M.message, M[`message--${e}`], o),
|
|
78
|
+
"aria-busy": r || void 0,
|
|
79
|
+
"data-testid": n,
|
|
80
|
+
children: [
|
|
81
|
+
e === "assistant" && t !== void 0 && /* @__PURE__ */ a("div", { className: M.message__avatar, children: t }),
|
|
82
|
+
/* @__PURE__ */ p("div", { className: M.message__main, children: [
|
|
83
|
+
/* @__PURE__ */ a("div", { className: M.message__body, children: s }),
|
|
84
|
+
i !== void 0 && /* @__PURE__ */ a("div", { className: M.message__actions, children: i })
|
|
85
|
+
] })
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
), Jn = /* @__PURE__ */ g(
|
|
89
|
+
/* @__PURE__ */ k(wt, "ChatMessage")
|
|
90
|
+
), vt = "ui-prompt-qHV1e", Nt = "ui-prompt__box-sUQDu", St = "ui-prompt__field-EmvTZ", xt = "ui-prompt__start-2tqre", At = "ui-prompt__end-Zp7fi", Tt = "ui-prompt__hint-4TpeC", R = {
|
|
91
|
+
prompt: vt,
|
|
92
|
+
prompt__box: Nt,
|
|
93
|
+
"prompt__box--disabled": "ui-prompt__box--disabled-xu-Yk",
|
|
94
|
+
prompt__field: St,
|
|
95
|
+
prompt__start: xt,
|
|
96
|
+
prompt__end: At,
|
|
97
|
+
prompt__hint: Tt
|
|
98
|
+
}, Ct = /* @__PURE__ */ We(
|
|
99
|
+
({
|
|
100
|
+
value: e,
|
|
101
|
+
onChange: s,
|
|
102
|
+
onSubmit: t,
|
|
103
|
+
onStop: i,
|
|
104
|
+
isBusy: r,
|
|
105
|
+
isDisabled: o,
|
|
106
|
+
isSubmitDisabled: n,
|
|
107
|
+
placeholder: l,
|
|
108
|
+
label: c,
|
|
109
|
+
maxRows: _ = 8,
|
|
110
|
+
hint: d,
|
|
111
|
+
start: u,
|
|
112
|
+
end: f,
|
|
113
|
+
className: b,
|
|
114
|
+
testId: y
|
|
115
|
+
}, v) => {
|
|
116
|
+
var _e, ue;
|
|
117
|
+
const { labels: w } = C(), K = e.trim() === "";
|
|
118
|
+
U(() => {
|
|
119
|
+
if (!r || !i) return;
|
|
120
|
+
const A = (me) => {
|
|
121
|
+
me.key !== "Escape" || me.defaultPrevented || rt() || i();
|
|
122
|
+
};
|
|
123
|
+
return document.addEventListener("keydown", A), () => document.removeEventListener("keydown", A);
|
|
124
|
+
}, [r, i]);
|
|
125
|
+
const He = (A) => {
|
|
126
|
+
A.key !== "Enter" || A.shiftKey || A.nativeEvent.isComposing || (A.preventDefault(), !K && !r && !o && !n && t());
|
|
127
|
+
};
|
|
128
|
+
return /* @__PURE__ */ p("div", { className: m(R.prompt, b), "data-testid": y, children: [
|
|
129
|
+
/* @__PURE__ */ p("div", { className: m(R.prompt__box, o && R["prompt__box--disabled"]), children: [
|
|
130
|
+
u !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__start, children: u }),
|
|
131
|
+
/* @__PURE__ */ a(
|
|
132
|
+
it,
|
|
133
|
+
{
|
|
134
|
+
ref: v,
|
|
135
|
+
className: R.prompt__field,
|
|
136
|
+
variant: "bare",
|
|
137
|
+
rows: 1,
|
|
138
|
+
isAutoSize: !0,
|
|
139
|
+
maxRows: _,
|
|
140
|
+
value: e,
|
|
141
|
+
placeholder: l,
|
|
142
|
+
"aria-label": c ?? l,
|
|
143
|
+
disabled: o,
|
|
144
|
+
onChange: (A) => s(A.target.value),
|
|
145
|
+
onKeyDown: He
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
f !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__end, children: f }),
|
|
149
|
+
r ? /* @__PURE__ */ a(
|
|
150
|
+
te,
|
|
151
|
+
{
|
|
152
|
+
icon: /* @__PURE__ */ a(tt, { "aria-hidden": !0 }),
|
|
153
|
+
label: x("PromptInput.stop", (_e = w == null ? void 0 : w.chat) == null ? void 0 : _e.stop),
|
|
154
|
+
variant: "outline",
|
|
155
|
+
shape: "round",
|
|
156
|
+
onClick: i,
|
|
157
|
+
disabled: !i
|
|
158
|
+
}
|
|
159
|
+
) : /* @__PURE__ */ a(
|
|
160
|
+
te,
|
|
161
|
+
{
|
|
162
|
+
icon: /* @__PURE__ */ a(st, { "aria-hidden": !0 }),
|
|
163
|
+
label: x("PromptInput.send", (ue = w == null ? void 0 : w.chat) == null ? void 0 : ue.send),
|
|
164
|
+
variant: "solid",
|
|
165
|
+
shape: "round",
|
|
166
|
+
onClick: t,
|
|
167
|
+
disabled: K || o || n
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
] }),
|
|
171
|
+
d !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__hint, children: d })
|
|
172
|
+
] });
|
|
173
|
+
}
|
|
174
|
+
), Qn = /* @__PURE__ */ g(
|
|
175
|
+
/* @__PURE__ */ k(Ct, "PromptInput")
|
|
176
|
+
), Et = "ui-grid-4EfQ-", $t = "ui-card-KTt0-", Rt = "ui-card__label-LNLTF", Ot = "ui-card__description-eIx-0", H = {
|
|
177
|
+
grid: Et,
|
|
178
|
+
card: $t,
|
|
179
|
+
card__label: Rt,
|
|
180
|
+
card__description: Ot
|
|
181
|
+
}, Lt = ({ label: e, items: s, onPick: t, className: i, testId: r }) => /* @__PURE__ */ a("div", { role: "group", "aria-label": e, className: m(H.grid, i), "data-testid": r, children: s.map((o) => /* @__PURE__ */ p("button", { type: "button", className: H.card, onClick: () => t(o), children: [
|
|
182
|
+
/* @__PURE__ */ a("span", { className: H.card__label, children: o.label }),
|
|
183
|
+
o.description && /* @__PURE__ */ a("span", { className: H.card__description, children: o.description })
|
|
184
|
+
] }, o.id)) }), Vn = /* @__PURE__ */ g(
|
|
185
|
+
/* @__PURE__ */ k(Lt, "PromptSuggestions")
|
|
186
|
+
), zt = "ui-prose-kAp6f", It = {
|
|
187
|
+
prose: zt
|
|
188
|
+
}, Dt = ({ className: e, testId: s, ...t }) => /* @__PURE__ */ a("div", { className: m(It.prose, e), "data-testid": s, ...t }), ea = /* @__PURE__ */ g(/* @__PURE__ */ k(Dt, "Prose")), Mt = /^(?:[ \t]*\r?\n)+/, Pt = " ", Kt = (e) => (e == null ? void 0 : e.trim().toLowerCase()) === "json", Bt = (e, s) => {
|
|
189
|
+
let t = s + 1;
|
|
190
|
+
for (; t < e.length && e[t] !== '"'; ) t += e[t] === "\\" ? 2 : 1;
|
|
191
|
+
return t + 1;
|
|
192
|
+
}, Ft = (e, s) => {
|
|
193
|
+
let t = s;
|
|
194
|
+
for (; t < e.length && /\s/.test(e[t]); ) t++;
|
|
195
|
+
return t;
|
|
196
|
+
}, jt = (e) => {
|
|
197
|
+
try {
|
|
198
|
+
JSON.parse(e);
|
|
199
|
+
} catch {
|
|
200
|
+
return e;
|
|
201
|
+
}
|
|
202
|
+
let s = "", t = 0;
|
|
203
|
+
const i = () => `
|
|
204
|
+
${Pt.repeat(t)}`;
|
|
205
|
+
for (let r = 0; r < e.length; r++) {
|
|
206
|
+
const o = e[r];
|
|
207
|
+
if (o === '"') {
|
|
208
|
+
const n = Bt(e, r);
|
|
209
|
+
s += e.slice(r, n), r = n - 1;
|
|
210
|
+
} else if (o === "{" || o === "[") {
|
|
211
|
+
const n = Ft(e, r + 1);
|
|
212
|
+
e[n] === (o === "{" ? "}" : "]") ? (s += o + e[n], r = n) : (t++, s += o + i());
|
|
213
|
+
} else o === "}" || o === "]" ? (t--, s += i() + o) : o === "," ? s += `,${i()}` : o === ":" ? s += ": " : /\s/.test(o) || (s += o);
|
|
214
|
+
}
|
|
215
|
+
return s;
|
|
216
|
+
}, Zt = (e, s) => {
|
|
217
|
+
const t = e.replace(Mt, "").trimEnd();
|
|
218
|
+
return Kt(s) ? jt(t) : t;
|
|
219
|
+
}, h = (e) => new Set(e.split(" ")), $ = /"(?:[^"\\\n]|\\.)*"?/, G = /'(?:[^'\\\n]|\\.)*'?/, je = /`(?:[^`\\]|\\[\s\S])*`?/, le = /"""[\s\S]*?(?:"""|(?![\s\S]))/, Ut = /'''[\s\S]*?(?:'''|(?![\s\S]))/, Gt = /'(?:\\[^\n]{1,8}?|[^'\\\n])'/, se = /\/\/.*/, q = /\/\*[\s\S]*?(?:\*\/|(?![\s\S]))/, z = /#.*/, P = /\b(?:0[xX][\dA-Fa-f_]+|0[bB][01_]+|0[oO][0-7_]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[eE][+-]?\d+)?)[A-Za-z]*\b/, I = /[A-Za-z_]\w*/, ne = /[{}[\]();,.:]/, de = /@[A-Za-z_][\w.]*/, qt = /[\w$)\]]/, be = /\S/, fe = "break case catch class const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield async await of static get set as from", Ht = "type interface enum implements namespace declare abstract private protected public readonly keyof infer is satisfies override module asserts unique", Yt = "true false null undefined NaN Infinity", Wt = "string number boolean any unknown never object symbol bigint", Xt = "int long short char float double bool boolean byte void unsigned signed string str usize isize u8 u16 u32 u64 u128 i8 i16 i32 i64 i128 f32 f64 rune uint uint8 uint16 uint32 uint64 int8 int16 int32 int64 float32 float64 error any decimal size_t", Jt = "true false null nil nullptr NULL", Ze = "auto break case const continue default do else enum extern for goto if inline register restrict return sizeof static struct switch typedef union volatile while", Qt = `${Ze} alignas alignof catch class constexpr consteval const_cast decltype delete dynamic_cast explicit export friend mutable namespace new noexcept operator private protected public reinterpret_cast static_assert static_cast template this thread_local throw try typeid typename using virtual override final concept requires co_await co_return co_yield`, Vt = "abstract as async await base break case catch checked class const continue default delegate do dynamic else enum event explicit extern finally fixed for foreach get goto if implicit in init interface internal is lock namespace new operator out override params partial private protected public readonly record ref return sealed set sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using var virtual volatile when where while yield", es = "abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package permits private protected public record return sealed static strictfp super switch synchronized this throw throws transient try var volatile while yield", ts = "abstract annotation as break by catch class companion const constructor continue crossinline data do else enum external final finally for fun get if import in infix init inline inner interface internal is lateinit noinline object open operator out override package private protected public reified return sealed set super suspend this throw try typealias val var vararg when where while", ss = "actor as associatedtype async await break case catch class continue default defer deinit do else enum extension fallthrough fileprivate final for func guard if import in init inout internal is lazy let mutating open operator override private protocol public repeat rethrows return self Self some static struct subscript super switch throw throws try typealias var weak where while", ns = "break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var", as = "as async await break const continue crate dyn else enum extern fn for if impl in let loop match mod move mut pub ref return self Self static struct super trait type unsafe use where while", is = "abstract and array as break callable case catch class clone const continue declare default do echo else elseif empty extends final finally fn for foreach function global goto if implements include include_once instanceof insteadof interface isset list match namespace new or print private protected public readonly require require_once return static switch throw trait try unset use var while xor yield", rs = "if then else elif fi for while until do done case esac in function return local export select time break continue declare readonly unset shift source alias exit", os = "FROM AS RUN CMD LABEL EXPOSE ENV ADD COPY ENTRYPOINT VOLUME USER WORKDIR ARG ONBUILD STOPSIGNAL HEALTHCHECK SHELL MAINTAINER", ae = (e, s) => ({
|
|
220
|
+
rules: [
|
|
221
|
+
["comment", se],
|
|
222
|
+
["comment", q],
|
|
223
|
+
["string", $],
|
|
224
|
+
["string", G],
|
|
225
|
+
["string", je],
|
|
226
|
+
/*
|
|
227
|
+
* Düzenli ifade. Tamamı (kapanış `/` ve bayraklar) önce gelir; alternatifler AYRIK olduğu
|
|
228
|
+
* için geri dönüş doğrusaldır.
|
|
229
|
+
* ⚠ Karakter sınıfının kapanışı bu kuralda ZORUNLU. `\]?` dıştaki tekrar ve sondaki `/` ile
|
|
230
|
+
* birkaç bin `[`de üstel geri dönüş yapıp sayfayı kilitliyordu.
|
|
231
|
+
* Kapanmamış ifade alttaki kural: sonda aranan bir `/` yok, bu yüzden başarısız olup geri
|
|
232
|
+
* dönmez; gövde satır sonuna kadar boyanır.
|
|
233
|
+
*/
|
|
234
|
+
["regex", /\/(?![*/])(?:\\.|\[(?:\\.|[^\]\\\n])*\]|[^/\\\n[])+\/[dgimsuvy]*/],
|
|
235
|
+
["regex", /\/(?![*/])(?:\\.|\[(?:\\.|[^\]\\\n])*\]?|[^/\\\n[])*/],
|
|
236
|
+
/*
|
|
237
|
+
* Bileşen etiketi yalnızca JSX'te; TS'te `<` bir tür parametresi ya da karşılaştırma. Açılış
|
|
238
|
+
* etiketi addan sonra gelemez (`useState<string>`); kapanış gelebilir (`Kaydet</Button>`).
|
|
239
|
+
*/
|
|
240
|
+
...s ? [
|
|
241
|
+
["tag", /<\/[A-Za-z][\w.:-]*/],
|
|
242
|
+
["tag", /<[A-Za-z][\w.:-]*/, qt]
|
|
243
|
+
] : [],
|
|
244
|
+
["name", de],
|
|
245
|
+
["number", P],
|
|
246
|
+
["word", /[A-Za-z_$][\w$]*/],
|
|
247
|
+
["punctuation", ne]
|
|
248
|
+
],
|
|
249
|
+
keywords: h(e ? `${fe} ${Ht}` : fe),
|
|
250
|
+
literals: h(Yt),
|
|
251
|
+
types: e ? h(Wt) : void 0,
|
|
252
|
+
hasCapitalTypes: !0
|
|
253
|
+
}), T = (e, s = []) => ({
|
|
254
|
+
rules: [
|
|
255
|
+
...s,
|
|
256
|
+
["comment", se],
|
|
257
|
+
["comment", q],
|
|
258
|
+
/* Önişlemci (`#include`) ve Rust özniteliği (`#[derive(Debug)]`). */
|
|
259
|
+
["keyword", /^[ \t]*#[ \t]*[a-z]+|#!?\[[^\]\n]*\]/],
|
|
260
|
+
["string", le],
|
|
261
|
+
["string", $],
|
|
262
|
+
["string", Gt],
|
|
263
|
+
/* Go'nun ham dizesi. */
|
|
264
|
+
["string", je],
|
|
265
|
+
["name", de],
|
|
266
|
+
["number", P],
|
|
267
|
+
["word", I],
|
|
268
|
+
["punctuation", ne]
|
|
269
|
+
],
|
|
270
|
+
keywords: h(e),
|
|
271
|
+
literals: h(Jt),
|
|
272
|
+
types: h(Xt),
|
|
273
|
+
hasCapitalTypes: !0
|
|
274
|
+
}), ye = () => ({
|
|
275
|
+
rules: [
|
|
276
|
+
["comment", z],
|
|
277
|
+
[
|
|
278
|
+
"string",
|
|
279
|
+
/(?:\b[rRbBuUfF]{1,2})?(?:"""[\s\S]*?(?:"""|(?![\s\S]))|'''[\s\S]*?(?:'''|(?![\s\S])))/
|
|
280
|
+
],
|
|
281
|
+
["string", /(?:\b[rRbBuUfF]{1,2})?(?:"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?)/],
|
|
282
|
+
["name", de],
|
|
283
|
+
["number", P],
|
|
284
|
+
["word", I],
|
|
285
|
+
["punctuation", ne]
|
|
286
|
+
],
|
|
287
|
+
keywords: h(
|
|
288
|
+
"and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield match case"
|
|
289
|
+
),
|
|
290
|
+
literals: h("True False None"),
|
|
291
|
+
types: h("int float str bool list dict set tuple bytes object"),
|
|
292
|
+
hasCapitalTypes: !0
|
|
293
|
+
}), ge = () => ({
|
|
294
|
+
rules: [
|
|
295
|
+
["comment", z],
|
|
296
|
+
["string", $],
|
|
297
|
+
["string", G],
|
|
298
|
+
/* Sembol (`:ad`) sabittir; `Foo::Bar` içindeki `:Bar` değil. */
|
|
299
|
+
["number", /:[A-Za-z_]\w*[?!]?/, /[\w:]/],
|
|
300
|
+
["name", /@{1,2}[A-Za-z_]\w*/],
|
|
301
|
+
["number", P],
|
|
302
|
+
["word", /[A-Za-z_]\w*[?!]?/],
|
|
303
|
+
["punctuation", ne]
|
|
304
|
+
],
|
|
305
|
+
keywords: h(
|
|
306
|
+
"alias and begin break case class def defined? do else elsif end ensure for if in module next not or redo rescue retry return self super then undef unless until when while yield require require_relative attr_accessor attr_reader attr_writer private protected public raise"
|
|
307
|
+
),
|
|
308
|
+
literals: h("true false nil"),
|
|
309
|
+
hasCapitalTypes: !0
|
|
310
|
+
}), Ue = (e) => ({
|
|
311
|
+
rules: [
|
|
312
|
+
/* `#` yorum açar yalnızca kelime başında: `$#`, `a#b` yorum değil. */
|
|
313
|
+
["comment", z, /[^\s;|&(]/],
|
|
314
|
+
/* Kabukta çift tırnak satır aşar, tek tırnak kaçış tanımaz. */
|
|
315
|
+
["string", /"(?:[^"\\]|\\[\s\S])*"?/],
|
|
316
|
+
["string", /'[^']*'?/],
|
|
317
|
+
["name", /\$(?:\{[^}\n]*\}?|[A-Za-z_]\w*|[@#?$!*\d-])/],
|
|
318
|
+
["number", /\b\d+\b/],
|
|
319
|
+
["word", /[A-Za-z_][\w-]*/],
|
|
320
|
+
["punctuation", /[{}[\]();|&]/]
|
|
321
|
+
],
|
|
322
|
+
keywords: h(e)
|
|
323
|
+
}), ke = () => ({
|
|
324
|
+
rules: [
|
|
325
|
+
["comment", se],
|
|
326
|
+
["comment", q],
|
|
327
|
+
/* Anahtar: ardından `:` gelen dize. */
|
|
328
|
+
["name", /"(?:[^"\\\n]|\\.)*"(?=\s*:)/],
|
|
329
|
+
["string", $],
|
|
330
|
+
["number", /-?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/],
|
|
331
|
+
["word", I],
|
|
332
|
+
["punctuation", /[{}[\],:]/]
|
|
333
|
+
],
|
|
334
|
+
literals: h("true false null")
|
|
335
|
+
}), we = () => ({
|
|
336
|
+
rules: [
|
|
337
|
+
["comment", z, be],
|
|
338
|
+
/* Anahtar; ilk karakteri `-` olamaz (`- ad:` bir liste öğesi). */
|
|
339
|
+
[
|
|
340
|
+
"name",
|
|
341
|
+
/(?:"(?:[^"\\\n]|\\.)*"|'[^'\n]*'|[\w$./][\w$./-]*(?:[ \t]+[\w$./-]+)*)(?=[ \t]*:(?:[ \t]|$))/
|
|
342
|
+
],
|
|
343
|
+
["string", $],
|
|
344
|
+
["string", G],
|
|
345
|
+
/* Çapa (`&ad`), takma ad (`*ad`), etiket (`!!str`). */
|
|
346
|
+
["type", /[&*][\w-]+|!!?[\w-]+/, be],
|
|
347
|
+
["punctuation", /^[ \t]*-(?=[ \t]|$)|[{}[\],]|[|>][-+]?(?=[ \t]*$)/],
|
|
348
|
+
["number", /[-+]?\b\d[\d_]*(?:\.\d+)?(?:[eE][+-]?\d+)?\b/],
|
|
349
|
+
["word", I]
|
|
350
|
+
],
|
|
351
|
+
literals: h("true false null True False Null TRUE FALSE NULL")
|
|
352
|
+
}), cs = () => ({
|
|
353
|
+
rules: [
|
|
354
|
+
["comment", z],
|
|
355
|
+
["type", /^[ \t]*\[\[?[^\]\n]*\]\]?/],
|
|
356
|
+
["name", /(?:"[^"\n]*"|[\w.-]+)(?=[ \t]*=)/],
|
|
357
|
+
["string", le],
|
|
358
|
+
["string", Ut],
|
|
359
|
+
["string", $],
|
|
360
|
+
["string", /'[^'\n]*'?/],
|
|
361
|
+
[
|
|
362
|
+
"number",
|
|
363
|
+
/\b\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b|[-+]?\b\d[\d_]*(?:\.\d+)?(?:[eE][+-]?\d+)?\b/
|
|
364
|
+
],
|
|
365
|
+
["word", I],
|
|
366
|
+
["punctuation", /[{}[\],=]/]
|
|
367
|
+
],
|
|
368
|
+
literals: h("true false inf nan")
|
|
369
|
+
}), ie = () => ({
|
|
370
|
+
rules: [
|
|
371
|
+
["comment", q],
|
|
372
|
+
/* SCSS/Less satır yorumu; `url(http://…)` içindeki `//` değil. */
|
|
373
|
+
["comment", se, /:/],
|
|
374
|
+
["string", $],
|
|
375
|
+
["string", G],
|
|
376
|
+
["keyword", /@[\w-]+|!important\b/],
|
|
377
|
+
/*
|
|
378
|
+
* Özellik adı: ardındaki `:` bir bildirimi açıyorsa (`;` ya da `}` `{`dan önce geliyorsa).
|
|
379
|
+
* `a:hover {` bir seçici — ardından önce `{` geliyor.
|
|
380
|
+
*/
|
|
381
|
+
["name", /-{0,2}[A-Za-z][\w-]*(?=\s*:[^;{}]*[;}])/],
|
|
382
|
+
["name", /\$[\w-]+/],
|
|
383
|
+
["number", /#[\dA-Fa-f]{3,8}\b|-?(?:\b\d+(?:\.\d+)?|\.\d+)(?:%|[A-Za-z]+\b)?/],
|
|
384
|
+
["word", /-?[A-Za-z_][\w-]*/],
|
|
385
|
+
["punctuation", /[{}();:,]/]
|
|
386
|
+
]
|
|
387
|
+
}), Y = () => ({
|
|
388
|
+
rules: [
|
|
389
|
+
["comment", /<!--[\s\S]*?(?:-->|(?![\s\S]))/],
|
|
390
|
+
["keyword", /<![A-Za-z][^>]*>?|<\?[\s\S]*?(?:\?>|(?![\s\S]))/],
|
|
391
|
+
["markup", /<\/?[A-Za-z][\w:.-]*(?:"[^"]*"?|'[^']*'?|[^'">])*>?/],
|
|
392
|
+
/* Karakter başvurusu (`&`). */
|
|
393
|
+
["number", /&#?\w+;/]
|
|
394
|
+
]
|
|
395
|
+
}), ve = () => ({
|
|
396
|
+
rules: [
|
|
397
|
+
[
|
|
398
|
+
"string",
|
|
399
|
+
/^[ \t]*```[\s\S]*?(?:^[ \t]*```|(?![\s\S]))|^[ \t]*~~~[\s\S]*?(?:^[ \t]*~~~|(?![\s\S]))/
|
|
400
|
+
],
|
|
401
|
+
["keyword", /^#{1,6}[ \t].*/],
|
|
402
|
+
["punctuation", /^[ \t]*(?:[-*+]|\d+[.)])(?=[ \t])|^[ \t]*>/],
|
|
403
|
+
["string", /`[^`\n]+`/],
|
|
404
|
+
["name", /!?\[[^\]\n]*\]\([^)\n]*\)/]
|
|
405
|
+
]
|
|
406
|
+
}), ls = () => ({
|
|
407
|
+
rules: [
|
|
408
|
+
["comment", /--.*/],
|
|
409
|
+
["comment", q],
|
|
410
|
+
["string", /'(?:[^']|'')*'?/],
|
|
411
|
+
["name", /"[^"\n]*"?|`[^`\n]*`?/],
|
|
412
|
+
["number", P],
|
|
413
|
+
["word", I],
|
|
414
|
+
["punctuation", /[(),;.]/]
|
|
415
|
+
],
|
|
416
|
+
keywords: h(
|
|
417
|
+
"select from where and or not insert into values update set delete create table alter drop index view join inner left right full outer cross on as group by order having limit offset union all distinct case when then else end is in exists between like ilike primary key foreign references default unique constraint returning with asc desc begin commit rollback transaction if replace check cascade grant revoke add column database schema trigger procedure function declare"
|
|
418
|
+
),
|
|
419
|
+
literals: h("null true false"),
|
|
420
|
+
types: h(
|
|
421
|
+
"int integer bigint smallint serial bigserial text varchar char boolean bool date time timestamp timestamptz interval numeric decimal real float double json jsonb uuid bytea"
|
|
422
|
+
),
|
|
423
|
+
isCaseInsensitive: !0
|
|
424
|
+
}), Ne = () => ({
|
|
425
|
+
rules: [
|
|
426
|
+
["keyword", /^(?:diff|index|\+\+\+|---)(?: .*|$)/],
|
|
427
|
+
["name", /^@@.*/],
|
|
428
|
+
["inserted", /^\+.*/],
|
|
429
|
+
["deleted", /^-.*/]
|
|
430
|
+
]
|
|
431
|
+
}), Se = () => ({
|
|
432
|
+
rules: [
|
|
433
|
+
["comment", z],
|
|
434
|
+
["string", le],
|
|
435
|
+
["string", $],
|
|
436
|
+
["name", /\$\w+/],
|
|
437
|
+
["name", /@\w+/],
|
|
438
|
+
["number", P],
|
|
439
|
+
["word", I],
|
|
440
|
+
["punctuation", /[{}[\]():,!=|]/]
|
|
441
|
+
],
|
|
442
|
+
keywords: h(
|
|
443
|
+
"query mutation subscription fragment on type input enum interface union scalar schema extend directive implements"
|
|
444
|
+
),
|
|
445
|
+
literals: h("true false null"),
|
|
446
|
+
/* `ID` tamamı büyük harf ama sabit değil, yerleşik tip. */
|
|
447
|
+
types: h("ID"),
|
|
448
|
+
hasCapitalTypes: !0
|
|
449
|
+
}), ds = () => ({
|
|
450
|
+
rules: [
|
|
451
|
+
["tag", /<\/?[A-Za-z][\w:.-]*/],
|
|
452
|
+
["string", /"[^"]*"?|'[^']*'?/],
|
|
453
|
+
["name", /[^\s"'<>/=]+/],
|
|
454
|
+
["punctuation", /\/?>|=/]
|
|
455
|
+
]
|
|
456
|
+
}), W = () => ae(!1, !1), _s = () => ae(!1, !0), X = () => ae(!0, !1), us = () => ae(!0, !0), B = () => Ue(rs), xe = () => Ue(os), Ae = () => T(Ze), re = () => T(Qt), Te = () => T(Vt), Ce = () => T(ts), Ee = () => T(ns), $e = () => T(as), ms = () => T(is, [
|
|
457
|
+
["comment", z],
|
|
458
|
+
["name", /\$[A-Za-z_]\w*/],
|
|
459
|
+
["string", G]
|
|
460
|
+
]), Re = {
|
|
461
|
+
javascript: W,
|
|
462
|
+
js: W,
|
|
463
|
+
mjs: W,
|
|
464
|
+
cjs: W,
|
|
465
|
+
jsx: _s,
|
|
466
|
+
typescript: X,
|
|
467
|
+
ts: X,
|
|
468
|
+
mts: X,
|
|
469
|
+
cts: X,
|
|
470
|
+
tsx: us,
|
|
471
|
+
json: ke,
|
|
472
|
+
jsonc: ke,
|
|
473
|
+
bash: B,
|
|
474
|
+
sh: B,
|
|
475
|
+
shell: B,
|
|
476
|
+
zsh: B,
|
|
477
|
+
console: B,
|
|
478
|
+
dockerfile: xe,
|
|
479
|
+
docker: xe,
|
|
480
|
+
python: ye,
|
|
481
|
+
py: ye,
|
|
482
|
+
ruby: ge,
|
|
483
|
+
rb: ge,
|
|
484
|
+
yaml: we,
|
|
485
|
+
yml: we,
|
|
486
|
+
toml: cs,
|
|
487
|
+
css: ie,
|
|
488
|
+
scss: ie,
|
|
489
|
+
less: ie,
|
|
490
|
+
html: Y,
|
|
491
|
+
xml: Y,
|
|
492
|
+
svg: Y,
|
|
493
|
+
vue: Y,
|
|
494
|
+
markdown: ve,
|
|
495
|
+
md: ve,
|
|
496
|
+
sql: ls,
|
|
497
|
+
diff: Ne,
|
|
498
|
+
patch: Ne,
|
|
499
|
+
graphql: Se,
|
|
500
|
+
gql: Se,
|
|
501
|
+
c: Ae,
|
|
502
|
+
h: Ae,
|
|
503
|
+
cpp: re,
|
|
504
|
+
"c++": re,
|
|
505
|
+
hpp: re,
|
|
506
|
+
csharp: Te,
|
|
507
|
+
cs: Te,
|
|
508
|
+
java: () => T(es),
|
|
509
|
+
kotlin: Ce,
|
|
510
|
+
kt: Ce,
|
|
511
|
+
swift: () => T(ss),
|
|
512
|
+
go: Ee,
|
|
513
|
+
golang: Ee,
|
|
514
|
+
rust: $e,
|
|
515
|
+
rs: $e,
|
|
516
|
+
php: ms
|
|
517
|
+
}, ps = 2e4, Oe = /!?[ \t]*\(/y, hs = /^[A-Z][A-Z\d_]+$/, bs = /[(,=:[!&|?{};~+\-*%<>^]/, fs = /* @__PURE__ */ new Set([
|
|
518
|
+
"return",
|
|
519
|
+
"typeof",
|
|
520
|
+
"case",
|
|
521
|
+
"do",
|
|
522
|
+
"else",
|
|
523
|
+
"in",
|
|
524
|
+
"of",
|
|
525
|
+
"new",
|
|
526
|
+
"delete",
|
|
527
|
+
"void",
|
|
528
|
+
"throw",
|
|
529
|
+
"yield",
|
|
530
|
+
"await"
|
|
531
|
+
]), Le = /* @__PURE__ */ new Map(), Ge = (e) => {
|
|
532
|
+
const s = Le.get(e);
|
|
533
|
+
if (s) return s;
|
|
534
|
+
const t = e(), r = { pattern: new RegExp(t.rules.map(([, o]) => `(${o.source})`).join("|"), "gm"), grammar: t };
|
|
535
|
+
return Le.set(e, r), r;
|
|
536
|
+
}, ys = (e) => {
|
|
537
|
+
const s = e == null ? void 0 : e.trim().toLowerCase();
|
|
538
|
+
return s && Object.hasOwn(Re, s) ? Re[s] : void 0;
|
|
539
|
+
}, gs = (e, s) => {
|
|
540
|
+
let t = s - 1;
|
|
541
|
+
for (; t >= 0 && /\s/.test(e[t]); ) t--;
|
|
542
|
+
if (t < 0 || bs.test(e[t])) return !0;
|
|
543
|
+
const i = t + 1;
|
|
544
|
+
for (; t >= 0 && /[\w$]/.test(e[t]); ) t--;
|
|
545
|
+
return fs.has(e.slice(t + 1, i));
|
|
546
|
+
}, ks = (e, s, t, i, r) => {
|
|
547
|
+
var l, c, _;
|
|
548
|
+
Oe.lastIndex = r;
|
|
549
|
+
const o = Oe.test(t);
|
|
550
|
+
if (t[i - 1] === ".") return o ? "name" : void 0;
|
|
551
|
+
const n = e.isCaseInsensitive ? s.toLowerCase() : s;
|
|
552
|
+
if ((l = e.keywords) != null && l.has(n)) return "keyword";
|
|
553
|
+
if ((c = e.literals) != null && c.has(n)) return "number";
|
|
554
|
+
if ((_ = e.types) != null && _.has(n)) return "type";
|
|
555
|
+
if (o) return "name";
|
|
556
|
+
if (e.hasCapitalTypes && /^[A-Z]/.test(s))
|
|
557
|
+
return hs.test(s) ? "number" : "type";
|
|
558
|
+
}, qe = ({ pattern: e, grammar: s }, t) => {
|
|
559
|
+
const i = [], r = (n, l) => {
|
|
560
|
+
if (!n) return;
|
|
561
|
+
const c = i.at(-1);
|
|
562
|
+
c && c.type === l ? c.text += n : i.push({ text: n, type: l });
|
|
563
|
+
};
|
|
564
|
+
let o = 0;
|
|
565
|
+
e.lastIndex = 0;
|
|
566
|
+
for (let n = e.exec(t); n; n = e.exec(t)) {
|
|
567
|
+
const [l] = n, { index: c } = n, _ = c + l.length;
|
|
568
|
+
if (_ === c) {
|
|
569
|
+
e.lastIndex = c + 1;
|
|
570
|
+
continue;
|
|
571
|
+
}
|
|
572
|
+
const [d, , u] = s.rules[n.indexOf(l, 1) - 1];
|
|
573
|
+
if (u !== void 0 && c > 0 && u.test(t[c - 1]) || d === "regex" && !gs(t, c)) {
|
|
574
|
+
e.lastIndex = c + 1;
|
|
575
|
+
continue;
|
|
576
|
+
}
|
|
577
|
+
if (r(t.slice(o, c)), o = _, d === "word") r(l, ks(s, l, t, c, _));
|
|
578
|
+
else if (d === "regex") r(l, "string");
|
|
579
|
+
else if (d === "tag") {
|
|
580
|
+
const b = l[1] === "/" ? 2 : 1, y = l.slice(b);
|
|
581
|
+
r(l.slice(0, b), "punctuation"), r(y, /^[A-Z]/.test(y) || y.includes(".") ? "type" : "keyword");
|
|
582
|
+
} else if (d === "markup")
|
|
583
|
+
for (const b of qe(Ge(ds), l)) r(b.text, b.type);
|
|
584
|
+
else r(l, d);
|
|
585
|
+
}
|
|
586
|
+
return r(t.slice(o)), i;
|
|
587
|
+
}, ws = (e, s) => {
|
|
588
|
+
const t = ys(s);
|
|
589
|
+
return t && e.length <= ps ? qe(Ge(t), e) : [{ text: e }];
|
|
590
|
+
}, vs = "ui-block-M1yL9", Ns = "ui-block__header-F2iBP", Ss = "ui-block__language-lmdS9", xs = "ui-block__body-wDCJ2", As = "ui-block__pre--EERi", Ts = "ui-block__highlighted-JK1Yj", O = {
|
|
591
|
+
block: vs,
|
|
592
|
+
block__header: Ns,
|
|
593
|
+
block__language: Ss,
|
|
594
|
+
block__body: xs,
|
|
595
|
+
block__pre: As,
|
|
596
|
+
block__highlighted: Ts,
|
|
597
|
+
"block__token--comment": "ui-block__token--comment-eFTyh",
|
|
598
|
+
"block__token--keyword": "ui-block__token--keyword-qQpj9",
|
|
599
|
+
"block__token--string": "ui-block__token--string-4onwX",
|
|
600
|
+
"block__token--number": "ui-block__token--number-DThtL",
|
|
601
|
+
"block__token--name": "ui-block__token--name-283C9",
|
|
602
|
+
"block__token--type": "ui-block__token--type-cNUbM",
|
|
603
|
+
"block__token--punctuation": "ui-block__token--punctuation-Te2u8",
|
|
604
|
+
"block__token--inserted": "ui-block__token--inserted-sUKnQ",
|
|
605
|
+
"block__token--deleted": "ui-block__token--deleted-s74a-"
|
|
606
|
+
}, Cs = 1600, Es = ({ code: e, language: s, html: t, maxHeight: i, className: r, testId: o }) => {
|
|
607
|
+
var v;
|
|
608
|
+
const { labels: n } = C(), l = Pe(), [c, _] = ce(!1), d = L(void 0), u = pe(() => t ? e : Zt(e, s), [e, t, s]), f = pe(() => t ? [] : ws(u, s), [u, t, s]);
|
|
609
|
+
U(() => () => window.clearTimeout(d.current), []);
|
|
610
|
+
const b = async () => {
|
|
611
|
+
var w;
|
|
612
|
+
try {
|
|
613
|
+
await navigator.clipboard.writeText(u);
|
|
614
|
+
} catch {
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
_(!0), l(x("CodeBlock.copied", (w = n == null ? void 0 : n.chat) == null ? void 0 : w.codeCopied)), window.clearTimeout(d.current), d.current = window.setTimeout(() => _(!1), Cs);
|
|
618
|
+
}, y = s ?? "";
|
|
619
|
+
return /* @__PURE__ */ p("figure", { className: m(O.block, r), "data-testid": o, children: [
|
|
620
|
+
/* @__PURE__ */ p("figcaption", { className: O.block__header, children: [
|
|
621
|
+
/* @__PURE__ */ a("span", { className: O.block__language, children: y }),
|
|
622
|
+
/* @__PURE__ */ a(
|
|
623
|
+
te,
|
|
624
|
+
{
|
|
625
|
+
icon: c ? /* @__PURE__ */ a(nt, { "aria-hidden": !0 }) : /* @__PURE__ */ a(at, { "aria-hidden": !0 }),
|
|
626
|
+
label: Fe("CodeBlock.copy", (v = n == null ? void 0 : n.chat) == null ? void 0 : v.codeCopy, y),
|
|
627
|
+
size: "sm",
|
|
628
|
+
onClick: b
|
|
629
|
+
}
|
|
630
|
+
)
|
|
631
|
+
] }),
|
|
632
|
+
/* @__PURE__ */ a(
|
|
633
|
+
"div",
|
|
634
|
+
{
|
|
635
|
+
className: O.block__body,
|
|
636
|
+
style: i === void 0 ? void 0 : { maxBlockSize: i },
|
|
637
|
+
tabIndex: 0,
|
|
638
|
+
role: y ? "region" : void 0,
|
|
639
|
+
"aria-label": y || void 0,
|
|
640
|
+
children: t ? /* @__PURE__ */ a("div", { className: O.block__highlighted, dangerouslySetInnerHTML: { __html: t } }) : /* @__PURE__ */ a("pre", { className: O.block__pre, children: /* @__PURE__ */ a("code", { children: f.map(
|
|
641
|
+
(w, K) => w.type ? /* @__PURE__ */ a("span", { className: O[`block__token--${w.type}`], children: w.text }, K) : /* @__PURE__ */ a(Xe, { children: w.text }, K)
|
|
642
|
+
) }) })
|
|
643
|
+
}
|
|
644
|
+
)
|
|
645
|
+
] });
|
|
646
|
+
}, ta = /* @__PURE__ */ g(/* @__PURE__ */ k(Es, "CodeBlock")), $s = "ui-block-zqPjp", Rs = "ui-block__summary-Kkp-X", Os = "ui-block__indicator-GuJMa", Ls = "ui-block__body-mDvrV", J = {
|
|
647
|
+
block: $s,
|
|
648
|
+
block__summary: Rs,
|
|
649
|
+
block__indicator: Os,
|
|
650
|
+
block__body: Ls
|
|
651
|
+
}, zs = ({
|
|
652
|
+
summary: e,
|
|
653
|
+
isRunning: s = !1,
|
|
654
|
+
indicator: t,
|
|
655
|
+
isDefaultOpen: i = !1,
|
|
656
|
+
children: r,
|
|
657
|
+
className: o,
|
|
658
|
+
testId: n
|
|
659
|
+
}) => {
|
|
660
|
+
const [l, c] = ce(s || i), _ = L(!1);
|
|
661
|
+
return U(() => {
|
|
662
|
+
_.current || c(s || i);
|
|
663
|
+
}, [s, i]), /* @__PURE__ */ a(
|
|
664
|
+
Be,
|
|
665
|
+
{
|
|
666
|
+
variant: "plain",
|
|
667
|
+
className: m(J.block, o),
|
|
668
|
+
summary: /* @__PURE__ */ p("span", { className: J.block__summary, children: [
|
|
669
|
+
s && /* @__PURE__ */ a("span", { className: J.block__indicator, children: t ?? /* @__PURE__ */ a(ot, { size: "sm" }) }),
|
|
670
|
+
e
|
|
671
|
+
] }),
|
|
672
|
+
isOpen: l,
|
|
673
|
+
onOpenChange: (d) => {
|
|
674
|
+
_.current = !0, c(d);
|
|
675
|
+
},
|
|
676
|
+
testId: n,
|
|
677
|
+
children: /* @__PURE__ */ a("div", { className: J.block__body, children: r })
|
|
678
|
+
}
|
|
679
|
+
);
|
|
680
|
+
}, sa = /* @__PURE__ */ g(
|
|
681
|
+
/* @__PURE__ */ k(zs, "ReasoningBlock")
|
|
682
|
+
), Is = "ui-text-WKVxU", Ds = "ui-text__body--uP0k", ze = {
|
|
683
|
+
text: Is,
|
|
684
|
+
text__body: Ds
|
|
685
|
+
}, Ms = ({ text: e, label: s, maxHeight: t = 180, className: i, testId: r }) => /* @__PURE__ */ a(
|
|
686
|
+
ct,
|
|
687
|
+
{
|
|
688
|
+
className: m(ze.text, i),
|
|
689
|
+
label: s,
|
|
690
|
+
maxHeight: t,
|
|
691
|
+
hasFade: !0,
|
|
692
|
+
isFollowingEnd: !0,
|
|
693
|
+
testId: r,
|
|
694
|
+
children: /* @__PURE__ */ a("p", { className: ze.text__body, children: e })
|
|
695
|
+
}
|
|
696
|
+
), na = /* @__PURE__ */ g(
|
|
697
|
+
/* @__PURE__ */ k(Ms, "ReasoningText")
|
|
698
|
+
), Ps = "ui-call-tV2P8", Ks = "ui-call__header-8Tw7m", Bs = "ui-call__icon-TLzwf", Fs = "ui-call__name-EHz6G", js = "ui-call__summary-M4sLU", Zs = "ui-call__meta-bvpp7", Us = "ui-call__body-nFK-C", Gs = "ui-section-TjSGF", qs = "ui-section__label-UrgqM", Hs = "ui-section__body-Dy1PX", N = {
|
|
699
|
+
call: Ps,
|
|
700
|
+
"call--static": "ui-call--static-Nldru",
|
|
701
|
+
call__header: Ks,
|
|
702
|
+
call__icon: Bs,
|
|
703
|
+
"call__icon--running": "ui-call__icon--running-Mx1XK",
|
|
704
|
+
call__name: Fs,
|
|
705
|
+
call__summary: js,
|
|
706
|
+
call__meta: Zs,
|
|
707
|
+
call__body: Us,
|
|
708
|
+
section: Gs,
|
|
709
|
+
section__label: qs,
|
|
710
|
+
section__body: Hs
|
|
711
|
+
}, Ys = {
|
|
712
|
+
running: "neutral",
|
|
713
|
+
ok: "success",
|
|
714
|
+
error: "danger",
|
|
715
|
+
aborted: "warning",
|
|
716
|
+
interrupted: "danger"
|
|
717
|
+
}, Ws = ({
|
|
718
|
+
icon: e,
|
|
719
|
+
name: s,
|
|
720
|
+
summary: t,
|
|
721
|
+
status: i,
|
|
722
|
+
meta: r,
|
|
723
|
+
isDefaultOpen: o,
|
|
724
|
+
isOpen: n,
|
|
725
|
+
onOpenChange: l,
|
|
726
|
+
children: c,
|
|
727
|
+
className: _,
|
|
728
|
+
testId: d
|
|
729
|
+
}) => {
|
|
730
|
+
var y, v;
|
|
731
|
+
const { labels: u } = C(), f = x(`ToolCall.status.${i}`, (v = (y = u == null ? void 0 : u.chat) == null ? void 0 : y.toolStatus) == null ? void 0 : v[i]), b = /* @__PURE__ */ p("span", { className: N.call__header, children: [
|
|
732
|
+
e !== void 0 && /* @__PURE__ */ a(
|
|
733
|
+
"span",
|
|
734
|
+
{
|
|
735
|
+
className: m(N.call__icon, i === "running" && N["call__icon--running"]),
|
|
736
|
+
"aria-hidden": !0,
|
|
737
|
+
children: e
|
|
738
|
+
}
|
|
739
|
+
),
|
|
740
|
+
/* @__PURE__ */ a("span", { className: N.call__name, children: s }),
|
|
741
|
+
t !== void 0 && /* @__PURE__ */ a("span", { className: N.call__summary, children: t }),
|
|
742
|
+
/* @__PURE__ */ a(lt, { tone: Ys[i], label: f, isPulsing: i === "running" })
|
|
743
|
+
] });
|
|
744
|
+
return c === void 0 ? /* @__PURE__ */ p("div", { className: m(N.call, N["call--static"], _), "data-testid": d, children: [
|
|
745
|
+
b,
|
|
746
|
+
r !== void 0 && /* @__PURE__ */ a("span", { className: N.call__meta, children: r })
|
|
747
|
+
] }) : /* @__PURE__ */ a(
|
|
748
|
+
Be,
|
|
749
|
+
{
|
|
750
|
+
className: m(N.call, _),
|
|
751
|
+
summary: b,
|
|
752
|
+
meta: r,
|
|
753
|
+
isDefaultOpen: o,
|
|
754
|
+
isOpen: n,
|
|
755
|
+
onOpenChange: l,
|
|
756
|
+
testId: d,
|
|
757
|
+
children: /* @__PURE__ */ a("div", { className: N.call__body, children: c })
|
|
758
|
+
}
|
|
759
|
+
);
|
|
760
|
+
}, aa = ({ label: e, children: s, className: t }) => (
|
|
761
|
+
/*
|
|
762
|
+
* Başlık bir HEADING değil: sohbet akışında başlık düzeyi tüketicinin sayfasına bağlı ve sabit bir
|
|
763
|
+
* `h4` hiyerarşiyi bozuyordu. Bölüm de bir landmark değil (her araç kartında bir "bölge" gürültü).
|
|
764
|
+
*/
|
|
765
|
+
/* @__PURE__ */ p("div", { className: m(N.section, t), children: [
|
|
766
|
+
/* @__PURE__ */ a("span", { className: N.section__label, children: e }),
|
|
767
|
+
/* @__PURE__ */ a("div", { className: N.section__body, children: s })
|
|
768
|
+
] })
|
|
769
|
+
), ia = /* @__PURE__ */ g(/* @__PURE__ */ k(Ws, "ToolCall")), Xs = "ui-terminal-D4Bz8", Js = "ui-terminal__command-A7PG2", Qs = "ui-terminal__prompt-9N1g2", Vs = "ui-terminal__stderr-qCNFe", en = "ui-terminal__srOnly-2pmQA", F = {
|
|
770
|
+
terminal: Xs,
|
|
771
|
+
terminal__command: Js,
|
|
772
|
+
terminal__prompt: Qs,
|
|
773
|
+
terminal__stderr: Vs,
|
|
774
|
+
terminal__srOnly: en
|
|
775
|
+
}, tn = ({
|
|
776
|
+
command: e,
|
|
777
|
+
chunks: s,
|
|
778
|
+
label: t,
|
|
779
|
+
maxHeight: i = 300,
|
|
780
|
+
className: r,
|
|
781
|
+
testId: o
|
|
782
|
+
}) => {
|
|
783
|
+
var _;
|
|
784
|
+
const { labels: n } = C(), l = L(null);
|
|
785
|
+
Ke(l);
|
|
786
|
+
const c = x("TerminalOutput.stderr", (_ = n == null ? void 0 : n.chat) == null ? void 0 : _.stderr);
|
|
787
|
+
return /* @__PURE__ */ p(
|
|
788
|
+
"pre",
|
|
789
|
+
{
|
|
790
|
+
ref: l,
|
|
791
|
+
className: m(F.terminal, r),
|
|
792
|
+
style: { maxBlockSize: i },
|
|
793
|
+
tabIndex: 0,
|
|
794
|
+
role: "region",
|
|
795
|
+
"aria-label": t,
|
|
796
|
+
"data-testid": o,
|
|
797
|
+
children: [
|
|
798
|
+
e !== void 0 && /* @__PURE__ */ p("span", { className: F.terminal__command, children: [
|
|
799
|
+
/* @__PURE__ */ p("span", { className: F.terminal__prompt, "aria-hidden": !0, children: [
|
|
800
|
+
"$",
|
|
801
|
+
" "
|
|
802
|
+
] }),
|
|
803
|
+
e,
|
|
804
|
+
`
|
|
805
|
+
`
|
|
806
|
+
] }),
|
|
807
|
+
s.map(
|
|
808
|
+
(d, u) => d.stream === "stderr" ? /* @__PURE__ */ p("span", { className: F.terminal__stderr, children: [
|
|
809
|
+
/* @__PURE__ */ a("span", { className: F.terminal__srOnly, children: `${c}: ` }),
|
|
810
|
+
d.text
|
|
811
|
+
] }, u) : /* @__PURE__ */ a("span", { children: d.text }, u)
|
|
812
|
+
)
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
);
|
|
816
|
+
}, ra = /* @__PURE__ */ g(
|
|
817
|
+
/* @__PURE__ */ k(tn, "TerminalOutput")
|
|
818
|
+
), sn = "ui-list-GC4NK", nn = "ui-list__item-N8DAn", an = "ui-list__index-VrSMs", rn = "ui-list__text-4tll-", on = "ui-list__title-seHfJ", cn = "ui-list__plain-ZcCvx", ln = "ui-list__domain-sJLI7", E = {
|
|
819
|
+
list: sn,
|
|
820
|
+
list__item: nn,
|
|
821
|
+
list__index: an,
|
|
822
|
+
list__text: rn,
|
|
823
|
+
list__title: on,
|
|
824
|
+
list__plain: cn,
|
|
825
|
+
list__domain: ln
|
|
826
|
+
}, dn = ({ items: e, label: s, className: t, testId: i }) => {
|
|
827
|
+
var o;
|
|
828
|
+
const { labels: r } = C();
|
|
829
|
+
return /* @__PURE__ */ a(
|
|
830
|
+
"ol",
|
|
831
|
+
{
|
|
832
|
+
className: m(E.list, t),
|
|
833
|
+
"aria-label": x("SourceList.label", s, (o = r == null ? void 0 : r.chat) == null ? void 0 : o.sources),
|
|
834
|
+
"data-testid": i,
|
|
835
|
+
children: e.map((n, l) => /* @__PURE__ */ p("li", { className: E.list__item, children: [
|
|
836
|
+
/* @__PURE__ */ a("span", { className: E.list__index, "aria-hidden": !0, children: l + 1 }),
|
|
837
|
+
/* @__PURE__ */ p("span", { className: E.list__text, children: [
|
|
838
|
+
n.url ? /* @__PURE__ */ a(
|
|
839
|
+
"a",
|
|
840
|
+
{
|
|
841
|
+
className: E.list__title,
|
|
842
|
+
href: n.url,
|
|
843
|
+
target: "_blank",
|
|
844
|
+
rel: "noopener noreferrer",
|
|
845
|
+
children: n.title
|
|
846
|
+
}
|
|
847
|
+
) : n.onSelect ? /* @__PURE__ */ a("button", { type: "button", className: E.list__title, onClick: n.onSelect, children: n.title }) : /* @__PURE__ */ a("span", { className: E.list__plain, children: n.title }),
|
|
848
|
+
n.domain && /* @__PURE__ */ a("span", { className: E.list__domain, children: n.domain })
|
|
849
|
+
] })
|
|
850
|
+
] }, n.id))
|
|
851
|
+
}
|
|
852
|
+
);
|
|
853
|
+
}, oa = /* @__PURE__ */ g(
|
|
854
|
+
/* @__PURE__ */ k(dn, "SourceList")
|
|
855
|
+
), _n = "ui-citation-XrGMb", un = "ui-citation__srOnly-GnMQp", j = {
|
|
856
|
+
citation: _n,
|
|
857
|
+
citation__srOnly: un,
|
|
858
|
+
"citation--static": "ui-citation--static-8gXHs"
|
|
859
|
+
}, mn = ({ index: e, href: s, onClick: t, className: i }) => {
|
|
860
|
+
var n;
|
|
861
|
+
const { labels: r } = C(), o = Fe("Citation.label", (n = r == null ? void 0 : r.chat) == null ? void 0 : n.citation, e);
|
|
862
|
+
return s ? /* @__PURE__ */ a("a", { className: m(j.citation, i), href: s, "aria-label": o, children: e }) : t ? /* @__PURE__ */ a(
|
|
863
|
+
"button",
|
|
864
|
+
{
|
|
865
|
+
type: "button",
|
|
866
|
+
className: m(j.citation, i),
|
|
867
|
+
onClick: t,
|
|
868
|
+
"aria-label": o,
|
|
869
|
+
children: e
|
|
870
|
+
}
|
|
871
|
+
) : /* @__PURE__ */ p("span", { className: m(j.citation, j["citation--static"], i), children: [
|
|
872
|
+
/* @__PURE__ */ a("span", { "aria-hidden": !0, children: e }),
|
|
873
|
+
/* @__PURE__ */ a("span", { className: j.citation__srOnly, children: o })
|
|
874
|
+
] });
|
|
875
|
+
}, ca = /* @__PURE__ */ g(/* @__PURE__ */ k(mn, "Citation")), pn = "ui-actions-c8XlJ", hn = "ui-actions__meta-j-X3I", Ie = {
|
|
876
|
+
actions: pn,
|
|
877
|
+
actions__meta: hn
|
|
878
|
+
}, bn = "button:not(:disabled), a[href]", fn = ({ children: e, meta: s, label: t, className: i, testId: r }) => {
|
|
879
|
+
var c;
|
|
880
|
+
const { labels: o } = C(), n = L(null), l = (_) => {
|
|
881
|
+
var w;
|
|
882
|
+
const d = [...((w = n.current) == null ? void 0 : w.querySelectorAll(bn)) ?? []], u = d.indexOf(document.activeElement);
|
|
883
|
+
if (u < 0 || d.length === 0) return;
|
|
884
|
+
const f = getComputedStyle(_.currentTarget).direction === "rtl", b = f ? "ArrowLeft" : "ArrowRight", y = f ? "ArrowRight" : "ArrowLeft", v = _.key === b ? d[(u + 1) % d.length] : _.key === y ? d[(u - 1 + d.length) % d.length] : _.key === "Home" ? d[0] : _.key === "End" ? d[d.length - 1] : null;
|
|
885
|
+
v && (_.preventDefault(), v.focus());
|
|
886
|
+
};
|
|
887
|
+
return /* @__PURE__ */ p(
|
|
888
|
+
"div",
|
|
889
|
+
{
|
|
890
|
+
ref: n,
|
|
891
|
+
role: "toolbar",
|
|
892
|
+
"aria-label": x("MessageActions.label", t, (c = o == null ? void 0 : o.chat) == null ? void 0 : c.messageActions),
|
|
893
|
+
className: m(Ie.actions, i),
|
|
894
|
+
onKeyDown: l,
|
|
895
|
+
"data-testid": r,
|
|
896
|
+
children: [
|
|
897
|
+
e,
|
|
898
|
+
s !== void 0 && /* @__PURE__ */ a("span", { className: Ie.actions__meta, children: s })
|
|
899
|
+
]
|
|
900
|
+
}
|
|
901
|
+
);
|
|
902
|
+
}, la = /* @__PURE__ */ g(
|
|
903
|
+
/* @__PURE__ */ k(fn, "MessageActions")
|
|
904
|
+
), yn = "ui-bar-UJGDL", gn = "ui-bar__brand-ZUcIw", kn = "ui-bar__start-nvmHH", wn = "ui-bar__end-NNQve", Q = {
|
|
905
|
+
bar: yn,
|
|
906
|
+
bar__brand: gn,
|
|
907
|
+
bar__start: kn,
|
|
908
|
+
bar__end: wn
|
|
909
|
+
}, De = "--ui-header-height", vn = ({ brand: e, start: s, end: t, className: i, testId: r }) => {
|
|
910
|
+
const o = L(null);
|
|
911
|
+
return U(() => {
|
|
912
|
+
const n = o.current;
|
|
913
|
+
if (!n || typeof ResizeObserver > "u") return;
|
|
914
|
+
const l = document.documentElement, c = new ResizeObserver(
|
|
915
|
+
([_]) => {
|
|
916
|
+
var d, u;
|
|
917
|
+
return l.style.setProperty(
|
|
918
|
+
De,
|
|
919
|
+
`${Math.round(((u = (d = _.borderBoxSize) == null ? void 0 : d[0]) == null ? void 0 : u.blockSize) ?? n.offsetHeight)}px`
|
|
920
|
+
);
|
|
921
|
+
}
|
|
922
|
+
);
|
|
923
|
+
return c.observe(n), () => {
|
|
924
|
+
c.disconnect(), l.style.removeProperty(De);
|
|
925
|
+
};
|
|
926
|
+
}, []), /* @__PURE__ */ p("header", { ref: o, className: m(Q.bar, i), "data-testid": r, children: [
|
|
927
|
+
/* @__PURE__ */ a("div", { className: Q.bar__brand, children: e }),
|
|
928
|
+
s !== void 0 && /* @__PURE__ */ a("div", { className: Q.bar__start, children: s }),
|
|
929
|
+
t !== void 0 && /* @__PURE__ */ a("div", { className: Q.bar__end, children: t })
|
|
930
|
+
] });
|
|
931
|
+
}, da = /* @__PURE__ */ g(/* @__PURE__ */ k(vn, "AppBar")), Nn = "ui-list-e54gu", Sn = "ui-list__window-ESrZX", xn = "ui-list__slot-DxSnX", An = "ui-item-DKEGh", Tn = "ui-item__start-Yb3xf", Cn = "ui-item__body-kD4Qk", En = "ui-item__end-3SCT-", S = {
|
|
932
|
+
list: Nn,
|
|
933
|
+
"list--virtual": "ui-list--virtual-zxqy5",
|
|
934
|
+
list__window: Sn,
|
|
935
|
+
list__slot: xn,
|
|
936
|
+
item: An,
|
|
937
|
+
"item--selected": "ui-item--selected-AMl3I",
|
|
938
|
+
"item--muted": "ui-item--muted-XBeA3",
|
|
939
|
+
item__start: Tn,
|
|
940
|
+
item__body: Cn,
|
|
941
|
+
item__end: En
|
|
942
|
+
}, Me = 6, $n = ({
|
|
943
|
+
label: e,
|
|
944
|
+
children: s,
|
|
945
|
+
rowHeight: t,
|
|
946
|
+
maxHeight: i = 320,
|
|
947
|
+
className: r,
|
|
948
|
+
testId: o
|
|
949
|
+
}) => {
|
|
950
|
+
const n = Je.toArray(s).filter(Qe), [l, c] = ce(0);
|
|
951
|
+
if (!t)
|
|
952
|
+
return /* @__PURE__ */ a("ul", { className: m(S.list, r), "aria-label": e, "data-testid": o, children: n });
|
|
953
|
+
const _ = Math.max(0, Math.floor(l / t) - Me), d = Math.min(n.length, Math.ceil((l + i) / t) + Me);
|
|
954
|
+
return /* @__PURE__ */ a(
|
|
955
|
+
"div",
|
|
956
|
+
{
|
|
957
|
+
className: m(S.list, S["list--virtual"], r),
|
|
958
|
+
style: { maxBlockSize: i, "--ui-row-height": `${t}px` },
|
|
959
|
+
onScroll: (u) => c(u.currentTarget.scrollTop),
|
|
960
|
+
"data-testid": o,
|
|
961
|
+
children: /* @__PURE__ */ a(
|
|
962
|
+
"ul",
|
|
963
|
+
{
|
|
964
|
+
"aria-label": e,
|
|
965
|
+
className: S.list__window,
|
|
966
|
+
style: {
|
|
967
|
+
blockSize: n.length * t,
|
|
968
|
+
paddingBlockStart: _ * t
|
|
969
|
+
},
|
|
970
|
+
children: n.slice(_, d).map(
|
|
971
|
+
(u, f) => Ve(u, {
|
|
972
|
+
"aria-posinset": _ + f + 1,
|
|
973
|
+
"aria-setsize": n.length
|
|
974
|
+
})
|
|
975
|
+
)
|
|
976
|
+
}
|
|
977
|
+
)
|
|
978
|
+
}
|
|
979
|
+
);
|
|
980
|
+
}, _a = ({
|
|
981
|
+
children: e,
|
|
982
|
+
start: s,
|
|
983
|
+
end: t,
|
|
984
|
+
onClick: i,
|
|
985
|
+
href: r,
|
|
986
|
+
isSelected: o,
|
|
987
|
+
isMuted: n,
|
|
988
|
+
testId: l,
|
|
989
|
+
"aria-posinset": c,
|
|
990
|
+
"aria-setsize": _
|
|
991
|
+
}) => {
|
|
992
|
+
const { linkComponent: d } = C(), u = m(
|
|
993
|
+
S.item,
|
|
994
|
+
o && S["item--selected"],
|
|
995
|
+
n && S["item--muted"]
|
|
996
|
+
), f = /* @__PURE__ */ p(Ye, { children: [
|
|
997
|
+
s !== void 0 && /* @__PURE__ */ a("span", { className: S.item__start, children: s }),
|
|
998
|
+
/* @__PURE__ */ a("span", { className: S.item__body, children: e }),
|
|
999
|
+
t !== void 0 && /* @__PURE__ */ a("span", { className: S.item__end, children: t })
|
|
1000
|
+
] }), b = d ?? "a";
|
|
1001
|
+
return /* @__PURE__ */ a("li", { className: S.list__slot, "aria-posinset": c, "aria-setsize": _, children: r ? /* @__PURE__ */ a(b, { href: r, className: u, "data-testid": l, children: f }) : /* @__PURE__ */ a(
|
|
1002
|
+
"button",
|
|
1003
|
+
{
|
|
1004
|
+
type: "button",
|
|
1005
|
+
className: u,
|
|
1006
|
+
onClick: i,
|
|
1007
|
+
"aria-pressed": o,
|
|
1008
|
+
"data-testid": l,
|
|
1009
|
+
children: f
|
|
1010
|
+
}
|
|
1011
|
+
) });
|
|
1012
|
+
}, ua = /* @__PURE__ */ g(
|
|
1013
|
+
/* @__PURE__ */ k($n, "ActionList")
|
|
1014
|
+
), Rn = "ui-bar-OZjXz", On = "ui-bar__segment-hexbp", Ln = "ui-bar__marker-E0FeF", V = {
|
|
1015
|
+
bar: Rn,
|
|
1016
|
+
bar__segment: On,
|
|
1017
|
+
bar__marker: Ln,
|
|
1018
|
+
"bar__marker--danger": "ui-bar__marker--danger-245FK"
|
|
1019
|
+
}, ee = (e, s) => s <= 0 ? 0 : Math.min(100, Math.max(0, e / s * 100)), zn = (e) => e === "muted" ? "var(--ui-text-3)" : `var(--ui-${e})`, In = ({ label: e, max: s, segments: t, markers: i = [], className: r, testId: o }) => {
|
|
1020
|
+
const n = [
|
|
1021
|
+
...t.map((c) => c.label),
|
|
1022
|
+
...i.map((c) => c.label)
|
|
1023
|
+
];
|
|
1024
|
+
let l = 0;
|
|
1025
|
+
return /* @__PURE__ */ p(
|
|
1026
|
+
"div",
|
|
1027
|
+
{
|
|
1028
|
+
role: "img",
|
|
1029
|
+
"aria-label": `${e}: ${n.join(", ")}`,
|
|
1030
|
+
className: m(V.bar, r),
|
|
1031
|
+
"data-testid": o,
|
|
1032
|
+
children: [
|
|
1033
|
+
t.map((c) => {
|
|
1034
|
+
const _ = c.from ?? l, d = c.to ?? _ + (c.value ?? 0);
|
|
1035
|
+
return l = d, /* @__PURE__ */ a(
|
|
1036
|
+
"span",
|
|
1037
|
+
{
|
|
1038
|
+
className: V.bar__segment,
|
|
1039
|
+
title: c.label,
|
|
1040
|
+
style: {
|
|
1041
|
+
insetInlineStart: `${ee(_, s)}%`,
|
|
1042
|
+
inlineSize: `${ee(d, s) - ee(_, s)}%`,
|
|
1043
|
+
backgroundColor: zn(c.tone)
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
c.id
|
|
1047
|
+
);
|
|
1048
|
+
}),
|
|
1049
|
+
i.map((c) => /* @__PURE__ */ a(
|
|
1050
|
+
"span",
|
|
1051
|
+
{
|
|
1052
|
+
className: m(
|
|
1053
|
+
V.bar__marker,
|
|
1054
|
+
c.tone === "danger" && V["bar__marker--danger"]
|
|
1055
|
+
),
|
|
1056
|
+
title: c.label,
|
|
1057
|
+
style: { insetInlineStart: `${ee(c.at, s)}%` }
|
|
1058
|
+
},
|
|
1059
|
+
c.id
|
|
1060
|
+
))
|
|
1061
|
+
]
|
|
1062
|
+
}
|
|
1063
|
+
);
|
|
1064
|
+
}, ma = /* @__PURE__ */ g(
|
|
1065
|
+
/* @__PURE__ */ k(In, "SegmentBar")
|
|
1066
|
+
), Dn = "ui-legend-zryov", Mn = "ui-legend__item-GGrR-", Pn = "ui-legend__swatch-2MkAR", oe = {
|
|
1067
|
+
legend: Dn,
|
|
1068
|
+
legend__item: Mn,
|
|
1069
|
+
legend__swatch: Pn
|
|
1070
|
+
}, Kn = (e) => e === "muted" ? "var(--ui-text-3)" : `var(--ui-${e})`, Bn = ({ items: e, className: s, testId: t }) => /* @__PURE__ */ a("ul", { className: m(oe.legend, s), "data-testid": t, children: e.map((i) => /* @__PURE__ */ p("li", { className: oe.legend__item, children: [
|
|
1071
|
+
/* @__PURE__ */ a(
|
|
1072
|
+
"span",
|
|
1073
|
+
{
|
|
1074
|
+
"aria-hidden": !0,
|
|
1075
|
+
className: oe.legend__swatch,
|
|
1076
|
+
style: { backgroundColor: Kn(i.tone) }
|
|
1077
|
+
}
|
|
1078
|
+
),
|
|
1079
|
+
i.label
|
|
1080
|
+
] }, i.id)) }), pa = /* @__PURE__ */ g(/* @__PURE__ */ k(Bn, "Legend")), Fn = "ui-list-KSLu5", jn = "ui-list__row-k7aHp", Zn = "ui-list__term-vsD5B", Un = "ui-list__value-6GY6z", Z = {
|
|
1081
|
+
list: Fn,
|
|
1082
|
+
list__row: jn,
|
|
1083
|
+
list__term: Zn,
|
|
1084
|
+
list__value: Un,
|
|
1085
|
+
"list__value--technical": "ui-list__value--technical-I-UYE"
|
|
1086
|
+
}, Gn = ({ items: e, className: s, testId: t }) => /* @__PURE__ */ a("dl", { className: m(Z.list, s), "data-testid": t, children: e.map((i, r) => /* @__PURE__ */ p("div", { className: Z.list__row, children: [
|
|
1087
|
+
/* @__PURE__ */ a("dt", { className: Z.list__term, children: i.term }),
|
|
1088
|
+
/* @__PURE__ */ a(
|
|
1089
|
+
"dd",
|
|
1090
|
+
{
|
|
1091
|
+
className: m(Z.list__value, i.isTechnical && Z["list__value--technical"]),
|
|
1092
|
+
children: i.description
|
|
1093
|
+
}
|
|
1094
|
+
)
|
|
1095
|
+
] }, r)) }), ha = /* @__PURE__ */ g(
|
|
1096
|
+
/* @__PURE__ */ k(Gn, "DescriptionList")
|
|
1097
|
+
);
|
|
1098
|
+
export {
|
|
1099
|
+
ua as ActionList,
|
|
1100
|
+
_a as ActionListItem,
|
|
1101
|
+
da as AppBar,
|
|
1102
|
+
Jn as ChatMessage,
|
|
1103
|
+
Xn as ChatThread,
|
|
1104
|
+
ca as Citation,
|
|
1105
|
+
ta as CodeBlock,
|
|
1106
|
+
ha as DescriptionList,
|
|
1107
|
+
pa as Legend,
|
|
1108
|
+
la as MessageActions,
|
|
1109
|
+
Qn as PromptInput,
|
|
1110
|
+
Vn as PromptSuggestions,
|
|
1111
|
+
ea as Prose,
|
|
1112
|
+
sa as ReasoningBlock,
|
|
1113
|
+
na as ReasoningText,
|
|
1114
|
+
ma as SegmentBar,
|
|
1115
|
+
oa as SourceList,
|
|
1116
|
+
ra as TerminalOutput,
|
|
1117
|
+
ia as ToolCall,
|
|
1118
|
+
aa as ToolCallSection
|
|
1119
|
+
};
|
|
1120
|
+
//# sourceMappingURL=chat.js.map
|