@oneplatformdev/ui 0.1.2-1 → 0.1.9-10
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/Accordion/Accordion.d.ts +10 -0
- package/Accordion/Accordion.d.ts.map +1 -0
- package/Accordion/Accordion.js +49 -0
- package/Accordion/index.d.ts +2 -0
- package/Accordion/index.d.ts.map +1 -0
- package/Accordion/index.js +7 -0
- package/Alert/Alert.d.ts +8 -0
- package/Alert/Alert.d.ts.map +1 -0
- package/Alert/Alert.js +37 -0
- package/Alert/alertVariants.d.ts +5 -0
- package/Alert/alertVariants.d.ts.map +1 -0
- package/Alert/alertVariants.js +19 -0
- package/Alert/index.d.ts +2 -0
- package/Alert/index.d.ts.map +1 -0
- package/Alert/index.js +6 -0
- package/AlertDialog/AlertDialog.d.ts +65 -0
- package/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/AlertDialog/AlertDialog.js +97 -0
- package/AlertDialog/AlertDialog.stories.d.ts +47 -0
- package/AlertDialog/AlertDialog.stories.d.ts.map +1 -0
- package/AlertDialog/AlertDialog.stories.js +121 -0
- package/AlertDialog/AlertDialog.types.d.ts +53 -0
- package/AlertDialog/AlertDialog.types.d.ts.map +1 -0
- package/AlertDialog/AlertDialog.types.js +1 -0
- package/AlertDialog/AlertDialogRoot.d.ts +22 -0
- package/AlertDialog/AlertDialogRoot.d.ts.map +1 -0
- package/AlertDialog/AlertDialogRoot.js +114 -0
- package/AlertDialog/index.d.ts +4 -0
- package/AlertDialog/index.d.ts.map +1 -0
- package/AlertDialog/index.js +16 -0
- package/AreaChart/AreaChart.d.ts +4 -0
- package/AreaChart/AreaChart.d.ts.map +1 -0
- package/AreaChart/AreaChart.js +27 -0
- package/AreaChart/AreaChart.types.d.ts +16 -0
- package/AreaChart/AreaChart.types.d.ts.map +1 -0
- package/AreaChart/AreaChart.types.js +1 -0
- package/AreaChart/index.d.ts +3 -0
- package/AreaChart/index.d.ts.map +1 -0
- package/AreaChart/index.js +4 -0
- package/Aside/Aside.d.ts +4 -0
- package/Aside/Aside.d.ts.map +1 -0
- package/Aside/Aside.js +23 -0
- package/Aside/Aside.types.d.ts +19 -0
- package/Aside/Aside.types.d.ts.map +1 -0
- package/Aside/Aside.types.js +1 -0
- package/Aside/AsideSidebar.d.ts +4 -0
- package/Aside/AsideSidebar.d.ts.map +1 -0
- package/Aside/AsideSidebar.js +37 -0
- package/Aside/index.d.ts +4 -0
- package/Aside/index.d.ts.map +1 -0
- package/Aside/index.js +7 -0
- package/AspectRatio/AspectRatio.d.ts +3 -0
- package/AspectRatio/AspectRatio.d.ts.map +1 -0
- package/AspectRatio/AspectRatio.js +5 -0
- package/AspectRatio/index.d.ts +2 -0
- package/AspectRatio/index.d.ts.map +1 -0
- package/AspectRatio/index.js +5 -0
- package/Avatar/Avatar.d.ts +6 -0
- package/Avatar/Avatar.d.ts.map +1 -0
- package/Avatar/Avatar.js +42 -0
- package/Avatar/index.d.ts +2 -0
- package/Avatar/index.d.ts.map +1 -0
- package/Avatar/index.js +6 -0
- package/Badge/Badge.d.ts +5 -0
- package/Badge/Badge.d.ts.map +1 -0
- package/Badge/Badge.js +10 -0
- package/Badge/Badge.types.d.ts +6 -0
- package/Badge/Badge.types.d.ts.map +1 -0
- package/Badge/Badge.types.js +1 -0
- package/Badge/badgeVariants.d.ts +4 -0
- package/Badge/badgeVariants.d.ts.map +1 -0
- package/Badge/badgeVariants.js +20 -0
- package/Badge/index.d.ts +4 -0
- package/Badge/index.d.ts.map +1 -0
- package/Badge/index.js +6 -0
- package/Breadcrumb/Breadcrumb.d.ts +20 -0
- package/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/Breadcrumb/Breadcrumb.js +90 -0
- package/Breadcrumb/index.d.ts +2 -0
- package/Breadcrumb/index.d.ts.map +1 -0
- package/Breadcrumb/index.js +10 -0
- package/Button/Button.d.ts +5 -0
- package/Button/Button.d.ts.map +1 -0
- package/Button/Button.js +32 -0
- package/Button/Button.stories.d.ts +8 -0
- package/Button/Button.stories.d.ts.map +1 -0
- package/Button/Button.stories.js +20 -0
- package/Button/Button.types.d.ts +9 -0
- package/Button/Button.types.d.ts.map +1 -0
- package/Button/Button.types.js +1 -0
- package/Button/buttonVariants.d.ts +5 -0
- package/Button/buttonVariants.d.ts.map +1 -0
- package/Button/buttonVariants.js +35 -0
- package/Button/index.d.ts +4 -0
- package/Button/index.d.ts.map +1 -0
- package/Button/index.js +7 -0
- package/ButtonIcon/ButtonIcon.d.ts +4 -0
- package/ButtonIcon/ButtonIcon.d.ts.map +1 -0
- package/ButtonIcon/ButtonIcon.js +29 -0
- package/ButtonIcon/ButtonIcon.stories.d.ts +37 -0
- package/ButtonIcon/ButtonIcon.stories.d.ts.map +1 -0
- package/ButtonIcon/ButtonIcon.stories.js +126 -0
- package/ButtonIcon/ButtonIcon.types.d.ts +8 -0
- package/ButtonIcon/ButtonIcon.types.d.ts.map +1 -0
- package/ButtonIcon/ButtonIcon.types.js +1 -0
- package/ButtonIcon/buttonIconVariants.d.ts +8 -0
- package/ButtonIcon/buttonIconVariants.d.ts.map +1 -0
- package/ButtonIcon/buttonIconVariants.js +139 -0
- package/ButtonIcon/index.d.ts +4 -0
- package/ButtonIcon/index.d.ts.map +1 -0
- package/ButtonIcon/index.js +7 -0
- package/CHANGELOG.md +181 -0
- package/Calendar/Calendar.d.ts +9 -0
- package/Calendar/Calendar.d.ts.map +1 -0
- package/Calendar/Calendar.js +64 -0
- package/Calendar/index.d.ts +2 -0
- package/Calendar/index.d.ts.map +1 -0
- package/Calendar/index.js +4 -0
- package/Card/Card.d.ts +9 -0
- package/Card/Card.d.ts.map +1 -0
- package/Card/Card.js +62 -0
- package/Card/index.d.ts +2 -0
- package/Card/index.d.ts.map +1 -0
- package/Card/index.js +9 -0
- package/Carousel/Carousel.d.ts +19 -0
- package/Carousel/Carousel.d.ts.map +1 -0
- package/Carousel/Carousel.js +168 -0
- package/Carousel/index.d.ts +2 -0
- package/Carousel/index.d.ts.map +1 -0
- package/Carousel/index.js +8 -0
- package/Chart/Chart.d.ts +62 -0
- package/Chart/Chart.d.ts.map +1 -0
- package/Chart/Chart.js +208 -0
- package/Chart/index.d.ts +2 -0
- package/Chart/index.d.ts.map +1 -0
- package/Chart/index.js +9 -0
- package/Checkbox/Checkbox.d.ts +6 -0
- package/Checkbox/Checkbox.d.ts.map +1 -0
- package/Checkbox/Checkbox.js +54 -0
- package/Checkbox/Checkbox.types.d.ts +11 -0
- package/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/Checkbox/Checkbox.types.js +1 -0
- package/Checkbox/index.d.ts +3 -0
- package/Checkbox/index.d.ts.map +1 -0
- package/Checkbox/index.js +5 -0
- package/Collapsible/Collapsible.d.ts +6 -0
- package/Collapsible/Collapsible.d.ts.map +1 -0
- package/Collapsible/Collapsible.js +7 -0
- package/Collapsible/index.d.ts +2 -0
- package/Collapsible/index.d.ts.map +1 -0
- package/Collapsible/index.js +6 -0
- package/Combobox/Combobox.d.ts +4 -0
- package/Combobox/Combobox.d.ts.map +1 -0
- package/Combobox/Combobox.js +177 -0
- package/Combobox/Combobox.types.d.ts +50 -0
- package/Combobox/Combobox.types.d.ts.map +1 -0
- package/Combobox/Combobox.types.js +1 -0
- package/Combobox/ComboboxOptionItem.d.ts +5 -0
- package/Combobox/ComboboxOptionItem.d.ts.map +1 -0
- package/Combobox/ComboboxOptionItem.js +108 -0
- package/Combobox/ComboboxOptions.d.ts +4 -0
- package/Combobox/ComboboxOptions.d.ts.map +1 -0
- package/Combobox/ComboboxOptions.js +64 -0
- package/Combobox/index.d.ts +3 -0
- package/Combobox/index.d.ts.map +1 -0
- package/Combobox/index.js +4 -0
- package/Command/Command.d.ts +81 -0
- package/Command/Command.d.ts.map +1 -0
- package/Command/Command.js +117 -0
- package/Command/index.d.ts +2 -0
- package/Command/index.d.ts.map +1 -0
- package/Command/index.js +12 -0
- package/DataTable/DataTable.d.ts +11 -0
- package/DataTable/DataTable.d.ts.map +1 -0
- package/DataTable/DataTable.js +61 -0
- package/DataTable/DataTable.types.d.ts +11 -0
- package/DataTable/DataTable.types.d.ts.map +1 -0
- package/DataTable/DataTable.types.js +1 -0
- package/DataTable/DataTableColumnFilter.d.ts +4 -0
- package/DataTable/DataTableColumnFilter.d.ts.map +1 -0
- package/DataTable/DataTableColumnFilter.js +31 -0
- package/DataTable/index.d.ts +3 -0
- package/DataTable/index.d.ts.map +1 -0
- package/DataTable/index.js +4 -0
- package/DataTable/useDataTable.d.ts +4 -0
- package/DataTable/useDataTable.d.ts.map +1 -0
- package/DataTable/useDataTable.js +30 -0
- package/DatePicker/DatePicker.d.ts +4 -0
- package/DatePicker/DatePicker.d.ts.map +1 -0
- package/DatePicker/DatePicker.js +53 -0
- package/DatePicker/DatePicker.types.d.ts +6 -0
- package/DatePicker/DatePicker.types.d.ts.map +1 -0
- package/DatePicker/DatePicker.types.js +1 -0
- package/DatePicker/index.d.ts +4 -0
- package/DatePicker/index.d.ts.map +1 -0
- package/DatePicker/index.js +5 -0
- package/Dialog/Dialog.d.ts +23 -0
- package/Dialog/Dialog.d.ts.map +1 -0
- package/Dialog/Dialog.js +146 -0
- package/Dialog/DialogOverlayScope.d.ts +9 -0
- package/Dialog/DialogOverlayScope.d.ts.map +1 -0
- package/Dialog/DialogOverlayScope.js +10 -0
- package/Dialog/index.d.ts +3 -0
- package/Dialog/index.d.ts.map +1 -0
- package/Dialog/index.js +17 -0
- package/Drawer/Drawer.d.ts +23 -0
- package/Drawer/Drawer.d.ts.map +1 -0
- package/Drawer/Drawer.js +98 -0
- package/Drawer/index.d.ts +2 -0
- package/Drawer/index.d.ts.map +1 -0
- package/Drawer/index.js +13 -0
- package/DropdownMenu/DropdownMenu.d.ts +28 -0
- package/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/DropdownMenu/DropdownMenu.js +144 -0
- package/DropdownMenu/index.d.ts +2 -0
- package/DropdownMenu/index.d.ts.map +1 -0
- package/DropdownMenu/index.js +18 -0
- package/Dropzone/Dropzone.d.ts +22 -0
- package/Dropzone/Dropzone.d.ts.map +1 -0
- package/Dropzone/Dropzone.js +155 -0
- package/Dropzone/Dropzone.types.d.ts +44 -0
- package/Dropzone/Dropzone.types.d.ts.map +1 -0
- package/Dropzone/Dropzone.types.js +17 -0
- package/Dropzone/DropzoneFilePreview.d.ts +4 -0
- package/Dropzone/DropzoneFilePreview.d.ts.map +1 -0
- package/Dropzone/DropzoneFilePreview.js +54 -0
- package/Dropzone/DropzoneSinglePickPreview.d.ts +10 -0
- package/Dropzone/DropzoneSinglePickPreview.d.ts.map +1 -0
- package/Dropzone/DropzoneSinglePickPreview.js +41 -0
- package/Dropzone/DropzoneUtils.d.ts +5 -0
- package/Dropzone/DropzoneUtils.d.ts.map +1 -0
- package/Dropzone/DropzoneUtils.js +24 -0
- package/Dropzone/index.d.ts +3 -0
- package/Dropzone/index.d.ts.map +1 -0
- package/Dropzone/index.js +7 -0
- package/Form/Form.d.ts +24 -0
- package/Form/Form.d.ts.map +1 -0
- package/Form/Form.js +98 -0
- package/Form/FormRenderControl.d.ts +4 -0
- package/Form/FormRenderControl.d.ts.map +1 -0
- package/Form/FormRenderControl.js +21 -0
- package/Form/FormRenderControl.types.d.ts +16 -0
- package/Form/FormRenderControl.types.d.ts.map +1 -0
- package/Form/FormRenderControl.types.js +1 -0
- package/Form/index.d.ts +4 -0
- package/Form/index.d.ts.map +1 -0
- package/Form/index.js +13 -0
- package/FormCheckbox/FormCheckbox.d.ts +4 -0
- package/FormCheckbox/FormCheckbox.d.ts.map +1 -0
- package/FormCheckbox/FormCheckbox.js +30 -0
- package/FormCheckbox/FormCheckbox.types.d.ts +7 -0
- package/FormCheckbox/FormCheckbox.types.d.ts.map +1 -0
- package/FormCheckbox/FormCheckbox.types.js +1 -0
- package/FormCheckbox/index.d.ts +3 -0
- package/FormCheckbox/index.d.ts.map +1 -0
- package/FormCheckbox/index.js +4 -0
- package/FormCombobox/FormCombobox.d.ts +4 -0
- package/FormCombobox/FormCombobox.d.ts.map +1 -0
- package/FormCombobox/FormCombobox.js +26 -0
- package/FormCombobox/FormCombobox.types.d.ts +6 -0
- package/FormCombobox/FormCombobox.types.d.ts.map +1 -0
- package/FormCombobox/FormCombobox.types.js +1 -0
- package/FormCombobox/index.d.ts +3 -0
- package/FormCombobox/index.d.ts.map +1 -0
- package/FormCombobox/index.js +4 -0
- package/FormDatePicker/FormDatePicker.d.ts +4 -0
- package/FormDatePicker/FormDatePicker.d.ts.map +1 -0
- package/FormDatePicker/FormDatePicker.js +29 -0
- package/FormDatePicker/FormDatePicker.types.d.ts +6 -0
- package/FormDatePicker/FormDatePicker.types.d.ts.map +1 -0
- package/FormDatePicker/FormDatePicker.types.js +1 -0
- package/FormDatePicker/index.d.ts +4 -0
- package/FormDatePicker/index.d.ts.map +1 -0
- package/FormDatePicker/index.js +5 -0
- package/FormDropzone/FormDropzone.d.ts +4 -0
- package/FormDropzone/FormDropzone.d.ts.map +1 -0
- package/FormDropzone/FormDropzone.js +19 -0
- package/FormDropzone/FormDropzone.types.d.ts +6 -0
- package/FormDropzone/FormDropzone.types.d.ts.map +1 -0
- package/FormDropzone/FormDropzone.types.js +1 -0
- package/FormDropzone/index.d.ts +3 -0
- package/FormDropzone/index.d.ts.map +1 -0
- package/FormDropzone/index.js +4 -0
- package/FormInput/FormInput.d.ts +7 -0
- package/FormInput/FormInput.d.ts.map +1 -0
- package/FormInput/FormInput.js +45 -0
- package/FormInput/FormInput.types.d.ts +6 -0
- package/FormInput/FormInput.types.d.ts.map +1 -0
- package/FormInput/FormInput.types.js +1 -0
- package/FormInput/index.d.ts +3 -0
- package/FormInput/index.d.ts.map +1 -0
- package/FormInput/index.js +4 -0
- package/FormRadio/FormRadio.d.ts +4 -0
- package/FormRadio/FormRadio.d.ts.map +1 -0
- package/FormRadio/FormRadio.js +40 -0
- package/FormRadio/FormRadio.types.d.ts +6 -0
- package/FormRadio/FormRadio.types.d.ts.map +1 -0
- package/FormRadio/FormRadio.types.js +1 -0
- package/FormRadio/index.d.ts +3 -0
- package/FormRadio/index.d.ts.map +1 -0
- package/FormRadio/index.js +4 -0
- package/FormSelect/FormSelect.d.ts +4 -0
- package/FormSelect/FormSelect.d.ts.map +1 -0
- package/FormSelect/FormSelect.js +40 -0
- package/FormSelect/FormSelect.types.d.ts +6 -0
- package/FormSelect/FormSelect.types.d.ts.map +1 -0
- package/FormSelect/FormSelect.types.js +1 -0
- package/FormSelect/index.d.ts +3 -0
- package/FormSelect/index.d.ts.map +1 -0
- package/FormSelect/index.js +4 -0
- package/FormTextarea/FormTextarea.d.ts +4 -0
- package/FormTextarea/FormTextarea.d.ts.map +1 -0
- package/FormTextarea/FormTextarea.js +27 -0
- package/FormTextarea/FormTextarea.types.d.ts +6 -0
- package/FormTextarea/FormTextarea.types.d.ts.map +1 -0
- package/FormTextarea/FormTextarea.types.js +1 -0
- package/FormTextarea/index.d.ts +3 -0
- package/FormTextarea/index.d.ts.map +1 -0
- package/FormTextarea/index.js +4 -0
- package/Header/Header.d.ts +5 -0
- package/Header/Header.d.ts.map +1 -0
- package/Header/Header.js +26 -0
- package/Header/Header.types.d.ts +4 -0
- package/Header/Header.types.d.ts.map +1 -0
- package/Header/Header.types.js +1 -0
- package/Header/index.d.ts +3 -0
- package/Header/index.d.ts.map +1 -0
- package/Header/index.js +5 -0
- package/HoverCard/HoverCard.d.ts +7 -0
- package/HoverCard/HoverCard.d.ts.map +1 -0
- package/HoverCard/HoverCard.js +23 -0
- package/HoverCard/index.d.ts +2 -0
- package/HoverCard/index.d.ts.map +1 -0
- package/HoverCard/index.js +6 -0
- package/Input/Input.d.ts +6 -0
- package/Input/Input.d.ts.map +1 -0
- package/Input/Input.js +72 -0
- package/Input/Input.types.d.ts +17 -0
- package/Input/Input.types.d.ts.map +1 -0
- package/Input/Input.types.js +1 -0
- package/Input/index.d.ts +4 -0
- package/Input/index.d.ts.map +1 -0
- package/Input/index.js +7 -0
- package/Input/inputVariants.d.ts +4 -0
- package/Input/inputVariants.d.ts.map +1 -0
- package/Input/inputVariants.js +24 -0
- package/InputOTP/InputOTP.d.ts +35 -0
- package/InputOTP/InputOTP.d.ts.map +1 -0
- package/InputOTP/InputOTP.js +48 -0
- package/InputOTP/index.d.ts +2 -0
- package/InputOTP/index.d.ts.map +1 -0
- package/InputOTP/index.js +7 -0
- package/LICENSE +21 -0
- package/Label/Label.d.ts +6 -0
- package/Label/Label.d.ts.map +1 -0
- package/Label/Label.js +17 -0
- package/Label/index.d.ts +3 -0
- package/Label/index.d.ts.map +1 -0
- package/Label/index.js +6 -0
- package/Label/labelVariants.d.ts +2 -0
- package/Label/labelVariants.d.ts.map +1 -0
- package/Label/labelVariants.js +10 -0
- package/LazyLoader/LazyLoader.d.ts +20 -0
- package/LazyLoader/LazyLoader.d.ts.map +1 -0
- package/LazyLoader/LazyLoader.js +8 -0
- package/LazyLoader/index.d.ts +2 -0
- package/LazyLoader/index.d.ts.map +1 -0
- package/LazyLoader/index.js +5 -0
- package/LoadedIcon/LoadedIcon.d.ts +11 -0
- package/LoadedIcon/LoadedIcon.d.ts.map +1 -0
- package/LoadedIcon/LoadedIcon.js +27 -0
- package/LoadedIcon/index.d.ts +2 -0
- package/LoadedIcon/index.d.ts.map +1 -0
- package/LoadedIcon/index.js +4 -0
- package/LoadingMask/LoadingMask.d.ts +4 -0
- package/LoadingMask/LoadingMask.d.ts.map +1 -0
- package/LoadingMask/LoadingMask.js +21 -0
- package/LoadingMask/LoadingMask.types.d.ts +5 -0
- package/LoadingMask/LoadingMask.types.d.ts.map +1 -0
- package/LoadingMask/LoadingMask.types.js +1 -0
- package/LoadingMask/RenderLoadingMask.d.ts +3 -0
- package/LoadingMask/RenderLoadingMask.d.ts.map +1 -0
- package/LoadingMask/RenderLoadingMask.js +108 -0
- package/LoadingMask/index.d.ts +4 -0
- package/LoadingMask/index.d.ts.map +1 -0
- package/LoadingMask/index.js +6 -0
- package/LoadingProgress/LoadingProgress.d.ts +4 -0
- package/LoadingProgress/LoadingProgress.d.ts.map +1 -0
- package/LoadingProgress/LoadingProgress.js +37 -0
- package/LoadingProgress/LoadingProgress.types.d.ts +8 -0
- package/LoadingProgress/LoadingProgress.types.d.ts.map +1 -0
- package/LoadingProgress/LoadingProgress.types.js +1 -0
- package/LoadingProgress/index.d.ts +4 -0
- package/LoadingProgress/index.d.ts.map +1 -0
- package/LoadingProgress/index.js +6 -0
- package/LoadingProgress/loadingProgressVariants.d.ts +5 -0
- package/LoadingProgress/loadingProgressVariants.d.ts.map +1 -0
- package/LoadingProgress/loadingProgressVariants.js +24 -0
- package/Menubar/Menubar.d.ts +29 -0
- package/Menubar/Menubar.d.ts.map +1 -0
- package/Menubar/Menubar.js +175 -0
- package/Menubar/index.d.ts +2 -0
- package/Menubar/index.d.ts.map +1 -0
- package/Menubar/index.js +19 -0
- package/NavigationMenu/NavigationMenu.d.ts +12 -0
- package/NavigationMenu/NavigationMenu.d.ts.map +1 -0
- package/NavigationMenu/NavigationMenu.js +101 -0
- package/NavigationMenu/index.d.ts +3 -0
- package/NavigationMenu/index.d.ts.map +1 -0
- package/NavigationMenu/index.js +13 -0
- package/NavigationMenu/navigationMenuVariants.d.ts +2 -0
- package/NavigationMenu/navigationMenuVariants.d.ts.map +1 -0
- package/NavigationMenu/navigationMenuVariants.js +7 -0
- package/Pagination/Pagination.d.ts +29 -0
- package/Pagination/Pagination.d.ts.map +1 -0
- package/Pagination/Pagination.js +106 -0
- package/Pagination/index.d.ts +2 -0
- package/Pagination/index.d.ts.map +1 -0
- package/Pagination/index.js +10 -0
- package/Popover/Popover.d.ts +8 -0
- package/Popover/Popover.d.ts.map +1 -0
- package/Popover/Popover.js +36 -0
- package/Popover/index.d.ts +2 -0
- package/Popover/index.d.ts.map +1 -0
- package/Popover/index.js +7 -0
- package/Progress/Progress.d.ts +5 -0
- package/Progress/Progress.d.ts.map +1 -0
- package/Progress/Progress.js +26 -0
- package/Progress/index.d.ts +2 -0
- package/Progress/index.d.ts.map +1 -0
- package/Progress/index.js +4 -0
- package/README.md +3 -3
- package/Radio/Radio.d.ts +4 -0
- package/Radio/Radio.d.ts.map +1 -0
- package/Radio/Radio.js +12 -0
- package/Radio/Radio.types.d.ts +11 -0
- package/Radio/Radio.types.d.ts.map +1 -0
- package/Radio/Radio.types.js +1 -0
- package/Radio/index.d.ts +3 -0
- package/Radio/index.d.ts.map +1 -0
- package/Radio/index.js +4 -0
- package/RadioGroup/RadioGroup.d.ts +12 -0
- package/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/RadioGroup/RadioGroup.js +49 -0
- package/RadioGroup/index.d.ts +2 -0
- package/RadioGroup/index.d.ts.map +1 -0
- package/RadioGroup/index.js +6 -0
- package/Resizable/Resizable.d.ts +24 -0
- package/Resizable/Resizable.d.ts.map +1 -0
- package/Resizable/Resizable.js +36 -0
- package/Resizable/index.d.ts +2 -0
- package/Resizable/index.d.ts.map +1 -0
- package/Resizable/index.js +6 -0
- package/ScrollArea/ScrollArea.d.ts +6 -0
- package/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/ScrollArea/ScrollArea.js +51 -0
- package/ScrollArea/index.d.ts +2 -0
- package/ScrollArea/index.d.ts.map +1 -0
- package/ScrollArea/index.js +5 -0
- package/Search/Search.d.ts +3 -0
- package/Search/Search.d.ts.map +1 -0
- package/Search/Search.js +45 -0
- package/Search/Search.types.d.ts +7 -0
- package/Search/Search.types.d.ts.map +1 -0
- package/Search/Search.types.js +1 -0
- package/Search/index.d.ts +4 -0
- package/Search/index.d.ts.map +1 -0
- package/Search/index.js +5 -0
- package/Select/Select.d.ts +3 -0
- package/Select/Select.d.ts.map +1 -0
- package/Select/Select.js +102 -0
- package/Select/Select.stories.d.ts +7 -0
- package/Select/Select.stories.d.ts.map +1 -0
- package/Select/Select.stories.js +41 -0
- package/Select/Select.types.d.ts +37 -0
- package/Select/Select.types.d.ts.map +1 -0
- package/Select/Select.types.js +1 -0
- package/Select/SelectRoot.d.ts +14 -0
- package/Select/SelectRoot.d.ts.map +1 -0
- package/Select/SelectRoot.js +126 -0
- package/Select/index.d.ts +4 -0
- package/Select/index.d.ts.map +1 -0
- package/Select/index.js +15 -0
- package/Separator/Separator.d.ts +5 -0
- package/Separator/Separator.d.ts.map +1 -0
- package/Separator/Separator.js +24 -0
- package/Separator/index.d.ts +2 -0
- package/Separator/index.d.ts.map +1 -0
- package/Separator/index.js +4 -0
- package/Sheet/Sheet.d.ts +29 -0
- package/Sheet/Sheet.d.ts.map +1 -0
- package/Sheet/Sheet.js +110 -0
- package/Sheet/index.d.ts +2 -0
- package/Sheet/index.d.ts.map +1 -0
- package/Sheet/index.js +13 -0
- package/Sidebar/Sidebar.d.ts +67 -0
- package/Sidebar/Sidebar.d.ts.map +1 -0
- package/Sidebar/Sidebar.js +532 -0
- package/Sidebar/index.d.ts +2 -0
- package/Sidebar/index.d.ts.map +1 -0
- package/Sidebar/index.js +27 -0
- package/Skeleton/Skeleton.d.ts +4 -0
- package/Skeleton/Skeleton.d.ts.map +1 -0
- package/Skeleton/Skeleton.js +17 -0
- package/Skeleton/index.d.ts +2 -0
- package/Skeleton/index.d.ts.map +1 -0
- package/Skeleton/index.js +4 -0
- package/Slider/Slider.d.ts +5 -0
- package/Slider/Slider.d.ts.map +1 -0
- package/Slider/Slider.js +23 -0
- package/Slider/index.d.ts +2 -0
- package/Slider/index.d.ts.map +1 -0
- package/Slider/index.js +4 -0
- package/Sonner/Sonner.d.ts +5 -0
- package/Sonner/Sonner.d.ts.map +1 -0
- package/Sonner/Sonner.js +25 -0
- package/Sonner/index.d.ts +2 -0
- package/Sonner/index.d.ts.map +1 -0
- package/Sonner/index.js +4 -0
- package/Switch/Switch.d.ts +5 -0
- package/Switch/Switch.d.ts.map +1 -0
- package/Switch/Switch.js +27 -0
- package/Switch/index.d.ts +2 -0
- package/Switch/index.d.ts.map +1 -0
- package/Switch/index.js +4 -0
- package/Table/Table.d.ts +11 -0
- package/Table/Table.d.ts.map +1 -0
- package/Table/Table.js +90 -0
- package/Table/index.d.ts +2 -0
- package/Table/index.d.ts.map +1 -0
- package/Table/index.js +11 -0
- package/TablePagination/TablePagination.d.ts +16 -0
- package/TablePagination/TablePagination.d.ts.map +1 -0
- package/TablePagination/TablePagination.js +74 -0
- package/TablePagination/index.d.ts +2 -0
- package/TablePagination/index.d.ts.map +1 -0
- package/TablePagination/index.js +4 -0
- package/Tabs/Tabs.d.ts +5 -0
- package/Tabs/Tabs.d.ts.map +1 -0
- package/Tabs/Tabs.js +22 -0
- package/Tabs/Tabs.types.d.ts +12 -0
- package/Tabs/Tabs.types.d.ts.map +1 -0
- package/Tabs/Tabs.types.js +1 -0
- package/Tabs/TabsRoot.d.ts +8 -0
- package/Tabs/TabsRoot.d.ts.map +1 -0
- package/Tabs/TabsRoot.js +46 -0
- package/Tabs/index.d.ts +3 -0
- package/Tabs/index.d.ts.map +1 -0
- package/Tabs/index.js +10 -0
- package/Textarea/Textarea.d.ts +5 -0
- package/Textarea/Textarea.d.ts.map +1 -0
- package/Textarea/Textarea.js +72 -0
- package/Textarea/Textarea.types.d.ts +18 -0
- package/Textarea/Textarea.types.d.ts.map +1 -0
- package/Textarea/Textarea.types.js +1 -0
- package/Textarea/index.d.ts +3 -0
- package/Textarea/index.d.ts.map +1 -0
- package/Textarea/index.js +4 -0
- package/Textarea/useAutosizeTextArea.d.ts +3 -0
- package/Textarea/useAutosizeTextArea.d.ts.map +1 -0
- package/Textarea/useAutosizeTextArea.js +20 -0
- package/Theme/ThemeModeToggle.d.ts +9 -0
- package/Theme/ThemeModeToggle.d.ts.map +1 -0
- package/Theme/ThemeModeToggle.js +48 -0
- package/Theme/ThemeProvider.d.ts +5 -0
- package/Theme/ThemeProvider.d.ts.map +1 -0
- package/Theme/ThemeProvider.js +27 -0
- package/Theme/index.d.ts +3 -0
- package/Theme/index.d.ts.map +1 -0
- package/Theme/index.js +6 -0
- package/Toast/Toast.d.ts +14 -0
- package/Toast/Toast.d.ts.map +1 -0
- package/Toast/Toast.js +80 -0
- package/Toast/Toast.types.d.ts +34 -0
- package/Toast/Toast.types.d.ts.map +1 -0
- package/Toast/Toast.types.js +1 -0
- package/Toast/index.d.ts +4 -0
- package/Toast/index.d.ts.map +1 -0
- package/Toast/index.js +15 -0
- package/Toast/toast.constants.d.ts +7 -0
- package/Toast/toast.constants.d.ts.map +1 -0
- package/Toast/toast.constants.js +9 -0
- package/Toast/toastVariants.d.ts +4 -0
- package/Toast/toastVariants.d.ts.map +1 -0
- package/Toast/toastVariants.js +21 -0
- package/Toast/useToast.d.ts +16 -0
- package/Toast/useToast.d.ts.map +1 -0
- package/Toast/useToast.js +101 -0
- package/Toaster/Toaster.d.ts +2 -0
- package/Toaster/Toaster.d.ts.map +1 -0
- package/Toaster/Toaster.js +22 -0
- package/Toaster/index.d.ts +2 -0
- package/Toaster/index.d.ts.map +1 -0
- package/Toaster/index.js +4 -0
- package/Toggle/Toggle.d.ts +13 -0
- package/Toggle/Toggle.d.ts.map +1 -0
- package/Toggle/Toggle.js +37 -0
- package/Toggle/index.d.ts +2 -0
- package/Toggle/index.d.ts.map +1 -0
- package/Toggle/index.js +5 -0
- package/ToggleGroup/ToggleGroup.d.ts +13 -0
- package/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/ToggleGroup/ToggleGroup.js +41 -0
- package/ToggleGroup/index.d.ts +2 -0
- package/ToggleGroup/index.d.ts.map +1 -0
- package/ToggleGroup/index.js +5 -0
- package/Tooltip/Tooltip.d.ts +4 -0
- package/Tooltip/Tooltip.d.ts.map +1 -0
- package/Tooltip/Tooltip.js +12 -0
- package/Tooltip/Tooltip.types.d.ts +8 -0
- package/Tooltip/Tooltip.types.d.ts.map +1 -0
- package/Tooltip/Tooltip.types.js +1 -0
- package/Tooltip/TooltipRoot.d.ts +8 -0
- package/Tooltip/TooltipRoot.d.ts.map +1 -0
- package/Tooltip/TooltipRoot.js +23 -0
- package/Tooltip/index.d.ts +4 -0
- package/Tooltip/index.d.ts.map +1 -0
- package/Tooltip/index.js +9 -0
- package/index.d.ts +70 -0
- package/index.d.ts.map +1 -0
- package/index.js +374 -0
- package/package.json +95 -24
- package/packages/hooks/src/useIsMobile/useIsMobile.js +16 -0
- package/styles.css +1 -0
- package/src/globals.css +0 -123
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
6
|
+
showChevron?: boolean;
|
|
7
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
10
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/Accordion/Accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,QAAA,MAAM,SAAS,8JAA0B,CAAC;AAE1C,QAAA,MAAM,aAAa,iKASjB,CAAA;AAGF,QAAA,MAAM,gBAAgB;kBAEgE,OAAO;2CAoB3F,CAAA;AAGF,QAAA,MAAM,gBAAgB,oKAWpB,CAAA;AAGF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-accordion";
|
|
4
|
+
import { ChevronDown as l } from "lucide-react";
|
|
5
|
+
import { cn as c } from "@oneplatformdev/utils";
|
|
6
|
+
const w = e.Root, f = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
7
|
+
e.Item,
|
|
8
|
+
{
|
|
9
|
+
ref: r,
|
|
10
|
+
className: c("border-b", t),
|
|
11
|
+
...o
|
|
12
|
+
}
|
|
13
|
+
));
|
|
14
|
+
f.displayName = "AccordionItem";
|
|
15
|
+
const p = s.forwardRef(({ className: t, children: o, showChevron: r = !0, ...i }, m) => /* @__PURE__ */ a(e.Header, { className: "flex", children: /* @__PURE__ */ d(
|
|
16
|
+
e.Trigger,
|
|
17
|
+
{
|
|
18
|
+
ref: m,
|
|
19
|
+
className: c(
|
|
20
|
+
"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all text-left [&[data-state=open]>svg]:rotate-180",
|
|
21
|
+
t
|
|
22
|
+
),
|
|
23
|
+
onKeyDown: (n) => {
|
|
24
|
+
n.key === " " && n.target === n.currentTarget && n.preventDefault();
|
|
25
|
+
},
|
|
26
|
+
...i,
|
|
27
|
+
children: [
|
|
28
|
+
o,
|
|
29
|
+
r && /* @__PURE__ */ a(l, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
) }));
|
|
33
|
+
p.displayName = e.Trigger.displayName;
|
|
34
|
+
const N = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ a(
|
|
35
|
+
e.Content,
|
|
36
|
+
{
|
|
37
|
+
ref: i,
|
|
38
|
+
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
39
|
+
...r,
|
|
40
|
+
children: /* @__PURE__ */ a("div", { className: c("pb-4 pt-0", t), children: o })
|
|
41
|
+
}
|
|
42
|
+
));
|
|
43
|
+
N.displayName = e.Content.displayName;
|
|
44
|
+
export {
|
|
45
|
+
w as Accordion,
|
|
46
|
+
N as AccordionContent,
|
|
47
|
+
f as AccordionItem,
|
|
48
|
+
p as AccordionTrigger
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/Alert/Alert.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
export declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAK5D,eAAO,MAAM,KAAK;;sHAUhB,CAAA;AAGF,eAAO,MAAM,UAAU,uHASrB,CAAA;AAGF,eAAO,MAAM,gBAAgB,yHAS3B,CAAA"}
|
package/Alert/Alert.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cn as l } from "@oneplatformdev/utils";
|
|
4
|
+
import { alertVariants as m } from "./alertVariants.js";
|
|
5
|
+
const s = i.forwardRef(({ className: e, variant: r, ...t }, o) => /* @__PURE__ */ a(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
ref: o,
|
|
9
|
+
role: "alert",
|
|
10
|
+
className: l(m({ variant: r }), e),
|
|
11
|
+
...t
|
|
12
|
+
}
|
|
13
|
+
));
|
|
14
|
+
s.displayName = "Alert";
|
|
15
|
+
const n = i.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ a(
|
|
16
|
+
"h5",
|
|
17
|
+
{
|
|
18
|
+
ref: t,
|
|
19
|
+
className: l("mb-1 font-medium leading-none tracking-tight", e),
|
|
20
|
+
...r
|
|
21
|
+
}
|
|
22
|
+
));
|
|
23
|
+
n.displayName = "AlertTitle";
|
|
24
|
+
const d = i.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ a(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
ref: t,
|
|
28
|
+
className: l("text-sm [&_p]:leading-relaxed", e),
|
|
29
|
+
...r
|
|
30
|
+
}
|
|
31
|
+
));
|
|
32
|
+
d.displayName = "AlertDescription";
|
|
33
|
+
export {
|
|
34
|
+
s as Alert,
|
|
35
|
+
d as AlertDescription,
|
|
36
|
+
n as AlertTitle
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alertVariants.d.ts","sourceRoot":"","sources":["../../src/Alert/alertVariants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;8EAczB,CAAA;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const r = t(
|
|
3
|
+
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "bg-background text-foreground",
|
|
8
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
variant: "default"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
r as alertVariants,
|
|
18
|
+
r as default
|
|
19
|
+
};
|
package/Alert/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/Alert/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { AlertDialogProps } from './AlertDialog.types';
|
|
3
|
+
/**
|
|
4
|
+
* Component for show Alert Dialog.
|
|
5
|
+
* @public
|
|
6
|
+
* @see [Documentation](#)
|
|
7
|
+
* @example
|
|
8
|
+
* > Import:
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { AlertDialog } from '@oneplatformdev/ui/AlertDialog';
|
|
11
|
+
* ```
|
|
12
|
+
* > Simple example:
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <AlertDialog
|
|
15
|
+
* trigger={'Trigger text'} // may be any ReactNode | Button | string
|
|
16
|
+
* variant='alert' // 'confirm' (default) | 'alert' | 'destructive'
|
|
17
|
+
* title='Dialog title'
|
|
18
|
+
* description='Description text...'
|
|
19
|
+
* />
|
|
20
|
+
* ```
|
|
21
|
+
* > Base example:
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <AlertDialog
|
|
24
|
+
* trigger={<Button variant="outline">Simple Trigger</Button>}
|
|
25
|
+
* title='Dialog title'
|
|
26
|
+
* description='Description text...'
|
|
27
|
+
* onCancel={(event) => console.log(event, 'Cancel')}
|
|
28
|
+
* onConfirm={(event) => console.log(event, 'Confirm')}
|
|
29
|
+
* />
|
|
30
|
+
* ```
|
|
31
|
+
* > Trigger example: Button with icon children
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <AlertDialog
|
|
34
|
+
* trigger={<Button variant="outline" size="icon"><PencilLine /></Button>}
|
|
35
|
+
* title="Dialog title with icon trigger"
|
|
36
|
+
* description="Description text..."
|
|
37
|
+
* onCancel={(event) => console.log(event, 'Cancel')}
|
|
38
|
+
* onConfirm={(event) => console.log(event, 'Confirm')}
|
|
39
|
+
* />
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* > Full content example:
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <AlertDialog trigger={<Button variant="outline">Full Content Trigger</Button>}>
|
|
45
|
+
* Full Content...
|
|
46
|
+
* </AlertDialog>
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* > Full control example:
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <AlertDialog
|
|
52
|
+
* open={true}
|
|
53
|
+
* onOpenChange={(nextState) => console.log(nextState)}
|
|
54
|
+
* trigger={<Button variant="outline">Control Trigger</Button>}
|
|
55
|
+
* header={<div>Custom Header</div>}
|
|
56
|
+
* footer={[
|
|
57
|
+
* <Button key='cancel' variant="outline" onClick={() => {}}>On Action</Button>,
|
|
58
|
+
* <Button key='action' variant="outline" onClick={() => {}}>On Action</Button>,
|
|
59
|
+
* ]}
|
|
60
|
+
* />
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare const AlertDialog: FC<PropsWithChildren<AlertDialogProps>>;
|
|
64
|
+
export default AlertDialog;
|
|
65
|
+
//# sourceMappingURL=AlertDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,EAAE,EAEF,iBAAiB,EAGlB,MAAM,OAAO,CAAC;AAYf,OAAO,EAKL,gBAAgB,EAGjB,MAAM,qBAAqB,CAAC;AAqI7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAiC/D,CAAA;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsxs as g, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cloneElement as a, useId as j, Children as y } from "react";
|
|
3
|
+
import { AlertDialogRoot as E, AlertDialogContent as u, AlertDialogTrigger as v, AlertDialogHeader as f, AlertDialogTitle as B, AlertDialogDescription as R, AlertDialogFooter as A, AlertDialogAction as D, AlertDialogCancel as k } from "./AlertDialogRoot.js";
|
|
4
|
+
import { isValidReactElement as s } from "@oneplatformdev/utils";
|
|
5
|
+
const F = (o) => {
|
|
6
|
+
const { slotProps: e = {}, children: r } = o, i = e.trigger ?? {};
|
|
7
|
+
return s(r, v) ? a(
|
|
8
|
+
r,
|
|
9
|
+
{
|
|
10
|
+
...r.props || {},
|
|
11
|
+
...i
|
|
12
|
+
}
|
|
13
|
+
) : /* @__PURE__ */ t(v, { asChild: !0, children: r });
|
|
14
|
+
}, H = (o) => {
|
|
15
|
+
const {
|
|
16
|
+
title: e = "",
|
|
17
|
+
description: r = "",
|
|
18
|
+
slotProps: i = {},
|
|
19
|
+
children: l
|
|
20
|
+
} = o, n = i.header ?? {}, d = i.title ?? {}, c = i.description ?? {};
|
|
21
|
+
return l ? s(l, f) ? a(
|
|
22
|
+
l,
|
|
23
|
+
{ ...l.props || {}, ...n }
|
|
24
|
+
) : /* @__PURE__ */ t(f, { ...n, children: l }) : /* @__PURE__ */ g(f, { children: [
|
|
25
|
+
e && s(e, B) ? a(
|
|
26
|
+
e,
|
|
27
|
+
{ ...e.props || {}, ...d }
|
|
28
|
+
) : /* @__PURE__ */ t(B, { ...d, children: e }),
|
|
29
|
+
r && s(r, R) ? a(
|
|
30
|
+
r,
|
|
31
|
+
{ ...r.props || {}, ...c }
|
|
32
|
+
) : /* @__PURE__ */ t(R, { ...c, children: r })
|
|
33
|
+
] });
|
|
34
|
+
}, I = (o) => {
|
|
35
|
+
const {
|
|
36
|
+
slotProps: e = {},
|
|
37
|
+
children: r,
|
|
38
|
+
onCancel: i,
|
|
39
|
+
onConfirm: l,
|
|
40
|
+
cancelLabel: n = "Cancel",
|
|
41
|
+
actionLabel: d = "Continue",
|
|
42
|
+
variant: c = "confirm"
|
|
43
|
+
} = o, x = j(), m = e.footer ?? {}, T = e.cancelButton ?? {}, C = e.actionButton ?? {};
|
|
44
|
+
return r ? s(r, A) ? a(
|
|
45
|
+
r,
|
|
46
|
+
{ ...r.props || {}, ...m }
|
|
47
|
+
) : /* @__PURE__ */ t(A, { ...m, children: y.map(r, (p, b) => {
|
|
48
|
+
if (!p || !s(p)) return;
|
|
49
|
+
const h = p, P = a(h, { ...h.props || {}, key: h.key || `footer-${x}-action-${b}` });
|
|
50
|
+
return s(p, D) || s(p, k) ? P : /* @__PURE__ */ t(D, { asChild: !0, children: P });
|
|
51
|
+
}) }) : /* @__PURE__ */ g(A, { children: [
|
|
52
|
+
c !== "alert" && /* @__PURE__ */ t(
|
|
53
|
+
k,
|
|
54
|
+
{
|
|
55
|
+
variant: "ghost",
|
|
56
|
+
onClick: i,
|
|
57
|
+
...T,
|
|
58
|
+
children: n
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ t(
|
|
62
|
+
D,
|
|
63
|
+
{
|
|
64
|
+
onClick: l,
|
|
65
|
+
...C,
|
|
66
|
+
variant: C.variant || c === "destructive" ? "destructive" : "default",
|
|
67
|
+
children: d
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] });
|
|
71
|
+
}, w = (o) => {
|
|
72
|
+
const {
|
|
73
|
+
trigger: e,
|
|
74
|
+
header: r,
|
|
75
|
+
footer: i,
|
|
76
|
+
slotProps: l = {},
|
|
77
|
+
children: n,
|
|
78
|
+
...d
|
|
79
|
+
} = o, c = l.content ?? {};
|
|
80
|
+
return /* @__PURE__ */ g(E, { ...d, children: [
|
|
81
|
+
/* @__PURE__ */ t(F, { ...o, children: e }),
|
|
82
|
+
n ? s(n, u) ? a(
|
|
83
|
+
n,
|
|
84
|
+
{
|
|
85
|
+
...n.props || {},
|
|
86
|
+
...c
|
|
87
|
+
}
|
|
88
|
+
) : /* @__PURE__ */ t(u, { ...c, children: n }) : /* @__PURE__ */ g(u, { ...c, children: [
|
|
89
|
+
/* @__PURE__ */ t(H, { ...o, children: r }),
|
|
90
|
+
/* @__PURE__ */ t(I, { ...o, children: i })
|
|
91
|
+
] })
|
|
92
|
+
] });
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
w as AlertDialog,
|
|
96
|
+
w as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AlertDialogProps } from './AlertDialog.types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
declare const meta: Meta<React.FC<React.PropsWithChildren<AlertDialogProps>>>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Playground: {
|
|
6
|
+
(args: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
args: {
|
|
8
|
+
trigger: string;
|
|
9
|
+
variant: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
cancelLabel: string;
|
|
13
|
+
actionLabel: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const Variants: {
|
|
17
|
+
(args: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
parameters: {
|
|
19
|
+
controls: {
|
|
20
|
+
include: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
args: {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const FullControl: {
|
|
29
|
+
(args: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
parameters: {
|
|
31
|
+
controls: {
|
|
32
|
+
include: string[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
args: {
|
|
36
|
+
open: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const FullContent: {
|
|
40
|
+
(args: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
parameters: {
|
|
42
|
+
controls: {
|
|
43
|
+
include: never[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=AlertDialog.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.stories.d.ts","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialog.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,QAAA,MAAM,IAAI,2DA4C0B,CAAC;AACrC,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,UAAU;WAAU,gBAAgB;;;;;;;;;CAIhD,CAAC;AAUF,eAAO,MAAM,QAAQ;WAAU,gBAAgB;;;;;;;;;;CAW9C,CAAC;AAWF,eAAO,MAAM,WAAW;WAAU,gBAAgB;;;;;;;;;CAWjD,CAAC;AAWF,eAAO,MAAM,WAAW;WAAU,gBAAgB;;;;;;CAOjD,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { AlertDialog as n } from "./AlertDialog.js";
|
|
3
|
+
import { Button as l } from "../Button/Button.js";
|
|
4
|
+
import "../Button/buttonVariants.js";
|
|
5
|
+
const c = (e) => /* @__PURE__ */ t(n, { ...e }), r = ["confirm", "alert", "destructive"], b = {
|
|
6
|
+
title: "AlertDialog",
|
|
7
|
+
component: n,
|
|
8
|
+
render: c,
|
|
9
|
+
argTypes: {
|
|
10
|
+
open: {
|
|
11
|
+
control: {
|
|
12
|
+
type: "boolean"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
variant: {
|
|
16
|
+
name: "variant",
|
|
17
|
+
description: "ButtonIcon variant",
|
|
18
|
+
options: r,
|
|
19
|
+
control: {
|
|
20
|
+
type: "inline-radio"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
cancelLabel: {
|
|
24
|
+
control: {
|
|
25
|
+
type: "text"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
actionLabel: {
|
|
29
|
+
control: {
|
|
30
|
+
type: "text"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
title: {
|
|
34
|
+
control: {
|
|
35
|
+
type: "text"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
description: {
|
|
39
|
+
control: {
|
|
40
|
+
type: "text"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
args: {
|
|
45
|
+
variant: "alert",
|
|
46
|
+
cancelLabel: "Cancel",
|
|
47
|
+
actionLabel: "Action"
|
|
48
|
+
}
|
|
49
|
+
}, s = (e) => /* @__PURE__ */ t(
|
|
50
|
+
n,
|
|
51
|
+
{
|
|
52
|
+
...e
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
s.args = {
|
|
56
|
+
trigger: "Trigger text or ReactNode",
|
|
57
|
+
variant: "confirm",
|
|
58
|
+
title: "Dialog title...",
|
|
59
|
+
description: "Description text...",
|
|
60
|
+
cancelLabel: "Cancel label",
|
|
61
|
+
actionLabel: "Action label"
|
|
62
|
+
};
|
|
63
|
+
const i = (e) => /* @__PURE__ */ t("div", { className: "flex gap-3", children: r.map((o) => /* @__PURE__ */ t(
|
|
64
|
+
n,
|
|
65
|
+
{
|
|
66
|
+
trigger: o,
|
|
67
|
+
...e,
|
|
68
|
+
variant: o
|
|
69
|
+
},
|
|
70
|
+
o
|
|
71
|
+
)) });
|
|
72
|
+
i.parameters = {
|
|
73
|
+
controls: {
|
|
74
|
+
include: ["title", "description", "cancelLabel", "actionLabel"]
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
i.args = {
|
|
78
|
+
title: "Dialog title",
|
|
79
|
+
description: "Description text..."
|
|
80
|
+
};
|
|
81
|
+
const a = (e) => /* @__PURE__ */ t(
|
|
82
|
+
n,
|
|
83
|
+
{
|
|
84
|
+
onOpenChange: (o) => console.log(o),
|
|
85
|
+
trigger: /* @__PURE__ */ t(l, { variant: "outline", children: "Control Trigger" }),
|
|
86
|
+
header: /* @__PURE__ */ t("div", { children: "Custom Header" }),
|
|
87
|
+
footer: [
|
|
88
|
+
/* @__PURE__ */ t(l, { variant: "outline", onClick: console.log, children: "On cancel" }, "cancel"),
|
|
89
|
+
/* @__PURE__ */ t(l, { variant: "outline", onClick: console.log, children: "On Action" }, "action")
|
|
90
|
+
],
|
|
91
|
+
...e
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
a.parameters = {
|
|
95
|
+
controls: {
|
|
96
|
+
include: ["open"]
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
a.args = {
|
|
100
|
+
open: !1
|
|
101
|
+
};
|
|
102
|
+
const p = (e) => /* @__PURE__ */ t(
|
|
103
|
+
n,
|
|
104
|
+
{
|
|
105
|
+
trigger: /* @__PURE__ */ t(l, { variant: "outline", children: "Full Content Trigger" }),
|
|
106
|
+
...e,
|
|
107
|
+
children: "Full Content..."
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
p.parameters = {
|
|
111
|
+
controls: {
|
|
112
|
+
include: []
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
export {
|
|
116
|
+
p as FullContent,
|
|
117
|
+
a as FullControl,
|
|
118
|
+
s as Playground,
|
|
119
|
+
i as Variants,
|
|
120
|
+
b as default
|
|
121
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode, MouseEvent } from 'react';
|
|
2
|
+
import { AlertDialogTrigger, AlertDialogTitle, AlertDialogRoot, AlertDialogDescription, AlertDialogHeader, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, AlertDialogContent } from './AlertDialogRoot';
|
|
3
|
+
export type AlertDialogRootProps = ComponentPropsWithoutRef<typeof AlertDialogRoot>;
|
|
4
|
+
export type AlertDialogTriggerProps = ComponentPropsWithoutRef<typeof AlertDialogTrigger>;
|
|
5
|
+
export type AlertDialogContentProps = ComponentPropsWithoutRef<typeof AlertDialogContent>;
|
|
6
|
+
export type AlertDialogHeaderProps = ComponentPropsWithoutRef<typeof AlertDialogHeader>;
|
|
7
|
+
export type AlertDialogTitleProps = ComponentPropsWithoutRef<typeof AlertDialogTitle>;
|
|
8
|
+
export type AlertDialogDescriptionProps = ComponentPropsWithoutRef<typeof AlertDialogDescription>;
|
|
9
|
+
export type AlertDialogFooterProps = ComponentPropsWithoutRef<typeof AlertDialogFooter>;
|
|
10
|
+
export type AlertDialogCancelProps = ComponentPropsWithoutRef<typeof AlertDialogCancel>;
|
|
11
|
+
export type AlertDialogActionProps = ComponentPropsWithoutRef<typeof AlertDialogAction>;
|
|
12
|
+
export interface AlertDialogProps extends Partial<AlertDialogRootProps> {
|
|
13
|
+
/** Alert Dialog Type. */
|
|
14
|
+
variant?: 'confirm' | 'alert' | 'destructive';
|
|
15
|
+
/** CancelButton label. */
|
|
16
|
+
cancelLabel?: ReactNode;
|
|
17
|
+
/** ActionButton label. */
|
|
18
|
+
actionLabel?: ReactNode;
|
|
19
|
+
/** CancelButton onClick event. */
|
|
20
|
+
onCancel?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
21
|
+
/** ActionButton onClick event. */
|
|
22
|
+
onConfirm?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
23
|
+
/** The trigger to open alert dialog. */
|
|
24
|
+
trigger?: ReactNode;
|
|
25
|
+
/** Alert Dialog Header. */
|
|
26
|
+
header?: ReactNode;
|
|
27
|
+
/** Alert Dialog Header Title. */
|
|
28
|
+
title?: ReactNode;
|
|
29
|
+
/** Alert Dialog Header Description. */
|
|
30
|
+
description?: ReactNode;
|
|
31
|
+
/** Alert Dialog Footer. */
|
|
32
|
+
footer?: ReactNode;
|
|
33
|
+
/** Alert Dialog Slots props. */
|
|
34
|
+
slotProps?: {
|
|
35
|
+
/** Alert Dialog Slot props for AlertDialogTrigger. */
|
|
36
|
+
trigger?: AlertDialogTriggerProps;
|
|
37
|
+
/** Alert Dialog Slot props for AlertDialogContentProps. */
|
|
38
|
+
content?: AlertDialogContentProps;
|
|
39
|
+
/** Alert Dialog Slot props for AlertDialogTrigger. */
|
|
40
|
+
header?: AlertDialogHeaderProps;
|
|
41
|
+
/** Alert Dialog Slot props for AlertDialogFooter. */
|
|
42
|
+
footer?: AlertDialogFooterProps;
|
|
43
|
+
/** Alert Dialog Slot props for AlertDialogTitle. */
|
|
44
|
+
title?: AlertDialogTitleProps;
|
|
45
|
+
/** Alert Dialog Slot props for AlertDialogDescriptionProps. */
|
|
46
|
+
description?: AlertDialogDescriptionProps;
|
|
47
|
+
/** Alert Dialog Slot props for AlertDialogCancelProps. */
|
|
48
|
+
cancelButton?: AlertDialogCancelProps;
|
|
49
|
+
/** Alert Dialog Slot props for AlertDialogActionProps. */
|
|
50
|
+
actionButton?: AlertDialogActionProps;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=AlertDialog.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.types.d.ts","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialog.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,OAAO,eAAe,CAAC,CAAA;AACnF,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACzF,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEzF,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,CAAA;AACvF,MAAM,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACrF,MAAM,MAAM,2BAA2B,GAAG,wBAAwB,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEjG,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,CAAA;AACvF,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,CAAA;AACvF,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEvF,MAAM,WAAW,gBAAiB,SAAQ,OAAO,CAAC,oBAAoB,CAAC;IACrE,yBAAyB;IACzB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;IAC9C,0BAA0B;IAC1B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC1D,kCAAkC;IAClC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC3D,wCAAwC;IACxC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iCAAiC;IACjC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,gCAAgC;IAChC,SAAS,CAAC,EAAE;QACV,sDAAsD;QACtD,OAAO,CAAC,EAAE,uBAAuB,CAAC;QAClC,2DAA2D;QAC3D,OAAO,CAAC,EAAE,uBAAuB,CAAC;QAClC,sDAAsD;QACtD,MAAM,CAAC,EAAE,sBAAsB,CAAC;QAChC,qDAAqD;QACrD,MAAM,CAAC,EAAE,sBAAsB,CAAC;QAChC,oDAAoD;QACpD,KAAK,CAAC,EAAE,qBAAqB,CAAC;QAC9B,+DAA+D;QAC/D,WAAW,CAAC,EAAE,2BAA2B,CAAC;QAC1C,0DAA0D;QAC1D,YAAY,CAAC,EAAE,sBAAsB,CAAC;QACtC,0DAA0D;QAC1D,YAAY,CAAC,EAAE,sBAAsB,CAAC;KACvC,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
|
+
declare const AlertDialogRoot: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
5
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
7
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const AlertDialogHeader: {
|
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const AlertDialogFooter: {
|
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
export { AlertDialogRoot, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
22
|
+
//# sourceMappingURL=AlertDialogRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialogRoot.d.ts","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialogRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAGrE,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAC;AAExD,QAAA,MAAM,eAAe,iDAA4B,CAAC;AAElD,QAAA,MAAM,kBAAkB,wHAA+B,CAAA;AAEvD,QAAA,MAAM,iBAAiB,uDAA8B,CAAA;AAErD,QAAA,MAAM,kBAAkB,wKAYtB,CAAA;AAGF,QAAA,MAAM,kBAAkB,wKAetB,CAAA;AAGF,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,gBAAgB,8KASpB,CAAA;AAGF,QAAA,MAAM,sBAAsB,wLAS1B,CAAA;AAIF,QAAA,MAAM,iBAAiB,2LASrB,CAAA;AAGF,QAAA,MAAM,iBAAiB,2LAarB,CAAA;AAGF,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
|