@oneplatformdev/ui 0.0.1-beta.99 → 0.1.0-5
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/LICENSE +21 -0
- package/README.md +3 -29
- package/{Button → dist/Button}/Button.d.ts +1 -0
- package/dist/Button/Button.d.ts.map +1 -0
- package/{Button/Button.mjs → dist/Button/Button.js} +8 -8
- package/dist/Button/Button.stories.d.ts +8 -0
- package/dist/Button/Button.stories.d.ts.map +1 -0
- package/dist/Button/Button.stories.js +20 -0
- package/{Button → dist/Button}/Button.types.d.ts +3 -2
- package/dist/Button/Button.types.d.ts.map +1 -0
- package/dist/Button/Button.types.js +1 -0
- package/dist/Button/buttonVariants.d.ts +5 -0
- package/dist/Button/buttonVariants.d.ts.map +1 -0
- package/dist/Button/buttonVariants.js +35 -0
- package/{Button → dist/Button}/index.d.ts +1 -0
- package/dist/Button/index.d.ts.map +1 -0
- package/dist/Button/index.js +7 -0
- package/{ButtonIcon → dist/ButtonIcon}/ButtonIcon.d.ts +1 -0
- package/dist/ButtonIcon/ButtonIcon.d.ts.map +1 -0
- package/dist/ButtonIcon/ButtonIcon.js +29 -0
- package/dist/ButtonIcon/ButtonIcon.stories.d.ts +37 -0
- package/dist/ButtonIcon/ButtonIcon.stories.d.ts.map +1 -0
- package/dist/ButtonIcon/ButtonIcon.stories.js +126 -0
- package/{ButtonIcon → dist/ButtonIcon}/ButtonIcon.types.d.ts +3 -2
- package/dist/ButtonIcon/ButtonIcon.types.d.ts.map +1 -0
- package/dist/ButtonIcon/ButtonIcon.types.js +1 -0
- package/dist/ButtonIcon/buttonIconVariants.d.ts +8 -0
- package/dist/ButtonIcon/buttonIconVariants.d.ts.map +1 -0
- package/{ButtonIcon/buttonIconVariants.mjs → dist/ButtonIcon/buttonIconVariants.js} +3 -3
- package/{ButtonIcon → dist/ButtonIcon}/index.d.ts +1 -0
- package/dist/ButtonIcon/index.d.ts.map +1 -0
- package/dist/ButtonIcon/index.js +7 -0
- package/dist/CHANGELOG.md +17 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +7 -0
- package/{Tooltip → dist/Tooltip}/Tooltip.d.ts +2 -2
- package/dist/Tooltip/Tooltip.d.ts.map +1 -0
- package/{Tooltip/Tooltip.mjs → dist/Tooltip/Tooltip.js} +1 -1
- package/{Tooltip → dist/Tooltip}/Tooltip.types.d.ts +2 -2
- package/dist/Tooltip/Tooltip.types.d.ts.map +1 -0
- package/dist/Tooltip/Tooltip.types.js +1 -0
- package/{Tooltip → dist/Tooltip}/TooltipRoot.d.ts +1 -0
- package/dist/Tooltip/TooltipRoot.d.ts.map +1 -0
- package/{Tooltip → dist/Tooltip}/index.d.ts +1 -0
- package/dist/Tooltip/index.d.ts.map +1 -0
- package/{Tooltip/index.mjs → dist/Tooltip/index.js} +2 -2
- package/dist/global.css +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/package.json +76 -0
- package/package.json +45 -72
- package/Accordion/Accordion.d.ts +0 -9
- package/Accordion/Accordion.mjs +0 -49
- package/Accordion/index.d.ts +0 -1
- package/Accordion/index.mjs +0 -7
- package/Accordion/package.json +0 -7
- package/Alert/Alert.d.ts +0 -7
- package/Alert/Alert.mjs +0 -37
- package/Alert/alertVariants.d.ts +0 -4
- package/Alert/alertVariants.mjs +0 -19
- package/Alert/index.d.ts +0 -1
- package/Alert/index.mjs +0 -6
- package/Alert/package.json +0 -7
- package/AlertDialog/AlertDialog.d.ts +0 -65
- package/AlertDialog/AlertDialog.mjs +0 -97
- package/AlertDialog/AlertDialog.types.d.ts +0 -53
- package/AlertDialog/AlertDialogRoot.d.ts +0 -21
- package/AlertDialog/AlertDialogRoot.mjs +0 -114
- package/AlertDialog/index.d.ts +0 -3
- package/AlertDialog/index.mjs +0 -16
- package/AlertDialog/package.json +0 -7
- package/AreaChart/AreaChart.d.ts +0 -4
- package/AreaChart/AreaChart.mjs +0 -27
- package/AreaChart/AreaChart.types.d.ts +0 -15
- package/AreaChart/index.d.ts +0 -2
- package/AreaChart/index.mjs +0 -4
- package/AreaChart/package.json +0 -7
- package/Aside/Aside.d.ts +0 -4
- package/Aside/Aside.mjs +0 -23
- package/Aside/Aside.types.d.ts +0 -18
- package/Aside/AsideSidebar.d.ts +0 -3
- package/Aside/AsideSidebar.mjs +0 -37
- package/Aside/index.d.ts +0 -3
- package/Aside/index.mjs +0 -7
- package/Aside/package.json +0 -7
- package/AspectRatio/AspectRatio.d.ts +0 -2
- package/AspectRatio/AspectRatio.mjs +0 -5
- package/AspectRatio/index.d.ts +0 -1
- package/AspectRatio/index.mjs +0 -5
- package/AspectRatio/package.json +0 -7
- package/Avatar/Avatar.d.ts +0 -5
- package/Avatar/Avatar.mjs +0 -42
- package/Avatar/index.d.ts +0 -1
- package/Avatar/index.mjs +0 -6
- package/Avatar/package.json +0 -7
- package/Badge/Badge.d.ts +0 -5
- package/Badge/Badge.mjs +0 -10
- package/Badge/Badge.types.d.ts +0 -5
- package/Badge/badgeVariants.d.ts +0 -3
- package/Badge/badgeVariants.mjs +0 -20
- package/Badge/index.d.ts +0 -3
- package/Badge/index.mjs +0 -6
- package/Badge/package.json +0 -7
- package/Breadcrumb/Breadcrumb.d.ts +0 -19
- package/Breadcrumb/Breadcrumb.mjs +0 -90
- package/Breadcrumb/index.d.ts +0 -1
- package/Breadcrumb/index.mjs +0 -10
- package/Breadcrumb/package.json +0 -7
- package/Button/buttonVariants.d.ts +0 -4
- package/Button/buttonVariants.mjs +0 -29
- package/Button/index.mjs +0 -7
- package/Button/package.json +0 -7
- package/ButtonIcon/ButtonIcon.mjs +0 -29
- package/ButtonIcon/buttonIconVariants.d.ts +0 -7
- package/ButtonIcon/index.mjs +0 -7
- package/ButtonIcon/package.json +0 -7
- package/Calendar/Calendar.d.ts +0 -8
- package/Calendar/Calendar.mjs +0 -64
- package/Calendar/index.d.ts +0 -1
- package/Calendar/index.mjs +0 -4
- package/Calendar/package.json +0 -7
- package/Card/Card.d.ts +0 -8
- package/Card/Card.mjs +0 -61
- package/Card/index.d.ts +0 -1
- package/Card/index.mjs +0 -9
- package/Card/package.json +0 -7
- package/Carousel/Carousel.d.ts +0 -18
- package/Carousel/Carousel.mjs +0 -168
- package/Carousel/index.d.ts +0 -1
- package/Carousel/index.mjs +0 -8
- package/Carousel/package.json +0 -7
- package/Chart/Chart.d.ts +0 -62
- package/Chart/Chart.mjs +0 -210
- package/Chart/index.d.ts +0 -1
- package/Chart/index.mjs +0 -9
- package/Chart/package.json +0 -7
- package/Checkbox/Checkbox.d.ts +0 -5
- package/Checkbox/Checkbox.mjs +0 -54
- package/Checkbox/Checkbox.types.d.ts +0 -10
- package/Checkbox/index.d.ts +0 -2
- package/Checkbox/index.mjs +0 -5
- package/Checkbox/package.json +0 -7
- package/Collapsible/Collapsible.d.ts +0 -5
- package/Collapsible/Collapsible.mjs +0 -7
- package/Collapsible/index.d.ts +0 -1
- package/Collapsible/index.mjs +0 -6
- package/Collapsible/package.json +0 -7
- package/Combobox/Combobox.d.ts +0 -4
- package/Combobox/Combobox.mjs +0 -15
- package/Combobox/Combobox.types.d.ts +0 -38
- package/Combobox/ComboboxOptionItem.d.ts +0 -5
- package/Combobox/ComboboxOptionItem.mjs +0 -67
- package/Combobox/ComboboxOptions.d.ts +0 -4
- package/Combobox/ComboboxOptions.mjs +0 -12
- package/Combobox/index.d.ts +0 -2
- package/Combobox/index.mjs +0 -4
- package/Combobox/package.json +0 -7
- package/Combobox-Dfbnw0oF.js +0 -303
- package/Command/Command.d.ts +0 -80
- package/Command/Command.mjs +0 -116
- package/Command/index.d.ts +0 -1
- package/Command/index.mjs +0 -12
- package/Command/package.json +0 -7
- package/DataTable/DataTable.d.ts +0 -11
- package/DataTable/DataTable.mjs +0 -64
- package/DataTable/DataTable.types.d.ts +0 -11
- package/DataTable/DataTableColumnFilter.d.ts +0 -4
- package/DataTable/DataTableColumnFilter.mjs +0 -31
- package/DataTable/index.d.ts +0 -2
- package/DataTable/index.mjs +0 -4
- package/DataTable/package.json +0 -7
- package/DataTable/useDataTable.d.ts +0 -3
- package/DataTable/useDataTable.mjs +0 -30
- package/DatePicker/DatePicker.d.ts +0 -3
- package/DatePicker/DatePicker.mjs +0 -699
- package/DatePicker/DatePicker.types.d.ts +0 -5
- package/DatePicker/index.d.ts +0 -3
- package/DatePicker/index.mjs +0 -5
- package/DatePicker/package.json +0 -7
- package/Dialog/Dialog.d.ts +0 -21
- package/Dialog/Dialog.mjs +0 -117
- package/Dialog/index.d.ts +0 -1
- package/Dialog/index.mjs +0 -13
- package/Dialog/package.json +0 -7
- package/Drawer/Drawer.d.ts +0 -22
- package/Drawer/Drawer.mjs +0 -98
- package/Drawer/index.d.ts +0 -1
- package/Drawer/index.mjs +0 -13
- package/Drawer/package.json +0 -7
- package/DropdownMenu/DropdownMenu.d.ts +0 -27
- package/DropdownMenu/DropdownMenu.mjs +0 -148
- package/DropdownMenu/index.d.ts +0 -1
- package/DropdownMenu/index.mjs +0 -18
- package/DropdownMenu/package.json +0 -7
- package/Dropzone/Dropzone.d.ts +0 -22
- package/Dropzone/Dropzone.mjs +0 -152
- package/Dropzone/Dropzone.types.d.ts +0 -42
- package/Dropzone/DropzoneFilePreview.d.ts +0 -4
- package/Dropzone/DropzoneFilePreview.mjs +0 -9
- package/Dropzone/DropzoneSinglePickPreview.d.ts +0 -10
- package/Dropzone/DropzoneSinglePickPreview.mjs +0 -41
- package/Dropzone/DropzoneUtils.d.ts +0 -5
- package/Dropzone/DropzoneUtils.mjs +0 -24
- package/Dropzone/index.d.ts +0 -2
- package/Dropzone/index.mjs +0 -7
- package/Dropzone/package.json +0 -7
- package/DropzoneFilePreview-Dhtv8F4u.js +0 -67
- package/Form/Form.d.ts +0 -23
- package/Form/Form.mjs +0 -98
- package/Form/FormRenderControl.d.ts +0 -4
- package/Form/FormRenderControl.mjs +0 -21
- package/Form/FormRenderControl.types.d.ts +0 -16
- package/Form/index.d.ts +0 -3
- package/Form/index.mjs +0 -13
- package/Form/package.json +0 -7
- package/FormCheckbox/FormCheckbox.d.ts +0 -4
- package/FormCheckbox/FormCheckbox.mjs +0 -30
- package/FormCheckbox/FormCheckbox.types.d.ts +0 -7
- package/FormCheckbox/index.d.ts +0 -2
- package/FormCheckbox/index.mjs +0 -4
- package/FormCheckbox/package.json +0 -7
- package/FormCombobox/FormCombobox.d.ts +0 -4
- package/FormCombobox/FormCombobox.mjs +0 -26
- package/FormCombobox/FormCombobox.types.d.ts +0 -6
- package/FormCombobox/index.d.ts +0 -2
- package/FormCombobox/index.mjs +0 -4
- package/FormCombobox/package.json +0 -7
- package/FormDatePicker/FormDatePicker.d.ts +0 -4
- package/FormDatePicker/FormDatePicker.mjs +0 -29
- package/FormDatePicker/FormDatePicker.types.d.ts +0 -6
- package/FormDatePicker/index.d.ts +0 -3
- package/FormDatePicker/index.mjs +0 -5
- package/FormDatePicker/package.json +0 -7
- package/FormDropzone/FormDropzone.d.ts +0 -4
- package/FormDropzone/FormDropzone.mjs +0 -19
- package/FormDropzone/FormDropzone.types.d.ts +0 -6
- package/FormDropzone/index.d.ts +0 -2
- package/FormDropzone/index.mjs +0 -4
- package/FormDropzone/package.json +0 -7
- package/FormInput/FormInput.d.ts +0 -7
- package/FormInput/FormInput.mjs +0 -40
- package/FormInput/FormInput.types.d.ts +0 -6
- package/FormInput/index.d.ts +0 -2
- package/FormInput/index.mjs +0 -4
- package/FormInput/package.json +0 -7
- package/FormRadio/FormRadio.d.ts +0 -4
- package/FormRadio/FormRadio.mjs +0 -40
- package/FormRadio/FormRadio.types.d.ts +0 -6
- package/FormRadio/index.d.ts +0 -2
- package/FormRadio/index.mjs +0 -4
- package/FormRadio/package.json +0 -7
- package/FormSelect/FormSelect.d.ts +0 -4
- package/FormSelect/FormSelect.mjs +0 -40
- package/FormSelect/FormSelect.types.d.ts +0 -6
- package/FormSelect/index.d.ts +0 -2
- package/FormSelect/index.mjs +0 -4
- package/FormSelect/package.json +0 -7
- package/FormTextarea/FormTextarea.d.ts +0 -4
- package/FormTextarea/FormTextarea.mjs +0 -27
- package/FormTextarea/FormTextarea.types.d.ts +0 -6
- package/FormTextarea/index.d.ts +0 -2
- package/FormTextarea/index.mjs +0 -4
- package/FormTextarea/package.json +0 -7
- package/Header/Header.d.ts +0 -4
- package/Header/Header.mjs +0 -26
- package/Header/Header.types.d.ts +0 -3
- package/Header/index.d.ts +0 -2
- package/Header/index.mjs +0 -5
- package/Header/package.json +0 -7
- package/HoverCard/HoverCard.d.ts +0 -6
- package/HoverCard/HoverCard.mjs +0 -23
- package/HoverCard/index.d.ts +0 -1
- package/HoverCard/index.mjs +0 -6
- package/HoverCard/package.json +0 -7
- package/Input/Input.d.ts +0 -6
- package/Input/Input.mjs +0 -73
- package/Input/Input.types.d.ts +0 -17
- package/Input/index.d.ts +0 -3
- package/Input/index.mjs +0 -7
- package/Input/inputVariants.d.ts +0 -3
- package/Input/inputVariants.mjs +0 -24
- package/Input/package.json +0 -7
- package/InputOTP/InputOTP.d.ts +0 -34
- package/InputOTP/InputOTP.mjs +0 -48
- package/InputOTP/index.d.ts +0 -1
- package/InputOTP/index.mjs +0 -7
- package/InputOTP/package.json +0 -7
- package/Label/Label.d.ts +0 -5
- package/Label/Label.mjs +0 -17
- package/Label/index.d.ts +0 -2
- package/Label/index.mjs +0 -6
- package/Label/labelVariants.d.ts +0 -1
- package/Label/labelVariants.mjs +0 -10
- package/Label/package.json +0 -7
- package/LazyLoader/LazyLoader.d.ts +0 -20
- package/LazyLoader/LazyLoader.mjs +0 -8
- package/LazyLoader/index.d.ts +0 -1
- package/LazyLoader/index.mjs +0 -5
- package/LazyLoader/package.json +0 -7
- package/LoadingMask/LoadingMask.d.ts +0 -4
- package/LoadingMask/LoadingMask.mjs +0 -21
- package/LoadingMask/LoadingMask.types.d.ts +0 -5
- package/LoadingMask/RenderLoadingMask.d.ts +0 -3
- package/LoadingMask/RenderLoadingMask.mjs +0 -108
- package/LoadingMask/index.d.ts +0 -3
- package/LoadingMask/index.mjs +0 -6
- package/LoadingMask/package.json +0 -7
- package/LoadingProgress/LoadingProgress.d.ts +0 -4
- package/LoadingProgress/LoadingProgress.mjs +0 -37
- package/LoadingProgress/LoadingProgress.types.d.ts +0 -8
- package/LoadingProgress/index.d.ts +0 -3
- package/LoadingProgress/index.mjs +0 -6
- package/LoadingProgress/loadingProgressVariants.d.ts +0 -4
- package/LoadingProgress/loadingProgressVariants.mjs +0 -24
- package/LoadingProgress/package.json +0 -7
- package/Menubar/Menubar.d.ts +0 -28
- package/Menubar/Menubar.mjs +0 -175
- package/Menubar/index.d.ts +0 -1
- package/Menubar/index.mjs +0 -19
- package/Menubar/package.json +0 -7
- package/NavigationMenu/NavigationMenu.d.ts +0 -11
- package/NavigationMenu/NavigationMenu.mjs +0 -101
- package/NavigationMenu/index.d.ts +0 -2
- package/NavigationMenu/index.mjs +0 -13
- package/NavigationMenu/navigationMenuVariants.d.ts +0 -1
- package/NavigationMenu/navigationMenuVariants.mjs +0 -7
- package/NavigationMenu/package.json +0 -7
- package/Pagination/Pagination.d.ts +0 -28
- package/Pagination/Pagination.mjs +0 -106
- package/Pagination/index.d.ts +0 -1
- package/Pagination/index.mjs +0 -10
- package/Pagination/package.json +0 -7
- package/Popover/Popover.d.ts +0 -7
- package/Popover/Popover.mjs +0 -28
- package/Popover/index.d.ts +0 -1
- package/Popover/index.mjs +0 -7
- package/Popover/package.json +0 -7
- package/Progress/Progress.d.ts +0 -4
- package/Progress/Progress.mjs +0 -26
- package/Progress/index.d.ts +0 -1
- package/Progress/index.mjs +0 -4
- package/Progress/package.json +0 -7
- package/Radio/Radio.d.ts +0 -4
- package/Radio/Radio.mjs +0 -12
- package/Radio/Radio.types.d.ts +0 -11
- package/Radio/index.d.ts +0 -2
- package/Radio/index.mjs +0 -4
- package/Radio/package.json +0 -7
- package/RadioGroup/RadioGroup.d.ts +0 -11
- package/RadioGroup/RadioGroup.mjs +0 -49
- package/RadioGroup/index.d.ts +0 -1
- package/RadioGroup/index.mjs +0 -6
- package/RadioGroup/package.json +0 -7
- package/Resizable/Resizable.d.ts +0 -23
- package/Resizable/Resizable.mjs +0 -36
- package/Resizable/index.d.ts +0 -1
- package/Resizable/index.mjs +0 -6
- package/Resizable/package.json +0 -7
- package/ScrollArea/ScrollArea.d.ts +0 -5
- package/ScrollArea/ScrollArea.mjs +0 -51
- package/ScrollArea/index.d.ts +0 -1
- package/ScrollArea/index.mjs +0 -5
- package/ScrollArea/package.json +0 -7
- package/Search/Search.d.ts +0 -4
- package/Search/Search.mjs +0 -30
- package/Search/Search.types.d.ts +0 -6
- package/Search/index.d.ts +0 -3
- package/Search/index.mjs +0 -5
- package/Search/package.json +0 -7
- package/Select/Select.d.ts +0 -3
- package/Select/Select.mjs +0 -103
- package/Select/Select.types.d.ts +0 -37
- package/Select/SelectRoot.d.ts +0 -13
- package/Select/SelectRoot.mjs +0 -126
- package/Select/index.d.ts +0 -3
- package/Select/index.mjs +0 -15
- package/Select/package.json +0 -7
- package/Separator/Separator.d.ts +0 -4
- package/Separator/Separator.mjs +0 -24
- package/Separator/index.d.ts +0 -1
- package/Separator/index.mjs +0 -4
- package/Separator/package.json +0 -7
- package/Sheet/Sheet.d.ts +0 -28
- package/Sheet/Sheet.mjs +0 -110
- package/Sheet/index.d.ts +0 -1
- package/Sheet/index.mjs +0 -13
- package/Sheet/package.json +0 -7
- package/Sidebar/Sidebar.d.ts +0 -66
- package/Sidebar/Sidebar.mjs +0 -543
- package/Sidebar/index.d.ts +0 -1
- package/Sidebar/index.mjs +0 -27
- package/Sidebar/package.json +0 -7
- package/Skeleton/Skeleton.d.ts +0 -4
- package/Skeleton/Skeleton.mjs +0 -17
- package/Skeleton/index.d.ts +0 -1
- package/Skeleton/index.mjs +0 -4
- package/Skeleton/package.json +0 -7
- package/Slider/Slider.d.ts +0 -4
- package/Slider/Slider.mjs +0 -23
- package/Slider/index.d.ts +0 -1
- package/Slider/index.mjs +0 -4
- package/Slider/package.json +0 -7
- package/Sonner/Sonner.d.ts +0 -5
- package/Sonner/Sonner.mjs +0 -25
- package/Sonner/index.d.ts +0 -1
- package/Sonner/index.mjs +0 -4
- package/Sonner/package.json +0 -7
- package/Switch/Switch.d.ts +0 -4
- package/Switch/Switch.mjs +0 -27
- package/Switch/index.d.ts +0 -1
- package/Switch/index.mjs +0 -4
- package/Switch/package.json +0 -7
- package/Table/Table.d.ts +0 -10
- package/Table/Table.mjs +0 -90
- package/Table/index.d.ts +0 -1
- package/Table/index.mjs +0 -11
- package/Table/package.json +0 -7
- package/TablePagination/TablePagination.d.ts +0 -16
- package/TablePagination/TablePagination.mjs +0 -74
- package/TablePagination/index.d.ts +0 -1
- package/TablePagination/index.mjs +0 -4
- package/TablePagination/package.json +0 -7
- package/Tabs/Tabs.d.ts +0 -5
- package/Tabs/Tabs.mjs +0 -23
- package/Tabs/Tabs.types.d.ts +0 -12
- package/Tabs/TabsRoot.d.ts +0 -7
- package/Tabs/TabsRoot.mjs +0 -46
- package/Tabs/index.d.ts +0 -2
- package/Tabs/index.mjs +0 -10
- package/Tabs/package.json +0 -7
- package/Textarea/Textarea.d.ts +0 -4
- package/Textarea/Textarea.mjs +0 -75
- package/Textarea/Textarea.types.d.ts +0 -18
- package/Textarea/index.d.ts +0 -2
- package/Textarea/index.mjs +0 -4
- package/Textarea/package.json +0 -7
- package/Textarea/useAutosizeTextArea.d.ts +0 -3
- package/Textarea/useAutosizeTextArea.mjs +0 -20
- package/Theme/ThemeModeToggle.d.ts +0 -8
- package/Theme/ThemeModeToggle.mjs +0 -48
- package/Theme/ThemeProvider.d.ts +0 -4
- package/Theme/ThemeProvider.mjs +0 -27
- package/Theme/index.d.ts +0 -2
- package/Theme/index.mjs +0 -6
- package/Theme/package.json +0 -7
- package/Toast/Toast.d.ts +0 -13
- package/Toast/Toast.mjs +0 -80
- package/Toast/Toast.types.d.ts +0 -34
- package/Toast/index.d.ts +0 -3
- package/Toast/index.mjs +0 -15
- package/Toast/package.json +0 -7
- package/Toast/toast.constants.d.ts +0 -6
- package/Toast/toast.constants.mjs +0 -9
- package/Toast/toastVariants.d.ts +0 -3
- package/Toast/toastVariants.mjs +0 -21
- package/Toast/useToast.d.ts +0 -16
- package/Toast/useToast.mjs +0 -101
- package/Toaster/Toaster.d.ts +0 -1
- package/Toaster/Toaster.mjs +0 -22
- package/Toaster/index.d.ts +0 -1
- package/Toaster/index.mjs +0 -4
- package/Toaster/package.json +0 -7
- package/Toggle/Toggle.d.ts +0 -12
- package/Toggle/Toggle.mjs +0 -37
- package/Toggle/index.d.ts +0 -1
- package/Toggle/index.mjs +0 -5
- package/Toggle/package.json +0 -7
- package/ToggleGroup/ToggleGroup.d.ts +0 -12
- package/ToggleGroup/ToggleGroup.mjs +0 -41
- package/ToggleGroup/index.d.ts +0 -1
- package/ToggleGroup/index.mjs +0 -5
- package/ToggleGroup/package.json +0 -7
- package/Tooltip/package.json +0 -7
- package/index.css +0 -1
- package/index.d.ts +0 -68
- package/index.mjs +0 -367
- package/tailwind.config.mjs +0 -148
- /package/{Tooltip/TooltipRoot.mjs → dist/Tooltip/TooltipRoot.js} +0 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2025 Oleh Maksimenko
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
@@ -1,33 +1,7 @@
|
|
1
|
-
<!-- markdownlint-disable-next-line -->
|
2
|
-
<p align="center">
|
3
|
-
<a href="https://github.com/oneplatformdev/core-web/tree/test" rel="noopener" target="_blank"><img width="150" height="133" src="https://github.com/oneplatformdev/core-web/blob/test/public/one_platform_demo_logo.png" alt="OnePlatform Dev"></a>
|
4
|
-
</p>
|
5
|
-
|
6
1
|
# @oneplatformdev/ui
|
7
2
|
|
8
|
-
|
9
|
-
Install the package in your project directory with:
|
10
|
-
|
11
|
-
<!-- #default-branch-switch -->
|
12
|
-
npm:
|
13
|
-
```bush
|
14
|
-
npm install @oneplatformdev/ui lucide-react
|
15
|
-
```
|
16
|
-
yarn:
|
17
|
-
```bush
|
18
|
-
yarn add @oneplatformdev/ui lucide-react
|
19
|
-
```
|
20
|
-
|
21
|
-
## Documentation (currently unavailable)
|
22
|
-
|
23
|
-
## Examples (currently unavailable)
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
24
4
|
|
25
|
-
##
|
26
|
-
This project is licensed under the terms of the
|
27
|
-
[MIT license](./LICENSE).
|
5
|
+
## Running unit tests
|
28
6
|
|
29
|
-
|
30
|
-
```tsx
|
31
|
-
import '@oneplatformdev/ui/index.css';
|
32
|
-
import { Button } from '@oneplatformdev/ui';
|
33
|
-
```
|
7
|
+
Run `nx test @oneplatformdev/ui` to execute the unit tests via [Vitest](https://vitest.dev/).
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,eAAO,MAAM,MAAM,uFAmBlB,CAAA;AAGD,eAAe,MAAM,CAAC"}
|
@@ -2,24 +2,24 @@ import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
3
3
|
import { Slot as u } from "@radix-ui/react-slot";
|
4
4
|
import { cn as c } from "@oneplatformdev/utils";
|
5
|
-
import { buttonVariants as l } from "./buttonVariants.
|
6
|
-
import "../Tooltip/TooltipRoot.
|
7
|
-
import { Tooltip as d } from "../Tooltip/Tooltip.
|
5
|
+
import { buttonVariants as l } from "./buttonVariants.js";
|
6
|
+
import "../Tooltip/TooltipRoot.js";
|
7
|
+
import { Tooltip as d } from "../Tooltip/Tooltip.js";
|
8
8
|
const y = i.forwardRef(
|
9
|
-
({ disabled: o, className:
|
9
|
+
({ disabled: o, className: a, variant: e, size: p, asChild: n = !1, title: t = "", tooltip: r, ...s }, f) => /* @__PURE__ */ m(
|
10
10
|
d,
|
11
11
|
{
|
12
12
|
open: o || !t && !r ? !1 : void 0,
|
13
13
|
message: r || t,
|
14
14
|
delay: 300,
|
15
15
|
children: /* @__PURE__ */ m(
|
16
|
-
|
16
|
+
n ? u : "button",
|
17
17
|
{
|
18
18
|
type: "button",
|
19
|
-
ref:
|
19
|
+
ref: f,
|
20
20
|
disabled: o,
|
21
|
-
className: c(l({ variant:
|
22
|
-
...
|
21
|
+
className: c(l({ variant: e, size: p, className: a })),
|
22
|
+
...s
|
23
23
|
}
|
24
24
|
)
|
25
25
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
2
|
+
import { ButtonProps } from './Button.types';
|
3
|
+
import { default as React } from 'react';
|
4
|
+
declare const meta: Meta<React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>>;
|
5
|
+
export default meta;
|
6
|
+
type Story = StoryObj<typeof meta>;
|
7
|
+
export declare const Default: Story;
|
8
|
+
//# sourceMappingURL=Button.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../src/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,QAAA,MAAM,IAAI,6FASqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
import { Button as t } from "./Button.js";
|
3
|
+
const o = (e) => /* @__PURE__ */ a(t, { ...e }), n = {
|
4
|
+
title: "Button",
|
5
|
+
component: t,
|
6
|
+
render: o,
|
7
|
+
args: {
|
8
|
+
variant: "default",
|
9
|
+
size: "default",
|
10
|
+
disabled: !1
|
11
|
+
}
|
12
|
+
}, s = {
|
13
|
+
args: {
|
14
|
+
children: "Default"
|
15
|
+
}
|
16
|
+
};
|
17
|
+
export {
|
18
|
+
s as Default,
|
19
|
+
n as default
|
20
|
+
};
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
2
|
-
import { buttonVariants } from './buttonVariants';
|
3
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
+
import { buttonVariants } from './buttonVariants';
|
3
|
+
import { ReactNode } from 'react';
|
4
4
|
import * as React from "react";
|
5
5
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
6
6
|
asChild?: boolean;
|
7
7
|
tooltip?: ReactNode;
|
8
8
|
}
|
9
|
+
//# sourceMappingURL=Button.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../src/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const buttonVariants: (props?: ({
|
2
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
3
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
5
|
+
//# sourceMappingURL=buttonVariants.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../src/Button/buttonVariants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;8EAkC1B,CAAA"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
2
|
+
const r = e(
|
3
|
+
[
|
4
|
+
"inline-flex items-center justify-center gap-2",
|
5
|
+
"whitespace-nowrap rounded-lg text-sm font-medium",
|
6
|
+
"transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",
|
7
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
8
|
+
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
9
|
+
],
|
10
|
+
{
|
11
|
+
variants: {
|
12
|
+
variant: {
|
13
|
+
default: "bg-primary text-primary-foreground shadow-sm hover:opacity-[.8]",
|
14
|
+
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
|
15
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
16
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
17
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
18
|
+
link: "text-primary underline-offset-4 hover:underline"
|
19
|
+
},
|
20
|
+
size: {
|
21
|
+
default: "h-9 px-4 py-2",
|
22
|
+
sm: "h-8 rounded-md px-3 text-xs [&_svg]:size-4",
|
23
|
+
lg: "h-10 px-8 [&_svg]:size-5 px-3 py-2",
|
24
|
+
icon: "h-9 w-9 [&_svg]:size-5!"
|
25
|
+
}
|
26
|
+
},
|
27
|
+
defaultVariants: {
|
28
|
+
variant: "default",
|
29
|
+
size: "lg"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
);
|
33
|
+
export {
|
34
|
+
r as buttonVariants
|
35
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACrD,cAAc,kBAAkB,CAAC;AACjC,mBAAmB,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ButtonIcon.d.ts","sourceRoot":"","sources":["../../src/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAIrD,eAAO,MAAM,UAAU,2FAkBtB,CAAA"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
2
|
+
import * as f from "react";
|
3
|
+
import { cn as l } from "@oneplatformdev/utils";
|
4
|
+
import { buttonIconVariants as u } from "./buttonIconVariants.js";
|
5
|
+
import "../Tooltip/TooltipRoot.js";
|
6
|
+
import { Tooltip as d } from "../Tooltip/Tooltip.js";
|
7
|
+
const h = f.forwardRef(
|
8
|
+
({ disabled: o, className: m, variant: e, color: p, size: a, rounded: s, title: t = "", tooltip: r, ...i }, c) => /* @__PURE__ */ n(
|
9
|
+
d,
|
10
|
+
{
|
11
|
+
open: o || !t && !r ? !1 : void 0,
|
12
|
+
message: r || t,
|
13
|
+
delay: 300,
|
14
|
+
children: /* @__PURE__ */ n(
|
15
|
+
"button",
|
16
|
+
{
|
17
|
+
className: l(u({ variant: e, size: a, color: p, disabled: o, rounded: s, className: m })),
|
18
|
+
ref: c,
|
19
|
+
disabled: !!o,
|
20
|
+
...i
|
21
|
+
}
|
22
|
+
)
|
23
|
+
}
|
24
|
+
)
|
25
|
+
);
|
26
|
+
h.displayName = "Button";
|
27
|
+
export {
|
28
|
+
h as ButtonIcon
|
29
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { ButtonIconProps } from './ButtonIcon.types';
|
2
|
+
import { default as React } from 'react';
|
3
|
+
declare const meta: Meta<React.ForwardRefExoticComponent<ButtonIconProps & React.RefAttributes<HTMLButtonElement>>>;
|
4
|
+
export default meta;
|
5
|
+
export declare const Playground: {
|
6
|
+
({ rounded, ...args }: ButtonIconProps): import("react/jsx-runtime").JSX.Element;
|
7
|
+
args: {
|
8
|
+
onClick: {
|
9
|
+
action: (e: React.MouseEvent<HTMLButtonElement>) => React.MouseEvent<HTMLButtonElement, MouseEvent>;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
};
|
13
|
+
export declare const Variants: {
|
14
|
+
({ variant, ...args }: ButtonIconProps): import("react/jsx-runtime").JSX.Element;
|
15
|
+
parameters: {
|
16
|
+
controls: {
|
17
|
+
include: string[];
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
21
|
+
export declare const Colors: {
|
22
|
+
({ color, ...args }: ButtonIconProps): import("react/jsx-runtime").JSX.Element;
|
23
|
+
parameters: {
|
24
|
+
controls: {
|
25
|
+
include: string[];
|
26
|
+
};
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export declare const Disabled: {
|
30
|
+
({ variant, color, ...args }: ButtonIconProps): import("react/jsx-runtime").JSX.Element;
|
31
|
+
parameters: {
|
32
|
+
controls: {
|
33
|
+
include: never[];
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
//# sourceMappingURL=ButtonIcon.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ButtonIcon.stories.d.ts","sourceRoot":"","sources":["../../src/ButtonIcon/ButtonIcon.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,QAAA,MAAM,IAAI,iGAkDyB,CAAC;AACpC,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,UAAU;2BAA0B,eAAe;;;wBAqCvC,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC;;;CAF3D,CAAC;AAKF,eAAO,MAAM,QAAQ;2BAA0B,eAAe;;;;;;CAY7D,CAAC;AAQF,eAAO,MAAM,MAAM;yBAAwB,eAAe;;;;;;CAYzD,CAAC;AAQF,eAAO,MAAM,QAAQ;kCAAiC,eAAe;;;;;;CAsBpE,CAAC"}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
2
|
+
import { ButtonIcon as m } from "./ButtonIcon.js";
|
3
|
+
import { PencilLineIcon as x } from "lucide-react";
|
4
|
+
const s = ["contained", "outlined", "ghost", "link"], c = [
|
5
|
+
"primary",
|
6
|
+
"secondary",
|
7
|
+
"error",
|
8
|
+
"success",
|
9
|
+
"disabled"
|
10
|
+
], f = ["sm", "md", "lg"], l = (a) => /* @__PURE__ */ o(m, { ...a, children: /* @__PURE__ */ o(x, {}) }), z = {
|
11
|
+
title: "ButtonIcon",
|
12
|
+
component: m,
|
13
|
+
render: l,
|
14
|
+
argTypes: {
|
15
|
+
variant: {
|
16
|
+
name: "variant",
|
17
|
+
description: "ButtonIcon variant",
|
18
|
+
defaultValue: "contained",
|
19
|
+
options: s,
|
20
|
+
control: {
|
21
|
+
type: "inline-radio"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
color: {
|
25
|
+
options: c,
|
26
|
+
control: {
|
27
|
+
type: "inline-radio"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
size: {
|
31
|
+
options: f,
|
32
|
+
control: {
|
33
|
+
type: "inline-radio"
|
34
|
+
}
|
35
|
+
},
|
36
|
+
tooltip: {
|
37
|
+
control: {
|
38
|
+
type: "text"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
disabled: {
|
42
|
+
control: {
|
43
|
+
type: "boolean"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
rounded: {
|
47
|
+
control: {
|
48
|
+
type: "boolean"
|
49
|
+
}
|
50
|
+
}
|
51
|
+
},
|
52
|
+
args: {
|
53
|
+
variant: "contained",
|
54
|
+
color: "primary",
|
55
|
+
size: "md",
|
56
|
+
disabled: !1,
|
57
|
+
rounded: !1,
|
58
|
+
tooltip: "ButtonIcon tooltip"
|
59
|
+
}
|
60
|
+
}, u = ({ rounded: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-10", children: [
|
61
|
+
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { rounded: a, ...n }) }),
|
62
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: s.map((e) => /* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((t) => {
|
63
|
+
const i = `${e}-${t}`;
|
64
|
+
return /* @__PURE__ */ o("div", { className: "flex gap-2", children: f.map((r) => {
|
65
|
+
const p = `${i}-${r}`;
|
66
|
+
return /* @__PURE__ */ o(
|
67
|
+
l,
|
68
|
+
{
|
69
|
+
color: t,
|
70
|
+
size: r,
|
71
|
+
variant: e,
|
72
|
+
rounded: a,
|
73
|
+
tooltip: p
|
74
|
+
},
|
75
|
+
p
|
76
|
+
);
|
77
|
+
}) }, i);
|
78
|
+
}) }, e)) })
|
79
|
+
] });
|
80
|
+
u.args = {
|
81
|
+
onClick: { action: (a) => a }
|
82
|
+
};
|
83
|
+
const g = ({ variant: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-10", children: [
|
84
|
+
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { variant: a, ...n }) }),
|
85
|
+
/* @__PURE__ */ o("div", { className: "flex gap-2", children: s.map((e) => /* @__PURE__ */ o(l, { variant: e, tooltip: e }, e)) })
|
86
|
+
] });
|
87
|
+
g.parameters = {
|
88
|
+
controls: {
|
89
|
+
include: ["disabled", "color", "size", "variant"]
|
90
|
+
}
|
91
|
+
};
|
92
|
+
const h = ({ color: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-2", children: [
|
93
|
+
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { color: a, ...n }) }),
|
94
|
+
/* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((e) => /* @__PURE__ */ o(l, { color: e, tooltip: e, ...n }, e)) })
|
95
|
+
] });
|
96
|
+
h.parameters = {
|
97
|
+
controls: {
|
98
|
+
include: ["disabled", "color", "size", "variant"]
|
99
|
+
}
|
100
|
+
};
|
101
|
+
const v = ({ variant: a, color: n, ...e }) => /* @__PURE__ */ o("div", { className: "flex flex-col gap-10", children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: s.map((t) => /* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((i) => {
|
102
|
+
const r = `${t}-${i}`;
|
103
|
+
return /* @__PURE__ */ o(
|
104
|
+
l,
|
105
|
+
{
|
106
|
+
variant: t,
|
107
|
+
color: i,
|
108
|
+
disabled: !0,
|
109
|
+
tooltip: r,
|
110
|
+
...e
|
111
|
+
},
|
112
|
+
r
|
113
|
+
);
|
114
|
+
}) }, t)) }) });
|
115
|
+
v.parameters = {
|
116
|
+
controls: {
|
117
|
+
include: []
|
118
|
+
}
|
119
|
+
};
|
120
|
+
export {
|
121
|
+
h as Colors,
|
122
|
+
v as Disabled,
|
123
|
+
u as Playground,
|
124
|
+
g as Variants,
|
125
|
+
z as default
|
126
|
+
};
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
2
|
-
import { buttonIconVariants } from './buttonIconVariants';
|
3
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
+
import { buttonIconVariants } from './buttonIconVariants';
|
3
|
+
import { ReactNode } from 'react';
|
4
4
|
import * as React from "react";
|
5
5
|
export interface ButtonIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'disabled'>, VariantProps<typeof buttonIconVariants> {
|
6
6
|
tooltip?: ReactNode;
|
7
7
|
}
|
8
|
+
//# sourceMappingURL=ButtonIcon.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ButtonIcon.types.d.ts","sourceRoot":"","sources":["../../src/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,EAC/E,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const buttonIconVariants: (props?: ({
|
2
|
+
variant?: "ghost" | "link" | "contained" | "outlined" | null | undefined;
|
3
|
+
color?: "secondary" | "disabled" | "primary" | "error" | "success" | null | undefined;
|
4
|
+
size?: "sm" | "lg" | "icon" | "md" | null | undefined;
|
5
|
+
disabled?: boolean | null | undefined;
|
6
|
+
rounded?: boolean | null | undefined;
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
8
|
+
//# sourceMappingURL=buttonIconVariants.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"buttonIconVariants.d.ts","sourceRoot":"","sources":["../../src/ButtonIcon/buttonIconVariants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;8EAsI9B,CAAA"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
2
2
|
const e = r(
|
3
|
-
"aspect-square inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-
|
3
|
+
"aspect-square inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
4
4
|
{
|
5
5
|
variants: {
|
6
6
|
variant: {
|
7
|
-
contained: "border shadow",
|
8
|
-
outlined: "border bg-transparent hover:shadow-
|
7
|
+
contained: "border shadow-sm",
|
8
|
+
outlined: "border bg-transparent hover:shadow-xs",
|
9
9
|
ghost: "bg-transparent hover:bg-accent hover:text-accent-foreground",
|
10
10
|
link: "underline-offset-4 hover:underline bg-transparent hover:bg-transparent"
|
11
11
|
},
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ButtonIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACjE,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,oBAAoB,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
## 0.1.0-4 (2025-09-11)
|
2
|
+
|
3
|
+
This was a version bump only for @oneplatformdev/ui to align it with other projects, there were no code changes.
|
4
|
+
|
5
|
+
## 0.1.0-3 (2025-09-11)
|
6
|
+
|
7
|
+
### 🧱 Updated Dependencies
|
8
|
+
|
9
|
+
- Updated @oneplatformdev/hooks to 0.1.0-5
|
10
|
+
- Updated @oneplatformdev/utils to 0.1.1-26
|
11
|
+
|
12
|
+
## 0.1.0-2 (2025-09-11)
|
13
|
+
|
14
|
+
### 🧱 Updated Dependencies
|
15
|
+
|
16
|
+
- Updated @oneplatformdev/hooks to 0.1.0-4
|
17
|
+
- Updated @oneplatformdev/utils to 0.1.1-25
|
package/dist/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2025 Oleh Maksimenko
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/dist/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAcvD,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
2
|
-
import { TooltipProvider as a, TooltipRoot as c, TooltipTrigger as d, TooltipContent as p } from "./TooltipRoot.
|
2
|
+
import { TooltipProvider as a, TooltipRoot as c, TooltipTrigger as d, TooltipContent as p } from "./TooltipRoot.js";
|
3
3
|
const m = (r) => {
|
4
4
|
const { trigger: t, children: e, message: i = "", delay: l = 100, ...n } = r;
|
5
5
|
return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ s(c, { delayDuration: l, ...n, children: [
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { TooltipRoot } from './TooltipRoot';
|
2
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
3
|
-
|
2
|
+
import { TooltipRoot } from './TooltipRoot';
|
4
3
|
export interface TooltipProps extends ComponentPropsWithoutRef<typeof TooltipRoot> {
|
5
4
|
trigger?: ReactNode;
|
6
5
|
message?: ReactNode;
|
7
6
|
delay?: number;
|
8
7
|
}
|
8
|
+
//# sourceMappingURL=Tooltip.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Tooltip.types.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,YACf,SAAQ,wBAAwB,CAAC,OAAO,WAAW,CAAC;IACpD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -5,3 +5,4 @@ declare const TooltipRoot: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
5
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
6
6
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
7
7
|
export { TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider };
|
8
|
+
//# sourceMappingURL=TooltipRoot.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TooltipRoot.d.ts","sourceRoot":"","sources":["../../src/Tooltip/TooltipRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAI3D,QAAA,MAAM,eAAe,iDAA4B,CAAA;AAEjD,QAAA,MAAM,WAAW,yCAAwB,CAAA;AAEzC,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,cAAc,gKAelB,CAAA;AAGF,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,mBAAmB,iBAAiB,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { TooltipContent as r, TooltipProvider as i, TooltipRoot as p, TooltipTrigger as T } from "./TooltipRoot.
|
2
|
-
import { Tooltip as l } from "./Tooltip.
|
1
|
+
import { TooltipContent as r, TooltipProvider as i, TooltipRoot as p, TooltipTrigger as T } from "./TooltipRoot.js";
|
2
|
+
import { Tooltip as l } from "./Tooltip.js";
|
3
3
|
export {
|
4
4
|
l as Tooltip,
|
5
5
|
r as TooltipContent,
|