iguazio.dashboard-react-controls 3.2.20 → 3.2.22
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/dist/components/ActionsMenu/ActionsMenu.d.ts +17 -10
- package/dist/components/ActionsMenu/ActionsMenu.d.ts.map +1 -1
- package/dist/components/Backdrop/Backdrop.d.ts +8 -7
- package/dist/components/Backdrop/Backdrop.d.ts.map +1 -1
- package/dist/components/BlockerSpy/BlockerSpy.d.ts +4 -3
- package/dist/components/BlockerSpy/BlockerSpy.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +16 -15
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.d.ts +69 -7
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/ChipForm/ChipForm.d.ts +20 -12
- package/dist/components/ChipForm/ChipForm.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +21 -20
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +22 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts.map +1 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.d.ts +11 -10
- package/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +5 -4
- package/dist/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
- package/dist/components/FormCheckBox/FormCheckBox.d.ts +13 -12
- package/dist/components/FormCheckBox/FormCheckBox.d.ts.map +1 -1
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts +8 -1
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts.map +1 -1
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts +24 -23
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts.map +1 -1
- package/dist/components/FormChipCell/FormChipCell.d.ts +30 -29
- package/dist/components/FormChipCell/FormChipCell.d.ts.map +1 -1
- package/dist/components/FormChipCell/FormChipCellView.d.ts +29 -28
- package/dist/components/FormChipCell/FormChipCellView.d.ts.map +1 -1
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +16 -7
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +1 -1
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts +26 -18
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts.map +1 -1
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts +5 -4
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts.map +1 -1
- package/dist/components/FormCombobox/FormCombobox.d.ts +44 -39
- package/dist/components/FormCombobox/FormCombobox.d.ts.map +1 -1
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts +58 -6
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts.map +1 -1
- package/dist/components/FormInput/FormInput.d.ts +77 -1
- package/dist/components/FormInput/FormInput.d.ts.map +1 -1
- package/dist/components/FormInput/FormInput.stories.d.ts +86 -8
- package/dist/components/FormInput/FormInput.stories.d.ts.map +1 -1
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts +12 -11
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts.map +1 -1
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts +41 -37
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts.map +1 -1
- package/dist/components/FormOnChange/FormOnChange.d.ts +4 -3
- package/dist/components/FormOnChange/FormOnChange.d.ts.map +1 -1
- package/dist/components/FormRadio/FormRadio.d.ts +10 -9
- package/dist/components/FormRadio/FormRadio.d.ts.map +1 -1
- package/dist/components/FormRadio/FormRadio.stories.d.ts +8 -1
- package/dist/components/FormRadio/FormRadio.stories.d.ts.map +1 -1
- package/dist/components/FormSelect/FormSelect.d.ts +44 -34
- package/dist/components/FormSelect/FormSelect.d.ts.map +1 -1
- package/dist/components/FormSelect/FormSelect.stories.d.ts +36 -4
- package/dist/components/FormSelect/FormSelect.stories.d.ts.map +1 -1
- package/dist/components/FormTextarea/FormTextarea.d.ts +31 -30
- package/dist/components/FormTextarea/FormTextarea.d.ts.map +1 -1
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts +26 -3
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts.map +1 -1
- package/dist/components/FormToggle/FormToggle.d.ts +14 -13
- package/dist/components/FormToggle/FormToggle.d.ts.map +1 -1
- package/dist/components/LoadButton/LoadButton.d.ts +8 -7
- package/dist/components/LoadButton/LoadButton.d.ts.map +1 -1
- package/dist/components/LoadButton/LoadButton.stories.d.ts +29 -3
- package/dist/components/LoadButton/LoadButton.stories.d.ts.map +1 -1
- package/dist/components/Loader/Loader.d.ts +14 -1
- package/dist/components/Loader/Loader.d.ts.map +1 -1
- package/dist/components/Loader/LoaderForSuspenseFallback.d.ts +2 -1
- package/dist/components/Loader/LoaderForSuspenseFallback.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +19 -18
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/PopUpDialog/PopUpDialog.d.ts +22 -20
- package/dist/components/PopUpDialog/PopUpDialog.d.ts.map +1 -1
- package/dist/components/ReadOnlyChips/ReadOnlyChips.d.ts +5 -4
- package/dist/components/ReadOnlyChips/ReadOnlyChips.d.ts.map +1 -1
- package/dist/components/RoundedIcon/RoundedIcon.d.ts +15 -14
- package/dist/components/RoundedIcon/RoundedIcon.d.ts.map +1 -1
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts +13 -2
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts.map +1 -1
- package/dist/components/TableCell/TableCell.d.ts +20 -19
- package/dist/components/TableCell/TableCell.d.ts.map +1 -1
- package/dist/components/TabsSlider/TabsSlider.d.ts +18 -12
- package/dist/components/TabsSlider/TabsSlider.d.ts.map +1 -1
- package/dist/components/Tip/Tip.d.ts +7 -6
- package/dist/components/Tip/Tip.d.ts.map +1 -1
- package/dist/components/Tip/Tip.stories.d.ts +6 -1
- package/dist/components/Tip/Tip.stories.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +17 -16
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +16 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts +6 -5
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts.map +1 -1
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts +6 -5
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts.map +1 -1
- package/dist/components/Wizard/Wizard.d.ts +16 -15
- package/dist/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts +13 -6
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts.map +1 -1
- package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts +7 -6
- package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts.map +1 -1
- package/dist/elements/FormActionButton/FormActionButton.d.ts +13 -12
- package/dist/elements/FormActionButton/FormActionButton.d.ts.map +1 -1
- package/dist/elements/FormRowActions/FormRowActions.d.ts +14 -13
- package/dist/elements/FormRowActions/FormRowActions.d.ts.map +1 -1
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts +7 -6
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts.map +1 -1
- package/dist/elements/SelectOption/SelectOption.d.ts +20 -10
- package/dist/elements/SelectOption/SelectOption.d.ts.map +1 -1
- package/dist/elements/TableHead/TableHead.d.ts +8 -7
- package/dist/elements/TableHead/TableHead.d.ts.map +1 -1
- package/dist/elements/TableLinkCell/TableLinkCell.d.ts +15 -14
- package/dist/elements/TableLinkCell/TableLinkCell.d.ts.map +1 -1
- package/dist/elements/TableTypeCell/TableTypeCell.d.ts +5 -4
- package/dist/elements/TableTypeCell/TableTypeCell.d.ts.map +1 -1
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts +4 -3
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts.map +1 -1
- package/dist/hooks/useDetails.hook.d.ts +35 -29
- package/dist/hooks/useDetails.hook.d.ts.map +1 -1
- package/dist/hooks/useDetailsHeader.hook.d.ts +59 -44
- package/dist/hooks/useDetailsHeader.hook.d.ts.map +1 -1
- package/dist/hooks/useFormTable.hook.d.ts +5 -5
- package/dist/hooks/useTable.hook.d.ts +42 -32
- package/dist/hooks/useTable.hook.d.ts.map +1 -1
- package/dist/images/activeFilter.svg +6 -0
- package/dist/images/activeFilter.svg.mjs +6 -0
- package/dist/images/activeFilter.svg.mjs.map +1 -0
- package/dist/images/calendar-chevron.svg +3 -0
- package/dist/images/calendar-chevron.svg.mjs +6 -0
- package/dist/images/calendar-chevron.svg.mjs.map +1 -0
- package/dist/images/check.svg +3 -0
- package/dist/images/check.svg.mjs +6 -0
- package/dist/images/check.svg.mjs.map +1 -0
- package/dist/images/clock.svg.mjs +6 -0
- package/dist/images/clock.svg.mjs.map +1 -0
- package/dist/images/double-check.svg +3 -0
- package/dist/images/filter-2.svg +5 -0
- package/dist/images/filter-2.svg.mjs +6 -0
- package/dist/images/filter-2.svg.mjs.map +1 -0
- package/dist/images/refresh-2.svg +3 -0
- package/dist/images/refresh-2.svg.mjs +6 -0
- package/dist/images/refresh-2.svg.mjs.map +1 -0
- package/dist/images/search2-icon.svg +3 -0
- package/dist/images/select.svg +3 -0
- package/dist/images/select.svg.mjs +6 -0
- package/dist/images/select.svg.mjs.map +1 -0
- package/dist/images/sort-arrow.svg +3 -0
- package/dist/images/sort-arrow.svg.mjs +6 -0
- package/dist/images/sort-arrow.svg.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.d.ts +10 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.mjs +103 -0
- package/dist/nextGenComponents/components/CustomRangePicker/CustomRangePicker.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.d.ts +14 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.mjs +115 -0
- package/dist/nextGenComponents/components/CustomRangePicker/DateTimePickerPanel.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.d.ts +14 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.mjs +109 -0
- package/dist/nextGenComponents/components/CustomRangePicker/MaskedInput.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.d.ts +8 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.mjs +109 -0
- package/dist/nextGenComponents/components/CustomRangePicker/TimePickerInput.mjs.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.d.ts +2 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.mjs +5 -0
- package/dist/nextGenComponents/components/CustomRangePicker/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.d.ts +29 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.mjs +223 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.d.ts +11 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.mjs +17 -0
- package/dist/nextGenComponents/components/DataTable/DataTable.utils.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.d.ts +4 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.mjs +30 -0
- package/dist/nextGenComponents/components/DataTable/checkboxColumn.mjs.map +1 -0
- package/dist/nextGenComponents/components/DataTable/index.d.ts +2 -0
- package/dist/nextGenComponents/components/DataTable/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DataTable/index.mjs +5 -0
- package/dist/nextGenComponents/components/DataTable/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.d.ts +11 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.mjs +53 -0
- package/dist/nextGenComponents/components/DetailsPanel/DetailsPanel.mjs.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.d.ts +2 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.mjs +5 -0
- package/dist/nextGenComponents/components/DetailsPanel/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.d.ts +8 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.d.ts.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.mjs +20 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/EllipsisTooltip.mjs.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.d.ts +2 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.mjs +5 -0
- package/dist/nextGenComponents/components/EllipsisTooltip/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.d.ts +10 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.d.ts.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.mjs +157 -0
- package/dist/nextGenComponents/components/FilterPopover/FilterPopover.mjs.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/index.d.ts +2 -0
- package/dist/nextGenComponents/components/FilterPopover/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/FilterPopover/index.mjs +5 -0
- package/dist/nextGenComponents/components/FilterPopover/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/Loader/Loader.d.ts +16 -0
- package/dist/nextGenComponents/components/Loader/Loader.d.ts.map +1 -0
- package/dist/nextGenComponents/components/Loader/Loader.mjs +62 -0
- package/dist/nextGenComponents/components/Loader/Loader.mjs.map +1 -0
- package/dist/nextGenComponents/components/Loader/index.d.ts +3 -0
- package/dist/nextGenComponents/components/Loader/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/Loader/index.mjs +5 -0
- package/dist/nextGenComponents/components/Loader/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.d.ts +15 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.d.ts.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.mjs +113 -0
- package/dist/nextGenComponents/components/MultiSelectField/MultiSelectField.mjs.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.d.ts +3 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.mjs +6 -0
- package/dist/nextGenComponents/components/MultiSelectField/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.d.ts +17 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.d.ts.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.mjs +106 -0
- package/dist/nextGenComponents/components/PaginationControls/PaginationControls.mjs.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/index.d.ts +3 -0
- package/dist/nextGenComponents/components/PaginationControls/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/PaginationControls/index.mjs +5 -0
- package/dist/nextGenComponents/components/PaginationControls/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.d.ts +5 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.mjs +20 -0
- package/dist/nextGenComponents/components/RefreshButton/RefreshButton.mjs.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/index.d.ts +2 -0
- package/dist/nextGenComponents/components/RefreshButton/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RefreshButton/index.mjs +5 -0
- package/dist/nextGenComponents/components/RefreshButton/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.d.ts +8 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.mjs +58 -0
- package/dist/nextGenComponents/components/RowActions/ActionMenu/ActionMenu.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.d.ts +8 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.mjs +19 -0
- package/dist/nextGenComponents/components/RowActions/RowActions.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.d.ts +9 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.mjs +27 -0
- package/dist/nextGenComponents/components/RowActions/SingleActionButton/SingleActionButton.mjs.map +1 -0
- package/dist/nextGenComponents/components/RowActions/index.d.ts +5 -0
- package/dist/nextGenComponents/components/RowActions/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/RowActions/index.mjs +9 -0
- package/dist/nextGenComponents/components/RowActions/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.d.ts +47 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.d.ts.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.mjs +75 -0
- package/dist/nextGenComponents/components/StatsCard/StatsCard.mjs.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/index.d.ts +2 -0
- package/dist/nextGenComponents/components/StatsCard/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/StatsCard/index.mjs +5 -0
- package/dist/nextGenComponents/components/StatsCard/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +4 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.d.ts.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.mjs +106 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/TimeFilterDropdown.mjs.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.d.ts +2 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.mjs +5 -0
- package/dist/nextGenComponents/components/TimeFilterDropdown/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/index.d.ts +32 -0
- package/dist/nextGenComponents/components/index.d.ts.map +1 -0
- package/dist/nextGenComponents/components/index.mjs +83 -0
- package/dist/nextGenComponents/components/index.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/button.d.ts +14 -0
- package/dist/nextGenComponents/components/ui/button.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/button.mjs +56 -0
- package/dist/nextGenComponents/components/ui/button.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/calendar.d.ts +29 -0
- package/dist/nextGenComponents/components/ui/calendar.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/calendar.mjs +157 -0
- package/dist/nextGenComponents/components/ui/calendar.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/card.d.ts +9 -0
- package/dist/nextGenComponents/components/ui/card.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/card.mjs +50 -0
- package/dist/nextGenComponents/components/ui/card.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/checkbox.d.ts +8 -0
- package/dist/nextGenComponents/components/ui/checkbox.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/checkbox.mjs +33 -0
- package/dist/nextGenComponents/components/ui/checkbox.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.mjs +131 -0
- package/dist/nextGenComponents/components/ui/dropdown-menu.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/input.d.ts +4 -0
- package/dist/nextGenComponents/components/ui/input.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/input.mjs +33 -0
- package/dist/nextGenComponents/components/ui/input.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/pagination.d.ts +25 -0
- package/dist/nextGenComponents/components/ui/pagination.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/pagination.mjs +93 -0
- package/dist/nextGenComponents/components/ui/pagination.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/popover.d.ts +7 -0
- package/dist/nextGenComponents/components/ui/popover.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/popover.mjs +24 -0
- package/dist/nextGenComponents/components/ui/popover.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/scroll-area.d.ts +6 -0
- package/dist/nextGenComponents/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/scroll-area.mjs +39 -0
- package/dist/nextGenComponents/components/ui/scroll-area.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/select.d.ts +14 -0
- package/dist/nextGenComponents/components/ui/select.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/select.mjs +117 -0
- package/dist/nextGenComponents/components/ui/select.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/separator.d.ts +5 -0
- package/dist/nextGenComponents/components/ui/separator.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/separator.mjs +25 -0
- package/dist/nextGenComponents/components/ui/separator.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/tabs.d.ts +8 -0
- package/dist/nextGenComponents/components/ui/tabs.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/tabs.mjs +56 -0
- package/dist/nextGenComponents/components/ui/tabs.mjs.map +1 -0
- package/dist/nextGenComponents/components/ui/tooltip.d.ts +8 -0
- package/dist/nextGenComponents/components/ui/tooltip.d.ts.map +1 -0
- package/dist/nextGenComponents/components/ui/tooltip.mjs +24 -0
- package/dist/nextGenComponents/components/ui/tooltip.mjs.map +1 -0
- package/dist/nextGenComponents/constants/index.d.ts +41 -0
- package/dist/nextGenComponents/constants/index.d.ts.map +1 -0
- package/dist/nextGenComponents/constants/index.mjs +49 -0
- package/dist/nextGenComponents/constants/index.mjs.map +1 -0
- package/dist/nextGenComponents/hooks/useClickOutside.d.ts +3 -0
- package/dist/nextGenComponents/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/nextGenComponents/hooks/useClickOutside.mjs +22 -0
- package/dist/nextGenComponents/hooks/useClickOutside.mjs.map +1 -0
- package/dist/nextGenComponents/index.d.ts +4 -0
- package/dist/nextGenComponents/index.d.ts.map +1 -0
- package/dist/nextGenComponents/index.mjs +103 -0
- package/dist/nextGenComponents/index.mjs.map +1 -0
- package/dist/nextGenComponents/lib/utils.d.ts +3 -0
- package/dist/nextGenComponents/lib/utils.d.ts.map +1 -0
- package/dist/nextGenComponents/lib/utils.mjs +7 -0
- package/dist/nextGenComponents/lib/utils.mjs.map +1 -0
- package/dist/nextGenComponents/stores/tableStore.d.ts +22 -0
- package/dist/nextGenComponents/stores/tableStore.d.ts.map +1 -0
- package/dist/nextGenComponents/stores/tableStore.mjs +36 -0
- package/dist/nextGenComponents/stores/tableStore.mjs.map +1 -0
- package/dist/nextGenComponents/types/table/filter.d.ts +21 -0
- package/dist/nextGenComponents/types/table/filter.d.ts.map +1 -0
- package/dist/nextGenComponents/types/table/rowAction.d.ts +13 -0
- package/dist/nextGenComponents/types/table/rowAction.d.ts.map +1 -0
- package/dist/nextGenComponents/types/table/timeFilter.d.ts +23 -0
- package/dist/nextGenComponents/types/table/timeFilter.d.ts.map +1 -0
- package/dist/nextGenComponents/utils/date.utils.d.ts +24 -0
- package/dist/nextGenComponents/utils/date.utils.d.ts.map +1 -0
- package/dist/nextGenComponents/utils/date.utils.mjs +79 -0
- package/dist/nextGenComponents/utils/date.utils.mjs.map +1 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.d.ts +7 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.d.ts.map +1 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.mjs +7 -0
- package/dist/nextGenComponents/utils/tableFilters.utils.mjs.map +1 -0
- package/dist/reducers/notificationReducer.d.ts +1 -1
- package/dist/scss/common.scss +3 -0
- package/dist/scss/details.scss +4 -0
- package/dist/types.d.ts +148 -31
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/chips.util.d.ts +2 -2
- package/dist/utils/chips.util.d.ts.map +1 -1
- package/dist/utils/chips.util.mjs +27 -9
- package/dist/utils/chips.util.mjs.map +1 -1
- package/dist/utils/common.util.d.ts +1 -1
- package/dist/utils/common.util.d.ts.map +1 -1
- package/dist/utils/datetime.util.d.ts +3 -3
- package/dist/utils/datetime.util.d.ts.map +1 -1
- package/dist/utils/generateChipsList.util.d.ts +1 -1
- package/dist/utils/notification.util.d.ts +1 -1
- package/dist/utils/notification.util.d.ts.map +1 -1
- package/dist/utils/proxyServerConfig.util.d.ts +4 -4
- package/package.json +40 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { Loader } from './Loader';
|
|
2
|
+
export type { LoaderProps } from './Loader';
|
|
3
|
+
export { RowActions, ActionMenu, SingleActionButton } from './RowActions';
|
|
4
|
+
export type { ActionMenuItem } from './RowActions';
|
|
5
|
+
export { default as CopyButton } from './EllipsisTooltip';
|
|
6
|
+
export { default as DataTable } from './DataTable';
|
|
7
|
+
export type { DataTableProps, DetailsPanelConfig, CheckboxSelectionConfig } from './DataTable/DataTable';
|
|
8
|
+
export { default as DetailsPanel } from './DetailsPanel';
|
|
9
|
+
export { default as EllipsisTooltip } from './EllipsisTooltip';
|
|
10
|
+
export { default as FilterPopover } from './FilterPopover';
|
|
11
|
+
export { default as MultiSelectField, SelectArrow } from './MultiSelectField';
|
|
12
|
+
export type { MultiSelectFieldProps } from './MultiSelectField';
|
|
13
|
+
export { default as StatsCard } from './StatsCard';
|
|
14
|
+
export { default as PaginationControls } from './PaginationControls';
|
|
15
|
+
export type { PaginationConfig, PaginationControlsProps } from './PaginationControls';
|
|
16
|
+
export { default as RefreshButton } from './RefreshButton';
|
|
17
|
+
export { default as TimeFilterDropdown } from './TimeFilterDropdown';
|
|
18
|
+
export { Button } from './ui/button';
|
|
19
|
+
export type { ButtonProps } from './ui/button';
|
|
20
|
+
export { Calendar } from './ui/calendar';
|
|
21
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './ui/card';
|
|
22
|
+
export { Checkbox } from './ui/checkbox';
|
|
23
|
+
export * from './ui/dropdown-menu';
|
|
24
|
+
export { Input } from './ui/input';
|
|
25
|
+
export * from './ui/pagination';
|
|
26
|
+
export { Popover, PopoverContent, PopoverTrigger } from './ui/popover';
|
|
27
|
+
export { ScrollArea, ScrollBar } from './ui/scroll-area';
|
|
28
|
+
export * from './ui/select';
|
|
29
|
+
export { Separator } from './ui/separator';
|
|
30
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from './ui/tabs';
|
|
31
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/nextGenComponents/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACzE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,YAAY,EACV,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAC7E,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACpE,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACjG,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACxD,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import "./Loader/index.mjs";
|
|
2
|
+
import "./RowActions/index.mjs";
|
|
3
|
+
import "./EllipsisTooltip/index.mjs";
|
|
4
|
+
import "./DataTable/index.mjs";
|
|
5
|
+
import "./DetailsPanel/index.mjs";
|
|
6
|
+
import "./FilterPopover/index.mjs";
|
|
7
|
+
import "./MultiSelectField/index.mjs";
|
|
8
|
+
import "./StatsCard/index.mjs";
|
|
9
|
+
import "./PaginationControls/index.mjs";
|
|
10
|
+
import "./RefreshButton/index.mjs";
|
|
11
|
+
import "./TimeFilterDropdown/index.mjs";
|
|
12
|
+
import { Button as g } from "./ui/button.mjs";
|
|
13
|
+
import { Calendar as C } from "./ui/calendar.mjs";
|
|
14
|
+
import { Card as w, CardContent as x, CardDescription as M, CardFooter as T, CardHeader as f, CardTitle as P } from "./ui/card.mjs";
|
|
15
|
+
import { Checkbox as s } from "./ui/checkbox.mjs";
|
|
16
|
+
import { DropdownMenu as v, DropdownMenuCheckboxItem as B, DropdownMenuContent as L, DropdownMenuGroup as h, DropdownMenuItem as k, DropdownMenuLabel as G, DropdownMenuPortal as R, DropdownMenuRadioGroup as A, DropdownMenuRadioItem as E, DropdownMenuSeparator as F, DropdownMenuShortcut as H, DropdownMenuSub as N, DropdownMenuSubContent as U, DropdownMenuSubTrigger as V, DropdownMenuTrigger as j } from "./ui/dropdown-menu.mjs";
|
|
17
|
+
import { Input as y } from "./ui/input.mjs";
|
|
18
|
+
import { Pagination as J, PaginationContent as K, PaginationEllipsis as O, PaginationItem as Q, PaginationLink as W, PaginationNext as X, PaginationPrevious as Y } from "./ui/pagination.mjs";
|
|
19
|
+
import { Popover as _, PopoverContent as $, PopoverTrigger as oo } from "./ui/popover.mjs";
|
|
20
|
+
import { ScrollArea as eo, ScrollBar as to } from "./ui/scroll-area.mjs";
|
|
21
|
+
import { Select as po, SelectContent as io, SelectGroup as ao, SelectItem as lo, SelectLabel as mo, SelectScrollDownButton as uo, SelectScrollUpButton as So, SelectSeparator as go, SelectTrigger as co, SelectValue as Co } from "./ui/select.mjs";
|
|
22
|
+
import { Separator as wo } from "./ui/separator.mjs";
|
|
23
|
+
import { Tabs as Mo, TabsContent as To, TabsList as fo, TabsTrigger as Po } from "./ui/tabs.mjs";
|
|
24
|
+
import { Tooltip as so, TooltipContent as Io, TooltipProvider as vo, TooltipTrigger as Bo } from "./ui/tooltip.mjs";
|
|
25
|
+
export {
|
|
26
|
+
g as Button,
|
|
27
|
+
C as Calendar,
|
|
28
|
+
w as Card,
|
|
29
|
+
x as CardContent,
|
|
30
|
+
M as CardDescription,
|
|
31
|
+
T as CardFooter,
|
|
32
|
+
f as CardHeader,
|
|
33
|
+
P as CardTitle,
|
|
34
|
+
s as Checkbox,
|
|
35
|
+
v as DropdownMenu,
|
|
36
|
+
B as DropdownMenuCheckboxItem,
|
|
37
|
+
L as DropdownMenuContent,
|
|
38
|
+
h as DropdownMenuGroup,
|
|
39
|
+
k as DropdownMenuItem,
|
|
40
|
+
G as DropdownMenuLabel,
|
|
41
|
+
R as DropdownMenuPortal,
|
|
42
|
+
A as DropdownMenuRadioGroup,
|
|
43
|
+
E as DropdownMenuRadioItem,
|
|
44
|
+
F as DropdownMenuSeparator,
|
|
45
|
+
H as DropdownMenuShortcut,
|
|
46
|
+
N as DropdownMenuSub,
|
|
47
|
+
U as DropdownMenuSubContent,
|
|
48
|
+
V as DropdownMenuSubTrigger,
|
|
49
|
+
j as DropdownMenuTrigger,
|
|
50
|
+
y as Input,
|
|
51
|
+
J as Pagination,
|
|
52
|
+
K as PaginationContent,
|
|
53
|
+
O as PaginationEllipsis,
|
|
54
|
+
Q as PaginationItem,
|
|
55
|
+
W as PaginationLink,
|
|
56
|
+
X as PaginationNext,
|
|
57
|
+
Y as PaginationPrevious,
|
|
58
|
+
_ as Popover,
|
|
59
|
+
$ as PopoverContent,
|
|
60
|
+
oo as PopoverTrigger,
|
|
61
|
+
eo as ScrollArea,
|
|
62
|
+
to as ScrollBar,
|
|
63
|
+
po as Select,
|
|
64
|
+
io as SelectContent,
|
|
65
|
+
ao as SelectGroup,
|
|
66
|
+
lo as SelectItem,
|
|
67
|
+
mo as SelectLabel,
|
|
68
|
+
uo as SelectScrollDownButton,
|
|
69
|
+
So as SelectScrollUpButton,
|
|
70
|
+
go as SelectSeparator,
|
|
71
|
+
co as SelectTrigger,
|
|
72
|
+
Co as SelectValue,
|
|
73
|
+
wo as Separator,
|
|
74
|
+
Mo as Tabs,
|
|
75
|
+
To as TabsContent,
|
|
76
|
+
fo as TabsList,
|
|
77
|
+
Po as TabsTrigger,
|
|
78
|
+
so as Tooltip,
|
|
79
|
+
Io as TooltipContent,
|
|
80
|
+
vo as TooltipProvider,
|
|
81
|
+
Bo as TooltipTrigger
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "secondary" | "default" | "link" | "destructive" | "outline" | "ghost" | "rounded" | null | undefined;
|
|
6
|
+
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>, Omit<TooltipContentProps, keyof React.ButtonHTMLAttributes<HTMLButtonElement>> {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export { Button };
|
|
14
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/components/ui/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,QAAA,MAAM,cAAc;;;8EA8BnB,CAAA;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC,EACnC,IAAI,CAAC,mBAAmB,EAAE,MAAM,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAChF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,MAAM,uFA2BX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as c } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as g } from "class-variance-authority";
|
|
4
|
+
import f from "react";
|
|
5
|
+
import { Tooltip as p, TooltipTrigger as m, TooltipContent as v } from "./tooltip.mjs";
|
|
6
|
+
import { cn as h } from "../../lib/utils.mjs";
|
|
7
|
+
const x = g(
|
|
8
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border disabled:bg-white disabled:text-igz-gray disabled:[&_svg]:text-igz-secondary [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90 min-w-[100px] disabled:border-primary",
|
|
13
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:border-destructive",
|
|
14
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground disabled:border-background",
|
|
15
|
+
secondary: "border border-solid border-[#ccc] bg-secondary text-secondary-foreground hover:bg-[#483F561F] min-w-[50px] disabled:border-secondary",
|
|
16
|
+
ghost: "hover:bg-accent hover:text-accent-foreground disabled:border-transparent",
|
|
17
|
+
link: "text-igz-primary underline-offset-4 hover:underline disabled:border-transparent",
|
|
18
|
+
rounded: "rounded-full hover:bg-igz-gray-light [&_svg]:size-[16px] transition-bg duration-300 ease-in-out disabled:border-igz-gray-light"
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
default: "h-10 px-4 py-3",
|
|
22
|
+
sm: "h-9 px-4 py-2.5",
|
|
23
|
+
lg: "h-11 rounded-md px-8",
|
|
24
|
+
icon: "h-10 w-10 p-0 m-0"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
), y = f.forwardRef(
|
|
33
|
+
({ className: i, variant: n, size: d, tooltip: e = "", side: s = "top", asChild: a = !1, disabled: t, ...l }, b) => {
|
|
34
|
+
const o = /* @__PURE__ */ r(
|
|
35
|
+
a ? c : "button",
|
|
36
|
+
{
|
|
37
|
+
className: h(
|
|
38
|
+
x({ variant: n, size: d, className: i }),
|
|
39
|
+
e && t && "disabled:pointer-events-auto"
|
|
40
|
+
),
|
|
41
|
+
disabled: t,
|
|
42
|
+
ref: b,
|
|
43
|
+
...l
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
return e ? /* @__PURE__ */ u(p, { children: [
|
|
47
|
+
/* @__PURE__ */ r(m, { asChild: !0, children: o }),
|
|
48
|
+
/* @__PURE__ */ r(v, { side: s, children: e })
|
|
49
|
+
] }) : o;
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
y.displayName = "Button";
|
|
53
|
+
export {
|
|
54
|
+
y as Button
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.mjs","sources":["../../../../src/lib/nextGenComponents/components/ui/button.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { TooltipContentProps } from '@radix-ui/react-tooltip'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport React from 'react'\n\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'\nimport { cn } from '@/lib/utils'\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border disabled:bg-white disabled:text-igz-gray disabled:[&_svg]:text-igz-secondary [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default:\n 'bg-primary text-primary-foreground hover:bg-primary/90 min-w-[100px] disabled:border-primary',\n destructive:\n 'bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:border-destructive',\n outline:\n 'border border-input bg-background hover:bg-accent hover:text-accent-foreground disabled:border-background',\n secondary:\n 'border border-solid border-[#ccc] bg-secondary text-secondary-foreground hover:bg-[#483F561F] min-w-[50px] disabled:border-secondary',\n ghost: 'hover:bg-accent hover:text-accent-foreground disabled:border-transparent',\n link: 'text-igz-primary underline-offset-4 hover:underline disabled:border-transparent',\n rounded:\n 'rounded-full hover:bg-igz-gray-light [&_svg]:size-[16px] transition-bg duration-300 ease-in-out disabled:border-igz-gray-light'\n },\n size: {\n default: 'h-10 px-4 py-3',\n sm: 'h-9 px-4 py-2.5',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10 p-0 m-0'\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'default'\n }\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants>,\n Omit<TooltipContentProps, keyof React.ButtonHTMLAttributes<HTMLButtonElement>> {\n asChild?: boolean\n tooltip?: string\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n { className, variant, size, tooltip = '', side = 'top', asChild = false, disabled, ...props },\n ref\n ) => {\n const Comp = asChild ? Slot : 'button'\n const buttonEl = (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n tooltip && disabled && 'disabled:pointer-events-auto'\n )}\n disabled={disabled}\n ref={ref}\n {...props}\n />\n )\n\n if (!tooltip) return buttonEl\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{buttonEl}</TooltipTrigger>\n <TooltipContent side={side}>{tooltip}</TooltipContent>\n </Tooltip>\n )\n }\n)\nButton.displayName = 'Button'\n\nexport { Button }\n"],"names":["buttonVariants","cva","Button","React","className","variant","size","tooltip","side","asChild","disabled","props","ref","buttonEl","jsx","Slot","cn","Tooltip","TooltipTrigger","TooltipContent"],"mappings":";;;;;;AAQA,MAAMA,IAAiBC;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,WACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,SACE;AAAA,MAAA;AAAA,MAEJ,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MAAA;AAAA,IACR;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAUMC,IAASC,EAAM;AAAA,EACnB,CACE,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,SAAAC,IAAU,IAAI,MAAAC,IAAO,OAAO,SAAAC,IAAU,IAAO,UAAAC,GAAU,GAAGC,EAAA,GACtFC,MACG;AAEH,UAAMC,IACJ,gBAAAC;AAAA,MAFWL,IAAUM,IAAO;AAAA,MAE3B;AAAA,QACC,WAAWC;AAAA,UACThB,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,GAAW;AAAA,UAC3CG,KAAWG,KAAY;AAAA,QAAA;AAAA,QAEzB,UAAAA;AAAA,QACA,KAAAE;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IAAA;AAIR,WAAKJ,sBAGFU,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAH,EAACI,GAAA,EAAe,SAAO,IAAE,UAAAL,GAAS;AAAA,MAClC,gBAAAC,EAACK,GAAA,EAAe,MAAAX,GAAa,UAAAD,EAAA,CAAQ;AAAA,IAAA,GACvC,IANmBM;AAAA,EAQvB;AACF;AACAX,EAAO,cAAc;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DateRange } from 'react-day-picker';
|
|
3
|
+
import { DayPicker } from 'react-day-picker';
|
|
4
|
+
import { Button } from '@/components/ui/button';
|
|
5
|
+
type CalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
6
|
+
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
7
|
+
singleDate?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* If provided, Calendar will paint the range (middle) and optionally an "active" endpoint.
|
|
10
|
+
*/
|
|
11
|
+
range?: DateRange;
|
|
12
|
+
/**
|
|
13
|
+
* Which endpoint should be shown as the active circle in this calendar.
|
|
14
|
+
* - "start" paints range.from as a filled circle
|
|
15
|
+
* - "end" paints range.to as a filled circle
|
|
16
|
+
*/
|
|
17
|
+
activeRangeSide?: 'start' | 'end';
|
|
18
|
+
/**
|
|
19
|
+
* Caption prefix like "From:" / "To:" (used when captionLayout="label")
|
|
20
|
+
*/
|
|
21
|
+
captionPrefix?: string;
|
|
22
|
+
/**
|
|
23
|
+
* When true, forces weekday to be a single letter (like the screenshot).
|
|
24
|
+
*/
|
|
25
|
+
weekdaySingleLetter?: boolean;
|
|
26
|
+
};
|
|
27
|
+
declare const Calendar: ({ className, classNames, showOutsideDays, captionLayout, formatters, components, range, activeRangeSide, captionPrefix, weekdaySingleLetter, singleDate, modifiers, modifiersClassNames, ...props }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export { Calendar };
|
|
29
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAgC,SAAS,EAAwB,MAAM,kBAAkB,CAAA;AAGhG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAI/C,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC5D,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAA;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,QAAA,MAAM,QAAQ,GAAI,qMAef,aAAa,4CAgIf,CAAA;AAuDD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import * as g from "react";
|
|
3
|
+
import { getDefaultClassNames as k, DayPicker as j } from "react-day-picker";
|
|
4
|
+
import y from "../../../images/calendar-chevron.svg.mjs";
|
|
5
|
+
import { Button as D } from "./button.mjs";
|
|
6
|
+
import { cn as e } from "../../lib/utils.mjs";
|
|
7
|
+
import { getSupportedLocale as S } from "../../utils/date.utils.mjs";
|
|
8
|
+
const G = ({
|
|
9
|
+
className: s,
|
|
10
|
+
classNames: t,
|
|
11
|
+
showOutsideDays: l = !0,
|
|
12
|
+
captionLayout: u = "label",
|
|
13
|
+
formatters: d,
|
|
14
|
+
components: w,
|
|
15
|
+
range: n,
|
|
16
|
+
activeRangeSide: i,
|
|
17
|
+
captionPrefix: f,
|
|
18
|
+
weekdaySingleLetter: v = !0,
|
|
19
|
+
singleDate: p = !1,
|
|
20
|
+
modifiers: h,
|
|
21
|
+
modifiersClassNames: x,
|
|
22
|
+
...C
|
|
23
|
+
}) => {
|
|
24
|
+
const o = k(), F = g.useMemo(() => {
|
|
25
|
+
const a = n == null ? void 0 : n.from, r = n == null ? void 0 : n.to, c = {};
|
|
26
|
+
a && r && (c.range_middle = (_) => _ > a && _ < r, c.range_from = a, c.range_to = r);
|
|
27
|
+
let b = {};
|
|
28
|
+
return i === "start" ? b = { active_start: a } : i === "end" && (b = { active_end: r }), {
|
|
29
|
+
...h,
|
|
30
|
+
...c,
|
|
31
|
+
...b
|
|
32
|
+
};
|
|
33
|
+
}, [i, h, n == null ? void 0 : n.from, n == null ? void 0 : n.to]), z = g.useMemo(() => ({
|
|
34
|
+
...x,
|
|
35
|
+
range_middle: "rounded-none text-[#869CFF]"
|
|
36
|
+
}), [x]), N = g.useMemo(() => {
|
|
37
|
+
const a = S();
|
|
38
|
+
return {
|
|
39
|
+
formatMonthDropdown: (r) => r.toLocaleString(a, { month: "short" }),
|
|
40
|
+
...v ? { formatWeekdayName: (r) => r.toLocaleDateString(a, { weekday: "narrow" }) } : {},
|
|
41
|
+
...f ? {
|
|
42
|
+
formatCaption: (r) => `${f} ${r.toLocaleDateString(a, { month: "short", year: "numeric" })}`
|
|
43
|
+
} : {},
|
|
44
|
+
...d
|
|
45
|
+
};
|
|
46
|
+
}, [f, d, v]);
|
|
47
|
+
return /* @__PURE__ */ m(
|
|
48
|
+
j,
|
|
49
|
+
{
|
|
50
|
+
showOutsideDays: l,
|
|
51
|
+
captionLayout: u,
|
|
52
|
+
modifiers: F,
|
|
53
|
+
modifiersClassNames: z,
|
|
54
|
+
formatters: N,
|
|
55
|
+
className: e(
|
|
56
|
+
"bg-background group/calendar p-0 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
57
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
58
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
59
|
+
s
|
|
60
|
+
),
|
|
61
|
+
classNames: {
|
|
62
|
+
root: e(o.root),
|
|
63
|
+
months: e("relative flex flex-col gap-4 md:flex-row", o.months),
|
|
64
|
+
month: e("flex w-full flex-col gap-4", o.month),
|
|
65
|
+
nav: e(
|
|
66
|
+
"absolute inset-x-0 top-0 flex w-full items-start justify-between z-20",
|
|
67
|
+
o.nav
|
|
68
|
+
),
|
|
69
|
+
button_previous: e(
|
|
70
|
+
"flex items-center justify-center h-[--cell-size] w-[--cell-size]",
|
|
71
|
+
o.button_previous
|
|
72
|
+
),
|
|
73
|
+
button_next: e(
|
|
74
|
+
"flex items-center justify-center h-[--cell-size] w-[--cell-size]",
|
|
75
|
+
o.button_next
|
|
76
|
+
),
|
|
77
|
+
month_caption: e(
|
|
78
|
+
"flex h-[--cell-size] w-full items-center justify-center px-5",
|
|
79
|
+
o.month_caption
|
|
80
|
+
),
|
|
81
|
+
dropdowns: e(
|
|
82
|
+
"flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",
|
|
83
|
+
o.dropdowns
|
|
84
|
+
),
|
|
85
|
+
dropdown: e("bg-popover absolute inset-0 opacity-0", o.dropdown),
|
|
86
|
+
table: "w-full border-collapse",
|
|
87
|
+
weekdays: e("flex border-b border-slate-100 pb-2", o.weekdays),
|
|
88
|
+
weekday: e(
|
|
89
|
+
"text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",
|
|
90
|
+
o.weekday
|
|
91
|
+
),
|
|
92
|
+
day: e(
|
|
93
|
+
"group/day relative aspect-square flex-1 select-none p-0 text-center flex items-center justify-center",
|
|
94
|
+
!p && "has-[button[data-range-start]]:bg-[#869CFF33] has-[button[data-range-end]]:bg-[#869CFF33] has-[button[data-range-middle]]:bg-[#869CFF33]",
|
|
95
|
+
!p && "has-[button[data-range-start]]:rounded-l-full has-[button[data-range-end]]:rounded-r-full",
|
|
96
|
+
!p && "has-[button[data-selected-single]]:bg-transparent",
|
|
97
|
+
o.day
|
|
98
|
+
),
|
|
99
|
+
week: e("flex w-full mt-1", o.week),
|
|
100
|
+
range_start: "bg-transparent",
|
|
101
|
+
range_middle: "bg-transparent",
|
|
102
|
+
range_end: "bg-transparent",
|
|
103
|
+
outside: e(
|
|
104
|
+
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
105
|
+
o.outside
|
|
106
|
+
),
|
|
107
|
+
disabled: e("text-muted-foreground opacity-50", o.disabled),
|
|
108
|
+
hidden: e("invisible", o.hidden),
|
|
109
|
+
...t
|
|
110
|
+
},
|
|
111
|
+
components: {
|
|
112
|
+
Root: q,
|
|
113
|
+
DayButton: B,
|
|
114
|
+
Chevron: L,
|
|
115
|
+
...w
|
|
116
|
+
},
|
|
117
|
+
...C
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}, B = ({
|
|
121
|
+
className: s,
|
|
122
|
+
modifiers: t,
|
|
123
|
+
...l
|
|
124
|
+
}) => {
|
|
125
|
+
const u = t.active_start || t.active_end || t.selected, d = t.range_from || t.range_to || t.range_middle || t.active_start || t.active_end;
|
|
126
|
+
return /* @__PURE__ */ m(
|
|
127
|
+
D,
|
|
128
|
+
{
|
|
129
|
+
variant: "ghost",
|
|
130
|
+
size: "icon",
|
|
131
|
+
"data-range-start": t.range_from || t.active_start || void 0,
|
|
132
|
+
"data-range-end": t.range_to || t.active_end || void 0,
|
|
133
|
+
"data-range-middle": t.range_middle || void 0,
|
|
134
|
+
"data-selected-single": t.selected && !d || void 0,
|
|
135
|
+
disabled: t.outside,
|
|
136
|
+
className: e(
|
|
137
|
+
"relative flex aspect-square h-8 w-full items-center justify-center p-0 font-normal transition-none z-10 hover:bg-igz-accent-hover",
|
|
138
|
+
u && "!bg-[#869CFF] !text-white rounded-full z-20 hover:!bg-[#869CFF]",
|
|
139
|
+
s,
|
|
140
|
+
t.range_middle && "!text-[#869CFF]"
|
|
141
|
+
),
|
|
142
|
+
...l
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
}, L = ({
|
|
146
|
+
orientation: s,
|
|
147
|
+
className: t
|
|
148
|
+
}) => /* @__PURE__ */ m(
|
|
149
|
+
y,
|
|
150
|
+
{
|
|
151
|
+
className: e("text-[#7F7989]", s === "left" && "rotate-180", t)
|
|
152
|
+
}
|
|
153
|
+
), q = ({ className: s, rootRef: t, ...l }) => /* @__PURE__ */ m("div", { "data-slot": "calendar", ref: t, className: e(s), ...l });
|
|
154
|
+
export {
|
|
155
|
+
G as Calendar
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=calendar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.mjs","sources":["../../../../src/lib/nextGenComponents/components/ui/calendar.tsx"],"sourcesContent":["import * as React from 'react'\nimport type { DateRange } from 'react-day-picker'\nimport { DayButton as DayButtonImport, DayPicker, getDefaultClassNames } from 'react-day-picker'\n\nimport CalendarChevronSvg from '../../../images/calendar-chevron.svg?react'\nimport { Button } from '@/components/ui/button'\nimport { cn } from '@/lib/utils'\nimport { getSupportedLocale } from '@/utils/date.utils'\n\ntype CalendarProps = React.ComponentProps<typeof DayPicker> & {\n buttonVariant?: React.ComponentProps<typeof Button>['variant']\n singleDate?: boolean\n /**\n * If provided, Calendar will paint the range (middle) and optionally an \"active\" endpoint.\n */\n range?: DateRange\n /**\n * Which endpoint should be shown as the active circle in this calendar.\n * - \"start\" paints range.from as a filled circle\n * - \"end\" paints range.to as a filled circle\n */\n activeRangeSide?: 'start' | 'end'\n /**\n * Caption prefix like \"From:\" / \"To:\" (used when captionLayout=\"label\")\n */\n captionPrefix?: string\n /**\n * When true, forces weekday to be a single letter (like the screenshot).\n */\n weekdaySingleLetter?: boolean\n}\n\nconst Calendar = ({\n className,\n classNames,\n showOutsideDays = true,\n captionLayout = 'label',\n formatters,\n components,\n range,\n activeRangeSide,\n captionPrefix,\n weekdaySingleLetter = true,\n singleDate = false,\n modifiers,\n modifiersClassNames,\n ...props\n}: CalendarProps) => {\n const defaultClassNames = getDefaultClassNames()\n\n const computedModifiers = React.useMemo(() => {\n const from = range?.from\n const to = range?.to\n\n const rangeModifiers: Record<string, Date | ((day: Date) => boolean) | undefined> = {}\n\n if (from && to) {\n rangeModifiers.range_middle = (day: Date) => day > from && day < to\n rangeModifiers.range_from = from\n rangeModifiers.range_to = to\n }\n\n let active: Record<string, Date | undefined> = {}\n\n if (activeRangeSide === 'start') {\n active = { active_start: from }\n } else if (activeRangeSide === 'end') {\n active = { active_end: to }\n }\n\n return {\n ...modifiers,\n ...rangeModifiers,\n ...active\n }\n }, [activeRangeSide, modifiers, range?.from, range?.to])\n\n const computedModifiersClassNames = React.useMemo(() => {\n return {\n ...modifiersClassNames,\n range_middle: 'rounded-none text-[#869CFF]'\n }\n }, [modifiersClassNames])\n\n const computedFormatters = React.useMemo(() => {\n const locale = getSupportedLocale()\n return {\n formatMonthDropdown: (date: Date) => date.toLocaleString(locale, { month: 'short' }),\n ...(weekdaySingleLetter\n ? { formatWeekdayName: (d: Date) => d.toLocaleDateString(locale, { weekday: 'narrow' }) }\n : {}),\n ...(captionPrefix\n ? {\n formatCaption: (m: Date) =>\n `${captionPrefix} ${m.toLocaleDateString(locale, { month: 'short', year: 'numeric' })}`\n }\n : {}),\n ...formatters\n }\n }, [captionPrefix, formatters, weekdaySingleLetter])\n\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n captionLayout={captionLayout}\n modifiers={computedModifiers}\n modifiersClassNames={computedModifiersClassNames}\n formatters={computedFormatters}\n className={cn(\n 'bg-background group/calendar p-0 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',\n String.raw`rtl:**:[.rdp-button\\_next>svg]:rotate-180`,\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\n className\n )}\n classNames={{\n root: cn(defaultClassNames.root),\n months: cn('relative flex flex-col gap-4 md:flex-row', defaultClassNames.months),\n month: cn('flex w-full flex-col gap-4', defaultClassNames.month),\n nav: cn(\n 'absolute inset-x-0 top-0 flex w-full items-start justify-between z-20',\n defaultClassNames.nav\n ),\n button_previous: cn(\n 'flex items-center justify-center h-[--cell-size] w-[--cell-size]',\n defaultClassNames.button_previous\n ),\n button_next: cn(\n 'flex items-center justify-center h-[--cell-size] w-[--cell-size]',\n defaultClassNames.button_next\n ),\n month_caption: cn(\n 'flex h-[--cell-size] w-full items-center justify-center px-5',\n defaultClassNames.month_caption\n ),\n dropdowns: cn(\n 'flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium',\n defaultClassNames.dropdowns\n ),\n dropdown: cn('bg-popover absolute inset-0 opacity-0', defaultClassNames.dropdown),\n table: 'w-full border-collapse',\n weekdays: cn('flex border-b border-slate-100 pb-2', defaultClassNames.weekdays),\n weekday: cn(\n 'text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal',\n defaultClassNames.weekday\n ),\n day: cn(\n 'group/day relative aspect-square flex-1 select-none p-0 text-center flex items-center justify-center',\n !singleDate &&\n 'has-[button[data-range-start]]:bg-[#869CFF33] has-[button[data-range-end]]:bg-[#869CFF33] has-[button[data-range-middle]]:bg-[#869CFF33]',\n !singleDate &&\n 'has-[button[data-range-start]]:rounded-l-full has-[button[data-range-end]]:rounded-r-full',\n !singleDate && 'has-[button[data-selected-single]]:bg-transparent',\n defaultClassNames.day\n ),\n week: cn('flex w-full mt-1', defaultClassNames.week),\n range_start: 'bg-transparent',\n range_middle: 'bg-transparent',\n range_end: 'bg-transparent',\n outside: cn(\n 'text-muted-foreground aria-selected:text-muted-foreground',\n defaultClassNames.outside\n ),\n disabled: cn('text-muted-foreground opacity-50', defaultClassNames.disabled),\n hidden: cn('invisible', defaultClassNames.hidden),\n ...classNames\n }}\n components={{\n Root: CalendarRoot,\n DayButton: CalendarDayButton,\n Chevron: CalendarChevron,\n ...components\n }}\n {...props}\n />\n )\n}\n\nconst CalendarDayButton = ({\n className: btnClassName,\n modifiers: dayModifiers,\n ...rest\n}: React.ComponentProps<typeof DayButtonImport>) => {\n const isSelected = dayModifiers.active_start || dayModifiers.active_end || dayModifiers.selected\n const isInRange =\n dayModifiers.range_from ||\n dayModifiers.range_to ||\n dayModifiers.range_middle ||\n dayModifiers.active_start ||\n dayModifiers.active_end\n\n return (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n data-range-start={dayModifiers.range_from || dayModifiers.active_start || undefined}\n data-range-end={dayModifiers.range_to || dayModifiers.active_end || undefined}\n data-range-middle={dayModifiers.range_middle || undefined}\n data-selected-single={(dayModifiers.selected && !isInRange) || undefined}\n disabled={dayModifiers.outside}\n className={cn(\n 'relative flex aspect-square h-8 w-full items-center justify-center p-0 font-normal transition-none z-10 hover:bg-igz-accent-hover',\n isSelected && '!bg-[#869CFF] !text-white rounded-full z-20 hover:!bg-[#869CFF]',\n btnClassName,\n dayModifiers.range_middle && '!text-[#869CFF]'\n )}\n {...rest}\n />\n )\n}\n\ntype CalendarRootProps = React.HTMLAttributes<HTMLDivElement> & {\n rootRef?: React.Ref<HTMLDivElement>\n}\n\nconst CalendarChevron = ({\n orientation,\n className\n}: {\n className?: string\n orientation?: 'up' | 'down' | 'left' | 'right'\n}) => (\n <CalendarChevronSvg\n className={cn('text-[#7F7989]', orientation === 'left' && 'rotate-180', className)}\n />\n)\n\nconst CalendarRoot = ({ className, rootRef, ...rest }: CalendarRootProps) => {\n return <div data-slot=\"calendar\" ref={rootRef} className={cn(className)} {...rest} />\n}\n\nexport { Calendar }\n"],"names":["Calendar","className","classNames","showOutsideDays","captionLayout","formatters","components","range","activeRangeSide","captionPrefix","weekdaySingleLetter","singleDate","modifiers","modifiersClassNames","props","defaultClassNames","getDefaultClassNames","computedModifiers","React","from","to","rangeModifiers","day","active","computedModifiersClassNames","computedFormatters","locale","getSupportedLocale","date","d","m","jsx","DayPicker","cn","CalendarRoot","CalendarDayButton","CalendarChevron","btnClassName","dayModifiers","rest","isSelected","isInRange","Button","orientation","CalendarChevronSvg","rootRef"],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
9
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,IAAI,6GAQT,CAAA;AAGD,QAAA,MAAM,UAAU,6GAIf,CAAA;AAGD,QAAA,MAAM,SAAS,6GAQd,CAAA;AAGD,QAAA,MAAM,eAAe,6GAIpB,CAAA;AAGD,QAAA,MAAM,WAAW,6GAIhB,CAAA;AAGD,QAAA,MAAM,UAAU,6GAIf,CAAA;AAGD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as t } from "../../lib/utils.mjs";
|
|
4
|
+
const s = o.forwardRef(
|
|
5
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
ref: r,
|
|
9
|
+
className: t("rounded-lg border bg-card text-card-foreground shadow-sm", a),
|
|
10
|
+
...e
|
|
11
|
+
}
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
s.displayName = "Card";
|
|
15
|
+
const i = o.forwardRef(
|
|
16
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("flex flex-col p-6", a), ...e })
|
|
17
|
+
);
|
|
18
|
+
i.displayName = "CardHeader";
|
|
19
|
+
const m = o.forwardRef(
|
|
20
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
ref: r,
|
|
24
|
+
className: t("text-2xl font-semibold leading-none tracking-tight", a),
|
|
25
|
+
...e
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
m.displayName = "CardTitle";
|
|
30
|
+
const l = o.forwardRef(
|
|
31
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("text-sm text-muted-foreground", a), ...e })
|
|
32
|
+
);
|
|
33
|
+
l.displayName = "CardDescription";
|
|
34
|
+
const n = o.forwardRef(
|
|
35
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("p-6 pt-0", a), ...e })
|
|
36
|
+
);
|
|
37
|
+
n.displayName = "CardContent";
|
|
38
|
+
const c = o.forwardRef(
|
|
39
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("flex items-center p-6 pt-0", a), ...e })
|
|
40
|
+
);
|
|
41
|
+
c.displayName = "CardFooter";
|
|
42
|
+
export {
|
|
43
|
+
s as Card,
|
|
44
|
+
n as CardContent,
|
|
45
|
+
l as CardDescription,
|
|
46
|
+
c as CardFooter,
|
|
47
|
+
i as CardHeader,
|
|
48
|
+
m as CardTitle
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.mjs","sources":["../../../../src/lib/nextGenComponents/components/ui/card.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('rounded-lg border bg-card text-card-foreground shadow-sm', className)}\n {...props}\n />\n )\n)\nCard.displayName = 'Card'\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex flex-col p-6', className)} {...props} />\n )\n)\nCardHeader.displayName = 'CardHeader'\n\nconst CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('text-2xl font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = 'CardTitle'\n\nconst CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />\n )\n)\nCardDescription.displayName = 'CardDescription'\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('p-6 pt-0', className)} {...props} />\n )\n)\nCardContent.displayName = 'CardContent'\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex items-center p-6 pt-0', className)} {...props} />\n )\n)\nCardFooter.displayName = 'CardFooter'\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n"],"names":["Card","React","className","props","ref","jsx","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter"],"mappings":";;;AAIA,MAAMA,IAAOC,EAAM;AAAA,EACjB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE,EAAG,4DAA4DJ,CAAS;AAAA,MAClF,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AACAH,EAAK,cAAc;AAEnB,MAAMO,IAAaN,EAAM;AAAA,EACvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC,EAAC,OAAA,EAAI,KAAAD,GAAU,WAAWE,EAAG,qBAAqBJ,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE7E;AACAI,EAAW,cAAc;AAEzB,MAAMC,IAAYP,EAAM;AAAA,EACtB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE,EAAG,sDAAsDJ,CAAS;AAAA,MAC5E,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AACAK,EAAU,cAAc;AAExB,MAAMC,IAAkBR,EAAM;AAAA,EAC5B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC,EAAC,OAAA,EAAI,KAAAD,GAAU,WAAWE,EAAG,iCAAiCJ,CAAS,GAAI,GAAGC,EAAA,CAAO;AAEzF;AACAM,EAAgB,cAAc;AAE9B,MAAMC,IAAcT,EAAM;AAAA,EACxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC,EAAC,OAAA,EAAI,KAAAD,GAAU,WAAWE,EAAG,YAAYJ,CAAS,GAAI,GAAGC,EAAA,CAAO;AAEpE;AACAO,EAAY,cAAc;AAE1B,MAAMC,IAAaV,EAAM;AAAA,EACvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC,EAAC,OAAA,EAAI,KAAAD,GAAU,WAAWE,EAAG,8BAA8BJ,CAAS,GAAI,GAAGC,EAAA,CAAO;AAEtF;AACAQ,EAAW,cAAc;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface CheckboxProps extends React.ComponentProps<typeof CheckboxPrimitive.Root> {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const Checkbox: ({ className, loading, disabled, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Checkbox };
|
|
8
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAE7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC;IACjF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,QAAQ,GAAI,4CAAoD,aAAa,4CAwBlF,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "@radix-ui/react-checkbox";
|
|
3
|
+
import { CheckIcon as o } from "lucide-react";
|
|
4
|
+
import { cn as c } from "../../lib/utils.mjs";
|
|
5
|
+
const b = ({ className: t, loading: i = !1, disabled: r, ...d }) => /* @__PURE__ */ e(
|
|
6
|
+
a.Root,
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "checkbox",
|
|
9
|
+
className: c(
|
|
10
|
+
"peer border border-solid border-[#869CFF] dark:bg-input/30",
|
|
11
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
12
|
+
"size-4 shrink-0 rounded-[2px] shadow-xs transition-shadow outline-none focus-visible:ring-[1px]",
|
|
13
|
+
"data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary dark:data-[state=checked]:bg-primary",
|
|
14
|
+
"disabled:cursor-not-allowed disabled:border-[#ADABB0] disabled:data-[state=checked]:bg-[#ADABB0] disabled:data-[state=checked]:border-[#ADABB0]",
|
|
15
|
+
i && !r && "opacity-50 pointer-events-none",
|
|
16
|
+
t
|
|
17
|
+
),
|
|
18
|
+
...d,
|
|
19
|
+
disabled: r,
|
|
20
|
+
children: /* @__PURE__ */ e(
|
|
21
|
+
a.Indicator,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "checkbox-indicator",
|
|
24
|
+
className: "grid place-content-center text-current transition-none",
|
|
25
|
+
children: /* @__PURE__ */ e(o, { className: "size-3.5" })
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
b as Checkbox
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=checkbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.mjs","sources":["../../../../src/lib/nextGenComponents/components/ui/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { CheckIcon } from 'lucide-react'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\ninterface CheckboxProps extends React.ComponentProps<typeof CheckboxPrimitive.Root> {\n loading?: boolean\n}\n\nconst Checkbox = ({ className, loading = false, disabled, ...props }: CheckboxProps) => {\n return (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={cn(\n 'peer border border-solid border-[#869CFF] dark:bg-input/30',\n 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',\n 'size-4 shrink-0 rounded-[2px] shadow-xs transition-shadow outline-none focus-visible:ring-[1px]',\n 'data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary dark:data-[state=checked]:bg-primary',\n 'disabled:cursor-not-allowed disabled:border-[#ADABB0] disabled:data-[state=checked]:bg-[#ADABB0] disabled:data-[state=checked]:border-[#ADABB0]',\n loading && !disabled && 'opacity-50 pointer-events-none',\n className\n )}\n {...props}\n disabled={disabled}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"grid place-content-center text-current transition-none\"\n >\n <CheckIcon className=\"size-3.5\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n}\n\nexport { Checkbox }\n"],"names":["Checkbox","className","loading","disabled","props","jsx","CheckboxPrimitive","cn","CheckIcon"],"mappings":";;;;AAUA,MAAMA,IAAW,CAAC,EAAE,WAAAC,GAAW,SAAAC,IAAU,IAAO,UAAAC,GAAU,GAAGC,QAEzD,gBAAAC;AAAA,EAACC,EAAkB;AAAA,EAAlB;AAAA,IACC,aAAU;AAAA,IACV,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAL,KAAW,CAACC,KAAY;AAAA,MACxBF;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IACJ,UAAAD;AAAA,IAEA,UAAA,gBAAAE;AAAA,MAACC,EAAkB;AAAA,MAAlB;AAAA,QACC,aAAU;AAAA,QACV,WAAU;AAAA,QAEV,UAAA,gBAAAD,EAACG,GAAA,EAAU,WAAU,WAAA,CAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAClC;AAAA;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const DropdownMenuShortcut: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup };
|
|
28
|
+
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/nextGenComponents/components/ui/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAA;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,YAAY,mDAA6B,CAAA;AAE/C,QAAA,MAAM,mBAAmB,0HAAgC,CAAA;AAEzD,QAAA,MAAM,iBAAiB,qHAA8B,CAAA;AAErD,QAAA,MAAM,kBAAkB,yDAA+B,CAAA;AAEvD,QAAA,MAAM,eAAe,sDAA4B,CAAA;AAEjD,QAAA,MAAM,sBAAsB,0HAAmC,CAAA;AAE/D,QAAA,MAAM,sBAAsB;YAGhB,OAAO;wCAejB,CAAA;AAGF,QAAA,MAAM,sBAAsB,6KAY1B,CAAA;AAGF,QAAA,MAAM,mBAAmB,0KAevB,CAAA;AAGF,QAAA,MAAM,gBAAgB;YAGV,OAAO;wCAYjB,CAAA;AAGF,QAAA,MAAM,wBAAwB,+KAoB5B,CAAA;AAGF,QAAA,MAAM,qBAAqB,4KAmBzB,CAAA;AAGF,QAAA,MAAM,iBAAiB;YAGX,OAAO;wCAQjB,CAAA;AAGF,QAAA,MAAM,qBAAqB,4KASzB,CAAA;AAGF,QAAA,MAAM,oBAAoB;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAE3F,CAAA;AAGD,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACvB,CAAA"}
|