@lunit/oui 1.0.0-alpha.8 → 1.0.1-alpha.1
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/dist/assets/ic-bell-noti-outlined-20px.js +4 -0
- package/dist/assets/ic-close-large-outlined-20px.js +4 -0
- package/dist/assets/ic-close-small-outlined-20px.js +4 -0
- package/dist/assets/ic-download-pdf-outlined-20px.js +4 -0
- package/dist/assets/ic-ellipse-outlined-20px.js +4 -0
- package/dist/assets/ic-filter-noti-outlined-20px.js +4 -0
- package/dist/assets/ic-hide-large-outlined-20px.js +4 -0
- package/dist/assets/ic-hide-small-outlined-20px.js +4 -0
- package/dist/assets/ic-information-large-outlined-20px.js +4 -0
- package/dist/assets/ic-information-small-outlined-20px.js +4 -0
- package/dist/assets/ic-manufacturer-outlined-20px.js +4 -0
- package/dist/assets/ic-rectangle-outlined-20px.js +4 -0
- package/dist/assets/ic-refresh-left-outlined-20px.js +4 -0
- package/dist/assets/ic-refresh-right-outlined-20px.js +4 -0
- package/dist/assets/ic-show-large-outlined-20px.js +4 -0
- package/dist/assets/ic-show-small-outlined-20px.js +4 -0
- package/dist/assets/index.js +17 -0
- package/dist/components/Alert/Alert.js +15 -0
- package/dist/components/Alert/Alert.styled.js +42 -0
- package/dist/components/Alert/Alert.types.js +2 -0
- package/dist/components/Alert/Alert.utils.js +40 -0
- package/dist/components/Alert/index.js +3 -0
- package/dist/components/BaseTextField/BaseTextField.styled.js +97 -0
- package/dist/components/BaseTextField/BaseTextField.types.js +3 -0
- package/dist/components/BaseTextField/BaseTextField.utils.js +10 -0
- package/dist/components/Button/BaseButton.js +15 -0
- package/dist/components/Button/Button.js +43 -0
- package/dist/components/Button/Button.types.js +2 -0
- package/dist/components/Button/Button.utils.js +11 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/Button/styleds/BaseButton.styled.js +52 -0
- package/dist/components/Button/styleds/ContainedButton.styled.js +112 -0
- package/dist/components/Button/styleds/GhostButton.styled.js +128 -0
- package/dist/components/Button/styleds/IconButton.styled.js +23 -0
- package/dist/components/Button/styleds/OutlinedButton.styled.js +136 -0
- package/dist/components/Card/Card.js +7 -0
- package/dist/components/Card/Card.styled.js +14 -0
- package/dist/components/Card/Card.types.js +2 -0
- package/dist/components/Card/index.js +3 -0
- package/dist/components/Checkbox/Checkbox.js +11 -0
- package/dist/components/Checkbox/Checkbox.styled.js +25 -0
- package/dist/components/Checkbox/Checkbox.types.js +2 -0
- package/dist/components/Checkbox/Checkbox.utils.js +22 -0
- package/dist/components/Checkbox/index.js +3 -0
- package/dist/components/Chip/Chip.js +26 -0
- package/dist/components/Chip/Chip.styled.js +106 -0
- package/dist/components/Chip/Chip.types.js +2 -0
- package/dist/components/Chip/Chip.utils.js +49 -0
- package/dist/components/Chip/index.js +3 -0
- package/dist/components/DataTable/DataTable.js +12 -0
- package/dist/components/DataTable/DataTable.styled.js +65 -0
- package/dist/components/DataTable/index.js +2 -0
- package/dist/components/DatePicker/DatePicker.js +162 -0
- package/dist/components/DatePicker/DatePicker.styled.js +17 -0
- package/dist/components/DatePicker/DatePicker.types.js +2 -0
- package/dist/components/DatePicker/index.js +3 -0
- package/dist/components/Dialog/Dialog.js +21 -0
- package/dist/components/Dialog/Dialog.styled.js +60 -0
- package/dist/components/Dialog/Dialog.types.js +2 -0
- package/dist/components/Dialog/index.js +3 -0
- package/dist/components/Divider/Divider.js +7 -0
- package/dist/components/Divider/Divider.styled.js +22 -0
- package/dist/components/Divider/Divider.types.js +2 -0
- package/dist/components/Divider/index.js +3 -0
- package/dist/components/Dropdown/Dropdown.js +55 -0
- package/dist/components/Dropdown/Dropdown.styled.js +103 -0
- package/dist/components/Dropdown/Dropdown.types.js +2 -0
- package/dist/components/Dropdown/Dropdown.utils.js +12 -0
- package/dist/components/Dropdown/DropdownItem.js +9 -0
- package/dist/components/Dropdown/DropdownItem.styled.js +57 -0
- package/dist/components/Dropdown/DropdownItem.types.js +2 -0
- package/dist/components/Dropdown/DropdownItem.utils.js +10 -0
- package/dist/components/Dropdown/DropdownSubtitle.js +7 -0
- package/dist/components/Dropdown/DropdownSubtitle.styled.js +12 -0
- package/dist/components/Dropdown/DropdownSubtitle.types.js +2 -0
- package/dist/components/Dropdown/IconDropdown.js +35 -0
- package/dist/components/Dropdown/IconDropdown.styled.js +72 -0
- package/dist/components/Dropdown/IconDropdown.types.js +2 -0
- package/dist/components/Dropdown/index.js +6 -0
- package/dist/components/FileDnDZone/FileDnDZone.js +13 -0
- package/dist/components/FileDnDZone/FileDnDZone.styled.js +39 -0
- package/dist/components/FileDnDZone/FileDnDZone.types.js +2 -0
- package/dist/components/FileDnDZone/FileDnDZone.utils.js +3 -0
- package/dist/components/FileDnDZone/index.js +3 -0
- package/dist/components/List/List.js +23 -0
- package/dist/components/List/List.styled.js +29 -0
- package/dist/components/List/List.types.js +2 -0
- package/dist/components/List/List.utils.js +12 -0
- package/dist/components/List/ListItem.js +25 -0
- package/dist/components/List/ListItem.styled.js +45 -0
- package/dist/components/List/ListItem.types.js +2 -0
- package/dist/components/List/ListItemCaption.js +10 -0
- package/dist/components/List/ListItemCaption.styled.js +7 -0
- package/dist/components/List/ListItemCaption.types.js +2 -0
- package/dist/components/List/index.js +4 -0
- package/dist/components/LoadingIndicator/LoadingIndicator.js +11 -0
- package/dist/components/LoadingIndicator/LoadingIndicator.styled.js +37 -0
- package/dist/components/LoadingIndicator/LoadingIndicator.types.js +2 -0
- package/dist/components/LoadingIndicator/assets/DnaLoadingAnimation.json +769 -0
- package/dist/components/LoadingIndicator/assets/DotLoadingAnimation.json +426 -0
- package/dist/components/LoadingIndicator/index.js +3 -0
- package/dist/components/Menu/Menu.js +13 -0
- package/dist/components/Menu/Menu.styled.js +31 -0
- package/dist/components/Menu/Menu.types.js +2 -0
- package/dist/components/Menu/MenuItem.js +20 -0
- package/dist/components/Menu/MenuItem.styled.js +48 -0
- package/dist/components/Menu/MenuItem.types.js +2 -0
- package/dist/components/Menu/index.js +3 -0
- package/dist/components/MuiCssBaseline.js +67 -0
- package/dist/components/MuiInputBase.js +24 -0
- package/dist/components/MuiOutlinedInput.js +56 -0
- package/dist/components/MuiTextField.js +16 -0
- package/dist/components/Pagination/Pagination.js +65 -0
- package/dist/components/Pagination/Pagination.styled.js +64 -0
- package/dist/components/Pagination/Pagination.types.js +2 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/ProductLabel/ProductLabel.js +16 -0
- package/dist/components/ProductLabel/ProductLabel.styled.js +53 -0
- package/dist/components/ProductLabel/ProductLabel.types.js +2 -0
- package/dist/components/ProductLabel/index.js +3 -0
- package/dist/components/Progress/CircularProgress.js +7 -0
- package/dist/components/Progress/CircularProgress.styled.js +8 -0
- package/dist/components/Progress/CircularProgress.types.js +2 -0
- package/dist/components/Progress/LinearProgress.js +7 -0
- package/dist/components/Progress/LinearProgress.styled.js +13 -0
- package/dist/components/Progress/LinearProgress.types.js +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Radio/Radio.js +10 -0
- package/dist/components/Radio/Radio.styled.js +32 -0
- package/dist/components/Radio/Radio.types.js +2 -0
- package/dist/components/Radio/RadioGroup.js +8 -0
- package/dist/components/Radio/RadioGroup.styled.js +6 -0
- package/dist/components/Radio/RadioGroup.types.js +2 -0
- package/dist/components/Radio/index.js +4 -0
- package/dist/components/Stepper/Stepper.js +7 -0
- package/dist/components/Stepper/Stepper.styled.js +33 -0
- package/dist/components/Stepper/Stepper.types.js +2 -0
- package/dist/components/Stepper/index.js +3 -0
- package/dist/components/TabbedPanel/TabbedPanel.js +18 -0
- package/dist/components/TabbedPanel/TabbedPanel.styled.js +116 -0
- package/dist/components/TabbedPanel/TabbedPanel.types.js +2 -0
- package/dist/components/TabbedPanel/TabbedPanel.utils.js +18 -0
- package/dist/components/TabbedPanel/index.js +3 -0
- package/dist/components/TextField/TextArea.js +10 -0
- package/dist/components/TextField/TextArea.styled.js +31 -0
- package/dist/components/TextField/TextArea.types.js +3 -0
- package/dist/components/TextField/TextInput.js +13 -0
- package/dist/components/TextField/TextInput.styled.js +103 -0
- package/dist/components/TextField/TextInput.types.js +2 -0
- package/dist/components/TextField/TextInput.utils.js +6 -0
- package/dist/components/TextField/components/Buttons.js +11 -0
- package/dist/components/TextField/components/NormalTextInput.js +39 -0
- package/dist/components/TextField/components/PasswordInput.js +22 -0
- package/dist/components/TextField/index.js +4 -0
- package/dist/components/Tooltip/Tooltip.js +21 -0
- package/dist/components/Tooltip/Tooltip.styled.js +24 -0
- package/dist/components/Tooltip/Tooltip.types.js +2 -0
- package/dist/components/Tooltip/Tooltip.utils.js +30 -0
- package/dist/components/Tooltip/index.js +3 -0
- package/dist/components/UploadManager/UploadManager.js +85 -0
- package/dist/components/UploadManager/UploadManager.styled.js +38 -0
- package/dist/components/UploadManager/UploadManager.types.js +2 -0
- package/dist/components/UploadManager/index.js +3 -0
- package/dist/components/index.js +24 -0
- package/dist/foundations/index.js +5 -0
- package/dist/foundations/palette.js +213 -0
- package/dist/foundations/spacing.js +3 -0
- package/dist/foundations/styles.js +7 -0
- package/dist/foundations/typography.js +288 -0
- package/dist/icons/BellNoti/index.js +14 -0
- package/dist/icons/CloseLarge/index.js +14 -0
- package/dist/icons/CloseSmall/index.js +14 -0
- package/dist/icons/DownloadPdf/index.js +14 -0
- package/dist/icons/Ellipse/index.js +14 -0
- package/dist/icons/FilterNoti/index.js +14 -0
- package/dist/icons/HideLarge/index.js +14 -0
- package/dist/icons/HideSmall/index.js +14 -0
- package/dist/icons/InformationLarge/index.js +14 -0
- package/dist/icons/InformationSmall/index.js +14 -0
- package/dist/icons/Manufacturer/index.js +14 -0
- package/dist/icons/Rectangle/index.js +14 -0
- package/dist/icons/RefreshLeft/index.js +14 -0
- package/dist/icons/RefreshRight/index.js +14 -0
- package/dist/icons/ShowLarge/index.js +14 -0
- package/dist/icons/ShowSmall/index.js +14 -0
- package/dist/icons/index.js +180 -0
- package/dist/index.js +4 -0
- package/dist/reportWebVitals.js +13 -0
- package/dist/setupTests.js +6 -0
- package/dist/systems/drawer.js +6 -0
- package/dist/systems/index.js +7 -0
- package/dist/theme.js +21 -0
- package/dist/types/assets/ic-bell-noti-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-close-large-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-close-small-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-download-pdf-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-ellipse-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-filter-noti-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-hide-large-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-hide-small-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-information-large-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-information-small-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-manufacturer-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-rectangle-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-refresh-left-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-refresh-right-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-show-large-outlined-20px.d.ts +3 -0
- package/dist/types/assets/ic-show-small-outlined-20px.d.ts +3 -0
- package/dist/types/assets/index.d.ts +16 -0
- package/dist/types/components/Alert/Alert.d.ts +4 -0
- package/dist/types/components/Alert/Alert.styled.d.ts +3 -0
- package/dist/types/components/Alert/Alert.types.d.ts +4 -0
- package/dist/types/components/Alert/Alert.utils.d.ts +4 -0
- package/dist/types/components/Alert/index.d.ts +4 -0
- package/dist/types/components/BaseTextField/BaseTextField.styled.d.ts +61 -0
- package/dist/types/components/BaseTextField/BaseTextField.types.d.ts +17 -0
- package/dist/types/components/BaseTextField/BaseTextField.utils.d.ts +2 -0
- package/dist/types/components/Button/BaseButton.d.ts +3 -0
- package/dist/types/components/Button/Button.d.ts +3 -0
- package/dist/types/components/Button/Button.types.d.ts +24 -0
- package/dist/types/components/Button/Button.utils.d.ts +8 -0
- package/dist/types/components/Button/index.d.ts +5 -0
- package/dist/types/components/Button/styleds/BaseButton.styled.d.ts +859 -0
- package/dist/types/components/Button/styleds/ContainedButton.styled.d.ts +894 -0
- package/dist/types/components/Button/styleds/GhostButton.styled.d.ts +888 -0
- package/dist/types/components/Button/styleds/IconButton.styled.d.ts +21 -0
- package/dist/types/components/Button/styleds/OutlinedButton.styled.d.ts +895 -0
- package/dist/types/components/Card/Card.d.ts +3 -0
- package/dist/types/components/Card/Card.styled.d.ts +3 -0
- package/dist/types/components/Card/Card.types.d.ts +8 -0
- package/dist/types/components/Card/index.d.ts +4 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/types/components/Checkbox/Checkbox.styled.d.ts +10 -0
- package/dist/types/components/Checkbox/Checkbox.types.d.ts +15 -0
- package/dist/types/components/Checkbox/Checkbox.utils.d.ts +3 -0
- package/dist/types/components/Checkbox/index.d.ts +4 -0
- package/dist/types/components/Chip/Chip.d.ts +3 -0
- package/dist/types/components/Chip/Chip.styled.d.ts +6 -0
- package/dist/types/components/Chip/Chip.types.d.ts +6 -0
- package/dist/types/components/Chip/Chip.utils.d.ts +2 -0
- package/dist/types/components/Chip/index.d.ts +3 -0
- package/dist/types/components/DataTable/DataTable.d.ts +3 -0
- package/dist/types/components/DataTable/DataTable.styled.d.ts +3 -0
- package/dist/types/components/DataTable/index.d.ts +1 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +3 -0
- package/dist/types/components/DatePicker/DatePicker.styled.d.ts +3 -0
- package/dist/types/components/DatePicker/DatePicker.types.d.ts +6 -0
- package/dist/types/components/DatePicker/index.d.ts +3 -0
- package/dist/types/components/Dialog/Dialog.d.ts +3 -0
- package/dist/types/components/Dialog/Dialog.styled.d.ts +24 -0
- package/dist/types/components/Dialog/Dialog.types.d.ts +19 -0
- package/dist/types/components/Dialog/index.d.ts +4 -0
- package/dist/types/components/Divider/Divider.d.ts +3 -0
- package/dist/types/components/Divider/Divider.styled.d.ts +6 -0
- package/dist/types/components/Divider/Divider.types.d.ts +5 -0
- package/dist/types/components/Divider/index.d.ts +4 -0
- package/dist/types/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/types/components/Dropdown/Dropdown.styled.d.ts +12 -0
- package/dist/types/components/Dropdown/Dropdown.types.d.ts +20 -0
- package/dist/types/components/Dropdown/Dropdown.utils.d.ts +3 -0
- package/dist/types/components/Dropdown/DropdownItem.d.ts +3 -0
- package/dist/types/components/Dropdown/DropdownItem.styled.d.ts +10 -0
- package/dist/types/components/Dropdown/DropdownItem.types.d.ts +12 -0
- package/dist/types/components/Dropdown/DropdownItem.utils.d.ts +3 -0
- package/dist/types/components/Dropdown/DropdownSubtitle.d.ts +3 -0
- package/dist/types/components/Dropdown/DropdownSubtitle.styled.d.ts +5 -0
- package/dist/types/components/Dropdown/DropdownSubtitle.types.d.ts +5 -0
- package/dist/types/components/Dropdown/IconDropdown.d.ts +3 -0
- package/dist/types/components/Dropdown/IconDropdown.styled.d.ts +6 -0
- package/dist/types/components/Dropdown/IconDropdown.types.d.ts +19 -0
- package/dist/types/components/Dropdown/index.d.ts +9 -0
- package/dist/types/components/FileDnDZone/FileDnDZone.d.ts +3 -0
- package/dist/types/components/FileDnDZone/FileDnDZone.styled.d.ts +14 -0
- package/dist/types/components/FileDnDZone/FileDnDZone.types.d.ts +12 -0
- package/dist/types/components/FileDnDZone/FileDnDZone.utils.d.ts +2 -0
- package/dist/types/components/FileDnDZone/index.d.ts +4 -0
- package/dist/types/components/List/List.d.ts +5 -0
- package/dist/types/components/List/List.styled.d.ts +8 -0
- package/dist/types/components/List/List.types.d.ts +19 -0
- package/dist/types/components/List/List.utils.d.ts +3 -0
- package/dist/types/components/List/ListItem.d.ts +3 -0
- package/dist/types/components/List/ListItem.styled.d.ts +35 -0
- package/dist/types/components/List/ListItem.types.d.ts +23 -0
- package/dist/types/components/List/ListItemCaption.d.ts +4 -0
- package/dist/types/components/List/ListItemCaption.styled.d.ts +4 -0
- package/dist/types/components/List/ListItemCaption.types.d.ts +1 -0
- package/dist/types/components/List/index.d.ts +6 -0
- package/dist/types/components/LoadingIndicator/LoadingIndicator.d.ts +3 -0
- package/dist/types/components/LoadingIndicator/LoadingIndicator.styled.d.ts +13 -0
- package/dist/types/components/LoadingIndicator/LoadingIndicator.types.d.ts +6 -0
- package/dist/types/components/LoadingIndicator/index.d.ts +4 -0
- package/dist/types/components/Menu/Menu.d.ts +5 -0
- package/dist/types/components/Menu/Menu.styled.d.ts +6 -0
- package/dist/types/components/Menu/Menu.types.d.ts +15 -0
- package/dist/types/components/Menu/MenuItem.d.ts +3 -0
- package/dist/types/components/Menu/MenuItem.styled.d.ts +9 -0
- package/dist/types/components/Menu/MenuItem.types.d.ts +13 -0
- package/dist/types/components/Menu/index.d.ts +4 -0
- package/dist/types/components/MuiCssBaseline.d.ts +4 -0
- package/dist/types/components/MuiInputBase.d.ts +4 -0
- package/dist/types/components/MuiOutlinedInput.d.ts +4 -0
- package/dist/types/components/MuiTextField.d.ts +5 -0
- package/dist/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/types/components/Pagination/Pagination.styled.d.ts +24 -0
- package/dist/types/components/Pagination/Pagination.types.d.ts +35 -0
- package/dist/types/components/Pagination/index.d.ts +2 -0
- package/dist/types/components/ProductLabel/ProductLabel.d.ts +3 -0
- package/dist/types/components/ProductLabel/ProductLabel.styled.d.ts +22 -0
- package/dist/types/components/ProductLabel/ProductLabel.types.d.ts +10 -0
- package/dist/types/components/ProductLabel/index.d.ts +4 -0
- package/dist/types/components/Progress/CircularProgress.d.ts +3 -0
- package/dist/types/components/Progress/CircularProgress.styled.d.ts +3 -0
- package/dist/types/components/Progress/CircularProgress.types.d.ts +5 -0
- package/dist/types/components/Progress/LinearProgress.d.ts +3 -0
- package/dist/types/components/Progress/LinearProgress.styled.d.ts +3 -0
- package/dist/types/components/Progress/LinearProgress.types.d.ts +6 -0
- package/dist/types/components/Progress/index.d.ts +3 -0
- package/dist/types/components/Radio/Radio.d.ts +4 -0
- package/dist/types/components/Radio/Radio.styled.d.ts +7 -0
- package/dist/types/components/Radio/Radio.types.d.ts +14 -0
- package/dist/types/components/Radio/RadioGroup.d.ts +4 -0
- package/dist/types/components/Radio/RadioGroup.styled.d.ts +1 -0
- package/dist/types/components/Radio/RadioGroup.types.d.ts +9 -0
- package/dist/types/components/Radio/index.d.ts +5 -0
- package/dist/types/components/Stepper/Stepper.d.ts +3 -0
- package/dist/types/components/Stepper/Stepper.styled.d.ts +12 -0
- package/dist/types/components/Stepper/Stepper.types.d.ts +11 -0
- package/dist/types/components/Stepper/index.d.ts +4 -0
- package/dist/types/components/TabbedPanel/TabbedPanel.d.ts +3 -0
- package/dist/types/components/TabbedPanel/TabbedPanel.styled.d.ts +11 -0
- package/dist/types/components/TabbedPanel/TabbedPanel.types.d.ts +31 -0
- package/dist/types/components/TabbedPanel/TabbedPanel.utils.d.ts +13 -0
- package/dist/types/components/TabbedPanel/index.d.ts +4 -0
- package/dist/types/components/TextField/TextArea.d.ts +4 -0
- package/dist/types/components/TextField/TextArea.styled.d.ts +5 -0
- package/dist/types/components/TextField/TextArea.types.d.ts +19 -0
- package/dist/types/components/TextField/TextInput.d.ts +4 -0
- package/dist/types/components/TextField/TextInput.styled.d.ts +11 -0
- package/dist/types/components/TextField/TextInput.types.d.ts +26 -0
- package/dist/types/components/TextField/TextInput.utils.d.ts +3 -0
- package/dist/types/components/TextField/components/Buttons.d.ts +8 -0
- package/dist/types/components/TextField/components/NormalTextInput.d.ts +4 -0
- package/dist/types/components/TextField/components/PasswordInput.d.ts +4 -0
- package/dist/types/components/TextField/index.d.ts +6 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/types/components/Tooltip/Tooltip.styled.d.ts +3 -0
- package/dist/types/components/Tooltip/Tooltip.types.d.ts +16 -0
- package/dist/types/components/Tooltip/Tooltip.utils.d.ts +4 -0
- package/dist/types/components/Tooltip/index.d.ts +4 -0
- package/dist/types/components/UploadManager/UploadManager.d.ts +6 -0
- package/dist/types/components/UploadManager/UploadManager.styled.d.ts +13 -0
- package/dist/types/components/UploadManager/UploadManager.types.d.ts +14 -0
- package/dist/types/components/UploadManager/index.d.ts +4 -0
- package/dist/types/components/index.d.ts +23 -0
- package/dist/types/foundations/index.d.ts +4 -0
- package/dist/types/foundations/palette.d.ts +79 -0
- package/dist/types/foundations/spacing.d.ts +3 -0
- package/dist/types/foundations/styles.d.ts +2 -0
- package/dist/types/foundations/typography.d.ts +152 -0
- package/dist/types/icons/BellNoti/index.d.ts +12 -0
- package/dist/types/icons/CloseLarge/index.d.ts +12 -0
- package/dist/types/icons/CloseSmall/index.d.ts +12 -0
- package/dist/types/icons/DownloadPdf/index.d.ts +12 -0
- package/dist/types/icons/Ellipse/index.d.ts +12 -0
- package/dist/types/icons/FilterNoti/index.d.ts +12 -0
- package/dist/types/icons/HideLarge/index.d.ts +12 -0
- package/dist/types/icons/HideSmall/index.d.ts +12 -0
- package/dist/types/icons/InformationLarge/index.d.ts +12 -0
- package/dist/types/icons/InformationSmall/index.d.ts +12 -0
- package/dist/types/icons/Manufacturer/index.d.ts +12 -0
- package/dist/types/icons/Rectangle/index.d.ts +12 -0
- package/dist/types/icons/RefreshLeft/index.d.ts +12 -0
- package/dist/types/icons/RefreshRight/index.d.ts +12 -0
- package/dist/types/icons/ShowLarge/index.d.ts +12 -0
- package/dist/types/icons/ShowSmall/index.d.ts +12 -0
- package/dist/types/icons/index.d.ts +179 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/reportWebVitals.d.ts +3 -0
- package/dist/types/setupTests.d.ts +1 -0
- package/dist/types/systems/drawer.d.ts +22 -0
- package/dist/types/systems/index.d.ts +6 -0
- package/dist/types/theme.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/Alert/Alert.tsx +1 -1
- package/src/components/Alert/Alert.utils.tsx +1 -1
- package/src/components/Chip/Chip.tsx +1 -1
- package/src/components/Chip/Chip.utils.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +1 -1
- package/src/components/Dialog/Dialog.tsx +1 -1
- package/src/components/Dropdown/Dropdown.tsx +1 -1
- package/src/components/Dropdown/DropdownItem.tsx +1 -1
- package/src/components/Dropdown/IconDropdown.tsx +1 -1
- package/src/components/List/List.tsx +1 -1
- package/src/components/List/ListItem.styled.tsx +1 -1
- package/src/components/Pagination/Pagination.styled.tsx +71 -0
- package/src/components/Pagination/Pagination.tsx +182 -0
- package/src/components/Pagination/Pagination.types.ts +39 -0
- package/src/components/Pagination/index.ts +2 -0
- package/src/components/ProductLabel/ProductLabel.tsx +1 -1
- package/src/components/TextField/components/Buttons.tsx +1 -1
- package/src/components/UploadManager/UploadManager.tsx +1 -1
- package/src/components/index.ts +1 -1
- package/src/foundations/index.ts +1 -0
- package/src/foundations/palette.ts +12 -1
- package/src/foundations/styles.ts +9 -0
- package/src/icons/BellNoti/index.tsx +28 -0
- package/src/icons/CloseLarge/index.tsx +28 -0
- package/src/icons/CloseSmall/index.tsx +28 -0
- package/src/icons/DownloadPdf/index.tsx +28 -0
- package/src/icons/Ellipse/index.tsx +28 -0
- package/src/icons/FilterNoti/index.tsx +28 -0
- package/src/icons/HideLarge/index.tsx +28 -0
- package/src/icons/HideSmall/index.tsx +28 -0
- package/src/icons/InformationLarge/index.tsx +28 -0
- package/src/icons/InformationSmall/index.tsx +28 -0
- package/src/icons/Manufacturer/index.tsx +28 -0
- package/src/icons/Rectangle/index.tsx +28 -0
- package/src/icons/RefreshLeft/index.tsx +28 -0
- package/src/icons/RefreshRight/index.tsx +28 -0
- package/src/icons/ShowLarge/index.tsx +28 -0
- package/src/icons/ShowSmall/index.tsx +28 -0
- package/src/components/Icons/BellNoti/index.tsx +0 -22
- package/src/components/Icons/CloseLarge/index.tsx +0 -22
- package/src/components/Icons/CloseSmall/index.tsx +0 -22
- package/src/components/Icons/DownloadPdf/index.tsx +0 -22
- package/src/components/Icons/Ellipse/index.tsx +0 -22
- package/src/components/Icons/FilterNoti/index.tsx +0 -22
- package/src/components/Icons/HideLarge/index.tsx +0 -22
- package/src/components/Icons/HideSmall/index.tsx +0 -22
- package/src/components/Icons/InformationLarge/index.tsx +0 -22
- package/src/components/Icons/InformationSmall/index.tsx +0 -22
- package/src/components/Icons/Manufacturer/index.tsx +0 -22
- package/src/components/Icons/Rectangle/index.tsx +0 -22
- package/src/components/Icons/RefreshLeft/index.tsx +0 -22
- package/src/components/Icons/RefreshRight/index.tsx +0 -22
- package/src/components/Icons/ShowLarge/index.tsx +0 -22
- package/src/components/Icons/ShowSmall/index.tsx +0 -22
- /package/src/{components/Icons → icons}/index.ts +0 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export { default as BellNoti } from './BellNoti';
|
|
2
|
+
export { default as CloseLarge } from './CloseLarge';
|
|
3
|
+
export { default as CloseSmall } from './CloseSmall';
|
|
4
|
+
export { default as DownloadPdf } from './DownloadPdf';
|
|
5
|
+
export { default as Ellipse } from './Ellipse';
|
|
6
|
+
export { default as FilterNoti } from './FilterNoti';
|
|
7
|
+
export { default as HideLarge } from './HideLarge';
|
|
8
|
+
export { default as HideSmall } from './HideSmall';
|
|
9
|
+
export { default as InformationLarge } from './InformationLarge';
|
|
10
|
+
export { default as InformationSmall } from './InformationSmall';
|
|
11
|
+
export { default as Manufacturer } from './Manufacturer';
|
|
12
|
+
export { default as Rectangle } from './Rectangle';
|
|
13
|
+
export { default as RefreshLeft } from './RefreshLeft';
|
|
14
|
+
export { default as RefreshRight } from './RefreshRight';
|
|
15
|
+
export { default as ShowLarge } from './ShowLarge';
|
|
16
|
+
export { default as ShowSmall } from './ShowSmall';
|
|
17
|
+
export { Analyze } from '@lunit/design-system-icons';
|
|
18
|
+
export { Annotation } from '@lunit/design-system-icons';
|
|
19
|
+
export { Apps } from '@lunit/design-system-icons';
|
|
20
|
+
export { ArrowDoubleDown } from '@lunit/design-system-icons';
|
|
21
|
+
export { ArrowDoubleLeft } from '@lunit/design-system-icons';
|
|
22
|
+
export { ArrowDoubleRight } from '@lunit/design-system-icons';
|
|
23
|
+
export { ArrowDoubleUp } from '@lunit/design-system-icons';
|
|
24
|
+
export { ArrowDown } from '@lunit/design-system-icons';
|
|
25
|
+
export { ArrowDownSm } from '@lunit/design-system-icons';
|
|
26
|
+
export { ArrowDownXs } from '@lunit/design-system-icons';
|
|
27
|
+
export { ArrowDownward } from '@lunit/design-system-icons';
|
|
28
|
+
export { ArrowExpand } from '@lunit/design-system-icons';
|
|
29
|
+
export { ArrowLeft } from '@lunit/design-system-icons';
|
|
30
|
+
export { ArrowMore } from '@lunit/design-system-icons';
|
|
31
|
+
export { ArrowRight } from '@lunit/design-system-icons';
|
|
32
|
+
export { ArrowUp } from '@lunit/design-system-icons';
|
|
33
|
+
export { ArrowUpSm } from '@lunit/design-system-icons';
|
|
34
|
+
export { ArrowUpXs } from '@lunit/design-system-icons';
|
|
35
|
+
export { ArrowUpward } from '@lunit/design-system-icons';
|
|
36
|
+
export { Avatar16 } from '@lunit/design-system-icons';
|
|
37
|
+
export { Avatar } from '@lunit/design-system-icons';
|
|
38
|
+
export { Avatar28 } from '@lunit/design-system-icons';
|
|
39
|
+
export { Bell } from '@lunit/design-system-icons';
|
|
40
|
+
export { Brightness } from '@lunit/design-system-icons';
|
|
41
|
+
export { BrightnessPreset } from '@lunit/design-system-icons';
|
|
42
|
+
export { Brush } from '@lunit/design-system-icons';
|
|
43
|
+
export { Calendar } from '@lunit/design-system-icons';
|
|
44
|
+
export { Check } from '@lunit/design-system-icons';
|
|
45
|
+
export { Close16 } from '@lunit/design-system-icons';
|
|
46
|
+
export { Close } from '@lunit/design-system-icons';
|
|
47
|
+
export { CloudDownload } from '@lunit/design-system-icons';
|
|
48
|
+
export { CloudUpload } from '@lunit/design-system-icons';
|
|
49
|
+
export { Convert } from '@lunit/design-system-icons';
|
|
50
|
+
export { Crop } from '@lunit/design-system-icons';
|
|
51
|
+
export { Cursor } from '@lunit/design-system-icons';
|
|
52
|
+
export { Dashboard } from '@lunit/design-system-icons';
|
|
53
|
+
export { Delete } from '@lunit/design-system-icons';
|
|
54
|
+
export { Demo } from '@lunit/design-system-icons';
|
|
55
|
+
export { DownloadFolder } from '@lunit/design-system-icons';
|
|
56
|
+
export { DownloadT1 } from '@lunit/design-system-icons';
|
|
57
|
+
export { DownloadT2 } from '@lunit/design-system-icons';
|
|
58
|
+
export { DownloadT3 } from '@lunit/design-system-icons';
|
|
59
|
+
export { DownloadT4 } from '@lunit/design-system-icons';
|
|
60
|
+
export { DrawArrow } from '@lunit/design-system-icons';
|
|
61
|
+
export { DrawLine } from '@lunit/design-system-icons';
|
|
62
|
+
export { Dummy16 } from '@lunit/design-system-icons';
|
|
63
|
+
export { Dummy } from '@lunit/design-system-icons';
|
|
64
|
+
export { Duplicate } from '@lunit/design-system-icons';
|
|
65
|
+
export { Edit } from '@lunit/design-system-icons';
|
|
66
|
+
export { EditTtr } from '@lunit/design-system-icons';
|
|
67
|
+
export { EditType } from '@lunit/design-system-icons';
|
|
68
|
+
export { Eraser } from '@lunit/design-system-icons';
|
|
69
|
+
export { Error16 } from '@lunit/design-system-icons';
|
|
70
|
+
export { Error } from '@lunit/design-system-icons';
|
|
71
|
+
export { Exclude16 } from '@lunit/design-system-icons';
|
|
72
|
+
export { Exclude } from '@lunit/design-system-icons';
|
|
73
|
+
export { Feedback } from '@lunit/design-system-icons';
|
|
74
|
+
export { File } from '@lunit/design-system-icons';
|
|
75
|
+
export { Filter } from '@lunit/design-system-icons';
|
|
76
|
+
export { FlipHorizontal } from '@lunit/design-system-icons';
|
|
77
|
+
export { FlipVertical } from '@lunit/design-system-icons';
|
|
78
|
+
export { FloodFill } from '@lunit/design-system-icons';
|
|
79
|
+
export { Forward } from '@lunit/design-system-icons';
|
|
80
|
+
export { Fullscreen } from '@lunit/design-system-icons';
|
|
81
|
+
export { Hand } from '@lunit/design-system-icons';
|
|
82
|
+
export { Help } from '@lunit/design-system-icons';
|
|
83
|
+
export { Hide16 } from '@lunit/design-system-icons';
|
|
84
|
+
export { Hide } from '@lunit/design-system-icons';
|
|
85
|
+
export { History } from '@lunit/design-system-icons';
|
|
86
|
+
export { Home } from '@lunit/design-system-icons';
|
|
87
|
+
export { Include16 } from '@lunit/design-system-icons';
|
|
88
|
+
export { Include } from '@lunit/design-system-icons';
|
|
89
|
+
export { Information16 } from '@lunit/design-system-icons';
|
|
90
|
+
export { Information } from '@lunit/design-system-icons';
|
|
91
|
+
export { Invert } from '@lunit/design-system-icons';
|
|
92
|
+
export { Label } from '@lunit/design-system-icons';
|
|
93
|
+
export { Language } from '@lunit/design-system-icons';
|
|
94
|
+
export { Layout1x1 } from '@lunit/design-system-icons';
|
|
95
|
+
export { Layout1x2 } from '@lunit/design-system-icons';
|
|
96
|
+
export { Layout1x4 } from '@lunit/design-system-icons';
|
|
97
|
+
export { Layout2x1 } from '@lunit/design-system-icons';
|
|
98
|
+
export { Layout2x2 } from '@lunit/design-system-icons';
|
|
99
|
+
export { Lock } from '@lunit/design-system-icons';
|
|
100
|
+
export { Logo16 } from '@lunit/design-system-icons';
|
|
101
|
+
export { Logo } from '@lunit/design-system-icons';
|
|
102
|
+
export { Logo32 } from '@lunit/design-system-icons';
|
|
103
|
+
export { Logout } from '@lunit/design-system-icons';
|
|
104
|
+
export { LunitLogo } from '@lunit/design-system-icons';
|
|
105
|
+
export { Magnify } from '@lunit/design-system-icons';
|
|
106
|
+
export { Menu as MenuIcon } from '@lunit/design-system-icons';
|
|
107
|
+
export { MenuOpen } from '@lunit/design-system-icons';
|
|
108
|
+
export { Minus } from '@lunit/design-system-icons';
|
|
109
|
+
export { MoreHorizontal } from '@lunit/design-system-icons';
|
|
110
|
+
export { MoreVertical } from '@lunit/design-system-icons';
|
|
111
|
+
export { MoveDown } from '@lunit/design-system-icons';
|
|
112
|
+
export { MoveLeft } from '@lunit/design-system-icons';
|
|
113
|
+
export { MoveRight } from '@lunit/design-system-icons';
|
|
114
|
+
export { MoveUp } from '@lunit/design-system-icons';
|
|
115
|
+
export { Pan } from '@lunit/design-system-icons';
|
|
116
|
+
export { Password } from '@lunit/design-system-icons';
|
|
117
|
+
export { PathologySlides } from '@lunit/design-system-icons';
|
|
118
|
+
export { PauseT1 } from '@lunit/design-system-icons';
|
|
119
|
+
export { PauseT2 } from '@lunit/design-system-icons';
|
|
120
|
+
export { PdfDownload } from '@lunit/design-system-icons';
|
|
121
|
+
export { PdfUpload } from '@lunit/design-system-icons';
|
|
122
|
+
export { Pen } from '@lunit/design-system-icons';
|
|
123
|
+
export { Play } from '@lunit/design-system-icons';
|
|
124
|
+
export { Plus } from '@lunit/design-system-icons';
|
|
125
|
+
export { PolygonSelection } from '@lunit/design-system-icons';
|
|
126
|
+
export { Project } from '@lunit/design-system-icons';
|
|
127
|
+
export { Redo } from '@lunit/design-system-icons';
|
|
128
|
+
export { Refresh } from '@lunit/design-system-icons';
|
|
129
|
+
export { Removable16 } from '@lunit/design-system-icons';
|
|
130
|
+
export { Removable } from '@lunit/design-system-icons';
|
|
131
|
+
export { Reorder } from '@lunit/design-system-icons';
|
|
132
|
+
export { Report } from '@lunit/design-system-icons';
|
|
133
|
+
export { Reset } from '@lunit/design-system-icons';
|
|
134
|
+
export { ResetText } from '@lunit/design-system-icons';
|
|
135
|
+
export { ResetView } from '@lunit/design-system-icons';
|
|
136
|
+
export { Review } from '@lunit/design-system-icons';
|
|
137
|
+
export { Rewind } from '@lunit/design-system-icons';
|
|
138
|
+
export { RotationLeft } from '@lunit/design-system-icons';
|
|
139
|
+
export { RotationRight } from '@lunit/design-system-icons';
|
|
140
|
+
export { RulerT1 } from '@lunit/design-system-icons';
|
|
141
|
+
export { RulerT2 } from '@lunit/design-system-icons';
|
|
142
|
+
export { RulerviewCircle } from '@lunit/design-system-icons';
|
|
143
|
+
export { RulerviewLine } from '@lunit/design-system-icons';
|
|
144
|
+
export { Save } from '@lunit/design-system-icons';
|
|
145
|
+
export { SearchT1 } from '@lunit/design-system-icons';
|
|
146
|
+
export { SearchT2 } from '@lunit/design-system-icons';
|
|
147
|
+
export { SendEmail } from '@lunit/design-system-icons';
|
|
148
|
+
export { Setting } from '@lunit/design-system-icons';
|
|
149
|
+
export { Shortcut } from '@lunit/design-system-icons';
|
|
150
|
+
export { Show16 } from '@lunit/design-system-icons';
|
|
151
|
+
export { Show } from '@lunit/design-system-icons';
|
|
152
|
+
export { Skip } from '@lunit/design-system-icons';
|
|
153
|
+
export { StartT1 } from '@lunit/design-system-icons';
|
|
154
|
+
export { StartT2 } from '@lunit/design-system-icons';
|
|
155
|
+
export { Storage } from '@lunit/design-system-icons';
|
|
156
|
+
export { Success16 } from '@lunit/design-system-icons';
|
|
157
|
+
export { Success } from '@lunit/design-system-icons';
|
|
158
|
+
export { TagT1 } from '@lunit/design-system-icons';
|
|
159
|
+
export { TagT2 } from '@lunit/design-system-icons';
|
|
160
|
+
export { TagT3 } from '@lunit/design-system-icons';
|
|
161
|
+
export { Text } from '@lunit/design-system-icons';
|
|
162
|
+
export { Toggle } from '@lunit/design-system-icons';
|
|
163
|
+
export { Undo } from '@lunit/design-system-icons';
|
|
164
|
+
export { Unlock } from '@lunit/design-system-icons';
|
|
165
|
+
export { UploadFolder } from '@lunit/design-system-icons';
|
|
166
|
+
export { UploadT1 } from '@lunit/design-system-icons';
|
|
167
|
+
export { UploadT2 } from '@lunit/design-system-icons';
|
|
168
|
+
export { UploadT3 } from '@lunit/design-system-icons';
|
|
169
|
+
export { UploadT4 } from '@lunit/design-system-icons';
|
|
170
|
+
export { User } from '@lunit/design-system-icons';
|
|
171
|
+
export { ViewList } from '@lunit/design-system-icons';
|
|
172
|
+
export { ViewModule } from '@lunit/design-system-icons';
|
|
173
|
+
export { ViewfinderT1 } from '@lunit/design-system-icons';
|
|
174
|
+
export { ViewfinderT2 } from '@lunit/design-system-icons';
|
|
175
|
+
export { ViewfinderT3 } from '@lunit/design-system-icons';
|
|
176
|
+
export { Warning16 } from '@lunit/design-system-icons';
|
|
177
|
+
export { Warning } from '@lunit/design-system-icons';
|
|
178
|
+
export { ZoomIn } from '@lunit/design-system-icons';
|
|
179
|
+
export { ZoomOut } from '@lunit/design-system-icons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ThemeOptions } from '@mui/material';
|
|
3
|
+
declare module '@mui/material/styles' {
|
|
4
|
+
interface Theme {
|
|
5
|
+
leftDrawer: {
|
|
6
|
+
width: React.CSSProperties['width'];
|
|
7
|
+
};
|
|
8
|
+
rightDrawer: {
|
|
9
|
+
width: React.CSSProperties['width'];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
interface ThemeOptions {
|
|
13
|
+
leftDrawer: {
|
|
14
|
+
width: React.CSSProperties['width'];
|
|
15
|
+
};
|
|
16
|
+
rightDrawer: {
|
|
17
|
+
width: React.CSSProperties['width'];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
declare const drawer: ThemeOptions;
|
|
22
|
+
export default drawer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SCROLLBAR_WIDTH = 10;
|
|
2
|
+
export declare const SMALL_SCROLLBAR_WIDTH = 6;
|
|
3
|
+
export declare const DRAWER_WIDTH_OPEN = 280;
|
|
4
|
+
export declare const DRAWER_WIDTH_CLOSE = 52;
|
|
5
|
+
export declare const VIEWER_DRAWER_WIDTH_OPEN = 280;
|
|
6
|
+
export { default as drawer } from './drawer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunit/oui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-alpha.1",
|
|
4
4
|
"validate-branch-name": {
|
|
5
5
|
"pattern": "^(main|develop)|(feature|fix|release|hotfix|qe)/.+$",
|
|
6
6
|
"errorMsg": "The branch name is not correct. Please check the pattern. (ex. feature/add-something)"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { Close } from '
|
|
3
|
+
import { Close } from '../../icons';
|
|
4
4
|
import BaseAlert from './Alert.styled';
|
|
5
5
|
import type { AlertProps } from './Alert.types';
|
|
6
6
|
import { getAccentColor, getIcons } from './Alert.utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlertColor } from '@mui/material';
|
|
3
|
-
import { Success, Error, Information } from '
|
|
3
|
+
import { Success, Error, Information } from '../../icons';
|
|
4
4
|
import theme from '../../theme';
|
|
5
5
|
|
|
6
6
|
export const getIcons = (severity: AlertColor | undefined) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useState, useMemo, useEffect } from 'react';
|
|
3
|
-
import { CloseSmall, ArrowLeft, ArrowRight } from '
|
|
3
|
+
import { CloseSmall, ArrowLeft, ArrowRight } from '../../icons';
|
|
4
4
|
|
|
5
5
|
import { StyledDatePicker } from './DatePicker.styled';
|
|
6
6
|
import type { DatePickerProps } from './DatePicker.types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Check } from '
|
|
2
|
+
import { Check } from '../../icons';
|
|
3
3
|
import { BaseDropdownItem, KeyboardShortcut } from './DropdownItem.styled';
|
|
4
4
|
import type { DropdownItemProps } from './DropdownItem.types';
|
|
5
5
|
import { BUTTON_DROPDOWN_ITEM, shouldPadForEmptyIcon } from './DropdownItem.utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { ArrowDownXs } from '
|
|
3
|
+
import { ArrowDownXs } from '../../icons';
|
|
4
4
|
import { BaseIconDropdown } from './IconDropdown.styled';
|
|
5
5
|
import theme from '../../theme';
|
|
6
6
|
import type { IconDropdownProps } from './IconDropdown.types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-nested-ternary */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { createContext, useMemo } from 'react';
|
|
4
|
-
import { ArrowDownSm, ArrowUpSm } from '
|
|
4
|
+
import { ArrowDownSm, ArrowUpSm } from '../../icons';
|
|
5
5
|
import { Collapse } from '@mui/material';
|
|
6
6
|
import { MuiList, MuiListSubheader } from './List.styled';
|
|
7
7
|
import type { ListProps, ListContextValue } from './List.types';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
styled,
|
|
8
8
|
typographyClasses,
|
|
9
9
|
} from '@mui/material';
|
|
10
|
-
import { Check, Dummy } from '
|
|
10
|
+
import { Check, Dummy } from '../../icons';
|
|
11
11
|
import getPadding from './List.utils';
|
|
12
12
|
import type { StyledListItemButtonProps } from './ListItem.types';
|
|
13
13
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Button, styled, Box } from '@mui/material';
|
|
2
|
+
import { subScrollbarWidth } from '../../foundations';
|
|
3
|
+
|
|
4
|
+
export const DEFAULT_PAGE_SIZE = 100;
|
|
5
|
+
export const PAGE_SIZE_LIST = [25, 50, 75, 100];
|
|
6
|
+
|
|
7
|
+
export const PaginationBox = styled(Box)(({ theme }) => ({
|
|
8
|
+
...theme.typography.body5,
|
|
9
|
+
display: 'flex',
|
|
10
|
+
justifyContent: 'space-between',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
borderTop: `1px solid ${theme.palette.neutralGrey[90]}`,
|
|
13
|
+
height: '48px',
|
|
14
|
+
padding: '14px 0',
|
|
15
|
+
color: theme.palette.neutralGrey[40],
|
|
16
|
+
}));
|
|
17
|
+
|
|
18
|
+
export const PaperProps = { style: { maxHeight: 378, width: 136 } };
|
|
19
|
+
|
|
20
|
+
export const SidePageBox = styled('div')({
|
|
21
|
+
display: 'flex',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
height: '20px',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export const SelectButton = styled(Button)(({ theme }) => ({
|
|
27
|
+
justifyContent: 'flex-end',
|
|
28
|
+
border: '1px solid transparent',
|
|
29
|
+
minWidth: 'auto',
|
|
30
|
+
width: '58px',
|
|
31
|
+
height: '28px',
|
|
32
|
+
marginLeft: theme.spacing(3),
|
|
33
|
+
padding: '4px 4px 4px 8px',
|
|
34
|
+
color: theme.palette.neutralGrey[15],
|
|
35
|
+
'.MuiButton-endIcon': { margin: 0 },
|
|
36
|
+
'&:hover': {
|
|
37
|
+
background: 'transparent',
|
|
38
|
+
borderColor: theme.palette.neutralGrey[40],
|
|
39
|
+
},
|
|
40
|
+
'&:focus-visible': {
|
|
41
|
+
background: 'transparent',
|
|
42
|
+
borderColor: theme.palette.scope1,
|
|
43
|
+
},
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
export const ArrowButton = styled(Button)(({ theme }) => ({
|
|
47
|
+
border: '1px solid transparent',
|
|
48
|
+
minWidth: 'auto',
|
|
49
|
+
height: '28px',
|
|
50
|
+
padding: theme.spacing(0.5),
|
|
51
|
+
color: theme.palette.neutralGrey[40],
|
|
52
|
+
'&:hover': {
|
|
53
|
+
background: theme.palette.neutralGrey[70],
|
|
54
|
+
},
|
|
55
|
+
'&:disabled': {
|
|
56
|
+
color: theme.palette.neutralGrey[40],
|
|
57
|
+
opacity: 0.4,
|
|
58
|
+
},
|
|
59
|
+
'.MuiButton-endIcon': {
|
|
60
|
+
margin: 0,
|
|
61
|
+
},
|
|
62
|
+
}));
|
|
63
|
+
|
|
64
|
+
export const PaginationContainer = styled('div')(({ theme }) => ({
|
|
65
|
+
padding: `0 ${subScrollbarWidth(theme.spacing(5))} 0 ${theme.spacing(5)}`,
|
|
66
|
+
}));
|
|
67
|
+
|
|
68
|
+
export const divider = {
|
|
69
|
+
borderWidth: '0',
|
|
70
|
+
margin: '0 12px',
|
|
71
|
+
} as const;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useState, MouseEvent, useEffect, useMemo } from 'react';
|
|
3
|
+
import { ArrowDown } from '../../icons';
|
|
4
|
+
import { Divider } from '../Divider';
|
|
5
|
+
import { MenuItem, Menu } from '../Menu';
|
|
6
|
+
|
|
7
|
+
import { PaginationProps } from './Pagination.types';
|
|
8
|
+
import {
|
|
9
|
+
PaperProps,
|
|
10
|
+
PaginationBox,
|
|
11
|
+
SidePageBox,
|
|
12
|
+
SelectButton,
|
|
13
|
+
ArrowButton,
|
|
14
|
+
PAGE_SIZE_LIST,
|
|
15
|
+
divider,
|
|
16
|
+
} from './Pagination.styled';
|
|
17
|
+
|
|
18
|
+
function Pagination({
|
|
19
|
+
count: itemCount,
|
|
20
|
+
page: selectedPage = 1,
|
|
21
|
+
perPage: selectedPerPage,
|
|
22
|
+
totalPage,
|
|
23
|
+
onPageChange,
|
|
24
|
+
onPerPageChange,
|
|
25
|
+
}: PaginationProps) {
|
|
26
|
+
const [perPageAnchorEl, setPerPageAnchorEl] = useState<null | HTMLElement>(null);
|
|
27
|
+
const [pageAnchorEl, setPageAnchorEl] = useState<null | HTMLElement>(null);
|
|
28
|
+
|
|
29
|
+
const perPageOpen = Boolean(perPageAnchorEl);
|
|
30
|
+
const pageOpen = Boolean(pageAnchorEl);
|
|
31
|
+
|
|
32
|
+
const pages = useMemo(
|
|
33
|
+
() => Array.from({ length: totalPage }, (_, index) => index + 1),
|
|
34
|
+
[totalPage],
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const startItemNumber = selectedPerPage * (selectedPage - 1) + 1;
|
|
38
|
+
const endItemNumber = Math.min(startItemNumber + selectedPerPage - 1, itemCount);
|
|
39
|
+
|
|
40
|
+
const handlePerPageClick = (event: MouseEvent<HTMLButtonElement>) => {
|
|
41
|
+
setPerPageAnchorEl(event.currentTarget);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const handlePerPageClose = () => {
|
|
45
|
+
setPerPageAnchorEl(null);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const handlePageClick = (event: MouseEvent<HTMLButtonElement>) => {
|
|
49
|
+
setPageAnchorEl(event.currentTarget);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const handlePageClose = () => {
|
|
53
|
+
setPageAnchorEl(null);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (selectedPage > totalPage) {
|
|
58
|
+
onPageChange?.(null, totalPage);
|
|
59
|
+
}
|
|
60
|
+
}, [totalPage, selectedPage, onPageChange]);
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<PaginationBox>
|
|
64
|
+
<SidePageBox>
|
|
65
|
+
Items per page
|
|
66
|
+
<SelectButton
|
|
67
|
+
endIcon={
|
|
68
|
+
<ArrowDown
|
|
69
|
+
style={{
|
|
70
|
+
transform: perPageOpen ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
71
|
+
}}
|
|
72
|
+
/>
|
|
73
|
+
}
|
|
74
|
+
onClick={handlePerPageClick}
|
|
75
|
+
>
|
|
76
|
+
{selectedPerPage}
|
|
77
|
+
</SelectButton>
|
|
78
|
+
<Menu
|
|
79
|
+
showCheck
|
|
80
|
+
anchorEl={perPageAnchorEl}
|
|
81
|
+
anchorOrigin={{
|
|
82
|
+
vertical: 'top',
|
|
83
|
+
horizontal: 'right',
|
|
84
|
+
}}
|
|
85
|
+
transformOrigin={{
|
|
86
|
+
vertical: 'bottom',
|
|
87
|
+
horizontal: 'right',
|
|
88
|
+
}}
|
|
89
|
+
PaperProps={PaperProps}
|
|
90
|
+
onClose={handlePerPageClose}
|
|
91
|
+
open={perPageOpen}
|
|
92
|
+
>
|
|
93
|
+
{PAGE_SIZE_LIST.map((perPage) => (
|
|
94
|
+
<MenuItem
|
|
95
|
+
key={perPage}
|
|
96
|
+
selected={perPage === selectedPerPage}
|
|
97
|
+
onClick={(event) => {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
onPerPageChange?.(event, perPage);
|
|
100
|
+
handlePerPageClose();
|
|
101
|
+
}}
|
|
102
|
+
label={perPage}
|
|
103
|
+
/>
|
|
104
|
+
))}
|
|
105
|
+
</Menu>
|
|
106
|
+
<Divider
|
|
107
|
+
orientation="vertical"
|
|
108
|
+
sx={divider}
|
|
109
|
+
/>
|
|
110
|
+
{startItemNumber}-{endItemNumber} of {itemCount} items
|
|
111
|
+
</SidePageBox>
|
|
112
|
+
<SidePageBox>
|
|
113
|
+
This page
|
|
114
|
+
<SelectButton
|
|
115
|
+
id="selected-page"
|
|
116
|
+
endIcon={
|
|
117
|
+
<ArrowDown
|
|
118
|
+
style={{
|
|
119
|
+
transform: pageOpen ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
120
|
+
}}
|
|
121
|
+
/>
|
|
122
|
+
}
|
|
123
|
+
onClick={handlePageClick}
|
|
124
|
+
>
|
|
125
|
+
{selectedPage}
|
|
126
|
+
</SelectButton>
|
|
127
|
+
<Menu
|
|
128
|
+
showCheck
|
|
129
|
+
anchorEl={pageAnchorEl}
|
|
130
|
+
anchorOrigin={{
|
|
131
|
+
vertical: 'top',
|
|
132
|
+
horizontal: 'right',
|
|
133
|
+
}}
|
|
134
|
+
transformOrigin={{
|
|
135
|
+
vertical: 'bottom',
|
|
136
|
+
horizontal: 'right',
|
|
137
|
+
}}
|
|
138
|
+
PaperProps={PaperProps}
|
|
139
|
+
onClose={handlePageClose}
|
|
140
|
+
open={pageOpen}
|
|
141
|
+
>
|
|
142
|
+
{pages.map((page) => (
|
|
143
|
+
<MenuItem
|
|
144
|
+
key={page}
|
|
145
|
+
selected={page === selectedPage}
|
|
146
|
+
onClick={(event) => {
|
|
147
|
+
event.preventDefault();
|
|
148
|
+
onPageChange?.(event, page);
|
|
149
|
+
handlePageClose();
|
|
150
|
+
}}
|
|
151
|
+
label={page}
|
|
152
|
+
/>
|
|
153
|
+
))}
|
|
154
|
+
</Menu>
|
|
155
|
+
<Divider
|
|
156
|
+
orientation="vertical"
|
|
157
|
+
sx={divider}
|
|
158
|
+
/>
|
|
159
|
+
<ArrowButton
|
|
160
|
+
id="prev-button"
|
|
161
|
+
disabled={selectedPage === 1}
|
|
162
|
+
onClick={(event) => {
|
|
163
|
+
event.preventDefault();
|
|
164
|
+
onPageChange?.(event, selectedPage - 1);
|
|
165
|
+
}}
|
|
166
|
+
endIcon={<ArrowDown style={{ transform: 'rotate(90deg)' }} />}
|
|
167
|
+
/>
|
|
168
|
+
<ArrowButton
|
|
169
|
+
id="next-button"
|
|
170
|
+
disabled={selectedPage === totalPage}
|
|
171
|
+
onClick={(event) => {
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
onPageChange?.(event, selectedPage + 1);
|
|
174
|
+
}}
|
|
175
|
+
endIcon={<ArrowDown style={{ transform: 'rotate(-90deg)' }} />}
|
|
176
|
+
/>
|
|
177
|
+
</SidePageBox>
|
|
178
|
+
</PaginationBox>
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export default Pagination;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface PaginationProps {
|
|
2
|
+
count: number;
|
|
3
|
+
page?: number;
|
|
4
|
+
perPage: number;
|
|
5
|
+
totalPage: number;
|
|
6
|
+
onPageChange?: (
|
|
7
|
+
event: React.MouseEvent<HTMLLIElement> | React.MouseEvent<HTMLButtonElement> | null,
|
|
8
|
+
page: number,
|
|
9
|
+
) => void;
|
|
10
|
+
onPerPageChange?: (event: React.MouseEvent<HTMLLIElement> | null, perPage: number) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface SortObject {
|
|
14
|
+
empty: boolean;
|
|
15
|
+
unsorted: boolean;
|
|
16
|
+
sorted: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface Pageable {
|
|
20
|
+
offset: number;
|
|
21
|
+
sort: SortObject;
|
|
22
|
+
paged: boolean;
|
|
23
|
+
unpaged: boolean;
|
|
24
|
+
pageNumber: number;
|
|
25
|
+
pageSize: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface PaginationViewInfo {
|
|
29
|
+
totalElements: number;
|
|
30
|
+
totalPages: number;
|
|
31
|
+
size: number;
|
|
32
|
+
number: number;
|
|
33
|
+
sort: SortObject;
|
|
34
|
+
pageable: Pageable;
|
|
35
|
+
numberOfElements: number;
|
|
36
|
+
first: boolean;
|
|
37
|
+
last: boolean;
|
|
38
|
+
empty: boolean;
|
|
39
|
+
}
|
|
@@ -5,7 +5,7 @@ import { Box, Typography } from '@mui/material';
|
|
|
5
5
|
import { LabelContainer, LabelContent, LabelCloseButton } from './ProductLabel.styled';
|
|
6
6
|
import { ProductLabelProps } from './ProductLabel.types';
|
|
7
7
|
import { Divider } from '../Divider';
|
|
8
|
-
import { Close } from '
|
|
8
|
+
import { Close } from '../../icons';
|
|
9
9
|
import { LunitScope } from '@lunit/design-system-logo';
|
|
10
10
|
|
|
11
11
|
function ProductLabel({ open, onClose, children, footerStart, footerEnd }: ProductLabelProps) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CloseSmall, HideSmall, ShowSmall } from '
|
|
2
|
+
import { CloseSmall, HideSmall, ShowSmall } from '../../../icons';
|
|
3
3
|
import { ButtonWrapper } from '../TextInput.styled';
|
|
4
4
|
|
|
5
5
|
function ClearButton({ onClick }: { onClick?: () => void }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Grow, Typography, Box } from '@mui/material';
|
|
3
3
|
|
|
4
|
-
import { ArrowUp, Close, Success, Error16, RefreshLeft } from '
|
|
4
|
+
import { ArrowUp, Close, Success, Error16, RefreshLeft } from '../../icons';
|
|
5
5
|
|
|
6
6
|
import { useState, Fragment, useMemo } from 'react';
|
|
7
7
|
import { Divider } from '../Divider';
|