@epam/uui 5.3.0-rc.1 → 5.3.0
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/assets/styles/inputs.scss +25 -21
- package/assets/styles/typography.scss +14 -6
- package/build/assets/styles/buttonLayout.scss +67 -0
- package/build/assets/styles/controlLayout.scss +28 -0
- package/build/assets/styles/dnd.scss +9 -0
- package/build/assets/styles/effects.scss +7 -0
- package/build/assets/styles/icons.scss +19 -0
- package/build/assets/styles/index.scss +8 -0
- package/build/assets/styles/inputs.scss +74 -0
- package/build/assets/styles/text-size.scss +37 -0
- package/build/assets/styles/typography.scss +174 -0
- package/build/components/filters/FilterPanelItemToggler.d.ts +13 -0
- package/build/components/filters/FilterPanelItemToggler.d.ts.map +1 -0
- package/build/components/filters/FilterPickerBody.d.ts +9 -0
- package/build/components/filters/FilterPickerBody.d.ts.map +1 -0
- package/build/components/filters/FiltersPanel.d.ts.map +1 -0
- package/build/components/filters/FiltersPanelItem.d.ts.map +1 -0
- package/build/components/filters/PresetPanel/Preset.d.ts.map +1 -0
- package/build/components/filters/PresetPanel/PresetInput.d.ts.map +1 -0
- package/build/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -0
- package/build/components/filters/PresetPanel/constants.d.ts +5 -0
- package/build/components/filters/PresetPanel/constants.d.ts.map +1 -0
- package/build/components/filters/constants.d.ts +5 -0
- package/build/components/filters/constants.d.ts.map +1 -0
- package/build/components/inputs/TextInput.d.ts +15 -0
- package/build/components/layout/ScrollBars.d.ts +3 -0
- package/build/components/layout/ScrollBars.d.ts.map +1 -0
- package/build/components/layout/VirtualList.d.ts.map +1 -0
- package/build/components/navigation/MainMenu/MainMenuAvatar.d.ts +8 -0
- package/build/components/navigation/MainMenu/MainMenuIcon.d.ts +8 -0
- package/build/components/navigation/MainMenu/MainMenuSearch.d.ts +7 -0
- package/build/components/overlays/DropdownMenu.d.ts +37 -0
- package/build/components/overlays/DropdownMenu.d.ts.map +1 -0
- package/build/components/overlays/Tooltip.d.ts +8 -0
- package/build/components/pickers/DataPickerFooter.d.ts.map +1 -0
- package/build/components/pickers/PickerInput.d.ts.map +1 -0
- package/build/components/pickers/PickerModal.d.ts.map +1 -0
- package/build/components/pickers/highlight.d.ts.map +1 -0
- package/build/components/tables/DataTableHeaderCell.d.ts.map +1 -0
- package/build/components/types.d.ts +44 -0
- package/build/components/types.d.ts.map +1 -0
- package/build/components/typography/Text.d.ts +14 -0
- package/build/components/typography/Text.d.ts.map +1 -0
- package/build/helpers/useColumnsWithFilters.d.ts.map +1 -0
- package/build/index.esm.js +4674 -0
- package/build/index.esm.js.map +1 -0
- package/build/index.js +4863 -0
- package/build/index.js.map +1 -0
- package/build/package.json +37 -0
- package/build/readme.md +5 -0
- package/build/stats.html +4838 -0
- package/build/styles.css +11032 -0
- package/build/styles.css.map +1 -0
- package/components/buttons/Button.module.scss +157 -0
- package/components/buttons/Button.tsx +42 -0
- package/components/buttons/IconButton.module.scss +44 -0
- package/components/buttons/IconButton.tsx +20 -0
- package/components/buttons/LinkButton.module.scss +85 -0
- package/components/buttons/LinkButton.tsx +32 -0
- package/components/buttons/TabButton.module.scss +94 -0
- package/components/buttons/TabButton.tsx +38 -0
- package/components/buttons/VerticalTabButton.module.scss +7 -0
- package/components/buttons/VerticalTabButton.tsx +12 -0
- package/components/buttons/__tests__/Button.test.tsx +30 -0
- package/components/buttons/__tests__/IconButton.test.tsx +16 -0
- package/components/buttons/__tests__/LinkButton.test.tsx +16 -0
- package/components/buttons/__tests__/TabButton.test.tsx +16 -0
- package/components/buttons/__tests__/VerticalTabButton.test.tsx +16 -0
- package/components/buttons/__tests__/__snapshots__/Button.test.tsx.snap +58 -0
- package/components/buttons/__tests__/__snapshots__/IconButton.test.tsx.snap +34 -0
- package/components/buttons/__tests__/__snapshots__/LinkButton.test.tsx.snap +47 -0
- package/components/buttons/__tests__/__snapshots__/TabButton.test.tsx.snap +31 -0
- package/components/buttons/__tests__/__snapshots__/VerticalTabButton.test.tsx.snap +31 -0
- package/components/buttons/helper.ts +22 -0
- package/components/buttons/index.ts +5 -0
- package/components/datePickers/Calendar.module.scss +143 -0
- package/components/datePickers/Calendar.tsx +10 -0
- package/components/datePickers/CalendarPresets.module.scss +30 -0
- package/components/datePickers/CalendarPresets.tsx +9 -0
- package/components/datePickers/DatePicker.tsx +70 -0
- package/components/datePickers/DatePickerBody.module.scss +107 -0
- package/components/datePickers/DatePickerBody.tsx +74 -0
- package/components/datePickers/DatePickerHeader.module.scss +15 -0
- package/components/datePickers/DatePickerHeader.tsx +113 -0
- package/components/datePickers/RangeDatePicker.module.scss +101 -0
- package/components/datePickers/RangeDatePicker.tsx +107 -0
- package/components/datePickers/RangeDatePickerBody.module.scss +127 -0
- package/components/datePickers/RangeDatePickerBody.tsx +252 -0
- package/components/datePickers/__tests__/Calendar.test.tsx +11 -0
- package/components/datePickers/__tests__/CalendarPresets.test.tsx +11 -0
- package/components/datePickers/__tests__/DatePicker.test.tsx +119 -0
- package/components/datePickers/__tests__/DatePickerBody.test.tsx +36 -0
- package/components/datePickers/__tests__/DatePickerHeader.test.tsx +57 -0
- package/components/datePickers/__tests__/RangeDatePicker.test.tsx +181 -0
- package/components/datePickers/__tests__/RangeDatePickerBody.test.tsx +186 -0
- package/components/datePickers/__tests__/__snapshots__/Calendar.test.tsx.snap +524 -0
- package/components/datePickers/__tests__/__snapshots__/CalendarPresets.test.tsx.snap +61 -0
- package/components/datePickers/__tests__/__snapshots__/DatePicker.test.tsx.snap +57 -0
- package/components/datePickers/__tests__/__snapshots__/DatePickerBody.test.tsx.snap +62 -0
- package/components/datePickers/__tests__/__snapshots__/RangeDatePicker.test.tsx.snap +115 -0
- package/components/datePickers/__tests__/__snapshots__/RangeDatePickerBody.test.tsx.snap +1231 -0
- package/components/datePickers/index.ts +5 -0
- package/components/dnd/DropMarker.module.scss +62 -0
- package/components/dnd/DropMarker.tsx +25 -0
- package/components/dnd/__tests__/DropMarker.test.tsx +31 -0
- package/components/dnd/__tests__/__snapshots__/DropMarker.test.tsx.snap +7 -0
- package/components/dnd/index.tsx +1 -0
- package/components/fileUpload/DropSpot.module.scss +47 -0
- package/components/fileUpload/DropSpot.tsx +57 -0
- package/components/fileUpload/FileCard.module.scss +88 -0
- package/components/fileUpload/FileCard.tsx +134 -0
- package/components/fileUpload/SvgCircleProgress.module.scss +8 -0
- package/components/fileUpload/SvgCircleProgress.tsx +35 -0
- package/components/fileUpload/__tests__/DropSpot.test.tsx +15 -0
- package/components/fileUpload/__tests__/FileCard.test.tsx +57 -0
- package/components/fileUpload/__tests__/SvgCircleProgress.test.tsx +10 -0
- package/components/fileUpload/__tests__/__snapshots__/DropSpot.test.tsx.snap +130 -0
- package/components/fileUpload/__tests__/__snapshots__/FileCard.test.tsx.snap +266 -0
- package/components/fileUpload/__tests__/__snapshots__/SvgCircleProgress.test.tsx.snap +26 -0
- package/components/fileUpload/index.ts +3 -0
- package/components/filters/FilterDatePickerBody.tsx +63 -0
- package/components/filters/FilterItemBody.tsx +23 -0
- package/components/filters/FilterNumericBody.module.scss +4 -0
- package/components/filters/FilterNumericBody.tsx +111 -0
- package/components/filters/FilterPanelItemToggler.module.scss +140 -0
- package/components/filters/FilterPanelItemToggler.tsx +91 -0
- package/components/filters/FilterPickerBody.tsx +73 -0
- package/components/filters/FilterRangeDatePickerBody.module.scss +92 -0
- package/components/filters/FilterRangeDatePickerBody.tsx +85 -0
- package/components/filters/FiltersPanel.tsx +218 -0
- package/components/filters/FiltersPanelItem.module.scss +22 -0
- package/components/filters/FiltersPanelItem.tsx +257 -0
- package/components/filters/PresetPanel/Preset.module.scss +25 -0
- package/components/filters/PresetPanel/Preset.tsx +61 -0
- package/components/filters/PresetPanel/PresetActionsDropdown.module.scss +23 -0
- package/components/filters/PresetPanel/PresetActionsDropdown.tsx +138 -0
- package/components/filters/PresetPanel/PresetInput.module.scss +55 -0
- package/components/filters/PresetPanel/PresetInput.tsx +50 -0
- package/components/filters/PresetPanel/PresetsPanel.module.scss +34 -0
- package/components/filters/PresetPanel/PresetsPanel.tsx +112 -0
- package/components/filters/PresetPanel/__tests__/Preset.test.tsx +44 -0
- package/components/filters/PresetPanel/__tests__/PresetActionsDropdown.test.tsx +28 -0
- package/components/filters/PresetPanel/__tests__/PresetInput.test.tsx +10 -0
- package/components/filters/PresetPanel/__tests__/__snapshots__/Preset.test.tsx.snap +101 -0
- package/components/filters/PresetPanel/__tests__/__snapshots__/PresetActionsDropdown.test.tsx.snap +19 -0
- package/components/filters/PresetPanel/__tests__/__snapshots__/PresetInput.test.tsx.snap +35 -0
- package/components/filters/PresetPanel/__tests__/__snapshots__/presetsPanel.test.tsx.snap +101 -0
- package/components/filters/PresetPanel/__tests__/presetsPanel.test.tsx +395 -0
- package/components/filters/PresetPanel/constants.ts +4 -0
- package/components/filters/PresetPanel/index.ts +1 -0
- package/components/filters/__tests__/filtersPanel.test.tsx +371 -0
- package/components/filters/constants.ts +4 -0
- package/components/filters/defaultPredicates.ts +11 -0
- package/components/filters/index.ts +4 -0
- package/components/forms/Form.tsx +39 -0
- package/components/forms/index.tsx +2 -0
- package/components/forms/useForm.tsx +39 -0
- package/components/index.ts +15 -0
- package/components/inputs/Checkbox.module.scss +162 -0
- package/components/inputs/Checkbox.tsx +30 -0
- package/components/inputs/InputAddon.module.scss +11 -0
- package/components/inputs/InputAddon.tsx +11 -0
- package/components/inputs/MultiSwitch.tsx +39 -0
- package/components/inputs/NumericInput.module.scss +97 -0
- package/components/inputs/NumericInput.tsx +27 -0
- package/components/inputs/RadioInput.module.scss +200 -0
- package/components/inputs/RadioInput.tsx +16 -0
- package/components/inputs/Slider.module.scss +130 -0
- package/components/inputs/Slider.tsx +11 -0
- package/components/inputs/Switch.module.scss +172 -0
- package/components/inputs/Switch.tsx +17 -0
- package/components/inputs/TextArea.module.scss +210 -0
- package/components/inputs/TextArea.tsx +24 -0
- package/components/inputs/TextInput.module.scss +187 -0
- package/components/inputs/TextInput.tsx +59 -0
- package/components/inputs/TimePicker.module.scss +68 -0
- package/components/inputs/TimePicker.tsx +69 -0
- package/components/inputs/TimePickerBody.tsx +10 -0
- package/components/inputs/__tests__/Checkbox.test.tsx +15 -0
- package/components/inputs/__tests__/MultiSwitch.test.tsx +16 -0
- package/components/inputs/__tests__/NumericInput.test.tsx +208 -0
- package/components/inputs/__tests__/RadioInput.test.tsx +15 -0
- package/components/inputs/__tests__/Slider.test.tsx +22 -0
- package/components/inputs/__tests__/Switch.test.tsx +15 -0
- package/components/inputs/__tests__/TextArea.test.tsx +15 -0
- package/components/inputs/__tests__/TextInput.test.tsx +20 -0
- package/components/inputs/__tests__/TimePicker.test.tsx +19 -0
- package/components/inputs/__tests__/TimePickerBody.test.tsx +38 -0
- package/components/inputs/__tests__/__snapshots__/Checkbox.test.tsx.snap +39 -0
- package/components/inputs/__tests__/__snapshots__/MultiSwitch.test.tsx.snap +37 -0
- package/components/inputs/__tests__/__snapshots__/NumericInput.test.tsx.snap +93 -0
- package/components/inputs/__tests__/__snapshots__/RadioInput.test.tsx.snap +40 -0
- package/components/inputs/__tests__/__snapshots__/Slider.test.tsx.snap +157 -0
- package/components/inputs/__tests__/__snapshots__/Switch.test.tsx.snap +48 -0
- package/components/inputs/__tests__/__snapshots__/TextArea.test.tsx.snap +32 -0
- package/components/inputs/__tests__/__snapshots__/TextInput.test.tsx.snap +53 -0
- package/components/inputs/__tests__/__snapshots__/TimePicker.test.tsx +19 -0
- package/components/inputs/__tests__/__snapshots__/TimePicker.test.tsx.snap +43 -0
- package/components/inputs/__tests__/__snapshots__/TimePickerBody.test.tsx +38 -0
- package/components/inputs/__tests__/__snapshots__/TimePickerBody.test.tsx.snap +321 -0
- package/components/inputs/__tests__/__snapshots__/__snapshots__/TimePicker.test.tsx.snap +43 -0
- package/components/inputs/__tests__/__snapshots__/__snapshots__/TimePickerBody.test.tsx.snap +321 -0
- package/components/inputs/index.ts +10 -0
- package/components/layout/Accordion.module.scss +180 -0
- package/components/layout/Accordion.tsx +23 -0
- package/components/layout/Blocker.module.scss +30 -0
- package/components/layout/Blocker.tsx +11 -0
- package/components/layout/CheckboxGroup.module.scss +15 -0
- package/components/layout/CheckboxGroup.tsx +10 -0
- package/components/layout/ControlGroup.module.scss +15 -0
- package/components/layout/ControlGroup.tsx +5 -0
- package/components/layout/FlexItems/FlexCell.module.scss +5 -0
- package/components/layout/FlexItems/FlexCell.tsx +9 -0
- package/components/layout/FlexItems/FlexRow.module.scss +122 -0
- package/components/layout/FlexItems/FlexRow.tsx +32 -0
- package/components/layout/FlexItems/Panel.module.scss +34 -0
- package/components/layout/FlexItems/Panel.tsx +19 -0
- package/components/layout/FlexItems/__tests__/FlexCell.test.tsx +15 -0
- package/components/layout/FlexItems/__tests__/FlexRow.test.tsx +17 -0
- package/components/layout/FlexItems/__tests__/FlexSpacer.test.tsx +10 -0
- package/components/layout/FlexItems/__tests__/Panel.test.tsx +15 -0
- package/components/layout/FlexItems/__tests__/__snapshots__/FlexCell.test.tsx.snap +34 -0
- package/components/layout/FlexItems/__tests__/__snapshots__/FlexRow.test.tsx.snap +26 -0
- package/components/layout/FlexItems/__tests__/__snapshots__/FlexSpacer.test.tsx.snap +7 -0
- package/components/layout/FlexItems/__tests__/__snapshots__/Panel.test.tsx.snap +14 -0
- package/components/layout/FlexItems/index.ts +4 -0
- package/components/layout/LabeledInput.module.scss +139 -0
- package/components/layout/LabeledInput.tsx +21 -0
- package/components/layout/RadioGroup.module.scss +15 -0
- package/components/layout/RadioGroup.tsx +10 -0
- package/components/layout/ScrollBars.module.scss +56 -0
- package/components/layout/ScrollBars.tsx +11 -0
- package/components/layout/VirtualList.module.scss +10 -0
- package/components/layout/VirtualList.tsx +127 -0
- package/components/layout/__tests__/Accordion.test.tsx +16 -0
- package/components/layout/__tests__/Blocker.test.tsx +10 -0
- package/components/layout/__tests__/CheckboxGroup.test.tsx +33 -0
- package/components/layout/__tests__/ControlGroup.test.tsx +18 -0
- package/components/layout/__tests__/LabeledInput.test.tsx +26 -0
- package/components/layout/__tests__/RadioGroup.test.tsx +33 -0
- package/components/layout/__tests__/ScrollBars.test.tsx +17 -0
- package/components/layout/__tests__/VirtualList.test.tsx +10 -0
- package/components/layout/__tests__/__snapshots__/Accordion.test.tsx.snap +65 -0
- package/components/layout/__tests__/__snapshots__/Blocker.test.tsx.snap +36 -0
- package/components/layout/__tests__/__snapshots__/CheckboxGroup.test.tsx.snap +103 -0
- package/components/layout/__tests__/__snapshots__/ControlGroup.test.tsx.snap +33 -0
- package/components/layout/__tests__/__snapshots__/LabeledInput.test.tsx.snap +87 -0
- package/components/layout/__tests__/__snapshots__/RadioGroup.test.tsx.snap +95 -0
- package/components/layout/__tests__/__snapshots__/ScrollBars.test.tsx.snap +68 -0
- package/components/layout/__tests__/__snapshots__/VirtualList.test.tsx.snap +90 -0
- package/components/layout/index.ts +10 -0
- package/components/navigation/Anchor.module.scss +7 -0
- package/components/navigation/Anchor.tsx +5 -0
- package/components/navigation/MainMenu/Burger/Burger.module.scss +81 -0
- package/components/navigation/MainMenu/Burger/Burger.tsx +18 -0
- package/components/navigation/MainMenu/Burger/BurgerButton.module.scss +69 -0
- package/components/navigation/MainMenu/Burger/BurgerButton.tsx +22 -0
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.module.scss +31 -0
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.tsx +16 -0
- package/components/navigation/MainMenu/Burger/BurgerSearch.module.scss +51 -0
- package/components/navigation/MainMenu/Burger/BurgerSearch.tsx +23 -0
- package/components/navigation/MainMenu/Burger/__tests__/Burger.test.tsx +13 -0
- package/components/navigation/MainMenu/Burger/__tests__/BurgerButton.test.tsx +18 -0
- package/components/navigation/MainMenu/Burger/__tests__/BurgerGroupHeader.test.tsx +10 -0
- package/components/navigation/MainMenu/Burger/__tests__/BurgerSearch.test.tsx +20 -0
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/Burger.test.tsx.snap +21 -0
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/BurgerButton.test.tsx.snap +46 -0
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/BurgerGroupHeader.test.tsx.snap +16 -0
- package/components/navigation/MainMenu/Burger/__tests__/__snapshots__/BurgerSearch.test.tsx.snap +53 -0
- package/components/navigation/MainMenu/Burger/index.ts +4 -0
- package/components/navigation/MainMenu/GlobalMenu.module.scss +32 -0
- package/components/navigation/MainMenu/GlobalMenu.tsx +14 -0
- package/components/navigation/MainMenu/MainMenu.module.scss +53 -0
- package/components/navigation/MainMenu/MainMenu.tsx +21 -0
- package/components/navigation/MainMenu/MainMenuAvatar.module.scss +41 -0
- package/components/navigation/MainMenu/MainMenuAvatar.tsx +30 -0
- package/components/navigation/MainMenu/MainMenuButton.module.scss +58 -0
- package/components/navigation/MainMenu/MainMenuButton.tsx +14 -0
- package/components/navigation/MainMenu/MainMenuDropdown.module.scss +44 -0
- package/components/navigation/MainMenu/MainMenuDropdown.tsx +47 -0
- package/components/navigation/MainMenu/MainMenuIcon.module.scss +25 -0
- package/components/navigation/MainMenu/MainMenuIcon.tsx +13 -0
- package/components/navigation/MainMenu/MainMenuSearch.module.scss +51 -0
- package/components/navigation/MainMenu/MainMenuSearch.tsx +26 -0
- package/components/navigation/MainMenu/__tests__/GlobalMenu.test.tsx +10 -0
- package/components/navigation/MainMenu/__tests__/MainMenu.test.tsx +45 -0
- package/components/navigation/MainMenu/__tests__/MainMenuAvatar.test.tsx +27 -0
- package/components/navigation/MainMenu/__tests__/MainMenuButton.test.tsx +30 -0
- package/components/navigation/MainMenu/__tests__/MainMenuDropdown.test.tsx +24 -0
- package/components/navigation/MainMenu/__tests__/MainMenuIcon.test.tsx +18 -0
- package/components/navigation/MainMenu/__tests__/MainMenuSearch.test.tsx +28 -0
- package/components/navigation/MainMenu/__tests__/__snapshots__/GlobalMenu.test.tsx.snap +17 -0
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenu.test.tsx.snap +103 -0
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuAvatar.test.tsx.snap +39 -0
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuButton.test.tsx.snap +37 -0
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuDropdown.test.tsx.snap +46 -0
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuIcon.test.tsx.snap +39 -0
- package/components/navigation/MainMenu/__tests__/__snapshots__/MainMenuSearch.test.tsx.snap +53 -0
- package/components/navigation/MainMenu/index.ts +8 -0
- package/components/navigation/__tests__/Anchor.test.tsx +21 -0
- package/components/navigation/__tests__/__snapshots__/Anchor.test.tsx.snap +29 -0
- package/components/navigation/index.ts +2 -0
- package/components/overlays/Alert.module.scss +77 -0
- package/components/overlays/Alert.tsx +75 -0
- package/components/overlays/ConfirmationModal.tsx +38 -0
- package/components/overlays/Dropdown.tsx +7 -0
- package/components/overlays/DropdownContainer.module.scss +93 -0
- package/components/overlays/DropdownContainer.tsx +20 -0
- package/components/overlays/DropdownMenu.module.scss +181 -0
- package/components/overlays/DropdownMenu.tsx +262 -0
- package/components/overlays/Modals.module.scss +63 -0
- package/components/overlays/Modals.tsx +82 -0
- package/components/overlays/NotificationCard.module.scss +76 -0
- package/components/overlays/NotificationCard.tsx +97 -0
- package/components/overlays/Tooltip.module.scss +74 -0
- package/components/overlays/Tooltip.tsx +19 -0
- package/components/overlays/__tests__/Alert.test.tsx +57 -0
- package/components/overlays/__tests__/ConfirmationModal.test.tsx +29 -0
- package/components/overlays/__tests__/Dropdown.test.tsx +16 -0
- package/components/overlays/__tests__/DropdownContainer.test.tsx +28 -0
- package/components/overlays/__tests__/DropdownMenu.test.tsx +26 -0
- package/components/overlays/__tests__/Modals.test.tsx +35 -0
- package/components/overlays/__tests__/NotificationCard.test.tsx +52 -0
- package/components/overlays/__tests__/Tooltip.test.tsx +20 -0
- package/components/overlays/__tests__/__snapshots__/Alert.test.tsx.snap +183 -0
- package/components/overlays/__tests__/__snapshots__/ConfirmationModal.test.tsx.snap +423 -0
- package/components/overlays/__tests__/__snapshots__/Dropdown.test.tsx.snap +51 -0
- package/components/overlays/__tests__/__snapshots__/DropdownContainer.test.tsx.snap +82 -0
- package/components/overlays/__tests__/__snapshots__/DropdownMenu.test.tsx.snap +128 -0
- package/components/overlays/__tests__/__snapshots__/Modals.test.tsx.snap +206 -0
- package/components/overlays/__tests__/__snapshots__/NotificationCard.test.tsx.snap +284 -0
- package/components/overlays/__tests__/__snapshots__/Tooltip.test.tsx.snap +5 -0
- package/components/overlays/index.ts +8 -0
- package/components/pickers/DataPickerBody.module.scss +54 -0
- package/components/pickers/DataPickerBody.tsx +68 -0
- package/components/pickers/DataPickerFooter.tsx +85 -0
- package/components/pickers/DataPickerHeader.module.scss +19 -0
- package/components/pickers/DataPickerHeader.tsx +24 -0
- package/components/pickers/DataPickerRow.module.scss +30 -0
- package/components/pickers/DataPickerRow.tsx +77 -0
- package/components/pickers/MobileDropdownWrapper.module.scss +20 -0
- package/components/pickers/MobileDropdownWrapper.tsx +38 -0
- package/components/pickers/PickerInput.module.scss +39 -0
- package/components/pickers/PickerInput.tsx +180 -0
- package/components/pickers/PickerItem.module.scss +32 -0
- package/components/pickers/PickerItem.tsx +66 -0
- package/components/pickers/PickerList.tsx +83 -0
- package/components/pickers/PickerListItem.module.scss +3 -0
- package/components/pickers/PickerListItem.tsx +55 -0
- package/components/pickers/PickerModal.module.scss +27 -0
- package/components/pickers/PickerModal.tsx +145 -0
- package/components/pickers/PickerToggler.module.scss +249 -0
- package/components/pickers/PickerToggler.tsx +84 -0
- package/components/pickers/__tests__/DataPickerBody.test.tsx +58 -0
- package/components/pickers/__tests__/DataPickerRow.test.tsx +39 -0
- package/components/pickers/__tests__/PickerInput.test.tsx +1041 -0
- package/components/pickers/__tests__/PickerList.test.tsx +619 -0
- package/components/pickers/__tests__/PickerModal.test.tsx +542 -0
- package/components/pickers/__tests__/PickerToggler.test.tsx +40 -0
- package/components/pickers/__tests__/__snapshots__/DataPickerBody.test.tsx.snap +197 -0
- package/components/pickers/__tests__/__snapshots__/DataPickerRow.test.tsx.snap +114 -0
- package/components/pickers/__tests__/__snapshots__/PickerInput.test.tsx.snap +705 -0
- package/components/pickers/__tests__/__snapshots__/PickerList.test.tsx.snap +828 -0
- package/components/pickers/__tests__/__snapshots__/PickerModal.test.tsx.snap +1638 -0
- package/components/pickers/__tests__/__snapshots__/PickerToggler.test.tsx.snap +81 -0
- package/components/pickers/__tests__/highlight.test.tsx +37 -0
- package/components/pickers/__tests__/mocks.ts +87 -0
- package/components/pickers/helpers.ts +4 -0
- package/components/pickers/highlight.tsx +93 -0
- package/components/pickers/index.ts +12 -0
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.tsx +46 -0
- package/components/tables/ColumnHeaderDropdown/SortingPanel.module.scss +14 -0
- package/components/tables/ColumnHeaderDropdown/SortingPanel.tsx +27 -0
- package/components/tables/ColumnHeaderDropdown/index.ts +1 -0
- package/components/tables/DataRowsContainer/DataRowsContainer.module.scss +21 -0
- package/components/tables/DataRowsContainer/DataRowsContainer.tsx +27 -0
- package/components/tables/DataRowsContainer/DataRowsGroups.tsx +86 -0
- package/components/tables/DataRowsContainer/index.tsx +1 -0
- package/components/tables/DataRowsContainer/utils.ts +15 -0
- package/components/tables/DataTable.module.scss +54 -0
- package/components/tables/DataTable.tsx +149 -0
- package/components/tables/DataTableCell.module.scss +123 -0
- package/components/tables/DataTableCell.tsx +96 -0
- package/components/tables/DataTableHeaderCell.module.scss +161 -0
- package/components/tables/DataTableHeaderCell.tsx +144 -0
- package/components/tables/DataTableHeaderRow.module.scss +23 -0
- package/components/tables/DataTableHeaderRow.tsx +19 -0
- package/components/tables/DataTableRow.module.scss +58 -0
- package/components/tables/DataTableRow.tsx +31 -0
- package/components/tables/__tests__/ColumnHeaderDropdown.test.tsx +25 -0
- package/components/tables/__tests__/DataTable.test.tsx +23 -0
- package/components/tables/__tests__/DataTableCell.test.tsx +66 -0
- package/components/tables/__tests__/DataTableHeaderCell.test.tsx +21 -0
- package/components/tables/__tests__/DataTableHeaderRow.test.tsx +28 -0
- package/components/tables/__tests__/DataTableRow.test.tsx +30 -0
- package/components/tables/__tests__/__snapshots__/ColumnHeaderDropdown.test.tsx.snap +181 -0
- package/components/tables/__tests__/__snapshots__/DataTable.test.tsx.snap +122 -0
- package/components/tables/__tests__/__snapshots__/DataTableCell.test.tsx.snap +45 -0
- package/components/tables/__tests__/__snapshots__/DataTableHeaderCell.test.tsx.snap +34 -0
- package/components/tables/__tests__/__snapshots__/DataTableHeaderRow.test.tsx.snap +51 -0
- package/components/tables/__tests__/__snapshots__/DataTableRow.test.tsx.snap +54 -0
- package/components/tables/columnsConfigurationModal/ColumnRow.module.scss +44 -0
- package/components/tables/columnsConfigurationModal/ColumnRow.tsx +68 -0
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.module.scss +55 -0
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.tsx +153 -0
- package/components/tables/columnsConfigurationModal/PinIconButton.tsx +55 -0
- package/components/tables/columnsConfigurationModal/__tests__/ColumnsConfigurationModal.test.tsx +72 -0
- package/components/tables/columnsConfigurationModal/__tests__/__snapshots__/ColumnsConfigurationModal.test.tsx.snap +951 -0
- package/components/tables/columnsConfigurationModal/index.ts +1 -0
- package/components/tables/index.ts +9 -0
- package/components/tables/types.ts +33 -0
- package/components/tables/variables.scss +25 -0
- package/components/types.ts +73 -0
- package/components/typography/RichTextView.tsx +13 -0
- package/components/typography/Text.module.scss +50 -0
- package/components/typography/Text.tsx +39 -0
- package/components/typography/TextPlaceholder.module.scss +33 -0
- package/components/typography/TextPlaceholder.tsx +38 -0
- package/components/typography/__tests__/RichTextView.test.tsx +27 -0
- package/components/typography/__tests__/Text.test.tsx +21 -0
- package/components/typography/__tests__/TextPlaceholder.test.tsx +23 -0
- package/components/typography/__tests__/__snapshots__/RichTextView.test.tsx.snap +21 -0
- package/components/typography/__tests__/__snapshots__/Text.test.tsx.snap +18 -0
- package/components/typography/__tests__/__snapshots__/TextPlaceholder.test.tsx.snap +65 -0
- package/components/typography/index.ts +3 -0
- package/components/widgets/AvatarStack.module.scss +36 -0
- package/components/widgets/AvatarStack.tsx +5 -0
- package/components/widgets/Badge.module.scss +334 -0
- package/components/widgets/Badge.tsx +75 -0
- package/components/widgets/CountIndicator.module.scss +52 -0
- package/components/widgets/CountIndicator.tsx +26 -0
- package/components/widgets/IndeterminateBar.module.scss +42 -0
- package/components/widgets/IndeterminateBar.tsx +16 -0
- package/components/widgets/IndicatorBar.module.scss +3 -0
- package/components/widgets/IndicatorBar.tsx +20 -0
- package/components/widgets/Paginator.module.scss +66 -0
- package/components/widgets/Paginator.tsx +64 -0
- package/components/widgets/ProgressBar.module.scss +52 -0
- package/components/widgets/ProgressBar.tsx +24 -0
- package/components/widgets/Spinner.module.scss +38 -0
- package/components/widgets/Spinner.tsx +11 -0
- package/components/widgets/StatusIndicator.module.scss +72 -0
- package/components/widgets/StatusIndicator.tsx +36 -0
- package/components/widgets/Tag.module.scss +121 -0
- package/components/widgets/Tag.tsx +55 -0
- package/components/widgets/__tests__/AvatarStack.test.tsx +19 -0
- package/components/widgets/__tests__/Badge.test.tsx +30 -0
- package/components/widgets/__tests__/IndeterminateBar.test.tsx +15 -0
- package/components/widgets/__tests__/IndicatorBar.test.tsx +15 -0
- package/components/widgets/__tests__/Paginator.test.tsx +10 -0
- package/components/widgets/__tests__/ProgressBar.test.tsx +25 -0
- package/components/widgets/__tests__/Spinner.test.tsx +10 -0
- package/components/widgets/__tests__/StatusIndicator.test.tsx +17 -0
- package/components/widgets/__tests__/Tag.test.tsx +18 -0
- package/components/widgets/__tests__/__snapshots__/AvatarStack.test.tsx.snap +55 -0
- package/components/widgets/__tests__/__snapshots__/Badge.test.tsx.snap +48 -0
- package/components/widgets/__tests__/__snapshots__/IndeterminateBar.test.tsx.snap +21 -0
- package/components/widgets/__tests__/__snapshots__/IndicatorBar.test.tsx.snap +30 -0
- package/components/widgets/__tests__/__snapshots__/Paginator.test.tsx.snap +125 -0
- package/components/widgets/__tests__/__snapshots__/ProgressBar.test.tsx.snap +107 -0
- package/components/widgets/__tests__/__snapshots__/Spinner.test.tsx.snap +21 -0
- package/components/widgets/__tests__/__snapshots__/StatusIndicator.test.tsx.snap +31 -0
- package/components/widgets/__tests__/__snapshots__/Tag.test.tsx.snap +48 -0
- package/components/widgets/index.ts +11 -0
- package/globals.d.ts +12 -0
- package/helpers/index.ts +2 -0
- package/helpers/text-layout.module.scss +81 -0
- package/helpers/textLayout.tsx +35 -0
- package/helpers/useColumnsWithFilters.tsx +34 -0
- package/i18n.ts +105 -0
- package/icons/accept-12.svg +1 -0
- package/icons/accept-18.svg +1 -0
- package/icons/accept-24.svg +1 -0
- package/icons/action-settings-12.svg +1 -0
- package/icons/action-settings-18.svg +1 -0
- package/icons/action-settings-24.svg +1 -0
- package/icons/btn-cross-12.svg +1 -0
- package/icons/btn-cross-18.svg +1 -0
- package/icons/btn-cross-24.svg +1 -0
- package/icons/burger-close.svg +3 -0
- package/icons/burger.svg +3 -0
- package/icons/calendar-12.svg +1 -0
- package/icons/calendar-18.svg +1 -0
- package/icons/calendar-24.svg +1 -0
- package/icons/check-12.svg +3 -0
- package/icons/check-18.svg +3 -0
- package/icons/checkbox-checked.svg +21 -0
- package/icons/checkbox-partial.svg +21 -0
- package/icons/checkbox_tick.svg +44 -0
- package/icons/chevron-down-24.svg +1 -0
- package/icons/chevron-up-24.svg +1 -0
- package/icons/content-edit-12.svg +1 -0
- package/icons/content-edit-18.svg +1 -0
- package/icons/content-edit-24.svg +1 -0
- package/icons/empty-table.svg +58 -0
- package/icons/fileUpload/file-file-24.svg +1 -0
- package/icons/fileUpload/file-file_chart-24.svg +1 -0
- package/icons/fileUpload/file-file_eml-24.svg +1 -0
- package/icons/fileUpload/file-file_excel-24.svg +1 -0
- package/icons/fileUpload/file-file_image-24.svg +1 -0
- package/icons/fileUpload/file-file_pdf-24.svg +1 -0
- package/icons/fileUpload/file-file_table-24.svg +1 -0
- package/icons/fileUpload/file-file_text-24.svg +1 -0
- package/icons/fileUpload/file-file_video-24.svg +1 -0
- package/icons/fileUpload/file-file_word-24.svg +1 -0
- package/icons/fileUpload/shape.svg +2 -0
- package/icons/filter.svg +11 -0
- package/icons/folding-arrow-12.svg +1 -0
- package/icons/folding-arrow-18.svg +1 -0
- package/icons/folding-arrow-24.svg +1 -0
- package/icons/global_menu.svg +9 -0
- package/icons/help-fill-10.svg +3 -0
- package/icons/help-fill-16.svg +3 -0
- package/icons/icons.tsx +116 -0
- package/icons/info-12.svg +3 -0
- package/icons/info-18.svg +1 -0
- package/icons/info-24.svg +1 -0
- package/icons/logo-arrow.svg +4 -0
- package/icons/menu_input_cancel.svg +84 -0
- package/icons/modal-close-cross.svg +22 -0
- package/icons/navigation-close-24.svg +1 -0
- package/icons/navigation-more_vert-12.svg +1 -0
- package/icons/navigation-more_vert-18.svg +1 -0
- package/icons/navigation-more_vert-24.svg +1 -0
- package/icons/notification-check_circle-fill-24.svg +1 -0
- package/icons/notification-done-12.svg +1 -0
- package/icons/notification-done-18.svg +1 -0
- package/icons/notification-done-24.svg +1 -0
- package/icons/notification-error-fill-10.svg +1 -0
- package/icons/notification-error-fill-24.svg +1 -0
- package/icons/notification-help-fill-24.svg +1 -0
- package/icons/notification-warning-fill-24.svg +1 -0
- package/icons/partly-select-12.svg +3 -0
- package/icons/partly-select-18.svg +3 -0
- package/icons/radio-point.svg +3 -0
- package/icons/search-12.svg +1 -0
- package/icons/search-18.svg +1 -0
- package/icons/search-24.svg +1 -0
- package/icons/search-with-background.svg +4 -0
- package/icons/settings-18.svg +1 -0
- package/icons/slider-rating/active_mark_blue_icon.svg +23 -0
- package/icons/slider-rating/active_mark_green_icon.svg +23 -0
- package/icons/slider-rating/active_mark_red_icon.svg +23 -0
- package/icons/slider-rating/active_mark_violet_icon.svg +23 -0
- package/icons/slider-rating/active_mark_yellow_icon.svg +23 -0
- package/icons/slider-rating/line_blue_icon.svg +31 -0
- package/icons/slider-rating/line_gray_icon.svg +20 -0
- package/icons/slider-rating/line_red_icon.svg +42 -0
- package/icons/slider-rating/line_violet_icon.svg +33 -0
- package/icons/slider-rating/line_yellow_icon.svg +34 -0
- package/icons/slider-rating/na_active_icon.svg +13 -0
- package/icons/slider-rating/na_icon.svg +13 -0
- package/icons/snackbar/cross.svg +1 -0
- package/icons/snackbar/info.svg +1 -0
- package/icons/snackbar/success.svg +1 -0
- package/icons/snackbar/warning.svg +1 -0
- package/icons/sort.svg +5 -0
- package/icons/sort_asc-12.svg +1 -0
- package/icons/sort_desc-12.svg +1 -0
- package/icons/star-empty.svg +3 -0
- package/icons/star-filled.svg +3 -0
- package/icons/tick-12.svg +1 -0
- package/icons/tick-24.svg +1 -0
- package/icons/triangle.svg +10 -0
- package/index.tsx +5 -0
- package/package.json +7 -7
- package/themeTodo.md +21 -0
- package/tsconfig.json +12 -0
- package/components/filters/FilterPanelItemToggler.d.ts +0 -13
- package/components/filters/FilterPanelItemToggler.d.ts.map +0 -1
- package/components/filters/FilterPickerBody.d.ts +0 -7
- package/components/filters/FilterPickerBody.d.ts.map +0 -1
- package/components/filters/FiltersPanel.d.ts.map +0 -1
- package/components/filters/FiltersPanelItem.d.ts.map +0 -1
- package/components/filters/PresetPanel/Preset.d.ts.map +0 -1
- package/components/filters/PresetPanel/PresetInput.d.ts.map +0 -1
- package/components/filters/PresetPanel/PresetsPanel.d.ts.map +0 -1
- package/components/inputs/TextInput.d.ts +0 -15
- package/components/layout/ScrollBars.d.ts +0 -4
- package/components/layout/ScrollBars.d.ts.map +0 -1
- package/components/layout/VirtualList.d.ts.map +0 -1
- package/components/navigation/MainMenu/MainMenuAvatar.d.ts +0 -8
- package/components/navigation/MainMenu/MainMenuIcon.d.ts +0 -8
- package/components/navigation/MainMenu/MainMenuSearch.d.ts +0 -7
- package/components/overlays/DropdownMenu.d.ts +0 -39
- package/components/overlays/DropdownMenu.d.ts.map +0 -1
- package/components/overlays/Tooltip.d.ts +0 -8
- package/components/pickers/DataPickerFooter.d.ts.map +0 -1
- package/components/pickers/PickerInput.d.ts.map +0 -1
- package/components/pickers/PickerModal.d.ts.map +0 -1
- package/components/pickers/highlight.d.ts.map +0 -1
- package/components/tables/DataTableHeaderCell.d.ts.map +0 -1
- package/components/types.d.ts +0 -42
- package/components/types.d.ts.map +0 -1
- package/components/typography/Text.d.ts +0 -13
- package/components/typography/Text.d.ts.map +0 -1
- package/helpers/useColumnsWithFilters.d.ts.map +0 -1
- package/index.esm.js +0 -4657
- package/index.esm.js.map +0 -1
- package/index.js +0 -4845
- package/index.js.map +0 -1
- package/stats.html +0 -4838
- package/styles.css +0 -11020
- package/styles.css.map +0 -1
- /package/{components → build/components}/buttons/Button.d.ts +0 -0
- /package/{components → build/components}/buttons/Button.d.ts.map +0 -0
- /package/{components → build/components}/buttons/IconButton.d.ts +0 -0
- /package/{components → build/components}/buttons/IconButton.d.ts.map +0 -0
- /package/{components → build/components}/buttons/LinkButton.d.ts +0 -0
- /package/{components → build/components}/buttons/LinkButton.d.ts.map +0 -0
- /package/{components → build/components}/buttons/TabButton.d.ts +0 -0
- /package/{components → build/components}/buttons/TabButton.d.ts.map +0 -0
- /package/{components → build/components}/buttons/VerticalTabButton.d.ts +0 -0
- /package/{components → build/components}/buttons/VerticalTabButton.d.ts.map +0 -0
- /package/{components → build/components}/buttons/helper.d.ts +0 -0
- /package/{components → build/components}/buttons/helper.d.ts.map +0 -0
- /package/{components → build/components}/buttons/index.d.ts +0 -0
- /package/{components → build/components}/buttons/index.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/Calendar.d.ts +0 -0
- /package/{components → build/components}/datePickers/Calendar.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/CalendarPresets.d.ts +0 -0
- /package/{components → build/components}/datePickers/CalendarPresets.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/DatePicker.d.ts +0 -0
- /package/{components → build/components}/datePickers/DatePicker.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/DatePickerBody.d.ts +0 -0
- /package/{components → build/components}/datePickers/DatePickerBody.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/DatePickerHeader.d.ts +0 -0
- /package/{components → build/components}/datePickers/DatePickerHeader.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/RangeDatePicker.d.ts +0 -0
- /package/{components → build/components}/datePickers/RangeDatePicker.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/RangeDatePickerBody.d.ts +0 -0
- /package/{components → build/components}/datePickers/RangeDatePickerBody.d.ts.map +0 -0
- /package/{components → build/components}/datePickers/index.d.ts +0 -0
- /package/{components → build/components}/datePickers/index.d.ts.map +0 -0
- /package/{components → build/components}/dnd/DropMarker.d.ts +0 -0
- /package/{components → build/components}/dnd/DropMarker.d.ts.map +0 -0
- /package/{components → build/components}/dnd/index.d.ts +0 -0
- /package/{components → build/components}/dnd/index.d.ts.map +0 -0
- /package/{components → build/components}/fileUpload/DropSpot.d.ts +0 -0
- /package/{components → build/components}/fileUpload/DropSpot.d.ts.map +0 -0
- /package/{components → build/components}/fileUpload/FileCard.d.ts +0 -0
- /package/{components → build/components}/fileUpload/FileCard.d.ts.map +0 -0
- /package/{components → build/components}/fileUpload/SvgCircleProgress.d.ts +0 -0
- /package/{components → build/components}/fileUpload/SvgCircleProgress.d.ts.map +0 -0
- /package/{components → build/components}/fileUpload/index.d.ts +0 -0
- /package/{components → build/components}/fileUpload/index.d.ts.map +0 -0
- /package/{components → build/components}/filters/FilterDatePickerBody.d.ts +0 -0
- /package/{components → build/components}/filters/FilterDatePickerBody.d.ts.map +0 -0
- /package/{components → build/components}/filters/FilterItemBody.d.ts +0 -0
- /package/{components → build/components}/filters/FilterItemBody.d.ts.map +0 -0
- /package/{components → build/components}/filters/FilterNumericBody.d.ts +0 -0
- /package/{components → build/components}/filters/FilterNumericBody.d.ts.map +0 -0
- /package/{components → build/components}/filters/FilterRangeDatePickerBody.d.ts +0 -0
- /package/{components → build/components}/filters/FilterRangeDatePickerBody.d.ts.map +0 -0
- /package/{components → build/components}/filters/FiltersPanel.d.ts +0 -0
- /package/{components → build/components}/filters/FiltersPanelItem.d.ts +0 -0
- /package/{components → build/components}/filters/PresetPanel/Preset.d.ts +0 -0
- /package/{components → build/components}/filters/PresetPanel/PresetActionsDropdown.d.ts +0 -0
- /package/{components → build/components}/filters/PresetPanel/PresetActionsDropdown.d.ts.map +0 -0
- /package/{components → build/components}/filters/PresetPanel/PresetInput.d.ts +0 -0
- /package/{components → build/components}/filters/PresetPanel/PresetsPanel.d.ts +0 -0
- /package/{components → build/components}/filters/PresetPanel/index.d.ts +0 -0
- /package/{components → build/components}/filters/PresetPanel/index.d.ts.map +0 -0
- /package/{components → build/components}/filters/defaultPredicates.d.ts +0 -0
- /package/{components → build/components}/filters/defaultPredicates.d.ts.map +0 -0
- /package/{components → build/components}/filters/index.d.ts +0 -0
- /package/{components → build/components}/filters/index.d.ts.map +0 -0
- /package/{components → build/components}/forms/Form.d.ts +0 -0
- /package/{components → build/components}/forms/Form.d.ts.map +0 -0
- /package/{components → build/components}/forms/index.d.ts +0 -0
- /package/{components → build/components}/forms/index.d.ts.map +0 -0
- /package/{components → build/components}/forms/useForm.d.ts +0 -0
- /package/{components → build/components}/forms/useForm.d.ts.map +0 -0
- /package/{components → build/components}/index.d.ts +0 -0
- /package/{components → build/components}/index.d.ts.map +0 -0
- /package/{components → build/components}/inputs/Checkbox.d.ts +0 -0
- /package/{components → build/components}/inputs/Checkbox.d.ts.map +0 -0
- /package/{components → build/components}/inputs/InputAddon.d.ts +0 -0
- /package/{components → build/components}/inputs/InputAddon.d.ts.map +0 -0
- /package/{components → build/components}/inputs/MultiSwitch.d.ts +0 -0
- /package/{components → build/components}/inputs/MultiSwitch.d.ts.map +0 -0
- /package/{components → build/components}/inputs/NumericInput.d.ts +0 -0
- /package/{components → build/components}/inputs/NumericInput.d.ts.map +0 -0
- /package/{components → build/components}/inputs/RadioInput.d.ts +0 -0
- /package/{components → build/components}/inputs/RadioInput.d.ts.map +0 -0
- /package/{components → build/components}/inputs/Slider.d.ts +0 -0
- /package/{components → build/components}/inputs/Slider.d.ts.map +0 -0
- /package/{components → build/components}/inputs/Switch.d.ts +0 -0
- /package/{components → build/components}/inputs/Switch.d.ts.map +0 -0
- /package/{components → build/components}/inputs/TextArea.d.ts +0 -0
- /package/{components → build/components}/inputs/TextArea.d.ts.map +0 -0
- /package/{components → build/components}/inputs/TextInput.d.ts.map +0 -0
- /package/{components → build/components}/inputs/TimePicker.d.ts +0 -0
- /package/{components → build/components}/inputs/TimePicker.d.ts.map +0 -0
- /package/{components → build/components}/inputs/TimePickerBody.d.ts +0 -0
- /package/{components → build/components}/inputs/TimePickerBody.d.ts.map +0 -0
- /package/{components → build/components}/inputs/index.d.ts +0 -0
- /package/{components → build/components}/inputs/index.d.ts.map +0 -0
- /package/{components → build/components}/layout/Accordion.d.ts +0 -0
- /package/{components → build/components}/layout/Accordion.d.ts.map +0 -0
- /package/{components → build/components}/layout/Blocker.d.ts +0 -0
- /package/{components → build/components}/layout/Blocker.d.ts.map +0 -0
- /package/{components → build/components}/layout/CheckboxGroup.d.ts +0 -0
- /package/{components → build/components}/layout/CheckboxGroup.d.ts.map +0 -0
- /package/{components → build/components}/layout/ControlGroup.d.ts +0 -0
- /package/{components → build/components}/layout/ControlGroup.d.ts.map +0 -0
- /package/{components → build/components}/layout/FlexItems/FlexCell.d.ts +0 -0
- /package/{components → build/components}/layout/FlexItems/FlexCell.d.ts.map +0 -0
- /package/{components → build/components}/layout/FlexItems/FlexRow.d.ts +0 -0
- /package/{components → build/components}/layout/FlexItems/FlexRow.d.ts.map +0 -0
- /package/{components → build/components}/layout/FlexItems/Panel.d.ts +0 -0
- /package/{components → build/components}/layout/FlexItems/Panel.d.ts.map +0 -0
- /package/{components → build/components}/layout/FlexItems/index.d.ts +0 -0
- /package/{components → build/components}/layout/FlexItems/index.d.ts.map +0 -0
- /package/{components → build/components}/layout/LabeledInput.d.ts +0 -0
- /package/{components → build/components}/layout/LabeledInput.d.ts.map +0 -0
- /package/{components → build/components}/layout/RadioGroup.d.ts +0 -0
- /package/{components → build/components}/layout/RadioGroup.d.ts.map +0 -0
- /package/{components → build/components}/layout/VirtualList.d.ts +0 -0
- /package/{components → build/components}/layout/index.d.ts +0 -0
- /package/{components → build/components}/layout/index.d.ts.map +0 -0
- /package/{components → build/components}/navigation/Anchor.d.ts +0 -0
- /package/{components → build/components}/navigation/Anchor.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/Burger.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/Burger.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/BurgerButton.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/BurgerButton.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/BurgerSearch.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/BurgerSearch.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/index.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/Burger/index.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/GlobalMenu.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/GlobalMenu.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenu.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenu.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenuAvatar.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenuButton.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenuButton.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenuDropdown.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenuDropdown.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenuIcon.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/MainMenuSearch.d.ts.map +0 -0
- /package/{components → build/components}/navigation/MainMenu/index.d.ts +0 -0
- /package/{components → build/components}/navigation/MainMenu/index.d.ts.map +0 -0
- /package/{components → build/components}/navigation/index.d.ts +0 -0
- /package/{components → build/components}/navigation/index.d.ts.map +0 -0
- /package/{components → build/components}/overlays/Alert.d.ts +0 -0
- /package/{components → build/components}/overlays/Alert.d.ts.map +0 -0
- /package/{components → build/components}/overlays/ConfirmationModal.d.ts +0 -0
- /package/{components → build/components}/overlays/ConfirmationModal.d.ts.map +0 -0
- /package/{components → build/components}/overlays/Dropdown.d.ts +0 -0
- /package/{components → build/components}/overlays/Dropdown.d.ts.map +0 -0
- /package/{components → build/components}/overlays/DropdownContainer.d.ts +0 -0
- /package/{components → build/components}/overlays/DropdownContainer.d.ts.map +0 -0
- /package/{components → build/components}/overlays/Modals.d.ts +0 -0
- /package/{components → build/components}/overlays/Modals.d.ts.map +0 -0
- /package/{components → build/components}/overlays/NotificationCard.d.ts +0 -0
- /package/{components → build/components}/overlays/NotificationCard.d.ts.map +0 -0
- /package/{components → build/components}/overlays/Tooltip.d.ts.map +0 -0
- /package/{components → build/components}/overlays/index.d.ts +0 -0
- /package/{components → build/components}/overlays/index.d.ts.map +0 -0
- /package/{components → build/components}/pickers/DataPickerBody.d.ts +0 -0
- /package/{components → build/components}/pickers/DataPickerBody.d.ts.map +0 -0
- /package/{components → build/components}/pickers/DataPickerFooter.d.ts +0 -0
- /package/{components → build/components}/pickers/DataPickerHeader.d.ts +0 -0
- /package/{components → build/components}/pickers/DataPickerHeader.d.ts.map +0 -0
- /package/{components → build/components}/pickers/DataPickerRow.d.ts +0 -0
- /package/{components → build/components}/pickers/DataPickerRow.d.ts.map +0 -0
- /package/{components → build/components}/pickers/MobileDropdownWrapper.d.ts +0 -0
- /package/{components → build/components}/pickers/MobileDropdownWrapper.d.ts.map +0 -0
- /package/{components → build/components}/pickers/PickerInput.d.ts +0 -0
- /package/{components → build/components}/pickers/PickerItem.d.ts +0 -0
- /package/{components → build/components}/pickers/PickerItem.d.ts.map +0 -0
- /package/{components → build/components}/pickers/PickerList.d.ts +0 -0
- /package/{components → build/components}/pickers/PickerList.d.ts.map +0 -0
- /package/{components → build/components}/pickers/PickerListItem.d.ts +0 -0
- /package/{components → build/components}/pickers/PickerListItem.d.ts.map +0 -0
- /package/{components → build/components}/pickers/PickerModal.d.ts +0 -0
- /package/{components → build/components}/pickers/PickerToggler.d.ts +0 -0
- /package/{components → build/components}/pickers/PickerToggler.d.ts.map +0 -0
- /package/{components → build/components}/pickers/helpers.d.ts +0 -0
- /package/{components → build/components}/pickers/helpers.d.ts.map +0 -0
- /package/{components → build/components}/pickers/highlight.d.ts +0 -0
- /package/{components → build/components}/pickers/index.d.ts +0 -0
- /package/{components → build/components}/pickers/index.d.ts.map +0 -0
- /package/{components → build/components}/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts +0 -0
- /package/{components → build/components}/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts.map +0 -0
- /package/{components → build/components}/tables/ColumnHeaderDropdown/SortingPanel.d.ts +0 -0
- /package/{components → build/components}/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +0 -0
- /package/{components → build/components}/tables/ColumnHeaderDropdown/index.d.ts +0 -0
- /package/{components → build/components}/tables/ColumnHeaderDropdown/index.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/DataRowsContainer.d.ts +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/DataRowsContainer.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/DataRowsGroups.d.ts +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/DataRowsGroups.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/index.d.ts +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/index.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/utils.d.ts +0 -0
- /package/{components → build/components}/tables/DataRowsContainer/utils.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataTable.d.ts +0 -0
- /package/{components → build/components}/tables/DataTable.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataTableCell.d.ts +0 -0
- /package/{components → build/components}/tables/DataTableCell.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataTableHeaderCell.d.ts +0 -0
- /package/{components → build/components}/tables/DataTableHeaderRow.d.ts +0 -0
- /package/{components → build/components}/tables/DataTableHeaderRow.d.ts.map +0 -0
- /package/{components → build/components}/tables/DataTableRow.d.ts +0 -0
- /package/{components → build/components}/tables/DataTableRow.d.ts.map +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/ColumnRow.d.ts +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/ColumnRow.d.ts.map +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/PinIconButton.d.ts +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/PinIconButton.d.ts.map +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/index.d.ts +0 -0
- /package/{components → build/components}/tables/columnsConfigurationModal/index.d.ts.map +0 -0
- /package/{components → build/components}/tables/index.d.ts +0 -0
- /package/{components → build/components}/tables/index.d.ts.map +0 -0
- /package/{components → build/components}/tables/types.d.ts +0 -0
- /package/{components → build/components}/tables/types.d.ts.map +0 -0
- /package/{components → build/components}/typography/RichTextView.d.ts +0 -0
- /package/{components → build/components}/typography/RichTextView.d.ts.map +0 -0
- /package/{components → build/components}/typography/TextPlaceholder.d.ts +0 -0
- /package/{components → build/components}/typography/TextPlaceholder.d.ts.map +0 -0
- /package/{components → build/components}/typography/index.d.ts +0 -0
- /package/{components → build/components}/typography/index.d.ts.map +0 -0
- /package/{components → build/components}/widgets/AvatarStack.d.ts +0 -0
- /package/{components → build/components}/widgets/AvatarStack.d.ts.map +0 -0
- /package/{components → build/components}/widgets/Badge.d.ts +0 -0
- /package/{components → build/components}/widgets/Badge.d.ts.map +0 -0
- /package/{components → build/components}/widgets/CountIndicator.d.ts +0 -0
- /package/{components → build/components}/widgets/CountIndicator.d.ts.map +0 -0
- /package/{components → build/components}/widgets/IndeterminateBar.d.ts +0 -0
- /package/{components → build/components}/widgets/IndeterminateBar.d.ts.map +0 -0
- /package/{components → build/components}/widgets/IndicatorBar.d.ts +0 -0
- /package/{components → build/components}/widgets/IndicatorBar.d.ts.map +0 -0
- /package/{components → build/components}/widgets/Paginator.d.ts +0 -0
- /package/{components → build/components}/widgets/Paginator.d.ts.map +0 -0
- /package/{components → build/components}/widgets/ProgressBar.d.ts +0 -0
- /package/{components → build/components}/widgets/ProgressBar.d.ts.map +0 -0
- /package/{components → build/components}/widgets/Spinner.d.ts +0 -0
- /package/{components → build/components}/widgets/Spinner.d.ts.map +0 -0
- /package/{components → build/components}/widgets/StatusIndicator.d.ts +0 -0
- /package/{components → build/components}/widgets/StatusIndicator.d.ts.map +0 -0
- /package/{components → build/components}/widgets/Tag.d.ts +0 -0
- /package/{components → build/components}/widgets/Tag.d.ts.map +0 -0
- /package/{components → build/components}/widgets/index.d.ts +0 -0
- /package/{components → build/components}/widgets/index.d.ts.map +0 -0
- /package/{helpers → build/helpers}/index.d.ts +0 -0
- /package/{helpers → build/helpers}/index.d.ts.map +0 -0
- /package/{helpers → build/helpers}/textLayout.d.ts +0 -0
- /package/{helpers → build/helpers}/textLayout.d.ts.map +0 -0
- /package/{helpers → build/helpers}/useColumnsWithFilters.d.ts +0 -0
- /package/{i18n.d.ts → build/i18n.d.ts} +0 -0
- /package/{i18n.d.ts.map → build/i18n.d.ts.map} +0 -0
- /package/{icons → build/icons}/icons.d.ts +0 -0
- /package/{icons → build/icons}/icons.d.ts.map +0 -0
- /package/{index.d.ts → build/index.d.ts} +0 -0
- /package/{index.d.ts.map → build/index.d.ts.map} +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--uui-drop_marker: var(--uui-primary-50);
|
|
3
|
+
|
|
4
|
+
--uui-drop_marker-offset: -1px;
|
|
5
|
+
--uui-drop_marker-width: 2px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.blocker {
|
|
9
|
+
opacity: 0.1;
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 0;
|
|
12
|
+
top: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.marker {
|
|
18
|
+
position: absolute;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
z-index: 10;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.top {
|
|
24
|
+
top: var(--uui-drop_marker-offset);
|
|
25
|
+
left: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
height: var(--uui-drop_marker-width);
|
|
28
|
+
background-color: var(--uui-drop_marker);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.bottom {
|
|
32
|
+
bottom: var(--uui-drop_marker-offset);
|
|
33
|
+
left: 0;
|
|
34
|
+
right: 0;
|
|
35
|
+
height: var(--uui-drop_marker-width);
|
|
36
|
+
background-color: var(--uui-drop_marker);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.left {
|
|
40
|
+
top: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: var(--uui-drop_marker-offset);
|
|
43
|
+
width: var(--uui-drop_marker-width);
|
|
44
|
+
background-color: var(--uui-drop_marker);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.right {
|
|
48
|
+
top: 0;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
right: var(--uui-drop_marker-offset);
|
|
51
|
+
width: var(--uui-drop_marker-width);
|
|
52
|
+
background-color: var(--uui-drop_marker);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.inside {
|
|
56
|
+
top: 0;
|
|
57
|
+
bottom: 0;
|
|
58
|
+
left: 0;
|
|
59
|
+
right: 0;
|
|
60
|
+
border: var(--uui-drop_marker-width) solid var(--uui-drop_marker);
|
|
61
|
+
background-color: color-mix(in srgb, var(--uui-surface-highest) 50%, transparent);;
|
|
62
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { DndActorRenderParams, IHasCX } from '@epam/uui-core';
|
|
4
|
+
import css from './DropMarker.module.scss';
|
|
5
|
+
|
|
6
|
+
export interface DropMarkerProps extends DndActorRenderParams, IHasCX {
|
|
7
|
+
enableBlocker?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function DropMarker(props: DropMarkerProps) {
|
|
11
|
+
return props.isDndInProgress
|
|
12
|
+
? (
|
|
13
|
+
<>
|
|
14
|
+
{ props.enableBlocker && <div className={ css.blocker } /> }
|
|
15
|
+
<div className={ cx([
|
|
16
|
+
css.root,
|
|
17
|
+
css.marker,
|
|
18
|
+
css[props.position],
|
|
19
|
+
props?.cx,
|
|
20
|
+
]) }
|
|
21
|
+
/>
|
|
22
|
+
</>
|
|
23
|
+
)
|
|
24
|
+
: null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropMarker } from '../DropMarker';
|
|
3
|
+
import { renderer } from '@epam/uui-test-utils';
|
|
4
|
+
|
|
5
|
+
describe('DropMarker', () => {
|
|
6
|
+
it('should be rendered correctly', () => {
|
|
7
|
+
const mockEventHandlers: any = {};
|
|
8
|
+
mockEventHandlers.onMouseDown = jest.fn();
|
|
9
|
+
mockEventHandlers.onMouseEnter = jest.fn();
|
|
10
|
+
mockEventHandlers.onMouseMove = jest.fn();
|
|
11
|
+
mockEventHandlers.onMouseLeave = jest.fn();
|
|
12
|
+
mockEventHandlers.onMouseUp = jest.fn();
|
|
13
|
+
|
|
14
|
+
const tree = renderer
|
|
15
|
+
.create(
|
|
16
|
+
<DropMarker
|
|
17
|
+
classNames={ ['test-class'] }
|
|
18
|
+
eventHandlers={ mockEventHandlers }
|
|
19
|
+
isDndInProgress
|
|
20
|
+
isDraggable
|
|
21
|
+
isDraggedOut
|
|
22
|
+
isDraggedOver
|
|
23
|
+
isDragGhost
|
|
24
|
+
isDropAccepted
|
|
25
|
+
position="top"
|
|
26
|
+
/>,
|
|
27
|
+
)
|
|
28
|
+
.toJSON();
|
|
29
|
+
expect(tree).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DropMarker';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--uui-dropspot-border: var(--uui-control-border);
|
|
3
|
+
--uui-dropspot-border-dropstart: var(--uui-primary-50);
|
|
4
|
+
--uui-dropspot-background-dropstart: var(--uui-primary-10);
|
|
5
|
+
--uui-dropspot-icon: var(--uui-primary-50);
|
|
6
|
+
//
|
|
7
|
+
position: relative;
|
|
8
|
+
min-height: 104px;
|
|
9
|
+
border: 2px dashed var(--uui-dropspot-border);
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
white-space: pre;
|
|
14
|
+
|
|
15
|
+
&.drop-start {
|
|
16
|
+
border: 2px dashed var(--uui-dropspot-border-dropstart);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.drop-over {
|
|
20
|
+
background-color: var(--uui-dropspot-background-dropstart);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.link {
|
|
24
|
+
color: var(--uui-link);
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
color: var(--uui-link-hover);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.drop-area {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
right: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.icon-blue {
|
|
44
|
+
fill: var(--uui-dropspot-icon);
|
|
45
|
+
margin-right: 6px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { cx, IHasRawProps } from '@epam/uui-core';
|
|
3
|
+
import { DropSpot as UuiDropSpot, DropSpotRenderParams, UploadFileToggler } from '@epam/uui-components';
|
|
4
|
+
import { FlexRow, IconContainer } from '../layout';
|
|
5
|
+
import { Anchor } from '../navigation';
|
|
6
|
+
import { RichTextView, Text } from '../typography';
|
|
7
|
+
import { ReactComponent as ShapeIcon } from '../../icons/fileUpload/shape.svg';
|
|
8
|
+
import { i18n } from '../../i18n';
|
|
9
|
+
import css from './DropSpot.module.scss';
|
|
10
|
+
|
|
11
|
+
export interface DropSpotProps extends IHasRawProps<React.HTMLAttributes<HTMLDivElement>> {
|
|
12
|
+
cx?: string;
|
|
13
|
+
infoText?: string;
|
|
14
|
+
onUploadFiles(files: File[]): any;
|
|
15
|
+
accept?: string;
|
|
16
|
+
single?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class DropSpot extends React.Component<DropSpotProps> {
|
|
20
|
+
renderAttachmentArea = (props: DropSpotRenderParams) => {
|
|
21
|
+
return (
|
|
22
|
+
<div className={ cx(css.root, this.props.cx, props.isDragStart && css.dropStart, props.isDraggingOver && css.dropOver) } { ...this.props.rawProps }>
|
|
23
|
+
<div { ...props.eventHandlers } className={ css.dropArea }>
|
|
24
|
+
<FlexRow size="24">
|
|
25
|
+
<IconContainer icon={ ShapeIcon } cx={ css.iconBlue } />
|
|
26
|
+
<Text lineHeight="24" size="24" fontSize="14">
|
|
27
|
+
{' '}
|
|
28
|
+
{i18n.fileUpload.labelStart}
|
|
29
|
+
{' '}
|
|
30
|
+
</Text>
|
|
31
|
+
<UploadFileToggler
|
|
32
|
+
onFilesAdded={ this.props.onUploadFiles }
|
|
33
|
+
render={ (props) => (
|
|
34
|
+
<RichTextView>
|
|
35
|
+
<Anchor { ...props } cx={ css.link }>
|
|
36
|
+
{i18n.fileUpload.browse}
|
|
37
|
+
</Anchor>
|
|
38
|
+
</RichTextView>
|
|
39
|
+
) }
|
|
40
|
+
accept={ this.props.accept }
|
|
41
|
+
single={ this.props.single }
|
|
42
|
+
/>
|
|
43
|
+
</FlexRow>
|
|
44
|
+
{this.props.infoText && (
|
|
45
|
+
<Text lineHeight="24" size="24" fontSize="14" color="secondary">
|
|
46
|
+
{this.props.infoText}
|
|
47
|
+
</Text>
|
|
48
|
+
)}
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
render() {
|
|
55
|
+
return <UuiDropSpot render={ this.renderAttachmentArea } onFilesDropped={ this.props.onUploadFiles } />;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--uui-file_card-border: var(--uui-control-border);
|
|
3
|
+
--uui-file_card-border-error: var(--uui-error-50);
|
|
4
|
+
--uui-file_card-text-error: var(--uui-error-70);
|
|
5
|
+
--uui-file_card-icon-default: var(--uui-icon);
|
|
6
|
+
--uui-file_card-icon-error: var(--uui-error-50);
|
|
7
|
+
--uui-file_card-icon-doc: #2B579A;
|
|
8
|
+
--uui-file_card-icon-xls: #217346;
|
|
9
|
+
--uui-file_card-icon-pdf: #FA0F01;
|
|
10
|
+
--uui-file_card-icon-mov: #5214CC;
|
|
11
|
+
--uui-file_card-icon-img: #E67E17;
|
|
12
|
+
|
|
13
|
+
--uui-file_card-border-radius: var(--uui-border-radius);
|
|
14
|
+
|
|
15
|
+
--uui-file_card-font-error: var(--uui-font);
|
|
16
|
+
|
|
17
|
+
&:global(.uui-file_card) {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
min-height: 48px;
|
|
20
|
+
padding: 5px;
|
|
21
|
+
border: 1px solid var(--uui-file_card-border);
|
|
22
|
+
border-radius: var(--uui-file_card-border-radius);
|
|
23
|
+
|
|
24
|
+
.file-name {
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:global(.uui-loading) {
|
|
30
|
+
.default-color,
|
|
31
|
+
.doc-color,
|
|
32
|
+
.xls-color,
|
|
33
|
+
.pdf-color,
|
|
34
|
+
.movie-color,
|
|
35
|
+
.img-color {
|
|
36
|
+
fill: var(--uui-icon-disabled);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:global(.uui-error) {
|
|
41
|
+
border: 1px solid var(--uui-file_card-border-error);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.default-color {
|
|
45
|
+
fill: var(--uui-file_card-icon-default);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.doc-color {
|
|
49
|
+
fill: var(--uui-file_card-icon-doc);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.xls-color {
|
|
53
|
+
fill: var(--uui-file_card-icon-xls);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pdf-color {
|
|
57
|
+
fill: var(--uui-file_card-icon-pdf);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.mov-color {
|
|
61
|
+
fill: var(--uui-file_card-icon-mov);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.img-color {
|
|
65
|
+
fill: var(--uui-file_card-icon-img);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.error-block {
|
|
69
|
+
font-family: var(--uui-file_card-font-error);
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
color: var(--uui-file_card-text-error);
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
padding: 0;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
|
|
78
|
+
svg {
|
|
79
|
+
margin-right: 4px;
|
|
80
|
+
fill: var(--uui-file_card-icon-error);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.icons-block {
|
|
85
|
+
min-width: 18px;
|
|
86
|
+
flex-basis: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import css from './FileCard.module.scss';
|
|
3
|
+
import { i18n } from '../../i18n';
|
|
4
|
+
import { cx, FileUploadResponse, formatBytes, IClickable, IHasCX, uuiMod } from '@epam/uui-core';
|
|
5
|
+
import { SvgCircleProgress } from './SvgCircleProgress';
|
|
6
|
+
import { IconContainer } from '@epam/uui-components';
|
|
7
|
+
import { FlexCell, FlexRow } from '../../components/layout';
|
|
8
|
+
import { IconButton } from '../../components/buttons';
|
|
9
|
+
import { Text } from '../../components/typography';
|
|
10
|
+
import { Tooltip } from '../../components/overlays';
|
|
11
|
+
import { fileIcons } from '../../icons/icons';
|
|
12
|
+
import { ReactComponent as RemoveIcon } from '@epam/assets/icons/common/navigation-close-18.svg';
|
|
13
|
+
import { ReactComponent as ErrorIcon } from '../../icons/notification-error-fill-10.svg';
|
|
14
|
+
|
|
15
|
+
export interface FileCardItem extends Partial<File & FileUploadResponse> {
|
|
16
|
+
progress?: number;
|
|
17
|
+
abortXHR?: () => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface FileCardProps extends IClickable, IHasCX {
|
|
21
|
+
file: FileCardItem;
|
|
22
|
+
width?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const FileCard = React.forwardRef<HTMLDivElement, FileCardProps>((props, ref) => {
|
|
26
|
+
const [isLoadingShow, setIsLoadingShow] = React.useState<boolean>(true);
|
|
27
|
+
|
|
28
|
+
const { file } = props;
|
|
29
|
+
|
|
30
|
+
const getIcon = (extension: string) => {
|
|
31
|
+
switch (extension) {
|
|
32
|
+
case 'doc':
|
|
33
|
+
case 'docx':
|
|
34
|
+
return <IconContainer size={ 24 } icon={ fileIcons.docIcon } cx={ css.docColor } />;
|
|
35
|
+
case 'xls':
|
|
36
|
+
case 'xlsx':
|
|
37
|
+
return <IconContainer size={ 24 } icon={ fileIcons.exelIcon } cx={ css.xlsColor } />;
|
|
38
|
+
case 'pdf':
|
|
39
|
+
return <IconContainer size={ 24 } icon={ fileIcons.pdfIcon } cx={ css.pdfColor } />;
|
|
40
|
+
case 'gif':
|
|
41
|
+
case 'jpg':
|
|
42
|
+
case 'jpeg':
|
|
43
|
+
case 'svg':
|
|
44
|
+
case 'png':
|
|
45
|
+
case 'webp':
|
|
46
|
+
return <IconContainer size={ 24 } icon={ fileIcons.imgIcon } cx={ css.imgColor } />;
|
|
47
|
+
case 'avi':
|
|
48
|
+
case 'mov':
|
|
49
|
+
case 'mp4':
|
|
50
|
+
case 'wmw':
|
|
51
|
+
case 'mkv':
|
|
52
|
+
return <IconContainer size={ 24 } icon={ fileIcons.videoIcon } cx={ css.movColor } />;
|
|
53
|
+
case 'csv':
|
|
54
|
+
case 'xml':
|
|
55
|
+
return <IconContainer size={ 24 } icon={ fileIcons.tableIcon } cx={ css.defaultColor } />;
|
|
56
|
+
case 'rtf':
|
|
57
|
+
case 'txt':
|
|
58
|
+
return <IconContainer size={ 24 } icon={ fileIcons.textIcon } cx={ css.defaultColor } />;
|
|
59
|
+
case 'eml':
|
|
60
|
+
case 'emlx':
|
|
61
|
+
return <IconContainer size={ 24 } icon={ fileIcons.mailIcon } cx={ css.defaultColor } />;
|
|
62
|
+
default:
|
|
63
|
+
return <IconContainer size={ 24 } icon={ fileIcons.fileIcon } cx={ css.defaultColor } />;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const {
|
|
68
|
+
cx: componentCx,
|
|
69
|
+
width,
|
|
70
|
+
file: {
|
|
71
|
+
progress, size, name, extension, error, abortXHR,
|
|
72
|
+
},
|
|
73
|
+
onClick,
|
|
74
|
+
} = props;
|
|
75
|
+
const fileExtension = extension || name?.split('.').pop();
|
|
76
|
+
const fileName = name?.split('.').slice(0, -1).join('');
|
|
77
|
+
const isLoading = progress < 100;
|
|
78
|
+
const isCrossShow = ((!isLoadingShow && isLoading) || !isLoading) && onClick;
|
|
79
|
+
|
|
80
|
+
const mouseLeaveHandler = (e: React.MouseEvent) => {
|
|
81
|
+
e.stopPropagation();
|
|
82
|
+
setIsLoadingShow(() => true);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const mouseEnterHandler = (e: React.MouseEvent) => {
|
|
86
|
+
e.stopPropagation();
|
|
87
|
+
setIsLoadingShow(() => false);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const renderErrorContent = () => (
|
|
91
|
+
<Tooltip content={ file.error.message } placement="bottom-start">
|
|
92
|
+
<div className={ css.errorBlock }>
|
|
93
|
+
<ErrorIcon />
|
|
94
|
+
Upload failed
|
|
95
|
+
</div>
|
|
96
|
+
</Tooltip>
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
const renderSuccessfulContent = () => (
|
|
100
|
+
<Text size="18" fontSize="14" lineHeight="18" color="secondary">
|
|
101
|
+
{fileExtension && `${fileExtension.toUpperCase()}, `}
|
|
102
|
+
{isLoading && formatBytes((size / 100) * progress, 2, false) + i18n.fileCard.fileSizeProgress}
|
|
103
|
+
{formatBytes(size)}
|
|
104
|
+
</Text>
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
const removeHandler = () => {
|
|
108
|
+
progress && progress < 100 && abortXHR();
|
|
109
|
+
onClick();
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
return (
|
|
113
|
+
<FlexCell
|
|
114
|
+
ref={ ref }
|
|
115
|
+
cx={ cx(css.root, 'uui-file_card', (isLoading || error?.isError) && uuiMod.loading, componentCx, error?.isError && uuiMod.error) }
|
|
116
|
+
minWidth={ width }
|
|
117
|
+
width={ !width ? '100%' : undefined }
|
|
118
|
+
>
|
|
119
|
+
<FlexRow size="36" alignItems="top" spacing="6">
|
|
120
|
+
{fileExtension && getIcon(fileExtension)}
|
|
121
|
+
<FlexCell width="100%">
|
|
122
|
+
<Text size="18" fontSize="14" lineHeight="18" color={ progress < 100 ? 'secondary' : 'primary' } cx={ css.fileName }>
|
|
123
|
+
{fileName}
|
|
124
|
+
</Text>
|
|
125
|
+
{error?.isError ? renderErrorContent() : renderSuccessfulContent()}
|
|
126
|
+
</FlexCell>
|
|
127
|
+
<div className={ cx(css.iconsBlock) } onMouseEnter={ mouseEnterHandler } onMouseLeave={ mouseLeaveHandler }>
|
|
128
|
+
{isLoadingShow && isLoading && <SvgCircleProgress progress={ progress } size={ 18 } />}
|
|
129
|
+
{isCrossShow && <IconButton icon={ RemoveIcon } onClick={ removeHandler } />}
|
|
130
|
+
</div>
|
|
131
|
+
</FlexRow>
|
|
132
|
+
</FlexCell>
|
|
133
|
+
);
|
|
134
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IHasCX, IHasRawProps } from '@epam/uui-core';
|
|
3
|
+
import css from './SvgCircleProgress.module.scss';
|
|
4
|
+
|
|
5
|
+
interface SvgCircleProgressProps extends IHasCX, IHasRawProps<React.SVGAttributes<SVGSVGElement>> {
|
|
6
|
+
size: number;
|
|
7
|
+
progress: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const SvgCircleProgress = React.forwardRef<SVGSVGElement, SvgCircleProgressProps>((props, ref) => {
|
|
11
|
+
const outsetRadius = props.size / 2 - 1;
|
|
12
|
+
const insetRadius = props.size / 2 - 3;
|
|
13
|
+
const circumference = insetRadius * Math.PI;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<svg className={ css.root } width={ props.size } height={ props.size } ref={ ref } { ...props.rawProps }>
|
|
17
|
+
<circle
|
|
18
|
+
strokeDasharray={ circumference }
|
|
19
|
+
strokeDashoffset={ circumference - (props.progress / 100) * circumference }
|
|
20
|
+
strokeWidth={ insetRadius }
|
|
21
|
+
fill="transparent"
|
|
22
|
+
r={ insetRadius / 2 }
|
|
23
|
+
cx={ props.size / 2 }
|
|
24
|
+
cy={ props.size / 2 }
|
|
25
|
+
/>
|
|
26
|
+
<circle
|
|
27
|
+
strokeWidth={ 1 }
|
|
28
|
+
fill="transparent"
|
|
29
|
+
r={ outsetRadius }
|
|
30
|
+
cx={ props.size / 2 }
|
|
31
|
+
cy={ props.size / 2 }
|
|
32
|
+
/>
|
|
33
|
+
</svg>
|
|
34
|
+
);
|
|
35
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropSpot } from '../DropSpot';
|
|
3
|
+
import { renderer } from '@epam/uui-test-utils';
|
|
4
|
+
|
|
5
|
+
describe('DropSpot', () => {
|
|
6
|
+
it('should be rendered correctly', () => {
|
|
7
|
+
const tree = renderer.create(<DropSpot onUploadFiles={ jest.fn } />).toJSON();
|
|
8
|
+
expect(tree).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('should be rendered correctly with props', () => {
|
|
12
|
+
const tree = renderer.create(<DropSpot onUploadFiles={ jest.fn } infoText="Test info" />).toJSON();
|
|
13
|
+
expect(tree).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FileCard } from '../FileCard';
|
|
3
|
+
import { renderer } from '@epam/uui-test-utils';
|
|
4
|
+
|
|
5
|
+
describe('FileCard', () => {
|
|
6
|
+
it('should be rendered correctly', () => {
|
|
7
|
+
const tree = renderer
|
|
8
|
+
.create(
|
|
9
|
+
<FileCard
|
|
10
|
+
file={ {
|
|
11
|
+
id: 1,
|
|
12
|
+
name: 'Test.xls',
|
|
13
|
+
size: 12546,
|
|
14
|
+
progress: 0,
|
|
15
|
+
} }
|
|
16
|
+
/>,
|
|
17
|
+
)
|
|
18
|
+
.toJSON();
|
|
19
|
+
expect(tree).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should be rendered correctly', () => {
|
|
23
|
+
const tree = renderer
|
|
24
|
+
.create(
|
|
25
|
+
<FileCard
|
|
26
|
+
file={ {
|
|
27
|
+
id: 1,
|
|
28
|
+
name: 'Test.doc',
|
|
29
|
+
size: 12546,
|
|
30
|
+
progress: 0,
|
|
31
|
+
} }
|
|
32
|
+
width={ 140 }
|
|
33
|
+
onClick={ jest.fn }
|
|
34
|
+
/>,
|
|
35
|
+
)
|
|
36
|
+
.toJSON();
|
|
37
|
+
expect(tree).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('should be rendered correctly', () => {
|
|
41
|
+
const tree = renderer
|
|
42
|
+
.create(
|
|
43
|
+
<FileCard
|
|
44
|
+
file={ {
|
|
45
|
+
id: 1,
|
|
46
|
+
name: 'Test.gif',
|
|
47
|
+
size: 12546,
|
|
48
|
+
progress: 100,
|
|
49
|
+
} }
|
|
50
|
+
width={ 140 }
|
|
51
|
+
onClick={ jest.fn }
|
|
52
|
+
/>,
|
|
53
|
+
)
|
|
54
|
+
.toJSON();
|
|
55
|
+
expect(tree).toMatchSnapshot();
|
|
56
|
+
});
|
|
57
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgCircleProgress } from '../SvgCircleProgress';
|
|
3
|
+
import { renderer } from '@epam/uui-test-utils';
|
|
4
|
+
|
|
5
|
+
describe('SvgCircleProgress', () => {
|
|
6
|
+
it('should be rendered correctly', () => {
|
|
7
|
+
const tree = renderer.create(<SvgCircleProgress progress={ 35 } size={ 30 } />).toJSON();
|
|
8
|
+
expect(tree).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
});
|