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,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { ModalCard as e } from "../ModalCard/ModalCard.js";
|
|
3
|
+
import t from "./Modal.module.js";
|
|
4
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { createPortal as s } from "react-dom";
|
|
7
|
+
//#region ui/Modal/Modal.tsx
|
|
8
|
+
var c = "a, button, input, select, textarea, [tabindex]:not([tabindex='-1'])";
|
|
9
|
+
function l({ open: l, title: u, description: d, size: f = "md", showClose: p = !0, onClose: m, children: h, footer: g, contained: _ = !1 }) {
|
|
10
|
+
let v = r(null), y = r(m), b = r(null), [x, S] = i(!1);
|
|
11
|
+
if (y.current = m, n(() => {
|
|
12
|
+
S(!0);
|
|
13
|
+
}, []), n(() => {
|
|
14
|
+
if (!l) return;
|
|
15
|
+
b.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
16
|
+
let e = v.current;
|
|
17
|
+
if (!e) return;
|
|
18
|
+
let t = () => Array.from(e.querySelectorAll(c));
|
|
19
|
+
(t()[0] ?? e).focus();
|
|
20
|
+
let n = (n) => {
|
|
21
|
+
if (n.key === "Escape") {
|
|
22
|
+
n.preventDefault(), y.current();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (n.key !== "Tab") return;
|
|
26
|
+
let r = t();
|
|
27
|
+
if (r.length === 0) return;
|
|
28
|
+
let i = r[0], a = r[r.length - 1], o = document.activeElement, s = o instanceof Node && e.contains(o);
|
|
29
|
+
n.shiftKey ? (!s || o === i) && (n.preventDefault(), a.focus()) : (!s || o === a) && (n.preventDefault(), i.focus());
|
|
30
|
+
};
|
|
31
|
+
document.addEventListener("keydown", n);
|
|
32
|
+
let r = document.body.style.overflow;
|
|
33
|
+
return _ || (document.body.style.overflow = "hidden"), () => {
|
|
34
|
+
document.removeEventListener("keydown", n), _ || (document.body.style.overflow = r), b.current?.focus();
|
|
35
|
+
};
|
|
36
|
+
}, [
|
|
37
|
+
l,
|
|
38
|
+
_,
|
|
39
|
+
x
|
|
40
|
+
]), !l || !_ && !x) return null;
|
|
41
|
+
let C = /* @__PURE__ */ o("div", {
|
|
42
|
+
className: `${t.root} ${_ ? t.contained : ""}`,
|
|
43
|
+
children: [/* @__PURE__ */ a("button", {
|
|
44
|
+
type: "button",
|
|
45
|
+
className: t.scrim,
|
|
46
|
+
"aria-label": "Close dialog",
|
|
47
|
+
onClick: m
|
|
48
|
+
}), /* @__PURE__ */ a(e, {
|
|
49
|
+
ref: v,
|
|
50
|
+
role: "dialog",
|
|
51
|
+
"aria-modal": "true",
|
|
52
|
+
tabIndex: -1,
|
|
53
|
+
title: u,
|
|
54
|
+
description: d,
|
|
55
|
+
size: f,
|
|
56
|
+
onClose: p ? m : void 0,
|
|
57
|
+
footer: g,
|
|
58
|
+
children: h
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
return _ ? C : s(C, document.body);
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { l as Modal };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=Modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.js","names":[],"sources":["../../../ui/Modal/Modal.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { ModalCard } from \"../ModalCard\";\nimport type { ModalProps } from \"./Modal.types\";\nimport styles from \"./Modal.module.css\";\n\nexport type { ModalProps, ModalSize } from \"./Modal.types\";\n\nconst FOCUSABLE = \"a, button, input, select, textarea, [tabindex]:not([tabindex='-1'])\";\n\nexport function Modal({\n open,\n title,\n description,\n size = \"md\",\n showClose = true,\n onClose,\n children,\n footer,\n contained = false,\n}: ModalProps) {\n const cardRef = useRef<HTMLDivElement>(null);\n const onCloseRef = useRef(onClose);\n const previousFocusRef = useRef<HTMLElement | null>(null);\n const [mounted, setMounted] = useState(false);\n\n onCloseRef.current = onClose;\n\n useEffect(() => {\n setMounted(true);\n }, []);\n\n useEffect(() => {\n if (!open) return;\n\n previousFocusRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n\n const root = cardRef.current;\n if (!root) return;\n\n const getFocusable = () => Array.from(root.querySelectorAll<HTMLElement>(FOCUSABLE));\n const firstFocusable = getFocusable()[0];\n (firstFocusable ?? root).focus();\n\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n event.preventDefault();\n onCloseRef.current();\n return;\n }\n\n if (event.key !== \"Tab\") return;\n\n const items = getFocusable();\n if (items.length === 0) return;\n\n const first = items[0];\n const last = items[items.length - 1];\n const active = document.activeElement;\n const inside = active instanceof Node && root.contains(active);\n\n if (event.shiftKey) {\n if (!inside || active === first) {\n event.preventDefault();\n last.focus();\n }\n } else if (!inside || active === last) {\n event.preventDefault();\n first.focus();\n }\n };\n\n document.addEventListener(\"keydown\", onKeyDown);\n const previousOverflow = document.body.style.overflow;\n if (!contained) {\n document.body.style.overflow = \"hidden\";\n }\n\n return () => {\n document.removeEventListener(\"keydown\", onKeyDown);\n if (!contained) {\n document.body.style.overflow = previousOverflow;\n }\n previousFocusRef.current?.focus();\n };\n }, [open, contained, mounted]);\n\n if (!open) return null;\n if (!contained && !mounted) return null;\n\n const node = (\n <div className={`${styles.root} ${contained ? styles.contained : \"\"}`}>\n <button type=\"button\" className={styles.scrim} aria-label=\"Close dialog\" onClick={onClose} />\n <ModalCard\n ref={cardRef}\n role=\"dialog\"\n aria-modal=\"true\"\n tabIndex={-1}\n title={title}\n description={description}\n size={size}\n onClose={showClose ? onClose : undefined}\n footer={footer}\n >\n {children}\n </ModalCard>\n </div>\n );\n\n if (contained) return node;\n return createPortal(node, document.body);\n}\n"],"mappings":";;;;;;;AAUA,IAAM,IAAY;AAElB,SAAgB,EAAM,EACpB,SACA,UACA,gBACA,UAAO,MACP,eAAY,IACZ,YACA,aACA,WACA,eAAY,MACC;CACb,IAAM,IAAU,EAAuB,IAAI,GACrC,IAAa,EAAO,CAAO,GAC3B,IAAmB,EAA2B,IAAI,GAClD,CAAC,GAAS,KAAc,EAAS,EAAK;CAgE5C,IA9DA,EAAW,UAAU,GAErB,QAAgB;EACd,EAAW,EAAI;CACjB,GAAG,CAAC,CAAC,GAEL,QAAgB;EACd,IAAI,CAAC,GAAM;EAEX,EAAiB,UAAU,SAAS,yBAAyB,cAAc,SAAS,gBAAgB;EAEpG,IAAM,IAAO,EAAQ;EACrB,IAAI,CAAC,GAAM;EAEX,IAAM,UAAqB,MAAM,KAAK,EAAK,iBAA8B,CAAS,CAAC;EAEnF,CADuB,EAAa,CAAC,CAAC,MACnB,EAAA,CAAM,MAAM;EAE/B,IAAM,KAAa,MAAyB;GAC1C,IAAI,EAAM,QAAQ,UAAU;IAE1B,AADA,EAAM,eAAe,GACrB,EAAW,QAAQ;IACnB;GACF;GAEA,IAAI,EAAM,QAAQ,OAAO;GAEzB,IAAM,IAAQ,EAAa;GAC3B,IAAI,EAAM,WAAW,GAAG;GAExB,IAAM,IAAQ,EAAM,IACd,IAAO,EAAM,EAAM,SAAS,IAC5B,IAAS,SAAS,eAClB,IAAS,aAAkB,QAAQ,EAAK,SAAS,CAAM;GAE7D,AAAI,EAAM,YACJ,CAAC,KAAU,MAAW,OACxB,EAAM,eAAe,GACrB,EAAK,MAAM,MAEJ,CAAC,KAAU,MAAW,OAC/B,EAAM,eAAe,GACrB,EAAM,MAAM;EAEhB;EAEA,SAAS,iBAAiB,WAAW,CAAS;EAC9C,IAAM,IAAmB,SAAS,KAAK,MAAM;EAK7C,OAJK,MACH,SAAS,KAAK,MAAM,WAAW,iBAGpB;GAKX,AAJA,SAAS,oBAAoB,WAAW,CAAS,GAC5C,MACH,SAAS,KAAK,MAAM,WAAW,IAEjC,EAAiB,SAAS,MAAM;EAClC;CACF,GAAG;EAAC;EAAM;EAAW;CAAO,CAAC,GAEzB,CAAC,KACD,CAAC,KAAa,CAAC,GAAS,OAAO;CAEnC,IAAM,IACJ,kBAAC,OAAD;EAAK,WAAW,GAAG,EAAO,KAAK,GAAG,IAAY,EAAO,YAAY;EAAjE,UAAA,CACE,kBAAC,UAAD;GAAQ,MAAK;GAAS,WAAW,EAAO;GAAO,cAAW;GAAe,SAAS;EAAU,CAAA,GAC5F,kBAAC,GAAD;GACE,KAAK;GACL,MAAK;GACL,cAAW;GACX,UAAU;GACH;GACM;GACP;GACN,SAAS,IAAY,IAAU,KAAA;GACvB;GAEP;EACQ,CAAA,CACR;;CAIP,OADI,IAAkB,IACf,EAAa,GAAM,SAAS,IAAI;AACzC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_4ehp5_1 {
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: var(--z-overlay);
|
|
5
5
|
display: grid;
|
|
6
6
|
place-items: center;
|
|
7
7
|
padding: var(--space-inset-lg);
|
|
8
|
-
animation:
|
|
8
|
+
animation: _overlayEnter_4ehp5_1 var(--motion-overlay-duration) var(--motion-overlay-easing);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
._contained_4ehp5_11 {
|
|
12
12
|
position: absolute;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
._scrim_4ehp5_15 {
|
|
16
16
|
grid-area: 1 / 1;
|
|
17
17
|
justify-self: stretch;
|
|
18
18
|
align-self: stretch;
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
29
|
+
._scrim_4ehp5_15:focus-visible {
|
|
30
30
|
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
31
31
|
outline-offset: calc(-1 * var(--border-focus-width));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
._root_4ehp5_1 > :not(._scrim_4ehp5_15) {
|
|
35
35
|
grid-area: 1 / 1;
|
|
36
36
|
z-index: var(--z-modal);
|
|
37
37
|
min-width: 0;
|
|
38
38
|
max-width: 100%;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@keyframes
|
|
41
|
+
@keyframes _overlayEnter_4ehp5_1 {
|
|
42
42
|
from {
|
|
43
43
|
opacity: var(--opacity-0);
|
|
44
44
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./Modal.module.css";
|
|
2
|
+
//#region ui/Modal/Modal.module.css
|
|
3
|
+
var e = "_root_4ehp5_1", t = "_overlayEnter_4ehp5_1", n = "_contained_4ehp5_11", r = "_scrim_4ehp5_15", i = {
|
|
4
|
+
root: e,
|
|
5
|
+
overlayEnter: t,
|
|
6
|
+
contained: n,
|
|
7
|
+
scrim: r
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as contained, i as default, t as overlayEnter, e as root, r as scrim };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=Modal.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.module.js","names":[],"sources":["../../../ui/Modal/Modal.module.css"],"sourcesContent":[".root {\n position: fixed;\n inset: 0;\n z-index: var(--z-overlay);\n display: grid;\n place-items: center;\n padding: var(--space-inset-lg);\n animation: overlayEnter var(--motion-overlay-duration) var(--motion-overlay-easing);\n}\n\n.contained {\n position: absolute;\n}\n\n.scrim {\n grid-area: 1 / 1;\n justify-self: stretch;\n align-self: stretch;\n width: auto;\n height: auto;\n margin: 0;\n padding: 0;\n border: none;\n border-radius: 0;\n background-color: var(--surface-overlay);\n cursor: pointer;\n}\n\n.scrim:focus-visible {\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: calc(-1 * var(--border-focus-width));\n}\n\n.root > :not(.scrim) {\n grid-area: 1 / 1;\n z-index: var(--z-modal);\n min-width: 0;\n max-width: 100%;\n}\n\n@keyframes overlayEnter {\n from {\n opacity: var(--opacity-0);\n }\n to {\n opacity: var(--opacity-full);\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ModalSize = "sm" | "md" | "lg";
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
size?: ModalSize;
|
|
8
|
+
showClose?: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
contained?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { LucideByName as e } from "../Button/lucideName.js";
|
|
3
|
+
import t from "./ModalCard.module.js";
|
|
4
|
+
import { forwardRef as n, useId as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region ui/ModalCard/ModalCard.tsx
|
|
7
|
+
var o = n(function({ title: n, description: o, size: s = "md", onClose: c, children: l, footer: u, role: d = "group", tabIndex: f, "aria-modal": p }, m) {
|
|
8
|
+
let h = r(), g = r();
|
|
9
|
+
return /* @__PURE__ */ a("div", {
|
|
10
|
+
ref: m,
|
|
11
|
+
role: d,
|
|
12
|
+
tabIndex: f,
|
|
13
|
+
"aria-modal": p,
|
|
14
|
+
"aria-labelledby": h,
|
|
15
|
+
"aria-describedby": o ? g : void 0,
|
|
16
|
+
className: `${t.card} ${t[s]}`,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ a("header", {
|
|
19
|
+
className: t.header,
|
|
20
|
+
children: [/* @__PURE__ */ a("div", {
|
|
21
|
+
className: t.copy,
|
|
22
|
+
children: [/* @__PURE__ */ i("h2", {
|
|
23
|
+
id: h,
|
|
24
|
+
className: t.title,
|
|
25
|
+
children: n
|
|
26
|
+
}), o ? /* @__PURE__ */ i("p", {
|
|
27
|
+
id: g,
|
|
28
|
+
className: t.description,
|
|
29
|
+
children: o
|
|
30
|
+
}) : null]
|
|
31
|
+
}), c ? /* @__PURE__ */ i("button", {
|
|
32
|
+
type: "button",
|
|
33
|
+
className: t.close,
|
|
34
|
+
onClick: c,
|
|
35
|
+
"aria-label": "Close",
|
|
36
|
+
children: /* @__PURE__ */ i(e, {
|
|
37
|
+
name: "X",
|
|
38
|
+
size: 16
|
|
39
|
+
})
|
|
40
|
+
}) : null]
|
|
41
|
+
}),
|
|
42
|
+
l ? /* @__PURE__ */ i("div", {
|
|
43
|
+
className: t.body,
|
|
44
|
+
children: l
|
|
45
|
+
}) : null,
|
|
46
|
+
u ? /* @__PURE__ */ i("div", {
|
|
47
|
+
className: t.footer,
|
|
48
|
+
children: u
|
|
49
|
+
}) : null
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { o as ModalCard };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=ModalCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalCard.js","names":[],"sources":["../../../ui/ModalCard/ModalCard.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, useId } from \"react\";\nimport { LucideByName } from \"../Button/lucideName\";\nimport type { ModalCardProps } from \"./ModalCard.types\";\nimport styles from \"./ModalCard.module.css\";\n\nexport type { ModalCardProps, ModalCardSize } from \"./ModalCard.types\";\n\nexport const ModalCard = forwardRef<HTMLDivElement, ModalCardProps>(function ModalCard(\n {\n title,\n description,\n size = \"md\",\n onClose,\n children,\n footer,\n role = \"group\",\n tabIndex,\n \"aria-modal\": ariaModal,\n },\n ref,\n) {\n const titleId = useId();\n const descriptionId = useId();\n\n return (\n <div\n ref={ref}\n role={role}\n tabIndex={tabIndex}\n aria-modal={ariaModal}\n aria-labelledby={titleId}\n aria-describedby={description ? descriptionId : undefined}\n className={`${styles.card} ${styles[size]}`}\n >\n <header className={styles.header}>\n <div className={styles.copy}>\n <h2 id={titleId} className={styles.title}>\n {title}\n </h2>\n {description ? (\n <p id={descriptionId} className={styles.description}>\n {description}\n </p>\n ) : null}\n </div>\n {onClose ? (\n <button type=\"button\" className={styles.close} onClick={onClose} aria-label=\"Close\">\n <LucideByName name=\"X\" size={16} />\n </button>\n ) : null}\n </header>\n {children ? <div className={styles.body}>{children}</div> : null}\n {footer ? <div className={styles.footer}>{footer}</div> : null}\n </div>\n );\n});\n"],"mappings":";;;;;;AASA,IAAa,IAAY,EAA2C,SAClE,EACE,UACA,gBACA,UAAO,MACP,YACA,aACA,WACA,UAAO,SACP,aACA,cAAc,KAEhB,GACA;CACA,IAAM,IAAU,EAAM,GAChB,IAAgB,EAAM;CAE5B,OACE,kBAAC,OAAD;EACO;EACC;EACI;EACV,cAAY;EACZ,mBAAiB;EACjB,oBAAkB,IAAc,IAAgB,KAAA;EAChD,WAAW,GAAG,EAAO,KAAK,GAAG,EAAO;EAPtC,UAAA;GASE,kBAAC,UAAD;IAAQ,WAAW,EAAO;IAA1B,UAAA,CACE,kBAAC,OAAD;KAAK,WAAW,EAAO;KAAvB,UAAA,CACE,kBAAC,MAAD;MAAI,IAAI;MAAS,WAAW,EAAO;MAChC,UAAA;KACC,CAAA,GACH,IACC,kBAAC,KAAD;MAAG,IAAI;MAAe,WAAW,EAAO;MACrC,UAAA;KACA,CAAA,IACD,IACD;IACJ,CAAA,GAAA,IACC,kBAAC,UAAD;KAAQ,MAAK;KAAS,WAAW,EAAO;KAAO,SAAS;KAAS,cAAW;KAC1E,UAAA,kBAAC,GAAD;MAAc,MAAK;MAAI,MAAM;KAAK,CAAA;IAC5B,CAAA,IACN,IACE;;GACP,IAAW,kBAAC,OAAD;IAAK,WAAW,EAAO;IAAO;GAAc,CAAA,IAAI;GAC3D,IAAS,kBAAC,OAAD;IAAK,WAAW,EAAO;IAAS,UAAA;GAAY,CAAA,IAAI;EACvD;;AAET,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._card_1cjgq_1 {
|
|
2
2
|
display: grid;
|
|
3
3
|
gap: var(--space-stack-xs);
|
|
4
4
|
width: min(100%, 28rem);
|
|
@@ -12,30 +12,30 @@
|
|
|
12
12
|
outline: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
._sm_1cjgq_15 {
|
|
16
16
|
width: min(100%, 22rem);
|
|
17
17
|
padding: var(--space-inset-md);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
20
|
+
._md_1cjgq_20 {
|
|
21
21
|
width: min(100%, 28rem);
|
|
22
22
|
padding: var(--space-inset-lg);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
._lg_1cjgq_25 {
|
|
26
26
|
width: min(100%, 36rem);
|
|
27
27
|
padding: var(--space-inset-xl);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
._card_1cjgq_1[role="dialog"] {
|
|
31
31
|
max-height: min(90vh, 40rem, 100%);
|
|
32
32
|
min-height: 0;
|
|
33
33
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
34
34
|
overflow: hidden;
|
|
35
|
-
animation:
|
|
35
|
+
animation: _cardEnter_1cjgq_1 var(--motion-modal-duration) var(--motion-modal-easing);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
._header_1cjgq_38 {
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: flex-start;
|
|
41
41
|
justify-content: space-between;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
min-width: 0;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
._copy_1cjgq_46 {
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
gap: var(--space-stack-xs);
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
flex: 1;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
._title_1cjgq_54 {
|
|
55
55
|
margin: 0;
|
|
56
56
|
font-family: var(--font-sans);
|
|
57
57
|
font-size: var(--type-size-body);
|
|
@@ -60,19 +60,19 @@
|
|
|
60
60
|
color: var(--text-primary);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.
|
|
63
|
+
._sm_1cjgq_15 ._title_1cjgq_54 {
|
|
64
64
|
font-size: var(--type-size-body-sm);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.
|
|
67
|
+
._md_1cjgq_20 ._title_1cjgq_54 {
|
|
68
68
|
font-size: var(--type-size-body);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.
|
|
71
|
+
._lg_1cjgq_25 ._title_1cjgq_54 {
|
|
72
72
|
font-size: var(--type-size-heading);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.
|
|
75
|
+
._description_1cjgq_75 {
|
|
76
76
|
margin: 0;
|
|
77
77
|
font-family: var(--font-sans);
|
|
78
78
|
font-size: var(--type-size-body-sm);
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
color: var(--text-muted);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.
|
|
83
|
+
._close_1cjgq_83 {
|
|
84
84
|
display: flex;
|
|
85
85
|
align-items: center;
|
|
86
86
|
justify-content: center;
|
|
@@ -96,17 +96,17 @@
|
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.
|
|
99
|
+
._close_1cjgq_83:hover {
|
|
100
100
|
background-color: var(--surface-muted);
|
|
101
101
|
color: var(--icon-primary);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.
|
|
104
|
+
._close_1cjgq_83:focus-visible {
|
|
105
105
|
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
106
106
|
outline-offset: var(--space-inset-2xs);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.
|
|
109
|
+
._body_1cjgq_109 {
|
|
110
110
|
min-width: 0;
|
|
111
111
|
font-family: var(--font-sans);
|
|
112
112
|
font-size: var(--type-size-body);
|
|
@@ -114,12 +114,12 @@
|
|
|
114
114
|
color: var(--text-primary);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.
|
|
117
|
+
._card_1cjgq_1[role="dialog"] ._body_1cjgq_109 {
|
|
118
118
|
min-height: 0;
|
|
119
119
|
overflow: auto;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.
|
|
122
|
+
._footer_1cjgq_122 {
|
|
123
123
|
display: flex;
|
|
124
124
|
flex-wrap: wrap;
|
|
125
125
|
justify-content: flex-end;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
min-width: 0;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
@keyframes
|
|
130
|
+
@keyframes _cardEnter_1cjgq_1 {
|
|
131
131
|
from {
|
|
132
132
|
opacity: var(--opacity-0);
|
|
133
133
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./ModalCard.module.css";
|
|
2
|
+
//#region ui/ModalCard/ModalCard.module.css
|
|
3
|
+
var e = "_card_1cjgq_1", t = "_sm_1cjgq_15", n = "_md_1cjgq_20", r = "_lg_1cjgq_25", i = "_cardEnter_1cjgq_1", a = "_header_1cjgq_38", o = "_copy_1cjgq_46", s = "_title_1cjgq_54", c = "_description_1cjgq_75", l = "_close_1cjgq_83", u = "_body_1cjgq_109", d = "_footer_1cjgq_122", f = {
|
|
4
|
+
card: e,
|
|
5
|
+
sm: t,
|
|
6
|
+
md: n,
|
|
7
|
+
lg: r,
|
|
8
|
+
cardEnter: i,
|
|
9
|
+
header: a,
|
|
10
|
+
copy: o,
|
|
11
|
+
title: s,
|
|
12
|
+
description: c,
|
|
13
|
+
close: l,
|
|
14
|
+
body: u,
|
|
15
|
+
footer: d
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { u as body, e as card, i as cardEnter, l as close, o as copy, f as default, c as description, d as footer, a as header, r as lg, n as md, t as sm, s as title };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=ModalCard.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalCard.module.js","names":[],"sources":["../../../ui/ModalCard/ModalCard.module.css"],"sourcesContent":[".card {\n display: grid;\n gap: var(--space-stack-xs);\n width: min(100%, 28rem);\n min-width: 0;\n padding: var(--space-inset-lg);\n overflow: auto;\n background-color: var(--surface-page);\n border: none;\n border-radius: var(--radius-control-lg);\n box-shadow: var(--shadow-modal);\n outline: none;\n}\n\n.sm {\n width: min(100%, 22rem);\n padding: var(--space-inset-md);\n}\n\n.md {\n width: min(100%, 28rem);\n padding: var(--space-inset-lg);\n}\n\n.lg {\n width: min(100%, 36rem);\n padding: var(--space-inset-xl);\n}\n\n.card[role=\"dialog\"] {\n max-height: min(90vh, 40rem, 100%);\n min-height: 0;\n grid-template-rows: auto minmax(0, 1fr) auto;\n overflow: hidden;\n animation: cardEnter var(--motion-modal-duration) var(--motion-modal-easing);\n}\n\n.header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--space-inline-sm);\n min-width: 0;\n}\n\n.copy {\n display: flex;\n flex-direction: column;\n gap: var(--space-stack-xs);\n min-width: 0;\n flex: 1;\n}\n\n.title {\n margin: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-body);\n font-weight: var(--type-weight-heading);\n line-height: var(--type-line-heading);\n color: var(--text-primary);\n}\n\n.sm .title {\n font-size: var(--type-size-body-sm);\n}\n\n.md .title {\n font-size: var(--type-size-body);\n}\n\n.lg .title {\n font-size: var(--type-size-heading);\n}\n\n.description {\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-muted);\n}\n\n.close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 2rem;\n height: 2rem;\n margin: 0;\n padding: 0;\n color: var(--icon-muted);\n background: transparent;\n border: none;\n border-radius: var(--radius-control-sm);\n cursor: pointer;\n}\n\n.close:hover {\n background-color: var(--surface-muted);\n color: var(--icon-primary);\n}\n\n.close:focus-visible {\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: var(--space-inset-2xs);\n}\n\n.body {\n min-width: 0;\n font-family: var(--font-sans);\n font-size: var(--type-size-body);\n line-height: var(--type-line-body);\n color: var(--text-primary);\n}\n\n.card[role=\"dialog\"] .body {\n min-height: 0;\n overflow: auto;\n}\n\n.footer {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--space-inline-sm);\n min-width: 0;\n}\n\n@keyframes cardEnter {\n from {\n opacity: var(--opacity-0);\n }\n to {\n opacity: var(--opacity-full);\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ModalCardSize = "sm" | "md" | "lg";
|
|
3
|
+
export interface ModalCardProps {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
size?: ModalCardSize;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
footer?: ReactNode;
|
|
10
|
+
role?: string;
|
|
11
|
+
tabIndex?: number;
|
|
12
|
+
"aria-modal"?: boolean | "true" | "false";
|
|
13
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NavigationMenuProps } from './NavigationMenu.types';
|
|
2
|
+
export type { NavigationMenuDropdownItem, NavigationMenuItem, NavigationMenuLinkItem, NavigationMenuProps, } from './NavigationMenu.types';
|
|
3
|
+
export declare function NavigationMenu({ items, onSelect }: NavigationMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { DropdownMenu as e } from "../DropdownMenu/DropdownMenu.js";
|
|
3
|
+
import t from "./NavigationMenu.module.js";
|
|
4
|
+
import { useState as n } from "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
//#region ui/NavigationMenu/NavigationMenu.tsx
|
|
7
|
+
function i(e) {
|
|
8
|
+
return "groups" in e && Array.isArray(e.groups);
|
|
9
|
+
}
|
|
10
|
+
function a({ items: a, onSelect: o }) {
|
|
11
|
+
let [s, c] = n(null);
|
|
12
|
+
return /* @__PURE__ */ r("nav", {
|
|
13
|
+
className: t.root,
|
|
14
|
+
"aria-label": "Site",
|
|
15
|
+
children: a.map((n) => i(n) ? /* @__PURE__ */ r(e, {
|
|
16
|
+
trigger: n.label,
|
|
17
|
+
triggerStyle: "nav",
|
|
18
|
+
groups: n.groups,
|
|
19
|
+
columns: n.columns,
|
|
20
|
+
open: s === n.id,
|
|
21
|
+
onOpenChange: (e) => c(e ? n.id : null),
|
|
22
|
+
onSelect: o
|
|
23
|
+
}, n.id) : /* @__PURE__ */ r("a", {
|
|
24
|
+
href: n.href,
|
|
25
|
+
className: `${t.link}${n.active ? ` ${t.linkActive}` : ""}`,
|
|
26
|
+
"aria-current": n.active ? "page" : void 0,
|
|
27
|
+
onClick: () => o?.(n.id),
|
|
28
|
+
children: n.label
|
|
29
|
+
}, n.id))
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { a as NavigationMenu };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=NavigationMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationMenu.js","names":[],"sources":["../../../ui/NavigationMenu/NavigationMenu.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { DropdownMenu } from \"../DropdownMenu\";\nimport type {\n NavigationMenuDropdownItem,\n NavigationMenuItem,\n NavigationMenuProps,\n} from \"./NavigationMenu.types\";\nimport styles from \"./NavigationMenu.module.css\";\n\nexport type {\n NavigationMenuDropdownItem,\n NavigationMenuItem,\n NavigationMenuLinkItem,\n NavigationMenuProps,\n} from \"./NavigationMenu.types\";\n\nfunction isDropdown(item: NavigationMenuItem): item is NavigationMenuDropdownItem {\n return \"groups\" in item && Array.isArray((item as NavigationMenuDropdownItem).groups);\n}\n\nexport function NavigationMenu({ items, onSelect }: NavigationMenuProps) {\n const [openId, setOpenId] = useState<string | null>(null);\n\n return (\n <nav className={styles.root} aria-label=\"Site\">\n {items.map((item) => {\n if (isDropdown(item)) {\n return (\n <DropdownMenu\n key={item.id}\n trigger={item.label}\n triggerStyle=\"nav\"\n groups={item.groups}\n columns={item.columns}\n open={openId === item.id}\n onOpenChange={(next) => setOpenId(next ? item.id : null)}\n onSelect={onSelect}\n />\n );\n }\n return (\n <a\n key={item.id}\n href={item.href}\n className={`${styles.link}${item.active ? ` ${styles.linkActive}` : \"\"}`}\n aria-current={item.active ? \"page\" : undefined}\n onClick={() => onSelect?.(item.id)}\n >\n {item.label}\n </a>\n );\n })}\n </nav>\n );\n}\n"],"mappings":";;;;;;AAkBA,SAAS,EAAW,GAA8D;CAChF,OAAO,YAAY,KAAQ,MAAM,QAAS,EAAoC,MAAM;AACtF;AAEA,SAAgB,EAAe,EAAE,UAAO,eAAiC;CACvE,IAAM,CAAC,GAAQ,KAAa,EAAwB,IAAI;CAExD,OACE,kBAAC,OAAD;EAAK,WAAW,EAAO;EAAM,cAAW;EACrC,UAAA,EAAM,KAAK,MACN,EAAW,CAAI,IAEf,kBAAC,GAAD;GAEE,SAAS,EAAK;GACd,cAAa;GACb,QAAQ,EAAK;GACb,SAAS,EAAK;GACd,MAAM,MAAW,EAAK;GACtB,eAAe,MAAS,EAAU,IAAO,EAAK,KAAK,IAAI;GAC7C;EACX,GARM,EAAK,EAQX,IAIH,kBAAC,KAAD;GAEE,MAAM,EAAK;GACX,WAAW,GAAG,EAAO,OAAO,EAAK,SAAS,IAAI,EAAO,eAAe;GACpE,gBAAc,EAAK,SAAS,SAAS,KAAA;GACrC,eAAe,IAAW,EAAK,EAAE;GAEhC,UAAA,EAAK;EACL,GAPI,EAAK,EAOT,CAEN;CACE,CAAA;AAET"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_1rme4_1 {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: var(--space-1);
|
|
5
5
|
flex-wrap: wrap;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
8
|
+
._link_1rme4_8 {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
height: 2.25rem;
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
white-space: nowrap;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
24
|
-
.
|
|
23
|
+
._link_1rme4_8:hover,
|
|
24
|
+
._linkActive_1rme4_24 {
|
|
25
25
|
background-color: var(--surface-muted);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
._link_1rme4_8:focus-visible {
|
|
29
29
|
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
30
30
|
outline-offset: var(--space-inset-2xs);
|
|
31
31
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./NavigationMenu.module.css";
|
|
2
|
+
//#region ui/NavigationMenu/NavigationMenu.module.css
|
|
3
|
+
var e = "_root_1rme4_1", t = "_link_1rme4_8", n = "_linkActive_1rme4_24", r = {
|
|
4
|
+
root: e,
|
|
5
|
+
link: t,
|
|
6
|
+
linkActive: n
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default, t as link, n as linkActive, e as root };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=NavigationMenu.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationMenu.module.js","names":[],"sources":["../../../ui/NavigationMenu/NavigationMenu.module.css"],"sourcesContent":[".root {\n display: flex;\n align-items: center;\n gap: var(--space-1);\n flex-wrap: wrap;\n}\n\n.link {\n display: inline-flex;\n align-items: center;\n height: 2.25rem;\n padding-inline: var(--space-3);\n border-radius: var(--radius-control-md);\n color: var(--text-primary);\n font-family: var(--font-sans);\n font-size: var(--type-size-body-sm);\n font-weight: var(--type-weight-label);\n line-height: var(--type-line-body);\n text-decoration: none;\n white-space: nowrap;\n}\n\n.link:hover,\n.linkActive {\n background-color: var(--surface-muted);\n}\n\n.link:focus-visible {\n outline: var(--border-focus-width) solid var(--focus-ring);\n outline-offset: var(--space-inset-2xs);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DropdownMenuGroup } from '../DropdownMenu/DropdownMenu.types';
|
|
2
|
+
export interface NavigationMenuLinkItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
href: string;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationMenuDropdownItem {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
groups: DropdownMenuGroup[];
|
|
12
|
+
columns?: 1 | 2;
|
|
13
|
+
}
|
|
14
|
+
export type NavigationMenuItem = NavigationMenuLinkItem | NavigationMenuDropdownItem;
|
|
15
|
+
export interface NavigationMenuProps {
|
|
16
|
+
items: NavigationMenuItem[];
|
|
17
|
+
onSelect?: (id: string) => void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NumberTransitionProps } from './NumberTransition.types';
|
|
2
|
+
export type { NumberTransitionProps, NumberTransitionSize } from './NumberTransition.types';
|
|
3
|
+
export declare function NumberTransition({ value, format, size, label, className, }: NumberTransitionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./NumberTransition.module.js";
|
|
3
|
+
import { useLayoutEffect as t, useState as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region ui/NumberTransition/NumberTransition.tsx
|
|
6
|
+
function a(e) {
|
|
7
|
+
return e === " " ? "\xA0" : e;
|
|
8
|
+
}
|
|
9
|
+
function o({ value: o, format: s, size: c = "md", label: l, className: u = "" }) {
|
|
10
|
+
let d = String(s ? s(o) : o), f = Number(o), [p, m] = n(() => ({
|
|
11
|
+
previous: d,
|
|
12
|
+
current: d,
|
|
13
|
+
currentValue: f,
|
|
14
|
+
direction: "up",
|
|
15
|
+
id: 0
|
|
16
|
+
}));
|
|
17
|
+
t(() => {
|
|
18
|
+
m((e) => e.current === d ? e : {
|
|
19
|
+
previous: e.current,
|
|
20
|
+
current: d,
|
|
21
|
+
currentValue: f,
|
|
22
|
+
direction: Number.isFinite(f) && Number.isFinite(e.currentValue) && f < e.currentValue ? "down" : "up",
|
|
23
|
+
id: e.id + 1
|
|
24
|
+
});
|
|
25
|
+
}, [d, f]);
|
|
26
|
+
let h = Math.max(p.previous.length, p.current.length), g = p.previous.padStart(h, " ").split(""), _ = p.current.padStart(h, " ").split("");
|
|
27
|
+
return /* @__PURE__ */ r("span", {
|
|
28
|
+
className: `${e.root} ${e[c]} ${u}`.trim(),
|
|
29
|
+
"aria-label": l ?? d,
|
|
30
|
+
"aria-live": "polite",
|
|
31
|
+
children: /* @__PURE__ */ r("span", {
|
|
32
|
+
className: e.content,
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
children: _.map((t, n) => {
|
|
35
|
+
let o = g[n], s = o !== t;
|
|
36
|
+
return /* @__PURE__ */ i("span", {
|
|
37
|
+
className: `${e.cell}${s ? ` ${e.changing}` : ""}`,
|
|
38
|
+
"data-direction": p.direction,
|
|
39
|
+
children: [s ? /* @__PURE__ */ r("span", {
|
|
40
|
+
className: e.old,
|
|
41
|
+
children: a(o)
|
|
42
|
+
}) : null, /* @__PURE__ */ r("span", {
|
|
43
|
+
className: e.new,
|
|
44
|
+
children: a(t)
|
|
45
|
+
})]
|
|
46
|
+
}, `${p.id}-${n}`);
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { o as NumberTransition };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=NumberTransition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberTransition.js","names":[],"sources":["../../../ui/NumberTransition/NumberTransition.tsx"],"sourcesContent":["\"use client\";\n\nimport { useLayoutEffect, useState } from \"react\";\nimport type { NumberTransitionProps } from \"./NumberTransition.types\";\nimport styles from \"./NumberTransition.module.css\";\n\nexport type { NumberTransitionProps, NumberTransitionSize } from \"./NumberTransition.types\";\n\nfunction visibleCharacter(character: string): string {\n return character === \" \" ? \"\\u00a0\" : character;\n}\n\nexport function NumberTransition({\n value,\n format,\n size = \"md\",\n label,\n className = \"\",\n}: NumberTransitionProps) {\n const formattedValue = String(format ? format(value) : value);\n const numericValue = Number(value);\n const [frame, setFrame] = useState(() => ({\n previous: formattedValue,\n current: formattedValue,\n currentValue: numericValue,\n direction: \"up\" as \"up\" | \"down\",\n id: 0,\n }));\n\n useLayoutEffect(() => {\n setFrame((current) => {\n if (current.current === formattedValue) return current;\n return {\n previous: current.current,\n current: formattedValue,\n currentValue: numericValue,\n direction:\n Number.isFinite(numericValue) &&\n Number.isFinite(current.currentValue) &&\n numericValue < current.currentValue\n ? \"down\"\n : \"up\",\n id: current.id + 1,\n };\n });\n }, [formattedValue, numericValue]);\n\n const length = Math.max(frame.previous.length, frame.current.length);\n const previousCharacters = frame.previous.padStart(length, \" \").split(\"\");\n const currentCharacters = frame.current.padStart(length, \" \").split(\"\");\n\n return (\n <span\n className={`${styles.root} ${styles[size]} ${className}`.trim()}\n aria-label={label ?? formattedValue}\n aria-live=\"polite\"\n >\n <span className={styles.content} aria-hidden=\"true\">\n {currentCharacters.map((character, index) => {\n const previousCharacter = previousCharacters[index];\n const changed = previousCharacter !== character;\n return (\n <span\n className={`${styles.cell}${changed ? ` ${styles.changing}` : \"\"}`}\n data-direction={frame.direction}\n key={`${frame.id}-${index}`}\n >\n {changed ? (\n <span className={styles.old}>{visibleCharacter(previousCharacter)}</span>\n ) : null}\n <span className={styles.new}>{visibleCharacter(character)}</span>\n </span>\n );\n })}\n </span>\n </span>\n );\n}\n"],"mappings":";;;;;AAQA,SAAS,EAAiB,GAA2B;CACnD,OAAO,MAAc,MAAM,SAAW;AACxC;AAEA,SAAgB,EAAiB,EAC/B,UACA,WACA,UAAO,MACP,UACA,eAAY,MACY;CACxB,IAAM,IAAiB,OAAO,IAAS,EAAO,CAAK,IAAI,CAAK,GACtD,IAAe,OAAO,CAAK,GAC3B,CAAC,GAAO,KAAY,SAAgB;EACxC,UAAU;EACV,SAAS;EACT,cAAc;EACd,WAAW;EACX,IAAI;CACN,EAAE;CAEF,QAAsB;EACpB,GAAU,MACJ,EAAQ,YAAY,IAAuB,IACxC;GACL,UAAU,EAAQ;GAClB,SAAS;GACT,cAAc;GACd,WACE,OAAO,SAAS,CAAY,KAC5B,OAAO,SAAS,EAAQ,YAAY,KACpC,IAAe,EAAQ,eACnB,SACA;GACN,IAAI,EAAQ,KAAK;EACnB,CACD;CACH,GAAG,CAAC,GAAgB,CAAY,CAAC;CAEjC,IAAM,IAAS,KAAK,IAAI,EAAM,SAAS,QAAQ,EAAM,QAAQ,MAAM,GAC7D,IAAqB,EAAM,SAAS,SAAS,GAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,GAClE,IAAoB,EAAM,QAAQ,SAAS,GAAQ,GAAG,CAAC,CAAC,MAAM,EAAE;CAEtE,OACE,kBAAC,QAAD;EACE,WAAW,GAAG,EAAO,KAAK,GAAG,EAAO,GAAM,GAAG,IAAY,KAAK;EAC9D,cAAY,KAAS;EACrB,aAAU;EAEV,UAAA,kBAAC,QAAD;GAAM,WAAW,EAAO;GAAS,eAAY;GAC1C,UAAA,EAAkB,KAAK,GAAW,MAAU;IAC3C,IAAM,IAAoB,EAAmB,IACvC,IAAU,MAAsB;IACtC,OACE,kBAAC,QAAD;KACE,WAAW,GAAG,EAAO,OAAO,IAAU,IAAI,EAAO,aAAa;KAC9D,kBAAgB,EAAM;KAFxB,UAAA,CAKG,IACC,kBAAC,QAAD;MAAM,WAAW,EAAO;MAAM,UAAA,EAAiB,CAAiB;KAAQ,CAAA,IACtE,MACJ,kBAAC,QAAD;MAAM,WAAW,EAAO;MAAM,UAAA,EAAiB,CAAS;KAAQ,CAAA,CAC5D;IANC,GAAA,GAAG,EAAM,GAAG,GAAG,GAMhB;GAEV,CAAC;EACG,CAAA;CACF,CAAA;AAEV"}
|