agentic-ds-kit 0.1.0 → 0.2.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/README.md +6 -7
- package/dist/lib/tokens.css +637 -0
- package/dist/src/index.d.ts +67 -0
- package/dist/src/index.js +69 -0
- package/dist/src/tokens.d.ts +0 -0
- package/dist/src/tokens.js +2 -0
- package/dist/ui/Accordion/Accordion.d.ts +3 -0
- package/dist/ui/Accordion/Accordion.js +49 -0
- package/dist/ui/Accordion/Accordion.js.map +1 -0
- package/{ui → dist/ui}/Accordion/Accordion.module.css +11 -11
- package/dist/ui/Accordion/Accordion.module.js +16 -0
- package/dist/ui/Accordion/Accordion.module.js.map +1 -0
- package/dist/ui/Accordion/Accordion.types.d.ts +9 -0
- package/dist/ui/Accordion/index.d.ts +2 -0
- package/dist/ui/Alert/Alert.d.ts +3 -0
- package/dist/ui/Alert/Alert.js +36 -0
- package/dist/ui/Alert/Alert.js.map +1 -0
- package/{ui → dist/ui}/Alert/Alert.module.css +12 -12
- package/dist/ui/Alert/Alert.module.js +17 -0
- package/dist/ui/Alert/Alert.module.js.map +1 -0
- package/{ui/Alert/Alert.types.ts → dist/ui/Alert/Alert.types.d.ts} +3 -4
- package/dist/ui/Alert/index.d.ts +2 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +3 -0
- package/dist/ui/AlertDialog/AlertDialog.js +76 -0
- package/dist/ui/AlertDialog/AlertDialog.js.map +1 -0
- package/{ui → dist/ui}/AlertDialog/AlertDialog.module.css +11 -11
- package/dist/ui/AlertDialog/AlertDialog.module.js +17 -0
- package/dist/ui/AlertDialog/AlertDialog.module.js.map +1 -0
- package/dist/ui/AlertDialog/AlertDialog.types.d.ts +13 -0
- package/dist/ui/AlertDialog/index.d.ts +2 -0
- package/dist/ui/AppHeader/AppHeader.d.ts +3 -0
- package/dist/ui/AppHeader/AppHeader.js +57 -0
- package/dist/ui/AppHeader/AppHeader.js.map +1 -0
- package/{ui → dist/ui}/AppHeader/AppHeader.module.css +15 -15
- package/dist/ui/AppHeader/AppHeader.module.js +17 -0
- package/dist/ui/AppHeader/AppHeader.module.js.map +1 -0
- package/dist/ui/AppHeader/AppHeader.types.d.ts +26 -0
- package/dist/ui/AppHeader/index.d.ts +2 -0
- package/dist/ui/AppNav/AppNav.d.ts +3 -0
- package/dist/ui/AppNav/AppNav.js +108 -0
- package/dist/ui/AppNav/AppNav.js.map +1 -0
- package/{ui → dist/ui}/AppNav/AppNav.module.css +27 -27
- package/dist/ui/AppNav/AppNav.module.js +28 -0
- package/dist/ui/AppNav/AppNav.module.js.map +1 -0
- package/dist/ui/AppNav/AppNav.types.d.ts +21 -0
- package/{ui/AppNav/index.ts → dist/ui/AppNav/index.d.ts} +2 -2
- package/dist/ui/Avatar/Avatar.d.ts +3 -0
- package/dist/ui/Avatar/Avatar.js +48 -0
- package/dist/ui/Avatar/Avatar.js.map +1 -0
- package/{ui → dist/ui}/Avatar/Avatar.module.css +7 -7
- package/dist/ui/Avatar/Avatar.module.js +15 -0
- package/dist/ui/Avatar/Avatar.module.js.map +1 -0
- package/dist/ui/Avatar/Avatar.types.d.ts +7 -0
- package/dist/ui/Avatar/index.d.ts +2 -0
- package/dist/ui/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/ui/AvatarGroup/AvatarGroup.js +31 -0
- package/dist/ui/AvatarGroup/AvatarGroup.js.map +1 -0
- package/{ui → dist/ui}/AvatarGroup/AvatarGroup.module.css +7 -7
- package/dist/ui/AvatarGroup/AvatarGroup.module.js +14 -0
- package/dist/ui/AvatarGroup/AvatarGroup.module.js.map +1 -0
- package/dist/ui/AvatarGroup/AvatarGroup.types.d.ts +13 -0
- package/dist/ui/AvatarGroup/index.d.ts +2 -0
- package/dist/ui/Badge/Badge.d.ts +3 -0
- package/dist/ui/Badge/Badge.js +35 -0
- package/dist/ui/Badge/Badge.js.map +1 -0
- package/{ui → dist/ui}/Badge/Badge.module.css +14 -14
- package/dist/ui/Badge/Badge.module.js +20 -0
- package/dist/ui/Badge/Badge.module.js.map +1 -0
- package/{ui/Badge/Badge.types.ts → dist/ui/Badge/Badge.types.d.ts} +6 -7
- package/dist/ui/Badge/index.d.ts +2 -0
- package/dist/ui/BarChart/BarChart.d.ts +3 -0
- package/dist/ui/BarChart/BarChart.js +242 -0
- package/dist/ui/BarChart/BarChart.js.map +1 -0
- package/{ui → dist/ui}/BarChart/BarChart.module.css +10 -10
- package/dist/ui/BarChart/BarChart.module.js +16 -0
- package/dist/ui/BarChart/BarChart.module.js.map +1 -0
- package/dist/ui/BarChart/BarChart.types.d.ts +16 -0
- package/dist/ui/BarChart/index.d.ts +2 -0
- package/dist/ui/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/ui/Breadcrumb/Breadcrumb.js +78 -0
- package/dist/ui/Breadcrumb/Breadcrumb.js.map +1 -0
- package/{ui → dist/ui}/Breadcrumb/Breadcrumb.module.css +11 -11
- package/dist/ui/Breadcrumb/Breadcrumb.module.js +16 -0
- package/dist/ui/Breadcrumb/Breadcrumb.module.js.map +1 -0
- package/dist/ui/Breadcrumb/Breadcrumb.types.d.ts +12 -0
- package/dist/ui/Breadcrumb/index.d.ts +2 -0
- package/dist/ui/Button/Button.d.ts +3 -0
- package/dist/ui/Button/Button.js +44 -0
- package/dist/ui/Button/Button.js.map +1 -0
- package/{ui → dist/ui}/Button/Button.module.css +20 -20
- package/dist/ui/Button/Button.module.js +20 -0
- package/dist/ui/Button/Button.module.js.map +1 -0
- package/dist/ui/Button/Button.types.d.ts +17 -0
- package/dist/ui/Button/index.d.ts +2 -0
- package/dist/ui/Button/lucideName.d.ts +5 -0
- package/dist/ui/Button/lucideName.js +103 -0
- package/dist/ui/Button/lucideName.js.map +1 -0
- package/dist/ui/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/ui/ButtonGroup/ButtonGroup.js +15 -0
- package/dist/ui/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/ui/ButtonGroup/ButtonGroup.module.css +31 -0
- package/dist/ui/ButtonGroup/ButtonGroup.module.js +7 -0
- package/dist/ui/ButtonGroup/ButtonGroup.module.js.map +1 -0
- package/dist/ui/ButtonGroup/ButtonGroup.types.d.ts +5 -0
- package/dist/ui/ButtonGroup/index.d.ts +2 -0
- package/dist/ui/Calendar/Calendar.d.ts +3 -0
- package/dist/ui/Calendar/Calendar.js +205 -0
- package/dist/ui/Calendar/Calendar.js.map +1 -0
- package/{ui → dist/ui}/Calendar/Calendar.module.css +22 -22
- package/dist/ui/Calendar/Calendar.module.js +20 -0
- package/dist/ui/Calendar/Calendar.module.js.map +1 -0
- package/dist/ui/Calendar/Calendar.types.d.ts +10 -0
- package/dist/ui/Calendar/index.d.ts +2 -0
- package/dist/ui/Card/Card.d.ts +3 -0
- package/dist/ui/Card/Card.js +57 -0
- package/dist/ui/Card/Card.js.map +1 -0
- package/{ui → dist/ui}/Card/Card.module.css +13 -13
- package/dist/ui/Card/Card.module.js +18 -0
- package/dist/ui/Card/Card.module.js.map +1 -0
- package/dist/ui/Card/Card.types.d.ts +20 -0
- package/{ui/Card/index.ts → dist/ui/Card/index.d.ts} +2 -2
- package/dist/ui/Carousel/Carousel.d.ts +3 -0
- package/dist/ui/Carousel/Carousel.js +99 -0
- package/dist/ui/Carousel/Carousel.js.map +1 -0
- package/{ui → dist/ui}/Carousel/Carousel.module.css +22 -22
- package/dist/ui/Carousel/Carousel.module.js +21 -0
- package/dist/ui/Carousel/Carousel.module.js.map +1 -0
- package/dist/ui/Carousel/Carousel.types.d.ts +15 -0
- package/dist/ui/Carousel/index.d.ts +2 -0
- package/dist/ui/Cell/Cell.d.ts +3 -0
- package/dist/ui/Cell/Cell.js +215 -0
- package/dist/ui/Cell/Cell.js.map +1 -0
- package/{ui → dist/ui}/Cell/Cell.module.css +23 -23
- package/dist/ui/Cell/Cell.module.js +27 -0
- package/dist/ui/Cell/Cell.module.js.map +1 -0
- package/dist/ui/Cell/Cell.types.d.ts +46 -0
- package/dist/ui/Cell/index.d.ts +2 -0
- package/dist/ui/Chat/Chat.d.ts +3 -0
- package/dist/ui/Chat/Chat.js +149 -0
- package/dist/ui/Chat/Chat.js.map +1 -0
- package/{ui → dist/ui}/Chat/Chat.module.css +21 -21
- package/dist/ui/Chat/Chat.module.js +27 -0
- package/dist/ui/Chat/Chat.module.js.map +1 -0
- package/dist/ui/Chat/Chat.types.d.ts +35 -0
- package/dist/ui/Chat/index.d.ts +2 -0
- package/dist/ui/Checkbox/Checkbox.d.ts +3 -0
- package/dist/ui/Checkbox/Checkbox.js +64 -0
- package/dist/ui/Checkbox/Checkbox.js.map +1 -0
- package/{ui → dist/ui}/Checkbox/Checkbox.module.css +28 -28
- package/dist/ui/Checkbox/Checkbox.module.js +16 -0
- package/dist/ui/Checkbox/Checkbox.module.js.map +1 -0
- package/dist/ui/Checkbox/Checkbox.types.d.ts +14 -0
- package/dist/ui/Checkbox/index.d.ts +2 -0
- package/dist/ui/Collapsible/Collapsible.d.ts +3 -0
- package/dist/ui/Collapsible/Collapsible.js +50 -0
- package/dist/ui/Collapsible/Collapsible.js.map +1 -0
- package/{ui → dist/ui}/Collapsible/Collapsible.module.css +8 -8
- package/dist/ui/Collapsible/Collapsible.module.js +14 -0
- package/dist/ui/Collapsible/Collapsible.module.js.map +1 -0
- package/dist/ui/Collapsible/Collapsible.types.d.ts +8 -0
- package/dist/ui/Collapsible/index.d.ts +2 -0
- package/dist/ui/Command/Command.d.ts +3 -0
- package/dist/ui/Command/Command.js +120 -0
- package/dist/ui/Command/Command.js.map +1 -0
- package/{ui → dist/ui}/Command/Command.module.css +22 -22
- package/dist/ui/Command/Command.module.js +22 -0
- package/dist/ui/Command/Command.module.js.map +1 -0
- package/dist/ui/Command/Command.types.d.ts +18 -0
- package/dist/ui/Command/index.d.ts +2 -0
- package/dist/ui/DataTable/DataTable.d.ts +3 -0
- package/dist/ui/DataTable/DataTable.js +324 -0
- package/dist/ui/DataTable/DataTable.js.map +1 -0
- package/{ui → dist/ui}/DataTable/DataTable.module.css +34 -34
- package/dist/ui/DataTable/DataTable.module.js +27 -0
- package/dist/ui/DataTable/DataTable.module.js.map +1 -0
- package/dist/ui/DataTable/DataTable.types.d.ts +28 -0
- package/dist/ui/DataTable/index.d.ts +2 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +3 -0
- package/dist/ui/DatePicker/DatePicker.js +92 -0
- package/dist/ui/DatePicker/DatePicker.js.map +1 -0
- package/{ui → dist/ui}/DatePicker/DatePicker.module.css +7 -7
- package/dist/ui/DatePicker/DatePicker.module.js +14 -0
- package/dist/ui/DatePicker/DatePicker.module.js.map +1 -0
- package/dist/ui/DatePicker/DatePicker.types.d.ts +14 -0
- package/dist/ui/DatePicker/index.d.ts +2 -0
- package/dist/ui/Drawer/Drawer.d.ts +3 -0
- package/dist/ui/Drawer/Drawer.js +82 -0
- package/dist/ui/Drawer/Drawer.js.map +1 -0
- package/{ui → dist/ui}/Drawer/Drawer.module.css +31 -31
- package/dist/ui/Drawer/Drawer.module.js +26 -0
- package/dist/ui/Drawer/Drawer.module.js.map +1 -0
- package/dist/ui/Drawer/Drawer.types.d.ts +12 -0
- package/dist/ui/Drawer/index.d.ts +2 -0
- package/dist/ui/DropdownMenu/DropdownMenu.d.ts +3 -0
- package/dist/ui/DropdownMenu/DropdownMenu.js +378 -0
- package/dist/ui/DropdownMenu/DropdownMenu.js.map +1 -0
- package/{ui → dist/ui}/DropdownMenu/DropdownMenu.module.css +53 -53
- package/dist/ui/DropdownMenu/DropdownMenu.module.js +42 -0
- package/dist/ui/DropdownMenu/DropdownMenu.module.js.map +1 -0
- package/dist/ui/DropdownMenu/DropdownMenu.types.d.ts +44 -0
- package/dist/ui/DropdownMenu/index.d.ts +2 -0
- package/dist/ui/Empty/Empty.d.ts +3 -0
- package/dist/ui/Empty/Empty.js +43 -0
- package/dist/ui/Empty/Empty.js.map +1 -0
- package/{ui → dist/ui}/Empty/Empty.module.css +9 -9
- package/dist/ui/Empty/Empty.module.js +16 -0
- package/dist/ui/Empty/Empty.module.js.map +1 -0
- package/dist/ui/Empty/Empty.types.d.ts +9 -0
- package/dist/ui/Empty/index.d.ts +2 -0
- package/dist/ui/Field/Field.d.ts +3 -0
- package/dist/ui/Field/Field.js +38 -0
- package/dist/ui/Field/Field.js.map +1 -0
- package/{ui → dist/ui}/Field/Field.module.css +11 -11
- package/dist/ui/Field/Field.module.js +15 -0
- package/dist/ui/Field/Field.module.js.map +1 -0
- package/dist/ui/Field/Field.types.d.ts +10 -0
- package/dist/ui/Field/index.d.ts +2 -0
- package/dist/ui/FieldSet/FieldSet.d.ts +3 -0
- package/dist/ui/FieldSet/FieldSet.js +26 -0
- package/dist/ui/FieldSet/FieldSet.js.map +1 -0
- package/{ui → dist/ui}/FieldSet/FieldSet.module.css +4 -4
- package/dist/ui/FieldSet/FieldSet.module.js +12 -0
- package/dist/ui/FieldSet/FieldSet.module.js.map +1 -0
- package/dist/ui/FieldSet/FieldSet.types.d.ts +6 -0
- package/dist/ui/FieldSet/index.d.ts +2 -0
- package/dist/ui/HeaderCell/HeaderCell.d.ts +3 -0
- package/dist/ui/HeaderCell/HeaderCell.js +42 -0
- package/dist/ui/HeaderCell/HeaderCell.js.map +1 -0
- package/{ui → dist/ui}/HeaderCell/HeaderCell.module.css +14 -14
- package/dist/ui/HeaderCell/HeaderCell.module.js +19 -0
- package/dist/ui/HeaderCell/HeaderCell.module.js.map +1 -0
- package/dist/ui/HeaderCell/HeaderCell.types.d.ts +17 -0
- package/dist/ui/HeaderCell/index.d.ts +2 -0
- package/dist/ui/Input/Input.d.ts +3 -0
- package/dist/ui/Input/Input.js +58 -0
- package/dist/ui/Input/Input.js.map +1 -0
- package/{ui → dist/ui}/Input/Input.module.css +12 -12
- package/dist/ui/Input/Input.module.js +13 -0
- package/dist/ui/Input/Input.module.js.map +1 -0
- package/dist/ui/Input/Input.types.d.ts +21 -0
- package/dist/ui/Input/index.d.ts +2 -0
- package/dist/ui/InputOTP/InputOTP.d.ts +3 -0
- package/dist/ui/InputOTP/InputOTP.js +86 -0
- package/dist/ui/InputOTP/InputOTP.js.map +1 -0
- package/{ui → dist/ui}/InputOTP/InputOTP.module.css +20 -20
- package/dist/ui/InputOTP/InputOTP.module.js +20 -0
- package/dist/ui/InputOTP/InputOTP.module.js.map +1 -0
- package/dist/ui/InputOTP/InputOTP.types.d.ts +18 -0
- package/{ui/InputOTP/index.ts → dist/ui/InputOTP/index.d.ts} +2 -2
- package/dist/ui/InsightCard/InsightCard.d.ts +3 -0
- package/dist/ui/InsightCard/InsightCard.js +89 -0
- package/dist/ui/InsightCard/InsightCard.js.map +1 -0
- package/{ui → dist/ui}/InsightCard/InsightCard.module.css +23 -23
- package/dist/ui/InsightCard/InsightCard.module.js +29 -0
- package/dist/ui/InsightCard/InsightCard.module.js.map +1 -0
- package/dist/ui/InsightCard/InsightCard.types.d.ts +18 -0
- package/dist/ui/InsightCard/index.d.ts +2 -0
- package/dist/ui/LineChart/LineChart.d.ts +3 -0
- package/dist/ui/LineChart/LineChart.js +307 -0
- package/dist/ui/LineChart/LineChart.js.map +1 -0
- package/{ui → dist/ui}/LineChart/LineChart.module.css +16 -16
- package/dist/ui/LineChart/LineChart.module.js +22 -0
- package/dist/ui/LineChart/LineChart.module.js.map +1 -0
- package/dist/ui/LineChart/LineChart.types.d.ts +17 -0
- package/dist/ui/LineChart/index.d.ts +2 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.d.ts +3 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.js +24 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.js.map +1 -0
- package/{ui → dist/ui}/LoadingAnimation/LoadingAnimation.module.css +11 -11
- package/dist/ui/LoadingAnimation/LoadingAnimation.module.js +13 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.module.js.map +1 -0
- package/{ui/LoadingAnimation/LoadingAnimation.types.ts → dist/ui/LoadingAnimation/LoadingAnimation.types.d.ts} +4 -5
- package/dist/ui/LoadingAnimation/index.d.ts +2 -0
- package/dist/ui/Modal/Modal.d.ts +3 -0
- package/dist/ui/Modal/Modal.js +66 -0
- package/dist/ui/Modal/Modal.js.map +1 -0
- package/{ui → dist/ui}/Modal/Modal.module.css +7 -7
- package/dist/ui/Modal/Modal.module.js +12 -0
- package/dist/ui/Modal/Modal.module.js.map +1 -0
- package/dist/ui/Modal/Modal.types.d.ts +13 -0
- package/dist/ui/Modal/index.d.ts +2 -0
- package/dist/ui/ModalCard/ModalCard.d.ts +3 -0
- package/dist/ui/ModalCard/ModalCard.js +56 -0
- package/dist/ui/ModalCard/ModalCard.js.map +1 -0
- package/{ui → dist/ui}/ModalCard/ModalCard.module.css +20 -20
- package/dist/ui/ModalCard/ModalCard.module.js +20 -0
- package/dist/ui/ModalCard/ModalCard.module.js.map +1 -0
- package/dist/ui/ModalCard/ModalCard.types.d.ts +13 -0
- package/dist/ui/ModalCard/index.d.ts +2 -0
- package/dist/ui/NavigationMenu/NavigationMenu.d.ts +3 -0
- package/dist/ui/NavigationMenu/NavigationMenu.js +35 -0
- package/dist/ui/NavigationMenu/NavigationMenu.js.map +1 -0
- package/{ui → dist/ui}/NavigationMenu/NavigationMenu.module.css +5 -5
- package/dist/ui/NavigationMenu/NavigationMenu.module.js +11 -0
- package/dist/ui/NavigationMenu/NavigationMenu.module.js.map +1 -0
- package/dist/ui/NavigationMenu/NavigationMenu.types.d.ts +18 -0
- package/dist/ui/NavigationMenu/index.d.ts +2 -0
- package/dist/ui/NumberTransition/NumberTransition.d.ts +3 -0
- package/dist/ui/NumberTransition/NumberTransition.js +54 -0
- package/dist/ui/NumberTransition/NumberTransition.js.map +1 -0
- package/{ui → dist/ui}/NumberTransition/NumberTransition.module.css +21 -21
- package/dist/ui/NumberTransition/NumberTransition.module.js +20 -0
- package/dist/ui/NumberTransition/NumberTransition.module.js.map +1 -0
- package/dist/ui/NumberTransition/NumberTransition.types.d.ts +8 -0
- package/dist/ui/NumberTransition/index.d.ts +2 -0
- package/dist/ui/PageHeader/PageHeader.d.ts +3 -0
- package/dist/ui/PageHeader/PageHeader.js +44 -0
- package/dist/ui/PageHeader/PageHeader.js.map +1 -0
- package/{ui → dist/ui}/PageHeader/PageHeader.module.css +8 -8
- package/dist/ui/PageHeader/PageHeader.module.js +16 -0
- package/dist/ui/PageHeader/PageHeader.module.js.map +1 -0
- package/dist/ui/PageHeader/PageHeader.types.d.ts +11 -0
- package/dist/ui/PageHeader/index.d.ts +2 -0
- package/dist/ui/Pagination/Pagination.d.ts +3 -0
- package/dist/ui/Pagination/Pagination.js +109 -0
- package/dist/ui/Pagination/Pagination.js.map +1 -0
- package/{ui → dist/ui}/Pagination/Pagination.module.css +3 -3
- package/dist/ui/Pagination/Pagination.module.js +11 -0
- package/dist/ui/Pagination/Pagination.module.js.map +1 -0
- package/dist/ui/Pagination/Pagination.types.d.ts +11 -0
- package/dist/ui/Pagination/index.d.ts +2 -0
- package/dist/ui/PieChart/PieChart.d.ts +3 -0
- package/dist/ui/PieChart/PieChart.js +254 -0
- package/dist/ui/PieChart/PieChart.js.map +1 -0
- package/{ui → dist/ui}/PieChart/PieChart.module.css +22 -22
- package/dist/ui/PieChart/PieChart.module.js +22 -0
- package/dist/ui/PieChart/PieChart.module.js.map +1 -0
- package/dist/ui/PieChart/PieChart.types.d.ts +20 -0
- package/{ui/PieChart/index.ts → dist/ui/PieChart/index.d.ts} +2 -2
- package/dist/ui/Progress/Progress.d.ts +3 -0
- package/dist/ui/Progress/Progress.js +117 -0
- package/dist/ui/Progress/Progress.js.map +1 -0
- package/{ui → dist/ui}/Progress/Progress.module.css +42 -42
- package/dist/ui/Progress/Progress.module.js +32 -0
- package/dist/ui/Progress/Progress.module.js.map +1 -0
- package/{ui/Progress/Progress.types.ts → dist/ui/Progress/Progress.types.d.ts} +8 -9
- package/dist/ui/Progress/index.d.ts +2 -0
- package/dist/ui/ProgressSteps/ProgressSteps.d.ts +3 -0
- package/dist/ui/ProgressSteps/ProgressSteps.js +92 -0
- package/dist/ui/ProgressSteps/ProgressSteps.js.map +1 -0
- package/{ui → dist/ui}/ProgressSteps/ProgressSteps.module.css +33 -33
- package/dist/ui/ProgressSteps/ProgressSteps.module.js +31 -0
- package/dist/ui/ProgressSteps/ProgressSteps.module.js.map +1 -0
- package/{ui/ProgressSteps/ProgressSteps.types.ts → dist/ui/ProgressSteps/ProgressSteps.types.d.ts} +10 -12
- package/dist/ui/ProgressSteps/index.d.ts +2 -0
- package/dist/ui/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/ui/RadioGroup/RadioGroup.js +87 -0
- package/dist/ui/RadioGroup/RadioGroup.js.map +1 -0
- package/{ui → dist/ui}/RadioGroup/RadioGroup.module.css +48 -48
- package/dist/ui/RadioGroup/RadioGroup.module.js +27 -0
- package/dist/ui/RadioGroup/RadioGroup.module.js.map +1 -0
- package/dist/ui/RadioGroup/RadioGroup.types.d.ts +27 -0
- package/dist/ui/RadioGroup/index.d.ts +2 -0
- package/dist/ui/Scoreboard/Scoreboard.d.ts +3 -0
- package/dist/ui/Scoreboard/Scoreboard.js +33 -0
- package/dist/ui/Scoreboard/Scoreboard.js.map +1 -0
- package/{ui → dist/ui}/Scoreboard/Scoreboard.module.css +11 -11
- package/dist/ui/Scoreboard/Scoreboard.module.js +15 -0
- package/dist/ui/Scoreboard/Scoreboard.module.js.map +1 -0
- package/dist/ui/Scoreboard/Scoreboard.types.d.ts +6 -0
- package/dist/ui/Scoreboard/index.d.ts +2 -0
- package/dist/ui/Scorecard/Scorecard.d.ts +3 -0
- package/dist/ui/Scorecard/Scorecard.js +76 -0
- package/dist/ui/Scorecard/Scorecard.js.map +1 -0
- package/{ui → dist/ui}/Scorecard/Scorecard.module.css +25 -25
- package/dist/ui/Scorecard/Scorecard.module.js +26 -0
- package/dist/ui/Scorecard/Scorecard.module.js.map +1 -0
- package/dist/ui/Scorecard/Scorecard.types.d.ts +15 -0
- package/dist/ui/Scorecard/index.d.ts +2 -0
- package/dist/ui/Section/Section.d.ts +3 -0
- package/dist/ui/Section/Section.js +54 -0
- package/dist/ui/Section/Section.js.map +1 -0
- package/{ui → dist/ui}/Section/Section.module.css +15 -15
- package/dist/ui/Section/Section.module.js +21 -0
- package/dist/ui/Section/Section.module.js.map +1 -0
- package/dist/ui/Section/Section.types.d.ts +13 -0
- package/dist/ui/Section/index.d.ts +2 -0
- package/dist/ui/Select/Select.d.ts +3 -0
- package/dist/ui/Select/Select.js +59 -0
- package/dist/ui/Select/Select.js.map +1 -0
- package/dist/ui/Select/Select.types.d.ts +24 -0
- package/dist/ui/Select/index.d.ts +2 -0
- package/dist/ui/ShimmerText/ShimmerText.d.ts +3 -0
- package/dist/ui/ShimmerText/ShimmerText.js +35 -0
- package/dist/ui/ShimmerText/ShimmerText.js.map +1 -0
- package/{ui → dist/ui}/ShimmerText/ShimmerText.module.css +8 -8
- package/dist/ui/ShimmerText/ShimmerText.module.js +14 -0
- package/dist/ui/ShimmerText/ShimmerText.module.js.map +1 -0
- package/dist/ui/ShimmerText/ShimmerText.types.d.ts +10 -0
- package/dist/ui/ShimmerText/index.d.ts +2 -0
- package/dist/ui/SideNav/SideNav.d.ts +3 -0
- package/dist/ui/SideNav/SideNav.js +176 -0
- package/dist/ui/SideNav/SideNav.js.map +1 -0
- package/{ui → dist/ui}/SideNav/SideNav.module.css +54 -54
- package/dist/ui/SideNav/SideNav.module.js +32 -0
- package/dist/ui/SideNav/SideNav.module.js.map +1 -0
- package/dist/ui/SideNav/SideNav.types.d.ts +38 -0
- package/dist/ui/SideNav/index.d.ts +2 -0
- package/dist/ui/Slider/Slider.d.ts +3 -0
- package/dist/ui/Slider/Slider.js +129 -0
- package/dist/ui/Slider/Slider.js.map +1 -0
- package/{ui → dist/ui}/Slider/Slider.module.css +18 -18
- package/dist/ui/Slider/Slider.module.js +15 -0
- package/dist/ui/Slider/Slider.module.js.map +1 -0
- package/dist/ui/Slider/Slider.types.d.ts +10 -0
- package/dist/ui/Slider/index.d.ts +2 -0
- package/dist/ui/Spinner/Spinner.d.ts +3 -0
- package/dist/ui/Spinner/Spinner.js +24 -0
- package/dist/ui/Spinner/Spinner.js.map +1 -0
- package/{ui → dist/ui}/Spinner/Spinner.module.css +11 -11
- package/dist/ui/Spinner/Spinner.module.js +15 -0
- package/dist/ui/Spinner/Spinner.module.js.map +1 -0
- package/{ui/Spinner/Spinner.types.ts → dist/ui/Spinner/Spinner.types.d.ts} +2 -3
- package/dist/ui/Spinner/index.d.ts +2 -0
- package/dist/ui/Switch/Switch.d.ts +3 -0
- package/dist/ui/Switch/Switch.js +45 -0
- package/dist/ui/Switch/Switch.js.map +1 -0
- package/{ui → dist/ui}/Switch/Switch.module.css +27 -27
- package/dist/ui/Switch/Switch.module.js +18 -0
- package/dist/ui/Switch/Switch.module.js.map +1 -0
- package/dist/ui/Switch/Switch.types.d.ts +11 -0
- package/dist/ui/Switch/index.d.ts +2 -0
- package/dist/ui/Table/Table.d.ts +3 -0
- package/dist/ui/Table/Table.js +84 -0
- package/dist/ui/Table/Table.js.map +1 -0
- package/{ui → dist/ui}/Table/Table.module.css +24 -24
- package/dist/ui/Table/Table.module.js +22 -0
- package/dist/ui/Table/Table.module.js.map +1 -0
- package/dist/ui/Table/Table.types.d.ts +22 -0
- package/dist/ui/Table/index.d.ts +2 -0
- package/dist/ui/Tabs/Tabs.d.ts +3 -0
- package/dist/ui/Tabs/Tabs.js +112 -0
- package/dist/ui/Tabs/Tabs.js.map +1 -0
- package/{ui → dist/ui}/Tabs/Tabs.module.css +26 -26
- package/dist/ui/Tabs/Tabs.module.js +18 -0
- package/dist/ui/Tabs/Tabs.module.js.map +1 -0
- package/dist/ui/Tabs/Tabs.types.d.ts +18 -0
- package/dist/ui/Tabs/index.d.ts +2 -0
- package/dist/ui/Textarea/Textarea.d.ts +3 -0
- package/dist/ui/Textarea/Textarea.js +26 -0
- package/dist/ui/Textarea/Textarea.js.map +1 -0
- package/{ui → dist/ui}/Textarea/Textarea.module.css +15 -15
- package/dist/ui/Textarea/Textarea.module.js +13 -0
- package/dist/ui/Textarea/Textarea.module.js.map +1 -0
- package/dist/ui/Textarea/Textarea.types.d.ts +13 -0
- package/dist/ui/Textarea/index.d.ts +2 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.d.ts +3 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.js +28 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.js.map +1 -0
- package/{ui → dist/ui}/ThinkingAnimation/ThinkingAnimation.module.css +13 -13
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.module.js +15 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.module.js.map +1 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.types.d.ts +7 -0
- package/dist/ui/ThinkingAnimation/index.d.ts +2 -0
- package/dist/ui/Timeline/Timeline.d.ts +3 -0
- package/dist/ui/Timeline/Timeline.js +50 -0
- package/dist/ui/Timeline/Timeline.js.map +1 -0
- package/{ui → dist/ui}/Timeline/Timeline.module.css +16 -16
- package/dist/ui/Timeline/Timeline.module.js +20 -0
- package/dist/ui/Timeline/Timeline.module.js.map +1 -0
- package/dist/ui/Timeline/Timeline.types.d.ts +14 -0
- package/{ui/Timeline/index.ts → dist/ui/Timeline/index.d.ts} +2 -2
- package/dist/ui/Toast/Toast.d.ts +3 -0
- package/dist/ui/Toast/Toast.js +86 -0
- package/dist/ui/Toast/Toast.js.map +1 -0
- package/{ui → dist/ui}/Toast/Toast.module.css +20 -20
- package/dist/ui/Toast/Toast.module.js +24 -0
- package/dist/ui/Toast/Toast.module.js.map +1 -0
- package/dist/ui/Toast/Toast.types.d.ts +15 -0
- package/dist/ui/Toast/index.d.ts +2 -0
- package/dist/ui/Tooltip/Tooltip.d.ts +12 -0
- package/dist/ui/Tooltip/Tooltip.js +51 -0
- package/dist/ui/Tooltip/Tooltip.js.map +1 -0
- package/{ui → dist/ui}/Tooltip/Tooltip.module.css +17 -17
- package/dist/ui/Tooltip/Tooltip.module.js +16 -0
- package/dist/ui/Tooltip/Tooltip.module.js.map +1 -0
- package/dist/ui/Tooltip/index.d.ts +2 -0
- package/dist/ui/patterns/ActivityPattern/ActivityFeed.d.ts +4 -0
- package/dist/ui/patterns/ActivityPattern/ActivityFeed.js +162 -0
- package/dist/ui/patterns/ActivityPattern/ActivityFeed.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/ActivityPattern.d.ts +5 -0
- package/dist/ui/patterns/ActivityPattern/ActivityPattern.js +168 -0
- package/dist/ui/patterns/ActivityPattern/ActivityPattern.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/ActivityTasks.d.ts +11 -0
- package/dist/ui/patterns/ActivityPattern/ActivityTasks.js +89 -0
- package/dist/ui/patterns/ActivityPattern/ActivityTasks.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.d.ts +21 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.js +184 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.js.map +1 -0
- package/{ui → dist/ui}/patterns/ActivityPattern/TaskDrawer.module.css +6 -6
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.module.js +14 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.module.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/index.d.ts +2 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.d.ts +5 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.js +123 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.css +3 -3
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.js +11 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.js.map +1 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/index.d.ts +2 -0
- package/dist/ui/patterns/DashboardPattern/DashboardPattern.d.ts +4 -0
- package/dist/ui/patterns/DashboardPattern/DashboardPattern.js +225 -0
- package/dist/ui/patterns/DashboardPattern/DashboardPattern.js.map +1 -0
- package/dist/ui/patterns/DashboardPattern/index.d.ts +1 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.d.ts +8 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.js +109 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.js.map +1 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/index.d.ts +2 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.d.ts +5 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.js +275 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/InboxPattern/InboxPattern.module.css +6 -6
- package/dist/ui/patterns/InboxPattern/InboxPattern.module.js +14 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.module.js.map +1 -0
- package/dist/ui/patterns/InboxPattern/InboxReplyDrawer.d.ts +7 -0
- package/dist/ui/patterns/InboxPattern/InboxReplyDrawer.js +87 -0
- package/dist/ui/patterns/InboxPattern/InboxReplyDrawer.js.map +1 -0
- package/dist/ui/patterns/InboxPattern/inbox-data.d.ts +15 -0
- package/dist/ui/patterns/InboxPattern/inbox-data.js +86 -0
- package/dist/ui/patterns/InboxPattern/inbox-data.js.map +1 -0
- package/dist/ui/patterns/InboxPattern/index.d.ts +2 -0
- package/dist/ui/patterns/InviteMembersPattern/InviteMembersPattern.d.ts +9 -0
- package/dist/ui/patterns/InviteMembersPattern/InviteMembersPattern.js +158 -0
- package/dist/ui/patterns/InviteMembersPattern/InviteMembersPattern.js.map +1 -0
- package/dist/ui/patterns/InviteMembersPattern/index.d.ts +2 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.d.ts +16 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.js +143 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/ListDetailPattern/ListDetailPattern.module.css +5 -5
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.module.js +12 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.module.js.map +1 -0
- package/dist/ui/patterns/ListDetailPattern/index.d.ts +2 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.d.ts +7 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.js +127 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/SettingsFormPattern/SettingsFormPattern.module.css +2 -2
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.module.js +10 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.module.js.map +1 -0
- package/dist/ui/patterns/SettingsFormPattern/index.d.ts +2 -0
- package/dist/ui/shared/ChartFrame.d.ts +14 -0
- package/dist/ui/shared/ChartFrame.js +61 -0
- package/dist/ui/shared/ChartFrame.js.map +1 -0
- package/{ui → dist/ui}/shared/ChartFrame.module.css +41 -41
- package/dist/ui/shared/ChartFrame.module.js +39 -0
- package/dist/ui/shared/ChartFrame.module.js.map +1 -0
- package/dist/ui/shared/chartMath.d.ts +78 -0
- package/dist/ui/shared/chartMath.js +127 -0
- package/dist/ui/shared/chartMath.js.map +1 -0
- package/{ui → dist/ui}/shared/controls.module.css +8 -8
- package/dist/ui/shared/controls.module.js +13 -0
- package/dist/ui/shared/controls.module.js.map +1 -0
- package/dist/ui/shared/useChartSize.d.ts +5 -0
- package/dist/ui/shared/useChartSize.js +22 -0
- package/dist/ui/shared/useChartSize.js.map +1 -0
- package/package.json +28 -8
- package/skills/prototype-from-kit/SKILL.md +1 -1
- package/src/index.ts +0 -71
- package/ui/Accordion/Accordion.tsx +0 -51
- package/ui/Accordion/Accordion.types.ts +0 -10
- package/ui/Accordion/index.ts +0 -2
- package/ui/Alert/Alert.tsx +0 -27
- package/ui/Alert/index.ts +0 -2
- package/ui/AlertDialog/AlertDialog.tsx +0 -109
- package/ui/AlertDialog/AlertDialog.types.ts +0 -14
- package/ui/AlertDialog/index.ts +0 -6
- package/ui/AppHeader/AppHeader.tsx +0 -70
- package/ui/AppHeader/AppHeader.types.ts +0 -28
- package/ui/AppHeader/index.ts +0 -2
- package/ui/AppNav/AppNav.tsx +0 -137
- package/ui/AppNav/AppNav.types.ts +0 -24
- package/ui/Avatar/Avatar.tsx +0 -62
- package/ui/Avatar/Avatar.types.ts +0 -8
- package/ui/Avatar/index.ts +0 -2
- package/ui/AvatarGroup/AvatarGroup.tsx +0 -29
- package/ui/AvatarGroup/AvatarGroup.types.ts +0 -16
- package/ui/AvatarGroup/index.ts +0 -2
- package/ui/Badge/Badge.tsx +0 -43
- package/ui/Badge/index.ts +0 -2
- package/ui/BarChart/BarChart.tsx +0 -380
- package/ui/BarChart/BarChart.types.ts +0 -18
- package/ui/BarChart/index.ts +0 -2
- package/ui/Breadcrumb/Breadcrumb.tsx +0 -89
- package/ui/Breadcrumb/Breadcrumb.types.ts +0 -14
- package/ui/Breadcrumb/index.ts +0 -2
- package/ui/Button/Button.tsx +0 -49
- package/ui/Button/Button.types.ts +0 -18
- package/ui/Button/index.ts +0 -2
- package/ui/Button/lucideName.tsx +0 -188
- package/ui/ButtonGroup/ButtonGroup.module.css +0 -31
- package/ui/ButtonGroup/ButtonGroup.tsx +0 -12
- package/ui/ButtonGroup/ButtonGroup.types.ts +0 -6
- package/ui/ButtonGroup/index.ts +0 -2
- package/ui/Calendar/Calendar.tsx +0 -296
- package/ui/Calendar/Calendar.types.ts +0 -11
- package/ui/Calendar/index.ts +0 -2
- package/ui/Card/Card.tsx +0 -69
- package/ui/Card/Card.types.ts +0 -23
- package/ui/Carousel/Carousel.tsx +0 -152
- package/ui/Carousel/Carousel.types.ts +0 -17
- package/ui/Carousel/index.ts +0 -7
- package/ui/Cell/Cell.tsx +0 -300
- package/ui/Cell/Cell.types.ts +0 -69
- package/ui/Cell/index.ts +0 -11
- package/ui/Chat/Chat.tsx +0 -175
- package/ui/Chat/Chat.types.ts +0 -39
- package/ui/Chat/index.ts +0 -2
- package/ui/Checkbox/Checkbox.tsx +0 -70
- package/ui/Checkbox/Checkbox.types.ts +0 -15
- package/ui/Checkbox/index.ts +0 -2
- package/ui/Collapsible/Collapsible.tsx +0 -59
- package/ui/Collapsible/Collapsible.types.ts +0 -9
- package/ui/Collapsible/index.ts +0 -2
- package/ui/Command/Command.tsx +0 -152
- package/ui/Command/Command.types.ts +0 -20
- package/ui/Command/index.ts +0 -2
- package/ui/DataTable/DataTable.tsx +0 -429
- package/ui/DataTable/DataTable.types.ts +0 -35
- package/ui/DataTable/index.ts +0 -8
- package/ui/DatePicker/DatePicker.tsx +0 -123
- package/ui/DatePicker/DatePicker.types.ts +0 -15
- package/ui/DatePicker/index.ts +0 -2
- package/ui/Drawer/Drawer.tsx +0 -112
- package/ui/Drawer/Drawer.types.ts +0 -14
- package/ui/Drawer/index.ts +0 -2
- package/ui/DropdownMenu/DropdownMenu.tsx +0 -580
- package/ui/DropdownMenu/DropdownMenu.types.ts +0 -48
- package/ui/DropdownMenu/index.ts +0 -8
- package/ui/Empty/Empty.tsx +0 -35
- package/ui/Empty/Empty.types.ts +0 -10
- package/ui/Empty/index.ts +0 -2
- package/ui/Field/Field.tsx +0 -46
- package/ui/Field/Field.types.ts +0 -12
- package/ui/Field/index.ts +0 -2
- package/ui/FieldSet/FieldSet.tsx +0 -14
- package/ui/FieldSet/FieldSet.types.ts +0 -7
- package/ui/FieldSet/index.ts +0 -2
- package/ui/HeaderCell/HeaderCell.tsx +0 -71
- package/ui/HeaderCell/HeaderCell.types.ts +0 -18
- package/ui/HeaderCell/index.ts +0 -2
- package/ui/Input/Input.tsx +0 -65
- package/ui/Input/Input.types.ts +0 -22
- package/ui/Input/index.ts +0 -2
- package/ui/InputOTP/InputOTP.tsx +0 -136
- package/ui/InputOTP/InputOTP.types.ts +0 -19
- package/ui/InsightCard/InsightCard.tsx +0 -90
- package/ui/InsightCard/InsightCard.types.ts +0 -20
- package/ui/InsightCard/index.ts +0 -7
- package/ui/LineChart/LineChart.tsx +0 -424
- package/ui/LineChart/LineChart.types.ts +0 -19
- package/ui/LineChart/index.ts +0 -2
- package/ui/LoadingAnimation/LoadingAnimation.tsx +0 -41
- package/ui/LoadingAnimation/index.ts +0 -6
- package/ui/Modal/Modal.tsx +0 -114
- package/ui/Modal/Modal.types.ts +0 -15
- package/ui/Modal/index.ts +0 -2
- package/ui/ModalCard/ModalCard.tsx +0 -58
- package/ui/ModalCard/ModalCard.types.ts +0 -15
- package/ui/ModalCard/index.ts +0 -2
- package/ui/NavigationMenu/NavigationMenu.tsx +0 -57
- package/ui/NavigationMenu/NavigationMenu.types.ts +0 -22
- package/ui/NavigationMenu/index.ts +0 -7
- package/ui/NumberTransition/NumberTransition.tsx +0 -78
- package/ui/NumberTransition/NumberTransition.types.ts +0 -9
- package/ui/NumberTransition/index.ts +0 -2
- package/ui/PageHeader/PageHeader.tsx +0 -39
- package/ui/PageHeader/PageHeader.types.ts +0 -12
- package/ui/PageHeader/index.ts +0 -2
- package/ui/Pagination/Pagination.tsx +0 -147
- package/ui/Pagination/Pagination.types.ts +0 -12
- package/ui/Pagination/index.ts +0 -2
- package/ui/PieChart/PieChart.tsx +0 -293
- package/ui/PieChart/PieChart.types.ts +0 -22
- package/ui/Progress/Progress.tsx +0 -167
- package/ui/Progress/index.ts +0 -8
- package/ui/ProgressSteps/ProgressSteps.tsx +0 -105
- package/ui/ProgressSteps/index.ts +0 -8
- package/ui/RadioGroup/RadioGroup.tsx +0 -116
- package/ui/RadioGroup/RadioGroup.types.ts +0 -30
- package/ui/RadioGroup/index.ts +0 -8
- package/ui/Scoreboard/Scoreboard.tsx +0 -41
- package/ui/Scoreboard/Scoreboard.types.ts +0 -7
- package/ui/Scoreboard/index.ts +0 -2
- package/ui/Scorecard/Scorecard.tsx +0 -92
- package/ui/Scorecard/Scorecard.types.ts +0 -18
- package/ui/Scorecard/index.ts +0 -2
- package/ui/Section/Section.tsx +0 -75
- package/ui/Section/Section.types.ts +0 -15
- package/ui/Section/index.ts +0 -2
- package/ui/Select/Select.module.css +0 -7
- package/ui/Select/Select.tsx +0 -113
- package/ui/Select/Select.types.ts +0 -26
- package/ui/Select/index.ts +0 -2
- package/ui/ShimmerText/ShimmerText.tsx +0 -48
- package/ui/ShimmerText/ShimmerText.types.ts +0 -12
- package/ui/ShimmerText/index.ts +0 -2
- package/ui/SideNav/SideNav.tsx +0 -222
- package/ui/SideNav/SideNav.types.ts +0 -42
- package/ui/SideNav/index.ts +0 -8
- package/ui/Slider/Slider.tsx +0 -187
- package/ui/Slider/Slider.types.ts +0 -11
- package/ui/Slider/index.ts +0 -2
- package/ui/Spinner/Spinner.tsx +0 -19
- package/ui/Spinner/index.ts +0 -2
- package/ui/Switch/Switch.tsx +0 -65
- package/ui/Switch/Switch.types.ts +0 -12
- package/ui/Switch/index.ts +0 -2
- package/ui/Table/Table.tsx +0 -108
- package/ui/Table/Table.types.ts +0 -26
- package/ui/Table/index.ts +0 -8
- package/ui/Tabs/Tabs.tsx +0 -150
- package/ui/Tabs/Tabs.types.ts +0 -21
- package/ui/Tabs/index.ts +0 -2
- package/ui/Textarea/Textarea.tsx +0 -38
- package/ui/Textarea/Textarea.types.ts +0 -14
- package/ui/Textarea/index.ts +0 -2
- package/ui/ThinkingAnimation/ThinkingAnimation.tsx +0 -31
- package/ui/ThinkingAnimation/ThinkingAnimation.types.ts +0 -8
- package/ui/ThinkingAnimation/index.ts +0 -2
- package/ui/Timeline/Timeline.tsx +0 -47
- package/ui/Timeline/Timeline.types.ts +0 -16
- package/ui/Toast/Toast.tsx +0 -89
- package/ui/Toast/Toast.types.ts +0 -17
- package/ui/Toast/index.ts +0 -2
- package/ui/Tooltip/Tooltip.tsx +0 -101
- package/ui/Tooltip/index.ts +0 -2
- package/ui/patterns/ActivityPattern/ActivityFeed.tsx +0 -77
- package/ui/patterns/ActivityPattern/ActivityPattern.tsx +0 -120
- package/ui/patterns/ActivityPattern/ActivityTasks.tsx +0 -86
- package/ui/patterns/ActivityPattern/TaskDrawer.tsx +0 -186
- package/ui/patterns/ActivityPattern/index.ts +0 -2
- package/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.tsx +0 -159
- package/ui/patterns/AssistantWorkspacePattern/index.ts +0 -2
- package/ui/patterns/DashboardPattern/DashboardPattern.tsx +0 -102
- package/ui/patterns/DashboardPattern/index.ts +0 -1
- package/ui/patterns/DashboardPattern/patterns.module.css +0 -6
- package/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.tsx +0 -125
- package/ui/patterns/EmptyFirstRunPattern/index.ts +0 -2
- package/ui/patterns/InboxPattern/InboxPattern.tsx +0 -192
- package/ui/patterns/InboxPattern/InboxReplyDrawer.tsx +0 -97
- package/ui/patterns/InboxPattern/inbox-data.ts +0 -101
- package/ui/patterns/InboxPattern/index.ts +0 -2
- package/ui/patterns/InviteMembersPattern/InviteMembersPattern.tsx +0 -148
- package/ui/patterns/InviteMembersPattern/index.ts +0 -2
- package/ui/patterns/ListDetailPattern/ListDetailPattern.tsx +0 -145
- package/ui/patterns/ListDetailPattern/index.ts +0 -2
- package/ui/patterns/SettingsFormPattern/SettingsFormPattern.tsx +0 -89
- package/ui/patterns/SettingsFormPattern/index.ts +0 -3
- package/ui/shared/ChartFrame.tsx +0 -87
- package/ui/shared/chartMath.ts +0 -228
- package/ui/shared/useChartSize.ts +0 -22
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./ChartFrame.module.js";
|
|
3
|
+
import { useId as t, useState as n } from "react";
|
|
4
|
+
import { BarChart3 as r, Table2 as i } from "lucide-react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
//#region ui/shared/ChartFrame.tsx
|
|
7
|
+
function s({ title: s, description: c, legend: l, children: u, table: d, footnote: f, isEmpty: p = !1, emptyLabel: m = "No data for this range", isLoading: h = !1, className: g = "" }) {
|
|
8
|
+
let [_, v] = n("chart"), y = t(), b = t(), x = t(), S = _ === "table" && !!d;
|
|
9
|
+
return /* @__PURE__ */ o("figure", {
|
|
10
|
+
className: `${e.frame} ${g}`.trim(),
|
|
11
|
+
"aria-labelledby": s ? y : void 0,
|
|
12
|
+
"aria-describedby": c ? b : void 0,
|
|
13
|
+
children: [
|
|
14
|
+
s || d ? /* @__PURE__ */ o("figcaption", {
|
|
15
|
+
className: e.header,
|
|
16
|
+
children: [/* @__PURE__ */ o("div", {
|
|
17
|
+
className: e.heading,
|
|
18
|
+
children: [s ? /* @__PURE__ */ a("h3", {
|
|
19
|
+
id: y,
|
|
20
|
+
className: e.title,
|
|
21
|
+
children: s
|
|
22
|
+
}) : null, c ? /* @__PURE__ */ a("p", {
|
|
23
|
+
id: b,
|
|
24
|
+
className: e.description,
|
|
25
|
+
children: c
|
|
26
|
+
}) : null]
|
|
27
|
+
}), d ? /* @__PURE__ */ a("div", {
|
|
28
|
+
className: e.actions,
|
|
29
|
+
children: /* @__PURE__ */ o("button", {
|
|
30
|
+
type: "button",
|
|
31
|
+
className: e.toggle,
|
|
32
|
+
onClick: () => v(S ? "chart" : "table"),
|
|
33
|
+
"aria-expanded": S,
|
|
34
|
+
"aria-controls": x,
|
|
35
|
+
children: [a(S ? r : i, {
|
|
36
|
+
"aria-hidden": "true",
|
|
37
|
+
size: 14
|
|
38
|
+
}), /* @__PURE__ */ a("span", { children: S ? "Chart" : "Table" })]
|
|
39
|
+
})
|
|
40
|
+
}) : null]
|
|
41
|
+
}) : null,
|
|
42
|
+
l,
|
|
43
|
+
/* @__PURE__ */ a("div", {
|
|
44
|
+
id: x,
|
|
45
|
+
className: `${e.body}${h ? ` ${e.loading}` : ""}`,
|
|
46
|
+
children: p ? /* @__PURE__ */ a("p", {
|
|
47
|
+
className: e.empty,
|
|
48
|
+
children: m
|
|
49
|
+
}) : S ? d : u
|
|
50
|
+
}),
|
|
51
|
+
f ? /* @__PURE__ */ a("p", {
|
|
52
|
+
className: e.footnote,
|
|
53
|
+
children: f
|
|
54
|
+
}) : null
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { s as ChartFrame };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=ChartFrame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartFrame.js","names":[],"sources":["../../../ui/shared/ChartFrame.tsx"],"sourcesContent":["\"use client\";\n\nimport { BarChart3, Table2 } from \"lucide-react\";\nimport { useId, useState, type ReactNode } from \"react\";\nimport styles from \"./ChartFrame.module.css\";\n\nexport interface ChartFrameProps {\n title?: string;\n description?: string;\n legend?: ReactNode;\n children: ReactNode;\n table?: ReactNode;\n footnote?: string;\n isEmpty?: boolean;\n emptyLabel?: string;\n isLoading?: boolean;\n className?: string;\n}\n\nexport function ChartFrame({\n title,\n description,\n legend,\n children,\n table,\n footnote,\n isEmpty = false,\n emptyLabel = \"No data for this range\",\n isLoading = false,\n className = \"\",\n}: ChartFrameProps) {\n const [view, setView] = useState<\"chart\" | \"table\">(\"chart\");\n const titleId = useId();\n const descriptionId = useId();\n const panelId = useId();\n const showTable = view === \"table\" && Boolean(table);\n\n return (\n <figure\n className={`${styles.frame} ${className}`.trim()}\n aria-labelledby={title ? titleId : undefined}\n aria-describedby={description ? descriptionId : undefined}\n >\n {title || table ? (\n <figcaption className={styles.header}>\n <div className={styles.heading}>\n {title ? (\n <h3 id={titleId} className={styles.title}>\n {title}\n </h3>\n ) : null}\n {description ? (\n <p id={descriptionId} className={styles.description}>\n {description}\n </p>\n ) : null}\n </div>\n {table ? (\n <div className={styles.actions}>\n <button\n type=\"button\"\n className={styles.toggle}\n onClick={() => setView(showTable ? \"chart\" : \"table\")}\n aria-expanded={showTable}\n aria-controls={panelId}\n >\n {showTable ? <BarChart3 aria-hidden=\"true\" size={14} /> : <Table2 aria-hidden=\"true\" size={14} />}\n <span>{showTable ? \"Chart\" : \"Table\"}</span>\n </button>\n </div>\n ) : null}\n </figcaption>\n ) : null}\n\n {legend}\n\n <div\n id={panelId}\n className={`${styles.body}${isLoading ? ` ${styles.loading}` : \"\"}`}\n >\n {isEmpty ? <p className={styles.empty}>{emptyLabel}</p> : showTable ? table : children}\n </div>\n\n {footnote ? <p className={styles.footnote}>{footnote}</p> : null}\n </figure>\n );\n}\n"],"mappings":";;;;;;AAmBA,SAAgB,EAAW,EACzB,UACA,gBACA,WACA,aACA,UACA,aACA,aAAU,IACV,gBAAa,0BACb,eAAY,IACZ,eAAY,MACM;CAClB,IAAM,CAAC,GAAM,KAAW,EAA4B,OAAO,GACrD,IAAU,EAAM,GAChB,IAAgB,EAAM,GACtB,IAAU,EAAM,GAChB,IAAY,MAAS,WAAW,EAAQ;CAE9C,OACE,kBAAC,UAAD;EACE,WAAW,GAAG,EAAO,MAAM,GAAG,IAAY,KAAK;EAC/C,mBAAiB,IAAQ,IAAU,KAAA;EACnC,oBAAkB,IAAc,IAAgB,KAAA;EAHlD,UAAA;GAKG,KAAS,IACR,kBAAC,cAAD;IAAY,WAAW,EAAO;IAA9B,UAAA,CACE,kBAAC,OAAD;KAAK,WAAW,EAAO;KAAvB,UAAA,CACG,IACC,kBAAC,MAAD;MAAI,IAAI;MAAS,WAAW,EAAO;MAChC,UAAA;KACC,CAAA,IACF,MACH,IACC,kBAAC,KAAD;MAAG,IAAI;MAAe,WAAW,EAAO;MACrC,UAAA;KACA,CAAA,IACD,IACD;IACJ,CAAA,GAAA,IACC,kBAAC,OAAD;KAAK,WAAW,EAAO;KACrB,UAAA,kBAAC,UAAD;MACE,MAAK;MACL,WAAW,EAAO;MAClB,eAAe,EAAQ,IAAY,UAAU,OAAO;MACpD,iBAAe;MACf,iBAAe;MALjB,UAAA,CAOe,EAAZ,IAAa,IAA6C,GAA9C;OAAW,eAAY;OAAO,MAAM;MAAK,CAA0C,GAChG,kBAAC,QAAD,EAAA,UAAO,IAAY,UAAU,QAAc,CAAA,CACrC;;IACL,CAAA,IACH,IACM;GACV,CAAA,IAAA;GAEH;GAED,kBAAC,OAAD;IACE,IAAI;IACJ,WAAW,GAAG,EAAO,OAAO,IAAY,IAAI,EAAO,YAAY;IAE9D,UAAA,IAAU,kBAAC,KAAD;KAAG,WAAW,EAAO;KAAQ,UAAA;IAAc,CAAA,IAAI,IAAY,IAAQ;GAC3E,CAAA;GAEJ,IAAW,kBAAC,KAAD;IAAG,WAAW,EAAO;IAAW,UAAA;GAAY,CAAA,IAAI;EACtD;;AAEZ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._frame_ioq0h_1 {
|
|
2
2
|
display: grid;
|
|
3
3
|
gap: var(--space-4);
|
|
4
4
|
margin: 0;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
color: var(--text-primary);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
._header_ioq0h_16 {
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-wrap: wrap;
|
|
19
19
|
align-items: flex-start;
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
min-width: 0;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
._heading_ioq0h_25 {
|
|
26
26
|
display: grid;
|
|
27
27
|
gap: var(--space-1);
|
|
28
28
|
min-width: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.
|
|
31
|
+
._title_ioq0h_31 {
|
|
32
32
|
margin: 0;
|
|
33
33
|
font-family: var(--font-sans);
|
|
34
34
|
font-size: var(--type-size-heading-sm);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
color: var(--text-primary);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.
|
|
40
|
+
._description_ioq0h_40 {
|
|
41
41
|
margin: 0;
|
|
42
42
|
font-family: var(--font-sans);
|
|
43
43
|
font-size: var(--type-size-caption);
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
color: var(--text-secondary);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
48
|
+
._actions_ioq0h_48 {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
gap: var(--space-1);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
._toggle_ioq0h_54 {
|
|
55
55
|
display: inline-flex;
|
|
56
56
|
align-items: center;
|
|
57
57
|
gap: var(--space-1);
|
|
@@ -69,27 +69,27 @@
|
|
|
69
69
|
border-color var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.
|
|
72
|
+
._toggle_ioq0h_54:hover {
|
|
73
73
|
border-color: var(--border-strong);
|
|
74
74
|
color: var(--text-primary);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.
|
|
77
|
+
._toggle_ioq0h_54:focus-visible {
|
|
78
78
|
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
79
79
|
outline-offset: var(--space-inset-2xs);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.
|
|
82
|
+
._body_ioq0h_82 {
|
|
83
83
|
min-width: 0;
|
|
84
84
|
overflow: visible;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.
|
|
87
|
+
._loading_ioq0h_87 {
|
|
88
88
|
opacity: 0.6;
|
|
89
89
|
transition: opacity var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.
|
|
92
|
+
._empty_ioq0h_92 {
|
|
93
93
|
display: grid;
|
|
94
94
|
place-items: center;
|
|
95
95
|
min-height: 15rem;
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
color: var(--text-muted);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.
|
|
104
|
+
._footnote_ioq0h_104 {
|
|
105
105
|
margin: 0;
|
|
106
106
|
font-family: var(--font-sans);
|
|
107
107
|
font-size: var(--type-size-caption);
|
|
108
108
|
color: var(--text-muted);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
.
|
|
111
|
+
._legend_ioq0h_111 {
|
|
112
112
|
display: flex;
|
|
113
113
|
flex-wrap: wrap;
|
|
114
114
|
gap: var(--space-2) var(--space-4);
|
|
@@ -117,17 +117,17 @@
|
|
|
117
117
|
list-style: none;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.
|
|
120
|
+
._legendInteractive_ioq0h_120 > li {
|
|
121
121
|
display: contents;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.
|
|
124
|
+
._legendVertical_ioq0h_124 {
|
|
125
125
|
display: grid;
|
|
126
126
|
gap: var(--space-2);
|
|
127
127
|
align-content: center;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.
|
|
130
|
+
._legendItem_ioq0h_130 {
|
|
131
131
|
display: inline-flex;
|
|
132
132
|
align-items: center;
|
|
133
133
|
gap: var(--space-1);
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
color: var(--text-secondary);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.
|
|
139
|
+
._legendVertical_ioq0h_124 ._legendItem_ioq0h_130 {
|
|
140
140
|
display: grid;
|
|
141
141
|
grid-template-columns: auto 1fr auto;
|
|
142
142
|
align-items: center;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
width: 100%;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.
|
|
147
|
+
._legendButton_ioq0h_147 {
|
|
148
148
|
margin: 0;
|
|
149
149
|
padding: 0;
|
|
150
150
|
border: 0;
|
|
@@ -157,40 +157,40 @@
|
|
|
157
157
|
transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.
|
|
160
|
+
._legendButton_ioq0h_147:focus-visible {
|
|
161
161
|
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
162
162
|
outline-offset: var(--space-inset-2xs);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.
|
|
165
|
+
._legendItemDimmed_ioq0h_165 {
|
|
166
166
|
opacity: 0.45;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
.
|
|
169
|
+
._legendSwatch_ioq0h_169 {
|
|
170
170
|
width: 0.625rem;
|
|
171
171
|
height: 0.625rem;
|
|
172
172
|
border-radius: var(--radius-control-sm);
|
|
173
173
|
flex: none;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
.
|
|
176
|
+
._legendSwatchPill_ioq0h_176 {
|
|
177
177
|
width: 0.5rem;
|
|
178
178
|
height: 0.375rem;
|
|
179
179
|
border-radius: var(--radius-pill);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
.
|
|
182
|
+
._legendSwatchLine_ioq0h_182 {
|
|
183
183
|
width: 0.75rem;
|
|
184
184
|
height: 0.156rem;
|
|
185
185
|
border-radius: var(--radius-pill);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
.
|
|
188
|
+
._legendMeta_ioq0h_188 {
|
|
189
189
|
color: var(--text-muted);
|
|
190
190
|
font-variant-numeric: tabular-nums;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
.
|
|
193
|
+
._legendPercent_ioq0h_193 {
|
|
194
194
|
color: var(--text-primary);
|
|
195
195
|
font-variant-numeric: tabular-nums;
|
|
196
196
|
font-weight: var(--type-weight-label);
|
|
@@ -198,16 +198,16 @@
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
@media (prefers-reduced-motion: reduce) {
|
|
201
|
-
.
|
|
201
|
+
._legendButton_ioq0h_147 {
|
|
202
202
|
transition: none;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
.
|
|
206
|
+
._tableScroll_ioq0h_206 {
|
|
207
207
|
overflow-x: auto;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
.
|
|
210
|
+
._table_ioq0h_206 {
|
|
211
211
|
width: 100%;
|
|
212
212
|
border-collapse: collapse;
|
|
213
213
|
font-family: var(--font-sans);
|
|
@@ -215,33 +215,33 @@
|
|
|
215
215
|
line-height: var(--type-line-body);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.
|
|
219
|
-
.
|
|
218
|
+
._table_ioq0h_206 th,
|
|
219
|
+
._table_ioq0h_206 td {
|
|
220
220
|
padding: var(--space-1) var(--space-2);
|
|
221
221
|
border-bottom: var(--border-width-thin) solid var(--border-faint);
|
|
222
222
|
text-align: start;
|
|
223
223
|
background-color: var(--surface-card);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.
|
|
226
|
+
._table_ioq0h_206 thead th {
|
|
227
227
|
color: var(--text-secondary);
|
|
228
228
|
font-size: var(--type-size-caption);
|
|
229
229
|
font-weight: var(--type-weight-label);
|
|
230
230
|
white-space: nowrap;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.
|
|
233
|
+
._table_ioq0h_206 tbody th {
|
|
234
234
|
color: var(--text-primary);
|
|
235
235
|
font-weight: var(--type-weight-label);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
.
|
|
238
|
+
._table_ioq0h_206 td {
|
|
239
239
|
color: var(--text-primary);
|
|
240
240
|
font-variant-numeric: tabular-nums;
|
|
241
241
|
text-align: end;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
.
|
|
244
|
+
._tooltip_ioq0h_244 {
|
|
245
245
|
position: absolute;
|
|
246
246
|
z-index: var(--z-tooltip);
|
|
247
247
|
min-width: 9.5rem;
|
|
@@ -256,18 +256,18 @@
|
|
|
256
256
|
transform: translate(0.5rem, -50%);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
.
|
|
259
|
+
._tooltipFlip_ioq0h_259 {
|
|
260
260
|
transform: translate(calc(-100% - 0.5rem), -50%);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
.
|
|
263
|
+
._tooltipTitle_ioq0h_263 {
|
|
264
264
|
margin: 0;
|
|
265
265
|
font-size: var(--type-size-caption);
|
|
266
266
|
font-weight: var(--type-weight-label);
|
|
267
267
|
color: var(--text-primary);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
.
|
|
270
|
+
._tooltipRow_ioq0h_270 {
|
|
271
271
|
display: flex;
|
|
272
272
|
align-items: center;
|
|
273
273
|
gap: var(--space-2);
|
|
@@ -276,19 +276,19 @@
|
|
|
276
276
|
color: var(--text-secondary);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
.
|
|
279
|
+
._tooltipKey_ioq0h_279 {
|
|
280
280
|
width: 0.5rem;
|
|
281
281
|
height: 0.375rem;
|
|
282
282
|
border-radius: var(--radius-pill);
|
|
283
283
|
flex: none;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
.
|
|
286
|
+
._tooltipShare_ioq0h_286 {
|
|
287
287
|
flex: 1;
|
|
288
288
|
min-width: 0;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
.
|
|
291
|
+
._tooltipValue_ioq0h_291 {
|
|
292
292
|
color: var(--text-primary);
|
|
293
293
|
font-variant-numeric: tabular-nums;
|
|
294
294
|
font-weight: var(--type-weight-label);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "./ChartFrame.module.css";
|
|
2
|
+
//#region ui/shared/ChartFrame.module.css
|
|
3
|
+
var e = "_frame_ioq0h_1", t = "_header_ioq0h_16", n = "_heading_ioq0h_25", r = "_title_ioq0h_31", i = "_description_ioq0h_40", a = "_actions_ioq0h_48", o = "_toggle_ioq0h_54", s = "_body_ioq0h_82", c = "_loading_ioq0h_87", l = "_empty_ioq0h_92", u = "_footnote_ioq0h_104", d = "_legend_ioq0h_111", f = "_legendInteractive_ioq0h_120", p = "_legendVertical_ioq0h_124", m = "_legendItem_ioq0h_130", h = "_legendButton_ioq0h_147", g = "_legendItemDimmed_ioq0h_165", _ = "_legendSwatch_ioq0h_169", v = "_legendSwatchPill_ioq0h_176", y = "_legendSwatchLine_ioq0h_182", b = "_legendMeta_ioq0h_188", x = "_legendPercent_ioq0h_193", S = "_tableScroll_ioq0h_206", C = "_table_ioq0h_206", w = "_tooltip_ioq0h_244", T = "_tooltipFlip_ioq0h_259", E = "_tooltipTitle_ioq0h_263", D = "_tooltipRow_ioq0h_270", O = "_tooltipKey_ioq0h_279", k = "_tooltipShare_ioq0h_286", A = "_tooltipValue_ioq0h_291", j = {
|
|
4
|
+
frame: e,
|
|
5
|
+
header: t,
|
|
6
|
+
heading: n,
|
|
7
|
+
title: r,
|
|
8
|
+
description: i,
|
|
9
|
+
actions: a,
|
|
10
|
+
toggle: o,
|
|
11
|
+
body: s,
|
|
12
|
+
loading: c,
|
|
13
|
+
empty: l,
|
|
14
|
+
footnote: u,
|
|
15
|
+
legend: d,
|
|
16
|
+
legendInteractive: f,
|
|
17
|
+
legendVertical: p,
|
|
18
|
+
legendItem: m,
|
|
19
|
+
legendButton: h,
|
|
20
|
+
legendItemDimmed: g,
|
|
21
|
+
legendSwatch: _,
|
|
22
|
+
legendSwatchPill: v,
|
|
23
|
+
legendSwatchLine: y,
|
|
24
|
+
legendMeta: b,
|
|
25
|
+
legendPercent: x,
|
|
26
|
+
tableScroll: S,
|
|
27
|
+
table: C,
|
|
28
|
+
tooltip: w,
|
|
29
|
+
tooltipFlip: T,
|
|
30
|
+
tooltipTitle: E,
|
|
31
|
+
tooltipRow: D,
|
|
32
|
+
tooltipKey: O,
|
|
33
|
+
tooltipShare: k,
|
|
34
|
+
tooltipValue: A
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as actions, s as body, j as default, i as description, l as empty, u as footnote, e as frame, t as header, n as heading, d as legend, h as legendButton, f as legendInteractive, m as legendItem, g as legendItemDimmed, b as legendMeta, x as legendPercent, _ as legendSwatch, y as legendSwatchLine, v as legendSwatchPill, p as legendVertical, c as loading, C as table, S as tableScroll, r as title, o as toggle, w as tooltip, T as tooltipFlip, O as tooltipKey, D as tooltipRow, k as tooltipShare, E as tooltipTitle, A as tooltipValue };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=ChartFrame.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartFrame.module.js","names":[],"sources":["../../../ui/shared/ChartFrame.module.css"],"sourcesContent":[".frame {\n display: grid;\n gap: var(--space-4);\n margin: 0;\n padding: var(--space-6);\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n border: var(--border-width-thin) solid var(--border-faint);\n border-radius: var(--radius-surface-md);\n background: var(--surface-card);\n box-shadow: var(--shadow-sm);\n color: var(--text-primary);\n}\n\n.header {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--space-2);\n min-width: 0;\n}\n\n.heading {\n display: grid;\n gap: var(--space-1);\n min-width: 0;\n}\n\n.title {\n margin: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-heading-sm);\n font-weight: var(--type-weight-heading);\n line-height: var(--type-line-heading);\n color: var(--text-primary);\n}\n\n.description {\n margin: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n line-height: var(--type-line-body);\n color: var(--text-secondary);\n}\n\n.actions {\n display: flex;\n align-items: center;\n gap: var(--space-1);\n}\n\n.toggle {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n padding: var(--space-1) var(--space-2);\n border: var(--border-width-thin) solid var(--border-faint);\n border-radius: var(--radius-control-sm);\n background: var(--surface-card);\n color: var(--text-secondary);\n cursor: pointer;\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n font-weight: var(--type-weight-label);\n transition:\n color var(--motion-interaction-duration) var(--motion-interaction-easing),\n border-color var(--motion-interaction-duration) var(--motion-interaction-easing);\n}\n\n.toggle:hover {\n border-color: var(--border-strong);\n color: var(--text-primary);\n}\n\n.toggle:focus-visible {\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: var(--space-inset-2xs);\n}\n\n.body {\n min-width: 0;\n overflow: visible;\n}\n\n.loading {\n opacity: 0.6;\n transition: opacity var(--motion-interaction-duration) var(--motion-interaction-easing);\n}\n\n.empty {\n display: grid;\n place-items: center;\n min-height: 15rem;\n margin: 0;\n padding-inline: var(--space-4);\n text-align: center;\n font-family: var(--font-sans);\n font-size: var(--type-size-body-sm);\n color: var(--text-muted);\n}\n\n.footnote {\n margin: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n color: var(--text-muted);\n}\n\n.legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-2) var(--space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.legendInteractive > li {\n display: contents;\n}\n\n.legendVertical {\n display: grid;\n gap: var(--space-2);\n align-content: center;\n}\n\n.legendItem {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n color: var(--text-secondary);\n}\n\n.legendVertical .legendItem {\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n column-gap: var(--space-2);\n width: 100%;\n}\n\n.legendButton {\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n color: inherit;\n text-align: inherit;\n cursor: pointer;\n border-radius: var(--radius-control-sm);\n transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1);\n}\n\n.legendButton:focus-visible {\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: var(--space-inset-2xs);\n}\n\n.legendItemDimmed {\n opacity: 0.45;\n}\n\n.legendSwatch {\n width: 0.625rem;\n height: 0.625rem;\n border-radius: var(--radius-control-sm);\n flex: none;\n}\n\n.legendSwatchPill {\n width: 0.5rem;\n height: 0.375rem;\n border-radius: var(--radius-pill);\n}\n\n.legendSwatchLine {\n width: 0.75rem;\n height: 0.156rem;\n border-radius: var(--radius-pill);\n}\n\n.legendMeta {\n color: var(--text-muted);\n font-variant-numeric: tabular-nums;\n}\n\n.legendPercent {\n color: var(--text-primary);\n font-variant-numeric: tabular-nums;\n font-weight: var(--type-weight-label);\n text-align: end;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .legendButton {\n transition: none;\n }\n}\n\n.tableScroll {\n overflow-x: auto;\n}\n\n.table {\n width: 100%;\n border-collapse: collapse;\n font-family: var(--font-sans);\n font-size: var(--type-size-body-sm);\n line-height: var(--type-line-body);\n}\n\n.table th,\n.table td {\n padding: var(--space-1) var(--space-2);\n border-bottom: var(--border-width-thin) solid var(--border-faint);\n text-align: start;\n background-color: var(--surface-card);\n}\n\n.table thead th {\n color: var(--text-secondary);\n font-size: var(--type-size-caption);\n font-weight: var(--type-weight-label);\n white-space: nowrap;\n}\n\n.table tbody th {\n color: var(--text-primary);\n font-weight: var(--type-weight-label);\n}\n\n.table td {\n color: var(--text-primary);\n font-variant-numeric: tabular-nums;\n text-align: end;\n}\n\n.tooltip {\n position: absolute;\n z-index: var(--z-tooltip);\n min-width: 9.5rem;\n padding: var(--space-2) var(--space-3);\n border: var(--border-width-thin) solid var(--border-faint);\n border-radius: var(--radius-surface-md);\n background: var(--surface-card);\n box-shadow: var(--shadow-md);\n color: var(--text-primary);\n font-family: var(--font-sans);\n pointer-events: none;\n transform: translate(0.5rem, -50%);\n}\n\n.tooltipFlip {\n transform: translate(calc(-100% - 0.5rem), -50%);\n}\n\n.tooltipTitle {\n margin: 0;\n font-size: var(--type-size-caption);\n font-weight: var(--type-weight-label);\n color: var(--text-primary);\n}\n\n.tooltipRow {\n display: flex;\n align-items: center;\n gap: var(--space-2);\n margin-top: var(--space-1);\n font-size: var(--type-size-caption);\n color: var(--text-secondary);\n}\n\n.tooltipKey {\n width: 0.5rem;\n height: 0.375rem;\n border-radius: var(--radius-pill);\n flex: none;\n}\n\n.tooltipShare {\n flex: 1;\n min-width: 0;\n}\n\n.tooltipValue {\n color: var(--text-primary);\n font-variant-numeric: tabular-nums;\n font-weight: var(--type-weight-label);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export interface ChartDatum {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ChartSeries {
|
|
7
|
+
label: string;
|
|
8
|
+
data: number[];
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CHART_COLORS: readonly ["var(--fill-brand)", "var(--fill-success)", "var(--fill-warning)", "var(--fill-danger)", "var(--fill-info)"];
|
|
12
|
+
export declare function formatValue(value: number): string;
|
|
13
|
+
export declare function formatAxisTick(value: number): string;
|
|
14
|
+
export declare function colorAt(index: number, override?: string): string;
|
|
15
|
+
export interface PreparedSegment extends ChartDatum {
|
|
16
|
+
share: number;
|
|
17
|
+
color: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function prepareSegments(data: ChartDatum[], options?: {
|
|
20
|
+
maxSegments?: number;
|
|
21
|
+
sort?: boolean;
|
|
22
|
+
otherLabel?: string;
|
|
23
|
+
}): PreparedSegment[];
|
|
24
|
+
export declare function normalizeBarInput(input: {
|
|
25
|
+
data?: ChartDatum[];
|
|
26
|
+
categories?: string[];
|
|
27
|
+
series?: ChartSeries[];
|
|
28
|
+
}): {
|
|
29
|
+
categories: string[];
|
|
30
|
+
series: ChartSeries[];
|
|
31
|
+
};
|
|
32
|
+
export declare function normalizeLineInput(input: {
|
|
33
|
+
data?: ChartDatum[];
|
|
34
|
+
labels?: string[];
|
|
35
|
+
series?: ChartSeries[];
|
|
36
|
+
}): {
|
|
37
|
+
labels: string[];
|
|
38
|
+
series: ChartSeries[];
|
|
39
|
+
};
|
|
40
|
+
export declare function seriesExtent(series: ChartSeries[], options?: {
|
|
41
|
+
includeZero?: boolean;
|
|
42
|
+
}): [number, number];
|
|
43
|
+
export declare function niceTicks(min: number, max: number, count?: number): {
|
|
44
|
+
ticks: number[];
|
|
45
|
+
min: number;
|
|
46
|
+
max: number;
|
|
47
|
+
};
|
|
48
|
+
export declare function linearScale(domain: [number, number], range: [number, number]): (value: number) => number;
|
|
49
|
+
export declare const CHART_MARGINS: {
|
|
50
|
+
readonly top: 12;
|
|
51
|
+
readonly right: 12;
|
|
52
|
+
readonly bottom: 36;
|
|
53
|
+
readonly left: 44;
|
|
54
|
+
};
|
|
55
|
+
export declare const TAU: number;
|
|
56
|
+
export declare function polarToCartesian(cx: number, cy: number, radius: number, angle: number): {
|
|
57
|
+
x: number;
|
|
58
|
+
y: number;
|
|
59
|
+
};
|
|
60
|
+
export declare function pointOnCircle(cx: number, cy: number, radius: number, angle: number): {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
};
|
|
64
|
+
export declare function wedgePath(options: {
|
|
65
|
+
cx: number;
|
|
66
|
+
cy: number;
|
|
67
|
+
radius: number;
|
|
68
|
+
startAngle: number;
|
|
69
|
+
endAngle: number;
|
|
70
|
+
}): string;
|
|
71
|
+
export declare function ringPath(options: {
|
|
72
|
+
cx: number;
|
|
73
|
+
cy: number;
|
|
74
|
+
innerRadius: number;
|
|
75
|
+
outerRadius: number;
|
|
76
|
+
startAngle: number;
|
|
77
|
+
endAngle: number;
|
|
78
|
+
}): string;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
//#region ui/shared/chartMath.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"var(--fill-brand)",
|
|
4
|
+
"var(--fill-success)",
|
|
5
|
+
"var(--fill-warning)",
|
|
6
|
+
"var(--fill-danger)",
|
|
7
|
+
"var(--fill-info)"
|
|
8
|
+
];
|
|
9
|
+
function t(e) {
|
|
10
|
+
return Number.isFinite(e) ? Math.abs(e) >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : Math.abs(e) >= 1e4 ? `${(e / 1e3).toFixed(1)}k` : Number.isInteger(e) ? e.toLocaleString("en-US") : e.toLocaleString("en-US", { maximumFractionDigits: 1 }) : "—";
|
|
11
|
+
}
|
|
12
|
+
function n(e) {
|
|
13
|
+
return Number.isFinite(e) ? Math.abs(e) >= 1e6 ? `${e / 1e6}M` : Math.abs(e) >= 1e3 ? `${e / 1e3}k` : String(e) : "";
|
|
14
|
+
}
|
|
15
|
+
function r(t, n) {
|
|
16
|
+
return n ?? e[t % e.length];
|
|
17
|
+
}
|
|
18
|
+
function i(e, t = {}) {
|
|
19
|
+
let { maxSegments: n = 6, sort: i = !0, otherLabel: a = "Other" } = t, o = e.filter((e) => Number.isFinite(e.value) && e.value > 0), s = i ? [...o].sort((e, t) => t.value - e.value) : [...o], c = s.slice(0, n), l = s.slice(n).reduce((e, t) => e + t.value, 0);
|
|
20
|
+
l > 0 && c.push({
|
|
21
|
+
label: a,
|
|
22
|
+
value: l
|
|
23
|
+
});
|
|
24
|
+
let u = c.reduce((e, t) => e + t.value, 0);
|
|
25
|
+
return c.map((e, t) => ({
|
|
26
|
+
...e,
|
|
27
|
+
color: r(t, e.color),
|
|
28
|
+
share: u > 0 ? e.value / u : 0
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
function a(t) {
|
|
32
|
+
if (t.categories?.length && t.series?.length) return {
|
|
33
|
+
categories: t.categories,
|
|
34
|
+
series: t.series.map((e, t) => ({
|
|
35
|
+
...e,
|
|
36
|
+
color: r(t, e.color)
|
|
37
|
+
}))
|
|
38
|
+
};
|
|
39
|
+
let n = t.data ?? [];
|
|
40
|
+
return {
|
|
41
|
+
categories: n.map((e) => e.label),
|
|
42
|
+
series: [{
|
|
43
|
+
label: "Value",
|
|
44
|
+
data: n.map((e) => e.value),
|
|
45
|
+
color: e[0]
|
|
46
|
+
}]
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function o(t) {
|
|
50
|
+
if (t.labels?.length && t.series?.length) return {
|
|
51
|
+
labels: t.labels,
|
|
52
|
+
series: t.series.map((e, t) => ({
|
|
53
|
+
...e,
|
|
54
|
+
color: r(t, e.color)
|
|
55
|
+
}))
|
|
56
|
+
};
|
|
57
|
+
let n = t.data ?? [];
|
|
58
|
+
return {
|
|
59
|
+
labels: n.map((e) => e.label),
|
|
60
|
+
series: [{
|
|
61
|
+
label: "Value",
|
|
62
|
+
data: n.map((e) => e.value),
|
|
63
|
+
color: e[0]
|
|
64
|
+
}]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function s(e, t = {}) {
|
|
68
|
+
let n = e.flatMap((e) => e.data).filter((e) => Number.isFinite(e));
|
|
69
|
+
if (!n.length) return [0, 1];
|
|
70
|
+
let r = Math.min(...n), i = Math.max(...n);
|
|
71
|
+
return t.includeZero && (r = Math.min(r, 0), i = Math.max(i, 0)), r === i ? r === 0 ? [0, 1] : [r * .9, i * 1.1] : [r, i];
|
|
72
|
+
}
|
|
73
|
+
function c(e, t, n = 5) {
|
|
74
|
+
let r = l(l(t - e, !1) / Math.max(n - 1, 1), !0), i = Math.floor(e / r) * r, a = Math.ceil(t / r) * r, o = [];
|
|
75
|
+
for (let e = i; e <= a + r / 2; e += r) o.push(Number(e.toFixed(10)));
|
|
76
|
+
return {
|
|
77
|
+
ticks: o,
|
|
78
|
+
min: i,
|
|
79
|
+
max: a
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function l(e, t) {
|
|
83
|
+
let n = Math.floor(Math.log10(Math.abs(e) || 1)), r = e / 10 ** n, i;
|
|
84
|
+
return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * 10 ** n;
|
|
85
|
+
}
|
|
86
|
+
function u(e, t) {
|
|
87
|
+
let [n, r] = e, [i, a] = t, o = r - n || 1;
|
|
88
|
+
return (e) => i + (e - n) / o * (a - i);
|
|
89
|
+
}
|
|
90
|
+
var d = {
|
|
91
|
+
top: 12,
|
|
92
|
+
right: 12,
|
|
93
|
+
bottom: 36,
|
|
94
|
+
left: 44
|
|
95
|
+
}, f = Math.PI * 2;
|
|
96
|
+
function p(e, t, n, r) {
|
|
97
|
+
return {
|
|
98
|
+
x: e + n * Math.cos(r - Math.PI / 2),
|
|
99
|
+
y: t + n * Math.sin(r - Math.PI / 2)
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function m(e, t, n, r) {
|
|
103
|
+
return p(e, t, n, r);
|
|
104
|
+
}
|
|
105
|
+
function h(e) {
|
|
106
|
+
let { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e, o = p(t, n, r, a), s = p(t, n, r, i), c = +(a - i > Math.PI);
|
|
107
|
+
return [
|
|
108
|
+
`M ${t} ${n}`,
|
|
109
|
+
`L ${o.x} ${o.y}`,
|
|
110
|
+
`A ${r} ${r} 0 ${c} 0 ${s.x} ${s.y}`,
|
|
111
|
+
"Z"
|
|
112
|
+
].join(" ");
|
|
113
|
+
}
|
|
114
|
+
function g(e) {
|
|
115
|
+
let { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = p(t, n, i, o), c = p(t, n, i, a), l = p(t, n, r, a), u = p(t, n, r, o), d = +(o - a > Math.PI);
|
|
116
|
+
return [
|
|
117
|
+
`M ${s.x} ${s.y}`,
|
|
118
|
+
`A ${i} ${i} 0 ${d} 0 ${c.x} ${c.y}`,
|
|
119
|
+
`L ${l.x} ${l.y}`,
|
|
120
|
+
`A ${r} ${r} 0 ${d} 1 ${u.x} ${u.y}`,
|
|
121
|
+
"Z"
|
|
122
|
+
].join(" ");
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { e as CHART_COLORS, d as CHART_MARGINS, f as TAU, r as colorAt, n as formatAxisTick, t as formatValue, u as linearScale, c as niceTicks, a as normalizeBarInput, o as normalizeLineInput, m as pointOnCircle, p as polarToCartesian, i as prepareSegments, g as ringPath, s as seriesExtent, h as wedgePath };
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=chartMath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartMath.js","names":[],"sources":["../../../ui/shared/chartMath.ts"],"sourcesContent":["export interface ChartDatum {\n label: string;\n value: number;\n color?: string;\n}\n\nexport interface ChartSeries {\n label: string;\n data: number[];\n color?: string;\n}\n\nexport const CHART_COLORS = [\n \"var(--fill-brand)\",\n \"var(--fill-success)\",\n \"var(--fill-warning)\",\n \"var(--fill-danger)\",\n \"var(--fill-info)\",\n] as const;\n\nexport function formatValue(value: number): string {\n if (!Number.isFinite(value)) return \"—\";\n if (Math.abs(value) >= 1_000_000) return `${(value / 1_000_000).toFixed(1)}M`;\n if (Math.abs(value) >= 10_000) return `${(value / 1_000).toFixed(1)}k`;\n if (Number.isInteger(value)) return value.toLocaleString(\"en-US\");\n return value.toLocaleString(\"en-US\", { maximumFractionDigits: 1 });\n}\n\nexport function formatAxisTick(value: number): string {\n if (!Number.isFinite(value)) return \"\";\n if (Math.abs(value) >= 1_000_000) return `${value / 1_000_000}M`;\n if (Math.abs(value) >= 1_000) return `${value / 1_000}k`;\n return String(value);\n}\n\nexport function colorAt(index: number, override?: string): string {\n return override ?? CHART_COLORS[index % CHART_COLORS.length];\n}\n\nexport interface PreparedSegment extends ChartDatum {\n share: number;\n color: string;\n}\n\nexport function prepareSegments(\n data: ChartDatum[],\n options: { maxSegments?: number; sort?: boolean; otherLabel?: string } = {},\n): PreparedSegment[] {\n const { maxSegments = 6, sort = true, otherLabel = \"Other\" } = options;\n const cleaned = data.filter((entry) => Number.isFinite(entry.value) && entry.value > 0);\n const ordered = sort ? [...cleaned].sort((a, b) => b.value - a.value) : [...cleaned];\n const visible = ordered.slice(0, maxSegments);\n const remainder = ordered.slice(maxSegments);\n const remainderTotal = remainder.reduce((sum, entry) => sum + entry.value, 0);\n if (remainderTotal > 0) {\n visible.push({ label: otherLabel, value: remainderTotal });\n }\n const total = visible.reduce((sum, entry) => sum + entry.value, 0);\n return visible.map((entry, index) => ({\n ...entry,\n color: colorAt(index, entry.color),\n share: total > 0 ? entry.value / total : 0,\n }));\n}\n\nexport function normalizeBarInput(input: {\n data?: ChartDatum[];\n categories?: string[];\n series?: ChartSeries[];\n}): { categories: string[]; series: ChartSeries[] } {\n if (input.categories?.length && input.series?.length) {\n return {\n categories: input.categories,\n series: input.series.map((entry, index) => ({\n ...entry,\n color: colorAt(index, entry.color),\n })),\n };\n }\n const data = input.data ?? [];\n return {\n categories: data.map((entry) => entry.label),\n series: [\n {\n label: \"Value\",\n data: data.map((entry) => entry.value),\n color: CHART_COLORS[0],\n },\n ],\n };\n}\n\nexport function normalizeLineInput(input: {\n data?: ChartDatum[];\n labels?: string[];\n series?: ChartSeries[];\n}): { labels: string[]; series: ChartSeries[] } {\n if (input.labels?.length && input.series?.length) {\n return {\n labels: input.labels,\n series: input.series.map((entry, index) => ({\n ...entry,\n color: colorAt(index, entry.color),\n })),\n };\n }\n const data = input.data ?? [];\n return {\n labels: data.map((entry) => entry.label),\n series: [\n {\n label: \"Value\",\n data: data.map((entry) => entry.value),\n color: CHART_COLORS[0],\n },\n ],\n };\n}\n\nexport function seriesExtent(\n series: ChartSeries[],\n options: { includeZero?: boolean } = {},\n): [number, number] {\n const values = series.flatMap((entry) => entry.data).filter((value) => Number.isFinite(value));\n if (!values.length) return [0, 1];\n let min = Math.min(...values);\n let max = Math.max(...values);\n if (options.includeZero) {\n min = Math.min(min, 0);\n max = Math.max(max, 0);\n }\n if (min === max) {\n return min === 0 ? [0, 1] : [min * 0.9, max * 1.1];\n }\n return [min, max];\n}\n\nexport function niceTicks(min: number, max: number, count = 5): { ticks: number[]; min: number; max: number } {\n const range = niceNum(max - min, false);\n const step = niceNum(range / Math.max(count - 1, 1), true);\n const niceMin = Math.floor(min / step) * step;\n const niceMax = Math.ceil(max / step) * step;\n const ticks: number[] = [];\n for (let tick = niceMin; tick <= niceMax + step / 2; tick += step) {\n ticks.push(Number(tick.toFixed(10)));\n }\n return { ticks, min: niceMin, max: niceMax };\n}\n\nfunction niceNum(value: number, round: boolean): number {\n const exponent = Math.floor(Math.log10(Math.abs(value) || 1));\n const fraction = value / 10 ** exponent;\n let niceFraction: number;\n if (round) {\n if (fraction < 1.5) niceFraction = 1;\n else if (fraction < 3) niceFraction = 2;\n else if (fraction < 7) niceFraction = 5;\n else niceFraction = 10;\n } else if (fraction <= 1) niceFraction = 1;\n else if (fraction <= 2) niceFraction = 2;\n else if (fraction <= 5) niceFraction = 5;\n else niceFraction = 10;\n return niceFraction * 10 ** exponent;\n}\n\nexport function linearScale(domain: [number, number], range: [number, number]) {\n const [d0, d1] = domain;\n const [r0, r1] = range;\n const span = d1 - d0 || 1;\n return (value: number) => r0 + ((value - d0) / span) * (r1 - r0);\n}\n\nexport const CHART_MARGINS = { top: 12, right: 12, bottom: 36, left: 44 } as const;\n\nexport const TAU = Math.PI * 2;\n\nexport function polarToCartesian(cx: number, cy: number, radius: number, angle: number) {\n return {\n x: cx + radius * Math.cos(angle - Math.PI / 2),\n y: cy + radius * Math.sin(angle - Math.PI / 2),\n };\n}\n\nexport function pointOnCircle(cx: number, cy: number, radius: number, angle: number) {\n return polarToCartesian(cx, cy, radius, angle);\n}\n\nexport function wedgePath(options: {\n cx: number;\n cy: number;\n radius: number;\n startAngle: number;\n endAngle: number;\n}): string {\n const { cx, cy, radius, startAngle, endAngle } = options;\n const start = polarToCartesian(cx, cy, radius, endAngle);\n const end = polarToCartesian(cx, cy, radius, startAngle);\n const largeArc = endAngle - startAngle > Math.PI ? 1 : 0;\n return [\n `M ${cx} ${cy}`,\n `L ${start.x} ${start.y}`,\n `A ${radius} ${radius} 0 ${largeArc} 0 ${end.x} ${end.y}`,\n \"Z\",\n ].join(\" \");\n}\n\nexport function ringPath(options: {\n cx: number;\n cy: number;\n innerRadius: number;\n outerRadius: number;\n startAngle: number;\n endAngle: number;\n}): string {\n const { cx, cy, innerRadius, outerRadius, startAngle, endAngle } = options;\n const outerStart = polarToCartesian(cx, cy, outerRadius, endAngle);\n const outerEnd = polarToCartesian(cx, cy, outerRadius, startAngle);\n const innerStart = polarToCartesian(cx, cy, innerRadius, startAngle);\n const innerEnd = polarToCartesian(cx, cy, innerRadius, endAngle);\n const largeArc = endAngle - startAngle > Math.PI ? 1 : 0;\n return [\n `M ${outerStart.x} ${outerStart.y}`,\n `A ${outerRadius} ${outerRadius} 0 ${largeArc} 0 ${outerEnd.x} ${outerEnd.y}`,\n `L ${innerStart.x} ${innerStart.y}`,\n `A ${innerRadius} ${innerRadius} 0 ${largeArc} 1 ${innerEnd.x} ${innerEnd.y}`,\n \"Z\",\n ].join(\" \");\n}\n"],"mappings":"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"}
|