@epam/uui 5.3.0-rc.0 → 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 +6 -6
- 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,19 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
display: none;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
@media screen and (max-width: 720px) {
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.close {
|
|
12
|
+
height: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
right: 24px;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import css from './DataPickerHeader.module.scss';
|
|
3
|
+
import { ReactComponent as CloseIcon } from '@epam/assets/icons/common/navigation-close-24.svg';
|
|
4
|
+
import { Text } from '../typography';
|
|
5
|
+
import { IconButton } from '../buttons';
|
|
6
|
+
import { FlexRow } from '../layout';
|
|
7
|
+
|
|
8
|
+
interface DataPickerHeaderProps {
|
|
9
|
+
title?: string;
|
|
10
|
+
close?: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const DataPickerHeaderImpl: React.FC<DataPickerHeaderProps> = (props) => {
|
|
14
|
+
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<FlexRow alignItems="center" borderBottom cx={ css.header }>
|
|
18
|
+
<Text size="48" fontWeight="600">{title}</Text>
|
|
19
|
+
<IconButton icon={ CloseIcon } onClick={ () => props.close?.() } cx={ css.close } />
|
|
20
|
+
</FlexRow>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const DataPickerHeader = React.memo(DataPickerHeaderImpl);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '../../assets/styles/index' as *;
|
|
2
|
+
|
|
3
|
+
.render-item {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex: auto;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.icon-wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.picker-row {
|
|
15
|
+
&:global(.uui-focus) {
|
|
16
|
+
background-color: var(--uui-surface-higher);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:global(.-clickable) {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.icon-default {
|
|
25
|
+
fill: var(--uui-icon);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon-primary {
|
|
29
|
+
fill: var(--uui-primary-50);
|
|
30
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DataRowProps, DataColumnProps } from '@epam/uui-core';
|
|
3
|
+
import { DataPickerRow as UUIDataPickerRow } from '@epam/uui-components';
|
|
4
|
+
import { FlexSpacer, IconContainer } from '../layout';
|
|
5
|
+
import { DataTableCell } from '../tables/DataTableCell';
|
|
6
|
+
import { ReactComponent as TickIcon_24 } from '@epam/assets/icons/common/notification-done-24.svg';
|
|
7
|
+
import { ReactComponent as TickIcon_18 } from '@epam/assets/icons/common/notification-done-18.svg';
|
|
8
|
+
import { ReactComponent as TickIcon_12 } from '@epam/assets/icons/common/notification-done-12.svg';
|
|
9
|
+
import css from './DataPickerRow.module.scss';
|
|
10
|
+
|
|
11
|
+
export interface DataPickerRowProps<TItem, TId> extends DataRowProps<TItem, TId> {
|
|
12
|
+
renderItem(item: TItem, rowProps: DataRowProps<TItem, TId>): React.ReactNode;
|
|
13
|
+
padding?: '12' | '24';
|
|
14
|
+
size?: 'none' | '24' | '30' | '36' | '42' | '48' | '60';
|
|
15
|
+
borderBottom?: 'none' | 'gray20';
|
|
16
|
+
alignActions?: 'top' | 'center';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class DataPickerRow<TItem, TId> extends React.Component<DataPickerRowProps<TItem, TId>> {
|
|
20
|
+
private getIcon = (size: string) => {
|
|
21
|
+
switch (size) {
|
|
22
|
+
case '24':
|
|
23
|
+
return TickIcon_12;
|
|
24
|
+
case '30':
|
|
25
|
+
return TickIcon_18;
|
|
26
|
+
case '36':
|
|
27
|
+
return TickIcon_18;
|
|
28
|
+
case '42':
|
|
29
|
+
return TickIcon_24;
|
|
30
|
+
default:
|
|
31
|
+
return TickIcon_18;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
column: DataColumnProps<TItem> = {
|
|
36
|
+
key: 'name',
|
|
37
|
+
grow: 1,
|
|
38
|
+
width: 0,
|
|
39
|
+
render: (item, rowProps) => (
|
|
40
|
+
<div key={ rowProps.id } className={ css.renderItem }>
|
|
41
|
+
{this.props.renderItem(item, rowProps)}
|
|
42
|
+
<FlexSpacer />
|
|
43
|
+
{(rowProps.isChildrenSelected || rowProps.isSelected) && (
|
|
44
|
+
<div className={ css.iconWrapper }>
|
|
45
|
+
<IconContainer
|
|
46
|
+
icon={ this.getIcon(this.props.size) }
|
|
47
|
+
cx={ rowProps.isChildrenSelected ? css.iconDefault : css.iconPrimary }
|
|
48
|
+
rawProps={ { 'aria-label': rowProps.isChildrenSelected
|
|
49
|
+
? 'Child is selected'
|
|
50
|
+
: 'Selected' } }
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
)}
|
|
54
|
+
</div>
|
|
55
|
+
),
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
renderContent = () => {
|
|
59
|
+
return (
|
|
60
|
+
<DataTableCell
|
|
61
|
+
key="name"
|
|
62
|
+
size={ this.props.size || '36' }
|
|
63
|
+
padding={ this.props.padding || '24' }
|
|
64
|
+
isFirstColumn={ true }
|
|
65
|
+
isLastColumn={ false }
|
|
66
|
+
tabIndex={ -1 }
|
|
67
|
+
column={ this.column }
|
|
68
|
+
rowProps={ this.props }
|
|
69
|
+
alignActions={ this.props.alignActions || 'top' }
|
|
70
|
+
/>
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
render() {
|
|
75
|
+
return <UUIDataPickerRow { ...this.props } cx={ [css.pickerRow, this.props.cx] } renderContent={ this.renderContent } />;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use '../../assets/styles/index' as *;
|
|
2
|
+
|
|
3
|
+
.done {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-top: 1px solid var(--uui-divider);
|
|
8
|
+
|
|
9
|
+
&:global(.uui-button-box) {
|
|
10
|
+
background-color: var(--uui-surface-main);
|
|
11
|
+
border-width: 1px !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.container {
|
|
16
|
+
@media screen and (max-width: 720px) {
|
|
17
|
+
height: 100dvh;
|
|
18
|
+
width: 100dvw;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import css from './MobileDropdownWrapper.module.scss';
|
|
3
|
+
import { IDropdownBodyProps, IHasCX, IHasRawProps, isMobile } from '@epam/uui-core';
|
|
4
|
+
import { LinkButton } from '../buttons';
|
|
5
|
+
import { ControlSize } from '../types';
|
|
6
|
+
import { DataPickerHeader } from './DataPickerHeader';
|
|
7
|
+
import { DropdownContainer } from '../overlays';
|
|
8
|
+
import { i18n } from '../../i18n';
|
|
9
|
+
|
|
10
|
+
interface IMobileDropdownWrapperProps extends IHasCX, IHasRawProps<React.HTMLAttributes<HTMLDivElement>>, IDropdownBodyProps {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
size?: ControlSize;
|
|
13
|
+
title?: string;
|
|
14
|
+
onKeyDown?(e: React.KeyboardEvent<HTMLElement>): void;
|
|
15
|
+
focusLock?: boolean;
|
|
16
|
+
width?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const MobileDropdownWrapper: React.FC<IMobileDropdownWrapperProps> = (props) => {
|
|
20
|
+
const isMobileView = isMobile();
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<DropdownContainer
|
|
24
|
+
{ ...props }
|
|
25
|
+
cx={ [css.container, props.cx] }
|
|
26
|
+
rawProps={ props.rawProps }
|
|
27
|
+
onKeyDown={ props.onKeyDown }
|
|
28
|
+
focusLock={ props.focusLock }
|
|
29
|
+
width={ props.width }
|
|
30
|
+
>
|
|
31
|
+
{isMobileView && <DataPickerHeader title={ props.title } close={ props.onClose } />}
|
|
32
|
+
|
|
33
|
+
{props.children}
|
|
34
|
+
|
|
35
|
+
{isMobileView && <LinkButton caption={ i18n.pickerInput.doneButton } onClick={ () => props.onClose?.() } cx={ css.done } size="48" />}
|
|
36
|
+
</DropdownContainer>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use '../../assets/styles/index' as *;
|
|
2
|
+
|
|
3
|
+
.footer-wrapper {
|
|
4
|
+
border-top: 1px solid var(--uui-divider);
|
|
5
|
+
padding: 0 12px;
|
|
6
|
+
display: flex;
|
|
7
|
+
|
|
8
|
+
&.footer-size-24 {
|
|
9
|
+
min-height: 24px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.footer-size-30 {
|
|
13
|
+
min-height: 30px;
|
|
14
|
+
|
|
15
|
+
:global(.uui-caption) {
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.footer-size-36 {
|
|
21
|
+
min-height: 36px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.footer-size-42 {
|
|
25
|
+
min-height: 42px;
|
|
26
|
+
|
|
27
|
+
:global(.uui-caption) {
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.footer-size-48 {
|
|
33
|
+
min-height: 48px;
|
|
34
|
+
|
|
35
|
+
:global(.uui-caption) {
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PickerBodyBaseProps, PickerInputBaseProps, PickerTogglerProps, usePickerInput } from '@epam/uui-components';
|
|
3
|
+
import { Dropdown } from '../overlays/Dropdown';
|
|
4
|
+
import { EditMode, IHasEditMode, SizeMod } from '../types';
|
|
5
|
+
import { DataRowProps, DataSourceListProps, DataSourceState, DropdownBodyProps, IDropdownToggler, IEditableDebouncer, isMobile } from '@epam/uui-core';
|
|
6
|
+
import { PickerModal } from './PickerModal';
|
|
7
|
+
import { PickerToggler, PickerTogglerMods } from './PickerToggler';
|
|
8
|
+
import { MobileDropdownWrapper } from './MobileDropdownWrapper';
|
|
9
|
+
import { DataPickerBody } from './DataPickerBody';
|
|
10
|
+
import { DataPickerRow } from './DataPickerRow';
|
|
11
|
+
import { DataPickerFooter } from './DataPickerFooter';
|
|
12
|
+
import { PickerItem } from './PickerItem';
|
|
13
|
+
|
|
14
|
+
const pickerHeight = 300;
|
|
15
|
+
const pickerWidth = 360;
|
|
16
|
+
|
|
17
|
+
export type PickerInputProps = SizeMod & IHasEditMode & {};
|
|
18
|
+
export type CompletePickerInputProps<TItem, TId> = PickerInputProps & PickerInputBaseProps<TItem, TId>;
|
|
19
|
+
|
|
20
|
+
export function PickerInput<TItem, TId>({ highlightSearchMatches = true, ...props }: CompletePickerInputProps<TItem, TId>) {
|
|
21
|
+
const toggleModalOpening = () => {
|
|
22
|
+
const { renderFooter, rawProps, ...restProps } = props;
|
|
23
|
+
context.uuiModals
|
|
24
|
+
.show((modalProps) => (
|
|
25
|
+
<PickerModal<TItem, TId>
|
|
26
|
+
{ ...restProps }
|
|
27
|
+
rawProps={ rawProps?.body }
|
|
28
|
+
{ ...modalProps }
|
|
29
|
+
caption={ getPlaceholder() }
|
|
30
|
+
initialValue={ props.value as any }
|
|
31
|
+
renderRow={ renderRow }
|
|
32
|
+
selectionMode={ props.selectionMode }
|
|
33
|
+
valueType={ props.valueType }
|
|
34
|
+
/>
|
|
35
|
+
))
|
|
36
|
+
.then((newSelection) => {
|
|
37
|
+
handleSelectionValueChange(newSelection);
|
|
38
|
+
})
|
|
39
|
+
.catch(() => {});
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const {
|
|
43
|
+
context,
|
|
44
|
+
popperModifiers,
|
|
45
|
+
getName,
|
|
46
|
+
getPlaceholder,
|
|
47
|
+
handleSelectionValueChange,
|
|
48
|
+
getTogglerProps,
|
|
49
|
+
getRows,
|
|
50
|
+
handleTogglerSearchChange,
|
|
51
|
+
toggleBodyOpening,
|
|
52
|
+
dataSourceState,
|
|
53
|
+
getFooterProps,
|
|
54
|
+
getPickerBodyProps,
|
|
55
|
+
getListProps,
|
|
56
|
+
shouldShowBody,
|
|
57
|
+
getSearchPosition,
|
|
58
|
+
handlePickerInputKeyboard,
|
|
59
|
+
} = usePickerInput<TItem, TId, CompletePickerInputProps<TItem, TId>>({ ...props, toggleModalOpening });
|
|
60
|
+
|
|
61
|
+
const getTogglerMods = (): PickerTogglerMods => {
|
|
62
|
+
return {
|
|
63
|
+
size: props.size as PickerTogglerMods['size'],
|
|
64
|
+
mode: props.mode ? props.mode : EditMode.FORM,
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const renderTarget = (targetProps: IDropdownToggler & PickerTogglerProps<TItem, TId>) => {
|
|
69
|
+
const renderTargetFn = props.renderToggler || ((props) => <PickerToggler { ...props } />);
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<IEditableDebouncer
|
|
73
|
+
value={ targetProps.value }
|
|
74
|
+
onValueChange={ handleTogglerSearchChange }
|
|
75
|
+
debounceDelay={ props.searchDebounceDelay }
|
|
76
|
+
render={ (editableProps) => renderTargetFn({
|
|
77
|
+
...getTogglerMods(),
|
|
78
|
+
...targetProps,
|
|
79
|
+
...editableProps,
|
|
80
|
+
onKeyDown: (e) => handlePickerInputKeyboard(rows, e, editableProps.value),
|
|
81
|
+
}) }
|
|
82
|
+
/>
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const renderFooter = () => {
|
|
87
|
+
const footerProps = getFooterProps();
|
|
88
|
+
|
|
89
|
+
return props.renderFooter ? props.renderFooter(footerProps) : <DataPickerFooter { ...footerProps } size={ props.size } />;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const getRowSize = () => {
|
|
93
|
+
if (isMobile()) {
|
|
94
|
+
return '48';
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return props.editMode === 'modal' ? '36' : props.size;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const renderItem = (item: TItem, rowProps: DataRowProps<TItem, TId>, dsState: DataSourceState) => {
|
|
101
|
+
return (
|
|
102
|
+
<PickerItem
|
|
103
|
+
title={ getName(item) }
|
|
104
|
+
size={ getRowSize() }
|
|
105
|
+
dataSourceState={ dsState }
|
|
106
|
+
highlightSearchMatches={ highlightSearchMatches }
|
|
107
|
+
{ ...rowProps }
|
|
108
|
+
/>
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const renderRow = (rowProps: DataRowProps<TItem, TId>, dsState: DataSourceState) => {
|
|
113
|
+
return props.renderRow ? (
|
|
114
|
+
props.renderRow(rowProps, dsState)
|
|
115
|
+
) : (
|
|
116
|
+
<DataPickerRow
|
|
117
|
+
{ ...rowProps }
|
|
118
|
+
key={ rowProps.rowKey }
|
|
119
|
+
borderBottom="none"
|
|
120
|
+
size={ getRowSize() }
|
|
121
|
+
padding={ props.editMode === 'modal' ? '24' : '12' }
|
|
122
|
+
renderItem={ (item, itemProps) => renderItem(item, itemProps, dsState) }
|
|
123
|
+
/>
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const renderBody = (bodyProps: DropdownBodyProps & DataSourceListProps & Omit<PickerBodyBaseProps, 'rows'>, rows: DataRowProps<TItem, TId>[]) => {
|
|
128
|
+
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
129
|
+
const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || pickerHeight;
|
|
130
|
+
const minBodyWidth = props.minBodyWidth || pickerWidth;
|
|
131
|
+
|
|
132
|
+
return (
|
|
133
|
+
<MobileDropdownWrapper
|
|
134
|
+
title={ props.entityName }
|
|
135
|
+
onClose={ () => toggleBodyOpening(false) }
|
|
136
|
+
cx={ [props.bodyCx] }
|
|
137
|
+
onKeyDown={ bodyProps.onKeyDown }
|
|
138
|
+
width={ bodyProps.togglerWidth > minBodyWidth ? bodyProps.togglerWidth : minBodyWidth }
|
|
139
|
+
focusLock={ getSearchPosition() === 'body' }
|
|
140
|
+
>
|
|
141
|
+
<DataPickerBody
|
|
142
|
+
{ ...bodyProps }
|
|
143
|
+
rows={ renderedDataRows }
|
|
144
|
+
maxHeight={ bodyHeight }
|
|
145
|
+
searchSize={ props.size }
|
|
146
|
+
editMode="dropdown"
|
|
147
|
+
selectionMode={ props.selectionMode }
|
|
148
|
+
renderNotFound={
|
|
149
|
+
props.renderNotFound
|
|
150
|
+
? () =>
|
|
151
|
+
props.renderNotFound({
|
|
152
|
+
search: dataSourceState.search,
|
|
153
|
+
onClose: () => toggleBodyOpening(false),
|
|
154
|
+
})
|
|
155
|
+
: undefined
|
|
156
|
+
}
|
|
157
|
+
/>
|
|
158
|
+
{ renderFooter() }
|
|
159
|
+
</MobileDropdownWrapper>
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const rows = getRows();
|
|
164
|
+
|
|
165
|
+
return (
|
|
166
|
+
<Dropdown
|
|
167
|
+
renderTarget={ (dropdownProps) => {
|
|
168
|
+
const targetProps = getTogglerProps();
|
|
169
|
+
return renderTarget({ ...dropdownProps, ...targetProps });
|
|
170
|
+
} }
|
|
171
|
+
renderBody={ (bodyProps) => renderBody({ ...bodyProps, ...getPickerBodyProps(rows), ...getListProps() }, rows) }
|
|
172
|
+
value={ shouldShowBody() }
|
|
173
|
+
onValueChange={ !props.isDisabled && toggleBodyOpening }
|
|
174
|
+
placement={ props.dropdownPlacement }
|
|
175
|
+
modifiers={ popperModifiers }
|
|
176
|
+
closeBodyOnTogglerHidden={ !isMobile() }
|
|
177
|
+
portalTarget={ props.portalTarget }
|
|
178
|
+
/>
|
|
179
|
+
);
|
|
180
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
.multiline {
|
|
3
|
+
&.vertical-padding-24 {
|
|
4
|
+
padding-top: 3px;
|
|
5
|
+
padding-bottom: 3px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&.vertical-padding-30 {
|
|
9
|
+
padding-top: 6px;
|
|
10
|
+
padding-bottom: 6px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.vertical-padding-36 {
|
|
14
|
+
padding-top: 6px;
|
|
15
|
+
padding-bottom: 6px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.vertical-padding-42 {
|
|
19
|
+
padding-top: 9px;
|
|
20
|
+
padding-bottom: 9px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.vertical-padding-48 {
|
|
24
|
+
padding-top: 9px;
|
|
25
|
+
padding-bottom: 9px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.text {
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DataRowProps, DataSourceState, Icon } from '@epam/uui-core';
|
|
3
|
+
import { AvatarProps, IconContainer } from '@epam/uui-components';
|
|
4
|
+
import { FlexCell, FlexRow } from '../layout';
|
|
5
|
+
import { Text, TextPlaceholder } from '../typography';
|
|
6
|
+
import { Avatar } from '../widgets';
|
|
7
|
+
import { SizeMod } from '../types';
|
|
8
|
+
import css from './PickerItem.module.scss';
|
|
9
|
+
import { getHighlightedSearchMatches } from './highlight';
|
|
10
|
+
|
|
11
|
+
const defaultSize = '36';
|
|
12
|
+
|
|
13
|
+
export interface PickerItemProps<TItem, TId> extends DataRowProps<TItem, TId>, SizeMod {
|
|
14
|
+
avatarUrl?: string;
|
|
15
|
+
icon?: Icon;
|
|
16
|
+
title?: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
dataSourceState?: DataSourceState;
|
|
19
|
+
/**
|
|
20
|
+
* Enables highlighting of the items' text with search-matching results.
|
|
21
|
+
* @default true
|
|
22
|
+
* */
|
|
23
|
+
highlightSearchMatches?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export class PickerItem<TItem, TId> extends React.Component<PickerItemProps<TItem, TId>> {
|
|
26
|
+
public static defaultProps = {
|
|
27
|
+
highlightSearchMatches: true,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getAvatarSize = (size: string, isMultiline: boolean): string | number => {
|
|
31
|
+
return isMultiline ? size : +size - 6;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
render() {
|
|
35
|
+
const {
|
|
36
|
+
size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, cx,
|
|
37
|
+
} = this.props;
|
|
38
|
+
const itemSize = size && size !== 'none' ? size : defaultSize;
|
|
39
|
+
const isMultiline = !!(this.props.title && this.props.subtitle);
|
|
40
|
+
|
|
41
|
+
const { search } = this.props.dataSourceState ?? {};
|
|
42
|
+
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
43
|
+
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<FlexCell width="auto" cx={ [css.root, 'uui-typography', cx] }>
|
|
47
|
+
<FlexRow size={ itemSize } cx={ isMultiline && [css.multiline, css[`vertical-padding-${itemSize}`]] } spacing="12">
|
|
48
|
+
{avatarUrl && <Avatar isLoading={ isLoading } img={ avatarUrl } size={ this.getAvatarSize(itemSize, isMultiline).toString() as AvatarProps['size'] } />}
|
|
49
|
+
{icon && <IconContainer icon={ icon } />}
|
|
50
|
+
<FlexCell width="auto">
|
|
51
|
+
{title && (
|
|
52
|
+
<Text size={ itemSize } cx={ css.text } color={ isDisabled ? 'disabled' : 'primary' }>
|
|
53
|
+
{isLoading ? <TextPlaceholder wordsCount={ 2 } /> : title}
|
|
54
|
+
</Text>
|
|
55
|
+
)}
|
|
56
|
+
{subtitle && (
|
|
57
|
+
<Text size={ itemSize } color={ isDisabled ? 'disabled' : 'secondary' } cx={ css.text }>
|
|
58
|
+
{isLoading ? <TextPlaceholder wordsCount={ 2 } /> : subtitle}
|
|
59
|
+
</Text>
|
|
60
|
+
)}
|
|
61
|
+
</FlexCell>
|
|
62
|
+
</FlexRow>
|
|
63
|
+
</FlexCell>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataRowProps, IClickable, IDisableable, IHasCaption, IHasPlaceholder } from '@epam/uui-core';
|
|
3
|
+
import { PickerListBaseProps, PickerModalOptions, usePickerList } from '@epam/uui-components';
|
|
4
|
+
import { IHasEditMode, SizeMod, TextSize } from '../types';
|
|
5
|
+
import { Text } from '../typography';
|
|
6
|
+
import { PickerListItem } from './PickerListItem';
|
|
7
|
+
import { PickerModal } from './PickerModal';
|
|
8
|
+
import { LinkButton } from '../buttons';
|
|
9
|
+
|
|
10
|
+
export type PickerListProps<TItem, TId> = SizeMod &
|
|
11
|
+
IHasPlaceholder &
|
|
12
|
+
PickerModalOptions<TItem, TId> & {
|
|
13
|
+
renderModalToggler?(props: IClickable & IHasCaption & IDisableable, selection: DataRowProps<TItem, TId>[]): React.ReactNode;
|
|
14
|
+
noOptionsMessage?: React.ReactNode;
|
|
15
|
+
} & PickerListBaseProps<TItem, TId> & IHasEditMode;
|
|
16
|
+
|
|
17
|
+
export function PickerList<TItem, TId>(props: PickerListProps<TItem, TId>) {
|
|
18
|
+
const {
|
|
19
|
+
context,
|
|
20
|
+
view,
|
|
21
|
+
getName,
|
|
22
|
+
getEntityName,
|
|
23
|
+
appendLastSelected,
|
|
24
|
+
getSelectedIdsArray,
|
|
25
|
+
buildRowsList,
|
|
26
|
+
getMaxDefaultItems,
|
|
27
|
+
dataSourceState,
|
|
28
|
+
getModalTogglerCaption,
|
|
29
|
+
} = usePickerList<TItem, TId, PickerListProps<TItem, TId>>(props);
|
|
30
|
+
|
|
31
|
+
const defaultRenderRow = (row: DataRowProps<TItem, TId>) => {
|
|
32
|
+
return <PickerListItem getName={ (item) => getName(item) } { ...row } key={ row.rowKey } />;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const handleShowPicker = () => {
|
|
36
|
+
context.uuiModals
|
|
37
|
+
.show((modalProps) => (
|
|
38
|
+
<PickerModal<TItem, TId>
|
|
39
|
+
{ ...modalProps }
|
|
40
|
+
{ ...props }
|
|
41
|
+
caption={ props.placeholder || `Please select ${getEntityName() ? getEntityName() : ''}` }
|
|
42
|
+
initialValue={ props.value as any }
|
|
43
|
+
selectionMode={ props.selectionMode }
|
|
44
|
+
valueType={ props.valueType }
|
|
45
|
+
/>
|
|
46
|
+
))
|
|
47
|
+
.then((value: any) => {
|
|
48
|
+
appendLastSelected([...getSelectedIdsArray(value)]);
|
|
49
|
+
props.onValueChange(value);
|
|
50
|
+
})
|
|
51
|
+
.catch(() => {});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const defaultRenderToggler = (props: IClickable) => <LinkButton caption="Show all" { ...props } />;
|
|
55
|
+
|
|
56
|
+
const viewProps = view.getListProps();
|
|
57
|
+
const selectedRows = view.getSelectedRows();
|
|
58
|
+
const rows = buildRowsList();
|
|
59
|
+
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
60
|
+
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
61
|
+
const renderRow = props.renderRow || defaultRenderRow;
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div>
|
|
65
|
+
{!rows.length
|
|
66
|
+
&& (props.noOptionsMessage || (
|
|
67
|
+
<Text color="secondary" size={ props.size as TextSize }>
|
|
68
|
+
No options available
|
|
69
|
+
</Text>
|
|
70
|
+
))}
|
|
71
|
+
{rows.map((row) => renderRow({ ...row, isDisabled: props.isDisabled }, dataSourceState))}
|
|
72
|
+
{showPicker
|
|
73
|
+
&& renderToggler(
|
|
74
|
+
{
|
|
75
|
+
onClick: handleShowPicker,
|
|
76
|
+
caption: getModalTogglerCaption(viewProps.totalCount, view.getSelectedRowsCount()),
|
|
77
|
+
isDisabled: props.isDisabled,
|
|
78
|
+
},
|
|
79
|
+
selectedRows,
|
|
80
|
+
)}
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataRowProps } from '@epam/uui-core';
|
|
3
|
+
import { Checkbox, RadioInput } from '../inputs';
|
|
4
|
+
import { TextPlaceholder } from '../typography';
|
|
5
|
+
import css from './PickerListItem.module.scss';
|
|
6
|
+
|
|
7
|
+
export interface PickerListItemProps<TItem, TId> extends DataRowProps<TItem, TId> {
|
|
8
|
+
getName(item: TItem): string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function PickerListItem<TItem, TId>(props: PickerListItemProps<TItem, TId>) {
|
|
12
|
+
let label: any;
|
|
13
|
+
|
|
14
|
+
if (props.isLoading) {
|
|
15
|
+
label = <TextPlaceholder wordsCount={ 2 } />;
|
|
16
|
+
} else {
|
|
17
|
+
label = props.getName(props.value);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let component: any;
|
|
21
|
+
|
|
22
|
+
if (props.checkbox) {
|
|
23
|
+
component = (
|
|
24
|
+
<Checkbox
|
|
25
|
+
{ ...props.checkbox }
|
|
26
|
+
isDisabled={ props.isLoading || props.checkbox.isDisabled || props.isDisabled }
|
|
27
|
+
label={ label }
|
|
28
|
+
value={ props.isChecked }
|
|
29
|
+
onValueChange={ () => props.onCheck(props) }
|
|
30
|
+
/>
|
|
31
|
+
);
|
|
32
|
+
} else {
|
|
33
|
+
component = (
|
|
34
|
+
<RadioInput
|
|
35
|
+
label={ label }
|
|
36
|
+
value={ props.isSelected }
|
|
37
|
+
isDisabled={ props.isLoading || !props.isSelectable || props.isDisabled }
|
|
38
|
+
onValueChange={ () => props.onSelect(props) }
|
|
39
|
+
/>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<div
|
|
45
|
+
role="option"
|
|
46
|
+
aria-selected={ props.isSelectable ? props.isSelected : undefined }
|
|
47
|
+
aria-busy={ props.isLoading }
|
|
48
|
+
aria-posinset={ props.index + 1 }
|
|
49
|
+
{ ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }) }
|
|
50
|
+
className={ css.row }
|
|
51
|
+
>
|
|
52
|
+
{component}
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
}
|