@coreui/react-pro 4.8.0 → 4.9.0-next.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.
Files changed (67) hide show
  1. package/README.md +1 -1
  2. package/dist/components/calendar/index.d.ts +2 -0
  3. package/dist/components/calendar/utils.d.ts +23 -0
  4. package/dist/components/date-picker/CDatePicker.d.ts +1 -1
  5. package/dist/components/date-range-picker/CDateRangePicker.d.ts +2 -2
  6. package/dist/components/element-cover/CElementCover.d.ts +0 -4
  7. package/dist/components/element-cover/index.d.ts +2 -0
  8. package/dist/components/index.d.ts +1 -0
  9. package/dist/components/offcanvas/COffcanvas.d.ts +7 -1
  10. package/dist/components/smart-table/CSmartTableBody.d.ts +6 -5
  11. package/dist/components/smart-table/CSmartTableHead.d.ts +6 -3
  12. package/dist/components/smart-table/CSmartTableInterface.d.ts +30 -59
  13. package/dist/components/smart-table/types.d.ts +53 -0
  14. package/dist/components/smart-table/utils.d.ts +16 -0
  15. package/dist/components/time-picker/types.d.ts +15 -0
  16. package/dist/components/time-picker/utils.d.ts +23 -0
  17. package/dist/hooks/index.d.ts +3 -0
  18. package/dist/hooks/useForkedRef.d.ts +7 -0
  19. package/dist/hooks/useStateWithCallback.d.ts +2 -0
  20. package/dist/index.es.js +1076 -1005
  21. package/dist/index.es.js.map +1 -1
  22. package/dist/index.js +1076 -1004
  23. package/dist/index.js.map +1 -1
  24. package/dist/utils/index.d.ts +2 -1
  25. package/dist/utils/isObjectInArray.d.ts +2 -0
  26. package/package.json +11 -11
  27. package/src/components/alert/CAlert.tsx +1 -1
  28. package/src/components/backdrop/CBackdrop.tsx +1 -1
  29. package/src/components/calendar/CCalendar.tsx +351 -240
  30. package/src/components/calendar/index.ts +3 -0
  31. package/src/{utils/calendar.ts → components/calendar/utils.ts} +1 -1
  32. package/src/components/carousel/CCarousel.tsx +1 -1
  33. package/src/components/carousel/CCarouselItem.tsx +1 -1
  34. package/src/components/collapse/CCollapse.tsx +1 -1
  35. package/src/components/date-picker/CDatePicker.tsx +1 -1
  36. package/src/components/date-range-picker/CDateRangePicker.tsx +3 -3
  37. package/src/components/dropdown/CDropdown.tsx +1 -1
  38. package/src/components/dropdown/CDropdownToggle.tsx +1 -1
  39. package/src/components/element-cover/CElementCover.tsx +16 -22
  40. package/src/components/element-cover/index.ts +3 -0
  41. package/src/components/form/CFormCheck.tsx +1 -1
  42. package/src/components/index.ts +1 -0
  43. package/src/components/modal/CModal.tsx +1 -1
  44. package/src/components/nav/CNavLink.tsx +2 -1
  45. package/src/components/offcanvas/COffcanvas.tsx +35 -17
  46. package/src/components/sidebar/CSidebar.tsx +1 -1
  47. package/src/components/smart-table/CSmartTable.tsx +262 -256
  48. package/src/components/smart-table/CSmartTableBody.tsx +31 -41
  49. package/src/components/smart-table/CSmartTableCleaner.tsx +1 -1
  50. package/src/components/smart-table/CSmartTableFilter.tsx +1 -3
  51. package/src/components/smart-table/CSmartTableHead.tsx +53 -103
  52. package/src/components/smart-table/CSmartTableInterface.tsx +41 -71
  53. package/src/components/smart-table/CSmartTableItemsPerPageSelector.tsx +1 -2
  54. package/src/components/smart-table/types.tsx +65 -0
  55. package/src/components/smart-table/utils.tsx +199 -0
  56. package/src/components/tabs/CTabPane.tsx +1 -1
  57. package/src/components/time-picker/CTimePicker.tsx +50 -23
  58. package/src/components/time-picker/CTimePickerRollCol.tsx +1 -1
  59. package/src/components/time-picker/types.ts +15 -0
  60. package/src/{utils/time.ts → components/time-picker/utils.ts} +43 -2
  61. package/src/components/toast/CToast.tsx +1 -1
  62. package/src/components/virtual-scroller/CVirtualScroller.tsx +1 -1
  63. package/src/{utils/hooks → hooks}/index.ts +0 -0
  64. package/src/{utils/hooks → hooks}/useForkedRef.ts +0 -0
  65. package/src/{utils/hooks → hooks}/useStateWithCallback.ts +0 -0
  66. package/src/utils/index.ts +2 -1
  67. package/src/utils/isObjectInArray.ts +14 -0
@@ -1,4 +1,5 @@
1
1
  import getNextSibling from './getNextSibling';
2
2
  import getPreviousSibling from './getPreviousSibling';
3
3
  import isInViewport from './isInViewport';
4
- export { getNextSibling, getPreviousSibling, isInViewport };
4
+ import isObjectInArray from './isObjectInArray';
5
+ export { getNextSibling, getPreviousSibling, isInViewport, isObjectInArray };
@@ -0,0 +1,2 @@
1
+ declare const isObjectInArray: <T>(array: T[], item: T, ignore?: string[]) => boolean;
2
+ export default isObjectInArray;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/react-pro",
3
- "version": "4.8.0",
3
+ "version": "4.9.0-next.0",
4
4
  "description": "UI Components Library for React.js",
5
5
  "keywords": [
6
6
  "react",
@@ -35,28 +35,28 @@
35
35
  "build": "rollup -c --bundleConfigAsCjs"
36
36
  },
37
37
  "devDependencies": {
38
- "@coreui/icons-pro": "^3.0.0-0",
39
- "@coreui/icons-react": "^2.0.0",
40
- "@popperjs/core": "^2.11.5",
38
+ "@coreui/icons": "^3.0.0",
39
+ "@coreui/icons-react": "^2.1.0",
40
+ "@popperjs/core": "^2.11.6",
41
41
  "@rollup/plugin-commonjs": "^24.0.1",
42
42
  "@rollup/plugin-node-resolve": "^15.0.1",
43
43
  "@rollup/plugin-typescript": "^11.0.0",
44
44
  "@testing-library/jest-dom": "^5.16.5",
45
45
  "@testing-library/react": "^13.4.0",
46
46
  "@types/react": "18.0.27",
47
- "@types/react-dom": "^18.0.6",
47
+ "@types/react-dom": "^18.0.10",
48
48
  "@types/react-transition-group": "^4.4.5",
49
49
  "classnames": "^2.3.2",
50
- "date-fns": "^2.28.0",
50
+ "date-fns": "^2.29.3",
51
51
  "prop-types": "^15.8.1",
52
52
  "react": "^18.2.0",
53
- "react-device-detect": "^2.1.2",
53
+ "react-device-detect": "^2.2.2",
54
54
  "react-dom": "^18.2.0",
55
- "react-popper": "^2.2.5",
55
+ "react-popper": "^2.3.0",
56
56
  "react-transition-group": "^4.4.5",
57
- "rollup": "^3.7.5",
58
- "tslib": "^2.4.1",
59
- "typescript": "^4.9.4"
57
+ "rollup": "^3.14.0",
58
+ "tslib": "^2.5.0",
59
+ "typescript": "^4.9.5"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@coreui/coreui-pro": ">=4.4.0",
@@ -6,7 +6,7 @@ import { Transition } from 'react-transition-group'
6
6
  import { Colors, colorPropType } from '../Types'
7
7
  import { CCloseButton } from '../close-button/CCloseButton'
8
8
 
9
- import { useForkedRef } from '../../utils/hooks'
9
+ import { useForkedRef } from '../../hooks'
10
10
 
11
11
  export interface CAlertProps extends HTMLAttributes<HTMLDivElement> {
12
12
  /**
@@ -3,7 +3,7 @@ import { Transition } from 'react-transition-group'
3
3
  import PropTypes from 'prop-types'
4
4
  import classNames from 'classnames'
5
5
 
6
- import { useForkedRef } from '../../utils/hooks'
6
+ import { useForkedRef } from '../../hooks'
7
7
 
8
8
  export interface CBackdropProps extends HTMLAttributes<HTMLDivElement> {
9
9
  /**