agentic-ds-kit 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -7
- package/dist/lib/tokens.css +637 -0
- package/dist/src/index.d.ts +67 -0
- package/dist/src/index.js +69 -0
- package/dist/src/tokens.d.ts +0 -0
- package/dist/src/tokens.js +2 -0
- package/dist/ui/Accordion/Accordion.d.ts +3 -0
- package/dist/ui/Accordion/Accordion.js +49 -0
- package/dist/ui/Accordion/Accordion.js.map +1 -0
- package/{ui → dist/ui}/Accordion/Accordion.module.css +11 -11
- package/dist/ui/Accordion/Accordion.module.js +16 -0
- package/dist/ui/Accordion/Accordion.module.js.map +1 -0
- package/dist/ui/Accordion/Accordion.types.d.ts +9 -0
- package/dist/ui/Accordion/index.d.ts +2 -0
- package/dist/ui/Alert/Alert.d.ts +3 -0
- package/dist/ui/Alert/Alert.js +36 -0
- package/dist/ui/Alert/Alert.js.map +1 -0
- package/{ui → dist/ui}/Alert/Alert.module.css +12 -12
- package/dist/ui/Alert/Alert.module.js +17 -0
- package/dist/ui/Alert/Alert.module.js.map +1 -0
- package/{ui/Alert/Alert.types.ts → dist/ui/Alert/Alert.types.d.ts} +3 -4
- package/dist/ui/Alert/index.d.ts +2 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +3 -0
- package/dist/ui/AlertDialog/AlertDialog.js +76 -0
- package/dist/ui/AlertDialog/AlertDialog.js.map +1 -0
- package/{ui → dist/ui}/AlertDialog/AlertDialog.module.css +11 -11
- package/dist/ui/AlertDialog/AlertDialog.module.js +17 -0
- package/dist/ui/AlertDialog/AlertDialog.module.js.map +1 -0
- package/dist/ui/AlertDialog/AlertDialog.types.d.ts +13 -0
- package/dist/ui/AlertDialog/index.d.ts +2 -0
- package/dist/ui/AppHeader/AppHeader.d.ts +3 -0
- package/dist/ui/AppHeader/AppHeader.js +57 -0
- package/dist/ui/AppHeader/AppHeader.js.map +1 -0
- package/{ui → dist/ui}/AppHeader/AppHeader.module.css +15 -15
- package/dist/ui/AppHeader/AppHeader.module.js +17 -0
- package/dist/ui/AppHeader/AppHeader.module.js.map +1 -0
- package/dist/ui/AppHeader/AppHeader.types.d.ts +26 -0
- package/dist/ui/AppHeader/index.d.ts +2 -0
- package/dist/ui/AppNav/AppNav.d.ts +3 -0
- package/dist/ui/AppNav/AppNav.js +108 -0
- package/dist/ui/AppNav/AppNav.js.map +1 -0
- package/{ui → dist/ui}/AppNav/AppNav.module.css +27 -27
- package/dist/ui/AppNav/AppNav.module.js +28 -0
- package/dist/ui/AppNav/AppNav.module.js.map +1 -0
- package/dist/ui/AppNav/AppNav.types.d.ts +21 -0
- package/{ui/AppNav/index.ts → dist/ui/AppNav/index.d.ts} +2 -2
- package/dist/ui/Avatar/Avatar.d.ts +3 -0
- package/dist/ui/Avatar/Avatar.js +48 -0
- package/dist/ui/Avatar/Avatar.js.map +1 -0
- package/{ui → dist/ui}/Avatar/Avatar.module.css +7 -7
- package/dist/ui/Avatar/Avatar.module.js +15 -0
- package/dist/ui/Avatar/Avatar.module.js.map +1 -0
- package/dist/ui/Avatar/Avatar.types.d.ts +7 -0
- package/dist/ui/Avatar/index.d.ts +2 -0
- package/dist/ui/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/ui/AvatarGroup/AvatarGroup.js +31 -0
- package/dist/ui/AvatarGroup/AvatarGroup.js.map +1 -0
- package/{ui → dist/ui}/AvatarGroup/AvatarGroup.module.css +7 -7
- package/dist/ui/AvatarGroup/AvatarGroup.module.js +14 -0
- package/dist/ui/AvatarGroup/AvatarGroup.module.js.map +1 -0
- package/dist/ui/AvatarGroup/AvatarGroup.types.d.ts +13 -0
- package/dist/ui/AvatarGroup/index.d.ts +2 -0
- package/dist/ui/Badge/Badge.d.ts +3 -0
- package/dist/ui/Badge/Badge.js +35 -0
- package/dist/ui/Badge/Badge.js.map +1 -0
- package/{ui → dist/ui}/Badge/Badge.module.css +14 -14
- package/dist/ui/Badge/Badge.module.js +20 -0
- package/dist/ui/Badge/Badge.module.js.map +1 -0
- package/{ui/Badge/Badge.types.ts → dist/ui/Badge/Badge.types.d.ts} +6 -7
- package/dist/ui/Badge/index.d.ts +2 -0
- package/dist/ui/BarChart/BarChart.d.ts +3 -0
- package/dist/ui/BarChart/BarChart.js +242 -0
- package/dist/ui/BarChart/BarChart.js.map +1 -0
- package/{ui → dist/ui}/BarChart/BarChart.module.css +10 -10
- package/dist/ui/BarChart/BarChart.module.js +16 -0
- package/dist/ui/BarChart/BarChart.module.js.map +1 -0
- package/dist/ui/BarChart/BarChart.types.d.ts +16 -0
- package/dist/ui/BarChart/index.d.ts +2 -0
- package/dist/ui/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/ui/Breadcrumb/Breadcrumb.js +78 -0
- package/dist/ui/Breadcrumb/Breadcrumb.js.map +1 -0
- package/{ui → dist/ui}/Breadcrumb/Breadcrumb.module.css +11 -11
- package/dist/ui/Breadcrumb/Breadcrumb.module.js +16 -0
- package/dist/ui/Breadcrumb/Breadcrumb.module.js.map +1 -0
- package/dist/ui/Breadcrumb/Breadcrumb.types.d.ts +12 -0
- package/dist/ui/Breadcrumb/index.d.ts +2 -0
- package/dist/ui/Button/Button.d.ts +3 -0
- package/dist/ui/Button/Button.js +44 -0
- package/dist/ui/Button/Button.js.map +1 -0
- package/{ui → dist/ui}/Button/Button.module.css +20 -20
- package/dist/ui/Button/Button.module.js +20 -0
- package/dist/ui/Button/Button.module.js.map +1 -0
- package/dist/ui/Button/Button.types.d.ts +17 -0
- package/dist/ui/Button/index.d.ts +2 -0
- package/dist/ui/Button/lucideName.d.ts +5 -0
- package/dist/ui/Button/lucideName.js +103 -0
- package/dist/ui/Button/lucideName.js.map +1 -0
- package/dist/ui/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/ui/ButtonGroup/ButtonGroup.js +15 -0
- package/dist/ui/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/ui/ButtonGroup/ButtonGroup.module.css +31 -0
- package/dist/ui/ButtonGroup/ButtonGroup.module.js +7 -0
- package/dist/ui/ButtonGroup/ButtonGroup.module.js.map +1 -0
- package/dist/ui/ButtonGroup/ButtonGroup.types.d.ts +5 -0
- package/dist/ui/ButtonGroup/index.d.ts +2 -0
- package/dist/ui/Calendar/Calendar.d.ts +3 -0
- package/dist/ui/Calendar/Calendar.js +205 -0
- package/dist/ui/Calendar/Calendar.js.map +1 -0
- package/{ui → dist/ui}/Calendar/Calendar.module.css +22 -22
- package/dist/ui/Calendar/Calendar.module.js +20 -0
- package/dist/ui/Calendar/Calendar.module.js.map +1 -0
- package/dist/ui/Calendar/Calendar.types.d.ts +10 -0
- package/dist/ui/Calendar/index.d.ts +2 -0
- package/dist/ui/Card/Card.d.ts +3 -0
- package/dist/ui/Card/Card.js +57 -0
- package/dist/ui/Card/Card.js.map +1 -0
- package/{ui → dist/ui}/Card/Card.module.css +13 -13
- package/dist/ui/Card/Card.module.js +18 -0
- package/dist/ui/Card/Card.module.js.map +1 -0
- package/dist/ui/Card/Card.types.d.ts +20 -0
- package/{ui/Card/index.ts → dist/ui/Card/index.d.ts} +2 -2
- package/dist/ui/Carousel/Carousel.d.ts +3 -0
- package/dist/ui/Carousel/Carousel.js +99 -0
- package/dist/ui/Carousel/Carousel.js.map +1 -0
- package/{ui → dist/ui}/Carousel/Carousel.module.css +22 -22
- package/dist/ui/Carousel/Carousel.module.js +21 -0
- package/dist/ui/Carousel/Carousel.module.js.map +1 -0
- package/dist/ui/Carousel/Carousel.types.d.ts +15 -0
- package/dist/ui/Carousel/index.d.ts +2 -0
- package/dist/ui/Cell/Cell.d.ts +3 -0
- package/dist/ui/Cell/Cell.js +215 -0
- package/dist/ui/Cell/Cell.js.map +1 -0
- package/{ui → dist/ui}/Cell/Cell.module.css +23 -23
- package/dist/ui/Cell/Cell.module.js +27 -0
- package/dist/ui/Cell/Cell.module.js.map +1 -0
- package/dist/ui/Cell/Cell.types.d.ts +46 -0
- package/dist/ui/Cell/index.d.ts +2 -0
- package/dist/ui/Chat/Chat.d.ts +3 -0
- package/dist/ui/Chat/Chat.js +149 -0
- package/dist/ui/Chat/Chat.js.map +1 -0
- package/{ui → dist/ui}/Chat/Chat.module.css +21 -21
- package/dist/ui/Chat/Chat.module.js +27 -0
- package/dist/ui/Chat/Chat.module.js.map +1 -0
- package/dist/ui/Chat/Chat.types.d.ts +35 -0
- package/dist/ui/Chat/index.d.ts +2 -0
- package/dist/ui/Checkbox/Checkbox.d.ts +3 -0
- package/dist/ui/Checkbox/Checkbox.js +64 -0
- package/dist/ui/Checkbox/Checkbox.js.map +1 -0
- package/{ui → dist/ui}/Checkbox/Checkbox.module.css +28 -28
- package/dist/ui/Checkbox/Checkbox.module.js +16 -0
- package/dist/ui/Checkbox/Checkbox.module.js.map +1 -0
- package/dist/ui/Checkbox/Checkbox.types.d.ts +14 -0
- package/dist/ui/Checkbox/index.d.ts +2 -0
- package/dist/ui/Collapsible/Collapsible.d.ts +3 -0
- package/dist/ui/Collapsible/Collapsible.js +50 -0
- package/dist/ui/Collapsible/Collapsible.js.map +1 -0
- package/{ui → dist/ui}/Collapsible/Collapsible.module.css +8 -8
- package/dist/ui/Collapsible/Collapsible.module.js +14 -0
- package/dist/ui/Collapsible/Collapsible.module.js.map +1 -0
- package/dist/ui/Collapsible/Collapsible.types.d.ts +8 -0
- package/dist/ui/Collapsible/index.d.ts +2 -0
- package/dist/ui/Command/Command.d.ts +3 -0
- package/dist/ui/Command/Command.js +120 -0
- package/dist/ui/Command/Command.js.map +1 -0
- package/{ui → dist/ui}/Command/Command.module.css +22 -22
- package/dist/ui/Command/Command.module.js +22 -0
- package/dist/ui/Command/Command.module.js.map +1 -0
- package/dist/ui/Command/Command.types.d.ts +18 -0
- package/dist/ui/Command/index.d.ts +2 -0
- package/dist/ui/DataTable/DataTable.d.ts +3 -0
- package/dist/ui/DataTable/DataTable.js +324 -0
- package/dist/ui/DataTable/DataTable.js.map +1 -0
- package/{ui → dist/ui}/DataTable/DataTable.module.css +34 -34
- package/dist/ui/DataTable/DataTable.module.js +27 -0
- package/dist/ui/DataTable/DataTable.module.js.map +1 -0
- package/dist/ui/DataTable/DataTable.types.d.ts +28 -0
- package/dist/ui/DataTable/index.d.ts +2 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +3 -0
- package/dist/ui/DatePicker/DatePicker.js +92 -0
- package/dist/ui/DatePicker/DatePicker.js.map +1 -0
- package/{ui → dist/ui}/DatePicker/DatePicker.module.css +7 -7
- package/dist/ui/DatePicker/DatePicker.module.js +14 -0
- package/dist/ui/DatePicker/DatePicker.module.js.map +1 -0
- package/dist/ui/DatePicker/DatePicker.types.d.ts +14 -0
- package/dist/ui/DatePicker/index.d.ts +2 -0
- package/dist/ui/Drawer/Drawer.d.ts +3 -0
- package/dist/ui/Drawer/Drawer.js +82 -0
- package/dist/ui/Drawer/Drawer.js.map +1 -0
- package/{ui → dist/ui}/Drawer/Drawer.module.css +31 -31
- package/dist/ui/Drawer/Drawer.module.js +26 -0
- package/dist/ui/Drawer/Drawer.module.js.map +1 -0
- package/dist/ui/Drawer/Drawer.types.d.ts +12 -0
- package/dist/ui/Drawer/index.d.ts +2 -0
- package/dist/ui/DropdownMenu/DropdownMenu.d.ts +3 -0
- package/dist/ui/DropdownMenu/DropdownMenu.js +378 -0
- package/dist/ui/DropdownMenu/DropdownMenu.js.map +1 -0
- package/{ui → dist/ui}/DropdownMenu/DropdownMenu.module.css +53 -53
- package/dist/ui/DropdownMenu/DropdownMenu.module.js +42 -0
- package/dist/ui/DropdownMenu/DropdownMenu.module.js.map +1 -0
- package/dist/ui/DropdownMenu/DropdownMenu.types.d.ts +44 -0
- package/dist/ui/DropdownMenu/index.d.ts +2 -0
- package/dist/ui/Empty/Empty.d.ts +3 -0
- package/dist/ui/Empty/Empty.js +43 -0
- package/dist/ui/Empty/Empty.js.map +1 -0
- package/{ui → dist/ui}/Empty/Empty.module.css +9 -9
- package/dist/ui/Empty/Empty.module.js +16 -0
- package/dist/ui/Empty/Empty.module.js.map +1 -0
- package/dist/ui/Empty/Empty.types.d.ts +9 -0
- package/dist/ui/Empty/index.d.ts +2 -0
- package/dist/ui/Field/Field.d.ts +3 -0
- package/dist/ui/Field/Field.js +38 -0
- package/dist/ui/Field/Field.js.map +1 -0
- package/{ui → dist/ui}/Field/Field.module.css +11 -11
- package/dist/ui/Field/Field.module.js +15 -0
- package/dist/ui/Field/Field.module.js.map +1 -0
- package/dist/ui/Field/Field.types.d.ts +10 -0
- package/dist/ui/Field/index.d.ts +2 -0
- package/dist/ui/FieldSet/FieldSet.d.ts +3 -0
- package/dist/ui/FieldSet/FieldSet.js +26 -0
- package/dist/ui/FieldSet/FieldSet.js.map +1 -0
- package/{ui → dist/ui}/FieldSet/FieldSet.module.css +4 -4
- package/dist/ui/FieldSet/FieldSet.module.js +12 -0
- package/dist/ui/FieldSet/FieldSet.module.js.map +1 -0
- package/dist/ui/FieldSet/FieldSet.types.d.ts +6 -0
- package/dist/ui/FieldSet/index.d.ts +2 -0
- package/dist/ui/HeaderCell/HeaderCell.d.ts +3 -0
- package/dist/ui/HeaderCell/HeaderCell.js +42 -0
- package/dist/ui/HeaderCell/HeaderCell.js.map +1 -0
- package/{ui → dist/ui}/HeaderCell/HeaderCell.module.css +14 -14
- package/dist/ui/HeaderCell/HeaderCell.module.js +19 -0
- package/dist/ui/HeaderCell/HeaderCell.module.js.map +1 -0
- package/dist/ui/HeaderCell/HeaderCell.types.d.ts +17 -0
- package/dist/ui/HeaderCell/index.d.ts +2 -0
- package/dist/ui/Input/Input.d.ts +3 -0
- package/dist/ui/Input/Input.js +58 -0
- package/dist/ui/Input/Input.js.map +1 -0
- package/{ui → dist/ui}/Input/Input.module.css +12 -12
- package/dist/ui/Input/Input.module.js +13 -0
- package/dist/ui/Input/Input.module.js.map +1 -0
- package/dist/ui/Input/Input.types.d.ts +21 -0
- package/dist/ui/Input/index.d.ts +2 -0
- package/dist/ui/InputOTP/InputOTP.d.ts +3 -0
- package/dist/ui/InputOTP/InputOTP.js +86 -0
- package/dist/ui/InputOTP/InputOTP.js.map +1 -0
- package/{ui → dist/ui}/InputOTP/InputOTP.module.css +20 -20
- package/dist/ui/InputOTP/InputOTP.module.js +20 -0
- package/dist/ui/InputOTP/InputOTP.module.js.map +1 -0
- package/dist/ui/InputOTP/InputOTP.types.d.ts +18 -0
- package/{ui/InputOTP/index.ts → dist/ui/InputOTP/index.d.ts} +2 -2
- package/dist/ui/InsightCard/InsightCard.d.ts +3 -0
- package/dist/ui/InsightCard/InsightCard.js +89 -0
- package/dist/ui/InsightCard/InsightCard.js.map +1 -0
- package/{ui → dist/ui}/InsightCard/InsightCard.module.css +23 -23
- package/dist/ui/InsightCard/InsightCard.module.js +29 -0
- package/dist/ui/InsightCard/InsightCard.module.js.map +1 -0
- package/dist/ui/InsightCard/InsightCard.types.d.ts +18 -0
- package/dist/ui/InsightCard/index.d.ts +2 -0
- package/dist/ui/LineChart/LineChart.d.ts +3 -0
- package/dist/ui/LineChart/LineChart.js +307 -0
- package/dist/ui/LineChart/LineChart.js.map +1 -0
- package/{ui → dist/ui}/LineChart/LineChart.module.css +16 -16
- package/dist/ui/LineChart/LineChart.module.js +22 -0
- package/dist/ui/LineChart/LineChart.module.js.map +1 -0
- package/dist/ui/LineChart/LineChart.types.d.ts +17 -0
- package/dist/ui/LineChart/index.d.ts +2 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.d.ts +3 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.js +24 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.js.map +1 -0
- package/{ui → dist/ui}/LoadingAnimation/LoadingAnimation.module.css +11 -11
- package/dist/ui/LoadingAnimation/LoadingAnimation.module.js +13 -0
- package/dist/ui/LoadingAnimation/LoadingAnimation.module.js.map +1 -0
- package/{ui/LoadingAnimation/LoadingAnimation.types.ts → dist/ui/LoadingAnimation/LoadingAnimation.types.d.ts} +4 -5
- package/dist/ui/LoadingAnimation/index.d.ts +2 -0
- package/dist/ui/Modal/Modal.d.ts +3 -0
- package/dist/ui/Modal/Modal.js +66 -0
- package/dist/ui/Modal/Modal.js.map +1 -0
- package/{ui → dist/ui}/Modal/Modal.module.css +7 -7
- package/dist/ui/Modal/Modal.module.js +12 -0
- package/dist/ui/Modal/Modal.module.js.map +1 -0
- package/dist/ui/Modal/Modal.types.d.ts +13 -0
- package/dist/ui/Modal/index.d.ts +2 -0
- package/dist/ui/ModalCard/ModalCard.d.ts +3 -0
- package/dist/ui/ModalCard/ModalCard.js +56 -0
- package/dist/ui/ModalCard/ModalCard.js.map +1 -0
- package/{ui → dist/ui}/ModalCard/ModalCard.module.css +20 -20
- package/dist/ui/ModalCard/ModalCard.module.js +20 -0
- package/dist/ui/ModalCard/ModalCard.module.js.map +1 -0
- package/dist/ui/ModalCard/ModalCard.types.d.ts +13 -0
- package/dist/ui/ModalCard/index.d.ts +2 -0
- package/dist/ui/NavigationMenu/NavigationMenu.d.ts +3 -0
- package/dist/ui/NavigationMenu/NavigationMenu.js +35 -0
- package/dist/ui/NavigationMenu/NavigationMenu.js.map +1 -0
- package/{ui → dist/ui}/NavigationMenu/NavigationMenu.module.css +5 -5
- package/dist/ui/NavigationMenu/NavigationMenu.module.js +11 -0
- package/dist/ui/NavigationMenu/NavigationMenu.module.js.map +1 -0
- package/dist/ui/NavigationMenu/NavigationMenu.types.d.ts +18 -0
- package/dist/ui/NavigationMenu/index.d.ts +2 -0
- package/dist/ui/NumberTransition/NumberTransition.d.ts +3 -0
- package/dist/ui/NumberTransition/NumberTransition.js +54 -0
- package/dist/ui/NumberTransition/NumberTransition.js.map +1 -0
- package/{ui → dist/ui}/NumberTransition/NumberTransition.module.css +21 -21
- package/dist/ui/NumberTransition/NumberTransition.module.js +20 -0
- package/dist/ui/NumberTransition/NumberTransition.module.js.map +1 -0
- package/dist/ui/NumberTransition/NumberTransition.types.d.ts +8 -0
- package/dist/ui/NumberTransition/index.d.ts +2 -0
- package/dist/ui/PageHeader/PageHeader.d.ts +3 -0
- package/dist/ui/PageHeader/PageHeader.js +44 -0
- package/dist/ui/PageHeader/PageHeader.js.map +1 -0
- package/{ui → dist/ui}/PageHeader/PageHeader.module.css +8 -8
- package/dist/ui/PageHeader/PageHeader.module.js +16 -0
- package/dist/ui/PageHeader/PageHeader.module.js.map +1 -0
- package/dist/ui/PageHeader/PageHeader.types.d.ts +11 -0
- package/dist/ui/PageHeader/index.d.ts +2 -0
- package/dist/ui/Pagination/Pagination.d.ts +3 -0
- package/dist/ui/Pagination/Pagination.js +109 -0
- package/dist/ui/Pagination/Pagination.js.map +1 -0
- package/{ui → dist/ui}/Pagination/Pagination.module.css +3 -3
- package/dist/ui/Pagination/Pagination.module.js +11 -0
- package/dist/ui/Pagination/Pagination.module.js.map +1 -0
- package/dist/ui/Pagination/Pagination.types.d.ts +11 -0
- package/dist/ui/Pagination/index.d.ts +2 -0
- package/dist/ui/PieChart/PieChart.d.ts +3 -0
- package/dist/ui/PieChart/PieChart.js +254 -0
- package/dist/ui/PieChart/PieChart.js.map +1 -0
- package/{ui → dist/ui}/PieChart/PieChart.module.css +22 -22
- package/dist/ui/PieChart/PieChart.module.js +22 -0
- package/dist/ui/PieChart/PieChart.module.js.map +1 -0
- package/dist/ui/PieChart/PieChart.types.d.ts +20 -0
- package/{ui/PieChart/index.ts → dist/ui/PieChart/index.d.ts} +2 -2
- package/dist/ui/Progress/Progress.d.ts +3 -0
- package/dist/ui/Progress/Progress.js +117 -0
- package/dist/ui/Progress/Progress.js.map +1 -0
- package/{ui → dist/ui}/Progress/Progress.module.css +42 -42
- package/dist/ui/Progress/Progress.module.js +32 -0
- package/dist/ui/Progress/Progress.module.js.map +1 -0
- package/{ui/Progress/Progress.types.ts → dist/ui/Progress/Progress.types.d.ts} +8 -9
- package/dist/ui/Progress/index.d.ts +2 -0
- package/dist/ui/ProgressSteps/ProgressSteps.d.ts +3 -0
- package/dist/ui/ProgressSteps/ProgressSteps.js +92 -0
- package/dist/ui/ProgressSteps/ProgressSteps.js.map +1 -0
- package/{ui → dist/ui}/ProgressSteps/ProgressSteps.module.css +33 -33
- package/dist/ui/ProgressSteps/ProgressSteps.module.js +31 -0
- package/dist/ui/ProgressSteps/ProgressSteps.module.js.map +1 -0
- package/{ui/ProgressSteps/ProgressSteps.types.ts → dist/ui/ProgressSteps/ProgressSteps.types.d.ts} +10 -12
- package/dist/ui/ProgressSteps/index.d.ts +2 -0
- package/dist/ui/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/ui/RadioGroup/RadioGroup.js +87 -0
- package/dist/ui/RadioGroup/RadioGroup.js.map +1 -0
- package/{ui → dist/ui}/RadioGroup/RadioGroup.module.css +48 -48
- package/dist/ui/RadioGroup/RadioGroup.module.js +27 -0
- package/dist/ui/RadioGroup/RadioGroup.module.js.map +1 -0
- package/dist/ui/RadioGroup/RadioGroup.types.d.ts +27 -0
- package/dist/ui/RadioGroup/index.d.ts +2 -0
- package/dist/ui/Scoreboard/Scoreboard.d.ts +3 -0
- package/dist/ui/Scoreboard/Scoreboard.js +33 -0
- package/dist/ui/Scoreboard/Scoreboard.js.map +1 -0
- package/{ui → dist/ui}/Scoreboard/Scoreboard.module.css +11 -11
- package/dist/ui/Scoreboard/Scoreboard.module.js +15 -0
- package/dist/ui/Scoreboard/Scoreboard.module.js.map +1 -0
- package/dist/ui/Scoreboard/Scoreboard.types.d.ts +6 -0
- package/dist/ui/Scoreboard/index.d.ts +2 -0
- package/dist/ui/Scorecard/Scorecard.d.ts +3 -0
- package/dist/ui/Scorecard/Scorecard.js +76 -0
- package/dist/ui/Scorecard/Scorecard.js.map +1 -0
- package/{ui → dist/ui}/Scorecard/Scorecard.module.css +25 -25
- package/dist/ui/Scorecard/Scorecard.module.js +26 -0
- package/dist/ui/Scorecard/Scorecard.module.js.map +1 -0
- package/dist/ui/Scorecard/Scorecard.types.d.ts +15 -0
- package/dist/ui/Scorecard/index.d.ts +2 -0
- package/dist/ui/Section/Section.d.ts +3 -0
- package/dist/ui/Section/Section.js +54 -0
- package/dist/ui/Section/Section.js.map +1 -0
- package/{ui → dist/ui}/Section/Section.module.css +15 -15
- package/dist/ui/Section/Section.module.js +21 -0
- package/dist/ui/Section/Section.module.js.map +1 -0
- package/dist/ui/Section/Section.types.d.ts +13 -0
- package/dist/ui/Section/index.d.ts +2 -0
- package/dist/ui/Select/Select.d.ts +3 -0
- package/dist/ui/Select/Select.js +59 -0
- package/dist/ui/Select/Select.js.map +1 -0
- package/dist/ui/Select/Select.types.d.ts +24 -0
- package/dist/ui/Select/index.d.ts +2 -0
- package/dist/ui/ShimmerText/ShimmerText.d.ts +3 -0
- package/dist/ui/ShimmerText/ShimmerText.js +35 -0
- package/dist/ui/ShimmerText/ShimmerText.js.map +1 -0
- package/{ui → dist/ui}/ShimmerText/ShimmerText.module.css +8 -8
- package/dist/ui/ShimmerText/ShimmerText.module.js +14 -0
- package/dist/ui/ShimmerText/ShimmerText.module.js.map +1 -0
- package/dist/ui/ShimmerText/ShimmerText.types.d.ts +10 -0
- package/dist/ui/ShimmerText/index.d.ts +2 -0
- package/dist/ui/SideNav/SideNav.d.ts +3 -0
- package/dist/ui/SideNav/SideNav.js +176 -0
- package/dist/ui/SideNav/SideNav.js.map +1 -0
- package/{ui → dist/ui}/SideNav/SideNav.module.css +54 -54
- package/dist/ui/SideNav/SideNav.module.js +32 -0
- package/dist/ui/SideNav/SideNav.module.js.map +1 -0
- package/dist/ui/SideNav/SideNav.types.d.ts +38 -0
- package/dist/ui/SideNav/index.d.ts +2 -0
- package/dist/ui/Slider/Slider.d.ts +3 -0
- package/dist/ui/Slider/Slider.js +129 -0
- package/dist/ui/Slider/Slider.js.map +1 -0
- package/{ui → dist/ui}/Slider/Slider.module.css +18 -18
- package/dist/ui/Slider/Slider.module.js +15 -0
- package/dist/ui/Slider/Slider.module.js.map +1 -0
- package/dist/ui/Slider/Slider.types.d.ts +10 -0
- package/dist/ui/Slider/index.d.ts +2 -0
- package/dist/ui/Spinner/Spinner.d.ts +3 -0
- package/dist/ui/Spinner/Spinner.js +24 -0
- package/dist/ui/Spinner/Spinner.js.map +1 -0
- package/{ui → dist/ui}/Spinner/Spinner.module.css +11 -11
- package/dist/ui/Spinner/Spinner.module.js +15 -0
- package/dist/ui/Spinner/Spinner.module.js.map +1 -0
- package/{ui/Spinner/Spinner.types.ts → dist/ui/Spinner/Spinner.types.d.ts} +2 -3
- package/dist/ui/Spinner/index.d.ts +2 -0
- package/dist/ui/Switch/Switch.d.ts +3 -0
- package/dist/ui/Switch/Switch.js +45 -0
- package/dist/ui/Switch/Switch.js.map +1 -0
- package/{ui → dist/ui}/Switch/Switch.module.css +27 -27
- package/dist/ui/Switch/Switch.module.js +18 -0
- package/dist/ui/Switch/Switch.module.js.map +1 -0
- package/dist/ui/Switch/Switch.types.d.ts +11 -0
- package/dist/ui/Switch/index.d.ts +2 -0
- package/dist/ui/Table/Table.d.ts +3 -0
- package/dist/ui/Table/Table.js +84 -0
- package/dist/ui/Table/Table.js.map +1 -0
- package/{ui → dist/ui}/Table/Table.module.css +24 -24
- package/dist/ui/Table/Table.module.js +22 -0
- package/dist/ui/Table/Table.module.js.map +1 -0
- package/dist/ui/Table/Table.types.d.ts +22 -0
- package/dist/ui/Table/index.d.ts +2 -0
- package/dist/ui/Tabs/Tabs.d.ts +3 -0
- package/dist/ui/Tabs/Tabs.js +112 -0
- package/dist/ui/Tabs/Tabs.js.map +1 -0
- package/{ui → dist/ui}/Tabs/Tabs.module.css +26 -26
- package/dist/ui/Tabs/Tabs.module.js +18 -0
- package/dist/ui/Tabs/Tabs.module.js.map +1 -0
- package/dist/ui/Tabs/Tabs.types.d.ts +18 -0
- package/dist/ui/Tabs/index.d.ts +2 -0
- package/dist/ui/Textarea/Textarea.d.ts +3 -0
- package/dist/ui/Textarea/Textarea.js +26 -0
- package/dist/ui/Textarea/Textarea.js.map +1 -0
- package/{ui → dist/ui}/Textarea/Textarea.module.css +15 -15
- package/dist/ui/Textarea/Textarea.module.js +13 -0
- package/dist/ui/Textarea/Textarea.module.js.map +1 -0
- package/dist/ui/Textarea/Textarea.types.d.ts +13 -0
- package/dist/ui/Textarea/index.d.ts +2 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.d.ts +3 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.js +28 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.js.map +1 -0
- package/{ui → dist/ui}/ThinkingAnimation/ThinkingAnimation.module.css +13 -13
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.module.js +15 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.module.js.map +1 -0
- package/dist/ui/ThinkingAnimation/ThinkingAnimation.types.d.ts +7 -0
- package/dist/ui/ThinkingAnimation/index.d.ts +2 -0
- package/dist/ui/Timeline/Timeline.d.ts +3 -0
- package/dist/ui/Timeline/Timeline.js +50 -0
- package/dist/ui/Timeline/Timeline.js.map +1 -0
- package/{ui → dist/ui}/Timeline/Timeline.module.css +16 -16
- package/dist/ui/Timeline/Timeline.module.js +20 -0
- package/dist/ui/Timeline/Timeline.module.js.map +1 -0
- package/dist/ui/Timeline/Timeline.types.d.ts +14 -0
- package/{ui/Timeline/index.ts → dist/ui/Timeline/index.d.ts} +2 -2
- package/dist/ui/Toast/Toast.d.ts +3 -0
- package/dist/ui/Toast/Toast.js +86 -0
- package/dist/ui/Toast/Toast.js.map +1 -0
- package/{ui → dist/ui}/Toast/Toast.module.css +20 -20
- package/dist/ui/Toast/Toast.module.js +24 -0
- package/dist/ui/Toast/Toast.module.js.map +1 -0
- package/dist/ui/Toast/Toast.types.d.ts +15 -0
- package/dist/ui/Toast/index.d.ts +2 -0
- package/dist/ui/Tooltip/Tooltip.d.ts +12 -0
- package/dist/ui/Tooltip/Tooltip.js +51 -0
- package/dist/ui/Tooltip/Tooltip.js.map +1 -0
- package/{ui → dist/ui}/Tooltip/Tooltip.module.css +17 -17
- package/dist/ui/Tooltip/Tooltip.module.js +16 -0
- package/dist/ui/Tooltip/Tooltip.module.js.map +1 -0
- package/dist/ui/Tooltip/index.d.ts +2 -0
- package/dist/ui/patterns/ActivityPattern/ActivityFeed.d.ts +4 -0
- package/dist/ui/patterns/ActivityPattern/ActivityFeed.js +162 -0
- package/dist/ui/patterns/ActivityPattern/ActivityFeed.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/ActivityPattern.d.ts +5 -0
- package/dist/ui/patterns/ActivityPattern/ActivityPattern.js +168 -0
- package/dist/ui/patterns/ActivityPattern/ActivityPattern.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/ActivityTasks.d.ts +11 -0
- package/dist/ui/patterns/ActivityPattern/ActivityTasks.js +89 -0
- package/dist/ui/patterns/ActivityPattern/ActivityTasks.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.d.ts +21 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.js +184 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.js.map +1 -0
- package/{ui → dist/ui}/patterns/ActivityPattern/TaskDrawer.module.css +6 -6
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.module.js +14 -0
- package/dist/ui/patterns/ActivityPattern/TaskDrawer.module.js.map +1 -0
- package/dist/ui/patterns/ActivityPattern/index.d.ts +2 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.d.ts +5 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.js +123 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.css +3 -3
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.js +11 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.js.map +1 -0
- package/dist/ui/patterns/AssistantWorkspacePattern/index.d.ts +2 -0
- package/dist/ui/patterns/DashboardPattern/DashboardPattern.d.ts +4 -0
- package/dist/ui/patterns/DashboardPattern/DashboardPattern.js +225 -0
- package/dist/ui/patterns/DashboardPattern/DashboardPattern.js.map +1 -0
- package/dist/ui/patterns/DashboardPattern/index.d.ts +1 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.d.ts +8 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.js +109 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.js.map +1 -0
- package/dist/ui/patterns/EmptyFirstRunPattern/index.d.ts +2 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.d.ts +5 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.js +275 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/InboxPattern/InboxPattern.module.css +6 -6
- package/dist/ui/patterns/InboxPattern/InboxPattern.module.js +14 -0
- package/dist/ui/patterns/InboxPattern/InboxPattern.module.js.map +1 -0
- package/dist/ui/patterns/InboxPattern/InboxReplyDrawer.d.ts +7 -0
- package/dist/ui/patterns/InboxPattern/InboxReplyDrawer.js +87 -0
- package/dist/ui/patterns/InboxPattern/InboxReplyDrawer.js.map +1 -0
- package/dist/ui/patterns/InboxPattern/inbox-data.d.ts +15 -0
- package/dist/ui/patterns/InboxPattern/inbox-data.js +86 -0
- package/dist/ui/patterns/InboxPattern/inbox-data.js.map +1 -0
- package/dist/ui/patterns/InboxPattern/index.d.ts +2 -0
- package/dist/ui/patterns/InviteMembersPattern/InviteMembersPattern.d.ts +9 -0
- package/dist/ui/patterns/InviteMembersPattern/InviteMembersPattern.js +158 -0
- package/dist/ui/patterns/InviteMembersPattern/InviteMembersPattern.js.map +1 -0
- package/dist/ui/patterns/InviteMembersPattern/index.d.ts +2 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.d.ts +16 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.js +143 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/ListDetailPattern/ListDetailPattern.module.css +5 -5
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.module.js +12 -0
- package/dist/ui/patterns/ListDetailPattern/ListDetailPattern.module.js.map +1 -0
- package/dist/ui/patterns/ListDetailPattern/index.d.ts +2 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.d.ts +7 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.js +127 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.js.map +1 -0
- package/{ui → dist/ui}/patterns/SettingsFormPattern/SettingsFormPattern.module.css +2 -2
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.module.js +10 -0
- package/dist/ui/patterns/SettingsFormPattern/SettingsFormPattern.module.js.map +1 -0
- package/dist/ui/patterns/SettingsFormPattern/index.d.ts +2 -0
- package/dist/ui/shared/ChartFrame.d.ts +14 -0
- package/dist/ui/shared/ChartFrame.js +61 -0
- package/dist/ui/shared/ChartFrame.js.map +1 -0
- package/{ui → dist/ui}/shared/ChartFrame.module.css +41 -41
- package/dist/ui/shared/ChartFrame.module.js +39 -0
- package/dist/ui/shared/ChartFrame.module.js.map +1 -0
- package/dist/ui/shared/chartMath.d.ts +78 -0
- package/dist/ui/shared/chartMath.js +127 -0
- package/dist/ui/shared/chartMath.js.map +1 -0
- package/{ui → dist/ui}/shared/controls.module.css +8 -8
- package/dist/ui/shared/controls.module.js +13 -0
- package/dist/ui/shared/controls.module.js.map +1 -0
- package/dist/ui/shared/useChartSize.d.ts +5 -0
- package/dist/ui/shared/useChartSize.js +22 -0
- package/dist/ui/shared/useChartSize.js.map +1 -0
- package/package.json +28 -8
- package/skills/prototype-from-kit/SKILL.md +1 -1
- package/src/index.ts +0 -71
- package/ui/Accordion/Accordion.tsx +0 -51
- package/ui/Accordion/Accordion.types.ts +0 -10
- package/ui/Accordion/index.ts +0 -2
- package/ui/Alert/Alert.tsx +0 -27
- package/ui/Alert/index.ts +0 -2
- package/ui/AlertDialog/AlertDialog.tsx +0 -109
- package/ui/AlertDialog/AlertDialog.types.ts +0 -14
- package/ui/AlertDialog/index.ts +0 -6
- package/ui/AppHeader/AppHeader.tsx +0 -70
- package/ui/AppHeader/AppHeader.types.ts +0 -28
- package/ui/AppHeader/index.ts +0 -2
- package/ui/AppNav/AppNav.tsx +0 -137
- package/ui/AppNav/AppNav.types.ts +0 -24
- package/ui/Avatar/Avatar.tsx +0 -62
- package/ui/Avatar/Avatar.types.ts +0 -8
- package/ui/Avatar/index.ts +0 -2
- package/ui/AvatarGroup/AvatarGroup.tsx +0 -29
- package/ui/AvatarGroup/AvatarGroup.types.ts +0 -16
- package/ui/AvatarGroup/index.ts +0 -2
- package/ui/Badge/Badge.tsx +0 -43
- package/ui/Badge/index.ts +0 -2
- package/ui/BarChart/BarChart.tsx +0 -380
- package/ui/BarChart/BarChart.types.ts +0 -18
- package/ui/BarChart/index.ts +0 -2
- package/ui/Breadcrumb/Breadcrumb.tsx +0 -89
- package/ui/Breadcrumb/Breadcrumb.types.ts +0 -14
- package/ui/Breadcrumb/index.ts +0 -2
- package/ui/Button/Button.tsx +0 -49
- package/ui/Button/Button.types.ts +0 -18
- package/ui/Button/index.ts +0 -2
- package/ui/Button/lucideName.tsx +0 -188
- package/ui/ButtonGroup/ButtonGroup.module.css +0 -31
- package/ui/ButtonGroup/ButtonGroup.tsx +0 -12
- package/ui/ButtonGroup/ButtonGroup.types.ts +0 -6
- package/ui/ButtonGroup/index.ts +0 -2
- package/ui/Calendar/Calendar.tsx +0 -296
- package/ui/Calendar/Calendar.types.ts +0 -11
- package/ui/Calendar/index.ts +0 -2
- package/ui/Card/Card.tsx +0 -69
- package/ui/Card/Card.types.ts +0 -23
- package/ui/Carousel/Carousel.tsx +0 -152
- package/ui/Carousel/Carousel.types.ts +0 -17
- package/ui/Carousel/index.ts +0 -7
- package/ui/Cell/Cell.tsx +0 -300
- package/ui/Cell/Cell.types.ts +0 -69
- package/ui/Cell/index.ts +0 -11
- package/ui/Chat/Chat.tsx +0 -175
- package/ui/Chat/Chat.types.ts +0 -39
- package/ui/Chat/index.ts +0 -2
- package/ui/Checkbox/Checkbox.tsx +0 -70
- package/ui/Checkbox/Checkbox.types.ts +0 -15
- package/ui/Checkbox/index.ts +0 -2
- package/ui/Collapsible/Collapsible.tsx +0 -59
- package/ui/Collapsible/Collapsible.types.ts +0 -9
- package/ui/Collapsible/index.ts +0 -2
- package/ui/Command/Command.tsx +0 -152
- package/ui/Command/Command.types.ts +0 -20
- package/ui/Command/index.ts +0 -2
- package/ui/DataTable/DataTable.tsx +0 -429
- package/ui/DataTable/DataTable.types.ts +0 -35
- package/ui/DataTable/index.ts +0 -8
- package/ui/DatePicker/DatePicker.tsx +0 -123
- package/ui/DatePicker/DatePicker.types.ts +0 -15
- package/ui/DatePicker/index.ts +0 -2
- package/ui/Drawer/Drawer.tsx +0 -112
- package/ui/Drawer/Drawer.types.ts +0 -14
- package/ui/Drawer/index.ts +0 -2
- package/ui/DropdownMenu/DropdownMenu.tsx +0 -580
- package/ui/DropdownMenu/DropdownMenu.types.ts +0 -48
- package/ui/DropdownMenu/index.ts +0 -8
- package/ui/Empty/Empty.tsx +0 -35
- package/ui/Empty/Empty.types.ts +0 -10
- package/ui/Empty/index.ts +0 -2
- package/ui/Field/Field.tsx +0 -46
- package/ui/Field/Field.types.ts +0 -12
- package/ui/Field/index.ts +0 -2
- package/ui/FieldSet/FieldSet.tsx +0 -14
- package/ui/FieldSet/FieldSet.types.ts +0 -7
- package/ui/FieldSet/index.ts +0 -2
- package/ui/HeaderCell/HeaderCell.tsx +0 -71
- package/ui/HeaderCell/HeaderCell.types.ts +0 -18
- package/ui/HeaderCell/index.ts +0 -2
- package/ui/Input/Input.tsx +0 -65
- package/ui/Input/Input.types.ts +0 -22
- package/ui/Input/index.ts +0 -2
- package/ui/InputOTP/InputOTP.tsx +0 -136
- package/ui/InputOTP/InputOTP.types.ts +0 -19
- package/ui/InsightCard/InsightCard.tsx +0 -90
- package/ui/InsightCard/InsightCard.types.ts +0 -20
- package/ui/InsightCard/index.ts +0 -7
- package/ui/LineChart/LineChart.tsx +0 -424
- package/ui/LineChart/LineChart.types.ts +0 -19
- package/ui/LineChart/index.ts +0 -2
- package/ui/LoadingAnimation/LoadingAnimation.tsx +0 -41
- package/ui/LoadingAnimation/index.ts +0 -6
- package/ui/Modal/Modal.tsx +0 -114
- package/ui/Modal/Modal.types.ts +0 -15
- package/ui/Modal/index.ts +0 -2
- package/ui/ModalCard/ModalCard.tsx +0 -58
- package/ui/ModalCard/ModalCard.types.ts +0 -15
- package/ui/ModalCard/index.ts +0 -2
- package/ui/NavigationMenu/NavigationMenu.tsx +0 -57
- package/ui/NavigationMenu/NavigationMenu.types.ts +0 -22
- package/ui/NavigationMenu/index.ts +0 -7
- package/ui/NumberTransition/NumberTransition.tsx +0 -78
- package/ui/NumberTransition/NumberTransition.types.ts +0 -9
- package/ui/NumberTransition/index.ts +0 -2
- package/ui/PageHeader/PageHeader.tsx +0 -39
- package/ui/PageHeader/PageHeader.types.ts +0 -12
- package/ui/PageHeader/index.ts +0 -2
- package/ui/Pagination/Pagination.tsx +0 -147
- package/ui/Pagination/Pagination.types.ts +0 -12
- package/ui/Pagination/index.ts +0 -2
- package/ui/PieChart/PieChart.tsx +0 -293
- package/ui/PieChart/PieChart.types.ts +0 -22
- package/ui/Progress/Progress.tsx +0 -167
- package/ui/Progress/index.ts +0 -8
- package/ui/ProgressSteps/ProgressSteps.tsx +0 -105
- package/ui/ProgressSteps/index.ts +0 -8
- package/ui/RadioGroup/RadioGroup.tsx +0 -116
- package/ui/RadioGroup/RadioGroup.types.ts +0 -30
- package/ui/RadioGroup/index.ts +0 -8
- package/ui/Scoreboard/Scoreboard.tsx +0 -41
- package/ui/Scoreboard/Scoreboard.types.ts +0 -7
- package/ui/Scoreboard/index.ts +0 -2
- package/ui/Scorecard/Scorecard.tsx +0 -92
- package/ui/Scorecard/Scorecard.types.ts +0 -18
- package/ui/Scorecard/index.ts +0 -2
- package/ui/Section/Section.tsx +0 -75
- package/ui/Section/Section.types.ts +0 -15
- package/ui/Section/index.ts +0 -2
- package/ui/Select/Select.module.css +0 -7
- package/ui/Select/Select.tsx +0 -113
- package/ui/Select/Select.types.ts +0 -26
- package/ui/Select/index.ts +0 -2
- package/ui/ShimmerText/ShimmerText.tsx +0 -48
- package/ui/ShimmerText/ShimmerText.types.ts +0 -12
- package/ui/ShimmerText/index.ts +0 -2
- package/ui/SideNav/SideNav.tsx +0 -222
- package/ui/SideNav/SideNav.types.ts +0 -42
- package/ui/SideNav/index.ts +0 -8
- package/ui/Slider/Slider.tsx +0 -187
- package/ui/Slider/Slider.types.ts +0 -11
- package/ui/Slider/index.ts +0 -2
- package/ui/Spinner/Spinner.tsx +0 -19
- package/ui/Spinner/index.ts +0 -2
- package/ui/Switch/Switch.tsx +0 -65
- package/ui/Switch/Switch.types.ts +0 -12
- package/ui/Switch/index.ts +0 -2
- package/ui/Table/Table.tsx +0 -108
- package/ui/Table/Table.types.ts +0 -26
- package/ui/Table/index.ts +0 -8
- package/ui/Tabs/Tabs.tsx +0 -150
- package/ui/Tabs/Tabs.types.ts +0 -21
- package/ui/Tabs/index.ts +0 -2
- package/ui/Textarea/Textarea.tsx +0 -38
- package/ui/Textarea/Textarea.types.ts +0 -14
- package/ui/Textarea/index.ts +0 -2
- package/ui/ThinkingAnimation/ThinkingAnimation.tsx +0 -31
- package/ui/ThinkingAnimation/ThinkingAnimation.types.ts +0 -8
- package/ui/ThinkingAnimation/index.ts +0 -2
- package/ui/Timeline/Timeline.tsx +0 -47
- package/ui/Timeline/Timeline.types.ts +0 -16
- package/ui/Toast/Toast.tsx +0 -89
- package/ui/Toast/Toast.types.ts +0 -17
- package/ui/Toast/index.ts +0 -2
- package/ui/Tooltip/Tooltip.tsx +0 -101
- package/ui/Tooltip/index.ts +0 -2
- package/ui/patterns/ActivityPattern/ActivityFeed.tsx +0 -77
- package/ui/patterns/ActivityPattern/ActivityPattern.tsx +0 -120
- package/ui/patterns/ActivityPattern/ActivityTasks.tsx +0 -86
- package/ui/patterns/ActivityPattern/TaskDrawer.tsx +0 -186
- package/ui/patterns/ActivityPattern/index.ts +0 -2
- package/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.tsx +0 -159
- package/ui/patterns/AssistantWorkspacePattern/index.ts +0 -2
- package/ui/patterns/DashboardPattern/DashboardPattern.tsx +0 -102
- package/ui/patterns/DashboardPattern/index.ts +0 -1
- package/ui/patterns/DashboardPattern/patterns.module.css +0 -6
- package/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.tsx +0 -125
- package/ui/patterns/EmptyFirstRunPattern/index.ts +0 -2
- package/ui/patterns/InboxPattern/InboxPattern.tsx +0 -192
- package/ui/patterns/InboxPattern/InboxReplyDrawer.tsx +0 -97
- package/ui/patterns/InboxPattern/inbox-data.ts +0 -101
- package/ui/patterns/InboxPattern/index.ts +0 -2
- package/ui/patterns/InviteMembersPattern/InviteMembersPattern.tsx +0 -148
- package/ui/patterns/InviteMembersPattern/index.ts +0 -2
- package/ui/patterns/ListDetailPattern/ListDetailPattern.tsx +0 -145
- package/ui/patterns/ListDetailPattern/index.ts +0 -2
- package/ui/patterns/SettingsFormPattern/SettingsFormPattern.tsx +0 -89
- package/ui/patterns/SettingsFormPattern/index.ts +0 -3
- package/ui/shared/ChartFrame.tsx +0 -87
- package/ui/shared/chartMath.ts +0 -228
- package/ui/shared/useChartSize.ts +0 -22
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Button as e } from "../Button/Button.js";
|
|
3
|
+
import { Input as t } from "../Input/Input.js";
|
|
4
|
+
import { DropdownMenu as n } from "../DropdownMenu/DropdownMenu.js";
|
|
5
|
+
import { ThinkingAnimation as r } from "../ThinkingAnimation/ThinkingAnimation.js";
|
|
6
|
+
import i from "./Chat.module.js";
|
|
7
|
+
import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
|
|
8
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
//#region ui/Chat/Chat.tsx
|
|
10
|
+
function d({ title: d = "Assistant", status: f, messages: p = [], suggestions: m = [], placeholder: h = "How can we help you?", emptyState: g = "Start a conversation.", isThinking: _ = !1, disabled: v = !1, value: y, defaultValue: b = "", onValueChange: x, onSend: S, onClose: C, closeLabel: w = "Close", menuItems: T = [], menuLabel: E = "More", radius: D = "lg", className: O = "" }) {
|
|
11
|
+
let [k, A] = c(b), j = s(null), M = o(), N = y ?? k;
|
|
12
|
+
a(() => {
|
|
13
|
+
let e = j.current;
|
|
14
|
+
e && (e.scrollTop = e.scrollHeight);
|
|
15
|
+
}, [_, p.length]);
|
|
16
|
+
function P(e) {
|
|
17
|
+
y === void 0 && A(e), x?.(e);
|
|
18
|
+
}
|
|
19
|
+
function F(e = N) {
|
|
20
|
+
let t = e.trim();
|
|
21
|
+
!t || v || (S?.(t), P(""));
|
|
22
|
+
}
|
|
23
|
+
return /* @__PURE__ */ u("section", {
|
|
24
|
+
className: `${i.panel} ${D === "none" ? i.radiusNone : ""} ${O}`.trim(),
|
|
25
|
+
"aria-label": d,
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ u("header", {
|
|
28
|
+
className: i.header,
|
|
29
|
+
children: [/* @__PURE__ */ u("span", {
|
|
30
|
+
className: i.identity,
|
|
31
|
+
children: [/* @__PURE__ */ l("span", {
|
|
32
|
+
className: i.title,
|
|
33
|
+
children: d
|
|
34
|
+
}), f ? /* @__PURE__ */ u("span", {
|
|
35
|
+
className: i.status,
|
|
36
|
+
children: [/* @__PURE__ */ l("span", {
|
|
37
|
+
className: i.statusDot,
|
|
38
|
+
"aria-hidden": "true"
|
|
39
|
+
}), f]
|
|
40
|
+
}) : null]
|
|
41
|
+
}), /* @__PURE__ */ u("div", {
|
|
42
|
+
className: i.headerActions,
|
|
43
|
+
children: [T.length > 0 ? /* @__PURE__ */ l(n, {
|
|
44
|
+
ariaLabel: E,
|
|
45
|
+
iconStart: "MoreHorizontal",
|
|
46
|
+
variant: "tertiary",
|
|
47
|
+
size: "sm",
|
|
48
|
+
align: "end",
|
|
49
|
+
groups: [{ items: T.map((e, t) => ({
|
|
50
|
+
id: e.id ?? `${e.label}-${t}`,
|
|
51
|
+
label: e.label,
|
|
52
|
+
danger: e.tone === "danger"
|
|
53
|
+
})) }],
|
|
54
|
+
onSelect: (e) => {
|
|
55
|
+
T.find((t, n) => (t.id ?? `${t.label}-${n}`) === e)?.onSelect?.();
|
|
56
|
+
}
|
|
57
|
+
}) : null, C ? /* @__PURE__ */ l(e, {
|
|
58
|
+
type: "button",
|
|
59
|
+
variant: "tertiary",
|
|
60
|
+
size: "sm",
|
|
61
|
+
iconStart: "X",
|
|
62
|
+
ariaLabel: w,
|
|
63
|
+
onClick: C
|
|
64
|
+
}) : null]
|
|
65
|
+
})]
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ u("div", {
|
|
68
|
+
ref: j,
|
|
69
|
+
className: i.thread,
|
|
70
|
+
role: "log",
|
|
71
|
+
"aria-label": "Conversation",
|
|
72
|
+
"aria-live": "polite",
|
|
73
|
+
"aria-busy": _,
|
|
74
|
+
children: [
|
|
75
|
+
p.length === 0 && !_ ? /* @__PURE__ */ l("p", {
|
|
76
|
+
className: i.empty,
|
|
77
|
+
children: g
|
|
78
|
+
}) : null,
|
|
79
|
+
p.map((e, t) => {
|
|
80
|
+
let n = e.role === "user";
|
|
81
|
+
return /* @__PURE__ */ u("article", {
|
|
82
|
+
className: `${i.message} ${n ? i.messageUser : i.messageAssistant}`,
|
|
83
|
+
children: [n ? null : /* @__PURE__ */ l("span", {
|
|
84
|
+
className: i.mark,
|
|
85
|
+
"aria-hidden": "true"
|
|
86
|
+
}), /* @__PURE__ */ u("div", {
|
|
87
|
+
className: i.body,
|
|
88
|
+
children: [/* @__PURE__ */ l("p", {
|
|
89
|
+
className: i.copy,
|
|
90
|
+
children: e.content
|
|
91
|
+
}), e.timestamp ? /* @__PURE__ */ l("span", {
|
|
92
|
+
className: i.timestamp,
|
|
93
|
+
children: e.timestamp
|
|
94
|
+
}) : null]
|
|
95
|
+
})]
|
|
96
|
+
}, e.id ?? t);
|
|
97
|
+
}),
|
|
98
|
+
_ ? /* @__PURE__ */ u("div", {
|
|
99
|
+
className: `${i.message} ${i.messageAssistant}`,
|
|
100
|
+
children: [/* @__PURE__ */ l("span", {
|
|
101
|
+
className: i.mark,
|
|
102
|
+
"aria-hidden": "true"
|
|
103
|
+
}), /* @__PURE__ */ l(r, {
|
|
104
|
+
label: "Thinking",
|
|
105
|
+
size: "md"
|
|
106
|
+
})]
|
|
107
|
+
}) : null
|
|
108
|
+
]
|
|
109
|
+
}),
|
|
110
|
+
m.length > 0 ? /* @__PURE__ */ l("div", {
|
|
111
|
+
className: i.suggestions,
|
|
112
|
+
"aria-label": "Suggested prompts",
|
|
113
|
+
children: m.map((t) => /* @__PURE__ */ l(e, {
|
|
114
|
+
type: "button",
|
|
115
|
+
variant: "tertiary",
|
|
116
|
+
size: "sm",
|
|
117
|
+
disabled: v,
|
|
118
|
+
onClick: () => F(t),
|
|
119
|
+
children: t
|
|
120
|
+
}, t))
|
|
121
|
+
}) : null,
|
|
122
|
+
/* @__PURE__ */ u("form", {
|
|
123
|
+
className: i.composer,
|
|
124
|
+
onSubmit: (e) => {
|
|
125
|
+
e.preventDefault(), F();
|
|
126
|
+
},
|
|
127
|
+
children: [/* @__PURE__ */ l(t, {
|
|
128
|
+
id: M,
|
|
129
|
+
value: N,
|
|
130
|
+
placeholder: h,
|
|
131
|
+
ariaLabel: h,
|
|
132
|
+
disabled: v,
|
|
133
|
+
onChange: P
|
|
134
|
+
}), /* @__PURE__ */ l(e, {
|
|
135
|
+
type: "submit",
|
|
136
|
+
variant: "primary",
|
|
137
|
+
size: "md",
|
|
138
|
+
ariaLabel: "Send",
|
|
139
|
+
disabled: v || !N.trim(),
|
|
140
|
+
iconStart: "Send"
|
|
141
|
+
})]
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
export { d as Chat };
|
|
148
|
+
|
|
149
|
+
//# sourceMappingURL=Chat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chat.js","names":[],"sources":["../../../ui/Chat/Chat.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport { Button } from \"../Button\";\nimport { DropdownMenu } from \"../DropdownMenu\";\nimport { Input } from \"../Input\";\nimport { ThinkingAnimation } from \"../ThinkingAnimation\";\nimport type { ChatProps } from \"./Chat.types\";\nimport styles from \"./Chat.module.css\";\n\nexport type { ChatMessage, ChatMessageRole, ChatMenuItem, ChatProps, ChatRadius } from \"./Chat.types\";\n\nexport function Chat({\n title = \"Assistant\",\n status,\n messages = [],\n suggestions = [],\n placeholder = \"How can we help you?\",\n emptyState = \"Start a conversation.\",\n isThinking = false,\n disabled = false,\n value,\n defaultValue = \"\",\n onValueChange,\n onSend,\n onClose,\n closeLabel = \"Close\",\n menuItems = [],\n menuLabel = \"More\",\n radius = \"lg\",\n className = \"\",\n}: ChatProps) {\n const [internalValue, setInternalValue] = useState(defaultValue);\n const threadRef = useRef<HTMLDivElement>(null);\n const inputId = useId();\n const draft = value ?? internalValue;\n\n useEffect(() => {\n const thread = threadRef.current;\n if (!thread) return;\n thread.scrollTop = thread.scrollHeight;\n }, [isThinking, messages.length]);\n\n function updateDraft(nextValue: string) {\n if (value === undefined) setInternalValue(nextValue);\n onValueChange?.(nextValue);\n }\n\n function sendMessage(message = draft) {\n const nextMessage = message.trim();\n if (!nextMessage || disabled) return;\n onSend?.(nextMessage);\n updateDraft(\"\");\n }\n\n return (\n <section\n className={`${styles.panel} ${radius === \"none\" ? styles.radiusNone : \"\"} ${className}`.trim()}\n aria-label={title}\n >\n <header className={styles.header}>\n <span className={styles.identity}>\n <span className={styles.title}>{title}</span>\n {status ? (\n <span className={styles.status}>\n <span className={styles.statusDot} aria-hidden=\"true\" />\n {status}\n </span>\n ) : null}\n </span>\n <div className={styles.headerActions}>\n {menuItems.length > 0 ? (\n <DropdownMenu\n ariaLabel={menuLabel}\n iconStart=\"MoreHorizontal\"\n variant=\"tertiary\"\n size=\"sm\"\n align=\"end\"\n groups={[\n {\n items: menuItems.map((item, index) => ({\n id: item.id ?? `${item.label}-${index}`,\n label: item.label,\n danger: item.tone === \"danger\",\n })),\n },\n ]}\n onSelect={(id) => {\n const item = menuItems.find((entry, index) => (entry.id ?? `${entry.label}-${index}`) === id);\n item?.onSelect?.();\n }}\n />\n ) : null}\n {onClose ? (\n <Button type=\"button\" variant=\"tertiary\" size=\"sm\" iconStart=\"X\" ariaLabel={closeLabel} onClick={onClose} />\n ) : null}\n </div>\n </header>\n\n <div\n ref={threadRef}\n className={styles.thread}\n role=\"log\"\n aria-label=\"Conversation\"\n aria-live=\"polite\"\n aria-busy={isThinking}\n >\n {messages.length === 0 && !isThinking ? <p className={styles.empty}>{emptyState}</p> : null}\n {messages.map((message, index) => {\n const isUser = message.role === \"user\";\n return (\n <article\n key={message.id ?? index}\n className={`${styles.message} ${isUser ? styles.messageUser : styles.messageAssistant}`}\n >\n {isUser ? null : <span className={styles.mark} aria-hidden=\"true\" />}\n <div className={styles.body}>\n <p className={styles.copy}>{message.content}</p>\n {message.timestamp ? <span className={styles.timestamp}>{message.timestamp}</span> : null}\n </div>\n </article>\n );\n })}\n {isThinking ? (\n <div className={`${styles.message} ${styles.messageAssistant}`}>\n <span className={styles.mark} aria-hidden=\"true\" />\n <ThinkingAnimation label=\"Thinking\" size=\"md\" />\n </div>\n ) : null}\n </div>\n\n {suggestions.length > 0 ? (\n <div className={styles.suggestions} aria-label=\"Suggested prompts\">\n {suggestions.map((suggestion) => (\n <Button\n key={suggestion}\n type=\"button\"\n variant=\"tertiary\"\n size=\"sm\"\n disabled={disabled}\n onClick={() => sendMessage(suggestion)}\n >\n {suggestion}\n </Button>\n ))}\n </div>\n ) : null}\n\n <form\n className={styles.composer}\n onSubmit={(event) => {\n event.preventDefault();\n sendMessage();\n }}\n >\n <Input\n id={inputId}\n value={draft}\n placeholder={placeholder}\n ariaLabel={placeholder}\n disabled={disabled}\n onChange={updateDraft}\n />\n <Button\n type=\"submit\"\n variant=\"primary\"\n size=\"md\"\n ariaLabel=\"Send\"\n disabled={disabled || !draft.trim()}\n iconStart=\"Send\"\n />\n </form>\n </section>\n );\n}\n"],"mappings":";;;;;;;;;AAYA,SAAgB,EAAK,EACnB,WAAQ,aACR,WACA,cAAW,CAAC,GACZ,iBAAc,CAAC,GACf,iBAAc,wBACd,gBAAa,yBACb,gBAAa,IACb,cAAW,IACX,UACA,kBAAe,IACf,kBACA,WACA,YACA,gBAAa,SACb,eAAY,CAAC,GACb,eAAY,QACZ,YAAS,MACT,eAAY,MACA;CACZ,IAAM,CAAC,GAAe,KAAoB,EAAS,CAAY,GACzD,IAAY,EAAuB,IAAI,GACvC,IAAU,EAAM,GAChB,IAAQ,KAAS;CAEvB,QAAgB;EACd,IAAM,IAAS,EAAU;EACpB,MACL,EAAO,YAAY,EAAO;CAC5B,GAAG,CAAC,GAAY,EAAS,MAAM,CAAC;CAEhC,SAAS,EAAY,GAAmB;EAEtC,AADI,MAAU,KAAA,KAAW,EAAiB,CAAS,GACnD,IAAgB,CAAS;CAC3B;CAEA,SAAS,EAAY,IAAU,GAAO;EACpC,IAAM,IAAc,EAAQ,KAAK;EAC7B,CAAC,KAAe,MACpB,IAAS,CAAW,GACpB,EAAY,EAAE;CAChB;CAEA,OACE,kBAAC,WAAD;EACE,WAAW,GAAG,EAAO,MAAM,GAAG,MAAW,SAAS,EAAO,aAAa,GAAG,GAAG,IAAY,KAAK;EAC7F,cAAY;EAFd,UAAA;GAIE,kBAAC,UAAD;IAAQ,WAAW,EAAO;IAA1B,UAAA,CACE,kBAAC,QAAD;KAAM,WAAW,EAAO;KAAxB,UAAA,CACE,kBAAC,QAAD;MAAM,WAAW,EAAO;MAAQ,UAAA;KAAY,CAAA,GAC3C,IACC,kBAAC,QAAD;MAAM,WAAW,EAAO;MAAxB,UAAA,CACE,kBAAC,QAAD;OAAM,WAAW,EAAO;OAAW,eAAY;MAAQ,CAAA,GACtD,CACG;KACJ,CAAA,IAAA,IACA;IACN,CAAA,GAAA,kBAAC,OAAD;KAAK,WAAW,EAAO;KAAvB,UAAA,CACG,EAAU,SAAS,IAClB,kBAAC,GAAD;MACE,WAAW;MACX,WAAU;MACV,SAAQ;MACR,MAAK;MACL,OAAM;MACN,QAAQ,CACN,EACE,OAAO,EAAU,KAAK,GAAM,OAAW;OACrC,IAAI,EAAK,MAAM,GAAG,EAAK,MAAM,GAAG;OAChC,OAAO,EAAK;OACZ,QAAQ,EAAK,SAAS;MACxB,EAAE,EACJ,CACF;MACA,WAAW,MAAO;OAEhB,EADuB,MAAM,GAAO,OAAW,EAAM,MAAM,GAAG,EAAM,MAAM,GAAG,SAAa,CAC1F,CAAA,EAAM,WAAW;MACnB;KACD,CAAA,IACC,MACH,IACC,kBAAC,GAAD;MAAQ,MAAK;MAAS,SAAQ;MAAW,MAAK;MAAK,WAAU;MAAI,WAAW;MAAY,SAAS;KAAU,CAAA,IACzG,IACD;IACC,CAAA,CAAA;;GAER,kBAAC,OAAD;IACE,KAAK;IACL,WAAW,EAAO;IAClB,MAAK;IACL,cAAW;IACX,aAAU;IACV,aAAW;IANb,UAAA;KAQG,EAAS,WAAW,KAAK,CAAC,IAAa,kBAAC,KAAD;MAAG,WAAW,EAAO;MAAQ,UAAA;KAAc,CAAA,IAAI;KACtF,EAAS,KAAK,GAAS,MAAU;MAChC,IAAM,IAAS,EAAQ,SAAS;MAChC,OACE,kBAAC,WAAD;OAEE,WAAW,GAAG,EAAO,QAAQ,GAAG,IAAS,EAAO,cAAc,EAAO;OAFvE,UAAA,CAIG,IAAS,OAAO,kBAAC,QAAD;QAAM,WAAW,EAAO;QAAM,eAAY;OAAQ,CAAA,GACnE,kBAAC,OAAD;QAAK,WAAW,EAAO;QAAvB,UAAA,CACE,kBAAC,KAAD;SAAG,WAAW,EAAO;SAAO,UAAA,EAAQ;QAAW,CAAA,GAC9C,EAAQ,YAAY,kBAAC,QAAD;SAAM,WAAW,EAAO;SAAY,UAAA,EAAQ;QAAgB,CAAA,IAAI,IAClF;OACE,CAAA,CAAA;MARF,GAAA,EAAQ,MAAM,CAQZ;KAEb,CAAC;KACA,IACC,kBAAC,OAAD;MAAK,WAAW,GAAG,EAAO,QAAQ,GAAG,EAAO;MAA5C,UAAA,CACE,kBAAC,QAAD;OAAM,WAAW,EAAO;OAAM,eAAY;MAAQ,CAAA,GAClD,kBAAC,GAAD;OAAmB,OAAM;OAAW,MAAK;MAAM,CAAA,CAC5C;KACH,CAAA,IAAA;IACD;;GAEJ,EAAY,SAAS,IACpB,kBAAC,OAAD;IAAK,WAAW,EAAO;IAAa,cAAW;IAC5C,UAAA,EAAY,KAAK,MAChB,kBAAC,GAAD;KAEE,MAAK;KACL,SAAQ;KACR,MAAK;KACK;KACV,eAAe,EAAY,CAAU;KAEpC,UAAA;IACK,GARD,CAQC,CACT;GACE,CAAA,IACH;GAEJ,kBAAC,QAAD;IACE,WAAW,EAAO;IAClB,WAAW,MAAU;KAEnB,AADA,EAAM,eAAe,GACrB,EAAY;IACd;IALF,UAAA,CAOE,kBAAC,GAAD;KACE,IAAI;KACJ,OAAO;KACM;KACb,WAAW;KACD;KACV,UAAU;IACX,CAAA,GACD,kBAAC,GAAD;KACE,MAAK;KACL,SAAQ;KACR,MAAK;KACL,WAAU;KACV,UAAU,KAAY,CAAC,EAAM,KAAK;KAClC,WAAU;IACX,CAAA,CACG;;EACC;;AAEb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._panel_all2p_1 {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-rows: auto minmax(0, 1fr) auto auto;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
color: var(--text-primary);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
._radiusNone_all2p_16 {
|
|
17
17
|
border-radius: var(--radius-0);
|
|
18
18
|
border-block-width: 0;
|
|
19
19
|
border-inline-end-width: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
._header_all2p_22 {
|
|
23
23
|
display: flex;
|
|
24
24
|
align-items: center;
|
|
25
25
|
gap: var(--space-2);
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
background: var(--fill-brand-subtle);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
._identity_all2p_30 {
|
|
31
31
|
flex: 1;
|
|
32
32
|
display: grid;
|
|
33
33
|
gap: var(--space-1);
|
|
34
34
|
min-width: 0;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.
|
|
37
|
+
._title_all2p_37 {
|
|
38
38
|
margin: 0;
|
|
39
39
|
font-family: var(--font-sans);
|
|
40
40
|
font-size: var(--type-size-label);
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
color: var(--text-primary);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
._status_all2p_45 {
|
|
46
46
|
display: inline-flex;
|
|
47
47
|
align-items: center;
|
|
48
48
|
gap: var(--space-1);
|
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
color: var(--text-secondary);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
._statusDot_all2p_54 {
|
|
55
55
|
width: var(--space-1);
|
|
56
56
|
height: var(--space-1);
|
|
57
57
|
border-radius: var(--radius-full);
|
|
58
58
|
background: var(--status-success);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.
|
|
61
|
+
._headerActions_all2p_61 {
|
|
62
62
|
display: flex;
|
|
63
63
|
flex: none;
|
|
64
64
|
align-items: center;
|
|
65
65
|
gap: var(--space-1);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.
|
|
68
|
+
._thread_all2p_68 {
|
|
69
69
|
display: grid;
|
|
70
70
|
align-content: start;
|
|
71
71
|
gap: var(--space-4);
|
|
@@ -74,28 +74,28 @@
|
|
|
74
74
|
overflow-y: auto;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.
|
|
77
|
+
._empty_all2p_77 {
|
|
78
78
|
margin: 0;
|
|
79
79
|
color: var(--text-muted);
|
|
80
80
|
font-family: var(--font-sans);
|
|
81
81
|
font-size: var(--type-size-body-sm);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.
|
|
84
|
+
._message_all2p_84 {
|
|
85
85
|
display: flex;
|
|
86
86
|
align-items: flex-start;
|
|
87
87
|
gap: var(--space-3);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
._messageUser_all2p_90 {
|
|
91
91
|
justify-content: flex-end;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.
|
|
94
|
+
._messageAssistant_all2p_94 {
|
|
95
95
|
justify-content: flex-start;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.
|
|
98
|
+
._mark_all2p_98 {
|
|
99
99
|
flex: none;
|
|
100
100
|
width: var(--space-5);
|
|
101
101
|
height: var(--space-5);
|
|
@@ -103,14 +103,14 @@
|
|
|
103
103
|
background: var(--fill-brand);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
._body_all2p_106 {
|
|
107
107
|
display: grid;
|
|
108
108
|
gap: var(--space-1);
|
|
109
109
|
min-width: 0;
|
|
110
110
|
max-width: 85%;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.
|
|
113
|
+
._copy_all2p_113 {
|
|
114
114
|
margin: 0;
|
|
115
115
|
font-family: var(--font-sans);
|
|
116
116
|
font-size: var(--type-size-body-sm);
|
|
@@ -118,28 +118,28 @@
|
|
|
118
118
|
color: var(--text-primary);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.
|
|
121
|
+
._messageUser_all2p_90 ._copy_all2p_113 {
|
|
122
122
|
text-align: right;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.
|
|
125
|
+
._timestamp_all2p_125 {
|
|
126
126
|
font-family: var(--font-sans);
|
|
127
127
|
font-size: var(--type-size-caption);
|
|
128
128
|
color: var(--text-muted);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.
|
|
131
|
+
._messageUser_all2p_90 ._timestamp_all2p_125 {
|
|
132
132
|
text-align: right;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
135
|
+
._suggestions_all2p_135 {
|
|
136
136
|
display: flex;
|
|
137
137
|
flex-wrap: wrap;
|
|
138
138
|
gap: var(--space-2);
|
|
139
139
|
padding: 0 var(--space-4) var(--space-3);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.
|
|
142
|
+
._composer_all2p_142 {
|
|
143
143
|
display: grid;
|
|
144
144
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
145
145
|
gap: var(--space-2);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./Chat.module.css";
|
|
2
|
+
//#region ui/Chat/Chat.module.css
|
|
3
|
+
var e = "_panel_all2p_1", t = "_radiusNone_all2p_16", n = "_header_all2p_22", r = "_identity_all2p_30", i = "_title_all2p_37", a = "_status_all2p_45", o = "_statusDot_all2p_54", s = "_headerActions_all2p_61", c = "_thread_all2p_68", l = "_empty_all2p_77", u = "_message_all2p_84", d = "_messageUser_all2p_90", f = "_messageAssistant_all2p_94", p = "_mark_all2p_98", m = "_body_all2p_106", h = "_copy_all2p_113", g = "_timestamp_all2p_125", _ = "_suggestions_all2p_135", v = "_composer_all2p_142", y = {
|
|
4
|
+
panel: e,
|
|
5
|
+
radiusNone: t,
|
|
6
|
+
header: n,
|
|
7
|
+
identity: r,
|
|
8
|
+
title: i,
|
|
9
|
+
status: a,
|
|
10
|
+
statusDot: o,
|
|
11
|
+
headerActions: s,
|
|
12
|
+
thread: c,
|
|
13
|
+
empty: l,
|
|
14
|
+
message: u,
|
|
15
|
+
messageUser: d,
|
|
16
|
+
messageAssistant: f,
|
|
17
|
+
mark: p,
|
|
18
|
+
body: m,
|
|
19
|
+
copy: h,
|
|
20
|
+
timestamp: g,
|
|
21
|
+
suggestions: _,
|
|
22
|
+
composer: v
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { m as body, v as composer, h as copy, y as default, l as empty, n as header, s as headerActions, r as identity, p as mark, u as message, f as messageAssistant, d as messageUser, e as panel, t as radiusNone, a as status, o as statusDot, _ as suggestions, c as thread, g as timestamp, i as title };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=Chat.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chat.module.js","names":[],"sources":["../../../ui/Chat/Chat.module.css"],"sourcesContent":[".panel {\n box-sizing: border-box;\n display: grid;\n grid-template-rows: auto minmax(0, 1fr) auto auto;\n width: 100%;\n min-block-size: 32rem;\n block-size: 100%;\n max-block-size: 100%;\n overflow: hidden;\n border: var(--border-width-thin) solid var(--border-faint);\n border-radius: var(--radius-surface-lg);\n background: var(--surface-card);\n color: var(--text-primary);\n}\n\n.radiusNone {\n border-radius: var(--radius-0);\n border-block-width: 0;\n border-inline-end-width: 0;\n}\n\n.header {\n display: flex;\n align-items: center;\n gap: var(--space-2);\n padding: var(--space-3) var(--space-4);\n background: var(--fill-brand-subtle);\n}\n\n.identity {\n flex: 1;\n display: grid;\n gap: var(--space-1);\n min-width: 0;\n}\n\n.title {\n margin: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-label);\n font-weight: var(--type-weight-heading);\n color: var(--text-primary);\n}\n\n.status {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n color: var(--text-secondary);\n}\n\n.statusDot {\n width: var(--space-1);\n height: var(--space-1);\n border-radius: var(--radius-full);\n background: var(--status-success);\n}\n\n.headerActions {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--space-1);\n}\n\n.thread {\n display: grid;\n align-content: start;\n gap: var(--space-4);\n min-block-size: 0;\n padding: var(--space-4);\n overflow-y: auto;\n}\n\n.empty {\n margin: 0;\n color: var(--text-muted);\n font-family: var(--font-sans);\n font-size: var(--type-size-body-sm);\n}\n\n.message {\n display: flex;\n align-items: flex-start;\n gap: var(--space-3);\n}\n\n.messageUser {\n justify-content: flex-end;\n}\n\n.messageAssistant {\n justify-content: flex-start;\n}\n\n.mark {\n flex: none;\n width: var(--space-5);\n height: var(--space-5);\n border-radius: var(--radius-full);\n background: var(--fill-brand);\n}\n\n.body {\n display: grid;\n gap: var(--space-1);\n min-width: 0;\n max-width: 85%;\n}\n\n.copy {\n margin: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-body-sm);\n line-height: var(--type-line-body);\n color: var(--text-primary);\n}\n\n.messageUser .copy {\n text-align: right;\n}\n\n.timestamp {\n font-family: var(--font-sans);\n font-size: var(--type-size-caption);\n color: var(--text-muted);\n}\n\n.messageUser .timestamp {\n text-align: right;\n}\n\n.suggestions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-2);\n padding: 0 var(--space-4) var(--space-3);\n}\n\n.composer {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--space-2);\n align-items: center;\n padding: var(--space-3) var(--space-4) var(--space-4);\n border-top: var(--border-width-thin) solid var(--border-faint);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type ChatMessageRole = "user" | "assistant";
|
|
2
|
+
export interface ChatMessage {
|
|
3
|
+
id?: string;
|
|
4
|
+
role: ChatMessageRole;
|
|
5
|
+
content: string;
|
|
6
|
+
timestamp?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ChatMenuItem {
|
|
9
|
+
id?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
tone?: "default" | "danger";
|
|
12
|
+
onSelect?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export type ChatRadius = "lg" | "none";
|
|
15
|
+
export interface ChatProps {
|
|
16
|
+
title?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
messages?: ChatMessage[];
|
|
19
|
+
suggestions?: string[];
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
emptyState?: string;
|
|
22
|
+
isThinking?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
value?: string;
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
onValueChange?: (value: string) => void;
|
|
27
|
+
onSend?: (message: string) => void;
|
|
28
|
+
onClose?: () => void;
|
|
29
|
+
closeLabel?: string;
|
|
30
|
+
menuItems?: ChatMenuItem[];
|
|
31
|
+
menuLabel?: string;
|
|
32
|
+
/** `lg` is the standalone card. `none` squares the panel and drops the outer block/end borders so Chat can sit flush in a workspace rail. */
|
|
33
|
+
radius?: ChatRadius;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CheckboxProps } from './Checkbox.types';
|
|
2
|
+
export type { CheckboxProps, CheckboxSize } from './Checkbox.types';
|
|
3
|
+
export declare function Checkbox({ id, label, ariaLabel, size, disabled, error, checked, defaultChecked, indeterminate, onChange, name, }: CheckboxProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./Checkbox.module.js";
|
|
3
|
+
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
4
|
+
import { Check as i, Minus as a } from "lucide-react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
//#region ui/Checkbox/Checkbox.tsx
|
|
7
|
+
var c = {
|
|
8
|
+
sm: 12,
|
|
9
|
+
md: 14,
|
|
10
|
+
lg: 16
|
|
11
|
+
};
|
|
12
|
+
function l({ id: l, label: u, ariaLabel: d, size: f = "md", disabled: p = !1, error: m = !1, checked: h, defaultChecked: g = !1, indeterminate: _ = !1, onChange: v, name: y }) {
|
|
13
|
+
let b = n(null), x = typeof h == "boolean", [S, C] = r(g), w = x ? h : S, T = c[f];
|
|
14
|
+
return t(() => {
|
|
15
|
+
let e = b.current;
|
|
16
|
+
e && (e.indeterminate = !!_);
|
|
17
|
+
}, [_]), /* @__PURE__ */ s("label", {
|
|
18
|
+
className: `${e.label} ${e[f]}`,
|
|
19
|
+
htmlFor: l,
|
|
20
|
+
"data-disabled": p || void 0,
|
|
21
|
+
"data-error": m || void 0,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ o("input", {
|
|
24
|
+
ref: b,
|
|
25
|
+
className: e.input,
|
|
26
|
+
type: "checkbox",
|
|
27
|
+
id: l,
|
|
28
|
+
name: y,
|
|
29
|
+
disabled: p,
|
|
30
|
+
checked: x ? h : void 0,
|
|
31
|
+
defaultChecked: x ? void 0 : g,
|
|
32
|
+
onChange: (e) => {
|
|
33
|
+
x || C(e.target.checked), v?.(e.target.checked);
|
|
34
|
+
},
|
|
35
|
+
"aria-label": u ? void 0 : d,
|
|
36
|
+
"aria-invalid": m || void 0,
|
|
37
|
+
"aria-checked": _ ? "mixed" : void 0
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ o("span", {
|
|
40
|
+
className: e.box,
|
|
41
|
+
"aria-hidden": !0,
|
|
42
|
+
children: _ ? /* @__PURE__ */ o(a, {
|
|
43
|
+
className: e.icon,
|
|
44
|
+
size: T,
|
|
45
|
+
strokeWidth: 2.5,
|
|
46
|
+
color: "currentColor"
|
|
47
|
+
}) : w ? /* @__PURE__ */ o(i, {
|
|
48
|
+
className: e.icon,
|
|
49
|
+
size: T,
|
|
50
|
+
strokeWidth: 2.5,
|
|
51
|
+
color: "currentColor"
|
|
52
|
+
}) : null
|
|
53
|
+
}),
|
|
54
|
+
u ? /* @__PURE__ */ o("span", {
|
|
55
|
+
className: e.text,
|
|
56
|
+
children: u
|
|
57
|
+
}) : null
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { l as Checkbox };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.js","names":[],"sources":["../../../ui/Checkbox/Checkbox.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { Check, Minus } from \"lucide-react\";\nimport type { CheckboxProps } from \"./Checkbox.types\";\nimport styles from \"./Checkbox.module.css\";\n\nexport type { CheckboxProps, CheckboxSize } from \"./Checkbox.types\";\n\nconst ICON_SIZE = { sm: 12, md: 14, lg: 16 } as const;\n\nexport function Checkbox({\n id,\n label,\n ariaLabel,\n size = \"md\",\n disabled = false,\n error = false,\n checked,\n defaultChecked = false,\n indeterminate = false,\n onChange,\n name,\n}: CheckboxProps) {\n const inputRef = useRef<HTMLInputElement>(null);\n const isControlled = typeof checked === \"boolean\";\n const [uncontrolledChecked, setUncontrolledChecked] = useState(defaultChecked);\n const isChecked = isControlled ? checked : uncontrolledChecked;\n const iconPx = ICON_SIZE[size];\n\n useEffect(() => {\n const el = inputRef.current;\n if (el) el.indeterminate = Boolean(indeterminate);\n }, [indeterminate]);\n\n return (\n <label\n className={`${styles.label} ${styles[size]}`}\n htmlFor={id}\n data-disabled={disabled || undefined}\n data-error={error || undefined}\n >\n <input\n ref={inputRef}\n className={styles.input}\n type=\"checkbox\"\n id={id}\n name={name}\n disabled={disabled}\n checked={isControlled ? checked : undefined}\n defaultChecked={isControlled ? undefined : defaultChecked}\n onChange={(event) => {\n if (!isControlled) setUncontrolledChecked(event.target.checked);\n onChange?.(event.target.checked);\n }}\n aria-label={label ? undefined : ariaLabel}\n aria-invalid={error || undefined}\n aria-checked={indeterminate ? \"mixed\" : undefined}\n />\n <span className={styles.box} aria-hidden>\n {indeterminate ? (\n <Minus className={styles.icon} size={iconPx} strokeWidth={2.5} color=\"currentColor\" />\n ) : isChecked ? (\n <Check className={styles.icon} size={iconPx} strokeWidth={2.5} color=\"currentColor\" />\n ) : null}\n </span>\n {label ? <span className={styles.text}>{label}</span> : null}\n </label>\n );\n}\n"],"mappings":";;;;;;AASA,IAAM,IAAY;CAAE,IAAI;CAAI,IAAI;CAAI,IAAI;AAAG;AAE3C,SAAgB,EAAS,EACvB,OACA,UACA,cACA,UAAO,MACP,cAAW,IACX,WAAQ,IACR,YACA,oBAAiB,IACjB,mBAAgB,IAChB,aACA,WACgB;CAChB,IAAM,IAAW,EAAyB,IAAI,GACxC,IAAe,OAAO,KAAY,WAClC,CAAC,GAAqB,KAA0B,EAAS,CAAc,GACvE,IAAY,IAAe,IAAU,GACrC,IAAS,EAAU;CAOzB,OALA,QAAgB;EACd,IAAM,IAAK,EAAS;EACpB,AAAI,MAAI,EAAG,gBAAgB,EAAQ;CACrC,GAAG,CAAC,CAAa,CAAC,GAGhB,kBAAC,SAAD;EACE,WAAW,GAAG,EAAO,MAAM,GAAG,EAAO;EACrC,SAAS;EACT,iBAAe,KAAY,KAAA;EAC3B,cAAY,KAAS,KAAA;EAJvB,UAAA;GAME,kBAAC,SAAD;IACE,KAAK;IACL,WAAW,EAAO;IAClB,MAAK;IACD;IACE;IACI;IACV,SAAS,IAAe,IAAU,KAAA;IAClC,gBAAgB,IAAe,KAAA,IAAY;IAC3C,WAAW,MAAU;KAEnB,AADK,KAAc,EAAuB,EAAM,OAAO,OAAO,GAC9D,IAAW,EAAM,OAAO,OAAO;IACjC;IACA,cAAY,IAAQ,KAAA,IAAY;IAChC,gBAAc,KAAS,KAAA;IACvB,gBAAc,IAAgB,UAAU,KAAA;GACzC,CAAA;GACD,kBAAC,QAAD;IAAM,WAAW,EAAO;IAAK,eAAA;IAC1B,UAAA,IACC,kBAAC,GAAD;KAAO,WAAW,EAAO;KAAM,MAAM;KAAQ,aAAa;KAAK,OAAM;IAAgB,CAAA,IACnF,IACF,kBAAC,GAAD;KAAO,WAAW,EAAO;KAAM,MAAM;KAAQ,aAAa;KAAK,OAAM;IAAgB,CAAA,IACnF;GACA,CAAA;GACL,IAAQ,kBAAC,QAAD;IAAM,WAAW,EAAO;IAAO,UAAA;GAAY,CAAA,IAAI;EACnD;;AAEX"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_9u2a2_1 {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
color: var(--text-primary);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
12
|
+
._label_9u2a2_1[data-disabled] {
|
|
13
13
|
opacity: 0.5;
|
|
14
14
|
cursor: not-allowed;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
._input_9u2a2_17 {
|
|
18
18
|
appearance: none;
|
|
19
19
|
position: absolute;
|
|
20
20
|
left: 0;
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
z-index: 1;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
29
|
+
._label_9u2a2_1[data-disabled] ._input_9u2a2_17 {
|
|
30
30
|
cursor: not-allowed;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.
|
|
33
|
+
._box_9u2a2_33 {
|
|
34
34
|
position: relative;
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
align-items: center;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
color var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
50
|
+
._icon_9u2a2_50 {
|
|
51
51
|
position: absolute;
|
|
52
52
|
inset: 0;
|
|
53
53
|
width: 100%;
|
|
@@ -61,75 +61,75 @@
|
|
|
61
61
|
opacity var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.
|
|
64
|
+
._sm_9u2a2_64 {
|
|
65
65
|
font-size: var(--type-size-caption);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.
|
|
68
|
+
._md_9u2a2_68 {
|
|
69
69
|
font-size: var(--type-size-body-sm);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.
|
|
72
|
+
._lg_9u2a2_72 {
|
|
73
73
|
font-size: var(--type-size-body);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.
|
|
77
|
-
.
|
|
76
|
+
._sm_9u2a2_64 ._input_9u2a2_17,
|
|
77
|
+
._sm_9u2a2_64 ._box_9u2a2_33 {
|
|
78
78
|
width: 1rem;
|
|
79
79
|
height: 1rem;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.
|
|
83
|
-
.
|
|
82
|
+
._md_9u2a2_68 ._input_9u2a2_17,
|
|
83
|
+
._md_9u2a2_68 ._box_9u2a2_33 {
|
|
84
84
|
width: 1.15rem;
|
|
85
85
|
height: 1.15rem;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
89
|
-
.
|
|
88
|
+
._lg_9u2a2_72 ._input_9u2a2_17,
|
|
89
|
+
._lg_9u2a2_72 ._box_9u2a2_33 {
|
|
90
90
|
width: 1.25rem;
|
|
91
91
|
height: 1.25rem;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.
|
|
95
|
-
.
|
|
94
|
+
._input_9u2a2_17:checked + ._box_9u2a2_33,
|
|
95
|
+
._input_9u2a2_17:indeterminate + ._box_9u2a2_33 {
|
|
96
96
|
background-color: var(--action-primary);
|
|
97
97
|
border-color: var(--action-primary);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.
|
|
101
|
-
.
|
|
100
|
+
._input_9u2a2_17:checked + ._box_9u2a2_33 ._icon_9u2a2_50,
|
|
101
|
+
._input_9u2a2_17:indeterminate + ._box_9u2a2_33 ._icon_9u2a2_50 {
|
|
102
102
|
transform: scale(1);
|
|
103
103
|
opacity: 1;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
._label_9u2a2_1[data-error] ._box_9u2a2_33 {
|
|
107
107
|
border-color: var(--status-danger);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.
|
|
111
|
-
.
|
|
110
|
+
._label_9u2a2_1[data-error] ._input_9u2a2_17:checked + ._box_9u2a2_33,
|
|
111
|
+
._label_9u2a2_1[data-error] ._input_9u2a2_17:indeterminate + ._box_9u2a2_33 {
|
|
112
112
|
background-color: var(--action-primary);
|
|
113
113
|
border-color: var(--status-danger);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.
|
|
116
|
+
._input_9u2a2_17:focus-visible + ._box_9u2a2_33 {
|
|
117
117
|
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
118
118
|
outline-offset: var(--space-inset-2xs);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.
|
|
121
|
+
._text_9u2a2_121 {
|
|
122
122
|
line-height: var(--type-line-body);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
@media (prefers-reduced-motion: reduce) {
|
|
126
|
-
.
|
|
127
|
-
.
|
|
126
|
+
._box_9u2a2_33,
|
|
127
|
+
._icon_9u2a2_50 {
|
|
128
128
|
transition: none;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.
|
|
132
|
-
.
|
|
131
|
+
._input_9u2a2_17:checked + ._box_9u2a2_33 ._icon_9u2a2_50,
|
|
132
|
+
._input_9u2a2_17:indeterminate + ._box_9u2a2_33 ._icon_9u2a2_50 {
|
|
133
133
|
transform: none;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./Checkbox.module.css";
|
|
2
|
+
//#region ui/Checkbox/Checkbox.module.css
|
|
3
|
+
var e = "_label_9u2a2_1", t = "_input_9u2a2_17", n = "_box_9u2a2_33", r = "_icon_9u2a2_50", i = "_sm_9u2a2_64", a = "_md_9u2a2_68", o = "_lg_9u2a2_72", s = "_text_9u2a2_121", c = {
|
|
4
|
+
label: e,
|
|
5
|
+
input: t,
|
|
6
|
+
box: n,
|
|
7
|
+
icon: r,
|
|
8
|
+
sm: i,
|
|
9
|
+
md: a,
|
|
10
|
+
lg: o,
|
|
11
|
+
text: s
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as box, c as default, r as icon, t as input, e as label, o as lg, a as md, i as sm, s as text };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=Checkbox.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.module.js","names":[],"sources":["../../../ui/Checkbox/Checkbox.module.css"],"sourcesContent":[".label {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n cursor: pointer;\n font-family: var(--font-sans);\n font-weight: var(--type-weight-body);\n color: var(--text-primary);\n}\n\n.label[data-disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.input {\n appearance: none;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n margin: 0;\n opacity: 0;\n cursor: pointer;\n z-index: 1;\n}\n\n.label[data-disabled] .input {\n cursor: not-allowed;\n}\n\n.box {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n box-sizing: border-box;\n border: var(--border-width-thin) solid var(--border-strong);\n border-radius: var(--radius-control-sm);\n background-color: var(--surface-card);\n color: var(--action-on-primary);\n transition:\n border-color var(--motion-interaction-duration) var(--motion-interaction-easing),\n background var(--motion-interaction-duration) var(--motion-interaction-easing),\n color var(--motion-interaction-duration) var(--motion-interaction-easing);\n}\n\n.icon {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n padding: 0.12rem;\n transform-origin: center;\n transform: scale(0);\n opacity: 0;\n transition:\n transform var(--motion-expand-duration) var(--motion-ease-spring),\n opacity var(--motion-interaction-duration) var(--motion-interaction-easing);\n}\n\n.sm {\n font-size: var(--type-size-caption);\n}\n\n.md {\n font-size: var(--type-size-body-sm);\n}\n\n.lg {\n font-size: var(--type-size-body);\n}\n\n.sm .input,\n.sm .box {\n width: 1rem;\n height: 1rem;\n}\n\n.md .input,\n.md .box {\n width: 1.15rem;\n height: 1.15rem;\n}\n\n.lg .input,\n.lg .box {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n.input:checked + .box,\n.input:indeterminate + .box {\n background-color: var(--action-primary);\n border-color: var(--action-primary);\n}\n\n.input:checked + .box .icon,\n.input:indeterminate + .box .icon {\n transform: scale(1);\n opacity: 1;\n}\n\n.label[data-error] .box {\n border-color: var(--status-danger);\n}\n\n.label[data-error] .input:checked + .box,\n.label[data-error] .input:indeterminate + .box {\n background-color: var(--action-primary);\n border-color: var(--status-danger);\n}\n\n.input:focus-visible + .box {\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: var(--space-inset-2xs);\n}\n\n.text {\n line-height: var(--type-line-body);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .box,\n .icon {\n transition: none;\n }\n\n .input:checked + .box .icon,\n .input:indeterminate + .box .icon {\n transform: none;\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type CheckboxSize = "sm" | "md" | "lg";
|
|
2
|
+
export interface CheckboxProps {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
size?: CheckboxSize;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
defaultChecked?: boolean;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
onChange?: (checked: boolean) => void;
|
|
13
|
+
name?: string;
|
|
14
|
+
}
|