nntc-ui 0.2.6 → 0.2.8
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/components/data-display/Chip/Chip.d.ts +18 -0
- package/components/data-display/Chip/Chip.d.ts.map +1 -0
- package/{src/components/view/Chip/index.ts → components/data-display/Chip/index.d.ts} +1 -0
- package/components/data-display/Chip/index.d.ts.map +1 -0
- package/components/data-display/Pairs/Pairs.d.ts +14 -0
- package/components/data-display/Pairs/Pairs.d.ts.map +1 -0
- package/{src/components/view/Pairs/index.ts → components/data-display/Pairs/index.d.ts} +1 -0
- package/components/data-display/Pairs/index.d.ts.map +1 -0
- package/components/data-display/Pairs/models/Pair.d.ts +5 -0
- package/components/data-display/Pairs/models/Pair.d.ts.map +1 -0
- package/components/data-display/Pairs/ui/TypographyWithTooltip.d.ts +6 -0
- package/components/data-display/Pairs/ui/TypographyWithTooltip.d.ts.map +1 -0
- package/components/data-display/Tooltip/Tooltip.d.ts +16 -0
- package/components/data-display/Tooltip/Tooltip.d.ts.map +1 -0
- package/{src/components/view/Tooltip/index.ts → components/data-display/Tooltip/index.d.ts} +1 -0
- package/components/data-display/Tooltip/index.d.ts.map +1 -0
- package/components/data-display/Tooltip/ui/TooltipContent/TooltipContent.d.ts +9 -0
- package/components/data-display/Tooltip/ui/TooltipContent/TooltipContent.d.ts.map +1 -0
- package/{src/components/view/Tooltip/ui/TooltipContent/index.ts → components/data-display/Tooltip/ui/TooltipContent/index.d.ts} +1 -0
- package/components/data-display/Tooltip/ui/TooltipContent/index.d.ts.map +1 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/TooltipProvider.d.ts +4 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/TooltipProvider.d.ts.map +1 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/constants/TooltipContext.d.ts +3 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/constants/TooltipContext.d.ts.map +1 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/hooks/useTooltip.d.ts +51 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/hooks/useTooltip.d.ts.map +1 -0
- package/{src/components/view/Tooltip/ui/TooltipProvider/index.ts → components/data-display/Tooltip/ui/TooltipProvider/index.d.ts} +1 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/index.d.ts.map +1 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/models/TooltipOptions.d.ts +12 -0
- package/components/data-display/Tooltip/ui/TooltipProvider/models/TooltipOptions.d.ts.map +1 -0
- package/{src/components/view/Tooltip/ui/TooltipProvider/models/TooltipState.ts → components/data-display/Tooltip/ui/TooltipProvider/models/TooltipState.d.ts} +1 -1
- package/components/data-display/Tooltip/ui/TooltipProvider/models/TooltipState.d.ts.map +1 -0
- package/components/data-display/Tooltip/ui/TooltipTrigger/TooltipTrigger.d.ts +5 -0
- package/components/data-display/Tooltip/ui/TooltipTrigger/TooltipTrigger.d.ts.map +1 -0
- package/{src/components/view/Tooltip/ui/TooltipTrigger/index.ts → components/data-display/Tooltip/ui/TooltipTrigger/index.d.ts} +1 -0
- package/components/data-display/Tooltip/ui/TooltipTrigger/index.d.ts.map +1 -0
- package/components/data-display/TreeView/TreeView.d.ts +12 -0
- package/components/data-display/TreeView/TreeView.d.ts.map +1 -0
- package/{src/components/view/TreeView/index.ts → components/data-display/TreeView/index.d.ts} +1 -0
- package/components/data-display/TreeView/index.d.ts.map +1 -0
- package/components/data-display/TreeView/models/Item.d.ts +8 -0
- package/components/data-display/TreeView/models/Item.d.ts.map +1 -0
- package/components/data-display/TreeView/ui/TreeViewItem/TreeViewItem.d.ts +16 -0
- package/components/data-display/TreeView/ui/TreeViewItem/TreeViewItem.d.ts.map +1 -0
- package/{src/components/view/TreeView/ui/TreeViewItem/index.ts → components/data-display/TreeView/ui/TreeViewItem/index.d.ts} +1 -0
- package/components/data-display/TreeView/ui/TreeViewItem/index.d.ts.map +1 -0
- package/components/data-display/TreeView/utils/getFilteredTree.d.ts +3 -0
- package/components/data-display/TreeView/utils/getFilteredTree.d.ts.map +1 -0
- package/components/data-display/Typography/Typography.d.ts +9 -0
- package/components/data-display/Typography/Typography.d.ts.map +1 -0
- package/{src/components/view/Typography/index.ts → components/data-display/Typography/index.d.ts} +1 -0
- package/components/data-display/Typography/index.d.ts.map +1 -0
- package/components/data-display/VirtualTable/VirtualTable.d.ts +78 -0
- package/components/data-display/VirtualTable/VirtualTable.d.ts.map +1 -0
- package/components/data-display/VirtualTable/constants/defaultRowHeight.d.ts +2 -0
- package/components/data-display/VirtualTable/constants/defaultRowHeight.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/index.ts → components/data-display/VirtualTable/index.d.ts} +1 -2
- package/components/data-display/VirtualTable/index.d.ts.map +1 -0
- package/components/data-display/VirtualTable/models/AdditionalButton.d.ts +9 -0
- package/components/data-display/VirtualTable/models/AdditionalButton.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/models/ColumnAlign.ts → components/data-display/VirtualTable/models/ColumnAlign.d.ts} +1 -0
- package/components/data-display/VirtualTable/models/ColumnAlign.d.ts.map +1 -0
- package/components/data-display/VirtualTable/models/FilterBy.d.ts +12 -0
- package/components/data-display/VirtualTable/models/FilterBy.d.ts.map +1 -0
- package/components/data-display/VirtualTable/models/SortBy.d.ts +11 -0
- package/components/data-display/VirtualTable/models/SortBy.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/models/SortType.ts → components/data-display/VirtualTable/models/SortType.d.ts} +1 -0
- package/components/data-display/VirtualTable/models/SortType.d.ts.map +1 -0
- package/components/data-display/VirtualTable/models/TableCell.d.ts +15 -0
- package/components/data-display/VirtualTable/models/TableCell.d.ts.map +1 -0
- package/components/data-display/VirtualTable/models/TableColumn.d.ts +52 -0
- package/components/data-display/VirtualTable/models/TableColumn.d.ts.map +1 -0
- package/components/data-display/VirtualTable/models/TableRow.d.ts +6 -0
- package/components/data-display/VirtualTable/models/TableRow.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/models/VerticalAlign.ts → components/data-display/VirtualTable/models/VerticalAlign.d.ts} +1 -0
- package/components/data-display/VirtualTable/models/VerticalAlign.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/models/VirtualTableBorders.ts → components/data-display/VirtualTable/models/VirtualTableBorders.d.ts} +1 -0
- package/components/data-display/VirtualTable/models/VirtualTableBorders.d.ts.map +1 -0
- package/components/data-display/VirtualTable/models/VirtualTableRef.d.ts +8 -0
- package/components/data-display/VirtualTable/models/VirtualTableRef.d.ts.map +1 -0
- package/components/data-display/VirtualTable/ui/DateFiltration/DateFiltration.d.ts +7 -0
- package/components/data-display/VirtualTable/ui/DateFiltration/DateFiltration.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/ui/DateFiltration/index.ts → components/data-display/VirtualTable/ui/DateFiltration/index.d.ts} +1 -0
- package/components/data-display/VirtualTable/ui/DateFiltration/index.d.ts.map +1 -0
- package/components/data-display/VirtualTable/ui/DefaultColumn/DefaultColumn.d.ts +4 -0
- package/components/data-display/VirtualTable/ui/DefaultColumn/DefaultColumn.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/ui/DefaultColumn/index.ts → components/data-display/VirtualTable/ui/DefaultColumn/index.d.ts} +1 -0
- package/components/data-display/VirtualTable/ui/DefaultColumn/index.d.ts.map +1 -0
- package/components/data-display/VirtualTable/ui/HeaderDropdown/HeaderDropdown.d.ts +23 -0
- package/components/data-display/VirtualTable/ui/HeaderDropdown/HeaderDropdown.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/ui/HeaderDropdown/index.ts → components/data-display/VirtualTable/ui/HeaderDropdown/index.d.ts} +1 -0
- package/components/data-display/VirtualTable/ui/HeaderDropdown/index.d.ts.map +1 -0
- package/components/data-display/VirtualTable/ui/NumberFiltration/NumberFiltration.d.ts +7 -0
- package/components/data-display/VirtualTable/ui/NumberFiltration/NumberFiltration.d.ts.map +1 -0
- package/{src/components/view/VirtualTable/ui/NumberFiltration/index.ts → components/data-display/VirtualTable/ui/NumberFiltration/index.d.ts} +1 -0
- package/components/data-display/VirtualTable/ui/NumberFiltration/index.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/alphanumericCompare.d.ts +2 -0
- package/components/data-display/VirtualTable/utils/alphanumericCompare.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/dedupeFirstByColumnValue.d.ts +3 -0
- package/components/data-display/VirtualTable/utils/dedupeFirstByColumnValue.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/getColumns.d.ts +5 -0
- package/components/data-display/VirtualTable/utils/getColumns.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/getNextHorizontalHeaders.d.ts +4 -0
- package/components/data-display/VirtualTable/utils/getNextHorizontalHeaders.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/getNextVerticalHeaders.d.ts +4 -0
- package/components/data-display/VirtualTable/utils/getNextVerticalHeaders.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/getPrevHorizontalHeaders.d.ts +4 -0
- package/components/data-display/VirtualTable/utils/getPrevHorizontalHeaders.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/getPrevVerticalHeaders.d.ts +4 -0
- package/components/data-display/VirtualTable/utils/getPrevVerticalHeaders.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/recursiveFilter.d.ts +4 -0
- package/components/data-display/VirtualTable/utils/recursiveFilter.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/recursiveSort.d.ts +4 -0
- package/components/data-display/VirtualTable/utils/recursiveSort.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/rowMatchesFilter.d.ts +4 -0
- package/components/data-display/VirtualTable/utils/rowMatchesFilter.d.ts.map +1 -0
- package/components/data-display/VirtualTable/utils/rowSelection.d.ts +24 -0
- package/components/data-display/VirtualTable/utils/rowSelection.d.ts.map +1 -0
- package/components/feedback/Alert/Alert.d.ts +15 -0
- package/components/feedback/Alert/Alert.d.ts.map +1 -0
- package/components/feedback/Alert/index.d.ts +2 -0
- package/components/feedback/Alert/index.d.ts.map +1 -0
- package/components/feedback/Loader/Loader.d.ts +9 -0
- package/components/feedback/Loader/Loader.d.ts.map +1 -0
- package/{src/components/view/Loader/index.ts → components/feedback/Loader/index.d.ts} +1 -0
- package/components/feedback/Loader/index.d.ts.map +1 -0
- package/components/feedback/Modal/Modal.d.ts +11 -0
- package/components/feedback/Modal/Modal.d.ts.map +1 -0
- package/components/feedback/Modal/index.d.ts +2 -0
- package/components/feedback/Modal/index.d.ts.map +1 -0
- package/components/inputs/Button/Button.d.ts +15 -0
- package/components/inputs/Button/Button.d.ts.map +1 -0
- package/components/inputs/Button/index.d.ts +2 -0
- package/components/inputs/Button/index.d.ts.map +1 -0
- package/components/inputs/ButtonsGroup/ButtonsGroup.d.ts +11 -0
- package/components/inputs/ButtonsGroup/ButtonsGroup.d.ts.map +1 -0
- package/{src/components/common/ButtonsGroup/index.ts → components/inputs/ButtonsGroup/index.d.ts} +1 -0
- package/components/inputs/ButtonsGroup/index.d.ts.map +1 -0
- package/components/inputs/Checkbox/Checkbox.d.ts +12 -0
- package/components/inputs/Checkbox/Checkbox.d.ts.map +1 -0
- package/{src/components/common/Checkbox/index.ts → components/inputs/Checkbox/index.d.ts} +1 -0
- package/components/inputs/Checkbox/index.d.ts.map +1 -0
- package/components/inputs/Checklist/Checklist.d.ts +17 -0
- package/components/inputs/Checklist/Checklist.d.ts.map +1 -0
- package/{src/components/common/Checklist/index.ts → components/inputs/Checklist/index.d.ts} +1 -1
- package/components/inputs/Checklist/index.d.ts.map +1 -0
- package/components/inputs/Checklist/models/Item.d.ts +5 -0
- package/components/inputs/Checklist/models/Item.d.ts.map +1 -0
- package/components/inputs/Checklist/models/SelectedItems.d.ts +4 -0
- package/components/inputs/Checklist/models/SelectedItems.d.ts.map +1 -0
- package/components/inputs/Checklist/utils/filterItems.d.ts +4 -0
- package/components/inputs/Checklist/utils/filterItems.d.ts.map +1 -0
- package/components/inputs/ColorPicker/ColorPicker.d.ts +18 -0
- package/components/inputs/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/{src/components/common/ColorPicker/index.ts → components/inputs/ColorPicker/index.d.ts} +1 -0
- package/components/inputs/ColorPicker/index.d.ts.map +1 -0
- package/components/inputs/DateTime/DateTime.d.ts +29 -0
- package/components/inputs/DateTime/DateTime.d.ts.map +1 -0
- package/{src/components/common/DateTime/index.ts → components/inputs/DateTime/index.d.ts} +1 -0
- package/components/inputs/DateTime/index.d.ts.map +1 -0
- package/components/inputs/DateTime/models/dayjs.d.ts +25 -0
- package/components/inputs/DateTime/models/dayjs.d.ts.map +1 -0
- package/components/inputs/DateTime/ui/CalendarPopover/CalendarPopover.d.ts +18 -0
- package/components/inputs/DateTime/ui/CalendarPopover/CalendarPopover.d.ts.map +1 -0
- package/{src/components/common/DateTime/ui/CalendarPopover/index.ts → components/inputs/DateTime/ui/CalendarPopover/index.d.ts} +1 -0
- package/components/inputs/DateTime/ui/CalendarPopover/index.d.ts.map +1 -0
- package/components/inputs/DateTime/ui/TimeWheelColumn/TimeWheelColumn.d.ts +8 -0
- package/components/inputs/DateTime/ui/TimeWheelColumn/TimeWheelColumn.d.ts.map +1 -0
- package/{src/components/common/DateTime/ui/TimeWheelColumn/index.ts → components/inputs/DateTime/ui/TimeWheelColumn/index.d.ts} +1 -0
- package/components/inputs/DateTime/ui/TimeWheelColumn/index.d.ts.map +1 -0
- package/components/inputs/DateTime/utils/createCalendarDate.d.ts +3 -0
- package/components/inputs/DateTime/utils/createCalendarDate.d.ts.map +1 -0
- package/components/inputs/FieldShell/FieldErrorIcon.d.ts +11 -0
- package/components/inputs/FieldShell/FieldErrorIcon.d.ts.map +1 -0
- package/components/inputs/FieldShell/FieldShell.d.ts +32 -0
- package/components/inputs/FieldShell/FieldShell.d.ts.map +1 -0
- package/components/inputs/FieldShell/index.d.ts +6 -0
- package/components/inputs/FieldShell/index.d.ts.map +1 -0
- package/components/inputs/Input/Input.d.ts +16 -0
- package/components/inputs/Input/Input.d.ts.map +1 -0
- package/components/inputs/Input/index.d.ts +2 -0
- package/components/inputs/Input/index.d.ts.map +1 -0
- package/components/inputs/InputChip/InputChip.d.ts +17 -0
- package/components/inputs/InputChip/InputChip.d.ts.map +1 -0
- package/{src/components/view/InputChip/index.ts → components/inputs/InputChip/index.d.ts} +1 -0
- package/components/inputs/InputChip/index.d.ts.map +1 -0
- package/components/inputs/MultiSelect/MultiSelect.d.ts +26 -0
- package/components/inputs/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/{src/components/common/MultiSelect/index.ts → components/inputs/MultiSelect/index.d.ts} +1 -1
- package/components/inputs/MultiSelect/index.d.ts.map +1 -0
- package/components/inputs/MultiSelect/models/Item.d.ts +8 -0
- package/components/inputs/MultiSelect/models/Item.d.ts.map +1 -0
- package/{src/components/common/MultiSelect/models/TitleVariant.ts → components/inputs/MultiSelect/models/TitleVariant.d.ts} +1 -0
- package/components/inputs/MultiSelect/models/TitleVariant.d.ts.map +1 -0
- package/components/inputs/MultiSelect/ui/SelectPopover/SelectPopover.d.ts +14 -0
- package/components/inputs/MultiSelect/ui/SelectPopover/SelectPopover.d.ts.map +1 -0
- package/{src/components/common/MultiSelect/ui/SelectPopover/index.ts → components/inputs/MultiSelect/ui/SelectPopover/index.d.ts} +1 -0
- package/components/inputs/MultiSelect/ui/SelectPopover/index.d.ts.map +1 -0
- package/components/inputs/MultiSelect/utils/getTitle.d.ts +4 -0
- package/components/inputs/MultiSelect/utils/getTitle.d.ts.map +1 -0
- package/components/inputs/RadioButton/RadioButton.d.ts +13 -0
- package/components/inputs/RadioButton/RadioButton.d.ts.map +1 -0
- package/{src/components/common/RadioButton/index.ts → components/inputs/RadioButton/index.d.ts} +1 -0
- package/components/inputs/RadioButton/index.d.ts.map +1 -0
- package/components/inputs/Select/Select.d.ts +23 -0
- package/components/inputs/Select/Select.d.ts.map +1 -0
- package/{src/components/common/Select/index.ts → components/inputs/Select/index.d.ts} +1 -1
- package/components/inputs/Select/index.d.ts.map +1 -0
- package/components/inputs/Select/models/Divider.d.ts +5 -0
- package/components/inputs/Select/models/Divider.d.ts.map +1 -0
- package/components/inputs/Select/models/Item.d.ts +13 -0
- package/components/inputs/Select/models/Item.d.ts.map +1 -0
- package/components/inputs/Select/ui/SelectPopover/SelectPopover.d.ts +13 -0
- package/components/inputs/Select/ui/SelectPopover/SelectPopover.d.ts.map +1 -0
- package/{src/components/common/Select/ui/SelectPopover/index.ts → components/inputs/Select/ui/SelectPopover/index.d.ts} +1 -0
- package/components/inputs/Select/ui/SelectPopover/index.d.ts.map +1 -0
- package/components/inputs/WrapForLabel/WrapForLabel.d.ts +12 -0
- package/components/inputs/WrapForLabel/WrapForLabel.d.ts.map +1 -0
- package/{src/components/common/WrapForLabel/index.ts → components/inputs/WrapForLabel/index.d.ts} +1 -0
- package/components/inputs/WrapForLabel/index.d.ts.map +1 -0
- package/components/layout/Layout/Layout.d.ts +11 -0
- package/components/layout/Layout/Layout.d.ts.map +1 -0
- package/{src/components/layout/Layout/index.ts → components/layout/Layout/index.d.ts} +1 -0
- package/components/layout/Layout/index.d.ts.map +1 -0
- package/components/navigation/Menu/Menu.d.ts +15 -0
- package/components/navigation/Menu/Menu.d.ts.map +1 -0
- package/{src/components/navigation/Menu/index.ts → components/navigation/Menu/index.d.ts} +1 -1
- package/components/navigation/Menu/index.d.ts.map +1 -0
- package/components/navigation/Menu/models/Divider.d.ts +5 -0
- package/components/navigation/Menu/models/Divider.d.ts.map +1 -0
- package/components/navigation/Menu/models/Item.d.ts +19 -0
- package/components/navigation/Menu/models/Item.d.ts.map +1 -0
- package/components/navigation/Tabs/Tabs.d.ts +27 -0
- package/components/navigation/Tabs/Tabs.d.ts.map +1 -0
- package/{src/components/navigation/Tabs/index.ts → components/navigation/Tabs/index.d.ts} +1 -1
- package/components/navigation/Tabs/index.d.ts.map +1 -0
- package/components/navigation/Tabs/models/Item.d.ts +9 -0
- package/components/navigation/Tabs/models/Item.d.ts.map +1 -0
- package/components/surfaces/Card/Card.d.ts +18 -0
- package/components/surfaces/Card/Card.d.ts.map +1 -0
- package/components/surfaces/Card/index.d.ts +2 -0
- package/components/surfaces/Card/index.d.ts.map +1 -0
- package/components/surfaces/Surface/Surface.d.ts +14 -0
- package/components/surfaces/Surface/Surface.d.ts.map +1 -0
- package/{src/components/layout/Surface/index.ts → components/surfaces/Surface/index.d.ts} +1 -0
- package/components/surfaces/Surface/index.d.ts.map +1 -0
- package/components/utils/Popover/Popover.d.ts +19 -0
- package/components/utils/Popover/Popover.d.ts.map +1 -0
- package/{src/components/view/Popover/index.ts → components/utils/Popover/index.d.ts} +1 -0
- package/components/utils/Popover/index.d.ts.map +1 -0
- package/components/utils/Popover/ui/Arrow/Arrow.d.ts +2 -0
- package/components/utils/Popover/ui/Arrow/Arrow.d.ts.map +1 -0
- package/components/utils/Popover/ui/Arrow/index.d.ts +2 -0
- package/components/utils/Popover/ui/Arrow/index.d.ts.map +1 -0
- package/components/utils/Popover/ui/PopoverContent/PopoverContent.d.ts +3 -0
- package/components/utils/Popover/ui/PopoverContent/PopoverContent.d.ts.map +1 -0
- package/{src/components/view/Popover/ui/PopoverContent/index.ts → components/utils/Popover/ui/PopoverContent/index.d.ts} +1 -0
- package/components/utils/Popover/ui/PopoverContent/index.d.ts.map +1 -0
- package/components/utils/Popover/ui/PopoverProvider/PopoverProvider.d.ts +4 -0
- package/components/utils/Popover/ui/PopoverProvider/PopoverProvider.d.ts.map +1 -0
- package/components/utils/Popover/ui/PopoverProvider/constants/PopoverContext.d.ts +3 -0
- package/components/utils/Popover/ui/PopoverProvider/constants/PopoverContext.d.ts.map +1 -0
- package/components/utils/Popover/ui/PopoverProvider/hooks/usePopover.d.ts +52 -0
- package/components/utils/Popover/ui/PopoverProvider/hooks/usePopover.d.ts.map +1 -0
- package/{src/components/view/Popover/ui/PopoverProvider/index.ts → components/utils/Popover/ui/PopoverProvider/index.d.ts} +1 -0
- package/components/utils/Popover/ui/PopoverProvider/index.d.ts.map +1 -0
- package/components/utils/Popover/ui/PopoverProvider/models/PopoverOptions.d.ts +13 -0
- package/components/utils/Popover/ui/PopoverProvider/models/PopoverOptions.d.ts.map +1 -0
- package/components/utils/Popover/ui/PopoverProvider/models/PopoverState.d.ts +5 -0
- package/components/utils/Popover/ui/PopoverProvider/models/PopoverState.d.ts.map +1 -0
- package/components/utils/Popover/ui/PopoverTrigger/PopoverTrigger.d.ts +5 -0
- package/components/utils/Popover/ui/PopoverTrigger/PopoverTrigger.d.ts.map +1 -0
- package/{src/components/view/Popover/ui/PopoverTrigger/index.ts → components/utils/Popover/ui/PopoverTrigger/index.d.ts} +1 -0
- package/components/utils/Popover/ui/PopoverTrigger/index.d.ts.map +1 -0
- package/hooks/useCompatId.d.ts +2 -0
- package/hooks/useCompatId.d.ts.map +1 -0
- package/hooks/useTranslation.d.ts +6 -0
- package/hooks/useTranslation.d.ts.map +1 -0
- package/icons/AddIcon.d.ts +4 -0
- package/icons/AddIcon.d.ts.map +1 -0
- package/icons/AlertIcon.d.ts +4 -0
- package/icons/AlertIcon.d.ts.map +1 -0
- package/icons/ArrowDropDownIcon.d.ts +4 -0
- package/icons/ArrowDropDownIcon.d.ts.map +1 -0
- package/icons/ArrowDropUpIcon.d.ts +4 -0
- package/icons/ArrowDropUpIcon.d.ts.map +1 -0
- package/icons/AttachIcon.d.ts +4 -0
- package/icons/AttachIcon.d.ts.map +1 -0
- package/icons/BarChartIcon.d.ts +4 -0
- package/icons/BarChartIcon.d.ts.map +1 -0
- package/icons/BookmarkAddIcon.d.ts +4 -0
- package/icons/BookmarkAddIcon.d.ts.map +1 -0
- package/icons/BookmarkIcon.d.ts +4 -0
- package/icons/BookmarkIcon.d.ts.map +1 -0
- package/icons/CheckboxDeselectedIcon.d.ts +4 -0
- package/icons/CheckboxDeselectedIcon.d.ts.map +1 -0
- package/icons/CheckboxIcon.d.ts +4 -0
- package/icons/CheckboxIcon.d.ts.map +1 -0
- package/icons/CheckboxSeveralIcon.d.ts +4 -0
- package/icons/CheckboxSeveralIcon.d.ts.map +1 -0
- package/icons/ChevronDownIcon.d.ts +4 -0
- package/icons/ChevronDownIcon.d.ts.map +1 -0
- package/icons/ChevronLeftIcon.d.ts +4 -0
- package/icons/ChevronLeftIcon.d.ts.map +1 -0
- package/icons/ChevronRightIcon.d.ts +4 -0
- package/icons/ChevronRightIcon.d.ts.map +1 -0
- package/icons/ChevronUpIcon.d.ts +4 -0
- package/icons/ChevronUpIcon.d.ts.map +1 -0
- package/icons/CircleFilledIcon.d.ts +4 -0
- package/icons/CircleFilledIcon.d.ts.map +1 -0
- package/icons/CloseIcon.d.ts +4 -0
- package/icons/CloseIcon.d.ts.map +1 -0
- package/icons/DateRangeIcon.d.ts +4 -0
- package/icons/DateRangeIcon.d.ts.map +1 -0
- package/icons/DeleteIcon.d.ts +4 -0
- package/icons/DeleteIcon.d.ts.map +1 -0
- package/icons/DoneIcon.d.ts +4 -0
- package/icons/DoneIcon.d.ts.map +1 -0
- package/icons/DonutIcon.d.ts +4 -0
- package/icons/DonutIcon.d.ts.map +1 -0
- package/icons/DownloadIcon.d.ts +4 -0
- package/icons/DownloadIcon.d.ts.map +1 -0
- package/icons/DragIcon.d.ts +4 -0
- package/icons/DragIcon.d.ts.map +1 -0
- package/icons/EditIcon.d.ts +4 -0
- package/icons/EditIcon.d.ts.map +1 -0
- package/icons/ErrorOutlineIcon.d.ts +4 -0
- package/icons/ErrorOutlineIcon.d.ts.map +1 -0
- package/icons/ExportTableIcon.d.ts +4 -0
- package/icons/ExportTableIcon.d.ts.map +1 -0
- package/icons/FileUploadIcon.d.ts +4 -0
- package/icons/FileUploadIcon.d.ts.map +1 -0
- package/icons/FilterClearIcon.d.ts +4 -0
- package/icons/FilterClearIcon.d.ts.map +1 -0
- package/icons/FilterIcon.d.ts +4 -0
- package/icons/FilterIcon.d.ts.map +1 -0
- package/icons/FullScreenOffIcon.d.ts +4 -0
- package/icons/FullScreenOffIcon.d.ts.map +1 -0
- package/icons/FullScreenOnIcon.d.ts +4 -0
- package/icons/FullScreenOnIcon.d.ts.map +1 -0
- package/icons/Icon.d.ts +8 -0
- package/icons/Icon.d.ts.map +1 -0
- package/icons/InfoIcon.d.ts +4 -0
- package/icons/InfoIcon.d.ts.map +1 -0
- package/icons/ListIcon.d.ts +4 -0
- package/icons/ListIcon.d.ts.map +1 -0
- package/icons/LooksOneIcon.d.ts +4 -0
- package/icons/LooksOneIcon.d.ts.map +1 -0
- package/icons/MapIcon.d.ts +4 -0
- package/icons/MapIcon.d.ts.map +1 -0
- package/icons/MoreVerticalIcon.d.ts +4 -0
- package/icons/MoreVerticalIcon.d.ts.map +1 -0
- package/icons/PointIcon.d.ts +4 -0
- package/icons/PointIcon.d.ts.map +1 -0
- package/icons/RadioDeselectedIcon.d.ts +4 -0
- package/icons/RadioDeselectedIcon.d.ts.map +1 -0
- package/icons/RadioSelectedIcon.d.ts +4 -0
- package/icons/RadioSelectedIcon.d.ts.map +1 -0
- package/icons/SaveIcon.d.ts +4 -0
- package/icons/SaveIcon.d.ts.map +1 -0
- package/icons/ScatterPlotIcon.d.ts +4 -0
- package/icons/ScatterPlotIcon.d.ts.map +1 -0
- package/icons/SearchIcon.d.ts +4 -0
- package/icons/SearchIcon.d.ts.map +1 -0
- package/icons/SelectUniqueIcon.d.ts +4 -0
- package/icons/SelectUniqueIcon.d.ts.map +1 -0
- package/icons/SettingsIcon.d.ts +4 -0
- package/icons/SettingsIcon.d.ts.map +1 -0
- package/icons/SortDownIcon.d.ts +4 -0
- package/icons/SortDownIcon.d.ts.map +1 -0
- package/icons/SortUpIcon.d.ts +4 -0
- package/icons/SortUpIcon.d.ts.map +1 -0
- package/icons/TableChartIcon.d.ts +4 -0
- package/icons/TableChartIcon.d.ts.map +1 -0
- package/icons/UploadIcon.d.ts +4 -0
- package/icons/UploadIcon.d.ts.map +1 -0
- package/icons/VisibilityIcon.d.ts +4 -0
- package/icons/VisibilityIcon.d.ts.map +1 -0
- package/icons/WellIcon.d.ts +4 -0
- package/icons/WellIcon.d.ts.map +1 -0
- package/{src/icons/index.ts → icons/index.d.ts} +5 -0
- package/icons/index.d.ts.map +1 -0
- package/index.css +3513 -0
- package/index.css.map +1 -0
- package/index.d.ts +52 -0
- package/index.d.ts.map +1 -0
- package/index.js +3 -0
- package/index.js.LICENSE.txt +31 -0
- package/index.js.map +1 -0
- package/index.mjs +3 -0
- package/index.mjs.LICENSE.txt +31 -0
- package/index.mjs.map +1 -0
- package/models/AlertSize.d.ts +2 -0
- package/models/AlertSize.d.ts.map +1 -0
- package/models/AlertType.d.ts +2 -0
- package/models/AlertType.d.ts.map +1 -0
- package/{src/models/ButtonVariant.ts → models/ButtonVariant.d.ts} +1 -0
- package/models/ButtonVariant.d.ts.map +1 -0
- package/{src/models/CheckboxSize.ts → models/CheckboxSize.d.ts} +1 -0
- package/models/CheckboxSize.d.ts.map +1 -0
- package/{src/models/ChipSize.ts → models/ChipSize.d.ts} +1 -0
- package/models/ChipSize.d.ts.map +1 -0
- package/{src/models/ChipVariant.ts → models/ChipVariant.d.ts} +1 -0
- package/models/ChipVariant.d.ts.map +1 -0
- package/models/FieldError.d.ts +5 -0
- package/models/FieldError.d.ts.map +1 -0
- package/{src/models/FieldSize.ts → models/FieldSize.d.ts} +1 -0
- package/models/FieldSize.d.ts.map +1 -0
- package/{src/models/FieldVariant.ts → models/FieldVariant.d.ts} +1 -0
- package/models/FieldVariant.d.ts.map +1 -0
- package/{src/models/Maybe.ts → models/Maybe.d.ts} +1 -0
- package/models/Maybe.d.ts.map +1 -0
- package/{src/models/SurfaceSize.ts → models/SurfaceSize.d.ts} +1 -0
- package/models/SurfaceSize.d.ts.map +1 -0
- package/{src/models/SurfaceType.ts → models/SurfaceType.d.ts} +1 -0
- package/models/SurfaceType.d.ts.map +1 -0
- package/models/TypographyVariant.d.ts +2 -0
- package/models/TypographyVariant.d.ts.map +1 -0
- package/models/UiProps.d.ts +7 -0
- package/models/UiProps.d.ts.map +1 -0
- package/package.json +19 -100
- package/theme/ThemeProvider.d.ts +23 -0
- package/theme/ThemeProvider.d.ts.map +1 -0
- package/{src/utils/index.ts → utils/index.d.ts} +1 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/toFirstLetterLowerCase.d.ts +2 -0
- package/utils/toFirstLetterLowerCase.d.ts.map +1 -0
- package/utils/toFirstLetterUpperCase.d.ts +2 -0
- package/utils/toFirstLetterUpperCase.d.ts.map +1 -0
- package/.editorconfig +0 -25
- package/.gitattributes +0 -64
- package/.gitlab-ci.yml +0 -40
- package/.helm/Chart.yaml +0 -5
- package/.helm/values.yaml +0 -12
- package/.prettierignore +0 -12
- package/.prettierrc.json +0 -19
- package/.storybook/global.d.ts +0 -4
- package/.storybook/main.ts +0 -12
- package/.storybook/preview.tsx +0 -59
- package/.stylelintignore +0 -3
- package/.stylelintrc.json +0 -5
- package/.vscode/settings.json +0 -10
- package/Dockerfile +0 -14
- package/babel.config.json +0 -23
- package/cssModulesPluginTemplate.cjs +0 -5
- package/eslint.config.mjs +0 -160
- package/nginx.conf +0 -14
- package/package.dist.json +0 -20
- package/postcss.config.cjs +0 -12
- package/src/components/common/Button/Button.stories.tsx +0 -93
- package/src/components/common/Button/Button.tsx +0 -59
- package/src/components/common/Button/button.module.css +0 -337
- package/src/components/common/Button/index.ts +0 -1
- package/src/components/common/ButtonsGroup/ButtonsGroup.stories.tsx +0 -52
- package/src/components/common/ButtonsGroup/ButtonsGroup.tsx +0 -25
- package/src/components/common/ButtonsGroup/buttonsGroup.module.css +0 -24
- package/src/components/common/Checkbox/Checkbox.stories.tsx +0 -48
- package/src/components/common/Checkbox/Checkbox.tsx +0 -82
- package/src/components/common/Checkbox/checkbox.module.css +0 -112
- package/src/components/common/Checklist/Checklist.stories.tsx +0 -138
- package/src/components/common/Checklist/Checklist.tsx +0 -159
- package/src/components/common/Checklist/checklist.module.css +0 -23
- package/src/components/common/Checklist/models/Item.ts +0 -4
- package/src/components/common/Checklist/models/SelectedItems.ts +0 -3
- package/src/components/common/Checklist/utils/filterItems.ts +0 -18
- package/src/components/common/ColorPicker/ColorPicker.stories.tsx +0 -198
- package/src/components/common/ColorPicker/ColorPicker.tsx +0 -157
- package/src/components/common/ColorPicker/colorPicker.module.css +0 -145
- package/src/components/common/DateTime/DateTime.stories.tsx +0 -249
- package/src/components/common/DateTime/DateTime.tsx +0 -236
- package/src/components/common/DateTime/dateTime.module.css +0 -21
- package/src/components/common/DateTime/models/dayjs.ts +0 -26
- package/src/components/common/DateTime/ui/CalendarPopover/CalendarPopover.tsx +0 -585
- package/src/components/common/DateTime/ui/CalendarPopover/calendarPopover.module.css +0 -226
- package/src/components/common/DateTime/ui/TimeWheelColumn/TimeWheelColumn.tsx +0 -106
- package/src/components/common/DateTime/ui/TimeWheelColumn/timeWheelColumn.module.css +0 -35
- package/src/components/common/DateTime/utils/createCalendarDate.ts +0 -15
- package/src/components/common/FieldShell/FieldErrorIcon.tsx +0 -39
- package/src/components/common/FieldShell/FieldShell.tsx +0 -104
- package/src/components/common/FieldShell/fieldShell.module.css +0 -456
- package/src/components/common/FieldShell/index.ts +0 -5
- package/src/components/common/Input/Input.stories.tsx +0 -232
- package/src/components/common/Input/Input.tsx +0 -140
- package/src/components/common/Input/index.ts +0 -1
- package/src/components/common/Input/input.module.css +0 -49
- package/src/components/common/MultiSelect/MultiSelect.stories.tsx +0 -344
- package/src/components/common/MultiSelect/MultiSelect.tsx +0 -260
- package/src/components/common/MultiSelect/models/Item.ts +0 -7
- package/src/components/common/MultiSelect/multiSelect.module.css +0 -198
- package/src/components/common/MultiSelect/multiSelect.stories.module.css +0 -4
- package/src/components/common/MultiSelect/ui/SelectPopover/SelectPopover.tsx +0 -69
- package/src/components/common/MultiSelect/utils/getTitle.ts +0 -19
- package/src/components/common/RadioButton/RadioButton.stories.tsx +0 -134
- package/src/components/common/RadioButton/RadioButton.tsx +0 -90
- package/src/components/common/RadioButton/radioButton.module.css +0 -108
- package/src/components/common/Select/Select.stories.tsx +0 -294
- package/src/components/common/Select/Select.tsx +0 -181
- package/src/components/common/Select/models/Divider.ts +0 -4
- package/src/components/common/Select/models/Item.ts +0 -15
- package/src/components/common/Select/select.module.css +0 -87
- package/src/components/common/Select/ui/SelectPopover/SelectPopover.tsx +0 -49
- package/src/components/common/WrapForLabel/WrapForLabel.stories.tsx +0 -36
- package/src/components/common/WrapForLabel/WrapForLabel.tsx +0 -28
- package/src/components/common/WrapForLabel/wrapForLabel.module.css +0 -14
- package/src/components/layout/Layout/Layout.stories.tsx +0 -44
- package/src/components/layout/Layout/Layout.tsx +0 -24
- package/src/components/layout/Layout/layout.module.css +0 -16
- package/src/components/layout/Surface/Surface.stories.tsx +0 -56
- package/src/components/layout/Surface/Surface.tsx +0 -33
- package/src/components/layout/Surface/surface.module.css +0 -47
- package/src/components/navigation/Menu/Menu.stories.tsx +0 -324
- package/src/components/navigation/Menu/Menu.tsx +0 -157
- package/src/components/navigation/Menu/menu.module.css +0 -153
- package/src/components/navigation/Menu/models/Divider.ts +0 -4
- package/src/components/navigation/Menu/models/Item.ts +0 -20
- package/src/components/navigation/Tabs/Tabs.stories.tsx +0 -959
- package/src/components/navigation/Tabs/Tabs.tsx +0 -174
- package/src/components/navigation/Tabs/models/Item.ts +0 -9
- package/src/components/navigation/Tabs/tabs.module.css +0 -179
- package/src/components/navigation/Tabs/tabs.stories.module.css +0 -3
- package/src/components/view/Card/Card.stories.tsx +0 -99
- package/src/components/view/Card/Card.tsx +0 -66
- package/src/components/view/Card/card.module.css +0 -50
- package/src/components/view/Card/index.ts +0 -1
- package/src/components/view/Chip/Chip.stories.tsx +0 -219
- package/src/components/view/Chip/Chip.tsx +0 -89
- package/src/components/view/Chip/chip.module.css +0 -157
- package/src/components/view/InputChip/InputChip.stories.tsx +0 -117
- package/src/components/view/InputChip/InputChip.tsx +0 -77
- package/src/components/view/InputChip/inputChip.module.css +0 -188
- package/src/components/view/Loader/Loader.stories.tsx +0 -54
- package/src/components/view/Loader/Loader.tsx +0 -29
- package/src/components/view/Loader/loader.gif +0 -0
- package/src/components/view/Loader/loader.module.css +0 -8
- package/src/components/view/Modal/Modal.stories.tsx +0 -63
- package/src/components/view/Modal/Modal.tsx +0 -58
- package/src/components/view/Modal/index.ts +0 -1
- package/src/components/view/Modal/modal.module.css +0 -18
- package/src/components/view/Modal/modal.stories.module.css +0 -18
- package/src/components/view/Pairs/Pairs.stories.tsx +0 -101
- package/src/components/view/Pairs/Pairs.tsx +0 -63
- package/src/components/view/Pairs/models/Pair.ts +0 -4
- package/src/components/view/Pairs/pairs.module.css +0 -35
- package/src/components/view/Pairs/ui/TypographyWithTooltip.tsx +0 -31
- package/src/components/view/Popover/Popover.stories.tsx +0 -105
- package/src/components/view/Popover/Popover.tsx +0 -75
- package/src/components/view/Popover/popover.module.css +0 -23
- package/src/components/view/Popover/ui/Arrow/Arrow.tsx +0 -11
- package/src/components/view/Popover/ui/Arrow/index.ts +0 -1
- package/src/components/view/Popover/ui/PopoverContent/PopoverContent.tsx +0 -44
- package/src/components/view/Popover/ui/PopoverProvider/PopoverProvider.tsx +0 -13
- package/src/components/view/Popover/ui/PopoverProvider/constants/PopoverContext.ts +0 -5
- package/src/components/view/Popover/ui/PopoverProvider/hooks/usePopover.ts +0 -79
- package/src/components/view/Popover/ui/PopoverProvider/models/PopoverOptions.ts +0 -13
- package/src/components/view/Popover/ui/PopoverProvider/models/PopoverState.ts +0 -7
- package/src/components/view/Popover/ui/PopoverTrigger/PopoverTrigger.tsx +0 -36
- package/src/components/view/Tooltip/Tooltip.stories.tsx +0 -141
- package/src/components/view/Tooltip/Tooltip.tsx +0 -74
- package/src/components/view/Tooltip/tooltip.module.css +0 -93
- package/src/components/view/Tooltip/ui/TooltipContent/TooltipContent.tsx +0 -88
- package/src/components/view/Tooltip/ui/TooltipProvider/TooltipProvider.tsx +0 -13
- package/src/components/view/Tooltip/ui/TooltipProvider/constants/TooltipContext.ts +0 -5
- package/src/components/view/Tooltip/ui/TooltipProvider/hooks/useTooltip.ts +0 -76
- package/src/components/view/Tooltip/ui/TooltipProvider/models/TooltipOptions.ts +0 -12
- package/src/components/view/Tooltip/ui/TooltipTrigger/TooltipTrigger.tsx +0 -36
- package/src/components/view/TreeView/TreeView.stories.tsx +0 -174
- package/src/components/view/TreeView/TreeView.tsx +0 -76
- package/src/components/view/TreeView/models/Item.ts +0 -7
- package/src/components/view/TreeView/treeView.module.css +0 -3
- package/src/components/view/TreeView/ui/TreeViewItem/TreeViewItem.tsx +0 -84
- package/src/components/view/TreeView/ui/TreeViewItem/treeViewItem.module.css +0 -30
- package/src/components/view/TreeView/utils/getFilteredTree.ts +0 -23
- package/src/components/view/Typography/Typography.stories.tsx +0 -120
- package/src/components/view/Typography/Typography.tsx +0 -28
- package/src/components/view/Typography/typography.module.css +0 -132
- package/src/components/view/VirtualTable/VirtualTable.stories.tsx +0 -285
- package/src/components/view/VirtualTable/VirtualTable.tsx +0 -1159
- package/src/components/view/VirtualTable/constants/baseColumns.ts +0 -39
- package/src/components/view/VirtualTable/constants/bigBaseColumns.ts +0 -35
- package/src/components/view/VirtualTable/constants/bigSampleData.ts +0 -92
- package/src/components/view/VirtualTable/constants/defaultRowHeight.ts +0 -1
- package/src/components/view/VirtualTable/constants/sampleData.ts +0 -213
- package/src/components/view/VirtualTable/models/AdditionalButton.ts +0 -10
- package/src/components/view/VirtualTable/models/FilterBy.ts +0 -11
- package/src/components/view/VirtualTable/models/SortBy.ts +0 -11
- package/src/components/view/VirtualTable/models/TableCell.ts +0 -12
- package/src/components/view/VirtualTable/models/TableColumn.ts +0 -52
- package/src/components/view/VirtualTable/models/TableRow.ts +0 -6
- package/src/components/view/VirtualTable/models/VirtualTableRef.ts +0 -7
- package/src/components/view/VirtualTable/ui/DateFiltration/DateFiltration.tsx +0 -56
- package/src/components/view/VirtualTable/ui/DateFiltration/dateFiltration.module.css +0 -10
- package/src/components/view/VirtualTable/ui/DefaultColumn/DefaultColumn.tsx +0 -144
- package/src/components/view/VirtualTable/ui/HeaderDropdown/HeaderDropdown.tsx +0 -359
- package/src/components/view/VirtualTable/ui/HeaderDropdown/headerDropdown.module.css +0 -20
- package/src/components/view/VirtualTable/ui/NumberFiltration/NumberFiltration.tsx +0 -168
- package/src/components/view/VirtualTable/ui/NumberFiltration/numberFiltration.module.css +0 -27
- package/src/components/view/VirtualTable/utils/alphanumericCompare.ts +0 -29
- package/src/components/view/VirtualTable/utils/dedupeFirstByColumnValue.ts +0 -17
- package/src/components/view/VirtualTable/utils/getColumns.ts +0 -40
- package/src/components/view/VirtualTable/utils/getNextHorizontalHeaders.ts +0 -21
- package/src/components/view/VirtualTable/utils/getNextVerticalHeaders.ts +0 -18
- package/src/components/view/VirtualTable/utils/getPrevHorizontalHeaders.ts +0 -19
- package/src/components/view/VirtualTable/utils/getPrevVerticalHeaders.ts +0 -22
- package/src/components/view/VirtualTable/utils/recursiveFilter.ts +0 -15
- package/src/components/view/VirtualTable/utils/recursiveSort.ts +0 -24
- package/src/components/view/VirtualTable/utils/rowMatchesFilter.ts +0 -43
- package/src/components/view/VirtualTable/utils/rowSelection.ts +0 -125
- package/src/components/view/VirtualTable/virtualTable.module.css +0 -346
- package/src/hooks/useCompatId.ts +0 -12
- package/src/hooks/useTranslation.ts +0 -15
- package/src/hooks/window/hooks/useWindowSize.ts +0 -14
- package/src/hooks/window/index.ts +0 -1
- package/src/i18n/config.ts +0 -23
- package/src/i18n/locales/en.json +0 -23
- package/src/i18n/locales/ru.json +0 -23
- package/src/icons/AddIcon.tsx +0 -9
- package/src/icons/AlertIcon.tsx +0 -14
- package/src/icons/ArrowDropDownIcon.tsx +0 -9
- package/src/icons/ArrowDropUpIcon.tsx +0 -9
- package/src/icons/AttachIcon.tsx +0 -10
- package/src/icons/BarChartIcon.tsx +0 -9
- package/src/icons/BookmarkAddIcon.tsx +0 -12
- package/src/icons/BookmarkIcon.tsx +0 -9
- package/src/icons/CheckboxDeselectedIcon.tsx +0 -9
- package/src/icons/CheckboxIcon.tsx +0 -10
- package/src/icons/CheckboxSeveralIcon.tsx +0 -10
- package/src/icons/ChevronDownIcon.tsx +0 -9
- package/src/icons/ChevronLeftIcon.tsx +0 -9
- package/src/icons/ChevronRightIcon.tsx +0 -9
- package/src/icons/ChevronUpIcon.tsx +0 -9
- package/src/icons/CircleFilledIcon.tsx +0 -9
- package/src/icons/CloseIcon.tsx +0 -9
- package/src/icons/DateRangeIcon.tsx +0 -10
- package/src/icons/DeleteIcon.tsx +0 -16
- package/src/icons/DoneIcon.tsx +0 -9
- package/src/icons/DownloadIcon.tsx +0 -9
- package/src/icons/DragIcon.tsx +0 -21
- package/src/icons/EditIcon.tsx +0 -10
- package/src/icons/ErrorOutlineIcon.tsx +0 -14
- package/src/icons/ExportTableIcon.tsx +0 -19
- package/src/icons/FileUploadIcon.tsx +0 -9
- package/src/icons/FilterClearIcon.tsx +0 -24
- package/src/icons/FilterIcon.tsx +0 -13
- package/src/icons/FullScreenOffIcon.tsx +0 -9
- package/src/icons/FullScreenOnIcon.tsx +0 -12
- package/src/icons/Icon.tsx +0 -27
- package/src/icons/InfoIcon.tsx +0 -12
- package/src/icons/ListIcon.tsx +0 -9
- package/src/icons/MoreVerticalIcon.tsx +0 -10
- package/src/icons/PointIcon.tsx +0 -14
- package/src/icons/RadioDeselectedIcon.tsx +0 -10
- package/src/icons/RadioSelectedIcon.tsx +0 -10
- package/src/icons/SaveIcon.tsx +0 -17
- package/src/icons/SearchIcon.tsx +0 -10
- package/src/icons/SelectUniqueIcon.tsx +0 -9
- package/src/icons/SettingsIcon.tsx +0 -10
- package/src/icons/SortDownIcon.tsx +0 -9
- package/src/icons/SortUpIcon.tsx +0 -9
- package/src/icons/TableChartIcon.tsx +0 -9
- package/src/icons/UploadIcon.tsx +0 -9
- package/src/icons/VisibilityIcon.tsx +0 -18
- package/src/icons/WellIcon.tsx +0 -10
- package/src/index.ts +0 -86
- package/src/models/FieldError.ts +0 -4
- package/src/models/TypographyVariant.ts +0 -20
- package/src/models/UiProps.ts +0 -3
- package/src/stories/icons/Icons.stories.tsx +0 -124
- package/src/styles/global.css +0 -142
- package/src/styles/localGlobal.css +0 -20
- package/src/styles/themes/dark.css +0 -132
- package/src/styles/themes/darkBlue.css +0 -132
- package/src/styles/themes/light.css +0 -132
- package/src/theme/ThemeProvider.tsx +0 -164
- package/src/types/global.d.ts +0 -13
- package/src/types/tanstack.d.ts +0 -40
- package/src/utils/toFirstLetterLowerCase.ts +0 -3
- package/src/utils/toFirstLetterUpperCase.ts +0 -3
- package/tsconfig.dist.json +0 -17
- package/tsconfig.json +0 -48
- package/vite.config.ts +0 -13
- package/webpack.dist.config.cjs +0 -105
- package/werf-giterminism.yaml +0 -19
- package/werf.yaml +0 -8
- package/wiki/VirtualTable.md +0 -660
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
flex-shrink: 0;
|
|
4
|
-
gap: 6px;
|
|
5
|
-
align-items: center;
|
|
6
|
-
min-width: 0;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
font-weight: 300;
|
|
11
|
-
line-height: 20px;
|
|
12
|
-
color: var(--theme-text-primary);
|
|
13
|
-
letter-spacing: normal;
|
|
14
|
-
-webkit-user-select: none;
|
|
15
|
-
user-select: none;
|
|
16
|
-
border-radius: 16px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.filled {
|
|
20
|
-
background-color: var(--theme-input-chip-bg);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.outlined {
|
|
24
|
-
outline: 1px solid var(--theme-input-border);
|
|
25
|
-
outline-offset: -1px;
|
|
26
|
-
background-color: transparent;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.small {
|
|
30
|
-
height: 20px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.small.with-icon {
|
|
34
|
-
padding-left: 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.small:not(.with-icon) {
|
|
38
|
-
padding-left: 8px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.small:has(.remove) {
|
|
42
|
-
padding-right: 1px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.small:not(:has(.remove)) {
|
|
46
|
-
padding-right: 8px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.small.with-icon:not(:has(.remove)) {
|
|
50
|
-
padding-right: 6px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.medium,
|
|
54
|
-
.large,
|
|
55
|
-
.extraLarge {
|
|
56
|
-
height: 28px;
|
|
57
|
-
padding-top: 4px;
|
|
58
|
-
padding-bottom: 4px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.medium.with-icon,
|
|
62
|
-
.large.with-icon,
|
|
63
|
-
.extraLarge.with-icon {
|
|
64
|
-
padding-left: 4px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.medium:not(.with-icon),
|
|
68
|
-
.large:not(.with-icon),
|
|
69
|
-
.extraLarge:not(.with-icon) {
|
|
70
|
-
padding-left: 12px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.medium:has(.remove),
|
|
74
|
-
.large:has(.remove),
|
|
75
|
-
.extraLarge:has(.remove) {
|
|
76
|
-
padding-right: 6px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.medium:not(:has(.remove)),
|
|
80
|
-
.large:not(:has(.remove)),
|
|
81
|
-
.extraLarge:not(:has(.remove)) {
|
|
82
|
-
padding-right: 12px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.medium.with-icon:not(:has(.remove)),
|
|
86
|
-
.large.with-icon:not(:has(.remove)),
|
|
87
|
-
.extraLarge.with-icon:not(:has(.remove)) {
|
|
88
|
-
padding-right: 6px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.clickable {
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.clickable.filled:hover:not(.disabled) {
|
|
96
|
-
background-color: var(--theme-input-chip-hover);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.clickable.filled:focus-visible:not(.disabled) {
|
|
100
|
-
outline: none;
|
|
101
|
-
background-color: var(--theme-input-chip-focus);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.clickable.outlined:hover:not(.disabled) {
|
|
105
|
-
outline-color: var(--theme-input-border-hover);
|
|
106
|
-
background-color: var(--theme-selection-hover);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.clickable.outlined:focus-visible:not(.disabled) {
|
|
110
|
-
outline: 2px solid var(--theme-focus);
|
|
111
|
-
outline-offset: -2px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.disabled.filled {
|
|
115
|
-
background-color: var(--theme-input-chip-disabled-bg);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.disabled {
|
|
119
|
-
color: var(--theme-text-inactive);
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.text {
|
|
124
|
-
flex: 1 1 auto;
|
|
125
|
-
min-width: 0;
|
|
126
|
-
overflow: hidden;
|
|
127
|
-
text-overflow: ellipsis;
|
|
128
|
-
white-space: nowrap;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.icon {
|
|
132
|
-
display: inline-flex;
|
|
133
|
-
flex-shrink: 0;
|
|
134
|
-
align-items: center;
|
|
135
|
-
justify-content: center;
|
|
136
|
-
width: 20px;
|
|
137
|
-
height: 20px;
|
|
138
|
-
color: var(--theme-icon-primary);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.icon > svg {
|
|
142
|
-
width: 100%;
|
|
143
|
-
height: 100%;
|
|
144
|
-
fill: var(--theme-icon-primary);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.disabled .icon > svg {
|
|
148
|
-
fill: var(--theme-text-inactive);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.remove {
|
|
152
|
-
display: inline-flex;
|
|
153
|
-
flex-shrink: 0;
|
|
154
|
-
align-items: center;
|
|
155
|
-
justify-content: center;
|
|
156
|
-
width: 18px;
|
|
157
|
-
height: 18px;
|
|
158
|
-
padding: 0;
|
|
159
|
-
margin: 0 0 0 auto;
|
|
160
|
-
color: var(--theme-icon-primary);
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
outline: none;
|
|
163
|
-
background: none;
|
|
164
|
-
border: none;
|
|
165
|
-
border-radius: 50%;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.remove > svg {
|
|
169
|
-
width: 100%;
|
|
170
|
-
height: 100%;
|
|
171
|
-
fill: var(--theme-icon-primary);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.remove:hover:not(:disabled) {
|
|
175
|
-
background-color: var(--theme-icon-hover);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.remove:hover:not(:disabled) > svg {
|
|
179
|
-
fill: var(--theme-text-primary);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.remove:disabled {
|
|
183
|
-
cursor: default;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.disabled .remove > svg {
|
|
187
|
-
fill: var(--theme-text-inactive);
|
|
188
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
import { Loader } from './Loader';
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof Loader> = {
|
|
6
|
-
title: 'View/Loader',
|
|
7
|
-
component: Loader,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
},
|
|
11
|
-
tags: ['autodocs'],
|
|
12
|
-
argTypes: {
|
|
13
|
-
width: {
|
|
14
|
-
control: 'number',
|
|
15
|
-
},
|
|
16
|
-
height: {
|
|
17
|
-
control: 'number',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default meta;
|
|
23
|
-
type Story = StoryObj<typeof Loader>;
|
|
24
|
-
|
|
25
|
-
export const Default: Story = {
|
|
26
|
-
args: {
|
|
27
|
-
width: 60,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const Compact: Story = {
|
|
32
|
-
args: {
|
|
33
|
-
width: 24,
|
|
34
|
-
height: 32,
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const Large: Story = {
|
|
39
|
-
args: {
|
|
40
|
-
width: 100,
|
|
41
|
-
height: 145,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const Sizes: Story = {
|
|
46
|
-
render: () => (
|
|
47
|
-
<div style={{ display: 'flex', gap: 24, alignItems: 'center' }}>
|
|
48
|
-
<Loader width={24} height={32} />
|
|
49
|
-
<Loader width={40} />
|
|
50
|
-
<Loader />
|
|
51
|
-
<Loader width={100} height={145} />
|
|
52
|
-
</div>
|
|
53
|
-
),
|
|
54
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import classnames from 'classnames';
|
|
2
|
-
import { ImgHTMLAttributes, forwardRef } from 'react';
|
|
3
|
-
|
|
4
|
-
import { UiProps } from '@models/UiProps';
|
|
5
|
-
|
|
6
|
-
import loader from './loader.gif';
|
|
7
|
-
import * as styles from './loader.module.css';
|
|
8
|
-
|
|
9
|
-
export interface Props {
|
|
10
|
-
width?: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const Loader = forwardRef<
|
|
15
|
-
HTMLImageElement,
|
|
16
|
-
UiProps<Props> & Omit<ImgHTMLAttributes<HTMLImageElement>, 'src' | 'width' | 'height'>
|
|
17
|
-
>(function Loader({ width = 60, height = width * 1.5, className, classes, alt = 'loading', ...rest }, ref) {
|
|
18
|
-
return (
|
|
19
|
-
<img
|
|
20
|
-
ref={ref}
|
|
21
|
-
src={loader}
|
|
22
|
-
alt={alt}
|
|
23
|
-
width={width}
|
|
24
|
-
height={height}
|
|
25
|
-
className={classnames(styles.root, className, classes?.root)}
|
|
26
|
-
{...rest}
|
|
27
|
-
/>
|
|
28
|
-
);
|
|
29
|
-
});
|
|
Binary file
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
|
|
4
|
-
import { Button } from '@components/common/Button';
|
|
5
|
-
import { UiProps } from '@models/UiProps';
|
|
6
|
-
|
|
7
|
-
import { Modal } from './Modal';
|
|
8
|
-
import * as styles from './modal.stories.module.css';
|
|
9
|
-
|
|
10
|
-
const meta: Meta<typeof Modal> = {
|
|
11
|
-
title: 'View/Modal',
|
|
12
|
-
component: Modal,
|
|
13
|
-
parameters: {
|
|
14
|
-
layout: 'fullscreen',
|
|
15
|
-
},
|
|
16
|
-
tags: ['autodocs'],
|
|
17
|
-
argTypes: {
|
|
18
|
-
open: {
|
|
19
|
-
control: 'boolean',
|
|
20
|
-
description: 'Состояние открытия модального окна',
|
|
21
|
-
},
|
|
22
|
-
onClose: {
|
|
23
|
-
action: 'onClose',
|
|
24
|
-
description: 'Функция, выполняемая при закрытии модального окна',
|
|
25
|
-
},
|
|
26
|
-
root: {
|
|
27
|
-
control: false,
|
|
28
|
-
description: 'Root элемент для рендера модального окна (по умолчанию body)',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default meta;
|
|
34
|
-
type Story = StoryObj<typeof Modal>;
|
|
35
|
-
|
|
36
|
-
type ModalWrapperProps = UiProps<{ open?: boolean; onClose?: () => void }>;
|
|
37
|
-
|
|
38
|
-
const ModalWrapper = (args: ModalWrapperProps) => {
|
|
39
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<div className={styles.container}>
|
|
43
|
-
<Button componentSize="small" onClick={() => setIsOpen(true)}>
|
|
44
|
-
Открыть модальное окно
|
|
45
|
-
</Button>
|
|
46
|
-
<Modal {...args} open={isOpen} onClose={() => setIsOpen(false)}>
|
|
47
|
-
<div className={styles.content}>
|
|
48
|
-
<h3 className={styles.title}>Модальное окно</h3>
|
|
49
|
-
<p className={styles.text}>
|
|
50
|
-
Содержимое модального окна. Нажмите на затемненную область или кнопку "Закрыть", чтобы закрыть окно.
|
|
51
|
-
</p>
|
|
52
|
-
<Button componentSize="small" onClick={() => setIsOpen(false)}>
|
|
53
|
-
Закрыть
|
|
54
|
-
</Button>
|
|
55
|
-
</div>
|
|
56
|
-
</Modal>
|
|
57
|
-
</div>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const Default: Story = {
|
|
62
|
-
render: (args) => <ModalWrapper {...args} />,
|
|
63
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import classnames from 'classnames';
|
|
2
|
-
import { HTMLProps, MutableRefObject, PropsWithChildren, forwardRef, useRef } from 'react';
|
|
3
|
-
import { createPortal } from 'react-dom';
|
|
4
|
-
|
|
5
|
-
import { UiProps } from '@models/UiProps';
|
|
6
|
-
|
|
7
|
-
import * as styles from './modal.module.css';
|
|
8
|
-
|
|
9
|
-
interface Props {
|
|
10
|
-
open: boolean;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
root?: HTMLElement | MutableRefObject<HTMLElement | null> | null;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const Modal = forwardRef<HTMLDivElement, PropsWithChildren<UiProps<Props> & HTMLProps<HTMLDivElement>>>(
|
|
16
|
-
function Modal({ open, onClose, root = document.body, children, classes, className, onClick, ...rest }, propRef) {
|
|
17
|
-
const overlayRef = useRef<HTMLDivElement>(null);
|
|
18
|
-
const modalRef = useRef<HTMLDivElement | null>(null);
|
|
19
|
-
|
|
20
|
-
const handleOverlayClick = (e: React.MouseEvent<HTMLDivElement>) => {
|
|
21
|
-
if (e.target === overlayRef.current || !modalRef.current?.contains(e.target as Node)) {
|
|
22
|
-
e.stopPropagation();
|
|
23
|
-
onClose?.();
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
if (!open || !children) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const modalContent = (
|
|
32
|
-
<div ref={overlayRef} className={styles.overlay} onClick={handleOverlayClick}>
|
|
33
|
-
<div
|
|
34
|
-
{...rest}
|
|
35
|
-
ref={(node) => {
|
|
36
|
-
if (node) {
|
|
37
|
-
modalRef.current = node;
|
|
38
|
-
}
|
|
39
|
-
if (typeof propRef === 'function') {
|
|
40
|
-
propRef(node);
|
|
41
|
-
} else if (propRef) {
|
|
42
|
-
propRef.current = node;
|
|
43
|
-
}
|
|
44
|
-
}}
|
|
45
|
-
className={classnames(styles.modal, className, classes?.root)}
|
|
46
|
-
onClick={(e) => {
|
|
47
|
-
e.stopPropagation();
|
|
48
|
-
onClick?.(e);
|
|
49
|
-
}}
|
|
50
|
-
>
|
|
51
|
-
{children}
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
return createPortal(modalContent, root as HTMLElement);
|
|
57
|
-
},
|
|
58
|
-
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Modal } from './Modal';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.overlay {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
z-index: 999;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 100%;
|
|
11
|
-
padding: 16px;
|
|
12
|
-
background-color: var(--theme-modal-shadow-background, rgba(0, 0, 0, 0.5));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.modal {
|
|
16
|
-
min-width: 200px;
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
padding: 20px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.content {
|
|
6
|
-
min-width: 300px;
|
|
7
|
-
padding: 24px;
|
|
8
|
-
background-color: var(--theme-modal-background);
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.title {
|
|
13
|
-
margin: 0 0 16px 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.text {
|
|
17
|
-
margin: 0 0 16px 0;
|
|
18
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
import { Pair } from './models/Pair';
|
|
4
|
-
import { Pairs } from './Pairs';
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof Pairs> = {
|
|
7
|
-
title: 'View/Pairs',
|
|
8
|
-
component: Pairs,
|
|
9
|
-
parameters: {
|
|
10
|
-
layout: 'centered',
|
|
11
|
-
},
|
|
12
|
-
tags: ['autodocs'],
|
|
13
|
-
argTypes: {
|
|
14
|
-
pairs: {
|
|
15
|
-
control: 'object',
|
|
16
|
-
description: 'Массив пар ключ-значение',
|
|
17
|
-
},
|
|
18
|
-
column1Width: {
|
|
19
|
-
control: 'text',
|
|
20
|
-
description: 'Ширина первой колонки',
|
|
21
|
-
},
|
|
22
|
-
column2Width: {
|
|
23
|
-
control: 'text',
|
|
24
|
-
description: 'Ширина второй колонки',
|
|
25
|
-
},
|
|
26
|
-
showBorder: {
|
|
27
|
-
control: 'boolean',
|
|
28
|
-
description: 'Показывать границы',
|
|
29
|
-
},
|
|
30
|
-
minRowHeight: {
|
|
31
|
-
control: 'text',
|
|
32
|
-
description: 'Минимальная высота строки',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default meta;
|
|
38
|
-
type Story = StoryObj<typeof Pairs>;
|
|
39
|
-
|
|
40
|
-
const defaultPairs: Pair[] = [
|
|
41
|
-
{ label: 'Имя', value: 'Иван Иванов' },
|
|
42
|
-
{ label: 'Email', value: 'ivan@example.com' },
|
|
43
|
-
{ label: 'Телефон', value: '+7 (999) 123-45-67' },
|
|
44
|
-
{ label: 'Адрес', value: 'г. Москва, ул. Примерная, д. 1' },
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
export const Default: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
pairs: defaultPairs,
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const WithBorders: Story = {
|
|
54
|
-
args: {
|
|
55
|
-
pairs: defaultPairs,
|
|
56
|
-
showBorder: true,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const CustomWidths: Story = {
|
|
61
|
-
args: {
|
|
62
|
-
pairs: defaultPairs,
|
|
63
|
-
column1Width: '30%',
|
|
64
|
-
column2Width: '70%',
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const WithMinRowHeight: Story = {
|
|
69
|
-
args: {
|
|
70
|
-
pairs: defaultPairs,
|
|
71
|
-
minRowHeight: '50px',
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const LongContent: Story = {
|
|
76
|
-
args: {
|
|
77
|
-
pairs: [
|
|
78
|
-
{
|
|
79
|
-
label: 'Короткий текст',
|
|
80
|
-
value: 'Очень длинный текст, который может не поместиться в одну строку и потребует переноса',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: 'Многострочный текст',
|
|
84
|
-
value: 'Этот текст содержит\nнесколько строк\nи демонстрирует\nмногострочное отображение',
|
|
85
|
-
},
|
|
86
|
-
{ label: 'Специальные символы', value: '!@#$%^&*()_+-=[]{}|;:,.<>?' },
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export const WithCustomClass: Story = {
|
|
92
|
-
args: {
|
|
93
|
-
pairs: defaultPairs,
|
|
94
|
-
classes: {
|
|
95
|
-
root: 'custom-pairs-root',
|
|
96
|
-
rowContainer: 'custom-row-container',
|
|
97
|
-
labelsContainer: 'custom-labels-container',
|
|
98
|
-
valuesContainer: 'custom-values-container',
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import { HTMLAttributes, forwardRef } from 'react';
|
|
3
|
-
|
|
4
|
-
import { UiProps } from '@models/UiProps';
|
|
5
|
-
|
|
6
|
-
import { Typography } from '../Typography';
|
|
7
|
-
import { Pair } from './models/Pair';
|
|
8
|
-
import * as styles from './pairs.module.css';
|
|
9
|
-
import { TypographyWithTooltip } from './ui/TypographyWithTooltip';
|
|
10
|
-
|
|
11
|
-
interface Props {
|
|
12
|
-
pairs: Pair[];
|
|
13
|
-
column1Width?: string;
|
|
14
|
-
column2Width?: string;
|
|
15
|
-
showBorder?: boolean;
|
|
16
|
-
minRowHeight?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const Pairs = forwardRef<HTMLDivElement, UiProps<Props> & HTMLAttributes<HTMLDivElement>>(function Pairs(
|
|
20
|
-
{ pairs, column1Width = '50%', column2Width = '50%', showBorder, minRowHeight, classes, className, style, ...rest },
|
|
21
|
-
ref,
|
|
22
|
-
) {
|
|
23
|
-
return (
|
|
24
|
-
<div ref={ref} className={classNames(className, classes?.root)} style={style} {...rest}>
|
|
25
|
-
{pairs.map((pair, i) => (
|
|
26
|
-
<div
|
|
27
|
-
key={i}
|
|
28
|
-
style={{ minHeight: minRowHeight, display: 'flex' }}
|
|
29
|
-
className={classNames(classes?.rowContainer, {
|
|
30
|
-
[styles.rowContainerBorders]: showBorder,
|
|
31
|
-
})}
|
|
32
|
-
>
|
|
33
|
-
{pair && (
|
|
34
|
-
<>
|
|
35
|
-
<div
|
|
36
|
-
className={classNames(styles.labelsContainer, classes?.labelsContainer, {
|
|
37
|
-
[styles.labelsWithBorders]: showBorder,
|
|
38
|
-
})}
|
|
39
|
-
style={{
|
|
40
|
-
width: column1Width,
|
|
41
|
-
minWidth: column1Width,
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
44
|
-
<Typography className={styles.dimTypography}>{pair.label}</Typography>
|
|
45
|
-
</div>
|
|
46
|
-
<div
|
|
47
|
-
style={{
|
|
48
|
-
width: column2Width,
|
|
49
|
-
minWidth: column2Width,
|
|
50
|
-
}}
|
|
51
|
-
className={classNames(styles.valuesContainer, classes?.valuesContainer, {
|
|
52
|
-
[styles.valuesWithBorders]: showBorder,
|
|
53
|
-
})}
|
|
54
|
-
>
|
|
55
|
-
<TypographyWithTooltip label={pair.value} />
|
|
56
|
-
</div>
|
|
57
|
-
</>
|
|
58
|
-
)}
|
|
59
|
-
</div>
|
|
60
|
-
))}
|
|
61
|
-
</div>
|
|
62
|
-
);
|
|
63
|
-
});
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.row-container-borders:last-child {
|
|
2
|
-
border-bottom: 1px solid var(--theme-divider);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.labels-container {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
padding-right: 34px;
|
|
9
|
-
}
|
|
10
|
-
.labels-with-borders {
|
|
11
|
-
padding: 4px 12px 4px 12px;
|
|
12
|
-
border-top: 1px solid var(--theme-divider);
|
|
13
|
-
border-right: 1px solid var(--theme-divider);
|
|
14
|
-
border-left: 1px solid var(--theme-divider);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.values-container {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
}
|
|
21
|
-
.values-with-borders {
|
|
22
|
-
padding: 4px 12px 4px 12px;
|
|
23
|
-
border-top: 1px solid var(--theme-divider);
|
|
24
|
-
border-right: 1px solid var(--theme-divider);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.dim-typography {
|
|
28
|
-
color: var(--theme-text-secondary);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.trimmed-typography {
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
text-overflow: ellipsis;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import { Tooltip } from '@components/view/Tooltip';
|
|
4
|
-
import { Typography } from '@components/view/Typography';
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
label: string | number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function TypographyWithTooltip(props: Props) {
|
|
11
|
-
const { label } = props;
|
|
12
|
-
|
|
13
|
-
const [tooltip, setTooltip] = useState(label);
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<Tooltip label={tooltip}>
|
|
17
|
-
<Typography
|
|
18
|
-
style={{
|
|
19
|
-
textOverflow: 'ellipsis',
|
|
20
|
-
overflow: 'hidden',
|
|
21
|
-
whiteSpace: 'nowrap',
|
|
22
|
-
}}
|
|
23
|
-
onMouseEnter={(e: React.MouseEvent) => {
|
|
24
|
-
setTooltip(e.currentTarget.scrollWidth > e.currentTarget.clientWidth ? label : '');
|
|
25
|
-
}}
|
|
26
|
-
>
|
|
27
|
-
{label}
|
|
28
|
-
</Typography>
|
|
29
|
-
</Tooltip>
|
|
30
|
-
);
|
|
31
|
-
}
|