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,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._control_ds57p_1 {
|
|
2
2
|
display: block;
|
|
3
3
|
width: 100%;
|
|
4
4
|
font-family: var(--font-sans);
|
|
@@ -12,37 +12,37 @@
|
|
|
12
12
|
transition: border-color var(--motion-fast) ease, outline-color var(--motion-fast) ease;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
._control_ds57p_1:focus {
|
|
16
16
|
border-color: var(--border-focus);
|
|
17
17
|
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
18
18
|
outline-offset: var(--space-inset-2xs);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
._control_ds57p_1:disabled {
|
|
22
22
|
opacity: 0.5;
|
|
23
23
|
cursor: not-allowed;
|
|
24
24
|
background-color: var(--surface-muted);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.
|
|
27
|
+
._controlLg_ds57p_27 {
|
|
28
28
|
padding: var(--space-3) var(--space-4);
|
|
29
29
|
font-size: var(--type-size-body);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.
|
|
32
|
+
._controlMd_ds57p_32 {
|
|
33
33
|
padding: var(--space-2) var(--space-3);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
._controlSm_ds57p_36 {
|
|
37
37
|
padding: var(--space-1) var(--space-2);
|
|
38
38
|
font-size: var(--type-size-label);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
._controlError_ds57p_41 {
|
|
42
42
|
border-color: var(--status-danger);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
._controlError_ds57p_41:focus {
|
|
46
46
|
border-color: var(--status-danger);
|
|
47
47
|
outline-color: var(--status-danger);
|
|
48
48
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./controls.module.css";
|
|
2
|
+
//#region ui/shared/controls.module.css
|
|
3
|
+
var e = "_control_ds57p_1", t = "_controlLg_ds57p_27", n = "_controlMd_ds57p_32", r = "_controlSm_ds57p_36", i = "_controlError_ds57p_41", a = {
|
|
4
|
+
control: e,
|
|
5
|
+
controlLg: t,
|
|
6
|
+
controlMd: n,
|
|
7
|
+
controlSm: r,
|
|
8
|
+
controlError: i
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as control, i as controlError, t as controlLg, n as controlMd, r as controlSm, a as default };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=controls.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controls.module.js","names":[],"sources":["../../../ui/shared/controls.module.css"],"sourcesContent":[".control {\n display: block;\n width: 100%;\n font-family: var(--font-sans);\n font-size: var(--type-size-body-sm);\n font-weight: var(--type-weight-body);\n line-height: var(--type-line-body);\n color: var(--text-primary);\n background-color: var(--surface-card);\n border: var(--border-width-thin) solid var(--border-faint);\n border-radius: var(--radius-control-md);\n transition: border-color var(--motion-fast) ease, outline-color var(--motion-fast) ease;\n}\n\n.control:focus {\n border-color: var(--border-focus);\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: var(--space-inset-2xs);\n}\n\n.control:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n background-color: var(--surface-muted);\n}\n\n.controlLg {\n padding: var(--space-3) var(--space-4);\n font-size: var(--type-size-body);\n}\n\n.controlMd {\n padding: var(--space-2) var(--space-3);\n}\n\n.controlSm {\n padding: var(--space-1) var(--space-2);\n font-size: var(--type-size-label);\n}\n\n.controlError {\n border-color: var(--status-danger);\n}\n\n.controlError:focus {\n border-color: var(--status-danger);\n outline-color: var(--status-danger);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
3
|
+
//#region ui/shared/useChartSize.ts
|
|
4
|
+
function r(r) {
|
|
5
|
+
let i = t(null), [a, o] = n(0);
|
|
6
|
+
return e(() => {
|
|
7
|
+
let e = i.current;
|
|
8
|
+
if (!e) return;
|
|
9
|
+
let t = () => o(e.clientWidth);
|
|
10
|
+
t();
|
|
11
|
+
let n = new ResizeObserver(t);
|
|
12
|
+
return n.observe(e), () => n.disconnect();
|
|
13
|
+
}, []), {
|
|
14
|
+
ref: i,
|
|
15
|
+
width: a,
|
|
16
|
+
height: r
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as useChartSize };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=useChartSize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChartSize.js","names":[],"sources":["../../../ui/shared/useChartSize.ts"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\n\nexport function useChartSize(fallbackHeight: number) {\n const ref = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(0);\n\n useEffect(() => {\n const node = ref.current;\n if (!node) return undefined;\n\n const update = () => setWidth(node.clientWidth);\n update();\n\n const observer = new ResizeObserver(update);\n observer.observe(node);\n return () => observer.disconnect();\n }, []);\n\n return { ref, width, height: fallbackHeight };\n}\n"],"mappings":";;;AAIA,SAAgB,EAAa,GAAwB;CACnD,IAAM,IAAM,EAAuB,IAAI,GACjC,CAAC,GAAO,KAAY,EAAS,CAAC;CAcpC,OAZA,QAAgB;EACd,IAAM,IAAO,EAAI;EACjB,IAAI,CAAC,GAAM;EAEX,IAAM,UAAe,EAAS,EAAK,WAAW;EAC9C,EAAO;EAEP,IAAM,IAAW,IAAI,eAAe,CAAM;EAE1C,OADA,EAAS,QAAQ,CAAI,SACR,EAAS,WAAW;CACnC,GAAG,CAAC,CAAC,GAEE;EAAE;EAAK;EAAO,QAAQ;CAAe;AAC9C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-ds-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Code-only agentic design system: contracts, tokens, and React components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,20 +14,27 @@
|
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"sideEffects": [
|
|
17
|
-
"**/*.css"
|
|
17
|
+
"**/*.css",
|
|
18
|
+
"**/*.module.js",
|
|
19
|
+
"./src/tokens.ts",
|
|
20
|
+
"./dist/src/tokens.js"
|
|
18
21
|
],
|
|
19
22
|
"files": [
|
|
20
|
-
"
|
|
21
|
-
"ui",
|
|
23
|
+
"dist",
|
|
22
24
|
"contracts",
|
|
23
25
|
"tokens",
|
|
24
26
|
"lib",
|
|
25
27
|
"skills",
|
|
26
28
|
"AGENTS.md",
|
|
27
|
-
"CLAUDE.md"
|
|
29
|
+
"CLAUDE.md",
|
|
30
|
+
"LICENSE"
|
|
28
31
|
],
|
|
29
32
|
"exports": {
|
|
30
|
-
".":
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/src/index.d.ts",
|
|
35
|
+
"import": "./dist/src/index.js",
|
|
36
|
+
"default": "./dist/src/index.js"
|
|
37
|
+
},
|
|
31
38
|
"./tokens.css": "./lib/tokens.css",
|
|
32
39
|
"./contracts/index.json": "./contracts/index.json",
|
|
33
40
|
"./contracts/*.json": "./contracts/*.json",
|
|
@@ -36,20 +43,33 @@
|
|
|
36
43
|
"./package.json": "./package.json"
|
|
37
44
|
},
|
|
38
45
|
"scripts": {
|
|
39
|
-
"generate:tokens": "node scripts/generate-tokens.mjs"
|
|
46
|
+
"generate:tokens": "node scripts/generate-tokens.mjs",
|
|
47
|
+
"build": "npm run generate:tokens && vite build",
|
|
48
|
+
"prepublishOnly": "npm run build"
|
|
40
49
|
},
|
|
41
50
|
"peerDependencies": {
|
|
51
|
+
"next": ">=14",
|
|
42
52
|
"react": "^19.0.0",
|
|
43
53
|
"react-dom": "^19.0.0"
|
|
44
54
|
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"next": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
45
60
|
"dependencies": {
|
|
46
61
|
"embla-carousel-react": "^8.6.0",
|
|
47
62
|
"lucide-react": "^1.37.0"
|
|
48
63
|
},
|
|
49
64
|
"devDependencies": {
|
|
65
|
+
"@types/node": "^20",
|
|
50
66
|
"@types/react": "^19",
|
|
51
67
|
"@types/react-dom": "^19",
|
|
52
|
-
"
|
|
68
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
69
|
+
"rollup-preserve-directives": "^1.1.3",
|
|
70
|
+
"typescript": "^5",
|
|
71
|
+
"vite": "^8.2.2",
|
|
72
|
+
"vite-plugin-dts": "^5.1.0"
|
|
53
73
|
},
|
|
54
74
|
"engines": {
|
|
55
75
|
"node": ">=20"
|
|
@@ -18,7 +18,7 @@ Use this skill when adding or changing UI in an app that depends on `agentic-ds-
|
|
|
18
18
|
## Hard rules
|
|
19
19
|
|
|
20
20
|
- Never define local cousins of kit components.
|
|
21
|
-
-
|
|
21
|
+
- Importing from `agentic-ds-kit` loads tokens. Do not add a second tokens import unless your own CSS needs the variables first.
|
|
22
22
|
- Never use raw hex in component styles; semantic tokens only.
|
|
23
23
|
- Metric rows use `<Scoreboard items={...} />`, not flex layouts with borders.
|
|
24
24
|
- Settings pages use the `settings-form` pattern with `Field` wrappers.
|
package/src/index.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/** Public kit API. Import components and patterns from `agentic-ds-kit`. */
|
|
2
|
-
|
|
3
|
-
export * from "../ui/Accordion";
|
|
4
|
-
export * from "../ui/Alert";
|
|
5
|
-
export * from "../ui/AlertDialog";
|
|
6
|
-
export * from "../ui/AppHeader";
|
|
7
|
-
export * from "../ui/AppNav";
|
|
8
|
-
export * from "../ui/Avatar";
|
|
9
|
-
export * from "../ui/AvatarGroup";
|
|
10
|
-
export * from "../ui/Badge";
|
|
11
|
-
export * from "../ui/BarChart";
|
|
12
|
-
export * from "../ui/Breadcrumb";
|
|
13
|
-
export * from "../ui/Button";
|
|
14
|
-
export * from "../ui/ButtonGroup";
|
|
15
|
-
export * from "../ui/Calendar";
|
|
16
|
-
export * from "../ui/Card";
|
|
17
|
-
export * from "../ui/Carousel";
|
|
18
|
-
export * from "../ui/Cell";
|
|
19
|
-
export * from "../ui/Chat";
|
|
20
|
-
export * from "../ui/Checkbox";
|
|
21
|
-
export * from "../ui/Collapsible";
|
|
22
|
-
export * from "../ui/Command";
|
|
23
|
-
export * from "../ui/DataTable";
|
|
24
|
-
export * from "../ui/DatePicker";
|
|
25
|
-
export * from "../ui/Drawer";
|
|
26
|
-
export * from "../ui/DropdownMenu";
|
|
27
|
-
export * from "../ui/Empty";
|
|
28
|
-
export * from "../ui/Field";
|
|
29
|
-
export * from "../ui/FieldSet";
|
|
30
|
-
export * from "../ui/HeaderCell";
|
|
31
|
-
export * from "../ui/Input";
|
|
32
|
-
export * from "../ui/InputOTP";
|
|
33
|
-
export * from "../ui/InsightCard";
|
|
34
|
-
export * from "../ui/LineChart";
|
|
35
|
-
export * from "../ui/LoadingAnimation";
|
|
36
|
-
export * from "../ui/Modal";
|
|
37
|
-
export * from "../ui/ModalCard";
|
|
38
|
-
export * from "../ui/NavigationMenu";
|
|
39
|
-
export * from "../ui/NumberTransition";
|
|
40
|
-
export * from "../ui/PageHeader";
|
|
41
|
-
export * from "../ui/Pagination";
|
|
42
|
-
export * from "../ui/PieChart";
|
|
43
|
-
export * from "../ui/Progress";
|
|
44
|
-
export * from "../ui/ProgressSteps";
|
|
45
|
-
export * from "../ui/RadioGroup";
|
|
46
|
-
export * from "../ui/Scoreboard";
|
|
47
|
-
export * from "../ui/Scorecard";
|
|
48
|
-
export * from "../ui/Section";
|
|
49
|
-
export * from "../ui/Select";
|
|
50
|
-
export * from "../ui/ShimmerText";
|
|
51
|
-
export * from "../ui/SideNav";
|
|
52
|
-
export * from "../ui/Slider";
|
|
53
|
-
export * from "../ui/Spinner";
|
|
54
|
-
export * from "../ui/Switch";
|
|
55
|
-
export * from "../ui/Table";
|
|
56
|
-
export * from "../ui/Tabs";
|
|
57
|
-
export * from "../ui/Textarea";
|
|
58
|
-
export * from "../ui/ThinkingAnimation";
|
|
59
|
-
export * from "../ui/Timeline";
|
|
60
|
-
export * from "../ui/Toast";
|
|
61
|
-
export * from "../ui/Tooltip";
|
|
62
|
-
|
|
63
|
-
export * from "../ui/patterns/ActivityPattern";
|
|
64
|
-
export * from "../ui/patterns/AssistantWorkspacePattern";
|
|
65
|
-
export * from "../ui/patterns/DashboardPattern";
|
|
66
|
-
export * from "../ui/patterns/EmptyFirstRunPattern";
|
|
67
|
-
export * from "../ui/patterns/InboxPattern";
|
|
68
|
-
export * from "../ui/patterns/InviteMembersPattern";
|
|
69
|
-
export * from "../ui/patterns/ListDetailPattern";
|
|
70
|
-
export * from "../ui/patterns/SettingsFormPattern";
|
|
71
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { ChevronDown } from "lucide-react";
|
|
5
|
-
import type { AccordionProps } from "./Accordion.types";
|
|
6
|
-
import styles from "./Accordion.module.css";
|
|
7
|
-
|
|
8
|
-
export type { AccordionProps, AccordionItem } from "./Accordion.types";
|
|
9
|
-
|
|
10
|
-
export function Accordion({ items, defaultOpen }: AccordionProps) {
|
|
11
|
-
const [openId, setOpenId] = useState<string | null>(defaultOpen ?? null);
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<div className={styles.root}>
|
|
15
|
-
{items.map((item) => {
|
|
16
|
-
const open = openId === item.id;
|
|
17
|
-
const panelId = `accordion-panel-${item.id}`;
|
|
18
|
-
const buttonId = `accordion-button-${item.id}`;
|
|
19
|
-
return (
|
|
20
|
-
<div key={item.id} className={styles.item}>
|
|
21
|
-
<button
|
|
22
|
-
type="button"
|
|
23
|
-
id={buttonId}
|
|
24
|
-
className={`${styles.trigger} ${open ? styles.triggerOpen : ""}`}
|
|
25
|
-
aria-expanded={open}
|
|
26
|
-
aria-controls={panelId}
|
|
27
|
-
onClick={() => setOpenId((current) => (current === item.id ? null : item.id))}
|
|
28
|
-
>
|
|
29
|
-
<span className={styles.title}>{item.title}</span>
|
|
30
|
-
<ChevronDown
|
|
31
|
-
className={`${styles.chevron} ${open ? styles.chevronOpen : ""}`}
|
|
32
|
-
size={16}
|
|
33
|
-
strokeWidth={2}
|
|
34
|
-
aria-hidden
|
|
35
|
-
/>
|
|
36
|
-
</button>
|
|
37
|
-
<div
|
|
38
|
-
id={panelId}
|
|
39
|
-
role="region"
|
|
40
|
-
aria-labelledby={buttonId}
|
|
41
|
-
className={styles.panel}
|
|
42
|
-
hidden={!open}
|
|
43
|
-
>
|
|
44
|
-
<p className={styles.body}>{item.content}</p>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
})}
|
|
49
|
-
</div>
|
|
50
|
-
);
|
|
51
|
-
}
|
package/ui/Accordion/index.ts
DELETED
package/ui/Alert/Alert.tsx
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CircleAlert, CircleCheck, Info, TriangleAlert } from "lucide-react";
|
|
2
|
-
import type { AlertProps, AlertVariant } from "./Alert.types";
|
|
3
|
-
import styles from "./Alert.module.css";
|
|
4
|
-
|
|
5
|
-
export type { AlertProps, AlertVariant } from "./Alert.types";
|
|
6
|
-
|
|
7
|
-
const ICONS: Record<AlertVariant, typeof Info> = {
|
|
8
|
-
info: Info,
|
|
9
|
-
success: CircleCheck,
|
|
10
|
-
warning: TriangleAlert,
|
|
11
|
-
danger: CircleAlert,
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export function Alert({ children, variant = "info", title }: AlertProps) {
|
|
15
|
-
const Icon = ICONS[variant];
|
|
16
|
-
const role = variant === "warning" || variant === "danger" ? "alert" : "status";
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div className={`${styles.alert} ${styles[variant]}`} role={role}>
|
|
20
|
-
<Icon className={styles.icon} size={18} strokeWidth={2} aria-hidden />
|
|
21
|
-
<div className={styles.copy}>
|
|
22
|
-
{title ? <p className={styles.title}>{title}</p> : null}
|
|
23
|
-
<p className={styles.body}>{children}</p>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
}
|
package/ui/Alert/index.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useEffect, useId, useRef } from "react";
|
|
4
|
-
import { Button } from "../Button";
|
|
5
|
-
import { ButtonGroup } from "../ButtonGroup";
|
|
6
|
-
import type { AlertDialogProps } from "./AlertDialog.types";
|
|
7
|
-
import styles from "./AlertDialog.module.css";
|
|
8
|
-
|
|
9
|
-
export type { AlertDialogProps, AlertDialogActionVariant, AlertDialogSize } from "./AlertDialog.types";
|
|
10
|
-
|
|
11
|
-
export function AlertDialog({
|
|
12
|
-
open,
|
|
13
|
-
title,
|
|
14
|
-
description,
|
|
15
|
-
cancelLabel = "Cancel",
|
|
16
|
-
actionLabel,
|
|
17
|
-
actionVariant = "primary",
|
|
18
|
-
size = "md",
|
|
19
|
-
onCancel,
|
|
20
|
-
onAction,
|
|
21
|
-
}: AlertDialogProps) {
|
|
22
|
-
const titleId = useId();
|
|
23
|
-
const descriptionId = useId();
|
|
24
|
-
const dialogRef = useRef<HTMLDivElement>(null);
|
|
25
|
-
const cancelRef = useRef<HTMLButtonElement | null>(null);
|
|
26
|
-
const onCancelRef = useRef(onCancel);
|
|
27
|
-
|
|
28
|
-
onCancelRef.current = onCancel;
|
|
29
|
-
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
if (!open) return;
|
|
32
|
-
|
|
33
|
-
const root = dialogRef.current;
|
|
34
|
-
if (!root) return;
|
|
35
|
-
|
|
36
|
-
const cancelButton = root.querySelector<HTMLButtonElement>("button");
|
|
37
|
-
cancelRef.current = cancelButton;
|
|
38
|
-
cancelButton?.focus();
|
|
39
|
-
|
|
40
|
-
const onKeyDown = (event: KeyboardEvent) => {
|
|
41
|
-
if (event.key === "Escape") {
|
|
42
|
-
event.preventDefault();
|
|
43
|
-
onCancelRef.current();
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (event.key !== "Tab") return;
|
|
48
|
-
|
|
49
|
-
const buttons = Array.from(root.querySelectorAll<HTMLButtonElement>("button"));
|
|
50
|
-
if (buttons.length === 0) return;
|
|
51
|
-
|
|
52
|
-
const first = buttons[0];
|
|
53
|
-
const last = buttons[buttons.length - 1];
|
|
54
|
-
const active = document.activeElement;
|
|
55
|
-
const inside = active instanceof Node && root.contains(active);
|
|
56
|
-
|
|
57
|
-
if (event.shiftKey) {
|
|
58
|
-
if (!inside || active === first) {
|
|
59
|
-
event.preventDefault();
|
|
60
|
-
last.focus();
|
|
61
|
-
}
|
|
62
|
-
} else if (!inside || active === last) {
|
|
63
|
-
event.preventDefault();
|
|
64
|
-
first.focus();
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
document.addEventListener("keydown", onKeyDown);
|
|
69
|
-
return () => document.removeEventListener("keydown", onKeyDown);
|
|
70
|
-
}, [open]);
|
|
71
|
-
|
|
72
|
-
if (!open) return null;
|
|
73
|
-
|
|
74
|
-
return (
|
|
75
|
-
<div
|
|
76
|
-
className={styles.overlay}
|
|
77
|
-
role="presentation"
|
|
78
|
-
onMouseDown={(event) => {
|
|
79
|
-
if (event.target === event.currentTarget) event.preventDefault();
|
|
80
|
-
}}
|
|
81
|
-
>
|
|
82
|
-
<div
|
|
83
|
-
ref={dialogRef}
|
|
84
|
-
role="alertdialog"
|
|
85
|
-
aria-modal="true"
|
|
86
|
-
aria-labelledby={titleId}
|
|
87
|
-
aria-describedby={descriptionId}
|
|
88
|
-
className={`${styles.dialog} ${styles[size]}`}
|
|
89
|
-
>
|
|
90
|
-
<h2 id={titleId} className={styles.title}>
|
|
91
|
-
{title}
|
|
92
|
-
</h2>
|
|
93
|
-
<p id={descriptionId} className={styles.description}>
|
|
94
|
-
{description}
|
|
95
|
-
</p>
|
|
96
|
-
<div className={styles.footer}>
|
|
97
|
-
<ButtonGroup ariaLabel="Dialog actions">
|
|
98
|
-
<Button variant="secondary" size="md" onClick={onCancel}>
|
|
99
|
-
{cancelLabel}
|
|
100
|
-
</Button>
|
|
101
|
-
<Button variant={actionVariant} size="md" onClick={onAction}>
|
|
102
|
-
{actionLabel}
|
|
103
|
-
</Button>
|
|
104
|
-
</ButtonGroup>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
);
|
|
109
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type AlertDialogSize = "sm" | "md";
|
|
2
|
-
export type AlertDialogActionVariant = "primary" | "danger";
|
|
3
|
-
|
|
4
|
-
export interface AlertDialogProps {
|
|
5
|
-
open: boolean;
|
|
6
|
-
title: string;
|
|
7
|
-
description: string;
|
|
8
|
-
cancelLabel?: string;
|
|
9
|
-
actionLabel: string;
|
|
10
|
-
actionVariant?: AlertDialogActionVariant;
|
|
11
|
-
size?: AlertDialogSize;
|
|
12
|
-
onCancel: () => void;
|
|
13
|
-
onAction: () => void;
|
|
14
|
-
}
|
package/ui/AlertDialog/index.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { useId } from "react";
|
|
2
|
-
import { Input } from "../Input";
|
|
3
|
-
import type { AppHeaderProps } from "./AppHeader.types";
|
|
4
|
-
import styles from "./AppHeader.module.css";
|
|
5
|
-
|
|
6
|
-
export type { AppHeaderProps, AppHeaderRadius } from "./AppHeader.types";
|
|
7
|
-
|
|
8
|
-
export function AppHeader({
|
|
9
|
-
title,
|
|
10
|
-
mark,
|
|
11
|
-
logo,
|
|
12
|
-
search = true,
|
|
13
|
-
searchPlaceholder = "Search",
|
|
14
|
-
searchValue,
|
|
15
|
-
defaultSearchValue,
|
|
16
|
-
onSearch,
|
|
17
|
-
searchShortcut,
|
|
18
|
-
searchId,
|
|
19
|
-
actions,
|
|
20
|
-
className = "",
|
|
21
|
-
ariaLabel,
|
|
22
|
-
radius = "none",
|
|
23
|
-
}: AppHeaderProps) {
|
|
24
|
-
const generatedId = useId();
|
|
25
|
-
const inputId = searchId ?? generatedId;
|
|
26
|
-
const markLetter = (mark && mark.length > 0 ? mark : title?.charAt(0)) || "·";
|
|
27
|
-
const label = ariaLabel ?? title ?? "Application";
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<header
|
|
31
|
-
className={`${styles.header} ${radius === "md" ? styles.radiusMd : ""} ${className}`.trim()}
|
|
32
|
-
aria-label={label}
|
|
33
|
-
data-search={search ? undefined : "false"}
|
|
34
|
-
>
|
|
35
|
-
<div className={styles.start}>
|
|
36
|
-
{logo ? (
|
|
37
|
-
<div className={styles.logo}>{logo}</div>
|
|
38
|
-
) : (
|
|
39
|
-
<span className={styles.mark} aria-hidden>
|
|
40
|
-
{markLetter}
|
|
41
|
-
</span>
|
|
42
|
-
)}
|
|
43
|
-
{title ? <p className={styles.title}>{title}</p> : null}
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
{search ? (
|
|
47
|
-
<div className={styles.center}>
|
|
48
|
-
<div className={styles.search}>
|
|
49
|
-
<Input
|
|
50
|
-
id={inputId}
|
|
51
|
-
type="search"
|
|
52
|
-
size="md"
|
|
53
|
-
placeholder={searchPlaceholder}
|
|
54
|
-
value={searchValue}
|
|
55
|
-
defaultValue={defaultSearchValue}
|
|
56
|
-
onChange={onSearch}
|
|
57
|
-
iconStart="Search"
|
|
58
|
-
end={searchShortcut}
|
|
59
|
-
ariaLabel={searchPlaceholder}
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
) : null}
|
|
64
|
-
|
|
65
|
-
<div className={styles.end} role={actions ? "group" : undefined} aria-label={actions ? "Actions" : undefined}>
|
|
66
|
-
{actions}
|
|
67
|
-
</div>
|
|
68
|
-
</header>
|
|
69
|
-
);
|
|
70
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
export type AppHeaderRadius = "md" | "none";
|
|
4
|
-
|
|
5
|
-
export interface AppHeaderProps {
|
|
6
|
-
/** Product name next to the mark. Ignored as a heading — this is chrome, not PageHeader. */
|
|
7
|
-
title?: string;
|
|
8
|
-
/** Brand letter. Defaults to the first character of title. Used when logo is omitted. */
|
|
9
|
-
mark?: string;
|
|
10
|
-
/** Custom mark or wordmark. Replaces the default letter mark. Pass the consumer’s logo here. */
|
|
11
|
-
logo?: ReactNode;
|
|
12
|
-
/** Show the centered kit Input. Default true. */
|
|
13
|
-
search?: boolean;
|
|
14
|
-
searchPlaceholder?: string;
|
|
15
|
-
searchValue?: string;
|
|
16
|
-
defaultSearchValue?: string;
|
|
17
|
-
/** Input onChange. */
|
|
18
|
-
onSearch?: (value: string) => void;
|
|
19
|
-
/** Decorative shortcut in the Input end slot, e.g. ⌘K. */
|
|
20
|
-
searchShortcut?: string;
|
|
21
|
-
searchId?: string;
|
|
22
|
-
/** Trailing kit Buttons (and optional Avatar). At most one primary. */
|
|
23
|
-
actions?: ReactNode;
|
|
24
|
-
className?: string;
|
|
25
|
-
ariaLabel?: string;
|
|
26
|
-
/** Bar corners. none is flush; md is radius-surface-md. */
|
|
27
|
-
radius?: AppHeaderRadius;
|
|
28
|
-
}
|
package/ui/AppHeader/index.ts
DELETED