@epam/uui 5.5.2 → 5.5.3
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/{build/index.esm.js → index.esm.js} +96 -96
- package/{build/index.js → index.js} +96 -96
- package/package.json +7 -7
- package/{build/stats.html → stats.html} +1 -1
- package/{build/styles.css → styles.css} +2501 -2501
- package/{build/styles.css.map → styles.css.map} +1 -1
- package/build/assets/styles/buttonLayout.scss +0 -67
- package/build/assets/styles/controlLayout.scss +0 -28
- package/build/assets/styles/dnd.scss +0 -9
- package/build/assets/styles/effects.scss +0 -7
- package/build/assets/styles/icons.scss +0 -19
- package/build/assets/styles/index.scss +0 -8
- package/build/assets/styles/inputs.scss +0 -74
- package/build/assets/styles/text-size.scss +0 -42
- package/build/assets/styles/typography.scss +0 -174
- package/build/package.json +0 -37
- package/build/readme.md +0 -5
- package/components/buttons/Button.module.scss +0 -157
- package/components/buttons/Button.tsx +0 -53
- package/components/buttons/IconButton.module.scss +0 -44
- package/components/buttons/IconButton.tsx +0 -23
- package/components/buttons/LinkButton.module.scss +0 -85
- package/components/buttons/LinkButton.tsx +0 -48
- package/components/buttons/TabButton.module.scss +0 -94
- package/components/buttons/TabButton.tsx +0 -50
- package/components/buttons/VerticalTabButton.module.scss +0 -7
- package/components/buttons/VerticalTabButton.tsx +0 -12
- package/components/buttons/__tests__/Button.test.tsx +0 -34
- package/components/buttons/__tests__/IconButton.test.tsx +0 -16
- package/components/buttons/__tests__/LinkButton.test.tsx +0 -16
- package/components/buttons/__tests__/TabButton.test.tsx +0 -16
- package/components/buttons/__tests__/VerticalTabButton.test.tsx +0 -16
- package/components/buttons/__tests__/__snapshots__/Button.test.tsx.snap +0 -60
- package/components/buttons/__tests__/__snapshots__/IconButton.test.tsx.snap +0 -34
- package/components/buttons/__tests__/__snapshots__/LinkButton.test.tsx.snap +0 -47
- package/components/buttons/__tests__/__snapshots__/TabButton.test.tsx.snap +0 -31
- package/components/buttons/__tests__/__snapshots__/VerticalTabButton.test.tsx.snap +0 -31
- package/components/buttons/helper.ts +0 -22
- package/components/buttons/index.ts +0 -5
- package/components/datePickers/Calendar.module.scss +0 -143
- package/components/datePickers/Calendar.tsx +0 -10
- package/components/datePickers/CalendarPresets.module.scss +0 -30
- package/components/datePickers/CalendarPresets.tsx +0 -9
- package/components/datePickers/DatePicker.tsx +0 -79
- package/components/datePickers/DatePickerBody.module.scss +0 -107
- package/components/datePickers/DatePickerBody.tsx +0 -78
- package/components/datePickers/DatePickerHeader.module.scss +0 -15
- package/components/datePickers/DatePickerHeader.tsx +0 -126
- package/components/datePickers/RangeDatePicker.module.scss +0 -101
- package/components/datePickers/RangeDatePicker.tsx +0 -120
- package/components/datePickers/RangeDatePickerBody.module.scss +0 -128
- package/components/datePickers/RangeDatePickerBody.tsx +0 -263
- package/components/datePickers/__tests__/Calendar.test.tsx +0 -11
- package/components/datePickers/__tests__/CalendarPresets.test.tsx +0 -11
- package/components/datePickers/__tests__/DatePicker.test.tsx +0 -153
- package/components/datePickers/__tests__/DatePickerBody.test.tsx +0 -64
- package/components/datePickers/__tests__/DatePickerHeader.test.tsx +0 -195
- package/components/datePickers/__tests__/RangeDatePicker.test.tsx +0 -323
- package/components/datePickers/__tests__/RangeDatePickerBody.test.tsx +0 -284
- package/components/datePickers/__tests__/__snapshots__/Calendar.test.tsx.snap +0 -524
- package/components/datePickers/__tests__/__snapshots__/CalendarPresets.test.tsx.snap +0 -61
- package/components/datePickers/__tests__/__snapshots__/DatePicker.test.tsx.snap +0 -59
- package/components/datePickers/__tests__/__snapshots__/DatePickerBody.test.tsx.snap +0 -619
- package/components/datePickers/__tests__/__snapshots__/RangeDatePicker.test.tsx.snap +0 -119
- package/components/datePickers/__tests__/__snapshots__/RangeDatePickerBody.test.tsx.snap +0 -1231
- package/components/datePickers/index.ts +0 -5
- package/components/dnd/DropMarker.module.scss +0 -62
- package/components/dnd/DropMarker.tsx +0 -28
- package/components/dnd/__tests__/DropMarker.test.tsx +0 -31
- package/components/dnd/__tests__/__snapshots__/DropMarker.test.tsx.snap +0 -7
- package/components/dnd/index.tsx +0 -1
- package/components/fileUpload/DropSpot.module.scss +0 -47
- package/components/fileUpload/DropSpot.tsx +0 -68
- package/components/fileUpload/FileCard.module.scss +0 -88
- package/components/fileUpload/FileCard.tsx +0 -147
- package/components/fileUpload/SvgCircleProgress.module.scss +0 -8
- package/components/fileUpload/SvgCircleProgress.tsx +0 -41
- package/components/fileUpload/__tests__/DropSpot.test.tsx +0 -15
- package/components/fileUpload/__tests__/FileCard.test.tsx +0 -57
- package/components/fileUpload/__tests__/SvgCircleProgress.test.tsx +0 -10
- package/components/fileUpload/__tests__/__snapshots__/DropSpot.test.tsx.snap +0 -130
- package/components/fileUpload/__tests__/__snapshots__/FileCard.test.tsx.snap +0 -266
- package/components/fileUpload/__tests__/__snapshots__/SvgCircleProgress.test.tsx.snap +0 -26
- package/components/fileUpload/index.ts +0 -3
- package/components/filters/FilterDatePickerBody.tsx +0 -58
- package/components/filters/FilterItemBody.tsx +0 -23
- package/components/filters/FilterNumericBody.module.scss +0 -4
- package/components/filters/FilterNumericBody.tsx +0 -131
- package/components/filters/FilterPanelItemToggler.module.scss +0 -140
- package/components/filters/FilterPanelItemToggler.tsx +0 -91
- package/components/filters/FilterPickerBody.tsx +0 -75
- package/components/filters/FilterRangeDatePickerBody.module.scss +0 -92
- package/components/filters/FilterRangeDatePickerBody.tsx +0 -85
- package/components/filters/FiltersPanel.tsx +0 -218
- package/components/filters/FiltersPanelItem.module.scss +0 -22
- package/components/filters/FiltersPanelItem.tsx +0 -269
- package/components/filters/PresetPanel/Preset.module.scss +0 -25
- package/components/filters/PresetPanel/Preset.tsx +0 -61
- package/components/filters/PresetPanel/PresetActionsDropdown.module.scss +0 -23
- package/components/filters/PresetPanel/PresetActionsDropdown.tsx +0 -138
- package/components/filters/PresetPanel/PresetInput.module.scss +0 -55
- package/components/filters/PresetPanel/PresetInput.tsx +0 -54
- package/components/filters/PresetPanel/PresetsPanel.module.scss +0 -34
- package/components/filters/PresetPanel/PresetsPanel.tsx +0 -112
- package/components/filters/PresetPanel/__tests__/Preset.test.tsx +0 -44
- package/components/filters/PresetPanel/__tests__/PresetActionsDropdown.test.tsx +0 -28
- package/components/filters/PresetPanel/__tests__/PresetInput.test.tsx +0 -10
- package/components/filters/PresetPanel/__tests__/__snapshots__/Preset.test.tsx.snap +0 -101
- package/components/filters/PresetPanel/__tests__/__snapshots__/PresetActionsDropdown.test.tsx.snap +0 -19
- package/components/filters/PresetPanel/__tests__/__snapshots__/PresetInput.test.tsx.snap +0 -38
- package/components/filters/PresetPanel/__tests__/__snapshots__/presetsPanel.test.tsx.snap +0 -101
- package/components/filters/PresetPanel/__tests__/presetsPanel.test.tsx +0 -381
- package/components/filters/PresetPanel/constants.ts +0 -4
- package/components/filters/PresetPanel/index.ts +0 -1
- package/components/filters/__tests__/__snapshots__/filtersPanel.test.tsx.snap +0 -295
- package/components/filters/__tests__/filtersPanel.test.tsx +0 -375
- package/components/filters/constants.ts +0 -4
- package/components/filters/defaultPredicates.ts +0 -11
- package/components/filters/index.ts +0 -4
- package/components/forms/Form.tsx +0 -39
- package/components/forms/index.tsx +0 -2
- package/components/forms/useForm.tsx +0 -39
- package/components/index.ts +0 -14
- package/components/inputs/Checkbox.module.scss +0 -162
- package/components/inputs/Checkbox.tsx +0 -43
- package/components/inputs/InputAddon.module.scss +0 -11
- package/components/inputs/InputAddon.tsx +0 -11
- package/components/inputs/MultiSwitch.tsx +0 -54
- package/components/inputs/NumericInput.module.scss +0 -97
- package/components/inputs/NumericInput.tsx +0 -53
- package/components/inputs/RadioInput.module.scss +0 -200
- package/components/inputs/RadioInput.tsx +0 -30
- package/components/inputs/Slider.module.scss +0 -130
- package/components/inputs/Slider.tsx +0 -11
- package/components/inputs/Switch.module.scss +0 -172
- package/components/inputs/Switch.tsx +0 -22
- package/components/inputs/TextArea.module.scss +0 -210
- package/components/inputs/TextArea.tsx +0 -47
- package/components/inputs/TextInput.module.scss +0 -199
- package/components/inputs/TextInput.tsx +0 -60
- package/components/inputs/TimePicker.module.scss +0 -68
- package/components/inputs/TimePicker.tsx +0 -79
- package/components/inputs/TimePickerBody.tsx +0 -10
- package/components/inputs/__tests__/Checkbox.test.tsx +0 -15
- package/components/inputs/__tests__/InputAddon.test.tsx +0 -12
- package/components/inputs/__tests__/MultiSwitch.test.tsx +0 -16
- package/components/inputs/__tests__/NumericInput.test.tsx +0 -19
- package/components/inputs/__tests__/RadioInput.test.tsx +0 -15
- package/components/inputs/__tests__/Slider.test.tsx +0 -22
- package/components/inputs/__tests__/Switch.test.tsx +0 -15
- package/components/inputs/__tests__/TextArea.test.tsx +0 -15
- package/components/inputs/__tests__/TextInput.test.tsx +0 -20
- package/components/inputs/__tests__/TimePicker.test.tsx +0 -19
- package/components/inputs/__tests__/TimePickerBody.test.tsx +0 -38
- package/components/inputs/__tests__/__snapshots__/Checkbox.test.tsx.snap +0 -37
- package/components/inputs/__tests__/__snapshots__/InputAddon.test.tsx.snap +0 -9
- package/components/inputs/__tests__/__snapshots__/MultiSwitch.test.tsx.snap +0 -37
- package/components/inputs/__tests__/__snapshots__/NumericInput.test.tsx.snap +0 -95
- package/components/inputs/__tests__/__snapshots__/RadioInput.test.tsx.snap +0 -40
- package/components/inputs/__tests__/__snapshots__/Slider.test.tsx.snap +0 -157
- package/components/inputs/__tests__/__snapshots__/Switch.test.tsx.snap +0 -48
- package/components/inputs/__tests__/__snapshots__/TextArea.test.tsx.snap +0 -38
- package/components/inputs/__tests__/__snapshots__/TextInput.test.tsx.snap +0 -55
- package/components/inputs/__tests__/__snapshots__/TimePicker.test.tsx +0 -19
- package/components/inputs/__tests__/__snapshots__/TimePicker.test.tsx.snap +0 -45
- package/components/inputs/__tests__/__snapshots__/TimePickerBody.test.tsx +0 -38
- package/components/inputs/__tests__/__snapshots__/TimePickerBody.test.tsx.snap +0 -327
- package/components/inputs/__tests__/__snapshots__/__snapshots__/TimePicker.test.tsx.snap +0 -45
- package/components/inputs/__tests__/__snapshots__/__snapshots__/TimePickerBody.test.tsx.snap +0 -327
- package/components/inputs/index.ts +0 -10
- package/components/layout/Accordion.module.scss +0 -180
- package/components/layout/Accordion.tsx +0 -35
- package/components/layout/Blocker.module.scss +0 -30
- package/components/layout/Blocker.tsx +0 -11
- package/components/layout/CheckboxGroup.module.scss +0 -21
- package/components/layout/CheckboxGroup.tsx +0 -74
- package/components/layout/ControlGroup.module.scss +0 -15
- package/components/layout/ControlGroup.tsx +0 -5
- package/components/layout/FlexItems/FlexCell.module.scss +0 -5
- package/components/layout/FlexItems/FlexCell.tsx +0 -11
- package/components/layout/FlexItems/FlexRow.module.scss +0 -122
- package/components/layout/FlexItems/FlexRow.tsx +0 -63
- package/components/layout/FlexItems/Panel.module.scss +0 -34
- package/components/layout/FlexItems/Panel.tsx +0 -29
- package/components/layout/FlexItems/__tests__/FlexCell.test.tsx +0 -15
- package/components/layout/FlexItems/__tests__/FlexRow.test.tsx +0 -17
- package/components/layout/FlexItems/__tests__/FlexSpacer.test.tsx +0 -10
- package/components/layout/FlexItems/__tests__/Panel.test.tsx +0 -15
- package/components/layout/FlexItems/__tests__/__snapshots__/FlexCell.test.tsx.snap +0 -34
- package/components/layout/FlexItems/__tests__/__snapshots__/FlexRow.test.tsx.snap +0 -26
- package/components/layout/FlexItems/__tests__/__snapshots__/FlexSpacer.test.tsx.snap +0 -7
- package/components/layout/FlexItems/__tests__/__snapshots__/Panel.test.tsx.snap +0 -14
- package/components/layout/FlexItems/index.ts +0 -4
- package/components/layout/LabeledInput.module.scss +0 -139
- package/components/layout/LabeledInput.tsx +0 -22
- package/components/layout/RadioGroup.module.scss +0 -21
- package/components/layout/RadioGroup.tsx +0 -68
- package/components/layout/ScrollBars.module.scss +0 -56
- package/components/layout/ScrollBars.tsx +0 -11
- package/components/layout/VirtualList.module.scss +0 -10
- package/components/layout/VirtualList.tsx +0 -126
- package/components/layout/__tests__/Accordion.test.tsx +0 -16
- package/components/layout/__tests__/Blocker.test.tsx +0 -10
- package/components/layout/__tests__/CheckboxGroup.test.tsx +0 -33
- package/components/layout/__tests__/ControlGroup.test.tsx +0 -18
- package/components/layout/__tests__/LabeledInput.test.tsx +0 -26
- package/components/layout/__tests__/RadioGroup.test.tsx +0 -33
- package/components/layout/__tests__/ScrollBars.test.tsx +0 -17
- package/components/layout/__tests__/VirtualList.test.tsx +0 -10
- package/components/layout/__tests__/__snapshots__/Accordion.test.tsx.snap +0 -65
- package/components/layout/__tests__/__snapshots__/Blocker.test.tsx.snap +0 -36
- package/components/layout/__tests__/__snapshots__/CheckboxGroup.test.tsx.snap +0 -99
- package/components/layout/__tests__/__snapshots__/ControlGroup.test.tsx.snap +0 -33
- package/components/layout/__tests__/__snapshots__/LabeledInput.test.tsx.snap +0 -89
- package/components/layout/__tests__/__snapshots__/RadioGroup.test.tsx.snap +0 -95
- package/components/layout/__tests__/__snapshots__/ScrollBars.test.tsx.snap +0 -68
- package/components/layout/__tests__/__snapshots__/VirtualList.test.tsx.snap +0 -90
- package/components/layout/index.ts +0 -10
- package/components/navigation/Anchor.module.scss +0 -7
- package/components/navigation/Anchor.tsx +0 -5
- package/components/navigation/MainMenu/Burger/Burger.module.scss +0 -81
- package/components/navigation/MainMenu/Burger/Burger.tsx +0 -18
- package/components/navigation/MainMenu/Burger/BurgerButton.module.scss +0 -69
- package/components/navigation/MainMenu/Burger/BurgerButton.tsx +0 -28
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.module.scss +0 -31
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.tsx +0 -19
- package/components/navigation/MainMenu/Burger/BurgerSearch.module.scss +0 -51
- package/components/navigation/MainMenu/Burger/BurgerSearch.tsx +0 -23
- package/components/navigation/MainMenu/Burger/__tests__/Burger.test.tsx +0 -13
- package/components/navigation/MainMenu/Burger/__tests__/BurgerButton.test.tsx +0 -18
- package/components/navigation/MainMenu/Burger/__tests__/BurgerGroupHeader.test.tsx +0 -10
- package/components/navigation/MainMenu/Burger/__tests__/BurgerSearch.test.tsx +0 -20
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/Burger.test.tsx.snap +0 -21
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/BurgerButton.test.tsx.snap +0 -46
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/BurgerGroupHeader.test.tsx.snap +0 -16
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/BurgerSearch.test.tsx.snap +0 -55
- package/components/navigation/MainMenu/Burger/index.ts +0 -4
- package/components/navigation/MainMenu/GlobalMenu.module.scss +0 -32
- package/components/navigation/MainMenu/GlobalMenu.tsx +0 -15
- package/components/navigation/MainMenu/MainMenu.module.scss +0 -53
- package/components/navigation/MainMenu/MainMenu.tsx +0 -22
- package/components/navigation/MainMenu/MainMenuAvatar.module.scss +0 -41
- package/components/navigation/MainMenu/MainMenuAvatar.tsx +0 -31
- package/components/navigation/MainMenu/MainMenuButton.module.scss +0 -60
- package/components/navigation/MainMenu/MainMenuButton.tsx +0 -17
- package/components/navigation/MainMenu/MainMenuDropdown.module.scss +0 -44
- package/components/navigation/MainMenu/MainMenuDropdown.tsx +0 -47
- package/components/navigation/MainMenu/MainMenuIcon.module.scss +0 -25
- package/components/navigation/MainMenu/MainMenuIcon.tsx +0 -17
- package/components/navigation/MainMenu/MainMenuSearch.module.scss +0 -51
- package/components/navigation/MainMenu/MainMenuSearch.tsx +0 -27
- package/components/navigation/MainMenu/__tests__/GlobalMenu.test.tsx +0 -10
- package/components/navigation/MainMenu/__tests__/MainMenu.test.tsx +0 -45
- package/components/navigation/MainMenu/__tests__/MainMenuAvatar.test.tsx +0 -27
- package/components/navigation/MainMenu/__tests__/MainMenuButton.test.tsx +0 -30
- package/components/navigation/MainMenu/__tests__/MainMenuDropdown.test.tsx +0 -24
- package/components/navigation/MainMenu/__tests__/MainMenuIcon.test.tsx +0 -18
- package/components/navigation/MainMenu/__tests__/MainMenuSearch.test.tsx +0 -28
- package/components/navigation/MainMenu/__tests__/__snapshots__/GlobalMenu.test.tsx.snap +0 -17
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenu.test.tsx.snap +0 -103
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuAvatar.test.tsx.snap +0 -39
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuButton.test.tsx.snap +0 -37
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuDropdown.test.tsx.snap +0 -46
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuIcon.test.tsx.snap +0 -39
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuSearch.test.tsx.snap +0 -55
- package/components/navigation/MainMenu/index.ts +0 -8
- package/components/navigation/__tests__/Anchor.test.tsx +0 -21
- package/components/navigation/__tests__/__snapshots__/Anchor.test.tsx.snap +0 -29
- package/components/navigation/index.ts +0 -2
- package/components/overlays/Alert.module.scss +0 -77
- package/components/overlays/Alert.tsx +0 -89
- package/components/overlays/ConfirmationModal.tsx +0 -41
- package/components/overlays/Dropdown.tsx +0 -4
- package/components/overlays/DropdownContainer.module.scss +0 -93
- package/components/overlays/DropdownContainer.tsx +0 -27
- package/components/overlays/DropdownMenu.module.scss +0 -181
- package/components/overlays/DropdownMenu.tsx +0 -262
- package/components/overlays/Modals.module.scss +0 -63
- package/components/overlays/Modals.tsx +0 -92
- package/components/overlays/NotificationCard.module.scss +0 -76
- package/components/overlays/NotificationCard.tsx +0 -103
- package/components/overlays/Tooltip.module.scss +0 -90
- package/components/overlays/Tooltip.tsx +0 -24
- package/components/overlays/__tests__/Alert.test.tsx +0 -57
- package/components/overlays/__tests__/ConfirmationModal.test.tsx +0 -29
- package/components/overlays/__tests__/Dropdown.test.tsx +0 -16
- package/components/overlays/__tests__/DropdownContainer.test.tsx +0 -28
- package/components/overlays/__tests__/DropdownMenu.test.tsx +0 -26
- package/components/overlays/__tests__/Modals.test.tsx +0 -35
- package/components/overlays/__tests__/NotificationCard.test.tsx +0 -52
- package/components/overlays/__tests__/Tooltip.test.tsx +0 -20
- package/components/overlays/__tests__/__snapshots__/Alert.test.tsx.snap +0 -183
- package/components/overlays/__tests__/__snapshots__/ConfirmationModal.test.tsx.snap +0 -351
- package/components/overlays/__tests__/__snapshots__/Dropdown.test.tsx.snap +0 -51
- package/components/overlays/__tests__/__snapshots__/DropdownContainer.test.tsx.snap +0 -45
- package/components/overlays/__tests__/__snapshots__/DropdownMenu.test.tsx.snap +0 -90
- package/components/overlays/__tests__/__snapshots__/Modals.test.tsx.snap +0 -134
- package/components/overlays/__tests__/__snapshots__/NotificationCard.test.tsx.snap +0 -284
- package/components/overlays/__tests__/__snapshots__/Tooltip.test.tsx.snap +0 -5
- package/components/overlays/index.ts +0 -8
- package/components/pickers/DataPickerBody.module.scss +0 -54
- package/components/pickers/DataPickerBody.tsx +0 -69
- package/components/pickers/DataPickerCell.module.scss +0 -93
- package/components/pickers/DataPickerCell.tsx +0 -95
- package/components/pickers/DataPickerFooter.tsx +0 -85
- package/components/pickers/DataPickerHeader.module.scss +0 -19
- package/components/pickers/DataPickerHeader.tsx +0 -24
- package/components/pickers/DataPickerRow.module.scss +0 -11
- package/components/pickers/DataPickerRow.tsx +0 -38
- package/components/pickers/MobileDropdownWrapper.module.scss +0 -20
- package/components/pickers/MobileDropdownWrapper.tsx +0 -40
- package/components/pickers/PickerInput.module.scss +0 -39
- package/components/pickers/PickerInput.tsx +0 -197
- package/components/pickers/PickerItem.module.scss +0 -32
- package/components/pickers/PickerItem.tsx +0 -66
- package/components/pickers/PickerList.tsx +0 -83
- package/components/pickers/PickerListItem.module.scss +0 -3
- package/components/pickers/PickerListItem.tsx +0 -55
- package/components/pickers/PickerModal.module.scss +0 -27
- package/components/pickers/PickerModal.tsx +0 -167
- package/components/pickers/PickerToggler.module.scss +0 -249
- package/components/pickers/PickerToggler.tsx +0 -88
- package/components/pickers/__tests__/DataPickerBody.test.tsx +0 -58
- package/components/pickers/__tests__/DataPickerRow.test.tsx +0 -39
- package/components/pickers/__tests__/PickerInput.test.tsx +0 -1073
- package/components/pickers/__tests__/PickerList.test.tsx +0 -597
- package/components/pickers/__tests__/PickerModal.test.tsx +0 -521
- package/components/pickers/__tests__/PickerToggler.test.tsx +0 -40
- package/components/pickers/__tests__/__snapshots__/DataPickerBody.test.tsx.snap +0 -201
- package/components/pickers/__tests__/__snapshots__/DataPickerRow.test.tsx.snap +0 -100
- package/components/pickers/__tests__/__snapshots__/PickerInput.test.tsx.snap +0 -705
- package/components/pickers/__tests__/__snapshots__/PickerList.test.tsx.snap +0 -980
- package/components/pickers/__tests__/__snapshots__/PickerModal.test.tsx.snap +0 -2062
- package/components/pickers/__tests__/__snapshots__/PickerToggler.test.tsx.snap +0 -81
- package/components/pickers/__tests__/highlight.test.tsx +0 -37
- package/components/pickers/__tests__/mocks.ts +0 -87
- package/components/pickers/helpers.ts +0 -4
- package/components/pickers/highlight.tsx +0 -93
- package/components/pickers/index.ts +0 -12
- package/components/pickers/types.ts +0 -7
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.tsx +0 -46
- package/components/tables/ColumnHeaderDropdown/SortingPanel.module.scss +0 -14
- package/components/tables/ColumnHeaderDropdown/SortingPanel.tsx +0 -27
- package/components/tables/ColumnHeaderDropdown/index.ts +0 -1
- package/components/tables/DataRowsContainer/DataRowsContainer.module.scss +0 -21
- package/components/tables/DataRowsContainer/DataRowsContainer.tsx +0 -27
- package/components/tables/DataRowsContainer/DataRowsGroups.tsx +0 -86
- package/components/tables/DataRowsContainer/index.tsx +0 -1
- package/components/tables/DataRowsContainer/utils.ts +0 -15
- package/components/tables/DataTable.module.scss +0 -54
- package/components/tables/DataTable.tsx +0 -172
- package/components/tables/DataTableCell.module.scss +0 -65
- package/components/tables/DataTableCell.tsx +0 -51
- package/components/tables/DataTableHeaderCell.module.scss +0 -161
- package/components/tables/DataTableHeaderCell.tsx +0 -151
- package/components/tables/DataTableHeaderRow.module.scss +0 -23
- package/components/tables/DataTableHeaderRow.tsx +0 -19
- package/components/tables/DataTableRow.module.scss +0 -58
- package/components/tables/DataTableRow.tsx +0 -31
- package/components/tables/__tests__/ColumnHeaderDropdown.test.tsx +0 -25
- package/components/tables/__tests__/DataTable.test.tsx +0 -23
- package/components/tables/__tests__/DataTableCell.test.tsx +0 -66
- package/components/tables/__tests__/DataTableHeaderCell.test.tsx +0 -21
- package/components/tables/__tests__/DataTableHeaderRow.test.tsx +0 -28
- package/components/tables/__tests__/DataTableRow.test.tsx +0 -30
- package/components/tables/__tests__/__snapshots__/ColumnHeaderDropdown.test.tsx.snap +0 -138
- package/components/tables/__tests__/__snapshots__/DataTable.test.tsx.snap +0 -122
- package/components/tables/__tests__/__snapshots__/DataTableCell.test.tsx.snap +0 -45
- package/components/tables/__tests__/__snapshots__/DataTableHeaderCell.test.tsx.snap +0 -34
- package/components/tables/__tests__/__snapshots__/DataTableHeaderRow.test.tsx.snap +0 -51
- package/components/tables/__tests__/__snapshots__/DataTableRow.test.tsx.snap +0 -54
- package/components/tables/columnsConfigurationModal/ColumnRow.module.scss +0 -45
- package/components/tables/columnsConfigurationModal/ColumnRow.tsx +0 -66
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.module.scss +0 -55
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.tsx +0 -153
- package/components/tables/columnsConfigurationModal/PinIconButton.tsx +0 -55
- package/components/tables/columnsConfigurationModal/__tests__/ColumnsConfigurationModal.test.tsx +0 -72
- package/components/tables/columnsConfigurationModal/__tests__/__snapshots__/ColumnsConfigurationModal.test.tsx.snap +0 -877
- package/components/tables/columnsConfigurationModal/index.ts +0 -1
- package/components/tables/index.ts +0 -9
- package/components/tables/types.ts +0 -33
- package/components/tables/variables.scss +0 -25
- package/components/types.ts +0 -34
- package/components/typography/RichTextView.tsx +0 -17
- package/components/typography/Text.module.scss +0 -54
- package/components/typography/Text.tsx +0 -59
- package/components/typography/TextPlaceholder.module.scss +0 -46
- package/components/typography/TextPlaceholder.tsx +0 -38
- package/components/typography/__tests__/RichTextView.test.tsx +0 -27
- package/components/typography/__tests__/Text.test.tsx +0 -21
- package/components/typography/__tests__/TextPlaceholder.test.tsx +0 -23
- package/components/typography/__tests__/__snapshots__/RichTextView.test.tsx.snap +0 -21
- package/components/typography/__tests__/__snapshots__/Text.test.tsx.snap +0 -18
- package/components/typography/__tests__/__snapshots__/TextPlaceholder.test.tsx.snap +0 -65
- package/components/typography/index.ts +0 -3
- package/components/widgets/AvatarStack.module.scss +0 -36
- package/components/widgets/AvatarStack.tsx +0 -5
- package/components/widgets/Badge.module.scss +0 -334
- package/components/widgets/Badge.tsx +0 -97
- package/components/widgets/CountIndicator.module.scss +0 -52
- package/components/widgets/CountIndicator.tsx +0 -38
- package/components/widgets/DataRowAddons.module.scss +0 -57
- package/components/widgets/DataRowAddons.tsx +0 -66
- package/components/widgets/IndeterminateBar.module.scss +0 -42
- package/components/widgets/IndeterminateBar.tsx +0 -16
- package/components/widgets/IndicatorBar.module.scss +0 -3
- package/components/widgets/IndicatorBar.tsx +0 -20
- package/components/widgets/Paginator.module.scss +0 -66
- package/components/widgets/Paginator.tsx +0 -64
- package/components/widgets/ProgressBar.module.scss +0 -52
- package/components/widgets/ProgressBar.tsx +0 -33
- package/components/widgets/Spinner.module.scss +0 -38
- package/components/widgets/Spinner.tsx +0 -11
- package/components/widgets/StatusIndicator.module.scss +0 -72
- package/components/widgets/StatusIndicator.tsx +0 -50
- package/components/widgets/Tag.module.scss +0 -142
- package/components/widgets/Tag.tsx +0 -73
- package/components/widgets/__tests__/AvatarStack.test.tsx +0 -19
- package/components/widgets/__tests__/Badge.test.tsx +0 -30
- package/components/widgets/__tests__/IndeterminateBar.test.tsx +0 -15
- package/components/widgets/__tests__/IndicatorBar.test.tsx +0 -15
- package/components/widgets/__tests__/Paginator.test.tsx +0 -19
- package/components/widgets/__tests__/ProgressBar.test.tsx +0 -25
- package/components/widgets/__tests__/Spinner.test.tsx +0 -10
- package/components/widgets/__tests__/StatusIndicator.test.tsx +0 -17
- package/components/widgets/__tests__/Tag.test.tsx +0 -18
- package/components/widgets/__tests__/__snapshots__/AvatarStack.test.tsx.snap +0 -55
- package/components/widgets/__tests__/__snapshots__/Badge.test.tsx.snap +0 -48
- package/components/widgets/__tests__/__snapshots__/IndeterminateBar.test.tsx.snap +0 -21
- package/components/widgets/__tests__/__snapshots__/IndicatorBar.test.tsx.snap +0 -30
- package/components/widgets/__tests__/__snapshots__/Paginator.test.tsx.snap +0 -127
- package/components/widgets/__tests__/__snapshots__/ProgressBar.test.tsx.snap +0 -107
- package/components/widgets/__tests__/__snapshots__/Spinner.test.tsx.snap +0 -21
- package/components/widgets/__tests__/__snapshots__/StatusIndicator.test.tsx.snap +0 -31
- package/components/widgets/__tests__/__snapshots__/Tag.test.tsx.snap +0 -48
- package/components/widgets/index.ts +0 -12
- package/globals.d.ts +0 -12
- package/helpers/index.ts +0 -2
- package/helpers/text-layout.module.scss +0 -81
- package/helpers/textLayout.tsx +0 -35
- package/helpers/useColumnsWithFilters.tsx +0 -34
- package/i18n.ts +0 -105
- package/icons/accept-12.svg +0 -1
- package/icons/accept-18.svg +0 -1
- package/icons/accept-24.svg +0 -1
- package/icons/action-settings-12.svg +0 -1
- package/icons/action-settings-18.svg +0 -1
- package/icons/action-settings-24.svg +0 -1
- package/icons/btn-cross-12.svg +0 -1
- package/icons/btn-cross-18.svg +0 -1
- package/icons/btn-cross-24.svg +0 -1
- package/icons/burger-close.svg +0 -3
- package/icons/burger.svg +0 -3
- package/icons/calendar-12.svg +0 -1
- package/icons/calendar-18.svg +0 -1
- package/icons/calendar-24.svg +0 -1
- package/icons/check-12.svg +0 -3
- package/icons/check-18.svg +0 -3
- package/icons/checkbox-checked.svg +0 -21
- package/icons/checkbox-partial.svg +0 -21
- package/icons/checkbox_tick.svg +0 -44
- package/icons/chevron-down-24.svg +0 -1
- package/icons/chevron-up-24.svg +0 -1
- package/icons/content-edit-12.svg +0 -1
- package/icons/content-edit-18.svg +0 -1
- package/icons/content-edit-24.svg +0 -1
- package/icons/empty-table.svg +0 -58
- package/icons/fileUpload/file-file-24.svg +0 -1
- package/icons/fileUpload/file-file_chart-24.svg +0 -1
- package/icons/fileUpload/file-file_eml-24.svg +0 -1
- package/icons/fileUpload/file-file_excel-24.svg +0 -1
- package/icons/fileUpload/file-file_image-24.svg +0 -1
- package/icons/fileUpload/file-file_pdf-24.svg +0 -1
- package/icons/fileUpload/file-file_table-24.svg +0 -1
- package/icons/fileUpload/file-file_text-24.svg +0 -1
- package/icons/fileUpload/file-file_video-24.svg +0 -1
- package/icons/fileUpload/file-file_word-24.svg +0 -1
- package/icons/fileUpload/shape.svg +0 -2
- package/icons/filter.svg +0 -11
- package/icons/folding-arrow-12.svg +0 -1
- package/icons/folding-arrow-18.svg +0 -1
- package/icons/folding-arrow-24.svg +0 -1
- package/icons/global_menu.svg +0 -9
- package/icons/help-fill-10.svg +0 -3
- package/icons/help-fill-16.svg +0 -3
- package/icons/icons.tsx +0 -116
- package/icons/info-12.svg +0 -3
- package/icons/info-18.svg +0 -1
- package/icons/info-24.svg +0 -1
- package/icons/logo-arrow.svg +0 -4
- package/icons/menu_input_cancel.svg +0 -84
- package/icons/modal-close-cross.svg +0 -22
- package/icons/navigation-close-24.svg +0 -1
- package/icons/navigation-more_vert-12.svg +0 -1
- package/icons/navigation-more_vert-18.svg +0 -1
- package/icons/navigation-more_vert-24.svg +0 -1
- package/icons/notification-check_circle-fill-24.svg +0 -1
- package/icons/notification-done-12.svg +0 -1
- package/icons/notification-done-18.svg +0 -1
- package/icons/notification-done-24.svg +0 -1
- package/icons/notification-error-fill-10.svg +0 -1
- package/icons/notification-error-fill-24.svg +0 -1
- package/icons/notification-help-fill-24.svg +0 -1
- package/icons/notification-warning-fill-24.svg +0 -1
- package/icons/partly-select-12.svg +0 -3
- package/icons/partly-select-18.svg +0 -3
- package/icons/radio-point.svg +0 -3
- package/icons/search-12.svg +0 -1
- package/icons/search-18.svg +0 -1
- package/icons/search-24.svg +0 -1
- package/icons/search-with-background.svg +0 -4
- package/icons/settings-18.svg +0 -1
- package/icons/slider-rating/active_mark_blue_icon.svg +0 -23
- package/icons/slider-rating/active_mark_green_icon.svg +0 -23
- package/icons/slider-rating/active_mark_red_icon.svg +0 -23
- package/icons/slider-rating/active_mark_violet_icon.svg +0 -23
- package/icons/slider-rating/active_mark_yellow_icon.svg +0 -23
- package/icons/slider-rating/line_blue_icon.svg +0 -31
- package/icons/slider-rating/line_gray_icon.svg +0 -20
- package/icons/slider-rating/line_red_icon.svg +0 -42
- package/icons/slider-rating/line_violet_icon.svg +0 -33
- package/icons/slider-rating/line_yellow_icon.svg +0 -34
- package/icons/slider-rating/na_active_icon.svg +0 -13
- package/icons/slider-rating/na_icon.svg +0 -13
- package/icons/snackbar/cross.svg +0 -1
- package/icons/snackbar/info.svg +0 -1
- package/icons/snackbar/success.svg +0 -1
- package/icons/snackbar/warning.svg +0 -1
- package/icons/sort.svg +0 -5
- package/icons/sort_asc-12.svg +0 -1
- package/icons/sort_desc-12.svg +0 -1
- package/icons/star-empty.svg +0 -3
- package/icons/star-filled.svg +0 -3
- package/icons/tick-12.svg +0 -1
- package/icons/tick-24.svg +0 -1
- package/icons/triangle.svg +0 -10
- package/index.tsx +0 -5
- package/themeTodo.md +0 -21
- package/tsconfig.json +0 -12
- /package/{build/components → components}/buttons/Button.d.ts +0 -0
- /package/{build/components → components}/buttons/Button.d.ts.map +0 -0
- /package/{build/components → components}/buttons/IconButton.d.ts +0 -0
- /package/{build/components → components}/buttons/IconButton.d.ts.map +0 -0
- /package/{build/components → components}/buttons/LinkButton.d.ts +0 -0
- /package/{build/components → components}/buttons/LinkButton.d.ts.map +0 -0
- /package/{build/components → components}/buttons/TabButton.d.ts +0 -0
- /package/{build/components → components}/buttons/TabButton.d.ts.map +0 -0
- /package/{build/components → components}/buttons/VerticalTabButton.d.ts +0 -0
- /package/{build/components → components}/buttons/VerticalTabButton.d.ts.map +0 -0
- /package/{build/components → components}/buttons/helper.d.ts +0 -0
- /package/{build/components → components}/buttons/helper.d.ts.map +0 -0
- /package/{build/components → components}/buttons/index.d.ts +0 -0
- /package/{build/components → components}/buttons/index.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/Calendar.d.ts +0 -0
- /package/{build/components → components}/datePickers/Calendar.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/CalendarPresets.d.ts +0 -0
- /package/{build/components → components}/datePickers/CalendarPresets.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/DatePicker.d.ts +0 -0
- /package/{build/components → components}/datePickers/DatePicker.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/DatePickerBody.d.ts +0 -0
- /package/{build/components → components}/datePickers/DatePickerBody.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/DatePickerHeader.d.ts +0 -0
- /package/{build/components → components}/datePickers/DatePickerHeader.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/RangeDatePicker.d.ts +0 -0
- /package/{build/components → components}/datePickers/RangeDatePicker.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/RangeDatePickerBody.d.ts +0 -0
- /package/{build/components → components}/datePickers/RangeDatePickerBody.d.ts.map +0 -0
- /package/{build/components → components}/datePickers/index.d.ts +0 -0
- /package/{build/components → components}/datePickers/index.d.ts.map +0 -0
- /package/{build/components → components}/dnd/DropMarker.d.ts +0 -0
- /package/{build/components → components}/dnd/DropMarker.d.ts.map +0 -0
- /package/{build/components → components}/dnd/index.d.ts +0 -0
- /package/{build/components → components}/dnd/index.d.ts.map +0 -0
- /package/{build/components → components}/fileUpload/DropSpot.d.ts +0 -0
- /package/{build/components → components}/fileUpload/DropSpot.d.ts.map +0 -0
- /package/{build/components → components}/fileUpload/FileCard.d.ts +0 -0
- /package/{build/components → components}/fileUpload/FileCard.d.ts.map +0 -0
- /package/{build/components → components}/fileUpload/SvgCircleProgress.d.ts +0 -0
- /package/{build/components → components}/fileUpload/SvgCircleProgress.d.ts.map +0 -0
- /package/{build/components → components}/fileUpload/index.d.ts +0 -0
- /package/{build/components → components}/fileUpload/index.d.ts.map +0 -0
- /package/{build/components → components}/filters/FilterDatePickerBody.d.ts +0 -0
- /package/{build/components → components}/filters/FilterDatePickerBody.d.ts.map +0 -0
- /package/{build/components → components}/filters/FilterItemBody.d.ts +0 -0
- /package/{build/components → components}/filters/FilterItemBody.d.ts.map +0 -0
- /package/{build/components → components}/filters/FilterNumericBody.d.ts +0 -0
- /package/{build/components → components}/filters/FilterNumericBody.d.ts.map +0 -0
- /package/{build/components → components}/filters/FilterPanelItemToggler.d.ts +0 -0
- /package/{build/components → components}/filters/FilterPanelItemToggler.d.ts.map +0 -0
- /package/{build/components → components}/filters/FilterPickerBody.d.ts +0 -0
- /package/{build/components → components}/filters/FilterPickerBody.d.ts.map +0 -0
- /package/{build/components → components}/filters/FilterRangeDatePickerBody.d.ts +0 -0
- /package/{build/components → components}/filters/FilterRangeDatePickerBody.d.ts.map +0 -0
- /package/{build/components → components}/filters/FiltersPanel.d.ts +0 -0
- /package/{build/components → components}/filters/FiltersPanel.d.ts.map +0 -0
- /package/{build/components → components}/filters/FiltersPanelItem.d.ts +0 -0
- /package/{build/components → components}/filters/FiltersPanelItem.d.ts.map +0 -0
- /package/{build/components → components}/filters/PresetPanel/Preset.d.ts +0 -0
- /package/{build/components → components}/filters/PresetPanel/Preset.d.ts.map +0 -0
- /package/{build/components → components}/filters/PresetPanel/PresetActionsDropdown.d.ts +0 -0
- /package/{build/components → components}/filters/PresetPanel/PresetActionsDropdown.d.ts.map +0 -0
- /package/{build/components → components}/filters/PresetPanel/PresetInput.d.ts +0 -0
- /package/{build/components → components}/filters/PresetPanel/PresetInput.d.ts.map +0 -0
- /package/{build/components → components}/filters/PresetPanel/PresetsPanel.d.ts +0 -0
- /package/{build/components → components}/filters/PresetPanel/PresetsPanel.d.ts.map +0 -0
- /package/{build/components → components}/filters/PresetPanel/constants.d.ts +0 -0
- /package/{build/components → components}/filters/PresetPanel/constants.d.ts.map +0 -0
- /package/{build/components → components}/filters/PresetPanel/index.d.ts +0 -0
- /package/{build/components → components}/filters/PresetPanel/index.d.ts.map +0 -0
- /package/{build/components → components}/filters/constants.d.ts +0 -0
- /package/{build/components → components}/filters/constants.d.ts.map +0 -0
- /package/{build/components → components}/filters/defaultPredicates.d.ts +0 -0
- /package/{build/components → components}/filters/defaultPredicates.d.ts.map +0 -0
- /package/{build/components → components}/filters/index.d.ts +0 -0
- /package/{build/components → components}/filters/index.d.ts.map +0 -0
- /package/{build/components → components}/forms/Form.d.ts +0 -0
- /package/{build/components → components}/forms/Form.d.ts.map +0 -0
- /package/{build/components → components}/forms/index.d.ts +0 -0
- /package/{build/components → components}/forms/index.d.ts.map +0 -0
- /package/{build/components → components}/forms/useForm.d.ts +0 -0
- /package/{build/components → components}/forms/useForm.d.ts.map +0 -0
- /package/{build/components → components}/index.d.ts +0 -0
- /package/{build/components → components}/index.d.ts.map +0 -0
- /package/{build/components → components}/inputs/Checkbox.d.ts +0 -0
- /package/{build/components → components}/inputs/Checkbox.d.ts.map +0 -0
- /package/{build/components → components}/inputs/InputAddon.d.ts +0 -0
- /package/{build/components → components}/inputs/InputAddon.d.ts.map +0 -0
- /package/{build/components → components}/inputs/MultiSwitch.d.ts +0 -0
- /package/{build/components → components}/inputs/MultiSwitch.d.ts.map +0 -0
- /package/{build/components → components}/inputs/NumericInput.d.ts +0 -0
- /package/{build/components → components}/inputs/NumericInput.d.ts.map +0 -0
- /package/{build/components → components}/inputs/RadioInput.d.ts +0 -0
- /package/{build/components → components}/inputs/RadioInput.d.ts.map +0 -0
- /package/{build/components → components}/inputs/Slider.d.ts +0 -0
- /package/{build/components → components}/inputs/Slider.d.ts.map +0 -0
- /package/{build/components → components}/inputs/Switch.d.ts +0 -0
- /package/{build/components → components}/inputs/Switch.d.ts.map +0 -0
- /package/{build/components → components}/inputs/TextArea.d.ts +0 -0
- /package/{build/components → components}/inputs/TextArea.d.ts.map +0 -0
- /package/{build/components → components}/inputs/TextInput.d.ts +0 -0
- /package/{build/components → components}/inputs/TextInput.d.ts.map +0 -0
- /package/{build/components → components}/inputs/TimePicker.d.ts +0 -0
- /package/{build/components → components}/inputs/TimePicker.d.ts.map +0 -0
- /package/{build/components → components}/inputs/TimePickerBody.d.ts +0 -0
- /package/{build/components → components}/inputs/TimePickerBody.d.ts.map +0 -0
- /package/{build/components → components}/inputs/index.d.ts +0 -0
- /package/{build/components → components}/inputs/index.d.ts.map +0 -0
- /package/{build/components → components}/layout/Accordion.d.ts +0 -0
- /package/{build/components → components}/layout/Accordion.d.ts.map +0 -0
- /package/{build/components → components}/layout/Blocker.d.ts +0 -0
- /package/{build/components → components}/layout/Blocker.d.ts.map +0 -0
- /package/{build/components → components}/layout/CheckboxGroup.d.ts +0 -0
- /package/{build/components → components}/layout/CheckboxGroup.d.ts.map +0 -0
- /package/{build/components → components}/layout/ControlGroup.d.ts +0 -0
- /package/{build/components → components}/layout/ControlGroup.d.ts.map +0 -0
- /package/{build/components → components}/layout/FlexItems/FlexCell.d.ts +0 -0
- /package/{build/components → components}/layout/FlexItems/FlexCell.d.ts.map +0 -0
- /package/{build/components → components}/layout/FlexItems/FlexRow.d.ts +0 -0
- /package/{build/components → components}/layout/FlexItems/FlexRow.d.ts.map +0 -0
- /package/{build/components → components}/layout/FlexItems/Panel.d.ts +0 -0
- /package/{build/components → components}/layout/FlexItems/Panel.d.ts.map +0 -0
- /package/{build/components → components}/layout/FlexItems/index.d.ts +0 -0
- /package/{build/components → components}/layout/FlexItems/index.d.ts.map +0 -0
- /package/{build/components → components}/layout/LabeledInput.d.ts +0 -0
- /package/{build/components → components}/layout/LabeledInput.d.ts.map +0 -0
- /package/{build/components → components}/layout/RadioGroup.d.ts +0 -0
- /package/{build/components → components}/layout/RadioGroup.d.ts.map +0 -0
- /package/{build/components → components}/layout/ScrollBars.d.ts +0 -0
- /package/{build/components → components}/layout/ScrollBars.d.ts.map +0 -0
- /package/{build/components → components}/layout/VirtualList.d.ts +0 -0
- /package/{build/components → components}/layout/VirtualList.d.ts.map +0 -0
- /package/{build/components → components}/layout/index.d.ts +0 -0
- /package/{build/components → components}/layout/index.d.ts.map +0 -0
- /package/{build/components → components}/navigation/Anchor.d.ts +0 -0
- /package/{build/components → components}/navigation/Anchor.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/Burger.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/Burger.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/BurgerButton.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/BurgerButton.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/BurgerSearch.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/BurgerSearch.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/index.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/Burger/index.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/GlobalMenu.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/GlobalMenu.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenu.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenu.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuAvatar.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuAvatar.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuButton.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuButton.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuDropdown.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuDropdown.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuIcon.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuIcon.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuSearch.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/MainMenuSearch.d.ts.map +0 -0
- /package/{build/components → components}/navigation/MainMenu/index.d.ts +0 -0
- /package/{build/components → components}/navigation/MainMenu/index.d.ts.map +0 -0
- /package/{build/components → components}/navigation/index.d.ts +0 -0
- /package/{build/components → components}/navigation/index.d.ts.map +0 -0
- /package/{build/components → components}/overlays/Alert.d.ts +0 -0
- /package/{build/components → components}/overlays/Alert.d.ts.map +0 -0
- /package/{build/components → components}/overlays/ConfirmationModal.d.ts +0 -0
- /package/{build/components → components}/overlays/ConfirmationModal.d.ts.map +0 -0
- /package/{build/components → components}/overlays/Dropdown.d.ts +0 -0
- /package/{build/components → components}/overlays/Dropdown.d.ts.map +0 -0
- /package/{build/components → components}/overlays/DropdownContainer.d.ts +0 -0
- /package/{build/components → components}/overlays/DropdownContainer.d.ts.map +0 -0
- /package/{build/components → components}/overlays/DropdownMenu.d.ts +0 -0
- /package/{build/components → components}/overlays/DropdownMenu.d.ts.map +0 -0
- /package/{build/components → components}/overlays/Modals.d.ts +0 -0
- /package/{build/components → components}/overlays/Modals.d.ts.map +0 -0
- /package/{build/components → components}/overlays/NotificationCard.d.ts +0 -0
- /package/{build/components → components}/overlays/NotificationCard.d.ts.map +0 -0
- /package/{build/components → components}/overlays/Tooltip.d.ts +0 -0
- /package/{build/components → components}/overlays/Tooltip.d.ts.map +0 -0
- /package/{build/components → components}/overlays/index.d.ts +0 -0
- /package/{build/components → components}/overlays/index.d.ts.map +0 -0
- /package/{build/components → components}/pickers/DataPickerBody.d.ts +0 -0
- /package/{build/components → components}/pickers/DataPickerBody.d.ts.map +0 -0
- /package/{build/components → components}/pickers/DataPickerCell.d.ts +0 -0
- /package/{build/components → components}/pickers/DataPickerCell.d.ts.map +0 -0
- /package/{build/components → components}/pickers/DataPickerFooter.d.ts +0 -0
- /package/{build/components → components}/pickers/DataPickerFooter.d.ts.map +0 -0
- /package/{build/components → components}/pickers/DataPickerHeader.d.ts +0 -0
- /package/{build/components → components}/pickers/DataPickerHeader.d.ts.map +0 -0
- /package/{build/components → components}/pickers/DataPickerRow.d.ts +0 -0
- /package/{build/components → components}/pickers/DataPickerRow.d.ts.map +0 -0
- /package/{build/components → components}/pickers/MobileDropdownWrapper.d.ts +0 -0
- /package/{build/components → components}/pickers/MobileDropdownWrapper.d.ts.map +0 -0
- /package/{build/components → components}/pickers/PickerInput.d.ts +0 -0
- /package/{build/components → components}/pickers/PickerInput.d.ts.map +0 -0
- /package/{build/components → components}/pickers/PickerItem.d.ts +0 -0
- /package/{build/components → components}/pickers/PickerItem.d.ts.map +0 -0
- /package/{build/components → components}/pickers/PickerList.d.ts +0 -0
- /package/{build/components → components}/pickers/PickerList.d.ts.map +0 -0
- /package/{build/components → components}/pickers/PickerListItem.d.ts +0 -0
- /package/{build/components → components}/pickers/PickerListItem.d.ts.map +0 -0
- /package/{build/components → components}/pickers/PickerModal.d.ts +0 -0
- /package/{build/components → components}/pickers/PickerModal.d.ts.map +0 -0
- /package/{build/components → components}/pickers/PickerToggler.d.ts +0 -0
- /package/{build/components → components}/pickers/PickerToggler.d.ts.map +0 -0
- /package/{build/components → components}/pickers/helpers.d.ts +0 -0
- /package/{build/components → components}/pickers/helpers.d.ts.map +0 -0
- /package/{build/components → components}/pickers/highlight.d.ts +0 -0
- /package/{build/components → components}/pickers/highlight.d.ts.map +0 -0
- /package/{build/components → components}/pickers/index.d.ts +0 -0
- /package/{build/components → components}/pickers/index.d.ts.map +0 -0
- /package/{build/components → components}/pickers/types.d.ts +0 -0
- /package/{build/components → components}/pickers/types.d.ts.map +0 -0
- /package/{build/components → components}/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts +0 -0
- /package/{build/components → components}/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts.map +0 -0
- /package/{build/components → components}/tables/ColumnHeaderDropdown/SortingPanel.d.ts +0 -0
- /package/{build/components → components}/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +0 -0
- /package/{build/components → components}/tables/ColumnHeaderDropdown/index.d.ts +0 -0
- /package/{build/components → components}/tables/ColumnHeaderDropdown/index.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/DataRowsContainer.d.ts +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/DataRowsContainer.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/DataRowsGroups.d.ts +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/DataRowsGroups.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/index.d.ts +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/index.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/utils.d.ts +0 -0
- /package/{build/components → components}/tables/DataRowsContainer/utils.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataTable.d.ts +0 -0
- /package/{build/components → components}/tables/DataTable.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataTableCell.d.ts +0 -0
- /package/{build/components → components}/tables/DataTableCell.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataTableHeaderCell.d.ts +0 -0
- /package/{build/components → components}/tables/DataTableHeaderCell.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataTableHeaderRow.d.ts +0 -0
- /package/{build/components → components}/tables/DataTableHeaderRow.d.ts.map +0 -0
- /package/{build/components → components}/tables/DataTableRow.d.ts +0 -0
- /package/{build/components → components}/tables/DataTableRow.d.ts.map +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/ColumnRow.d.ts +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/ColumnRow.d.ts.map +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/PinIconButton.d.ts +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/PinIconButton.d.ts.map +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/index.d.ts +0 -0
- /package/{build/components → components}/tables/columnsConfigurationModal/index.d.ts.map +0 -0
- /package/{build/components → components}/tables/index.d.ts +0 -0
- /package/{build/components → components}/tables/index.d.ts.map +0 -0
- /package/{build/components → components}/tables/types.d.ts +0 -0
- /package/{build/components → components}/tables/types.d.ts.map +0 -0
- /package/{build/components → components}/types.d.ts +0 -0
- /package/{build/components → components}/types.d.ts.map +0 -0
- /package/{build/components → components}/typography/RichTextView.d.ts +0 -0
- /package/{build/components → components}/typography/RichTextView.d.ts.map +0 -0
- /package/{build/components → components}/typography/Text.d.ts +0 -0
- /package/{build/components → components}/typography/Text.d.ts.map +0 -0
- /package/{build/components → components}/typography/TextPlaceholder.d.ts +0 -0
- /package/{build/components → components}/typography/TextPlaceholder.d.ts.map +0 -0
- /package/{build/components → components}/typography/index.d.ts +0 -0
- /package/{build/components → components}/typography/index.d.ts.map +0 -0
- /package/{build/components → components}/widgets/AvatarStack.d.ts +0 -0
- /package/{build/components → components}/widgets/AvatarStack.d.ts.map +0 -0
- /package/{build/components → components}/widgets/Badge.d.ts +0 -0
- /package/{build/components → components}/widgets/Badge.d.ts.map +0 -0
- /package/{build/components → components}/widgets/CountIndicator.d.ts +0 -0
- /package/{build/components → components}/widgets/CountIndicator.d.ts.map +0 -0
- /package/{build/components → components}/widgets/DataRowAddons.d.ts +0 -0
- /package/{build/components → components}/widgets/DataRowAddons.d.ts.map +0 -0
- /package/{build/components → components}/widgets/IndeterminateBar.d.ts +0 -0
- /package/{build/components → components}/widgets/IndeterminateBar.d.ts.map +0 -0
- /package/{build/components → components}/widgets/IndicatorBar.d.ts +0 -0
- /package/{build/components → components}/widgets/IndicatorBar.d.ts.map +0 -0
- /package/{build/components → components}/widgets/Paginator.d.ts +0 -0
- /package/{build/components → components}/widgets/Paginator.d.ts.map +0 -0
- /package/{build/components → components}/widgets/ProgressBar.d.ts +0 -0
- /package/{build/components → components}/widgets/ProgressBar.d.ts.map +0 -0
- /package/{build/components → components}/widgets/Spinner.d.ts +0 -0
- /package/{build/components → components}/widgets/Spinner.d.ts.map +0 -0
- /package/{build/components → components}/widgets/StatusIndicator.d.ts +0 -0
- /package/{build/components → components}/widgets/StatusIndicator.d.ts.map +0 -0
- /package/{build/components → components}/widgets/Tag.d.ts +0 -0
- /package/{build/components → components}/widgets/Tag.d.ts.map +0 -0
- /package/{build/components → components}/widgets/index.d.ts +0 -0
- /package/{build/components → components}/widgets/index.d.ts.map +0 -0
- /package/{build/helpers → helpers}/index.d.ts +0 -0
- /package/{build/helpers → helpers}/index.d.ts.map +0 -0
- /package/{build/helpers → helpers}/textLayout.d.ts +0 -0
- /package/{build/helpers → helpers}/textLayout.d.ts.map +0 -0
- /package/{build/helpers → helpers}/useColumnsWithFilters.d.ts +0 -0
- /package/{build/helpers → helpers}/useColumnsWithFilters.d.ts.map +0 -0
- /package/{build/i18n.d.ts → i18n.d.ts} +0 -0
- /package/{build/i18n.d.ts.map → i18n.d.ts.map} +0 -0
- /package/{build/icons → icons}/icons.d.ts +0 -0
- /package/{build/icons → icons}/icons.d.ts.map +0 -0
- /package/{build/index.d.ts → index.d.ts} +0 -0
- /package/{build/index.d.ts.map → index.d.ts.map} +0 -0
- /package/{build/index.esm.js.map → index.esm.js.map} +0 -0
- /package/{build/index.js.map → index.js.map} +0 -0
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IconContainer, DataTableSelectionProvider, DataTableFocusManager, DataTableFocusProvider } from '@epam/uui-components';
|
|
3
|
-
import { useColumnsWithFilters } from '../../helpers';
|
|
4
|
-
import {
|
|
5
|
-
ColumnsConfig, DataRowProps, useUuiContext, uuiScrollShadows, useColumnsConfig, IEditable, DataTableState, DataTableColumnsConfigOptions,
|
|
6
|
-
DataSourceListProps, DataColumnProps, cx, TableFiltersConfig, DataTableRowProps, DataTableSelectedCellData,
|
|
7
|
-
} from '@epam/uui-core';
|
|
8
|
-
import { DataTableHeaderRow } from './DataTableHeaderRow';
|
|
9
|
-
import { DataTableRow } from './DataTableRow';
|
|
10
|
-
import { DataTableMods, DataTableRowMods } from './types';
|
|
11
|
-
import { ColumnsConfigurationModal, ColumnsConfigurationModalProps } from './columnsConfigurationModal';
|
|
12
|
-
import { VirtualList, VirtualListRenderRowsParams, VirtualListProps } from '../layout';
|
|
13
|
-
import { DataRowsContainer } from './DataRowsContainer';
|
|
14
|
-
import { ReactComponent as EmptyTableIcon } from '../../icons/empty-table.svg';
|
|
15
|
-
import { Text } from '../typography';
|
|
16
|
-
import css from './DataTable.module.scss';
|
|
17
|
-
import './variables.scss';
|
|
18
|
-
import { i18n } from '../../i18n';
|
|
19
|
-
|
|
20
|
-
export interface DataTableProps<TItem, TId, TFilter = any> extends IEditable<DataTableState>, DataSourceListProps, DataTableColumnsConfigOptions, Pick<VirtualListProps, 'onScroll'> {
|
|
21
|
-
/** Callback to get rows that will be rendered in table */
|
|
22
|
-
getRows(): DataRowProps<TItem, TId>[];
|
|
23
|
-
/** Array of all possible columns for the table */
|
|
24
|
-
columns: DataColumnProps<TItem, TId>[];
|
|
25
|
-
/** Render callback for the table row.
|
|
26
|
-
* If omitted, default DataTableRow implementation will be rendered.
|
|
27
|
-
* */
|
|
28
|
-
renderRow?(props: DataTableRowProps<TItem, TId>): React.ReactNode;
|
|
29
|
-
/** Render callback for the 'No results' block. Will be rendered when table doesn't have rows for displaying, e.g. after search applying.
|
|
30
|
-
* If omitted, default implementation will be rendered.
|
|
31
|
-
* */
|
|
32
|
-
renderNoResultsBlock?(): React.ReactNode;
|
|
33
|
-
/** Pass true to enable the column configuration button in the last column header. On this button click will show the columns configuration modal.
|
|
34
|
-
* Note that you need to have at least one column fixed to the right for proper display
|
|
35
|
-
* */
|
|
36
|
-
showColumnsConfig?: boolean;
|
|
37
|
-
/** Array of filters to be added to the column header.
|
|
38
|
-
* For each filter, you need to specify the `columnKey` of the column where it will be attached.
|
|
39
|
-
* */
|
|
40
|
-
filters?: TableFiltersConfig<any>[];
|
|
41
|
-
/** Called when cell content is copied to other cells via the DataTable cell copying mechanism.
|
|
42
|
-
* This callback is typically used to update the state according to the changes.
|
|
43
|
-
* To enable cell copying, provide the canCopy prop for the column.
|
|
44
|
-
* */
|
|
45
|
-
onCopy?: (copyFrom: DataTableSelectedCellData<TItem, TId, TFilter>, selectedCells: DataTableSelectedCellData<TItem, TId, TFilter>[]) => void;
|
|
46
|
-
/** Render callback for column configuration modal.
|
|
47
|
-
* If omitted, default `ColumnsConfigurationModal` implementation will be rendered.
|
|
48
|
-
*/
|
|
49
|
-
renderColumnsConfigurationModal?: (props: ColumnsConfigurationModalProps<TItem, TId, TFilter>) => React.ReactNode;
|
|
50
|
-
dataTableFocusManager?: DataTableFocusManager<TId>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function DataTable<TItem, TId>(props: React.PropsWithChildren<DataTableProps<TItem, TId> & DataTableMods>) {
|
|
54
|
-
const { uuiModals } = useUuiContext();
|
|
55
|
-
const headerRef = React.useRef<HTMLDivElement>();
|
|
56
|
-
const columnsWithFilters = useColumnsWithFilters(props.columns, props.filters);
|
|
57
|
-
const { columns, config, defaultConfig } = useColumnsConfig(columnsWithFilters, props.value?.columnsConfig);
|
|
58
|
-
|
|
59
|
-
const defaultRenderRow = React.useCallback((rowProps: DataRowProps<TItem, TId> & DataTableRowMods) => {
|
|
60
|
-
return <DataTableRow key={ rowProps.rowKey } size={ props.size } borderBottom={ props.border } { ...rowProps } cx={ css.cell } />;
|
|
61
|
-
}, []);
|
|
62
|
-
|
|
63
|
-
const renderRow = (row: DataRowProps<TItem, TId>) => (props.renderRow ?? defaultRenderRow)({ ...row, columns });
|
|
64
|
-
const rows = props.getRows();
|
|
65
|
-
|
|
66
|
-
const renderNoResultsBlock = React.useCallback(() => {
|
|
67
|
-
return (
|
|
68
|
-
<div className={ css.noResults }>
|
|
69
|
-
{props.renderNoResultsBlock ? (
|
|
70
|
-
props.renderNoResultsBlock?.()
|
|
71
|
-
) : (
|
|
72
|
-
<>
|
|
73
|
-
<IconContainer cx={ css.noResultsIcon } icon={ EmptyTableIcon } />
|
|
74
|
-
<Text cx={ css.noResultsTitle } fontSize="24" lineHeight="30" color="primary" fontWeight="600">
|
|
75
|
-
{i18n.tables.noResultsBlock.title}
|
|
76
|
-
</Text>
|
|
77
|
-
<Text fontSize="16" lineHeight="24" color="primary">
|
|
78
|
-
{i18n.tables.noResultsBlock.message}
|
|
79
|
-
</Text>
|
|
80
|
-
</>
|
|
81
|
-
)}
|
|
82
|
-
</div>
|
|
83
|
-
);
|
|
84
|
-
}, [props.renderNoResultsBlock]);
|
|
85
|
-
|
|
86
|
-
const onConfigurationButtonClick = React.useCallback(() => {
|
|
87
|
-
const configProps = { columns: props.columns, columnsConfig: { ...config }, defaultConfig };
|
|
88
|
-
|
|
89
|
-
uuiModals
|
|
90
|
-
.show<ColumnsConfig>((modalProps) => {
|
|
91
|
-
return (
|
|
92
|
-
props.renderColumnsConfigurationModal
|
|
93
|
-
? props.renderColumnsConfigurationModal({ ...configProps, ...modalProps })
|
|
94
|
-
: (
|
|
95
|
-
<ColumnsConfigurationModal
|
|
96
|
-
{ ...modalProps }
|
|
97
|
-
columns={ props.columns }
|
|
98
|
-
columnsConfig={ config }
|
|
99
|
-
defaultConfig={ defaultConfig }
|
|
100
|
-
/>
|
|
101
|
-
)
|
|
102
|
-
);
|
|
103
|
-
})
|
|
104
|
-
.then((columnsConfig) => props.onValueChange({ ...props.value, columnsConfig }))
|
|
105
|
-
.catch(() => null);
|
|
106
|
-
}, [
|
|
107
|
-
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
108
|
-
]);
|
|
109
|
-
|
|
110
|
-
const renderRowsContainer = React.useCallback(
|
|
111
|
-
({ listContainerRef, estimatedHeight, offsetY, scrollShadows }: VirtualListRenderRowsParams) => (
|
|
112
|
-
<>
|
|
113
|
-
<div className={ css.stickyHeader } ref={ headerRef }>
|
|
114
|
-
<DataTableHeaderRow
|
|
115
|
-
columns={ columns }
|
|
116
|
-
onConfigButtonClick={ props.showColumnsConfig && onConfigurationButtonClick }
|
|
117
|
-
selectAll={ props.selectAll }
|
|
118
|
-
size={ props.size }
|
|
119
|
-
textCase={ props.headerTextCase }
|
|
120
|
-
allowColumnsReordering={ props.allowColumnsReordering }
|
|
121
|
-
allowColumnsResizing={ props.allowColumnsResizing }
|
|
122
|
-
value={ { ...props.value, columnsConfig: config } }
|
|
123
|
-
onValueChange={ props.onValueChange }
|
|
124
|
-
/>
|
|
125
|
-
<div
|
|
126
|
-
className={ cx(uuiScrollShadows.top, {
|
|
127
|
-
[uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
128
|
-
}) }
|
|
129
|
-
/>
|
|
130
|
-
</div>
|
|
131
|
-
{props.exactRowsCount !== 0 ? (
|
|
132
|
-
<DataRowsContainer
|
|
133
|
-
headerRef={ headerRef }
|
|
134
|
-
listContainerRef={ listContainerRef }
|
|
135
|
-
estimatedHeight={ estimatedHeight }
|
|
136
|
-
offsetY={ offsetY }
|
|
137
|
-
scrollShadows={ scrollShadows }
|
|
138
|
-
renderRow={ renderRow }
|
|
139
|
-
rows={ rows }
|
|
140
|
-
/>
|
|
141
|
-
) : (
|
|
142
|
-
renderNoResultsBlock?.()
|
|
143
|
-
)}
|
|
144
|
-
</>
|
|
145
|
-
),
|
|
146
|
-
[
|
|
147
|
-
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
148
|
-
],
|
|
149
|
-
);
|
|
150
|
-
|
|
151
|
-
return (
|
|
152
|
-
<DataTableSelectionProvider onCopy={ props.onCopy } rows={ rows } columns={ columns }>
|
|
153
|
-
<DataTableFocusProvider dataTableFocusManager={ props.dataTableFocusManager }>
|
|
154
|
-
<VirtualList
|
|
155
|
-
value={ props.value }
|
|
156
|
-
onValueChange={ props.onValueChange }
|
|
157
|
-
onScroll={ props.onScroll }
|
|
158
|
-
rowsCount={ props.rowsCount }
|
|
159
|
-
renderRows={ renderRowsContainer }
|
|
160
|
-
cx={ cx(css.table, 'uui-dt-vars') }
|
|
161
|
-
isLoading={ props.isReloading }
|
|
162
|
-
rowsSelector="[role=row]"
|
|
163
|
-
rawProps={ {
|
|
164
|
-
role: 'table',
|
|
165
|
-
'aria-colcount': columns.length,
|
|
166
|
-
'aria-rowcount': props.rowsCount,
|
|
167
|
-
} }
|
|
168
|
-
/>
|
|
169
|
-
</DataTableFocusProvider>
|
|
170
|
-
</DataTableSelectionProvider>
|
|
171
|
-
);
|
|
172
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
.cell {
|
|
2
|
-
&.wrapper {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: flex-start;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
&.align-widgets-top {
|
|
8
|
-
&.size-24, &.size-30 {
|
|
9
|
-
:global(.uui-checkbox), :global(.uui-folding-arrow) {
|
|
10
|
-
margin-top: 6px;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&.size-36 {
|
|
15
|
-
:global(.uui-checkbox), :global(.uui-folding-arrow) {
|
|
16
|
-
margin-top: 9px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.size-42 {
|
|
21
|
-
:global(.uui-checkbox), :global(.uui-folding-arrow) {
|
|
22
|
-
margin-top: 12px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.size-48 {
|
|
27
|
-
:global(.uui-checkbox), :global(.uui-folding-arrow) {
|
|
28
|
-
margin-top: 15px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.size-60 {
|
|
33
|
-
:global(.uui-checkbox), :global(.uui-folding-arrow) {
|
|
34
|
-
margin-top: 21px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.align-widgets-center :global(.uui-checkbox-container) {
|
|
40
|
-
align-self: center;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.padding-12 { padding: 0 12px; }
|
|
44
|
-
&.padding-24 { padding: 0 24px; }
|
|
45
|
-
|
|
46
|
-
&.padding-left-12 { padding-left: 12px; }
|
|
47
|
-
&.padding-left-24 { padding-left: 24px; }
|
|
48
|
-
|
|
49
|
-
&.padding-right-24 { padding-right: 24px; }
|
|
50
|
-
|
|
51
|
-
&:global(.uui-invalid) {
|
|
52
|
-
background-color: var(--uui-dt-cell-bg-invalid);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:global(.uui-dt-vertical-cell-border) {
|
|
57
|
-
border-left-color: var(--uui-dt-border);
|
|
58
|
-
border-right-color: var(--uui-dt-border);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.loading-cell {
|
|
62
|
-
div[aria-busy='true'] > span {
|
|
63
|
-
margin: 0 3px 0 0;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DataTableCellProps } from '@epam/uui-core';
|
|
3
|
-
import { DataTableCell as UuiDataTableCell } from '@epam/uui-components';
|
|
4
|
-
import { DataRowAddons } from '../widgets';
|
|
5
|
-
import { DataTableCellMods } from './types';
|
|
6
|
-
import { TextPlaceholder, Text } from '../typography';
|
|
7
|
-
import { Tooltip } from '../overlays';
|
|
8
|
-
import css from './DataTableCell.module.scss';
|
|
9
|
-
import './variables.scss';
|
|
10
|
-
|
|
11
|
-
export function DataTableCell<TItem, TId, TCellValue>(props: DataTableCellProps<TItem, TId, TCellValue> & DataTableCellMods) {
|
|
12
|
-
props = { ...props };
|
|
13
|
-
|
|
14
|
-
if (props.isFirstColumn) {
|
|
15
|
-
props.addons = <DataRowAddons { ...props } />;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
props.renderPlaceholder = props.renderPlaceholder
|
|
19
|
-
|| (() => (
|
|
20
|
-
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
21
|
-
<Text key="t" size={ props.size !== '60' ? props.size : '48' } cx={ css.loadingCell }>
|
|
22
|
-
<TextPlaceholder />
|
|
23
|
-
</Text>
|
|
24
|
-
));
|
|
25
|
-
|
|
26
|
-
props.renderUnknown = props.renderUnknown
|
|
27
|
-
|| (() => (
|
|
28
|
-
<Text key="t" size={ props.size !== '60' ? props.size : '48' }>
|
|
29
|
-
Unknown
|
|
30
|
-
</Text>
|
|
31
|
-
));
|
|
32
|
-
|
|
33
|
-
props.renderTooltip = (tooltipProps) => <Tooltip color="critical" { ...tooltipProps } />;
|
|
34
|
-
|
|
35
|
-
const isEditable = !!props.onValueChange;
|
|
36
|
-
|
|
37
|
-
props.cx = [
|
|
38
|
-
'uui-dt-vars',
|
|
39
|
-
'data-table-cell',
|
|
40
|
-
props.cx,
|
|
41
|
-
css.cell,
|
|
42
|
-
css['size-' + (props.size || '36')],
|
|
43
|
-
css[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
44
|
-
props.isFirstColumn && css[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
45
|
-
props.isLastColumn && css['padding-right-24'],
|
|
46
|
-
css[`align-widgets-${props.alignActions || 'top'}`],
|
|
47
|
-
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
48
|
-
];
|
|
49
|
-
|
|
50
|
-
return <UuiDataTableCell { ...props } />;
|
|
51
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
@use '../../assets/styles/index' as *;
|
|
2
|
-
|
|
3
|
-
@mixin icon() {
|
|
4
|
-
flex: 0 0 16px;
|
|
5
|
-
width: 16px;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cell {
|
|
10
|
-
color: var(--uui-text-primary);
|
|
11
|
-
display: flex;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
align-items: center;
|
|
14
|
-
padding: 0 12px;
|
|
15
|
-
position: relative;
|
|
16
|
-
width: 0;
|
|
17
|
-
|
|
18
|
-
// to align with cell's borders. TBD: move this to uui-components.
|
|
19
|
-
border-right: 1px solid transparent;
|
|
20
|
-
margin-left: -1px;
|
|
21
|
-
background-clip: padding-box;
|
|
22
|
-
|
|
23
|
-
&:global(.-clickable) {
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
background: var(--uui-dt-row-bg-hover);
|
|
28
|
-
box-shadow: inset 1px 0 0 var(--uui-dt-border), inset -1px 0 0 var(--uui-dt-border);
|
|
29
|
-
|
|
30
|
-
.sort-icon, .dropdown-icon, .infoIcon {
|
|
31
|
-
fill: var(--uui-icon-hover);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.resizable {
|
|
37
|
-
&:hover {
|
|
38
|
-
box-shadow: inset 1px 0 0 var(--uui-dt-border), inset -1px 0 0 var(--uui-dt-border);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.size-24 { height: 24px; }
|
|
43
|
-
&.size-30 { height: 30px; }
|
|
44
|
-
&.size-36 { height: 36px; }
|
|
45
|
-
&.size-42 { height: 42px; }
|
|
46
|
-
&.size-48 { height: 48px; }
|
|
47
|
-
|
|
48
|
-
&.padding-left-24 { padding-left: 24px; }
|
|
49
|
-
|
|
50
|
-
&.padding-right-24 { padding-right: 24px; }
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.caption {
|
|
54
|
-
font-family: var(--uui-dt-header-cell-font);
|
|
55
|
-
font-weight: var(--uui-dt-header-cell-font-weight);
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
text-overflow: ellipsis;
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
margin-right: 6px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.checkbox {
|
|
63
|
-
margin-right: 12px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.icon {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-shrink: 0;
|
|
69
|
-
cursor: pointer;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.icon-cell {
|
|
73
|
-
display: flex;
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
|
|
76
|
-
&.align-right {
|
|
77
|
-
flex-direction: row-reverse;
|
|
78
|
-
|
|
79
|
-
.caption {
|
|
80
|
-
margin-right: 0;
|
|
81
|
-
margin-left: 6px;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.align-center {
|
|
86
|
-
justify-content: center;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.tooltip-wrapper {
|
|
91
|
-
width: 100%;
|
|
92
|
-
min-width: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.cell-tooltip {
|
|
96
|
-
top: 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.upper-case {
|
|
100
|
-
text-transform: uppercase;
|
|
101
|
-
font-size: 12px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.font-size-14 {
|
|
105
|
-
font-size: 14px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.resize-mark {
|
|
109
|
-
position: absolute;
|
|
110
|
-
width: 12px;
|
|
111
|
-
right: 0;
|
|
112
|
-
height: 100%;
|
|
113
|
-
cursor: col-resize;
|
|
114
|
-
|
|
115
|
-
&:hover {
|
|
116
|
-
background-color: var(--uui-dt-cell-bg-resize);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&.draggable {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.ghost {
|
|
125
|
-
@include dnd-ghost-shadow();
|
|
126
|
-
background-color: var(--uui-dt-row-bg-hover);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&.is-dragged-out {
|
|
130
|
-
background-color: var(--uui-dt-row-bg-hover);
|
|
131
|
-
opacity: 0.5;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.dnd-marker-left {
|
|
135
|
-
box-shadow: inset 2px 0 0 0 var(--uui-dt-header-drop_marker);
|
|
136
|
-
|
|
137
|
-
&:global(.-clickable), &:local(.resizable) {
|
|
138
|
-
box-shadow: inset 2px 0 0 0 var(--uui-dt-header-drop_marker);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.dnd-marker-right {
|
|
143
|
-
box-shadow: inset -2px 0 0 0 var(--uui-dt-header-drop_marker);
|
|
144
|
-
|
|
145
|
-
&:global(.-clickable), &:local(.resizable) {
|
|
146
|
-
box-shadow: inset -2px 0 0 0 var(--uui-dt-header-drop_marker);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.cell-tooltip-wrapper {
|
|
152
|
-
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
flex-wrap: wrap;
|
|
155
|
-
row-gap: 3px;
|
|
156
|
-
|
|
157
|
-
.cell-tooltip-text {
|
|
158
|
-
color: var(--uui-tooltip-text);
|
|
159
|
-
padding: 0;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
DataTableHeaderCellProps, uuiMarkers, uuiDataTableHeaderCell, IDropdownToggler, cx, DataColumnProps,
|
|
4
|
-
} from '@epam/uui-core';
|
|
5
|
-
import { DataTableHeaderCell as UuiDataTableHeaderCell, HeaderCellContentProps } from '@epam/uui-components';
|
|
6
|
-
import { ColumnHeaderDropdown } from './ColumnHeaderDropdown';
|
|
7
|
-
import { DataTableHeaderCellMods } from './types';
|
|
8
|
-
import { FlexCell } from '../layout';
|
|
9
|
-
import { IconButton } from '../buttons';
|
|
10
|
-
import { Checkbox } from '../inputs';
|
|
11
|
-
import { Tooltip } from '../overlays';
|
|
12
|
-
import { Text } from '../typography';
|
|
13
|
-
import css from './DataTableHeaderCell.module.scss';
|
|
14
|
-
import './variables.scss';
|
|
15
|
-
import { ReactComponent as DefaultSortIcon } from '@epam/assets/icons/common/table-swap-18.svg';
|
|
16
|
-
import { ReactComponent as SortIcon } from '@epam/assets/icons/common/table-sort_asc-18.svg';
|
|
17
|
-
import { ReactComponent as SortIconDesc } from '@epam/assets/icons/common/table-sort_desc-18.svg';
|
|
18
|
-
import { ReactComponent as FilterIcon } from '@epam/assets/icons/common/content-filtration-18.svg';
|
|
19
|
-
import { ReactComponent as DropdownIcon } from '@epam/assets/icons/common/navigation-chevron-down-18.svg';
|
|
20
|
-
import { ReactComponent as OpenedDropdownIcon } from '@epam/assets/icons/common/navigation-chevron-up-18.svg';
|
|
21
|
-
|
|
22
|
-
interface DataTableHeaderCellState {
|
|
23
|
-
isDropdownOpen: boolean;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class DataTableHeaderCell<TItem, TId> extends React.Component<DataTableHeaderCellProps<TItem, TId> & DataTableHeaderCellMods, DataTableHeaderCellState> {
|
|
27
|
-
state: DataTableHeaderCellState = {
|
|
28
|
-
isDropdownOpen: null,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
getTextStyle = () => {
|
|
32
|
-
if (this.props.textCase === 'upper') return css.upperCase;
|
|
33
|
-
return css['font-size-14'];
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
getTooltipContent = (column: DataColumnProps<TItem, TId>) => (
|
|
37
|
-
<div className={ css.cellTooltipWrapper }>
|
|
38
|
-
<Text fontSize="14" fontWeight="600" cx={ css.cellTooltipText }>{ column.caption }</Text>
|
|
39
|
-
{ column.info && <Text fontSize="12" cx={ css.cellTooltipText }>{ column.info }</Text> }
|
|
40
|
-
</div>
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
getColumnCaption = () => {
|
|
44
|
-
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<div className={ css.tooltipWrapper }>
|
|
48
|
-
<div className={ cx(css.iconCell, css['align-' + this.props.column.textAlign], uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) }>
|
|
49
|
-
<Tooltip
|
|
50
|
-
placement="top"
|
|
51
|
-
color="inverted"
|
|
52
|
-
content={ renderTooltip(this.props.column) }
|
|
53
|
-
cx={ css.cellTooltip }
|
|
54
|
-
openDelay={ 600 }
|
|
55
|
-
>
|
|
56
|
-
<Text key="text" lineHeight="30" fontSize="14" size="30" cx={ cx(css.caption, this.getTextStyle(), uuiDataTableHeaderCell.uuiTableHeaderCaption) }>
|
|
57
|
-
{this.props.column.caption}
|
|
58
|
-
</Text>
|
|
59
|
-
</Tooltip>
|
|
60
|
-
{this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (
|
|
61
|
-
<IconButton
|
|
62
|
-
key="sort"
|
|
63
|
-
cx={ cx(css.icon, css.sortIcon, this.props.sortDirection && css.sortIconActive, uuiDataTableHeaderCell.uuiTableHeaderSortIcon) }
|
|
64
|
-
color={ this.props.sortDirection ? 'neutral' : 'secondary' }
|
|
65
|
-
icon={ this.props.sortDirection === 'desc' ? SortIconDesc : this.props.sortDirection === 'asc' ? SortIcon : DefaultSortIcon }
|
|
66
|
-
/>
|
|
67
|
-
)}
|
|
68
|
-
{this.props.isFilterActive && (
|
|
69
|
-
<IconButton
|
|
70
|
-
key="filter"
|
|
71
|
-
cx={ cx(css.icon, !this.props.sortDirection && css.filterIcon, uuiDataTableHeaderCell.uuiTableHeaderFilterIcon) }
|
|
72
|
-
color="neutral"
|
|
73
|
-
icon={ FilterIcon }
|
|
74
|
-
/>
|
|
75
|
-
)}
|
|
76
|
-
{this.props.column.renderFilter && (
|
|
77
|
-
<IconButton
|
|
78
|
-
key="dropdown"
|
|
79
|
-
cx={ cx(css.icon, css.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon) }
|
|
80
|
-
color="secondary"
|
|
81
|
-
icon={ this.state.isDropdownOpen ? OpenedDropdownIcon : DropdownIcon }
|
|
82
|
-
/>
|
|
83
|
-
)}
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
renderHeaderCheckbox = () =>
|
|
90
|
-
this.props.selectAll
|
|
91
|
-
&& this.props.isFirstColumn && (
|
|
92
|
-
<Checkbox size={ +this.props.size < 36 ? '12' : '18' } { ...this.props.selectAll } cx={ cx(css.checkbox, uuiDataTableHeaderCell.uuiTableHeaderCheckbox) } />
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
renderResizeMark = (props: HeaderCellContentProps) => <div onMouseDown={ props.onResizeStart } className={ cx(css.resizeMark, uuiMarkers.draggable) } />;
|
|
96
|
-
renderCellContent = (props: HeaderCellContentProps, dropdownProps?: IDropdownToggler) => {
|
|
97
|
-
const isResizable = this.props.column.allowResizing ?? this.props.allowColumnsResizing;
|
|
98
|
-
return (
|
|
99
|
-
<FlexCell
|
|
100
|
-
{ ...this.props.column }
|
|
101
|
-
minWidth={ this.props.column.width }
|
|
102
|
-
ref={ (ref) => {
|
|
103
|
-
(props.ref as React.RefCallback<HTMLElement>)(ref);
|
|
104
|
-
(dropdownProps?.ref as React.RefCallback<HTMLElement>)?.(ref);
|
|
105
|
-
} }
|
|
106
|
-
cx={ cx(
|
|
107
|
-
'uui-dt-vars',
|
|
108
|
-
uuiDataTableHeaderCell.uuiTableHeaderCell,
|
|
109
|
-
(this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable,
|
|
110
|
-
css.cell,
|
|
111
|
-
css['size-' + (this.props.size || '36')],
|
|
112
|
-
this.props.isFirstColumn && css['padding-left-24'],
|
|
113
|
-
this.props.isLastColumn && css['padding-right-24'],
|
|
114
|
-
this.props.column.cx,
|
|
115
|
-
isResizable && css.resizable,
|
|
116
|
-
props.isDraggable && css.draggable,
|
|
117
|
-
props.isDragGhost && css.ghost,
|
|
118
|
-
props.isDraggedOut && css.isDraggedOut,
|
|
119
|
-
props.isDndInProgress && css['dnd-marker-' + props.position],
|
|
120
|
-
) }
|
|
121
|
-
onClick={ !this.props.column.renderFilter ? props.toggleSort : dropdownProps?.onClick }
|
|
122
|
-
rawProps={ {
|
|
123
|
-
role: 'columnheader',
|
|
124
|
-
'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none',
|
|
125
|
-
...props.eventHandlers,
|
|
126
|
-
} }
|
|
127
|
-
>
|
|
128
|
-
{this.renderHeaderCheckbox()}
|
|
129
|
-
{this.getColumnCaption()}
|
|
130
|
-
{ isResizable && this.renderResizeMark(props) }
|
|
131
|
-
</FlexCell>
|
|
132
|
-
);
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
renderCellWithFilter = (props: HeaderCellContentProps) => (
|
|
136
|
-
<ColumnHeaderDropdown
|
|
137
|
-
isOpen={ this.state.isDropdownOpen }
|
|
138
|
-
isSortable={ this.props.column.isSortable }
|
|
139
|
-
renderTarget={ (dropdownProps) => this.renderCellContent(props, dropdownProps) }
|
|
140
|
-
renderFilter={ this.props.renderFilter }
|
|
141
|
-
onSort={ this.props.onSort }
|
|
142
|
-
sortDirection={ this.props.sortDirection }
|
|
143
|
-
onOpenChange={ (isDropdownOpen) => this.setState({ isDropdownOpen }) }
|
|
144
|
-
title={ this.props.column.caption as string }
|
|
145
|
-
/>
|
|
146
|
-
);
|
|
147
|
-
|
|
148
|
-
render() {
|
|
149
|
-
return <UuiDataTableHeaderCell { ...this.props } renderCellContent={ this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent } />;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@use '../../assets/styles/index' as *;
|
|
2
|
-
|
|
3
|
-
.header-cell {
|
|
4
|
-
background: none;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.config-icon {
|
|
8
|
-
position: absolute;
|
|
9
|
-
height: 100%;
|
|
10
|
-
right: 24px;
|
|
11
|
-
z-index: 2;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:global(.uui-table-header-row) {
|
|
15
|
-
:global(.uui-table-fixed-section), :global(.uui-table-scrolling-section) {
|
|
16
|
-
border-bottom-color: var(--uui-dt-border);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:global(.uui-table-header-row) {
|
|
21
|
-
--uui-dt-row-bg: var(--uui-dt-header-row-bg);
|
|
22
|
-
--uui-dt-row-bg-hover: var(--uui-dt-header-row-bg-hover);
|
|
23
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DataTableHeaderRow as uuiDataTableHeaderRow } from '@epam/uui-components';
|
|
3
|
-
import { DataTableHeaderRowProps, withMods } from '@epam/uui-core';
|
|
4
|
-
import { DataTableHeaderRowMods } from './types';
|
|
5
|
-
import { DataTableHeaderCell } from './DataTableHeaderCell';
|
|
6
|
-
import { IconButton } from '../buttons/IconButton';
|
|
7
|
-
|
|
8
|
-
import css from './DataTableHeaderRow.module.scss';
|
|
9
|
-
import './variables.scss';
|
|
10
|
-
import { ReactComponent as MoreIcon } from '@epam/assets/icons/common/action-settings-18.svg';
|
|
11
|
-
|
|
12
|
-
export const DataTableHeaderRow = withMods<DataTableHeaderRowProps, DataTableHeaderRowMods>(
|
|
13
|
-
uuiDataTableHeaderRow,
|
|
14
|
-
() => [css.root, 'uui-dt-vars'],
|
|
15
|
-
(mods) => ({
|
|
16
|
-
renderCell: (props) => <DataTableHeaderCell { ...props } size={ mods.size } textCase={ mods.textCase || 'normal' } key={ props.column.key } />,
|
|
17
|
-
renderConfigButton: () => <IconButton key="configuration" onClick={ mods.onConfigButtonClick } cx={ css.configIcon } color="neutral" icon={ MoreIcon } />,
|
|
18
|
-
}),
|
|
19
|
-
);
|