@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -21
- package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
- package/dist/AlertDialogTrigger-BGo_acd5.js +109 -0
- package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
- package/dist/Checkbox-B_ngk9Dj.js +249 -0
- package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-CYYsk_31.js → CommandInput-BLq69pOT.js} +2 -2
- package/dist/Counter-BV680M5r.js +195 -0
- package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
- package/dist/DropdownButton-DfNojmCW.js +493 -0
- package/dist/FlagSelectorList-CkTR3j6O.js +856 -0
- package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-DRylBL2d.js} +2 -2
- package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
- package/dist/{Input-DG3snJf_.js → Input-Cf44DzfE.js} +19 -19
- package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
- package/dist/Modal-Dyn088X7.js +81 -0
- package/dist/Sidebar.css +1 -1
- package/dist/{Spinner-BegZ5yd7.js → Spinner-CUwE2bLm.js} +1 -1
- package/dist/Switch-aPhL5rNG.js +196 -0
- package/dist/Toast-3NEz7LLa.js +460 -0
- package/dist/Wrapper-BhqUVI1G.js +171 -0
- package/dist/Wrapper-CVJSuYWx.js +114 -0
- package/dist/{Wrapper-DtT29fc5.js → Wrapper-DP6Sxngx.js} +185 -180
- package/dist/components/Alert/Alert.js +22 -22
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +6 -6
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +16 -12
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +42 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
- package/dist/components/Datepicker/DatePicker.js +15 -16
- package/dist/components/Drawer/Drawer.js +54 -49
- package/dist/components/Drawer/hooks/useDrawer.js +39 -44
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +25 -23
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -57
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +29 -50
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -49
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -50
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
- package/dist/components/Filter/contexts/filter.provider.js +15 -7
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +4 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +26 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +14 -13
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +33 -32
- package/dist/components/ProgressBar/ProgressBar.js +26 -20
- package/dist/components/Radio/Radio.js +28 -30
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/Range/Range.js +15 -13
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +3 -3
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useSelect.js +39 -38
- package/dist/components/Sidebar/Sidebar.js +21 -18
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
- package/dist/components/Sidebar/components/index.js +17 -15
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Slider/Slider.js +17 -15
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.variants.js +6 -6
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +17 -17
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +12 -11
- package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +92 -89
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -21
- package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +67 -75
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
- package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +4 -2
- package/dist/components/index.js +96 -90
- package/dist/{components-CYt24H4n.js → components-Cf345jTv.js} +45 -41
- package/dist/constants-CxJJRVK3.js +31 -0
- package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
- package/dist/dist-BUocnzkM.js +99 -0
- package/dist/{dist-DGO9opgu.js → dist-BZNE2Tnx.js} +51 -51
- package/dist/dist-BaPW7qXd2.js +166 -0
- package/dist/dist-BdobXn93.js +192 -0
- package/dist/dist-BlPTJNIm.js +118 -0
- package/dist/dist-C3YVLapk.js +194 -0
- package/dist/dist-C4j75TwZ.js +20 -0
- package/dist/dist-CCdbu9GU.js +46 -0
- package/dist/dist-CzKqHuqJ2.js +427 -0
- package/dist/dist-D-yS0HN8.js +228 -0
- package/dist/dist-D5XYRjmR.js +15 -0
- package/dist/dist-DDck_2lb.js +451 -0
- package/dist/dist-DFCz63oC2.js +1320 -0
- package/dist/dist-DGOjiAnB2.js +14 -0
- package/dist/dist-DKryKPmP.js +193 -0
- package/dist/dist-DX0sBG3Q.js +31 -0
- package/dist/dist-DYIabsrY.js +17 -0
- package/dist/dist-pWlMx4Fi2.js +36 -0
- package/dist/dist-tGUUcv8n.js +359 -0
- package/dist/dist-xCbHbMLA.js +116 -0
- package/dist/es2015-CoHq2g4y.js +231 -0
- package/dist/es2015-DigR3dar.js +795 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/index.js +147 -139
- package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
- package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
- package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/Button/Button.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/lib/components/Card/Card.types.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/lib/components/Command/Command.types.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
- package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +3 -1
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +2 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
- package/dist/lib/components/Input/Input.types.d.ts +1 -1
- package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
- package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
- package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +3 -1
- package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
- package/dist/lib/components/Range/Range.types.d.ts +1 -1
- package/dist/lib/components/Select/Select.types.d.ts +1 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -1
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +8 -7
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
- package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
- package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
- package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
- package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
- package/dist/lib/components/Table/Table.types.d.ts +1 -1
- package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
- package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
- package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/contexts/theme.context.d.ts +1 -1
- package/dist/lib/contexts/theme.hook.d.ts +1 -1
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +2 -0
- package/dist/package.json +38 -37
- package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
- package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
- package/dist/styles.css +1 -1
- package/dist/{table.provider-9uUt5a-s.js → table.provider-B0BafHuU.js} +429 -388
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
- package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
- package/package.json +38 -37
- package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
- package/dist/Checkbox-B1rTwzR3.js +0 -240
- package/dist/Counter-DWKyr569.js +0 -208
- package/dist/DropdownButton-Beel5_gN.js +0 -92
- package/dist/FlagSelectorList-BARhzfj2.js +0 -848
- package/dist/Modal-Bcu6LLAp.js +0 -76
- package/dist/Switch-1RGhhTtg.js +0 -178
- package/dist/Toast-CS-igZor.js +0 -467
- package/dist/Wrapper-DNEn4fef.js +0 -161
- package/dist/Wrapper-DwxJAkNQ.js +0 -110
- package/dist/constants-DXrF9vV4.js +0 -31
- package/dist/dist-7edduNXi.js +0 -398
- package/dist/dist-B-Aoze_D.js +0 -10
- package/dist/dist-BkYHh2kH.js +0 -408
- package/dist/dist-C6Cif8-U.js +0 -28
- package/dist/dist-C8NWUTUh.js +0 -62
- package/dist/dist-CVy-ulDZ.js +0 -42
- package/dist/dist-CeuUxVmT.js +0 -13
- package/dist/dist-CfYOvauX.js +0 -125
- package/dist/dist-CktbIsHq.js +0 -264
- package/dist/dist-DGqWMRtc.js +0 -183
- package/dist/dist-DdFwUrO22.js +0 -11
- package/dist/dist-DnGj9MTf.js +0 -1692
- package/dist/dist-DqKFpce5.js +0 -98
- package/dist/dist-DvoMuWKO2.js +0 -31
- package/dist/dist-eAwtFCCA.js +0 -87
- package/dist/dist-ppXKUlVt.js +0 -10
- /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
- /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
|
@@ -1,75 +1,65 @@
|
|
|
1
|
-
import { o as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { resetEvent as
|
|
6
|
-
import { Filter as
|
|
7
|
-
import { t as
|
|
8
|
-
import { useTableContext as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return document.addEventListener(W.RESET_FILTERS, (a) => {
|
|
29
|
-
const { detail: o } = a;
|
|
30
|
-
o.tableId === e && (l(""), c.current && (c.current.value = ""), K());
|
|
31
|
-
}, { signal: t.signal }), () => t.abort();
|
|
1
|
+
import { o as z } from "../../../../rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
+
import { t as V } from "../../../../Input-Cf44DzfE.js";
|
|
3
|
+
import { t as $ } from "../../../../utils-Cx-WzRZF.js";
|
|
4
|
+
import { Button as G } from "../../../Button/Button.js";
|
|
5
|
+
import { resetEvent as H } from "../../../Filter/events/index.js";
|
|
6
|
+
import { Filter as o } from "../../../Filter/Filter.js";
|
|
7
|
+
import { t as J } from "../../../../debounce-C5Ycjilj.js";
|
|
8
|
+
import { useTableContext as K } from "../../contexts/table.hook.js";
|
|
9
|
+
import { getTableId as Q } from "../../utils/get-table-id.js";
|
|
10
|
+
import { t as U } from "../../../../events.types-BG1Uh8i6.js";
|
|
11
|
+
import { useEffect as W, useMemo as X, useRef as Y } from "react";
|
|
12
|
+
import { jsx as n, jsxs as u } from "react/jsx-runtime";
|
|
13
|
+
var Z = /* @__PURE__ */ z(J(), 1), ie = ({ id: i, actions: d, filters: h, multiSelectFilter: b, placeholder: y, showFilterInput: F = !0, showResetButton: v = !0, resetButtonClassName: S, closeOnApply: R = !0 }) => {
|
|
14
|
+
const s = Y(null), m = Q(i), { termOfSearch: T, multiselectSelected: w, dateFilters: D, dateRangeFilters: x, timeFilters: M, onChangeTermOfSearch: l, onSelectMultiselect: E, onSelectDateFilter: j, onSelectDateRangeFilter: k, onSelectTimeFilter: I } = K(), O = [...h ?? b?.map((e) => ({
|
|
15
|
+
...e,
|
|
16
|
+
type: "badgeMultiSelect"
|
|
17
|
+
})) ?? [], ...d ?? []], p = (e, t) => {
|
|
18
|
+
E(e, t.map((a) => a.id));
|
|
19
|
+
}, A = () => {
|
|
20
|
+
l(""), s.current && (s.current.value = "");
|
|
21
|
+
};
|
|
22
|
+
W(() => {
|
|
23
|
+
const e = new AbortController();
|
|
24
|
+
return document.addEventListener(U.RESET_FILTERS, (t) => {
|
|
25
|
+
const { detail: a } = t;
|
|
26
|
+
a.tableId === m && (l(""), s.current && (s.current.value = ""), H(m));
|
|
27
|
+
}, { signal: e.signal }), () => e.abort();
|
|
32
28
|
}, [m, l]);
|
|
33
|
-
const
|
|
29
|
+
const B = X(() => (0, Z.default)((e) => {
|
|
34
30
|
l(e.target.value);
|
|
35
|
-
}, 500), [l]),
|
|
36
|
-
y,
|
|
37
|
-
b,
|
|
38
|
-
F,
|
|
39
|
-
S,
|
|
40
|
-
v
|
|
41
|
-
]), g = (e) => {
|
|
31
|
+
}, 500), [l]), _ = !!T || Object.values(w ?? {}).flat().length > 0 || Object.values(D ?? {}).some(Boolean) || Object.values(x ?? {}).some(Boolean) || Object.values(M ?? {}).some(Boolean), P = (e) => {
|
|
42
32
|
if (e.type === "action") {
|
|
43
|
-
const { label: r, appearance: N = "compact", variant:
|
|
44
|
-
return /* @__PURE__ */
|
|
33
|
+
const { label: r, appearance: N = "compact", variant: g = "secondary", leftIcon: L, rightIcon: f, type: C, ...q } = e;
|
|
34
|
+
return /* @__PURE__ */ u(G, {
|
|
45
35
|
appearance: N,
|
|
46
|
-
variant:
|
|
47
|
-
...
|
|
36
|
+
variant: g,
|
|
37
|
+
...q,
|
|
48
38
|
children: [
|
|
49
|
-
|
|
39
|
+
L,
|
|
50
40
|
r,
|
|
51
|
-
|
|
41
|
+
f
|
|
52
42
|
]
|
|
53
43
|
}, r);
|
|
54
44
|
}
|
|
55
|
-
const { key: t, label: a, position:
|
|
56
|
-
return e.type === "textMultiSelect" ? /* @__PURE__ */
|
|
45
|
+
const { key: t, label: a, position: c = "right" } = e;
|
|
46
|
+
return e.type === "textMultiSelect" ? /* @__PURE__ */ n(o.TextMultiSelect, {
|
|
57
47
|
label: a,
|
|
58
|
-
position:
|
|
48
|
+
position: c,
|
|
59
49
|
options: e.options,
|
|
60
50
|
onApply: (r) => {
|
|
61
|
-
|
|
51
|
+
p(t, r);
|
|
62
52
|
}
|
|
63
|
-
}, t) : e.type === "date" ? /* @__PURE__ */
|
|
53
|
+
}, t) : e.type === "date" ? /* @__PURE__ */ n(o.DateFilterDropdown, {
|
|
64
54
|
label: a,
|
|
65
|
-
position:
|
|
55
|
+
position: c,
|
|
66
56
|
countryCode: e.countryCode,
|
|
67
57
|
onApply: (r) => {
|
|
68
|
-
|
|
58
|
+
j(t, r);
|
|
69
59
|
}
|
|
70
|
-
}, t) : e.type === "dateRange" ? /* @__PURE__ */
|
|
60
|
+
}, t) : e.type === "dateRange" ? /* @__PURE__ */ n(o.DateRangeFilterDropdown, {
|
|
71
61
|
label: a,
|
|
72
|
-
position:
|
|
62
|
+
position: c,
|
|
73
63
|
showTime: e.showTime,
|
|
74
64
|
timeFormat: e.timeFormat,
|
|
75
65
|
showPresets: e.showPresets,
|
|
@@ -78,47 +68,49 @@ var Z = /* @__PURE__ */ $(Q(), 1), ue = ({ id: m, actions: i, filters: d, multiS
|
|
|
78
68
|
maxDate: e.maxDate,
|
|
79
69
|
countryCode: e.countryCode,
|
|
80
70
|
onApply: (r) => {
|
|
81
|
-
|
|
71
|
+
k(t, r);
|
|
82
72
|
},
|
|
83
73
|
onRangeChange: e.onRangeChange
|
|
84
|
-
}, t) : e.type === "time" ? /* @__PURE__ */
|
|
74
|
+
}, t) : e.type === "time" ? /* @__PURE__ */ n(o.TimeFilterDropdown, {
|
|
85
75
|
label: a,
|
|
86
|
-
position:
|
|
76
|
+
position: c,
|
|
87
77
|
format: e.format,
|
|
88
78
|
presets: e.presets,
|
|
89
79
|
showTimePicker: e.showTimePicker,
|
|
90
80
|
onApply: (r) => {
|
|
91
|
-
|
|
81
|
+
I(t, r);
|
|
92
82
|
}
|
|
93
|
-
}, t) : /* @__PURE__ */
|
|
83
|
+
}, t) : /* @__PURE__ */ n(o.BadgeMultiSelect, {
|
|
94
84
|
label: a,
|
|
95
|
-
position:
|
|
85
|
+
position: c,
|
|
96
86
|
options: e.options,
|
|
97
87
|
onApply: (r) => {
|
|
98
|
-
|
|
88
|
+
p(t, r);
|
|
99
89
|
}
|
|
100
90
|
}, t);
|
|
101
91
|
};
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
className: "w-full flex items-center justify-end pb-6",
|
|
104
|
-
children: [
|
|
105
|
-
ref:
|
|
106
|
-
placeholder:
|
|
92
|
+
return /* @__PURE__ */ u("div", {
|
|
93
|
+
className: "kvt-filter w-full flex items-center justify-end pb-6",
|
|
94
|
+
children: [F && /* @__PURE__ */ n(V, {
|
|
95
|
+
ref: s,
|
|
96
|
+
placeholder: y,
|
|
107
97
|
isSearch: !0,
|
|
108
98
|
autoComplete: "false",
|
|
109
|
-
className: "w-72",
|
|
99
|
+
className: "kvt-search w-72",
|
|
110
100
|
inputMode: "search",
|
|
111
|
-
onChange:
|
|
112
|
-
}), /* @__PURE__ */
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
101
|
+
onChange: B
|
|
102
|
+
}), /* @__PURE__ */ u(o, {
|
|
103
|
+
className: "kvt-filter-actions",
|
|
104
|
+
closeOnApply: R,
|
|
105
|
+
resetScope: m,
|
|
106
|
+
children: [O.map(P), v && /* @__PURE__ */ n(o.ResetButton, {
|
|
107
|
+
className: $("select-none", S),
|
|
108
|
+
disabled: !_,
|
|
109
|
+
onClick: A
|
|
118
110
|
})]
|
|
119
111
|
})]
|
|
120
112
|
});
|
|
121
113
|
};
|
|
122
114
|
export {
|
|
123
|
-
|
|
115
|
+
ie as Filter
|
|
124
116
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as s } from "../../../../Input-
|
|
1
|
+
import { t as s } from "../../../../Input-Cf44DzfE.js";
|
|
2
2
|
import { Button as i } from "../../../Button/Button.js";
|
|
3
3
|
import { Typography as p } from "../../../Typography/Typography.js";
|
|
4
4
|
import { useTableContext as u } from "../../contexts/table.hook.js";
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as e, jsxs as
|
|
5
|
+
import { useRef as l } from "react";
|
|
6
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
var N = () => {
|
|
8
|
-
const r =
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
const r = l(null), { totalPages: t, handlePage: m } = u();
|
|
9
|
+
return /* @__PURE__ */ c("form", {
|
|
10
10
|
"aria-label": "footer-pagination",
|
|
11
11
|
ref: r,
|
|
12
|
-
onSubmit:
|
|
13
|
-
|
|
14
|
-
const n = new FormData(
|
|
15
|
-
|
|
16
|
-
},
|
|
12
|
+
onSubmit: (o) => {
|
|
13
|
+
o.preventDefault();
|
|
14
|
+
const n = new FormData(o.currentTarget), a = Number(n.get("jump-to"));
|
|
15
|
+
m(((a < t ? a : t) || 1) - 1), r.current?.reset();
|
|
16
|
+
},
|
|
17
17
|
className: "flex items-center gap-2",
|
|
18
18
|
noValidate: !0,
|
|
19
19
|
children: [
|
|
@@ -1,40 +1,53 @@
|
|
|
1
|
-
import { t
|
|
2
|
-
import { n as
|
|
3
|
-
import { useTableContext as
|
|
1
|
+
import { t } from "../../../../utils-Cx-WzRZF.js";
|
|
2
|
+
import { n as g } from "../../../../table.provider-B0BafHuU.js";
|
|
3
|
+
import { useTableContext as k } from "../../contexts/table.hook.js";
|
|
4
4
|
import u from "../../assets/chevron-up.js";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className: r("w-2 h-2 cursor-pointer", { "text-blue-600 dark:text-aurora-500": e.getIsSorted() === "asc" }, o),
|
|
28
|
-
onClick: () => m(e)
|
|
29
|
-
}), /* @__PURE__ */ a(k, {
|
|
30
|
-
className: r("w-2 h-2 cursor-pointer", { "text-blue-600 dark:text-aurora-500": e.getIsSorted() === "desc" }, o),
|
|
31
|
-
onClick: () => p(e)
|
|
32
|
-
})]
|
|
33
|
-
})]
|
|
5
|
+
import C from "../../assets/chevron-down.js";
|
|
6
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
var D = ({ className: c, classNameArrows: i, classNameActiveArrows: l, classNameHeaderContent: m }) => {
|
|
8
|
+
const { table: s, headerContent: d, onSorting: n } = k(), p = (a) => {
|
|
9
|
+
n([{
|
|
10
|
+
id: a.id,
|
|
11
|
+
desc: !1
|
|
12
|
+
}]);
|
|
13
|
+
}, x = (a) => {
|
|
14
|
+
n([{
|
|
15
|
+
id: a.id,
|
|
16
|
+
desc: !0
|
|
17
|
+
}]);
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ o("thead", {
|
|
20
|
+
className: t("kvt-header", "font-semibold", "uppercase", "text-slate-500", "text-xs", "not-italic", "bg-slate-100", "overflow-hidden", "dark:text-slate-300", "dark:bg-metal-800", c),
|
|
21
|
+
children: [d && /* @__PURE__ */ r("tr", {
|
|
22
|
+
"data-header-content": !0,
|
|
23
|
+
children: /* @__PURE__ */ r("th", {
|
|
24
|
+
colSpan: s.getVisibleLeafColumns().length,
|
|
25
|
+
className: t("kvt-header-content", "px-6", "py-4", "text-left", "text-sm", "font-normal", "normal-case", "text-slate-800", "bg-white", "rounded-tl-lg", "rounded-tr-lg", "border-b", "border-b-gray-200", "dark:border-b-0", "dark:text-metal-50", "dark:bg-metal-900", "dark:border-t", "dark:border-x", "dark:border-metal-700", m),
|
|
26
|
+
children: d
|
|
34
27
|
})
|
|
35
|
-
},
|
|
28
|
+
}), s.getHeaderGroups().map(({ id: a, headers: h }) => /* @__PURE__ */ r("tr", {
|
|
29
|
+
className: "kvt-header-row",
|
|
30
|
+
children: h.map(({ id: b, column: e, getContext: f }) => /* @__PURE__ */ r("th", {
|
|
31
|
+
scope: "col",
|
|
32
|
+
className: t("kvt-header-cell", "px-4", "py-3", "text-left", "text-xs", !d && "first:rounded-tl-lg", !d && "last:rounded-tr-lg", "border-transparent", "dark:border-t", "dark:border-metal-700", "dark:first:border-l", "dark:last:border-r", e.columnDef.meta?.headerClassName),
|
|
33
|
+
children: /* @__PURE__ */ o("span", {
|
|
34
|
+
className: "flex items-center gap-2 w-full",
|
|
35
|
+
children: [g(e.columnDef.header, f()), e.getCanSort() && /* @__PURE__ */ o("div", {
|
|
36
|
+
className: t("flex flex-col text-slate-400 justify-center items-center gap-1", i),
|
|
37
|
+
role: "presentation",
|
|
38
|
+
children: [/* @__PURE__ */ r(u, {
|
|
39
|
+
className: t("w-2 h-2 cursor-pointer", { "text-blue-600 dark:text-aurora-500": e.getIsSorted() === "asc" }, l),
|
|
40
|
+
onClick: () => p(e)
|
|
41
|
+
}), /* @__PURE__ */ r(C, {
|
|
42
|
+
className: t("w-2 h-2 cursor-pointer", { "text-blue-600 dark:text-aurora-500": e.getIsSorted() === "desc" }, l),
|
|
43
|
+
onClick: () => x(e)
|
|
44
|
+
})]
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
}, b))
|
|
48
|
+
}, a))]
|
|
36
49
|
});
|
|
37
50
|
};
|
|
38
51
|
export {
|
|
39
|
-
|
|
52
|
+
D as Header
|
|
40
53
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { useTableContext as
|
|
3
|
-
import { isPaginationBarVisible as
|
|
4
|
-
import { DotPaginate as
|
|
5
|
-
import { DropdownPaginate as
|
|
6
|
-
import { FormPaginate as
|
|
7
|
-
import { Fragment as
|
|
8
|
-
var
|
|
9
|
-
const { totalItems: r = -1 / 0,
|
|
10
|
-
return !
|
|
11
|
-
className:
|
|
1
|
+
import { t as x } from "../../../../utils-Cx-WzRZF.js";
|
|
2
|
+
import { useTableContext as g } from "../../contexts/table.hook.js";
|
|
3
|
+
import { isPaginationBarVisible as b } from "../../utils/pagination.js";
|
|
4
|
+
import { DotPaginate as u } from "../DotPaginate/DotPaginate.js";
|
|
5
|
+
import { DropdownPaginate as h } from "../DropdownPaginate/DropdownPaginate.js";
|
|
6
|
+
import { FormPaginate as v } from "../FormPaginate/FormPaginate.js";
|
|
7
|
+
import { Fragment as N, jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
8
|
+
var I = ({ showTotalItems: a = !0, showDropdownPagination: i = !0, showDotPagination: n = !0, showFormPagination: s = !0, pageSizes: l, classNamePagination: o, isLoading: m, isListPortal: d, dropdownPaginationDirection: c }) => {
|
|
9
|
+
const { totalItems: r = -1 / 0, tableLoading: p, isFirstLoad: f } = g();
|
|
10
|
+
return !b(r) || p || m ? null : /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e("div", {
|
|
11
|
+
className: x("kvt-pagination", "bg-slate-50", "border", "border-y-transparent", "border-x-slate-100", "text-slate-500", "text-sm", "not-italic", "py-2", "px-6", "rounded-b-lg", "shadow", "dark:bg-metal-800", "dark:border-x-metal-700", "dark:border-b-metal-700", o, { "animate-in fade-in-10": !f }),
|
|
12
12
|
children: /* @__PURE__ */ t("div", {
|
|
13
13
|
className: "flex items-center justify-between",
|
|
14
14
|
children: [/* @__PURE__ */ t("div", {
|
|
@@ -18,15 +18,19 @@ var j = ({ showTotalItems: a = !0, showDropdownPagination: i = !0, showDotPagina
|
|
|
18
18
|
children: [r, " Results"]
|
|
19
19
|
}) : null, i && /* @__PURE__ */ e("div", {
|
|
20
20
|
className: "flex items-center gap-2",
|
|
21
|
-
children: /* @__PURE__ */ e(
|
|
21
|
+
children: /* @__PURE__ */ e(h, {
|
|
22
|
+
pageSizes: l,
|
|
23
|
+
isListPortal: d,
|
|
24
|
+
direction: c
|
|
25
|
+
})
|
|
22
26
|
})]
|
|
23
27
|
}), /* @__PURE__ */ t("div", {
|
|
24
28
|
className: "flex items-center gap-8",
|
|
25
|
-
children: [n && /* @__PURE__ */ e(
|
|
29
|
+
children: [n && /* @__PURE__ */ e(u, {}), s && /* @__PURE__ */ e(v, {})]
|
|
26
30
|
})]
|
|
27
31
|
})
|
|
28
|
-
})
|
|
32
|
+
}) });
|
|
29
33
|
};
|
|
30
34
|
export {
|
|
31
|
-
|
|
35
|
+
I as Pagination
|
|
32
36
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as l } from "../../../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { Button as
|
|
3
|
-
import { t as
|
|
4
|
-
import { useTableContext as
|
|
2
|
+
import { Button as b } from "../../../Button/Button.js";
|
|
3
|
+
import { t as m } from "../../../../ellipsis-vertical-BBmhzIXn.js";
|
|
4
|
+
import { useTableContext as c } from "../../contexts/table.hook.js";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
-
var
|
|
7
|
-
const {
|
|
6
|
+
var y = ({ numberOfRows: i, table: o }) => {
|
|
7
|
+
const { tableLoading: n } = c(), t = Array.from({ length: i });
|
|
8
8
|
return /* @__PURE__ */ r("tbody", {
|
|
9
|
-
className: "text-slate-800 text-sm font-normal relative",
|
|
10
|
-
children: t.map((
|
|
9
|
+
className: "kvt-skeleton text-slate-800 text-sm font-normal relative",
|
|
10
|
+
children: t.map((h, e) => {
|
|
11
11
|
const d = o.getAllColumns();
|
|
12
12
|
return /* @__PURE__ */ r("tr", {
|
|
13
13
|
className: l("border-b", "border-b-gray-200", "bg-transparent", "last:border-b-transparent"),
|
|
@@ -25,13 +25,13 @@ var N = ({ numberOfRows: i, table: o }) => {
|
|
|
25
25
|
"[tr:last-child_&:first-of-type]:rounded-bl-lg": e === t.length - 1 && s === 0,
|
|
26
26
|
"[tr:last-child_&:last-of-type]:rounded-br-lg": e === t.length - 1 && s === d.length - 1
|
|
27
27
|
}),
|
|
28
|
-
children: /* @__PURE__ */ r(
|
|
28
|
+
children: /* @__PURE__ */ r(b, {
|
|
29
29
|
variant: "link",
|
|
30
30
|
shape: "circle",
|
|
31
31
|
size: "large",
|
|
32
32
|
disabled: !0,
|
|
33
33
|
"aria-hidden": "true",
|
|
34
|
-
children: /* @__PURE__ */ r(
|
|
34
|
+
children: /* @__PURE__ */ r(m, { className: l("w-5", "h-5", "text-slate-400", "dark:text-metal-700", { "text-gray-300 animate-pulse": n }) })
|
|
35
35
|
})
|
|
36
36
|
}, `skeleton-${a.id}`))
|
|
37
37
|
}, `skeleton-row-${e}`);
|
|
@@ -39,5 +39,5 @@ var N = ({ numberOfRows: i, table: o }) => {
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
y as Skeleton
|
|
43
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as R } from "../../../../rolldown-runtime-Ck3dxwZt.js";
|
|
2
2
|
import { t as i } from "../../../../utils-Cx-WzRZF.js";
|
|
3
3
|
import { Typography as l } from "../../../Typography/Typography.js";
|
|
4
|
-
import { t as _ } from "../../../../debounce-
|
|
4
|
+
import { t as _ } from "../../../../debounce-C5Ycjilj.js";
|
|
5
5
|
import { Tooltip as g } from "../../../Tooltip/Tooltip.js";
|
|
6
6
|
import { useCallback as v, useEffect as a, useRef as z, useState as E } from "react";
|
|
7
7
|
import { jsx as n } from "react/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as n } from "../../../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { useTableContext as
|
|
3
|
-
import { isPaginationBarVisible as
|
|
4
|
-
import { jsx as
|
|
5
|
-
var
|
|
6
|
-
const {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
className: n("shadow rounded-t-lg overflow-hidden", { "rounded-lg": !e || !
|
|
2
|
+
import { useTableContext as d } from "../../contexts/table.hook.js";
|
|
3
|
+
import { isPaginationBarVisible as m } from "../../utils/pagination.js";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
var u = ({ children: o, classNameWrapperTable: r, isLoading: t, showPagination: e }) => {
|
|
6
|
+
const { tableLoading: a, totalItems: i = -1 / 0 } = d();
|
|
7
|
+
return /* @__PURE__ */ s("div", {
|
|
8
|
+
className: n("kvt-wrapper", "shadow rounded-t-lg overflow-hidden", { "rounded-lg": !e || !m(i) || a || t }, r),
|
|
9
9
|
children: o
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
u as WrapperBody
|
|
14
14
|
};
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tableId: t,
|
|
6
|
-
rowId: e
|
|
7
|
-
} }));
|
|
8
|
-
}, i = (t, e) => {
|
|
9
|
-
document.dispatchEvent(new CustomEvent("@konstructio/VirtualizedTable/event-COLLAPSE_ROW", { detail: {
|
|
10
|
-
tableId: t,
|
|
11
|
-
rowId: e
|
|
12
|
-
} }));
|
|
13
|
-
}, E = (t, e) => {
|
|
14
|
-
document.dispatchEvent(new CustomEvent("@konstructio/VirtualizedTable/event-TOGGLE_ROW", { detail: {
|
|
15
|
-
tableId: t,
|
|
16
|
-
rowId: e
|
|
17
|
-
} }));
|
|
18
|
-
}, a = (t) => {
|
|
19
|
-
document.dispatchEvent(new CustomEvent("@konstructio/VirtualizedTable/event-RESET_FILTERS", { detail: { tableId: t } }));
|
|
20
|
-
};
|
|
1
|
+
import { t } from "../../../events.types-BG1Uh8i6.js";
|
|
2
|
+
import { sendResetFiltersEvent as n } from "./filters/filters.js";
|
|
3
|
+
import { sendRefreshEvent as s } from "./refresh/refresh.js";
|
|
4
|
+
import { sendCollapseRowEvent as d, sendExpandRowEvent as i, sendToggleRowEvent as p } from "./row/row.js";
|
|
21
5
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
t as VirtualizedTableEvent,
|
|
7
|
+
d as sendCollapseRowEvent,
|
|
8
|
+
i as sendExpandRowEvent,
|
|
9
|
+
s as sendRefreshEvent,
|
|
10
|
+
n as sendResetFiltersEvent,
|
|
11
|
+
p as sendToggleRowEvent
|
|
27
12
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as n } from "../../../../events.types-BG1Uh8i6.js";
|
|
2
|
+
var d = (e, t) => {
|
|
3
|
+
document.dispatchEvent(new CustomEvent(n.EXPAND_ROW, { detail: {
|
|
4
|
+
tableId: e,
|
|
5
|
+
rowId: t
|
|
6
|
+
} }));
|
|
7
|
+
}, o = (e, t) => {
|
|
8
|
+
document.dispatchEvent(new CustomEvent(n.COLLAPSE_ROW, { detail: {
|
|
9
|
+
tableId: e,
|
|
10
|
+
rowId: t
|
|
11
|
+
} }));
|
|
12
|
+
}, E = (e, t) => {
|
|
13
|
+
document.dispatchEvent(new CustomEvent(n.TOGGLE_ROW, { detail: {
|
|
14
|
+
tableId: e,
|
|
15
|
+
rowId: t
|
|
16
|
+
} }));
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
o as sendCollapseRowEvent,
|
|
20
|
+
d as sendExpandRowEvent,
|
|
21
|
+
E as sendToggleRowEvent
|
|
22
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getTableId as o } from "./get-table-id.js";
|
|
2
|
+
import { isPaginationBarVisible as t } from "./pagination.js";
|
|
2
3
|
export {
|
|
3
|
-
o as
|
|
4
|
+
o as getTableId,
|
|
5
|
+
t as isPaginationBarVisible
|
|
4
6
|
};
|