@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,36 @@
|
|
|
1
|
+
import { type ValueFormat } from '../core/format';
|
|
2
|
+
import { type ChartTone } from '../core/palette';
|
|
3
|
+
export type PieSlice = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
tone?: ChartTone;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
label: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
data: readonly PieSlice[];
|
|
13
|
+
/** `donut` ortası boş halka; ortaya `centerLabel` / `centerValue` yazılır. */
|
|
14
|
+
variant?: 'pie' | 'donut';
|
|
15
|
+
/** Halkanın ortasındaki büyük değer (toplam); verilmezse görünür dilimlerin toplamı. */
|
|
16
|
+
centerValue?: string;
|
|
17
|
+
/** Halkanın ortasındaki küçük yazı ("Toplam"). */
|
|
18
|
+
centerLabel?: string;
|
|
19
|
+
/** Değerin adı (tablo sütunu). */
|
|
20
|
+
valueLabel: string;
|
|
21
|
+
height?: number;
|
|
22
|
+
width?: number;
|
|
23
|
+
formatValue?: ValueFormat;
|
|
24
|
+
className?: string;
|
|
25
|
+
testId?: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Pasta / halka grafiği — bir bütünün parçaları. Dilim sırası verinin sırası (saat 12'den, saat
|
|
29
|
+
* yönünde). Sıfır ve eksi değer dilim açmaz (bütünün parçası olamaz); tabloda görünür.
|
|
30
|
+
* ⚠ Altıdan çok dilim okunmaz — kategorik palet altı tonda döner; uzun kuyruğu "Diğer"de toplayın.
|
|
31
|
+
*
|
|
32
|
+
* Klavye: `←`/`→` önceki/sonraki dilim · `Home`/`End` · `Escape`.
|
|
33
|
+
*/
|
|
34
|
+
declare const PieChart: ({ label, description, data, variant, centerValue, centerLabel, valueLabel, height, width: fixedWidth, formatValue, className, testId, }: Props) => import("react").JSX.Element;
|
|
35
|
+
declare const _default: typeof PieChart;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type ValueFormat } from '../core/format';
|
|
2
|
+
import { type ChartTone } from '../core/palette';
|
|
3
|
+
export type RadarAxis = {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export type RadarSeries = {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
/** Eksen anahtarı → değer. Eksik ya da `null` değer merkezde çizilir, ipucunda "—" okunur. */
|
|
11
|
+
values: Readonly<Record<string, number | null | undefined>>;
|
|
12
|
+
tone?: ChartTone;
|
|
13
|
+
};
|
|
14
|
+
type Props = {
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
/** Saat 12'den saat yönünde dizilen eksenler. ⚠ Üçten az eksen bir alan çizmez. */
|
|
18
|
+
axes: readonly RadarAxis[];
|
|
19
|
+
series: readonly RadarSeries[];
|
|
20
|
+
/**
|
|
21
|
+
* Ortak ölçeğin üst ucu. Verilmezse en büyük değerden "güzel" bir sayıya yuvarlanır.
|
|
22
|
+
* ⚠ Bütün eksenler AYNI ölçeği paylaşır: birimleri farklı eksenleri önce normalleştirin (0-100).
|
|
23
|
+
*/
|
|
24
|
+
max?: number;
|
|
25
|
+
height?: number;
|
|
26
|
+
width?: number;
|
|
27
|
+
formatValue?: ValueFormat;
|
|
28
|
+
className?: string;
|
|
29
|
+
testId?: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Radar (örümcek) grafiği — birkaç serinin aynı eksen takımında karşılaştırılması. Izgara
|
|
33
|
+
* ÇOKGEN (çember değil): değer eksen üzerinde okunur, eksenler arası eğri bir değer vaat etmez.
|
|
34
|
+
*
|
|
35
|
+
* Etkileşim EKSEN başınadır: işaretçi en yakın ekseni seçer ve ipucu o eksendeki bütün serileri
|
|
36
|
+
* okur. Klavye: `←`/`→` önceki/sonraki eksen · `Home`/`End` · `Escape`.
|
|
37
|
+
*/
|
|
38
|
+
declare const RadarChart: ({ label, description, axes, series, max, height, width: fixedWidth, formatValue, className, testId, }: Props) => import("react").JSX.Element;
|
|
39
|
+
declare const _default: typeof RadarChart;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ValueFormat } from '../core/format';
|
|
2
|
+
import { type ChartTone } from '../core/palette';
|
|
3
|
+
export type ScatterPoint = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
/** Balon grafiği: noktanın büyüklüğü (alanla orantılı). */
|
|
7
|
+
size?: number;
|
|
8
|
+
/** Noktanın adı (ipucu ve tablo). */
|
|
9
|
+
label?: string;
|
|
10
|
+
};
|
|
11
|
+
export type ScatterSeries = {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
tone?: ChartTone;
|
|
15
|
+
data: readonly ScatterPoint[];
|
|
16
|
+
};
|
|
17
|
+
type Props = {
|
|
18
|
+
label: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
series: readonly ScatterSeries[];
|
|
21
|
+
/** Eksen ve tablo başlıkları. */
|
|
22
|
+
xLabel: string;
|
|
23
|
+
yLabel: string;
|
|
24
|
+
/** Balon grafiğinde büyüklüğün adı ("Nüfus"); verilmezse ipucunda büyüklük satırı yok. */
|
|
25
|
+
sizeLabel?: string;
|
|
26
|
+
height?: number;
|
|
27
|
+
width?: number;
|
|
28
|
+
formatX?: ValueFormat;
|
|
29
|
+
formatY?: ValueFormat;
|
|
30
|
+
className?: string;
|
|
31
|
+
testId?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Saçılım grafiği — iki sayısal değişkenin ilişkisi; `size` ile balon grafiği.
|
|
35
|
+
* İsabet: mekânsal kova (her harekette tüm noktalar taranmaz). Klavye noktaları x sırasıyla gezer.
|
|
36
|
+
*
|
|
37
|
+
* Klavye: `←`/`→` önceki/sonraki nokta · `Home`/`End` · `Escape`.
|
|
38
|
+
*/
|
|
39
|
+
declare const ScatterPlot: ({ label, description, series, xLabel, yLabel, sizeLabel, height, width: fixedWidth, formatX, formatY, className, testId, }: Props) => import("react").JSX.Element;
|
|
40
|
+
declare const _default: typeof ScatterPlot;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type CartesianSeries, type Orientation } from './cartesian';
|
|
2
|
+
import { type ValueFormat } from './format';
|
|
3
|
+
import type { Curve } from './path';
|
|
4
|
+
/** Veri satırı — x alanı ve seri alanları; eksik değer `null`. */
|
|
5
|
+
export type ChartRow = Record<string, string | number | null | undefined>;
|
|
6
|
+
export type CartesianChartProps = {
|
|
7
|
+
/** Grafiğin okunan adı. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Okunan ek açıklama — eğilimi bir cümleyle söyler. */
|
|
10
|
+
description?: string;
|
|
11
|
+
data: readonly ChartRow[];
|
|
12
|
+
/** Satırdaki x alanının adı. */
|
|
13
|
+
xKey: string;
|
|
14
|
+
/** Veri tablosunun ilk sütun başlığı; verilmezse `xKey`. */
|
|
15
|
+
xLabel?: string;
|
|
16
|
+
series: readonly (CartesianSeries & {
|
|
17
|
+
format?: ValueFormat;
|
|
18
|
+
})[];
|
|
19
|
+
/** Yükseklik (px). Genişlik kapsayıcıdan ölçülür. */
|
|
20
|
+
height?: number;
|
|
21
|
+
/** Sabit genişlik (px) — ölçüm yapılmaz. */
|
|
22
|
+
width?: number;
|
|
23
|
+
isStacked?: boolean;
|
|
24
|
+
orientation?: Orientation;
|
|
25
|
+
curve?: Curve;
|
|
26
|
+
/** Çizgi üzerinde her veri noktası. Çok noktalı seride kapalı tutun. */
|
|
27
|
+
hasPoints?: boolean;
|
|
28
|
+
/** x değerinin yazısı (eksen, ipucu, tablo). */
|
|
29
|
+
formatX?: (value: string | number) => string;
|
|
30
|
+
/** Değerin yazısı (ipucu, tablo); seri kendi `format`ını verebilir. Eksen kısa gösterimde. */
|
|
31
|
+
formatValue?: ValueFormat;
|
|
32
|
+
/** Sol değer ekseninin sabit uçları. */
|
|
33
|
+
domain?: readonly [number | undefined, number | undefined];
|
|
34
|
+
className?: string;
|
|
35
|
+
testId?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Kartezyen grafik — Çizgi, Alan, Çubuk ve Bileşik grafiğin ortak gövdesi. Dışa `LineChart`,
|
|
39
|
+
* `AreaChart`, `BarChart`, `ComposedChart` olarak verilir.
|
|
40
|
+
*/
|
|
41
|
+
declare const CartesianChart: ({ label, description, data, xKey, xLabel, series, height, width: fixedWidth, isStacked, orientation, curve, hasPoints, formatX, formatValue, domain, className, testId, }: CartesianChartProps) => import("react").JSX.Element;
|
|
42
|
+
declare const _default: typeof CartesianChart;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import type { ChartTable, LegendEntry, TooltipContent } from './types';
|
|
3
|
+
export type ChartFrameProps = {
|
|
4
|
+
/** Grafiğin okunan adı. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Okunan ek açıklama — eğilimi bir cümleyle söyler ("Ekimde %12 artış"). */
|
|
7
|
+
description?: string;
|
|
8
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
/** Ağır çizim — BELLEĞE ALINMIŞ öğe; üzerine gelindiğinde yeniden çizilmez. */
|
|
12
|
+
plot: ReactNode;
|
|
13
|
+
/** Etkin öğenin vurgusu (kılavuz çizgi, halka, nokta) — çizimin ÜSTÜNDE. */
|
|
14
|
+
overlay: (active: number) => ReactNode;
|
|
15
|
+
/** Çizimin ALTINDAKİ vurgu (çubuk bandının zemini): üstte olsaydı çubuğun rengini değiştirirdi. */
|
|
16
|
+
underlay?: (active: number) => ReactNode;
|
|
17
|
+
/** Klavye ve işaretçiyle gezilen öğe sayısı. */
|
|
18
|
+
itemCount: number;
|
|
19
|
+
/** Izgarada gezinme (ısı haritası): satır uzunluğu. Verilirse ↑/↓ satır atlar. */
|
|
20
|
+
columns?: number;
|
|
21
|
+
/** İşaretçi → öğe; isabet yoksa `null`. Koordinatlar çizim kutusuna göre. */
|
|
22
|
+
pick: (x: number, y: number) => number | null;
|
|
23
|
+
tooltip: (index: number) => TooltipContent;
|
|
24
|
+
/** İpucunun bağlandığı nokta. */
|
|
25
|
+
anchor: (index: number) => {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* İpucunun noktanın hangi yanında açılacağı. `inward` (kartezyen): merkeze bakan yan — kenardaki
|
|
31
|
+
* nokta ipucunu kutunun dışına itmez. `outward` (pasta, radar): merkezden uzak yan — içeride
|
|
32
|
+
* çizimin kendisini (halkanın ortasındaki toplamı) örtüyordu. `inward` sığmayınca öteki yana
|
|
33
|
+
* çevrilir, `outward` kutunun kenarına kırpılır.
|
|
34
|
+
*/
|
|
35
|
+
tooltipSide?: 'inward' | 'outward';
|
|
36
|
+
/** Klavyeyle gelinen öğenin okunan özeti. */
|
|
37
|
+
announce: (index: number) => string;
|
|
38
|
+
table: ChartTable;
|
|
39
|
+
legend?: {
|
|
40
|
+
entries: LegendEntry[];
|
|
41
|
+
hidden: ReadonlySet<string>;
|
|
42
|
+
onToggle: (id: string) => void;
|
|
43
|
+
};
|
|
44
|
+
className?: string;
|
|
45
|
+
testId?: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Grafik çerçevesi — ölçüm kutusu, SVG, ipucu, lejant ve gizli veri tablosu.
|
|
49
|
+
*
|
|
50
|
+
* Klavye (grafik tek bir sekme durağı): `→`/`↓` sonraki öğe · `←`/`↑` önceki öğe (ızgarada `↑`/`↓`
|
|
51
|
+
* satır) · `Home`/`End` ilk/son · `Escape` vurguyu kaldırır. Gelinen öğe duyurulur.
|
|
52
|
+
* İşaretçi: tek bir dinleyici, kare başına bir isabet hesabı (`requestAnimationFrame`).
|
|
53
|
+
*/
|
|
54
|
+
declare const ChartFrame: ({ label, description, containerRef, width, height, plot, overlay, underlay, itemCount, columns, pick, tooltip, anchor, tooltipSide, announce, table, legend, className, testId, }: ChartFrameProps) => import("react").JSX.Element;
|
|
55
|
+
export default ChartFrame;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { TickFormat } from './format';
|
|
2
|
+
import type { PlotArea } from './types';
|
|
3
|
+
export type Tick = {
|
|
4
|
+
/** Eksen boyunca konum (px). */
|
|
5
|
+
position: number;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
/** Bölme değerlerini konumlu bölmelere çevirir. Yazılar LİSTE olarak biçimlenir — basamak tüm bölmelerden. */
|
|
9
|
+
export declare const placeTicks: (values: readonly number[], scale: (value: number) => number, format: TickFormat) => Tick[];
|
|
10
|
+
/** Bir karakterin yaklaşık genişliği (px) — 11 px eksen yazısında ölçülmüş ortalama. */
|
|
11
|
+
export declare const CHAR_WIDTH = 6.4;
|
|
12
|
+
/** Etiketin kaplayacağı yaklaşık genişlik. Ölçüm (DOM) yerine tahmin: sunucuda da çalışır. */
|
|
13
|
+
export declare const labelWidth: (label: string) => number;
|
|
14
|
+
/**
|
|
15
|
+
* Üst üste binecek etiketleri SEYRELTİR: her `k`. etiket kalır. Bölme çizgisi ve veri yerinde;
|
|
16
|
+
* yalnızca yazı atlanır.
|
|
17
|
+
*/
|
|
18
|
+
export declare const thinTicks: (ticks: readonly Tick[], minGap?: number) => Tick[];
|
|
19
|
+
/** Metni yaklaşık genişliğe sığdırır (yatay çubuk grafiğinin kategori etiketleri). */
|
|
20
|
+
export declare const fitLabel: (label: string, width: number) => string;
|
|
21
|
+
type ValueAxisProps = {
|
|
22
|
+
area: PlotArea;
|
|
23
|
+
ticks: readonly Tick[];
|
|
24
|
+
side: 'left' | 'right' | 'bottom';
|
|
25
|
+
/** Izgara çizgileri — yalnızca bir eksen çizer (sol ya da alt), iki ızgara üst üste binmesin. */
|
|
26
|
+
hasGrid?: boolean;
|
|
27
|
+
};
|
|
28
|
+
/** Değer ekseni: bölme yazıları + ızgara. Eksen ÇİZGİSİ yok — ızgara yeter, mürekkep tasarrufu. */
|
|
29
|
+
export declare const ValueAxis: ({ area, ticks, side, hasGrid }: ValueAxisProps) => import("react").JSX.Element;
|
|
30
|
+
type CategoryAxisProps = {
|
|
31
|
+
area: PlotArea;
|
|
32
|
+
ticks: readonly Tick[];
|
|
33
|
+
side: 'bottom' | 'left';
|
|
34
|
+
};
|
|
35
|
+
/** Kategori ekseni: taban çizgisi + yazılar (seyreltilmiş). */
|
|
36
|
+
export declare const CategoryAxis: ({ area, ticks, side }: CategoryAxisProps) => import("react").JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/** KARTEZYEN GEOMETRİ — Çizgi, Alan, Çubuk ve Bileşik grafiğin ortak, saf (DOM'suz) motoru. */
|
|
2
|
+
import { type Tick } from './axes';
|
|
3
|
+
import type { TickFormat } from './format';
|
|
4
|
+
import { type ChartTone } from './palette';
|
|
5
|
+
import { type Curve, type MaybePoint } from './path';
|
|
6
|
+
import type { PlotArea } from './types';
|
|
7
|
+
export type CartesianSeriesType = 'line' | 'area' | 'bar';
|
|
8
|
+
export type CartesianSeries = {
|
|
9
|
+
/** Satırdaki alanın adı. */
|
|
10
|
+
key: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: CartesianSeriesType;
|
|
13
|
+
tone?: ChartTone;
|
|
14
|
+
/** İkinci değer ekseni (sağ) — farklı birimdeki seri. */
|
|
15
|
+
axis?: 'left' | 'right';
|
|
16
|
+
};
|
|
17
|
+
export type Orientation = 'vertical' | 'horizontal';
|
|
18
|
+
export type CartesianInput = {
|
|
19
|
+
rows: readonly Record<string, unknown>[];
|
|
20
|
+
xKey: string;
|
|
21
|
+
/** Yalnızca GÖRÜNÜR seriler, tonları çözülmüş. */
|
|
22
|
+
series: readonly (CartesianSeries & {
|
|
23
|
+
tone: ChartTone;
|
|
24
|
+
})[];
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
isStacked: boolean;
|
|
28
|
+
orientation: Orientation;
|
|
29
|
+
curve: Curve;
|
|
30
|
+
formatX: (value: unknown) => string;
|
|
31
|
+
/** Değer ekseni bölmeleri — basamak listeden çıktığı için LİSTE alır. */
|
|
32
|
+
formatLeft: TickFormat;
|
|
33
|
+
formatRight: TickFormat;
|
|
34
|
+
/** Değer ekseninin sabit uçları; verilmeyen uç veriden. */
|
|
35
|
+
domain?: readonly [number | undefined, number | undefined];
|
|
36
|
+
};
|
|
37
|
+
export type BarShape = {
|
|
38
|
+
key: string;
|
|
39
|
+
index: number;
|
|
40
|
+
tone: ChartTone;
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
};
|
|
46
|
+
export type CartesianGeometry = {
|
|
47
|
+
area: PlotArea;
|
|
48
|
+
/** Kategori ekseni boyunca her satırın merkezi (px). */
|
|
49
|
+
centers: number[];
|
|
50
|
+
/** Kategori bandının genişliği; sürekli eksende 0. */
|
|
51
|
+
bandwidth: number;
|
|
52
|
+
isContinuous: boolean;
|
|
53
|
+
categoryTicks: Tick[];
|
|
54
|
+
leftTicks: Tick[];
|
|
55
|
+
rightTicks: Tick[];
|
|
56
|
+
hasRightAxis: boolean;
|
|
57
|
+
lines: {
|
|
58
|
+
key: string;
|
|
59
|
+
tone: ChartTone;
|
|
60
|
+
d: string;
|
|
61
|
+
}[];
|
|
62
|
+
areas: {
|
|
63
|
+
key: string;
|
|
64
|
+
tone: ChartTone;
|
|
65
|
+
d: string;
|
|
66
|
+
}[];
|
|
67
|
+
bars: BarShape[];
|
|
68
|
+
/** Seri → dizin → çizgi/alan noktası (vurgu halkası için). */
|
|
69
|
+
points: Record<string, MaybePoint[]>;
|
|
70
|
+
/** Dizin → ipucunun bağlanacağı en üst değer noktası. */
|
|
71
|
+
anchors: {
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
}[];
|
|
75
|
+
/** Sol değer ekseninde SIFIRIN konumu — yalnızca tanım aralığı eksiye indiğinde (yoksa `null`). */
|
|
76
|
+
zero: number | null;
|
|
77
|
+
};
|
|
78
|
+
/** Sayıya çevirir; sonlu olmayan değer `null` (eksik veri). */
|
|
79
|
+
export declare const toNumber: (value: unknown) => number | null;
|
|
80
|
+
export declare const cartesianGeometry: (input: CartesianInput) => CartesianGeometry;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** SAYI BİÇİMİ — eksen ve ipucu metni. Dil `labels.locale`ten, verilmezse tarayıcının dili. */
|
|
2
|
+
export type ValueFormat = (value: number) => string;
|
|
3
|
+
/** Eksen bölmelerinin yazısı — tek değerden değil LİSTEDEN: gereken basamak bölmelerin hepsinden çıkar. */
|
|
4
|
+
export type TickFormat = (values: readonly number[]) => string[];
|
|
5
|
+
/**
|
|
6
|
+
* Eksen bölmeleri: KISA gösterim ("12 B", "1,2 Mn"). Uzun bir sayı dar bir eksende üst üste biniyor;
|
|
7
|
+
* tam değer ipucunda ve veri tablosunda okunur.
|
|
8
|
+
*
|
|
9
|
+
* Basamak sayısı bölmelerin HEPSİNİ tam yazan en az basamak: en küçük anlamlı basamağı en ince olan
|
|
10
|
+
* bölme belirler, her bölme o basamağa kadar yazılır. 0,005 adımlı eksen "0 · 0,005 · 0,01 · 0,015",
|
|
11
|
+
* 50 adımlı "12 B · 12,05 B · 12,1 B".
|
|
12
|
+
*
|
|
13
|
+
* ⚠ Eskiden sabit "en çok bir ondalık" yazıyordu ve adımı 0,1'in altında kalan HER eksen sıfıra
|
|
14
|
+
* çöküyordu: 0,001-0,014 USD'lik maliyet grafiği "0 · 0 · 0 · 0" okunuyordu (ölçüldü: tüketicide).
|
|
15
|
+
* Kısa gösterimde de aynı hata vardı — 12 050 ile 12 100 ikisi de "12,1 B".
|
|
16
|
+
*/
|
|
17
|
+
export declare const tickLabels: (locale?: string) => TickFormat;
|
|
18
|
+
/** İpucu ve tablo: tam değer, en çok iki ondalık. */
|
|
19
|
+
export declare const fullNumber: (locale?: string) => ValueFormat;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PlotArea } from './types';
|
|
2
|
+
/** Çizim alanı — sol kenar en uzun sol bölme yazısı kadar, alt kenar x yazıları için. */
|
|
3
|
+
export declare const plotArea: (width: number, height: number, leftLabels: readonly string[], { top, right, bottom }?: {
|
|
4
|
+
top?: number | undefined;
|
|
5
|
+
right?: number | undefined;
|
|
6
|
+
bottom?: number | undefined;
|
|
7
|
+
}) => PlotArea;
|
|
8
|
+
/** Eksen başına bölme sayısı: yatayda ~90 px, dikeyde ~48 px'te bir. */
|
|
9
|
+
export declare const tickCount: (length: number, horizontal: boolean) => number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SERİ RENKLERİ — ui kategorik paleti (`cat-1…5`, `series-2`). Her ton iki temanın üç
|
|
3
|
+
* yüzeyinde ≥3:1 (`check:contrast`) ve iki ton arasında ΔE ≥ 8 (palet üreteci).
|
|
4
|
+
* ⚠ Marka yeşilleri (çam, mint) seri rengi OLMAZ: yeşil eylemin rengi. `cat-3` orta aydınlıkta bir
|
|
5
|
+
* kategori yeşili.
|
|
6
|
+
*/
|
|
7
|
+
export type ChartTone = 'cat-1' | 'cat-2' | 'cat-3' | 'cat-4' | 'cat-5' | 'series-1' | 'series-2' | 'muted';
|
|
8
|
+
/** Sıra: ilk iki seri en uzak iki ton (mavi, kil) — iki serili grafik en sık durum. */
|
|
9
|
+
export declare const TONE_ORDER: readonly ChartTone[];
|
|
10
|
+
/** Verilmeyen tonu sıradan alır; altıdan fazla seride döner (lejant adı ayırt eder). */
|
|
11
|
+
export declare const toneAt: (index: number, tone?: ChartTone) => ChartTone;
|
|
12
|
+
/** CSS rengi — tema değişince yeniden çizim gerekmez, değişken çözülür. */
|
|
13
|
+
export declare const toneColor: (tone: ChartTone) => string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** SVG YOLLARI — dize üretimi; DOM'a dokunmaz, saf fonksiyon (test edilebilir, sunucuda çalışır). */
|
|
2
|
+
export type Point = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
/** `null` boşluk demektir: çizgi orada KESİLİR, sıfıra inmez (eksik veri ≠ sıfır). */
|
|
7
|
+
export type MaybePoint = Point | null;
|
|
8
|
+
export type Curve = 'linear' | 'monotone';
|
|
9
|
+
/** Çizgi yolu; `null` noktalarda kesilir. */
|
|
10
|
+
export declare const linePath: (points: readonly MaybePoint[], curve?: Curve) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Alan yolu: üst çizgi + taban çizgisi (yığılmış alanda bir alttaki serinin üstü). Her kesintisiz
|
|
13
|
+
* parça kendi kapalı şekli.
|
|
14
|
+
*/
|
|
15
|
+
export declare const areaPath: (top: readonly MaybePoint[], base: readonly MaybePoint[], curve?: Curve) => string;
|
|
16
|
+
/** Kutupsal → kartezyen; açı radyan, 0 = saat 12 yönü, saat yönünde artar. */
|
|
17
|
+
export declare const polar: (cx: number, cy: number, radius: number, angle: number) => Point;
|
|
18
|
+
/**
|
|
19
|
+
* Halka / pasta dilimi. `inner` 0 ise pasta. ⚠ Tam tur (2π) TEK bir yay olarak çizilemez (başlangıç
|
|
20
|
+
* ve bitiş aynı nokta, yay kaybolur); iki yarım yaya bölünür.
|
|
21
|
+
*/
|
|
22
|
+
export declare const arcPath: (cx: number, cy: number, outer: number, inner: number, start: number, end: number) => string;
|
|
23
|
+
/** Kapalı çokgen (radar). */
|
|
24
|
+
export declare const polygonPath: (points: readonly Point[]) => string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** ÖLÇEKLER — değer → piksel. Grafik kütüphanesi bağımlılığı yok; davranış testlerde sabit. */
|
|
2
|
+
export type LinearScale = {
|
|
3
|
+
(value: number): number;
|
|
4
|
+
domain: readonly [number, number];
|
|
5
|
+
range: readonly [number, number];
|
|
6
|
+
invert: (pixel: number) => number;
|
|
7
|
+
};
|
|
8
|
+
export type BandScale = {
|
|
9
|
+
/** Kategorinin bandının BAŞLANGICI (px). Bilinmeyen kategori `NaN`. */
|
|
10
|
+
(key: string): number;
|
|
11
|
+
domain: readonly string[];
|
|
12
|
+
range: readonly [number, number];
|
|
13
|
+
/** Bandın genişliği — çubuğun kalınlığı. */
|
|
14
|
+
bandwidth: number;
|
|
15
|
+
/** İki bant başlangıcı arası. */
|
|
16
|
+
step: number;
|
|
17
|
+
/** Piksele en yakın kategorinin dizini (`-1`: boş ölçek). */
|
|
18
|
+
indexAt: (pixel: number) => number;
|
|
19
|
+
};
|
|
20
|
+
/** Doğrusal ölçek. Sıfır genişlikli tanım aralığı aralığın ortasına eşlenir (bölme hatası yok). */
|
|
21
|
+
export declare const scaleLinear: (domain: readonly [number, number], range: readonly [number, number]) => LinearScale;
|
|
22
|
+
/**
|
|
23
|
+
* Kategorik (band) ölçek. `paddingInner` bantlar arası boşluğun adıma oranı, `paddingOuter` iki
|
|
24
|
+
* uçtaki boşluğun adıma oranı.
|
|
25
|
+
*/
|
|
26
|
+
export declare const scaleBand: (domain: readonly string[], range: readonly [number, number], { paddingInner, paddingOuter }?: {
|
|
27
|
+
paddingInner?: number | undefined;
|
|
28
|
+
paddingOuter?: number | undefined;
|
|
29
|
+
}) => BandScale;
|
|
30
|
+
/** 1-2-5 × 10ⁿ adımı — "güzel" eksen bölmesi. */
|
|
31
|
+
export declare const tickStep: (min: number, max: number, count: number) => number;
|
|
32
|
+
/**
|
|
33
|
+
* Tanım aralığını adımın katlarına genişletir — eksen "güzel" bir sayıda başlar ve biter.
|
|
34
|
+
* ⚠ Tek değerli (ya da boş) aralık genişletilir: 0 → [0, 1], 5 → [0, 8]; aksi hâlde ölçek çöker.
|
|
35
|
+
*/
|
|
36
|
+
export declare const niceDomain: (min: number, max: number, count?: number) => [number, number];
|
|
37
|
+
/** Aralığı kapsayan bölme değerleri; uçlar dahil. */
|
|
38
|
+
export declare const ticks: (min: number, max: number, count?: number) => number[];
|
|
39
|
+
/** Sıralı dizide değere en yakın öğenin dizini — işaretçi isabeti için ikili arama. */
|
|
40
|
+
export declare const nearestIndex: (sorted: readonly number[], value: number) => number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CartesianSeries } from './cartesian';
|
|
2
|
+
import type { ValueFormat } from './format';
|
|
3
|
+
/** Türü sarmalayıcının sabitlediği seri: Çizgi, Alan, Çubuk. */
|
|
4
|
+
export type ChartSeries = Omit<CartesianSeries, 'type'> & {
|
|
5
|
+
/** Bu serinin değer yazısı (ipucu, tablo) — birimi farklı seri. */
|
|
6
|
+
format?: ValueFormat;
|
|
7
|
+
};
|
|
8
|
+
/** Bileşik grafiğin serisi: türü seri başına. */
|
|
9
|
+
export type ComposedSeries = CartesianSeries & {
|
|
10
|
+
format?: ValueFormat;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MEKÂNSAL KOVA — işaretçiye en yakın noktayı her harekette TÜM noktaları taramadan bulur.
|
|
3
|
+
* Noktalar sabit boyutlu piksel hücrelerine dağıtılır; arama yalnızca komşu hücrelerde.
|
|
4
|
+
*/
|
|
5
|
+
export type SpatialIndex = {
|
|
6
|
+
/** `(x, y)`ye `radius` içindeki en yakın noktanın dizini; yoksa `null`. */
|
|
7
|
+
nearest: (x: number, y: number, radius: number) => number | null;
|
|
8
|
+
};
|
|
9
|
+
export declare const spatialIndex: (points: readonly {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}[], cell?: number) => SpatialIndex;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** İSTATİSTİK — kutu grafiği ve histogram. Sonlu olmayan değerler (`NaN`, `±Infinity`) atılır. */
|
|
2
|
+
export declare const finite: (values: readonly (number | null | undefined)[]) => number[];
|
|
3
|
+
/** `[en küçük, en büyük]`; boş girdide `[0, 0]`. Dizi YAYILMAZ: büyük veride çağrı yığını taşmaz. */
|
|
4
|
+
export declare const extent: (values: readonly number[]) => [number, number];
|
|
5
|
+
/** Sıralı dizide çeyreklik — doğrusal ara değer (R tip 7 / Excel / NumPy varsayılanı). */
|
|
6
|
+
export declare const quantile: (sorted: readonly number[], probability: number) => number;
|
|
7
|
+
export type BoxStats = {
|
|
8
|
+
count: number;
|
|
9
|
+
min: number;
|
|
10
|
+
q1: number;
|
|
11
|
+
median: number;
|
|
12
|
+
q3: number;
|
|
13
|
+
max: number;
|
|
14
|
+
/** Bıyıkların ucu: 1,5 × IQR içindeki en uç GÖZLEM (Tukey). */
|
|
15
|
+
whiskerLow: number;
|
|
16
|
+
whiskerHigh: number;
|
|
17
|
+
/** Bıyık dışında kalan gözlemler. */
|
|
18
|
+
outliers: number[];
|
|
19
|
+
};
|
|
20
|
+
/** Beş sayı özeti + Tukey bıyıkları. Boş girdide `null`. */
|
|
21
|
+
export declare const boxStats: (values: readonly number[]) => BoxStats | null;
|
|
22
|
+
export type Bin = {
|
|
23
|
+
/** Dahil alt sınır. */
|
|
24
|
+
from: number;
|
|
25
|
+
/** Hariç üst sınır — SON bölme dahil. */
|
|
26
|
+
to: number;
|
|
27
|
+
count: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Histogram bölmeleri. Bölme sayısı verilmezse Sturges (`⌈log₂ n⌉ + 1`); sınırlar "güzel" bir adıma
|
|
31
|
+
* oturur, yani bölmeler 0-10-20 gibi okunur.
|
|
32
|
+
* ⚠ Son bölme üst ucu DAHİL eder: en büyük değer dışarıda kalmaz.
|
|
33
|
+
*/
|
|
34
|
+
export declare const histogram: (values: readonly number[], binCount?: number) => Bin[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ChartTone } from './palette';
|
|
2
|
+
/** İpucunun bir satırı — renk karesi + ad + değer. */
|
|
3
|
+
export type TooltipRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
tone?: ChartTone;
|
|
8
|
+
};
|
|
9
|
+
export type TooltipContent = {
|
|
10
|
+
title?: string;
|
|
11
|
+
rows: TooltipRow[];
|
|
12
|
+
};
|
|
13
|
+
/** Görsel olarak gizli veri tablosu — ekran okuyucu grafiği TABLO olarak da okur. */
|
|
14
|
+
export type ChartTable = {
|
|
15
|
+
columns: string[];
|
|
16
|
+
rows: string[][];
|
|
17
|
+
};
|
|
18
|
+
export type LegendEntry = {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
tone: ChartTone;
|
|
22
|
+
};
|
|
23
|
+
/** Grafiğin çizim alanı — eksenler kenar boşluklarında. */
|
|
24
|
+
export type PlotArea = {
|
|
25
|
+
left: number;
|
|
26
|
+
top: number;
|
|
27
|
+
right: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Kapsayıcının genişliği — `ResizeObserver` ile, BOYAMADAN ÖNCE ölçülür (ilk karede yanlış boyutta
|
|
4
|
+
* çizilip zıplamasın). `fixed` verilirse ölçüm yapılmaz.
|
|
5
|
+
*/
|
|
6
|
+
declare const useChartWidth: (fixed?: number) => [RefObject<HTMLDivElement | null>, number];
|
|
7
|
+
export default useChartWidth;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @handijit/ui/charts — SVG grafikleri, sıfır bağımlılık. Dışa verilen her ad bir SÖZLEŞMEDİR.
|
|
3
|
+
*
|
|
4
|
+
* ⚠ Ana girişe ait her şey paket adıyla alınır (`@handijit/ui`); göreli yol yalnızca durumsuz
|
|
5
|
+
* yardımcılar ve SCSS içindir. Nöbetçi `__tests__/subentry-boundary.test.ts`.
|
|
6
|
+
* Stiller `@handijit/ui/charts.css` — `styles.css`ten SONRA içe aktarılır.
|
|
7
|
+
*/
|
|
8
|
+
export { default as LineChart } from './LineChart';
|
|
9
|
+
export { default as AreaChart } from './AreaChart';
|
|
10
|
+
export { default as BarChart } from './BarChart';
|
|
11
|
+
export { default as ComposedChart } from './ComposedChart';
|
|
12
|
+
export { default as PieChart, type PieSlice } from './PieChart';
|
|
13
|
+
export { default as ScatterPlot, type ScatterPoint, type ScatterSeries } from './ScatterPlot';
|
|
14
|
+
export { default as Heatmap } from './Heatmap';
|
|
15
|
+
export { default as BoxPlot, type BoxPlotGroup, type BoxPlotLabels } from './BoxPlot';
|
|
16
|
+
export { default as Histogram } from './Histogram';
|
|
17
|
+
export { default as RadarChart, type RadarAxis, type RadarSeries } from './RadarChart';
|
|
18
|
+
export type { ChartRow } from './core/CartesianChart';
|
|
19
|
+
export type { ChartSeries, ComposedSeries } from './core/series';
|
|
20
|
+
export type { ChartTone } from './core/palette';
|
|
21
|
+
export type { ValueFormat } from './core/format';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
type ListProps = {
|
|
3
|
+
/** Listenin erişilebilir adı ("Bağlam haritası"). */
|
|
4
|
+
label: string;
|
|
5
|
+
/** `ActionListItem` öğeleri. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Verilirse liste SANALLAŞTIRILIR: yalnızca görünen satırlar çizilir. Satır yüksekliği SABİT
|
|
9
|
+
* olmalı (px).
|
|
10
|
+
*/
|
|
11
|
+
rowHeight?: number;
|
|
12
|
+
/** Sanal listede görünen alanın yüksekliği (px). */
|
|
13
|
+
maxHeight?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
type ItemProps = {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/** Satırın başında duran öğe (kimlik, ikon). */
|
|
20
|
+
start?: ReactNode;
|
|
21
|
+
/** Satırın sonunda duran öğe (tur numarası, süre). */
|
|
22
|
+
end?: ReactNode;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
href?: string;
|
|
25
|
+
/** Verilirse satır bir SEÇİMDİR (`aria-pressed`); verilmezse düz bir eylem. */
|
|
26
|
+
isSelected?: boolean;
|
|
27
|
+
/** Geri planda kalan satır (gizlenmiş, eski) — renkle, saydamlıkla değil. */
|
|
28
|
+
isMuted?: boolean;
|
|
29
|
+
testId?: string;
|
|
30
|
+
/** Sanal listenin kendisi yazar: satırın gerçek konumu ve listenin gerçek boyu. */
|
|
31
|
+
'aria-posinset'?: number;
|
|
32
|
+
'aria-setsize'?: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Çerçeveli satır listesi — her satır bir EYLEM (açar, gider) ya da bir SEÇİM (ayrıntıyı gösterir).
|
|
36
|
+
*
|
|
37
|
+
* ⚠ Seçim mi eylem mi satır başına `isSelected` ile söylenir: verilirse satır bir aç/kapa düğmesidir
|
|
38
|
+
* (`aria-pressed`), verilmezse düz bir eylem. Eylemi seçim gibi sunmak kalıcı bir durum vaat ediyordu.
|
|
39
|
+
* ⚠ Sanal listede ekran okuyucu yalnızca çizilen satırları görür; gerçek konumu `aria-posinset` /
|
|
40
|
+
* `aria-setsize` söyler.
|
|
41
|
+
*/
|
|
42
|
+
declare const ActionList: FC<ListProps>;
|
|
43
|
+
/** `ActionList` satırı — kendi `li`sini taşır. */
|
|
44
|
+
export declare const ActionListItem: FC<ItemProps>;
|
|
45
|
+
declare const _default: typeof ActionList;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Sol baştaki marka (logo + ad). */
|
|
4
|
+
brand: ReactNode;
|
|
5
|
+
/** Markanın yanında, esneyen orta bölge (model, bağlantı durumu). */
|
|
6
|
+
start?: ReactNode;
|
|
7
|
+
/** Sağdaki eylem kümesi. */
|
|
8
|
+
end?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Uygulamanın üst bandı — sayfaya yapışık, sayfanın devamı (bant sayfayı ÖRTMEZ: `nav-*`).
|
|
14
|
+
*
|
|
15
|
+
* Kendi yüksekliğini ölçüp `--ui-header-height`e yazar. README bu `ResizeObserver` kodunu her
|
|
16
|
+
* tüketiciye elle yazdırıyordu; sabit bir sayı yazan da vardı ve bant mobilde iki satıra düştüğünde
|
|
17
|
+
* yapışkan başlıklar altında kalıyordu.
|
|
18
|
+
*/
|
|
19
|
+
declare const AppBar: FC<Props>;
|
|
20
|
+
declare const _default: typeof AppBar;
|
|
21
|
+
export default _default;
|