@smart-react-components/ui 2.1.8 → 2.2.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/Alert/AlertIcon.d.ts +1 -1
- package/Alert/AlertIcon.js +3 -6
- package/Alert/AlertIcon.test.d.ts +1 -0
- package/Alert/AlertIcon.test.js +24 -0
- package/Alert/index.js +7 -12
- package/Alert/index.test.d.ts +1 -0
- package/Alert/index.test.js +21 -0
- package/Badge/BadgeIcon.d.ts +1 -1
- package/Badge/BadgeIcon.js +3 -3
- package/Badge/BadgeIcon.test.d.ts +1 -0
- package/Badge/BadgeIcon.test.js +27 -0
- package/Badge/BadgeList.d.ts +1 -1
- package/Badge/BadgeList.js +14 -20
- package/Badge/BadgeList.test.d.ts +1 -0
- package/Badge/BadgeList.test.js +19 -0
- package/Badge/index.js +6 -11
- package/Badge/index.test.d.ts +1 -0
- package/Badge/index.test.js +21 -0
- package/Breadcrumb/BreadcrumbItem.js +6 -5
- package/Breadcrumb/BreadcrumbItem.test.d.ts +1 -0
- package/Breadcrumb/BreadcrumbItem.test.js +27 -0
- package/Breadcrumb/BreadcrumbLink.js +7 -9
- package/Breadcrumb/BreadcrumbLink.test.d.ts +1 -0
- package/Breadcrumb/BreadcrumbLink.test.js +30 -0
- package/Breadcrumb/BreadcrumbList.d.ts +1 -1
- package/Breadcrumb/BreadcrumbList.js +12 -20
- package/Breadcrumb/BreadcrumbList.test.d.ts +1 -0
- package/Breadcrumb/BreadcrumbList.test.js +19 -0
- package/Button/ButtonAddon.js +4 -6
- package/Button/ButtonGroup.js +1 -4
- package/Button/ButtonGroup.test.d.ts +1 -0
- package/Button/ButtonGroup.test.js +19 -0
- package/Button/ButtonLink.js +6 -11
- package/Button/ButtonLink.test.d.ts +1 -0
- package/Button/ButtonLink.test.js +17 -0
- package/Button/ButtonList.d.ts +1 -1
- package/Button/ButtonList.js +31 -29
- package/Button/ButtonList.test.d.ts +1 -0
- package/Button/ButtonList.test.js +19 -0
- package/Button/ButtonLoading.d.ts +1 -1
- package/Button/ButtonLoading.js +8 -6
- package/Button/ButtonLoading.test.d.ts +1 -0
- package/Button/ButtonLoading.test.js +30 -0
- package/Button/ButtonSelect.d.ts +1 -1
- package/Button/ButtonSelect.js +19 -15
- package/Button/ButtonSelect.test.d.ts +1 -0
- package/Button/ButtonSelect.test.js +24 -0
- package/Button/index.js +22 -21
- package/Button/index.test.d.ts +1 -0
- package/Button/index.test.js +24 -0
- package/Checkbox/CheckboxAll.d.ts +1 -1
- package/Checkbox/CheckboxAll.js +8 -15
- package/Checkbox/CheckboxGroup.d.ts +2 -2
- package/Checkbox/CheckboxGroup.js +15 -4
- package/Checkbox/CheckboxGroup.test.d.ts +1 -0
- package/Checkbox/CheckboxGroup.test.js +19 -0
- package/Checkbox/index.d.ts +1 -1
- package/Checkbox/index.js +8 -15
- package/Checkbox/index.test.d.ts +1 -0
- package/Checkbox/index.test.js +62 -0
- package/ColorPicker/index.d.ts +2 -2
- package/ColorPicker/index.js +13 -23
- package/ColorPicker/index.test.d.ts +1 -0
- package/ColorPicker/index.test.js +15 -0
- package/DatePicker/index.js +12 -18
- package/Dropdown/DropdownCategory.d.ts +1 -1
- package/Dropdown/DropdownCategory.js +14 -14
- package/Dropdown/DropdownItem.js +8 -6
- package/Dropdown/DropdownItem.test.d.ts +1 -0
- package/Dropdown/DropdownItem.test.js +74 -0
- package/Dropdown/DropdownList.d.ts +1 -1
- package/Dropdown/DropdownList.js +4 -11
- package/Dropdown/DropdownList.test.d.ts +1 -0
- package/Dropdown/DropdownList.test.js +21 -0
- package/Dropdown/index.js +20 -9
- package/Dropdown/index.test.d.ts +1 -0
- package/Dropdown/index.test.js +24 -0
- package/FixedBox/index.d.ts +1 -1
- package/FixedBox/index.js +1 -1
- package/FixedBox/index.test.d.ts +1 -0
- package/FixedBox/index.test.js +33 -0
- package/Grid/Column.d.ts +19 -1
- package/Grid/Column.test.d.ts +1 -0
- package/Grid/Column.test.js +23 -0
- package/Grid/Container.d.ts +19 -1
- package/Grid/Container.test.d.ts +1 -0
- package/Grid/Container.test.js +19 -0
- package/Grid/Row.d.ts +19 -1
- package/Grid/Row.test.d.ts +1 -0
- package/Grid/Row.test.js +15 -0
- package/Input/InputAddon.js +4 -4
- package/Input/InputAddon.test.d.ts +1 -0
- package/Input/InputAddon.test.js +30 -0
- package/Input/InputColorPicker.js +41 -33
- package/Input/InputColorPicker.test.d.ts +1 -0
- package/Input/InputColorPicker.test.js +18 -0
- package/Input/InputDatePicker.js +25 -24
- package/Input/InputFile.d.ts +1 -1
- package/Input/InputFile.js +16 -25
- package/Input/InputFile.test.d.ts +1 -0
- package/Input/InputFile.test.js +27 -0
- package/Input/InputNumber.d.ts +1 -1
- package/Input/InputNumber.js +41 -21
- package/Input/InputNumber.test.d.ts +1 -0
- package/Input/InputNumber.test.js +15 -0
- package/Input/index.d.ts +1 -1
- package/Input/index.js +38 -21
- package/Input/index.test.d.ts +1 -0
- package/Input/index.test.js +38 -0
- package/Loading/index.js +1 -5
- package/Loading/index.test.d.ts +1 -0
- package/Loading/index.test.js +15 -0
- package/Modal/ModalBody.d.ts +10 -1
- package/Modal/ModalFooter.d.ts +10 -1
- package/Modal/ModalHeader.d.ts +10 -1
- package/Modal/ModalHeader.js +1 -2
- package/Modal/ModalTitle.d.ts +10 -1
- package/Modal/index.js +4 -15
- package/Modal/index.test.d.ts +1 -0
- package/Modal/index.test.js +39 -0
- package/Overlay/index.d.ts +1 -1
- package/Overlay/index.js +20 -16
- package/Overlay/index.test.d.ts +1 -0
- package/Overlay/index.test.js +16 -0
- package/Pagination/PaginationItem.js +5 -4
- package/Pagination/PaginationItem.test.d.ts +1 -0
- package/Pagination/PaginationItem.test.js +27 -0
- package/Pagination/PaginationLink.js +6 -8
- package/Pagination/PaginationLink.test.d.ts +1 -0
- package/Pagination/PaginationLink.test.js +30 -0
- package/Pagination/PaginationList.d.ts +1 -1
- package/Pagination/PaginationList.js +12 -20
- package/Pagination/PaginationList.test.d.ts +1 -0
- package/Pagination/PaginationList.test.js +19 -0
- package/PopUp/Alert.js +3 -12
- package/PopUp/Alert.test.d.ts +1 -0
- package/PopUp/Alert.test.js +23 -0
- package/PopUp/Confirm.js +3 -12
- package/PopUp/Confirm.test.d.ts +1 -0
- package/PopUp/Confirm.test.js +31 -0
- package/PopUp/Prompt.js +3 -12
- package/PopUp/Prompt.test.d.ts +1 -0
- package/PopUp/Prompt.test.js +33 -0
- package/Popover/index.d.ts +1 -1
- package/Popover/index.js +17 -7
- package/Popover/index.test.d.ts +1 -0
- package/Popover/index.test.js +34 -0
- package/ProgressBar/index.js +18 -8
- package/ProgressBar/index.test.d.ts +1 -0
- package/ProgressBar/index.test.js +23 -0
- package/README.md +0 -4
- package/Radio/RadioGroup.d.ts +2 -2
- package/Radio/RadioGroup.js +14 -4
- package/Radio/RadioGroup.test.d.ts +1 -0
- package/Radio/RadioGroup.test.js +19 -0
- package/Radio/index.d.ts +1 -1
- package/Radio/index.js +7 -13
- package/Radio/index.test.d.ts +1 -0
- package/Radio/index.test.js +48 -0
- package/Select/Option.js +14 -11
- package/Select/Option.test.d.ts +1 -0
- package/Select/Option.test.js +72 -0
- package/Select/OptionGroup.d.ts +1 -1
- package/Select/OptionGroup.js +21 -17
- package/Select/SelectBox.js +40 -43
- package/Select/SelectBox.test.d.ts +1 -0
- package/Select/SelectBox.test.js +24 -0
- package/Select/SelectSearchBox.d.ts +1 -1
- package/Select/SelectSearchBox.js +28 -19
- package/Select/index.d.ts +1 -1
- package/Select/index.js +25 -25
- package/Select/index.test.d.ts +1 -0
- package/Select/index.test.js +21 -0
- package/Switch/SwitchGroup.d.ts +1 -1
- package/Switch/SwitchGroup.test.d.ts +1 -0
- package/Switch/SwitchGroup.test.js +19 -0
- package/Switch/index.d.ts +1 -1
- package/Switch/index.js +4 -4
- package/Switch/index.test.d.ts +1 -0
- package/Switch/index.test.js +15 -0
- package/Table/TableContainer.d.ts +1 -1
- package/Table/TableContainer.js +5 -13
- package/Table/Td.d.ts +20 -1
- package/Table/Td.js +3 -1
- package/Table/Th.d.ts +19 -1
- package/Table/Tr.d.ts +10 -1
- package/Table/Tr.js +22 -25
- package/Table/Tr.test.d.ts +1 -0
- package/Table/Tr.test.js +23 -0
- package/Table/index.d.ts +1 -1
- package/Table/index.js +2 -11
- package/Textarea/index.js +10 -11
- package/Textarea/index.test.d.ts +1 -0
- package/Textarea/index.test.js +15 -0
- package/Tooltip/index.d.ts +1 -1
- package/Tooltip/index.test.d.ts +1 -0
- package/Tooltip/index.test.js +33 -0
- package/WaveEffect/index.d.ts +1 -1
- package/WaveEffect/index.test.d.ts +1 -0
- package/WaveEffect/index.test.js +29 -0
- package/components/Alert/AlertContent.d.ts +5 -3
- package/components/Alert/AlertElement.d.ts +23 -1
- package/components/Alert/AlertElement.js +26 -27
- package/components/Alert/AlertElement.test.d.ts +1 -0
- package/components/Alert/AlertElement.test.js +67 -0
- package/components/Alert/AlertIconElement.d.ts +23 -1
- package/components/Alert/AlertIconElement.js +20 -23
- package/components/Alert/AlertIconElement.test.d.ts +1 -0
- package/components/Alert/AlertIconElement.test.js +46 -0
- package/components/Badge/BadgeContent.d.ts +5 -3
- package/components/Badge/BadgeElement.d.ts +23 -1
- package/components/Badge/BadgeElement.js +80 -83
- package/components/Badge/BadgeElement.test.d.ts +1 -0
- package/components/Badge/BadgeElement.test.js +76 -0
- package/components/Badge/BadgeIconElement.d.ts +19 -1
- package/components/Badge/BadgeIconElement.js +46 -49
- package/components/Badge/BadgeIconElement.test.d.ts +1 -0
- package/components/Badge/BadgeIconElement.test.js +43 -0
- package/components/Badge/BadgeListElement.d.ts +23 -1
- package/components/Badge/BadgeListElement.js +1 -1
- package/components/Badge/BadgeListElement.test.d.ts +1 -0
- package/components/Badge/BadgeListElement.test.js +15 -0
- package/components/Breadcrumb/BreadcrumbItemElement.d.ts +10 -1
- package/components/Breadcrumb/BreadcrumbItemElement.js +49 -52
- package/components/Breadcrumb/BreadcrumbItemElement.test.d.ts +1 -0
- package/components/Breadcrumb/BreadcrumbItemElement.test.js +47 -0
- package/components/Breadcrumb/BreadcrumbListElement.d.ts +10 -1
- package/components/Breadcrumb/BreadcrumbListElement.js +8 -11
- package/components/Breadcrumb/BreadcrumbListElement.test.d.ts +1 -0
- package/components/Breadcrumb/BreadcrumbListElement.test.js +32 -0
- package/components/Button/ButtonAddonElement.d.ts +23 -1
- package/components/Button/ButtonAddonElement.js +39 -43
- package/components/Button/ButtonAddonElement.test.d.ts +1 -0
- package/components/Button/ButtonAddonElement.test.js +62 -0
- package/components/Button/ButtonContent.d.ts +5 -3
- package/components/Button/ButtonElement.d.ts +23 -1
- package/components/Button/ButtonElement.js +95 -99
- package/components/Button/ButtonElement.test.d.ts +1 -0
- package/components/Button/ButtonElement.test.js +101 -0
- package/components/Button/ButtonGroupElement.d.ts +26 -1
- package/components/Button/ButtonGroupElement.test.d.ts +1 -0
- package/components/Button/ButtonGroupElement.test.js +32 -0
- package/components/Button/ButtonListElement.d.ts +23 -1
- package/components/Button/ButtonListElement.test.d.ts +1 -0
- package/components/Button/ButtonListElement.test.js +32 -0
- package/components/Button/ButtonLoadingElement.d.ts +10 -1
- package/components/Button/ButtonLoadingElement.test.d.ts +1 -0
- package/components/Button/ButtonLoadingElement.test.js +19 -0
- package/components/Checkbox/CheckboxElement.d.ts +24 -1
- package/components/Checkbox/CheckboxElement.js +22 -33
- package/components/Checkbox/CheckboxElement.test.d.ts +1 -0
- package/components/Checkbox/CheckboxElement.test.js +38 -0
- package/components/ColorPicker/ButtonsSection/index.js +1 -1
- package/components/ColorPicker/ColorPickerElement.d.ts +23 -1
- package/components/ColorPicker/ColorPickerElement.js +4 -7
- package/components/ColorPicker/ConsoleSection/ConsoleSectionElement.d.ts +10 -1
- package/components/ColorPicker/ConsoleSection/ConsoleSectionElement.js +6 -9
- package/components/ColorPicker/ConsoleSection/index.js +10 -11
- package/components/ColorPicker/PaletteSection/PaletteItemElement.d.ts +23 -1
- package/components/ColorPicker/PaletteSection/PaletteItemElement.js +6 -9
- package/components/ColorPicker/PaletteSection/PaletteList.js +11 -11
- package/components/ColorPicker/PaletteSection/PaletteListContainerElement.d.ts +10 -1
- package/components/ColorPicker/PaletteSection/index.js +3 -2
- package/components/ColorPicker/PickerSection/DraggerElement.d.ts +10 -1
- package/components/ColorPicker/PickerSection/DraggerElement.js +6 -9
- package/components/ColorPicker/PickerSection/MajorDraggerElement.d.ts +38 -1
- package/components/ColorPicker/PickerSection/MajorDraggerElement.js +4 -7
- package/components/ColorPicker/PickerSection/MajorPicker.js +11 -11
- package/components/ColorPicker/PickerSection/MajorPickerElement.d.ts +39 -2
- package/components/ColorPicker/PickerSection/MajorPickerElement.js +1 -1
- package/components/ColorPicker/PickerSection/MinorDraggerElement.d.ts +38 -1
- package/components/ColorPicker/PickerSection/MinorPicker.js +7 -7
- package/components/ColorPicker/PickerSection/MinorPickerElement.d.ts +38 -1
- package/components/ColorPicker/PickerSection/OpacityPicker.js +11 -10
- package/components/ColorPicker/PickerSection/OpacityPickerElement.d.ts +39 -2
- package/components/ColorPicker/PickerSection/PickerElement.d.ts +10 -1
- package/components/ColorPicker/PickerSection/index.d.ts +2 -2
- package/components/ColorPicker/PickerSection/index.js +3 -3
- package/components/DatePicker/DatePicker/DatePickerHeader.js +1 -1
- package/components/DatePicker/DatePicker/DatePickerHeaderElement.d.ts +23 -1
- package/components/DatePicker/DatePicker/DatePickerHeaderElement.js +3 -6
- package/components/DatePicker/DatePicker/DatePickerItemElement.d.ts +23 -1
- package/components/DatePicker/DatePicker/DatePickerItemElement.js +14 -17
- package/components/DatePicker/DatePicker/DatePickerListElement.d.ts +10 -1
- package/components/DatePicker/DatePicker/DatePickerWeekItemElement.d.ts +23 -1
- package/components/DatePicker/DatePicker/DatePickerWeekItemElement.js +14 -17
- package/components/DatePicker/DatePicker/DatePickerWeekListElement.d.ts +10 -1
- package/components/DatePicker/DatePicker/MonthPicker.js +1 -1
- package/components/DatePicker/DatePicker/WeekPicker.js +2 -2
- package/components/DatePicker/DatePicker/YearPicker.js +1 -1
- package/components/DatePicker/DatePicker/index.js +5 -5
- package/components/DatePicker/DatePickerElement.d.ts +26 -1
- package/components/DatePicker/DatePickerHeader.js +1 -1
- package/components/DatePicker/DatePickerHeaderElement.d.ts +23 -1
- package/components/DatePicker/DatePickerHeaderElement.js +10 -13
- package/components/DatePicker/TimePicker/TimePickerArrowItem.js +5 -5
- package/components/DatePicker/TimePicker/TimePickerElement.d.ts +23 -1
- package/components/DatePicker/TimePicker/TimePickerElement.js +17 -20
- package/components/DatePicker/TimePicker/index.js +1 -1
- package/components/Dropdown/DropdownItemElement.d.ts +10 -1
- package/components/Dropdown/DropdownItemElement.js +30 -33
- package/components/Dropdown/DropdownItemElement.test.d.ts +1 -0
- package/components/Dropdown/DropdownItemElement.test.js +70 -0
- package/components/Dropdown/DropdownListElement.d.ts +23 -3
- package/components/Dropdown/DropdownListElement.js +11 -14
- package/components/Dropdown/DropdownListElement.test.d.ts +1 -0
- package/components/Dropdown/DropdownListElement.test.js +40 -0
- package/components/FixedBox/FixedBoxElement.d.ts +10 -1
- package/components/FixedBox/FixedBoxElement.test.d.ts +1 -0
- package/components/FixedBox/FixedBoxElement.test.js +23 -0
- package/components/FixedBox/OverlayElement.d.ts +17 -1
- package/components/FixedBox/OverlayElement.test.d.ts +1 -0
- package/components/FixedBox/OverlayElement.test.js +19 -0
- package/components/Form/FormBlockLabel.d.ts +23 -1
- package/components/Form/FormBlockLabel.js +8 -11
- package/components/Form/FormBlockLabel.test.d.ts +1 -0
- package/components/Form/FormBlockLabel.test.js +37 -0
- package/components/Form/FormGroup.d.ts +10 -1
- package/components/Form/FormInlineLabel.d.ts +23 -1
- package/components/Form/FormInlineLabel.js +6 -9
- package/components/Form/FormInlineLabel.test.d.ts +1 -0
- package/components/Form/FormInlineLabel.test.js +44 -0
- package/components/Form/HiddenInput.d.ts +3 -1
- package/components/Input/InputAddonElement.d.ts +23 -1
- package/components/Input/InputAddonElement.js +60 -60
- package/components/Input/InputAddonElement.test.d.ts +1 -0
- package/components/Input/InputAddonElement.test.js +67 -0
- package/components/Input/InputElement.d.ts +23 -1
- package/components/Input/InputElement.js +54 -58
- package/components/Input/InputElement.test.d.ts +1 -0
- package/components/Input/InputElement.test.js +74 -0
- package/components/Input/InputFileTemplate.d.ts +1 -1
- package/components/Input/InputFileTemplate.js +1 -1
- package/components/Input/InputFileTemplate.test.d.ts +1 -0
- package/components/Input/InputFileTemplate.test.js +54 -0
- package/components/Input/InputNumberTemplate.js +2 -2
- package/components/Input/InputNumberTemplate.test.d.ts +1 -0
- package/components/Input/InputNumberTemplate.test.js +43 -0
- package/components/Input/InputNumberTemplateElement.d.ts +23 -1
- package/components/Input/InputPlaceholder.d.ts +24 -1
- package/components/Input/InputPlaceholder.js +3 -1
- package/components/Input/InputWrapper.d.ts +10 -1
- package/components/Input/InputWrapper.js +18 -21
- package/components/Loading/LoadingElement.d.ts +24 -1
- package/components/Loading/LoadingElement.test.d.ts +1 -0
- package/components/Loading/LoadingElement.test.js +15 -0
- package/components/Modal/ModalElement.d.ts +23 -1
- package/components/Modal/ModalElement.test.d.ts +1 -0
- package/components/Modal/ModalElement.test.js +42 -0
- package/components/Modal/OverlayElement.d.ts +17 -1
- package/components/Modal/OverlayElement.test.d.ts +1 -0
- package/components/Modal/OverlayElement.test.js +40 -0
- package/components/Overlay/OverlayElement.d.ts +10 -1
- package/components/Overlay/OverlayElement.test.d.ts +1 -0
- package/components/Overlay/OverlayElement.test.js +27 -0
- package/components/Pagination/PaginationItemElement.d.ts +10 -1
- package/components/Pagination/PaginationItemElement.js +80 -83
- package/components/Pagination/PaginationItemElement.test.d.ts +1 -0
- package/components/Pagination/PaginationItemElement.test.js +51 -0
- package/components/Pagination/PaginationListElement.d.ts +10 -1
- package/components/Pagination/PaginationListElement.test.d.ts +1 -0
- package/components/Pagination/PaginationListElement.test.js +15 -0
- package/components/Popover/PopoverArrow.d.ts +6 -4
- package/components/Popover/PopoverElement.d.ts +29 -5
- package/components/Popover/PopoverElement.js +21 -24
- package/components/Popover/PopoverElement.test.d.ts +1 -0
- package/components/Popover/PopoverElement.test.js +77 -0
- package/components/ProgressBar/ProgressBarElement.d.ts +16 -3
- package/components/ProgressBar/ProgressBarElement.js +19 -22
- package/components/ProgressBar/ProgressBarElement.test.d.ts +1 -0
- package/components/ProgressBar/ProgressBarElement.test.js +75 -0
- package/components/Radio/RadioElement.d.ts +24 -1
- package/components/Radio/RadioElement.js +14 -23
- package/components/Radio/RadioElement.test.d.ts +1 -0
- package/components/Radio/RadioElement.test.js +37 -0
- package/components/Select/SelectElement.d.ts +56 -1
- package/components/Select/SelectElement.js +2 -2
- package/components/Select/SelectElement.test.d.ts +1 -0
- package/components/Select/SelectElement.test.js +32 -0
- package/components/Switch/SwitchElement.d.ts +25 -1
- package/components/Switch/SwitchElement.js +20 -26
- package/components/Switch/SwitchElement.test.d.ts +1 -0
- package/components/Switch/SwitchElement.test.js +37 -0
- package/components/Table/TableContainerElement.d.ts +10 -1
- package/components/Table/TableElement.d.ts +23 -1
- package/components/Table/TableElement.js +60 -63
- package/components/Tooltip/TooltipElement.d.ts +23 -3
- package/components/Tooltip/TooltipElement.js +15 -18
- package/components/Tooltip/TooltipElement.test.d.ts +1 -0
- package/components/Tooltip/TooltipElement.test.js +42 -0
- package/components/WaveEffect/WaveEffectElement.d.ts +10 -1
- package/components/WaveEffect/WaveEffectElement.test.d.ts +1 -0
- package/components/WaveEffect/WaveEffectElement.test.js +25 -0
- package/constants/date-picker.js +4 -4
- package/context/ColorPickerProps.d.ts +0 -1
- package/hooks/useAddons.d.ts +2 -2
- package/hooks/useAddons.js +6 -2
- package/hooks/useAddons.test.d.ts +1 -0
- package/hooks/useAddons.test.js +35 -0
- package/hooks/useFixedBoxMethods.d.ts +0 -1
- package/hooks/useFixedBoxMethods.js +3 -12
- package/hooks/useInputMethods.js +1 -1
- package/hooks/useInputMethods.test.d.ts +1 -0
- package/hooks/useInputMethods.test.js +94 -0
- package/hooks/useSelectBoxHover.d.ts +1 -1
- package/hooks/useSelectBoxItemList.d.ts +1 -1
- package/hooks/useSelectSearch.d.ts +1 -1
- package/icons/Add.d.ts +20 -5
- package/icons/ArrowDown.d.ts +20 -5
- package/icons/ArrowLeft.d.ts +20 -5
- package/icons/ArrowMultipleDown.d.ts +20 -5
- package/icons/ArrowRight.d.ts +20 -5
- package/icons/Cancel.d.ts +20 -5
- package/icons/CaretDown.d.ts +20 -5
- package/icons/CaretUp.d.ts +20 -5
- package/icons/Close.d.ts +20 -5
- package/icons/Date.d.ts +20 -5
- package/icons/Eraser.d.ts +20 -5
- package/icons/Palette.d.ts +20 -5
- package/icons/Save.d.ts +20 -5
- package/icons/Time.d.ts +20 -5
- package/package.json +25 -26
- package/types/button.d.ts +1 -1
- package/types/button.js +1 -1
- package/types/color-picker.d.ts +4 -4
- package/types/color-picker.js +1 -1
- package/types/form.d.ts +1 -1
- package/types/global.d.d.ts +5 -0
- package/types/global.d.js +1 -0
- package/types/index.d.ts +1 -1
- package/types/index.js +4 -4
- package/types/wave-effect.d.ts +1 -1
- package/util/color-picker.d.ts +4 -4
- package/util/color-picker.js +3 -3
- package/util/color-picker.test.d.ts +1 -0
- package/util/color-picker.test.js +38 -0
- package/util/css.test.d.ts +1 -0
- package/util/css.test.js +12 -0
- package/util/dom.test.d.ts +1 -0
- package/util/dom.test.js +8 -0
- package/util/fixed-box.js +12 -7
- package/util/form.test.d.ts +1 -0
- package/util/form.test.js +14 -0
- package/util/popover.js +4 -1
- package/util/props.js +11 -2
- package/util/props.test.d.ts +1 -0
- package/util/props.test.js +30 -0
- package/util/radio.test.d.ts +1 -0
- package/util/radio.test.js +10 -0
- package/util/wave-effect.test.d.ts +1 -0
- package/util/wave-effect.test.js +14 -0
|
@@ -5,9 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const Li_1 = __importDefault(require("@smart-react-components/core/Element/Li"));
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isActive, isDisabled, isFixedSize, isOutline, isSoft, palette, shape }) => {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147, _148, _149, _150, _151, _152, _153, _154, _155, _156, _157, _158, _159, _160, _161, _162;
|
|
10
|
-
return `
|
|
8
|
+
exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isActive, isDisabled, isFixedSize, isOutline, isSoft, palette, shape }) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112; var _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147, _148, _149, _150, _151, _152, _153, _154, _155, _156, _157, _158, _159, _160, _161, _162; return `
|
|
11
9
|
flex: 0 0 auto;
|
|
12
10
|
margin: ${theme.$.length.pagination.margin.y} ${theme.$.length.pagination.margin.x};
|
|
13
11
|
|
|
@@ -23,148 +21,147 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
|
|
|
23
21
|
transition-property: background, border, color, fill;
|
|
24
22
|
|
|
25
23
|
${isSoft
|
|
26
|
-
|
|
24
|
+
? `
|
|
27
25
|
font-weight: ${theme.$.fontWeight.bold};
|
|
28
26
|
`
|
|
29
|
-
|
|
27
|
+
: ''}
|
|
30
28
|
|
|
31
29
|
${isFixedSize
|
|
32
|
-
|
|
30
|
+
? `
|
|
33
31
|
height: ${theme.$.length.pagination.fixedSize};
|
|
34
32
|
min-width: ${theme.$.length.pagination.fixedSize};
|
|
35
33
|
padding: 0 3px;
|
|
36
34
|
`
|
|
37
|
-
|
|
35
|
+
: `
|
|
38
36
|
padding: ${theme.$.length.pagination.padding.y} ${theme.$.length.pagination.padding.x};
|
|
39
37
|
`}
|
|
40
38
|
|
|
41
39
|
${isDisabled
|
|
42
|
-
|
|
40
|
+
? `
|
|
43
41
|
opacity: ${theme.$.opacity.paginationDisabled};
|
|
44
42
|
pointer-events: none;
|
|
45
43
|
`
|
|
46
|
-
|
|
44
|
+
: ''}
|
|
47
45
|
|
|
48
46
|
${!isOutline
|
|
49
|
-
|
|
47
|
+
? `
|
|
50
48
|
${!isSoft
|
|
51
|
-
|
|
49
|
+
? `
|
|
52
50
|
${!isActive
|
|
53
|
-
|
|
54
|
-
background: ${(
|
|
55
|
-
border-color: ${(
|
|
56
|
-
color: ${(
|
|
57
|
-
fill: ${(
|
|
51
|
+
? `
|
|
52
|
+
background: ${(_113 = (_a = theme.$.palette[palette].pagination) === null || _a === void 0 ? void 0 : _a.background) !== null && _113 !== void 0 ? _113 : theme.$.palette[palette].main};
|
|
53
|
+
border-color: ${(_114 = (_b = theme.$.palette[palette].pagination) === null || _b === void 0 ? void 0 : _b.border) !== null && _114 !== void 0 ? _114 : theme.$.palette[palette].dynamic};
|
|
54
|
+
color: ${(_115 = (_c = theme.$.palette[palette].pagination) === null || _c === void 0 ? void 0 : _c.font) !== null && _115 !== void 0 ? _115 : theme.$.palette[palette].font};
|
|
55
|
+
fill: ${(_116 = (_d = theme.$.palette[palette].pagination) === null || _d === void 0 ? void 0 : _d.font) !== null && _116 !== void 0 ? _116 : theme.$.palette[palette].font};
|
|
58
56
|
|
|
59
57
|
${!isDisabled
|
|
60
|
-
|
|
58
|
+
? `
|
|
61
59
|
&:hover {
|
|
62
|
-
background: ${(
|
|
63
|
-
border-color: ${(
|
|
64
|
-
color: ${(
|
|
65
|
-
fill: ${(
|
|
60
|
+
background: ${(_117 = (_f = (_e = theme.$.palette[palette].pagination) === null || _e === void 0 ? void 0 : _e.hover) === null || _f === void 0 ? void 0 : _f.background) !== null && _117 !== void 0 ? _117 : theme.$.palette[palette].dynamicer};
|
|
61
|
+
border-color: ${(_118 = (_h = (_g = theme.$.palette[palette].pagination) === null || _g === void 0 ? void 0 : _g.hover) === null || _h === void 0 ? void 0 : _h.border) !== null && _118 !== void 0 ? _118 : theme.$.palette[palette].dynamicest};
|
|
62
|
+
color: ${(_119 = (_k = (_j = theme.$.palette[palette].pagination) === null || _j === void 0 ? void 0 : _j.hover) === null || _k === void 0 ? void 0 : _k.font) !== null && _119 !== void 0 ? _119 : theme.$.palette[palette].font};
|
|
63
|
+
fill: ${(_120 = (_m = (_l = theme.$.palette[palette].pagination) === null || _l === void 0 ? void 0 : _l.hover) === null || _m === void 0 ? void 0 : _m.font) !== null && _120 !== void 0 ? _120 : theme.$.palette[palette].font};
|
|
66
64
|
}
|
|
67
65
|
`
|
|
68
|
-
|
|
66
|
+
: ''}
|
|
69
67
|
`
|
|
70
|
-
|
|
71
|
-
background: ${(
|
|
72
|
-
border-color: ${(
|
|
73
|
-
color: ${(
|
|
74
|
-
fill: ${(
|
|
68
|
+
: `
|
|
69
|
+
background: ${(_121 = (_p = (_o = theme.$.palette[palette].pagination) === null || _o === void 0 ? void 0 : _o.active) === null || _p === void 0 ? void 0 : _p.background) !== null && _121 !== void 0 ? _121 : theme.$.palette[palette].dynamicer};
|
|
70
|
+
border-color: ${(_122 = (_r = (_q = theme.$.palette[palette].pagination) === null || _q === void 0 ? void 0 : _q.active) === null || _r === void 0 ? void 0 : _r.border) !== null && _122 !== void 0 ? _122 : theme.$.palette[palette].dynamicest};
|
|
71
|
+
color: ${(_123 = (_t = (_s = theme.$.palette[palette].pagination) === null || _s === void 0 ? void 0 : _s.active) === null || _t === void 0 ? void 0 : _t.font) !== null && _123 !== void 0 ? _123 : theme.$.palette[palette].font};
|
|
72
|
+
fill: ${(_124 = (_v = (_u = theme.$.palette[palette].pagination) === null || _u === void 0 ? void 0 : _u.active) === null || _v === void 0 ? void 0 : _v.font) !== null && _124 !== void 0 ? _124 : theme.$.palette[palette].font};
|
|
75
73
|
`}
|
|
76
74
|
|
|
77
75
|
`
|
|
78
|
-
|
|
76
|
+
: `
|
|
79
77
|
${!isActive
|
|
80
|
-
|
|
81
|
-
background: ${(
|
|
82
|
-
border-color: ${(
|
|
83
|
-
color: ${(
|
|
84
|
-
fill: ${(
|
|
78
|
+
? `
|
|
79
|
+
background: ${(_125 = (_x = (_w = theme.$.palette[palette].pagination) === null || _w === void 0 ? void 0 : _w.soft) === null || _x === void 0 ? void 0 : _x.background) !== null && _125 !== void 0 ? _125 : theme.$.palette[palette].soft};
|
|
80
|
+
border-color: ${(_126 = (_z = (_y = theme.$.palette[palette].pagination) === null || _y === void 0 ? void 0 : _y.soft) === null || _z === void 0 ? void 0 : _z.border) !== null && _126 !== void 0 ? _126 : theme.$.palette[palette].softDynamic};
|
|
81
|
+
color: ${(_127 = (_1 = (_0 = theme.$.palette[palette].pagination) === null || _0 === void 0 ? void 0 : _0.soft) === null || _1 === void 0 ? void 0 : _1.font) !== null && _127 !== void 0 ? _127 : theme.$.palette[palette].softFont};
|
|
82
|
+
fill: ${(_128 = (_3 = (_2 = theme.$.palette[palette].pagination) === null || _2 === void 0 ? void 0 : _2.soft) === null || _3 === void 0 ? void 0 : _3.font) !== null && _128 !== void 0 ? _128 : theme.$.palette[palette].softFont};
|
|
85
83
|
|
|
86
84
|
${!isDisabled
|
|
87
|
-
|
|
85
|
+
? `
|
|
88
86
|
&:hover {
|
|
89
|
-
background: ${(
|
|
90
|
-
border-color: ${(
|
|
91
|
-
color: ${(
|
|
92
|
-
fill: ${(
|
|
87
|
+
background: ${(_129 = (_6 = (_5 = (_4 = theme.$.palette[palette].pagination) === null || _4 === void 0 ? void 0 : _4.soft) === null || _5 === void 0 ? void 0 : _5.hover) === null || _6 === void 0 ? void 0 : _6.background) !== null && _129 !== void 0 ? _129 : theme.$.palette[palette].softDynamicer};
|
|
88
|
+
border-color: ${(_130 = (_9 = (_8 = (_7 = theme.$.palette[palette].pagination) === null || _7 === void 0 ? void 0 : _7.soft) === null || _8 === void 0 ? void 0 : _8.hover) === null || _9 === void 0 ? void 0 : _9.border) !== null && _130 !== void 0 ? _130 : theme.$.palette[palette].softDynamicest};
|
|
89
|
+
color: ${(_131 = (_12 = (_11 = (_10 = theme.$.palette[palette].pagination) === null || _10 === void 0 ? void 0 : _10.soft) === null || _11 === void 0 ? void 0 : _11.hover) === null || _12 === void 0 ? void 0 : _12.font) !== null && _131 !== void 0 ? _131 : theme.$.palette[palette].softFont};
|
|
90
|
+
fill: ${(_132 = (_15 = (_14 = (_13 = theme.$.palette[palette].pagination) === null || _13 === void 0 ? void 0 : _13.soft) === null || _14 === void 0 ? void 0 : _14.hover) === null || _15 === void 0 ? void 0 : _15.font) !== null && _132 !== void 0 ? _132 : theme.$.palette[palette].softFont};
|
|
93
91
|
}
|
|
94
92
|
`
|
|
95
|
-
|
|
93
|
+
: ''}
|
|
96
94
|
`
|
|
97
|
-
|
|
98
|
-
background: ${(
|
|
99
|
-
border-color: ${(
|
|
100
|
-
color: ${(
|
|
101
|
-
fill: ${(
|
|
95
|
+
: `
|
|
96
|
+
background: ${(_133 = (_18 = (_17 = (_16 = theme.$.palette[palette].pagination) === null || _16 === void 0 ? void 0 : _16.soft) === null || _17 === void 0 ? void 0 : _17.active) === null || _18 === void 0 ? void 0 : _18.background) !== null && _133 !== void 0 ? _133 : theme.$.palette[palette].softDynamicer};
|
|
97
|
+
border-color: ${(_134 = (_21 = (_20 = (_19 = theme.$.palette[palette].pagination) === null || _19 === void 0 ? void 0 : _19.soft) === null || _20 === void 0 ? void 0 : _20.active) === null || _21 === void 0 ? void 0 : _21.border) !== null && _134 !== void 0 ? _134 : theme.$.palette[palette].softDynamicest};
|
|
98
|
+
color: ${(_135 = (_24 = (_23 = (_22 = theme.$.palette[palette].pagination) === null || _22 === void 0 ? void 0 : _22.soft) === null || _23 === void 0 ? void 0 : _23.active) === null || _24 === void 0 ? void 0 : _24.font) !== null && _135 !== void 0 ? _135 : theme.$.palette[palette].softFont};
|
|
99
|
+
fill: ${(_136 = (_27 = (_26 = (_25 = theme.$.palette[palette].pagination) === null || _25 === void 0 ? void 0 : _25.soft) === null || _26 === void 0 ? void 0 : _26.active) === null || _27 === void 0 ? void 0 : _27.font) !== null && _136 !== void 0 ? _136 : theme.$.palette[palette].softFont};
|
|
102
100
|
`}
|
|
103
101
|
`}
|
|
104
102
|
`
|
|
105
|
-
|
|
103
|
+
: `
|
|
106
104
|
${!isSoft
|
|
107
|
-
|
|
105
|
+
? `
|
|
108
106
|
${!isActive
|
|
109
|
-
|
|
110
|
-
border-color: ${(
|
|
107
|
+
? `
|
|
108
|
+
border-color: ${(_137 = (_29 = (_28 = theme.$.palette[palette].pagination) === null || _28 === void 0 ? void 0 : _28.outline) === null || _29 === void 0 ? void 0 : _29.border) !== null && _137 !== void 0 ? _137 : theme.$.color.dynamic.accent};
|
|
111
109
|
|
|
112
110
|
${!isDisabled
|
|
113
|
-
|
|
114
|
-
color: ${(
|
|
115
|
-
fill: ${(
|
|
111
|
+
? `
|
|
112
|
+
color: ${(_138 = (_31 = (_30 = theme.$.palette[palette].pagination) === null || _30 === void 0 ? void 0 : _30.outline) === null || _31 === void 0 ? void 0 : _31.font) !== null && _138 !== void 0 ? _138 : theme.$.color.dynamic.font};
|
|
113
|
+
fill: ${(_139 = (_33 = (_32 = theme.$.palette[palette].pagination) === null || _32 === void 0 ? void 0 : _32.outline) === null || _33 === void 0 ? void 0 : _33.font) !== null && _139 !== void 0 ? _139 : theme.$.color.dynamic.font};
|
|
116
114
|
|
|
117
115
|
&:hover {
|
|
118
|
-
background: ${(
|
|
119
|
-
border-color: ${(
|
|
120
|
-
color: ${(
|
|
121
|
-
fill: ${(
|
|
116
|
+
background: ${(_140 = (_36 = (_35 = (_34 = theme.$.palette[palette].pagination) === null || _34 === void 0 ? void 0 : _34.outline) === null || _35 === void 0 ? void 0 : _35.hover) === null || _36 === void 0 ? void 0 : _36.background) !== null && _140 !== void 0 ? _140 : theme.$.palette[palette].main};
|
|
117
|
+
border-color: ${(_141 = (_39 = (_38 = (_37 = theme.$.palette[palette].pagination) === null || _37 === void 0 ? void 0 : _37.outline) === null || _38 === void 0 ? void 0 : _38.hover) === null || _39 === void 0 ? void 0 : _39.border) !== null && _141 !== void 0 ? _141 : theme.$.palette[palette].main};
|
|
118
|
+
color: ${(_142 = (_42 = (_41 = (_40 = theme.$.palette[palette].pagination) === null || _40 === void 0 ? void 0 : _40.outline) === null || _41 === void 0 ? void 0 : _41.hover) === null || _42 === void 0 ? void 0 : _42.font) !== null && _142 !== void 0 ? _142 : theme.$.palette[palette].font};
|
|
119
|
+
fill: ${(_143 = (_45 = (_44 = (_43 = theme.$.palette[palette].pagination) === null || _43 === void 0 ? void 0 : _43.outline) === null || _44 === void 0 ? void 0 : _44.hover) === null || _45 === void 0 ? void 0 : _45.font) !== null && _143 !== void 0 ? _143 : theme.$.palette[palette].font};
|
|
122
120
|
}
|
|
123
121
|
`
|
|
124
|
-
|
|
125
|
-
color: ${(
|
|
126
|
-
fill: ${(
|
|
122
|
+
: `
|
|
123
|
+
color: ${(_144 = (_48 = (_47 = (_46 = theme.$.palette[palette].pagination) === null || _46 === void 0 ? void 0 : _46.outline) === null || _47 === void 0 ? void 0 : _47.disabled) === null || _48 === void 0 ? void 0 : _48.font) !== null && _144 !== void 0 ? _144 : theme.$.color.dynamic.accent};
|
|
124
|
+
fill: ${(_145 = (_51 = (_50 = (_49 = theme.$.palette[palette].pagination) === null || _49 === void 0 ? void 0 : _49.outline) === null || _50 === void 0 ? void 0 : _50.disabled) === null || _51 === void 0 ? void 0 : _51.font) !== null && _145 !== void 0 ? _145 : theme.$.color.dynamic.accent};
|
|
127
125
|
`}
|
|
128
126
|
|
|
129
127
|
`
|
|
130
|
-
|
|
131
|
-
background: ${(
|
|
132
|
-
border-color: ${(
|
|
133
|
-
color: ${(
|
|
134
|
-
fill: ${(
|
|
128
|
+
: `
|
|
129
|
+
background: ${(_146 = (_54 = (_53 = (_52 = theme.$.palette[palette].pagination) === null || _52 === void 0 ? void 0 : _52.outline) === null || _53 === void 0 ? void 0 : _53.active) === null || _54 === void 0 ? void 0 : _54.background) !== null && _146 !== void 0 ? _146 : theme.$.palette[palette].main};
|
|
130
|
+
border-color: ${(_147 = (_57 = (_56 = (_55 = theme.$.palette[palette].pagination) === null || _55 === void 0 ? void 0 : _55.outline) === null || _56 === void 0 ? void 0 : _56.active) === null || _57 === void 0 ? void 0 : _57.border) !== null && _147 !== void 0 ? _147 : theme.$.palette[palette].main};
|
|
131
|
+
color: ${(_148 = (_60 = (_59 = (_58 = theme.$.palette[palette].pagination) === null || _58 === void 0 ? void 0 : _58.outline) === null || _59 === void 0 ? void 0 : _59.active) === null || _60 === void 0 ? void 0 : _60.font) !== null && _148 !== void 0 ? _148 : theme.$.palette[palette].font};
|
|
132
|
+
fill: ${(_149 = (_63 = (_62 = (_61 = theme.$.palette[palette].pagination) === null || _61 === void 0 ? void 0 : _61.outline) === null || _62 === void 0 ? void 0 : _62.active) === null || _63 === void 0 ? void 0 : _63.font) !== null && _149 !== void 0 ? _149 : theme.$.palette[palette].font};
|
|
135
133
|
`}
|
|
136
134
|
`
|
|
137
|
-
|
|
135
|
+
: `
|
|
138
136
|
${!isActive
|
|
139
|
-
|
|
140
|
-
border-color: ${(
|
|
137
|
+
? `
|
|
138
|
+
border-color: ${(_150 = (_66 = (_65 = (_64 = theme.$.palette[palette].pagination) === null || _64 === void 0 ? void 0 : _64.soft) === null || _65 === void 0 ? void 0 : _65.outline) === null || _66 === void 0 ? void 0 : _66.border) !== null && _150 !== void 0 ? _150 : theme.$.color.dynamic.accent};
|
|
141
139
|
|
|
142
140
|
${!isDisabled
|
|
143
|
-
|
|
144
|
-
color: ${(
|
|
145
|
-
fill: ${(
|
|
141
|
+
? `
|
|
142
|
+
color: ${(_151 = (_69 = (_68 = (_67 = theme.$.palette[palette].pagination) === null || _67 === void 0 ? void 0 : _67.soft) === null || _68 === void 0 ? void 0 : _68.outline) === null || _69 === void 0 ? void 0 : _69.font) !== null && _151 !== void 0 ? _151 : theme.$.color.dynamic.font};
|
|
143
|
+
fill: ${(_152 = (_72 = (_71 = (_70 = theme.$.palette[palette].pagination) === null || _70 === void 0 ? void 0 : _70.soft) === null || _71 === void 0 ? void 0 : _71.outline) === null || _72 === void 0 ? void 0 : _72.font) !== null && _152 !== void 0 ? _152 : theme.$.color.dynamic.font};
|
|
146
144
|
|
|
147
145
|
&:hover {
|
|
148
|
-
background: ${(
|
|
149
|
-
border-color: ${(
|
|
150
|
-
color: ${(
|
|
151
|
-
fill: ${(
|
|
146
|
+
background: ${(_153 = (_76 = (_75 = (_74 = (_73 = theme.$.palette[palette].pagination) === null || _73 === void 0 ? void 0 : _73.soft) === null || _74 === void 0 ? void 0 : _74.outline) === null || _75 === void 0 ? void 0 : _75.hover) === null || _76 === void 0 ? void 0 : _76.background) !== null && _153 !== void 0 ? _153 : theme.$.palette[palette].soft};
|
|
147
|
+
border-color: ${(_154 = (_80 = (_79 = (_78 = (_77 = theme.$.palette[palette].pagination) === null || _77 === void 0 ? void 0 : _77.soft) === null || _78 === void 0 ? void 0 : _78.outline) === null || _79 === void 0 ? void 0 : _79.hover) === null || _80 === void 0 ? void 0 : _80.border) !== null && _154 !== void 0 ? _154 : theme.$.palette[palette].soft};
|
|
148
|
+
color: ${(_155 = (_84 = (_83 = (_82 = (_81 = theme.$.palette[palette].pagination) === null || _81 === void 0 ? void 0 : _81.soft) === null || _82 === void 0 ? void 0 : _82.outline) === null || _83 === void 0 ? void 0 : _83.hover) === null || _84 === void 0 ? void 0 : _84.font) !== null && _155 !== void 0 ? _155 : theme.$.palette[palette].softFont};
|
|
149
|
+
fill: ${(_156 = (_88 = (_87 = (_86 = (_85 = theme.$.palette[palette].pagination) === null || _85 === void 0 ? void 0 : _85.soft) === null || _86 === void 0 ? void 0 : _86.outline) === null || _87 === void 0 ? void 0 : _87.hover) === null || _88 === void 0 ? void 0 : _88.font) !== null && _156 !== void 0 ? _156 : theme.$.palette[palette].softFont};
|
|
152
150
|
}
|
|
153
151
|
`
|
|
154
|
-
|
|
155
|
-
color: ${(
|
|
156
|
-
fill: ${(
|
|
152
|
+
: `
|
|
153
|
+
color: ${(_157 = (_92 = (_91 = (_90 = (_89 = theme.$.palette[palette].pagination) === null || _89 === void 0 ? void 0 : _89.soft) === null || _90 === void 0 ? void 0 : _90.outline) === null || _91 === void 0 ? void 0 : _91.disabled) === null || _92 === void 0 ? void 0 : _92.font) !== null && _157 !== void 0 ? _157 : theme.$.color.dynamic.accent};
|
|
154
|
+
fill: ${(_158 = (_96 = (_95 = (_94 = (_93 = theme.$.palette[palette].pagination) === null || _93 === void 0 ? void 0 : _93.soft) === null || _94 === void 0 ? void 0 : _94.outline) === null || _95 === void 0 ? void 0 : _95.disabled) === null || _96 === void 0 ? void 0 : _96.font) !== null && _158 !== void 0 ? _158 : theme.$.color.dynamic.accent};
|
|
157
155
|
`}
|
|
158
156
|
`
|
|
159
|
-
|
|
157
|
+
: `
|
|
160
158
|
|
|
161
|
-
background: ${(
|
|
162
|
-
border-color: ${(
|
|
163
|
-
color: ${(
|
|
164
|
-
fill: ${(_162 = (
|
|
159
|
+
background: ${(_159 = (_100 = (_99 = (_98 = (_97 = theme.$.palette[palette].pagination) === null || _97 === void 0 ? void 0 : _97.soft) === null || _98 === void 0 ? void 0 : _98.outline) === null || _99 === void 0 ? void 0 : _99.active) === null || _100 === void 0 ? void 0 : _100.background) !== null && _159 !== void 0 ? _159 : theme.$.palette[palette].soft};
|
|
160
|
+
border-color: ${(_160 = (_104 = (_103 = (_102 = (_101 = theme.$.palette[palette].pagination) === null || _101 === void 0 ? void 0 : _101.soft) === null || _102 === void 0 ? void 0 : _102.outline) === null || _103 === void 0 ? void 0 : _103.active) === null || _104 === void 0 ? void 0 : _104.border) !== null && _160 !== void 0 ? _160 : theme.$.palette[palette].soft};
|
|
161
|
+
color: ${(_161 = (_108 = (_107 = (_106 = (_105 = theme.$.palette[palette].pagination) === null || _105 === void 0 ? void 0 : _105.soft) === null || _106 === void 0 ? void 0 : _106.outline) === null || _107 === void 0 ? void 0 : _107.active) === null || _108 === void 0 ? void 0 : _108.font) !== null && _161 !== void 0 ? _161 : theme.$.palette[palette].softFont};
|
|
162
|
+
fill: ${(_162 = (_112 = (_111 = (_110 = (_109 = theme.$.palette[palette].pagination) === null || _109 === void 0 ? void 0 : _109.soft) === null || _110 === void 0 ? void 0 : _110.outline) === null || _111 === void 0 ? void 0 : _111.active) === null || _112 === void 0 ? void 0 : _112.font) !== null && _162 !== void 0 ? _162 : theme.$.palette[palette].softFont};
|
|
165
163
|
`}
|
|
166
164
|
`}
|
|
167
165
|
`}
|
|
168
166
|
}
|
|
169
|
-
`;
|
|
170
|
-
});
|
|
167
|
+
`; });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const test_1 = require("@smart-react-components/core/test");
|
|
7
|
+
const react_1 = require("@testing-library/react");
|
|
8
|
+
const react_2 = __importDefault(require("react"));
|
|
9
|
+
const PaginationItemElement_1 = __importDefault(require("./PaginationItemElement"));
|
|
10
|
+
describe('<PaginationItemElement />', () => {
|
|
11
|
+
let props;
|
|
12
|
+
beforeAll(() => {
|
|
13
|
+
props = {
|
|
14
|
+
isActive: false,
|
|
15
|
+
isDisabled: false,
|
|
16
|
+
isFixedSize: false,
|
|
17
|
+
isOutline: false,
|
|
18
|
+
isSoft: false,
|
|
19
|
+
palette: 'primary',
|
|
20
|
+
shape: 'rectangle',
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
it('should render component', () => {
|
|
24
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationItemElement_1.default, { ...props })));
|
|
25
|
+
expect(asFragment()).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it('should render component with soft colors', () => {
|
|
28
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationItemElement_1.default, { ...props, isSoft: true })));
|
|
29
|
+
expect(asFragment()).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
it('should render component outline', () => {
|
|
32
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationItemElement_1.default, { ...props, isOutline: true })));
|
|
33
|
+
expect(asFragment()).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
it('should render component outline with soft colors', () => {
|
|
36
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationItemElement_1.default, { ...props, isSoft: true, isOutline: true })));
|
|
37
|
+
expect(asFragment()).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
it('should be active', () => {
|
|
40
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationItemElement_1.default, { ...props, isActive: true })));
|
|
41
|
+
expect(asFragment()).toMatchSnapshot();
|
|
42
|
+
});
|
|
43
|
+
it('should be disabled', () => {
|
|
44
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationItemElement_1.default, { ...props, isDisabled: true })));
|
|
45
|
+
expect(asFragment()).toMatchSnapshot();
|
|
46
|
+
});
|
|
47
|
+
it('should be circle', () => {
|
|
48
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationItemElement_1.default, { ...props, isFixedSize: true, shape: "rounded" })));
|
|
49
|
+
expect(asFragment()).toMatchSnapshot();
|
|
50
|
+
});
|
|
51
|
+
});
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import { StyledProps } from '@smart-react-components/core/styled-props';
|
|
2
|
-
declare const _default: import("styled-components").
|
|
2
|
+
declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
4
|
+
}, StyledProps>, "as" | "forwardedAs"> & {
|
|
5
|
+
as?: import("styled-components").WebTarget;
|
|
6
|
+
forwardedAs?: import("styled-components").WebTarget;
|
|
7
|
+
}, "style"> & {
|
|
8
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
9
|
+
[key: `--${string}`]: string | number;
|
|
10
|
+
});
|
|
11
|
+
}, StyledProps>> & string;
|
|
3
12
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const test_1 = require("@smart-react-components/core/test");
|
|
7
|
+
const react_1 = require("@testing-library/react");
|
|
8
|
+
const react_2 = __importDefault(require("react"));
|
|
9
|
+
const PaginationListElement_1 = __importDefault(require("./PaginationListElement"));
|
|
10
|
+
describe('<PaginationListElement />', () => {
|
|
11
|
+
it('should render component', () => {
|
|
12
|
+
const { asFragment } = (0, react_1.render)((0, test_1.wrapTheme)(react_2.default.createElement(PaginationListElement_1.default, null)));
|
|
13
|
+
expect(asFragment()).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: import("styled-components").
|
|
3
|
-
|
|
4
|
-
}, "children"
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<React.SVGProps<SVGSVGElement>, "style"> & {
|
|
3
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
4
|
+
}, "children"> & Partial<Pick<Omit<React.SVGProps<SVGSVGElement>, "style"> & {
|
|
5
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
6
|
+
}, "children">>> & string;
|
|
5
7
|
export default _default;
|