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,21 @@
|
|
|
1
|
+
import "./Carousel.module.css";
|
|
2
|
+
//#region ui/Carousel/Carousel.module.css
|
|
3
|
+
var e = "_root_1mva0_1", t = "_horizontal_1mva0_12", n = "_vertical_1mva0_13", r = "_stage_1mva0_17", i = "_viewport_1mva0_21", a = "_track_1mva0_29", o = "_slide_1mva0_42", s = "_per2_1mva0_64", c = "_per3_1mva0_68", l = "_per4_1mva0_72", u = "_prev_1mva0_76", d = "_next_1mva0_77", f = "_index_1mva0_106", p = {
|
|
4
|
+
root: e,
|
|
5
|
+
horizontal: t,
|
|
6
|
+
vertical: n,
|
|
7
|
+
stage: r,
|
|
8
|
+
viewport: i,
|
|
9
|
+
track: a,
|
|
10
|
+
slide: o,
|
|
11
|
+
per2: s,
|
|
12
|
+
per3: c,
|
|
13
|
+
per4: l,
|
|
14
|
+
prev: u,
|
|
15
|
+
next: d,
|
|
16
|
+
index: f
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { p as default, t as horizontal, f as index, d as next, s as per2, c as per3, l as per4, u as prev, e as root, o as slide, r as stage, a as track, n as vertical, i as viewport };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=Carousel.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.module.js","names":[],"sources":["../../../ui/Carousel/Carousel.module.css"],"sourcesContent":[".root {\n width: 100%;\n min-width: 0;\n outline: none;\n}\n\n.root:focus-visible {\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: var(--space-inset-2xs);\n}\n\n.horizontal,\n.vertical {\n min-width: 0;\n}\n\n.stage {\n position: relative;\n}\n\n.viewport {\n overflow: hidden;\n}\n\n.vertical .viewport {\n block-size: 12.5rem;\n}\n\n.track {\n display: flex;\n align-items: stretch;\n margin-inline-start: calc(-1 * var(--space-4));\n}\n\n.vertical .track {\n flex-direction: column;\n height: 100%;\n margin-inline-start: 0;\n margin-block-start: calc(-1 * var(--space-4));\n}\n\n.slide {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: 100%;\n padding-inline-start: var(--space-4);\n}\n\n.slide > * {\n flex: 1 1 auto;\n width: 100%;\n min-width: 0;\n}\n\n.vertical .slide {\n padding-inline-start: 0;\n padding-block-start: var(--space-4);\n}\n\n.per2 .slide {\n flex-basis: 50%;\n}\n\n.per3 .slide {\n flex-basis: calc(100% / 3);\n}\n\n.per4 .slide {\n flex-basis: 25%;\n}\n\n.prev,\n.next {\n position: absolute;\n z-index: 1;\n}\n\n.horizontal .prev {\n inset-block-start: 50%;\n inset-inline-start: calc(-1 * var(--space-12));\n transform: translateY(-50%);\n}\n\n.horizontal .next {\n inset-block-start: 50%;\n inset-inline-end: calc(-1 * var(--space-12));\n transform: translateY(-50%);\n}\n\n.vertical .prev {\n inset-block-start: calc(-1 * var(--space-12));\n inset-inline-start: 50%;\n transform: translateX(-50%);\n}\n\n.vertical .next {\n inset-block-end: calc(-1 * var(--space-12));\n inset-inline-start: 50%;\n transform: translateX(-50%);\n}\n\n.index {\n margin: var(--space-3) 0 0;\n text-align: center;\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n font-weight: var(--type-weight-caption);\n line-height: var(--type-line-body);\n color: var(--text-muted);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type CarouselOrientation = "horizontal" | "vertical";
|
|
3
|
+
export type CarouselAlign = "start" | "center";
|
|
4
|
+
export type CarouselSlidesPerView = 1 | 2 | 3 | 4;
|
|
5
|
+
export interface CarouselProps {
|
|
6
|
+
items: ReactNode[];
|
|
7
|
+
orientation?: CarouselOrientation;
|
|
8
|
+
loop?: boolean;
|
|
9
|
+
align?: CarouselAlign;
|
|
10
|
+
slidesPerView?: CarouselSlidesPerView;
|
|
11
|
+
showControls?: boolean;
|
|
12
|
+
showIndex?: boolean;
|
|
13
|
+
onIndexChange?: (index: number) => void;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CellProps } from './Cell.types';
|
|
2
|
+
export type { CellProps, CellValue, CellType, CellSize, CellPerson, CellBadgeItem, CellOption, CellAction, } from './Cell.types';
|
|
3
|
+
export declare function Cell({ type, size, text, checkbox, label, name, src, initials, people, icon, tone, badges, value, options, actions, checked, defaultChecked, onCheckedChange, id, }: CellProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { LucideByName as e } from "../Button/lucideName.js";
|
|
3
|
+
import { Button as t } from "../Button/Button.js";
|
|
4
|
+
import { ButtonGroup as n } from "../ButtonGroup/ButtonGroup.js";
|
|
5
|
+
import { Avatar as r } from "../Avatar/Avatar.js";
|
|
6
|
+
import { AvatarGroup as i } from "../AvatarGroup/AvatarGroup.js";
|
|
7
|
+
import { Badge as a } from "../Badge/Badge.js";
|
|
8
|
+
import { Checkbox as o } from "../Checkbox/Checkbox.js";
|
|
9
|
+
import { DropdownMenu as s } from "../DropdownMenu/DropdownMenu.js";
|
|
10
|
+
import { Progress as c } from "../Progress/Progress.js";
|
|
11
|
+
import { Select as l } from "../Select/Select.js";
|
|
12
|
+
import u from "./Cell.module.js";
|
|
13
|
+
import { useId as d } from "react";
|
|
14
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
15
|
+
//#region ui/Cell/Cell.tsx
|
|
16
|
+
var m = {
|
|
17
|
+
sm: 14,
|
|
18
|
+
md: 16
|
|
19
|
+
}, h = 5, g = /* @__PURE__ */ new Set([
|
|
20
|
+
"badge",
|
|
21
|
+
"badges",
|
|
22
|
+
"select",
|
|
23
|
+
"rating",
|
|
24
|
+
"actions",
|
|
25
|
+
"actionIcons",
|
|
26
|
+
"actionMenu"
|
|
27
|
+
]);
|
|
28
|
+
function _(e, t, n) {
|
|
29
|
+
return Math.min(n, Math.max(t, e));
|
|
30
|
+
}
|
|
31
|
+
function v(e) {
|
|
32
|
+
if (e === void 0 || e === "") return 0;
|
|
33
|
+
let t = typeof e == "number" ? e : parseFloat(String(e).replace("%", ""));
|
|
34
|
+
return Number.isNaN(t) ? 0 : _(t, 0, 100);
|
|
35
|
+
}
|
|
36
|
+
function y(e) {
|
|
37
|
+
if (e === void 0 || e === "") return 0;
|
|
38
|
+
let t = typeof e == "number" ? e : parseFloat(String(e));
|
|
39
|
+
return Number.isNaN(t) ? 0 : _(Math.round(t), 0, h);
|
|
40
|
+
}
|
|
41
|
+
function b(e, t, n, r) {
|
|
42
|
+
return g.has(e) ? "" : e === "progress" ? t || `${Math.round(v(r))}%` : e === "trendPositive" || e === "trendNegative" ? t || (r === void 0 ? "" : String(r)) : t || (e === "avatar" || e === "avatarGroup" ? n ?? "" : "");
|
|
43
|
+
}
|
|
44
|
+
function x(e, t) {
|
|
45
|
+
return t === void 0 || t === "" ? e : `${e} ${t}`;
|
|
46
|
+
}
|
|
47
|
+
function S({ type: g = "text", size: _ = "md", text: S = !0, checkbox: C = !1, label: w, name: T, src: E, initials: D, people: O, icon: k, tone: A = "neutral", badges: j, value: M, options: N, actions: P, checked: F, defaultChecked: I, onCheckedChange: L, id: R }) {
|
|
48
|
+
let z = d(), B = R ?? z, V = `${z}-select`, H = m[_], U = T || w || "", W = b(g, w, T, M), G = w || T || "row", K;
|
|
49
|
+
S || (g === "file" || g === "payment" ? K = w || T : g === "trendPositive" ? K = x("Up", M) : g === "trendNegative" ? K = x("Down", M) : g === "rating" && (K = `${y(M)} of ${h}`));
|
|
50
|
+
let q = null;
|
|
51
|
+
if (g === "avatar") q = /* @__PURE__ */ f(r, {
|
|
52
|
+
name: U,
|
|
53
|
+
src: E,
|
|
54
|
+
initials: D,
|
|
55
|
+
size: _
|
|
56
|
+
});
|
|
57
|
+
else if (g === "avatarGroup" && O && O.length > 0) q = /* @__PURE__ */ f(i, {
|
|
58
|
+
items: O,
|
|
59
|
+
size: _,
|
|
60
|
+
max: 3,
|
|
61
|
+
ariaLabel: w
|
|
62
|
+
});
|
|
63
|
+
else if (g === "file") q = /* @__PURE__ */ f(e, {
|
|
64
|
+
name: k || "File",
|
|
65
|
+
size: H,
|
|
66
|
+
className: u.icon
|
|
67
|
+
});
|
|
68
|
+
else if (g === "payment") q = /* @__PURE__ */ f(e, {
|
|
69
|
+
name: k || "CreditCard",
|
|
70
|
+
size: H,
|
|
71
|
+
className: u.icon
|
|
72
|
+
});
|
|
73
|
+
else if (g === "badge") q = /* @__PURE__ */ f(a, {
|
|
74
|
+
tone: A,
|
|
75
|
+
size: _,
|
|
76
|
+
children: w || ""
|
|
77
|
+
});
|
|
78
|
+
else if (g === "badges") q = /* @__PURE__ */ f("span", {
|
|
79
|
+
className: u.badges,
|
|
80
|
+
children: (j ?? []).slice(0, 3).map((e, t) => /* @__PURE__ */ f(a, {
|
|
81
|
+
tone: e.tone ?? "neutral",
|
|
82
|
+
size: _,
|
|
83
|
+
children: e.label
|
|
84
|
+
}, `${e.label}-${t}`))
|
|
85
|
+
});
|
|
86
|
+
else if (g === "trendPositive" || g === "trendNegative") {
|
|
87
|
+
let t = g === "trendPositive";
|
|
88
|
+
q = /* @__PURE__ */ p("span", {
|
|
89
|
+
className: `${u.trend} ${t ? u.trendPositive : u.trendNegative}`,
|
|
90
|
+
children: [/* @__PURE__ */ f(e, {
|
|
91
|
+
name: t ? "ChevronUp" : "ChevronDown",
|
|
92
|
+
size: H
|
|
93
|
+
}), S && W ? /* @__PURE__ */ f("span", {
|
|
94
|
+
className: u.label,
|
|
95
|
+
children: W
|
|
96
|
+
}) : null]
|
|
97
|
+
});
|
|
98
|
+
} else if (g === "select" && N && N.length > 0) {
|
|
99
|
+
let e = M !== void 0 && M !== "" ? String(M) : N[0].value;
|
|
100
|
+
q = /* @__PURE__ */ f("span", {
|
|
101
|
+
className: u.selectWrap,
|
|
102
|
+
children: /* @__PURE__ */ f(l, {
|
|
103
|
+
id: V,
|
|
104
|
+
size: "sm",
|
|
105
|
+
options: N,
|
|
106
|
+
defaultValue: e,
|
|
107
|
+
ariaLabel: w || "Select"
|
|
108
|
+
})
|
|
109
|
+
});
|
|
110
|
+
} else if (g === "progress") {
|
|
111
|
+
let e = v(M);
|
|
112
|
+
q = /* @__PURE__ */ f("span", {
|
|
113
|
+
className: u.progressWrap,
|
|
114
|
+
children: /* @__PURE__ */ f(c, {
|
|
115
|
+
value: e,
|
|
116
|
+
size: _,
|
|
117
|
+
ariaLabel: w || `${Math.round(e)}%`
|
|
118
|
+
})
|
|
119
|
+
});
|
|
120
|
+
} else if (g === "rating") {
|
|
121
|
+
let t = y(M);
|
|
122
|
+
q = /* @__PURE__ */ f("span", {
|
|
123
|
+
className: u.rating,
|
|
124
|
+
role: "img",
|
|
125
|
+
"aria-label": w || `${t} of ${h}`,
|
|
126
|
+
children: Array.from({ length: h }, (n, r) => /* @__PURE__ */ f(e, {
|
|
127
|
+
name: "Star",
|
|
128
|
+
size: H,
|
|
129
|
+
className: r < t ? u.starOn : u.starOff
|
|
130
|
+
}, r))
|
|
131
|
+
});
|
|
132
|
+
} else if (g === "actions") {
|
|
133
|
+
let e = (P ?? []).slice(0, 3);
|
|
134
|
+
e.length > 0 && (q = /* @__PURE__ */ f(n, {
|
|
135
|
+
ariaLabel: w || "Row actions",
|
|
136
|
+
children: e.map((e, n) => /* @__PURE__ */ f(t, {
|
|
137
|
+
size: "sm",
|
|
138
|
+
variant: e.variant ?? (n === 0 ? "secondary" : "tertiary"),
|
|
139
|
+
iconStart: e.icon,
|
|
140
|
+
ariaLabel: e.ariaLabel,
|
|
141
|
+
onClick: e.onClick,
|
|
142
|
+
children: e.label
|
|
143
|
+
}, `${e.label || e.icon || "action"}-${n}`))
|
|
144
|
+
}));
|
|
145
|
+
} else if (g === "actionIcons") {
|
|
146
|
+
let e = (P ?? []).slice(0, 3);
|
|
147
|
+
e.length > 0 && (q = /* @__PURE__ */ f("span", {
|
|
148
|
+
className: u.actionIcons,
|
|
149
|
+
role: "group",
|
|
150
|
+
"aria-label": w || "Row actions",
|
|
151
|
+
children: e.map((e, n) => /* @__PURE__ */ f(t, {
|
|
152
|
+
size: "sm",
|
|
153
|
+
variant: e.variant ?? "tertiary",
|
|
154
|
+
iconStart: e.icon,
|
|
155
|
+
ariaLabel: e.ariaLabel || e.label || "Action",
|
|
156
|
+
onClick: e.onClick
|
|
157
|
+
}, `${e.icon || e.label || "icon"}-${n}`))
|
|
158
|
+
}));
|
|
159
|
+
} else if (g === "actionMenu") {
|
|
160
|
+
let e = (P ?? []).map((e, t) => ({
|
|
161
|
+
id: e.label || e.ariaLabel || e.icon || `action-${t}`,
|
|
162
|
+
label: e.label || e.ariaLabel || "Action",
|
|
163
|
+
icon: e.icon,
|
|
164
|
+
danger: e.variant === "danger"
|
|
165
|
+
}));
|
|
166
|
+
q = /* @__PURE__ */ f(s, {
|
|
167
|
+
iconStart: k || "Ellipsis",
|
|
168
|
+
ariaLabel: w || "Row actions",
|
|
169
|
+
variant: "tertiary",
|
|
170
|
+
size: "sm",
|
|
171
|
+
align: "end",
|
|
172
|
+
groups: [{ items: e }],
|
|
173
|
+
onSelect: (e) => {
|
|
174
|
+
(P ?? []).find((t, n) => (t.label || t.ariaLabel || t.icon || `action-${n}`) === e)?.onClick?.();
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
let J = g === "avatar" && T && w && w !== T ? w : "", Y = g === "avatar" && S && !!U, X = S && W && g !== "trendPositive" && g !== "trendNegative" && g !== "avatar", Z = !C && !q && !X && !Y, Q = g === "actionMenu";
|
|
179
|
+
return /* @__PURE__ */ p("span", {
|
|
180
|
+
className: `${u.cell} ${u[_]}${Q ? ` ${u.actionMenu}` : ""}`,
|
|
181
|
+
"aria-label": K,
|
|
182
|
+
children: [
|
|
183
|
+
C ? /* @__PURE__ */ f(o, {
|
|
184
|
+
id: B,
|
|
185
|
+
size: "sm",
|
|
186
|
+
ariaLabel: `Select ${G}`,
|
|
187
|
+
checked: F,
|
|
188
|
+
defaultChecked: I,
|
|
189
|
+
onChange: L
|
|
190
|
+
}) : null,
|
|
191
|
+
q ? /* @__PURE__ */ f("span", {
|
|
192
|
+
className: u.visual,
|
|
193
|
+
children: q
|
|
194
|
+
}) : null,
|
|
195
|
+
Y ? /* @__PURE__ */ p("span", {
|
|
196
|
+
className: u.copy,
|
|
197
|
+
children: [/* @__PURE__ */ f("span", {
|
|
198
|
+
className: u.label,
|
|
199
|
+
children: U
|
|
200
|
+
}), J ? /* @__PURE__ */ f("span", {
|
|
201
|
+
className: u.support,
|
|
202
|
+
children: J
|
|
203
|
+
}) : null]
|
|
204
|
+
}) : X ? /* @__PURE__ */ f("span", {
|
|
205
|
+
className: u.label,
|
|
206
|
+
children: W
|
|
207
|
+
}) : null,
|
|
208
|
+
Z ? "\xA0" : null
|
|
209
|
+
]
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
213
|
+
export { S as Cell };
|
|
214
|
+
|
|
215
|
+
//# sourceMappingURL=Cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cell.js","names":[],"sources":["../../../ui/Cell/Cell.tsx"],"sourcesContent":["\"use client\";\n\nimport { useId, type ReactNode } from \"react\";\nimport { Avatar } from \"../Avatar\";\nimport { AvatarGroup } from \"../AvatarGroup\";\nimport { Badge } from \"../Badge\";\nimport { Button } from \"../Button\";\nimport { DropdownMenu } from \"../DropdownMenu\";\nimport { Progress } from \"../Progress\";\nimport { ButtonGroup } from \"../ButtonGroup\";\nimport { Checkbox } from \"../Checkbox\";\nimport { Select } from \"../Select\";\nimport { LucideByName } from \"../Button/lucideName\";\nimport type { CellProps, CellType } from \"./Cell.types\";\nimport styles from \"./Cell.module.css\";\n\nexport type {\n CellProps,\n CellValue,\n CellType,\n CellSize,\n CellPerson,\n CellBadgeItem,\n CellOption,\n CellAction,\n} from \"./Cell.types\";\n\nconst ICON_PX = { sm: 14, md: 16 } as const;\nconst STAR_COUNT = 5;\nconst NO_SIDE_LABEL = new Set<CellType>([\n \"badge\",\n \"badges\",\n \"select\",\n \"rating\",\n \"actions\",\n \"actionIcons\",\n \"actionMenu\",\n]);\n\nfunction clamp(n: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, n));\n}\n\nfunction toPercent(value?: string | number): number {\n if (value === undefined || value === \"\") return 0;\n const n = typeof value === \"number\" ? value : parseFloat(String(value).replace(\"%\", \"\"));\n if (Number.isNaN(n)) return 0;\n return clamp(n, 0, 100);\n}\n\nfunction toRating(value?: string | number): number {\n if (value === undefined || value === \"\") return 0;\n const n = typeof value === \"number\" ? value : parseFloat(String(value));\n if (Number.isNaN(n)) return 0;\n return clamp(Math.round(n), 0, STAR_COUNT);\n}\n\nfunction sideLabelText(\n type: CellType,\n label?: string,\n name?: string,\n value?: string | number,\n): string {\n if (NO_SIDE_LABEL.has(type)) return \"\";\n if (type === \"progress\") {\n if (label) return label;\n return `${Math.round(toPercent(value))}%`;\n }\n if (type === \"trendPositive\" || type === \"trendNegative\") {\n if (label) return label;\n if (value !== undefined) return String(value);\n return \"\";\n }\n if (label) return label;\n if (type === \"avatar\" || type === \"avatarGroup\") return name ?? \"\";\n return \"\";\n}\n\nfunction trendAria(direction: \"Up\" | \"Down\", value?: string | number): string {\n if (value === undefined || value === \"\") return direction;\n return `${direction} ${value}`;\n}\n\nexport function Cell({\n type = \"text\",\n size = \"md\",\n text = true,\n checkbox = false,\n label,\n name,\n src,\n initials,\n people,\n icon,\n tone = \"neutral\",\n badges,\n value,\n options,\n actions,\n checked,\n defaultChecked,\n onCheckedChange,\n id,\n}: CellProps) {\n const generatedId = useId();\n const checkboxId = id ?? generatedId;\n const selectId = `${generatedId}-select`;\n const iconPx = ICON_PX[size];\n const personName = name || label || \"\";\n const shown = sideLabelText(type, label, name, value);\n const selectName = label || name || \"row\";\n const buttonSize = size === \"sm\" ? \"sm\" : \"sm\";\n\n let rootAria: string | undefined;\n if (!text) {\n if (type === \"file\" || type === \"payment\") {\n rootAria = label || name;\n } else if (type === \"trendPositive\") {\n rootAria = trendAria(\"Up\", value);\n } else if (type === \"trendNegative\") {\n rootAria = trendAria(\"Down\", value);\n } else if (type === \"rating\") {\n rootAria = `${toRating(value)} of ${STAR_COUNT}`;\n }\n }\n\n let visual: ReactNode = null;\n if (type === \"avatar\") {\n visual = <Avatar name={personName} src={src} initials={initials} size={size} />;\n } else if (type === \"avatarGroup\" && people && people.length > 0) {\n visual = <AvatarGroup items={people} size={size} max={3} ariaLabel={label} />;\n } else if (type === \"file\") {\n visual = <LucideByName name={icon || \"File\"} size={iconPx} className={styles.icon} />;\n } else if (type === \"payment\") {\n visual = <LucideByName name={icon || \"CreditCard\"} size={iconPx} className={styles.icon} />;\n } else if (type === \"badge\") {\n visual = (\n <Badge tone={tone} size={size}>\n {label || \"\"}\n </Badge>\n );\n } else if (type === \"badges\") {\n visual = (\n <span className={styles.badges}>\n {(badges ?? []).slice(0, 3).map((item, index) => (\n <Badge key={`${item.label}-${index}`} tone={item.tone ?? \"neutral\"} size={size}>\n {item.label}\n </Badge>\n ))}\n </span>\n );\n } else if (type === \"trendPositive\" || type === \"trendNegative\") {\n const positive = type === \"trendPositive\";\n visual = (\n <span className={`${styles.trend} ${positive ? styles.trendPositive : styles.trendNegative}`}>\n <LucideByName name={positive ? \"ChevronUp\" : \"ChevronDown\"} size={iconPx} />\n {text && shown ? <span className={styles.label}>{shown}</span> : null}\n </span>\n );\n } else if (type === \"select\" && options && options.length > 0) {\n const selected = value !== undefined && value !== \"\" ? String(value) : options[0].value;\n visual = (\n <span className={styles.selectWrap}>\n <Select\n id={selectId}\n size=\"sm\"\n options={options}\n defaultValue={selected}\n ariaLabel={label || \"Select\"}\n />\n </span>\n );\n } else if (type === \"progress\") {\n const percent = toPercent(value);\n visual = (\n <span className={styles.progressWrap}>\n <Progress\n value={percent}\n size={size}\n ariaLabel={label || `${Math.round(percent)}%`}\n />\n </span>\n );\n } else if (type === \"rating\") {\n const score = toRating(value);\n visual = (\n <span className={styles.rating} role=\"img\" aria-label={label || `${score} of ${STAR_COUNT}`}>\n {Array.from({ length: STAR_COUNT }, (_, index) => (\n <LucideByName\n key={index}\n name=\"Star\"\n size={iconPx}\n className={index < score ? styles.starOn : styles.starOff}\n />\n ))}\n </span>\n );\n } else if (type === \"actions\") {\n const items = (actions ?? []).slice(0, 3);\n if (items.length > 0) {\n visual = (\n <ButtonGroup ariaLabel={label || \"Row actions\"}>\n {items.map((item, index) => (\n <Button\n key={`${item.label || item.icon || \"action\"}-${index}`}\n size={buttonSize}\n variant={item.variant ?? (index === 0 ? \"secondary\" : \"tertiary\")}\n iconStart={item.icon}\n ariaLabel={item.ariaLabel}\n onClick={item.onClick}\n >\n {item.label}\n </Button>\n ))}\n </ButtonGroup>\n );\n }\n } else if (type === \"actionIcons\") {\n const items = (actions ?? []).slice(0, 3);\n if (items.length > 0) {\n visual = (\n <span className={styles.actionIcons} role=\"group\" aria-label={label || \"Row actions\"}>\n {items.map((item, index) => (\n <Button\n key={`${item.icon || item.label || \"icon\"}-${index}`}\n size={buttonSize}\n variant={item.variant ?? \"tertiary\"}\n iconStart={item.icon}\n ariaLabel={item.ariaLabel || item.label || \"Action\"}\n onClick={item.onClick}\n />\n ))}\n </span>\n );\n }\n } else if (type === \"actionMenu\") {\n const menuItems = (actions ?? []).map((item, index) => ({\n id: item.label || item.ariaLabel || item.icon || `action-${index}`,\n label: item.label || item.ariaLabel || \"Action\",\n icon: item.icon,\n danger: item.variant === \"danger\",\n }));\n visual = (\n <DropdownMenu\n iconStart={icon || \"Ellipsis\"}\n ariaLabel={label || \"Row actions\"}\n variant=\"tertiary\"\n size={buttonSize}\n align=\"end\"\n groups={[{ items: menuItems }]}\n onSelect={(id) => {\n const hit = (actions ?? []).find(\n (item, index) => (item.label || item.ariaLabel || item.icon || `action-${index}`) === id,\n );\n hit?.onClick?.();\n }}\n />\n );\n }\n\n const avatarSupport = type === \"avatar\" && name && label && label !== name ? label : \"\";\n const showAvatarCopy = type === \"avatar\" && text && Boolean(personName);\n const showSideLabel =\n text &&\n shown &&\n type !== \"trendPositive\" &&\n type !== \"trendNegative\" &&\n type !== \"avatar\";\n const empty = !checkbox && !visual && !showSideLabel && !showAvatarCopy;\n\n const actionMenu = type === \"actionMenu\";\n\n return (\n <span\n className={`${styles.cell} ${styles[size]}${actionMenu ? ` ${styles.actionMenu}` : \"\"}`}\n aria-label={rootAria}\n >\n {checkbox ? (\n <Checkbox\n id={checkboxId}\n size=\"sm\"\n ariaLabel={`Select ${selectName}`}\n checked={checked}\n defaultChecked={defaultChecked}\n onChange={onCheckedChange}\n />\n ) : null}\n {visual ? <span className={styles.visual}>{visual}</span> : null}\n {showAvatarCopy ? (\n <span className={styles.copy}>\n <span className={styles.label}>{personName}</span>\n {avatarSupport ? <span className={styles.support}>{avatarSupport}</span> : null}\n </span>\n ) : showSideLabel ? (\n <span className={styles.label}>{shown}</span>\n ) : null}\n {empty ? \"\\u00a0\" : null}\n </span>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._cell_ur4zn_1 {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
background-color: transparent;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
._sm_ur4zn_11 {
|
|
12
12
|
min-height: 3rem;
|
|
13
13
|
padding: var(--space-2) var(--space-4);
|
|
14
14
|
gap: var(--space-3);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
._md_ur4zn_17 {
|
|
18
18
|
min-height: 3.5rem;
|
|
19
19
|
padding: var(--space-3) var(--space-6);
|
|
20
20
|
gap: var(--space-3);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
._visual_ur4zn_23 {
|
|
24
24
|
display: inline-flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
min-width: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
._copy_ur4zn_30 {
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
justify-content: center;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
gap: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
._label_ur4zn_38 {
|
|
39
39
|
min-width: 0;
|
|
40
40
|
font-family: var(--font-sans);
|
|
41
41
|
line-height: var(--type-line-body);
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
overflow-wrap: anywhere;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
._copy_ur4zn_30 ._label_ur4zn_38 {
|
|
47
47
|
font-weight: var(--type-weight-label);
|
|
48
48
|
line-height: var(--type-line-heading);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.
|
|
51
|
+
._support_ur4zn_51 {
|
|
52
52
|
min-width: 0;
|
|
53
53
|
font-family: var(--font-sans);
|
|
54
54
|
font-size: var(--type-size-caption);
|
|
@@ -58,36 +58,36 @@
|
|
|
58
58
|
overflow-wrap: anywhere;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.
|
|
62
|
-
.
|
|
61
|
+
._sm_ur4zn_11 ._label_ur4zn_38,
|
|
62
|
+
._md_ur4zn_17 ._label_ur4zn_38 {
|
|
63
63
|
font-size: var(--type-size-body-sm);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.
|
|
66
|
+
._icon_ur4zn_66 {
|
|
67
67
|
flex-shrink: 0;
|
|
68
68
|
color: var(--icon-muted);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.
|
|
71
|
+
._trend_ur4zn_71 {
|
|
72
72
|
display: inline-flex;
|
|
73
73
|
align-items: center;
|
|
74
74
|
gap: var(--space-2);
|
|
75
75
|
min-width: 0;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.
|
|
78
|
+
._trendPositive_ur4zn_78 {
|
|
79
79
|
color: var(--status-success);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.
|
|
82
|
+
._trendNegative_ur4zn_82 {
|
|
83
83
|
color: var(--status-danger);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.
|
|
86
|
+
._trend_ur4zn_71 ._label_ur4zn_38 {
|
|
87
87
|
color: inherit;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
._badges_ur4zn_90 {
|
|
91
91
|
display: inline-flex;
|
|
92
92
|
flex-wrap: wrap;
|
|
93
93
|
align-items: center;
|
|
@@ -95,39 +95,39 @@
|
|
|
95
95
|
min-width: 0;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.
|
|
98
|
+
._selectWrap_ur4zn_98 {
|
|
99
99
|
display: block;
|
|
100
100
|
width: 10rem;
|
|
101
101
|
max-width: 100%;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.
|
|
104
|
+
._progressWrap_ur4zn_104 {
|
|
105
105
|
display: block;
|
|
106
106
|
width: 8rem;
|
|
107
107
|
max-width: 100%;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.
|
|
110
|
+
._rating_ur4zn_110 {
|
|
111
111
|
display: inline-flex;
|
|
112
112
|
align-items: center;
|
|
113
113
|
gap: var(--space-1);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.
|
|
116
|
+
._starOn_ur4zn_116 {
|
|
117
117
|
color: var(--icon-warning);
|
|
118
118
|
fill: currentColor;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.
|
|
121
|
+
._starOff_ur4zn_121 {
|
|
122
122
|
color: var(--icon-muted);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.
|
|
125
|
+
._actionIcons_ur4zn_125 {
|
|
126
126
|
display: inline-flex;
|
|
127
127
|
align-items: center;
|
|
128
128
|
gap: var(--space-1);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.
|
|
131
|
+
._actionMenu_ur4zn_131 {
|
|
132
132
|
justify-content: center;
|
|
133
133
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./Cell.module.css";
|
|
2
|
+
//#region ui/Cell/Cell.module.css
|
|
3
|
+
var e = "_cell_ur4zn_1", t = "_sm_ur4zn_11", n = "_md_ur4zn_17", r = "_visual_ur4zn_23", i = "_copy_ur4zn_30", a = "_label_ur4zn_38", o = "_support_ur4zn_51", s = "_icon_ur4zn_66", c = "_trend_ur4zn_71", l = "_trendPositive_ur4zn_78", u = "_trendNegative_ur4zn_82", d = "_badges_ur4zn_90", f = "_selectWrap_ur4zn_98", p = "_progressWrap_ur4zn_104", m = "_rating_ur4zn_110", h = "_starOn_ur4zn_116", g = "_starOff_ur4zn_121", _ = "_actionIcons_ur4zn_125", v = "_actionMenu_ur4zn_131", y = {
|
|
4
|
+
cell: e,
|
|
5
|
+
sm: t,
|
|
6
|
+
md: n,
|
|
7
|
+
visual: r,
|
|
8
|
+
copy: i,
|
|
9
|
+
label: a,
|
|
10
|
+
support: o,
|
|
11
|
+
icon: s,
|
|
12
|
+
trend: c,
|
|
13
|
+
trendPositive: l,
|
|
14
|
+
trendNegative: u,
|
|
15
|
+
badges: d,
|
|
16
|
+
selectWrap: f,
|
|
17
|
+
progressWrap: p,
|
|
18
|
+
rating: m,
|
|
19
|
+
starOn: h,
|
|
20
|
+
starOff: g,
|
|
21
|
+
actionIcons: _,
|
|
22
|
+
actionMenu: v
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _ as actionIcons, v as actionMenu, d as badges, e as cell, i as copy, y as default, s as icon, a as label, n as md, p as progressWrap, m as rating, f as selectWrap, t as sm, g as starOff, h as starOn, o as support, c as trend, u as trendNegative, l as trendPositive, r as visual };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=Cell.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cell.module.js","names":[],"sources":["../../../ui/Cell/Cell.module.css"],"sourcesContent":[".cell {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: 100%;\n width: 100%;\n background-color: transparent;\n}\n\n.sm {\n min-height: 3rem;\n padding: var(--space-2) var(--space-4);\n gap: var(--space-3);\n}\n\n.md {\n min-height: 3.5rem;\n padding: var(--space-3) var(--space-6);\n gap: var(--space-3);\n}\n\n.visual {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n min-width: 0;\n}\n\n.copy {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-width: 0;\n gap: 0;\n}\n\n.label {\n min-width: 0;\n font-family: var(--font-sans);\n line-height: var(--type-line-body);\n color: var(--text-primary);\n overflow-wrap: anywhere;\n}\n\n.copy .label {\n font-weight: var(--type-weight-label);\n line-height: var(--type-line-heading);\n}\n\n.support {\n min-width: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n font-weight: var(--type-weight-body);\n line-height: var(--type-line-heading);\n color: var(--text-secondary);\n overflow-wrap: anywhere;\n}\n\n.sm .label,\n.md .label {\n font-size: var(--type-size-body-sm);\n}\n\n.icon {\n flex-shrink: 0;\n color: var(--icon-muted);\n}\n\n.trend {\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n min-width: 0;\n}\n\n.trendPositive {\n color: var(--status-success);\n}\n\n.trendNegative {\n color: var(--status-danger);\n}\n\n.trend .label {\n color: inherit;\n}\n\n.badges {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-1);\n min-width: 0;\n}\n\n.selectWrap {\n display: block;\n width: 10rem;\n max-width: 100%;\n}\n\n.progressWrap {\n display: block;\n width: 8rem;\n max-width: 100%;\n}\n\n.rating {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n}\n\n.starOn {\n color: var(--icon-warning);\n fill: currentColor;\n}\n\n.starOff {\n color: var(--icon-muted);\n}\n\n.actionIcons {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n}\n\n.actionMenu {\n justify-content: center;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BadgeTone } from '../Badge/Badge.types';
|
|
2
|
+
import { ButtonVariant } from '../Button/Button.types';
|
|
3
|
+
export type CellType = "text" | "avatar" | "file" | "payment" | "badge" | "badges" | "trendPositive" | "trendNegative" | "avatarGroup" | "select" | "progress" | "rating" | "actions" | "actionIcons" | "actionMenu";
|
|
4
|
+
export type CellSize = "sm" | "md";
|
|
5
|
+
export interface CellPerson {
|
|
6
|
+
name: string;
|
|
7
|
+
src?: string;
|
|
8
|
+
initials?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CellBadgeItem {
|
|
11
|
+
label: string;
|
|
12
|
+
tone?: BadgeTone;
|
|
13
|
+
}
|
|
14
|
+
export interface CellOption {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CellAction {
|
|
19
|
+
label?: string;
|
|
20
|
+
icon?: string;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
variant?: ButtonVariant;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
}
|
|
25
|
+
export interface CellProps {
|
|
26
|
+
type?: CellType;
|
|
27
|
+
size?: CellSize;
|
|
28
|
+
text?: boolean;
|
|
29
|
+
checkbox?: boolean;
|
|
30
|
+
label?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
src?: string;
|
|
33
|
+
initials?: string;
|
|
34
|
+
people?: CellPerson[];
|
|
35
|
+
icon?: string;
|
|
36
|
+
tone?: BadgeTone;
|
|
37
|
+
badges?: CellBadgeItem[];
|
|
38
|
+
value?: string | number;
|
|
39
|
+
options?: CellOption[];
|
|
40
|
+
actions?: CellAction[];
|
|
41
|
+
checked?: boolean;
|
|
42
|
+
defaultChecked?: boolean;
|
|
43
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
44
|
+
id?: string;
|
|
45
|
+
}
|
|
46
|
+
export type CellValue = CellProps;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ChatProps } from './Chat.types';
|
|
2
|
+
export type { ChatMessage, ChatMessageRole, ChatMenuItem, ChatProps, ChatRadius } from './Chat.types';
|
|
3
|
+
export declare function Chat({ title, status, messages, suggestions, placeholder, emptyState, isThinking, disabled, value, defaultValue, onValueChange, onSend, onClose, closeLabel, menuItems, menuLabel, radius, className, }: ChatProps): import("react").JSX.Element;
|