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
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useId, useState, type FormEvent } from "react";
|
|
4
|
-
import { Button } from "../../Button";
|
|
5
|
-
import { ButtonGroup } from "../../ButtonGroup";
|
|
6
|
-
import { Empty } from "../../Empty";
|
|
7
|
-
import { Field } from "../../Field";
|
|
8
|
-
import { Input } from "../../Input";
|
|
9
|
-
import { Modal } from "../../Modal";
|
|
10
|
-
import { PageHeader } from "../../PageHeader";
|
|
11
|
-
import type { PageHeaderProps } from "../../PageHeader";
|
|
12
|
-
import { Toast } from "../../Toast";
|
|
13
|
-
|
|
14
|
-
export interface EmptyFirstRunPatternProps {
|
|
15
|
-
breadcrumbs?: PageHeaderProps["breadcrumbs"];
|
|
16
|
-
onCreate?: (payload: { title: string }) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function EmptyFirstRunPattern({ breadcrumbs, onCreate }: EmptyFirstRunPatternProps) {
|
|
20
|
-
const uid = useId();
|
|
21
|
-
const titleId = `${uid}-title`;
|
|
22
|
-
const [open, setOpen] = useState(false);
|
|
23
|
-
const [title, setTitle] = useState("");
|
|
24
|
-
const [titleError, setTitleError] = useState<string | undefined>();
|
|
25
|
-
const [toastOpen, setToastOpen] = useState(false);
|
|
26
|
-
const [createdTitle, setCreatedTitle] = useState("");
|
|
27
|
-
|
|
28
|
-
function close() {
|
|
29
|
-
setOpen(false);
|
|
30
|
-
setTitleError(undefined);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function create() {
|
|
34
|
-
const nextTitle = title.trim();
|
|
35
|
-
if (!nextTitle) {
|
|
36
|
-
setTitleError("Enter a study name.");
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
onCreate?.({ title: nextTitle });
|
|
41
|
-
setCreatedTitle(nextTitle);
|
|
42
|
-
setTitle("");
|
|
43
|
-
setTitleError(undefined);
|
|
44
|
-
setOpen(false);
|
|
45
|
-
setToastOpen(true);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function handleSubmit(event: FormEvent<HTMLFormElement>) {
|
|
49
|
-
event.preventDefault();
|
|
50
|
-
create();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<div className="layout-canvas layout-canvas--sticky-header">
|
|
55
|
-
<div className="layout-header">
|
|
56
|
-
<PageHeader
|
|
57
|
-
title="User research"
|
|
58
|
-
subtitle="Interview notes and findings for Sprint 24."
|
|
59
|
-
breadcrumbs={breadcrumbs}
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
<div className="layout-content">
|
|
63
|
-
<Empty
|
|
64
|
-
title="No studies yet"
|
|
65
|
-
description="Add the first study so launch comments have evidence."
|
|
66
|
-
icon="User"
|
|
67
|
-
outlined
|
|
68
|
-
actions={
|
|
69
|
-
<Button variant="primary" size="md" onClick={() => setOpen(true)}>
|
|
70
|
-
New study
|
|
71
|
-
</Button>
|
|
72
|
-
}
|
|
73
|
-
/>
|
|
74
|
-
</div>
|
|
75
|
-
<Modal
|
|
76
|
-
open={open}
|
|
77
|
-
title="New study"
|
|
78
|
-
description="Name the study. Notes can come later."
|
|
79
|
-
size="md"
|
|
80
|
-
onClose={close}
|
|
81
|
-
footer={
|
|
82
|
-
<ButtonGroup ariaLabel="Study actions">
|
|
83
|
-
<Button variant="secondary" size="md" onClick={close}>
|
|
84
|
-
Cancel
|
|
85
|
-
</Button>
|
|
86
|
-
<Button variant="primary" size="md" onClick={create}>
|
|
87
|
-
Create study
|
|
88
|
-
</Button>
|
|
89
|
-
</ButtonGroup>
|
|
90
|
-
}
|
|
91
|
-
>
|
|
92
|
-
<form onSubmit={handleSubmit}>
|
|
93
|
-
<Field
|
|
94
|
-
label="Title"
|
|
95
|
-
htmlFor={titleId}
|
|
96
|
-
hint="Something the team will recognize"
|
|
97
|
-
error={titleError}
|
|
98
|
-
>
|
|
99
|
-
<Input
|
|
100
|
-
id={titleId}
|
|
101
|
-
iconStart="Search"
|
|
102
|
-
placeholder="Launch interview round"
|
|
103
|
-
value={title}
|
|
104
|
-
onChange={(value) => {
|
|
105
|
-
setTitle(value);
|
|
106
|
-
if (titleError) setTitleError(undefined);
|
|
107
|
-
}}
|
|
108
|
-
/>
|
|
109
|
-
</Field>
|
|
110
|
-
</form>
|
|
111
|
-
</Modal>
|
|
112
|
-
<Toast
|
|
113
|
-
open={toastOpen}
|
|
114
|
-
title="Study added"
|
|
115
|
-
description={
|
|
116
|
-
createdTitle ? `We'll keep “${createdTitle}” in User research.` : undefined
|
|
117
|
-
}
|
|
118
|
-
status="success"
|
|
119
|
-
duration={3000}
|
|
120
|
-
onClose={() => setToastOpen(false)}
|
|
121
|
-
onOpenChange={setToastOpen}
|
|
122
|
-
/>
|
|
123
|
-
</div>
|
|
124
|
-
);
|
|
125
|
-
}
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { Avatar } from "../../Avatar";
|
|
5
|
-
import { Badge } from "../../Badge";
|
|
6
|
-
import { Button } from "../../Button";
|
|
7
|
-
import { Cell } from "../../Cell";
|
|
8
|
-
import { Empty } from "../../Empty";
|
|
9
|
-
import { PageHeader } from "../../PageHeader";
|
|
10
|
-
import type { PageHeaderProps } from "../../PageHeader";
|
|
11
|
-
import { Scoreboard } from "../../Scoreboard";
|
|
12
|
-
import { Section } from "../../Section";
|
|
13
|
-
import { Table } from "../../Table";
|
|
14
|
-
import { Tabs } from "../../Tabs";
|
|
15
|
-
import { Toast } from "../../Toast";
|
|
16
|
-
import { filterMessages, INBOX, type InboxMessage } from "./inbox-data";
|
|
17
|
-
import { InboxReplyDrawer } from "./InboxReplyDrawer";
|
|
18
|
-
import styles from "./InboxPattern.module.css";
|
|
19
|
-
|
|
20
|
-
const COLUMNS = [
|
|
21
|
-
{ key: "from", header: "From", emphasis: true },
|
|
22
|
-
{ key: "subject", header: "Subject" },
|
|
23
|
-
{ key: "kind", header: "Type" },
|
|
24
|
-
{ key: "when", header: "When" },
|
|
25
|
-
{ key: "open", header: "" },
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
function InboxTable({
|
|
29
|
-
messages,
|
|
30
|
-
onOpen,
|
|
31
|
-
}: {
|
|
32
|
-
messages: InboxMessage[];
|
|
33
|
-
onOpen: (id: string) => void;
|
|
34
|
-
}) {
|
|
35
|
-
return (
|
|
36
|
-
<Table
|
|
37
|
-
caption="Inbox"
|
|
38
|
-
size="sm"
|
|
39
|
-
emptyLabel="No messages in this filter."
|
|
40
|
-
columns={COLUMNS}
|
|
41
|
-
rows={messages.map((item) => ({
|
|
42
|
-
from: <Cell type="avatar" size="sm" name={item.from} src={item.fromSrc} label={item.from} />,
|
|
43
|
-
subject: item.subject,
|
|
44
|
-
kind: <Badge tone={item.kindTone} size="sm">{item.kind}</Badge>,
|
|
45
|
-
when: item.when,
|
|
46
|
-
open: (
|
|
47
|
-
<Button variant="tertiary" size="sm" onClick={() => onOpen(item.id)}>
|
|
48
|
-
Open
|
|
49
|
-
</Button>
|
|
50
|
-
),
|
|
51
|
-
}))}
|
|
52
|
-
/>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface InboxPatternProps {
|
|
57
|
-
breadcrumbs?: PageHeaderProps["breadcrumbs"];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function InboxPattern({ breadcrumbs }: InboxPatternProps) {
|
|
61
|
-
const [messages, setMessages] = useState(INBOX);
|
|
62
|
-
const [tab, setTab] = useState("all");
|
|
63
|
-
const [selectedId, setSelectedId] = useState<string | null>(INBOX[0]?.id ?? null);
|
|
64
|
-
const [drawerOpen, setDrawerOpen] = useState(false);
|
|
65
|
-
const [toastOpen, setToastOpen] = useState(false);
|
|
66
|
-
|
|
67
|
-
const selected = messages.find((item) => item.id === selectedId) ?? null;
|
|
68
|
-
const unread = messages.filter((item) => item.unread).length;
|
|
69
|
-
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
const next = filterMessages(messages, tab);
|
|
72
|
-
if (selectedId && next.some((item) => item.id === selectedId)) return;
|
|
73
|
-
setSelectedId(next[0]?.id ?? null);
|
|
74
|
-
setDrawerOpen(false);
|
|
75
|
-
}, [selectedId, tab, messages]);
|
|
76
|
-
|
|
77
|
-
function archive(id: string) {
|
|
78
|
-
setMessages((current) => current.filter((item) => item.id !== id));
|
|
79
|
-
setDrawerOpen(false);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function openMessage(id: string) {
|
|
83
|
-
setSelectedId(id);
|
|
84
|
-
setDrawerOpen(true);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function sendReply() {
|
|
88
|
-
if (!selected) return;
|
|
89
|
-
setMessages((current) =>
|
|
90
|
-
current.map((item) => (item.id === selected.id ? { ...item, unread: false } : item)),
|
|
91
|
-
);
|
|
92
|
-
setToastOpen(true);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return (
|
|
96
|
-
<div className="layout-canvas layout-canvas--sticky-header">
|
|
97
|
-
<div className="layout-header">
|
|
98
|
-
<PageHeader
|
|
99
|
-
title="Inbox"
|
|
100
|
-
subtitle="Replies, mentions, and requests waiting on you."
|
|
101
|
-
breadcrumbs={breadcrumbs}
|
|
102
|
-
/>
|
|
103
|
-
</div>
|
|
104
|
-
<div className="layout-content">
|
|
105
|
-
<Section title="At a glance">
|
|
106
|
-
<Scoreboard
|
|
107
|
-
className="layout-metrics layout-metrics--fixed-4"
|
|
108
|
-
aria-label="Inbox this week"
|
|
109
|
-
items={[
|
|
110
|
-
{ label: "Unread", value: String(unread), delta: `+${unread}`, trend: "up" as const, hint: "need a look", size: "lg" as const, badge: "Live", badgeTone: "danger" as const },
|
|
111
|
-
{ label: "Mentions", value: String(messages.filter((item) => item.kind === "Mention").length), delta: "+1", trend: "up" as const, hint: "this sprint", size: "lg" as const, badge: "You", badgeTone: "brand" as const },
|
|
112
|
-
{ label: "Requests", value: String(messages.filter((item) => item.kind === "Request").length), delta: "+2", trend: "up" as const, hint: "this sprint", size: "lg" as const, badge: "Review", badgeTone: "warning" as const },
|
|
113
|
-
{ label: "Open", value: String(messages.length), delta: "0", trend: "flat" as const, hint: "in inbox", size: "lg" as const, badge: "Sprint", badgeTone: "info" as const },
|
|
114
|
-
]}
|
|
115
|
-
/>
|
|
116
|
-
</Section>
|
|
117
|
-
<Section title="Messages" description={`${unread} unread`}>
|
|
118
|
-
<Tabs
|
|
119
|
-
ariaLabel="Inbox type"
|
|
120
|
-
variant="line"
|
|
121
|
-
size="md"
|
|
122
|
-
value={tab}
|
|
123
|
-
onChange={setTab}
|
|
124
|
-
items={[
|
|
125
|
-
{ id: "all", label: "All", content: <InboxTable messages={filterMessages(messages, "all")} onOpen={openMessage} /> },
|
|
126
|
-
{ id: "unread", label: "Unread", content: <InboxTable messages={filterMessages(messages, "unread")} onOpen={openMessage} /> },
|
|
127
|
-
{ id: "mentions", label: "Mentions", content: <InboxTable messages={filterMessages(messages, "mentions")} onOpen={openMessage} /> },
|
|
128
|
-
{ id: "requests", label: "Requests", content: <InboxTable messages={filterMessages(messages, "requests")} onOpen={openMessage} /> },
|
|
129
|
-
]}
|
|
130
|
-
/>
|
|
131
|
-
</Section>
|
|
132
|
-
<Section
|
|
133
|
-
title={selected?.subject ?? "Message"}
|
|
134
|
-
description={selected ? `${selected.from} · ${selected.when}` : "Select a row"}
|
|
135
|
-
actions={
|
|
136
|
-
selected ? (
|
|
137
|
-
<>
|
|
138
|
-
<Button variant="secondary" size="sm" onClick={() => archive(selected.id)}>
|
|
139
|
-
Archive
|
|
140
|
-
</Button>
|
|
141
|
-
<Button
|
|
142
|
-
variant={drawerOpen ? "secondary" : "primary"}
|
|
143
|
-
size="sm"
|
|
144
|
-
onClick={() => openMessage(selected.id)}
|
|
145
|
-
>
|
|
146
|
-
Reply
|
|
147
|
-
</Button>
|
|
148
|
-
</>
|
|
149
|
-
) : undefined
|
|
150
|
-
}
|
|
151
|
-
>
|
|
152
|
-
{selected ? (
|
|
153
|
-
<div className={styles.detail}>
|
|
154
|
-
<div className={styles.meta}>
|
|
155
|
-
<Avatar name={selected.from} src={selected.fromSrc} size="md" />
|
|
156
|
-
<div className={styles.copy}>
|
|
157
|
-
<p className={styles.label}>From</p>
|
|
158
|
-
<p className={styles.value}>{selected.from}</p>
|
|
159
|
-
</div>
|
|
160
|
-
<Badge tone={selected.kindTone}>{selected.kind}</Badge>
|
|
161
|
-
</div>
|
|
162
|
-
<p className={styles.body}>{selected.body}</p>
|
|
163
|
-
</div>
|
|
164
|
-
) : (
|
|
165
|
-
<Empty
|
|
166
|
-
title="No message selected"
|
|
167
|
-
description="Open a row to read it here."
|
|
168
|
-
icon="Mail"
|
|
169
|
-
outlined
|
|
170
|
-
/>
|
|
171
|
-
)}
|
|
172
|
-
</Section>
|
|
173
|
-
</div>
|
|
174
|
-
<InboxReplyDrawer
|
|
175
|
-
key={selected?.id ?? "none"}
|
|
176
|
-
message={selected}
|
|
177
|
-
open={drawerOpen}
|
|
178
|
-
onClose={() => setDrawerOpen(false)}
|
|
179
|
-
onSend={sendReply}
|
|
180
|
-
/>
|
|
181
|
-
<Toast
|
|
182
|
-
open={toastOpen}
|
|
183
|
-
title="Reply sent"
|
|
184
|
-
description="It will show up in the thread."
|
|
185
|
-
status="success"
|
|
186
|
-
duration={3000}
|
|
187
|
-
onClose={() => setToastOpen(false)}
|
|
188
|
-
onOpenChange={setToastOpen}
|
|
189
|
-
/>
|
|
190
|
-
</div>
|
|
191
|
-
);
|
|
192
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useId, useState, type FormEvent } from "react";
|
|
4
|
-
import { Button } from "../../Button";
|
|
5
|
-
import { Drawer } from "../../Drawer";
|
|
6
|
-
import { Field } from "../../Field";
|
|
7
|
-
import { FieldSet } from "../../FieldSet";
|
|
8
|
-
import { Input } from "../../Input";
|
|
9
|
-
import { Textarea } from "../../Textarea";
|
|
10
|
-
import type { InboxMessage } from "./inbox-data";
|
|
11
|
-
|
|
12
|
-
export function InboxReplyDrawer({
|
|
13
|
-
message,
|
|
14
|
-
open,
|
|
15
|
-
onClose,
|
|
16
|
-
onSend,
|
|
17
|
-
}: {
|
|
18
|
-
message: InboxMessage | null;
|
|
19
|
-
open: boolean;
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
onSend: () => void;
|
|
22
|
-
}) {
|
|
23
|
-
const baseId = useId();
|
|
24
|
-
const toId = `${baseId}-to`;
|
|
25
|
-
const subjectId = `${baseId}-subject`;
|
|
26
|
-
const replyId = `${baseId}-reply`;
|
|
27
|
-
const [error, setError] = useState<string | undefined>();
|
|
28
|
-
|
|
29
|
-
function close() {
|
|
30
|
-
setError(undefined);
|
|
31
|
-
onClose();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function send() {
|
|
35
|
-
const reply = (document.getElementById(replyId) as HTMLTextAreaElement | null)?.value.trim() ?? "";
|
|
36
|
-
if (!reply) {
|
|
37
|
-
setError("Write a reply before sending.");
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
onSend();
|
|
41
|
-
setError(undefined);
|
|
42
|
-
onClose();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function handleSubmit(event: FormEvent<HTMLFormElement>) {
|
|
46
|
-
event.preventDefault();
|
|
47
|
-
send();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<Drawer
|
|
52
|
-
open={open && Boolean(message)}
|
|
53
|
-
title={message ? `Reply to ${message.from}` : "Reply"}
|
|
54
|
-
description={message?.subject}
|
|
55
|
-
onClose={close}
|
|
56
|
-
footer={
|
|
57
|
-
message ? (
|
|
58
|
-
<>
|
|
59
|
-
<Button variant="primary" block onClick={send}>
|
|
60
|
-
Send reply
|
|
61
|
-
</Button>
|
|
62
|
-
<Button variant="secondary" block onClick={close}>
|
|
63
|
-
Cancel
|
|
64
|
-
</Button>
|
|
65
|
-
</>
|
|
66
|
-
) : null
|
|
67
|
-
}
|
|
68
|
-
>
|
|
69
|
-
{message ? (
|
|
70
|
-
<form onSubmit={handleSubmit}>
|
|
71
|
-
<FieldSet key={message.id} legend="Reply" description="This goes back to the thread.">
|
|
72
|
-
<Field label="To" htmlFor={toId}>
|
|
73
|
-
<Input id={toId} name="to" defaultValue={message.from} />
|
|
74
|
-
</Field>
|
|
75
|
-
<Field label="Subject" htmlFor={subjectId}>
|
|
76
|
-
<Input id={subjectId} name="subject" defaultValue={`Re: ${message.subject}`} />
|
|
77
|
-
</Field>
|
|
78
|
-
<Field
|
|
79
|
-
label="Message"
|
|
80
|
-
htmlFor={replyId}
|
|
81
|
-
hint="Keep it short. They already have the thread."
|
|
82
|
-
error={error}
|
|
83
|
-
>
|
|
84
|
-
<Textarea
|
|
85
|
-
id={replyId}
|
|
86
|
-
name="reply"
|
|
87
|
-
rows={6}
|
|
88
|
-
placeholder="Write a reply..."
|
|
89
|
-
error={Boolean(error)}
|
|
90
|
-
/>
|
|
91
|
-
</Field>
|
|
92
|
-
</FieldSet>
|
|
93
|
-
</form>
|
|
94
|
-
) : null}
|
|
95
|
-
</Drawer>
|
|
96
|
-
);
|
|
97
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import type { BadgeTone } from "../../Badge";
|
|
2
|
-
|
|
3
|
-
export type InboxKind = "Comment" | "Mention" | "Request" | "Status" | "Alert";
|
|
4
|
-
|
|
5
|
-
export interface InboxMessage {
|
|
6
|
-
id: string;
|
|
7
|
-
from: string;
|
|
8
|
-
fromSrc?: string;
|
|
9
|
-
subject: string;
|
|
10
|
-
body: string;
|
|
11
|
-
kind: InboxKind;
|
|
12
|
-
kindTone: BadgeTone;
|
|
13
|
-
when: string;
|
|
14
|
-
unread: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const INBOX: InboxMessage[] = [
|
|
18
|
-
{
|
|
19
|
-
id: "maya-comment",
|
|
20
|
-
from: "Maya Chen",
|
|
21
|
-
fromSrc: "/faces/maya-chen.jpg",
|
|
22
|
-
subject: "Comments on Launch brief",
|
|
23
|
-
body: "Two notes on positioning. Close them before the freeze so copy can lock.",
|
|
24
|
-
kind: "Comment",
|
|
25
|
-
kindTone: "info",
|
|
26
|
-
when: "2h ago",
|
|
27
|
-
unread: true,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "qa-alert",
|
|
31
|
-
from: "Unassigned",
|
|
32
|
-
subject: "QA checklist is still blocked",
|
|
33
|
-
body: "No owner for 2 days. Assign someone before Thursday's review.",
|
|
34
|
-
kind: "Alert",
|
|
35
|
-
kindTone: "danger",
|
|
36
|
-
when: "4h ago",
|
|
37
|
-
unread: true,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: "alex-reply",
|
|
41
|
-
from: "Alex Rivera",
|
|
42
|
-
fromSrc: "/faces/alex-rivera.jpg",
|
|
43
|
-
subject: "Replied on Support macros",
|
|
44
|
-
body: "Refund and delay macros are drafted. Escalation paths still need a pass.",
|
|
45
|
-
kind: "Comment",
|
|
46
|
-
kindTone: "info",
|
|
47
|
-
when: "5h ago",
|
|
48
|
-
unread: true,
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: "maya-mention",
|
|
52
|
-
from: "Maya Chen",
|
|
53
|
-
fromSrc: "/faces/maya-chen.jpg",
|
|
54
|
-
subject: "Mentioned you in Launch brief",
|
|
55
|
-
body: "Can you confirm the hero line before legal looks at the brief?",
|
|
56
|
-
kind: "Mention",
|
|
57
|
-
kindTone: "brand",
|
|
58
|
-
when: "Yesterday",
|
|
59
|
-
unread: true,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
id: "jordan-status",
|
|
63
|
-
from: "Jordan Lee",
|
|
64
|
-
fromSrc: "/faces/jordan-lee.jpg",
|
|
65
|
-
subject: "Release notes moved to Ready",
|
|
66
|
-
body: "Changelog is drafted. Confirm the known-issues list before we tag.",
|
|
67
|
-
kind: "Status",
|
|
68
|
-
kindTone: "success",
|
|
69
|
-
when: "Yesterday",
|
|
70
|
-
unread: true,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: "iris-request",
|
|
74
|
-
from: "Iris Okafor",
|
|
75
|
-
fromSrc: "/faces/iris-okafor.jpg",
|
|
76
|
-
subject: "Review User research",
|
|
77
|
-
body: "Five interviews are in. Need a read on the onboarding friction before Friday.",
|
|
78
|
-
kind: "Request",
|
|
79
|
-
kindTone: "warning",
|
|
80
|
-
when: "Mon",
|
|
81
|
-
unread: true,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
id: "noah-request",
|
|
85
|
-
from: "Noah Williams",
|
|
86
|
-
fromSrc: "/faces/noah-williams.jpg",
|
|
87
|
-
subject: "Legal sign-off on QA",
|
|
88
|
-
body: "The last two device passes are still open. Legal will not sign until they close.",
|
|
89
|
-
kind: "Request",
|
|
90
|
-
kindTone: "warning",
|
|
91
|
-
when: "Mon",
|
|
92
|
-
unread: true,
|
|
93
|
-
},
|
|
94
|
-
];
|
|
95
|
-
|
|
96
|
-
export function filterMessages(messages: InboxMessage[], tab: string): InboxMessage[] {
|
|
97
|
-
if (tab === "unread") return messages.filter((item) => item.unread);
|
|
98
|
-
if (tab === "mentions") return messages.filter((item) => item.kind === "Mention");
|
|
99
|
-
if (tab === "requests") return messages.filter((item) => item.kind === "Request");
|
|
100
|
-
return messages;
|
|
101
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useId, useState, type FormEvent } from "react";
|
|
4
|
-
import { AvatarGroup } from "../../AvatarGroup";
|
|
5
|
-
import { Button } from "../../Button";
|
|
6
|
-
import { ButtonGroup } from "../../ButtonGroup";
|
|
7
|
-
import { Empty } from "../../Empty";
|
|
8
|
-
import { Field } from "../../Field";
|
|
9
|
-
import { FieldSet } from "../../FieldSet";
|
|
10
|
-
import { Input } from "../../Input";
|
|
11
|
-
import { Modal } from "../../Modal";
|
|
12
|
-
import { PageHeader } from "../../PageHeader";
|
|
13
|
-
import type { PageHeaderProps } from "../../PageHeader";
|
|
14
|
-
import { RadioGroup } from "../../RadioGroup";
|
|
15
|
-
import { Toast } from "../../Toast";
|
|
16
|
-
|
|
17
|
-
const TEAM = [
|
|
18
|
-
{ name: "Maya Chen", src: "/faces/maya-chen.jpg" },
|
|
19
|
-
{ name: "Noah Williams", src: "/faces/noah-williams.jpg" },
|
|
20
|
-
{ name: "Iris Okafor", src: "/faces/iris-okafor.jpg" },
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
const ROLE_OPTIONS = [
|
|
24
|
-
{ value: "admin", label: "Admin" },
|
|
25
|
-
{ value: "member", label: "Member" },
|
|
26
|
-
{ value: "viewer", label: "Viewer" },
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
export interface InviteMembersPatternProps {
|
|
30
|
-
breadcrumbs?: PageHeaderProps["breadcrumbs"];
|
|
31
|
-
onInvite?: (payload: { email: string; role: string }) => void;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function InviteMembersPattern({ breadcrumbs, onInvite }: InviteMembersPatternProps) {
|
|
35
|
-
const uid = useId();
|
|
36
|
-
const [open, setOpen] = useState(false);
|
|
37
|
-
const [email, setEmail] = useState("");
|
|
38
|
-
const [role, setRole] = useState("member");
|
|
39
|
-
const [emailError, setEmailError] = useState<string | undefined>();
|
|
40
|
-
const [toastOpen, setToastOpen] = useState(false);
|
|
41
|
-
const [sentTo, setSentTo] = useState("");
|
|
42
|
-
|
|
43
|
-
const emailId = `${uid}-email`;
|
|
44
|
-
const roleName = `${uid}-role`;
|
|
45
|
-
|
|
46
|
-
function close() {
|
|
47
|
-
setOpen(false);
|
|
48
|
-
setEmailError(undefined);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function send() {
|
|
52
|
-
const nextEmail = email.trim();
|
|
53
|
-
if (!nextEmail || !nextEmail.includes("@")) {
|
|
54
|
-
setEmailError("Enter a work email.");
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
onInvite?.({ email: nextEmail, role });
|
|
59
|
-
setSentTo(nextEmail);
|
|
60
|
-
setEmail("");
|
|
61
|
-
setRole("member");
|
|
62
|
-
setEmailError(undefined);
|
|
63
|
-
setOpen(false);
|
|
64
|
-
setToastOpen(true);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function handleSubmit(event: FormEvent<HTMLFormElement>) {
|
|
68
|
-
event.preventDefault();
|
|
69
|
-
send();
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<div className="layout-canvas layout-canvas--sticky-header">
|
|
74
|
-
<div className="layout-header">
|
|
75
|
-
<PageHeader
|
|
76
|
-
title="Invite members"
|
|
77
|
-
subtitle="Add people to this workspace so review comments have owners."
|
|
78
|
-
breadcrumbs={breadcrumbs}
|
|
79
|
-
/>
|
|
80
|
-
</div>
|
|
81
|
-
<div className="layout-content">
|
|
82
|
-
<Empty
|
|
83
|
-
title="No pending invites"
|
|
84
|
-
description="Maya, Noah, and Iris are in this workspace. Three seats are open for design and QA."
|
|
85
|
-
media={<AvatarGroup ariaLabel="Current members" items={TEAM} max={3} />}
|
|
86
|
-
outlined
|
|
87
|
-
actions={
|
|
88
|
-
<Button variant="primary" size="md" onClick={() => setOpen(true)}>
|
|
89
|
-
Invite members
|
|
90
|
-
</Button>
|
|
91
|
-
}
|
|
92
|
-
/>
|
|
93
|
-
</div>
|
|
94
|
-
<Modal
|
|
95
|
-
open={open}
|
|
96
|
-
title="Invite members"
|
|
97
|
-
description="Send an email invite. They join with the role you pick."
|
|
98
|
-
size="md"
|
|
99
|
-
onClose={close}
|
|
100
|
-
footer={
|
|
101
|
-
<ButtonGroup ariaLabel="Invite actions">
|
|
102
|
-
<Button variant="secondary" size="md" onClick={close}>
|
|
103
|
-
Cancel
|
|
104
|
-
</Button>
|
|
105
|
-
<Button variant="primary" size="md" onClick={send}>
|
|
106
|
-
Send invite
|
|
107
|
-
</Button>
|
|
108
|
-
</ButtonGroup>
|
|
109
|
-
}
|
|
110
|
-
>
|
|
111
|
-
<form onSubmit={handleSubmit}>
|
|
112
|
-
<FieldSet legend="New member" description="They get access to Sprint 24 projects.">
|
|
113
|
-
<Field label="Email" htmlFor={emailId} hint="Work email they already use" error={emailError}>
|
|
114
|
-
<Input
|
|
115
|
-
id={emailId}
|
|
116
|
-
type="email"
|
|
117
|
-
iconStart="Mail"
|
|
118
|
-
placeholder="name@company.com"
|
|
119
|
-
value={email}
|
|
120
|
-
onChange={(value) => {
|
|
121
|
-
setEmail(value);
|
|
122
|
-
if (emailError) setEmailError(undefined);
|
|
123
|
-
}}
|
|
124
|
-
/>
|
|
125
|
-
</Field>
|
|
126
|
-
<RadioGroup
|
|
127
|
-
name={roleName}
|
|
128
|
-
legend="Role"
|
|
129
|
-
orientation="horizontal"
|
|
130
|
-
options={ROLE_OPTIONS}
|
|
131
|
-
value={role}
|
|
132
|
-
onChange={setRole}
|
|
133
|
-
/>
|
|
134
|
-
</FieldSet>
|
|
135
|
-
</form>
|
|
136
|
-
</Modal>
|
|
137
|
-
<Toast
|
|
138
|
-
open={toastOpen}
|
|
139
|
-
title="Invite sent"
|
|
140
|
-
description={sentTo ? `We'll email ${sentTo} a link to join this workspace.` : undefined}
|
|
141
|
-
status="success"
|
|
142
|
-
duration={3000}
|
|
143
|
-
onClose={() => setToastOpen(false)}
|
|
144
|
-
onOpenChange={setToastOpen}
|
|
145
|
-
/>
|
|
146
|
-
</div>
|
|
147
|
-
);
|
|
148
|
-
}
|