@coreui/react 4.9.0-alpha.0 → 4.9.0-beta.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 (35) hide show
  1. package/README.md +1 -1
  2. package/dist/components/accordion/index.d.ts +1 -1
  3. package/dist/components/tooltip/CTooltip.d.ts +2 -2
  4. package/dist/hooks/index.d.ts +2 -1
  5. package/dist/hooks/useColorModes.d.ts +6 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.es.js +184 -243
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/index.js +185 -242
  10. package/dist/index.js.map +1 -1
  11. package/dist/props.d.ts +1 -1
  12. package/dist/utils/index.d.ts +2 -1
  13. package/dist/utils/isRTL.d.ts +2 -0
  14. package/package.json +9 -9
  15. package/src/components/accordion/index.ts +1 -7
  16. package/src/components/dropdown/CDropdownMenu.tsx +5 -4
  17. package/src/components/form/CFormSelect.tsx +3 -1
  18. package/src/components/modal/CModal.tsx +2 -0
  19. package/src/components/popover/CPopover.tsx +60 -25
  20. package/src/components/popover/__tests__/__snapshots__/CPopover.spec.tsx.snap +2 -1
  21. package/src/components/progress/CProgress.tsx +1 -0
  22. package/src/components/sidebar/CSidebar.tsx +2 -2
  23. package/src/components/spinner/CSpinner.tsx +4 -2
  24. package/src/components/spinner/__tests__/__snapshots__/CSpinner.spec.tsx.snap +2 -2
  25. package/src/components/table/CTable.tsx +2 -1
  26. package/src/components/tooltip/CTooltip.tsx +64 -30
  27. package/src/components/tooltip/__tests__/CTooltip.spec.tsx +1 -1
  28. package/src/hooks/index.ts +2 -1
  29. package/src/hooks/useColorModes.ts +55 -0
  30. package/src/hooks/useForkedRef.ts +1 -1
  31. package/src/index.ts +1 -0
  32. package/src/props.ts +4 -1
  33. package/src/utils/index.ts +2 -1
  34. package/src/utils/isRTL.ts +13 -0
  35. package/src/components/accordion/__tests__/__snapshots__/CAccordionCollapse.spec.tsx.snap +0 -11
package/README.md CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
  Several quick start options are available:
48
48
 
49
- - [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.9.0-alpha.0.zip)
49
+ - [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.9.0-beta.0.zip)
50
50
  - Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
51
51
  - Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
52
52
  - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
@@ -3,4 +3,4 @@ import { CAccordionBody } from './CAccordionBody';
3
3
  import { CAccordionButton } from './CAccordionButton';
4
4
  import { CAccordionHeader } from './CAccordionHeader';
5
5
  import { CAccordionItem } from './CAccordionItem';
6
- export { CAccordion, CAccordionBody, CAccordionButton, CAccordionHeader, CAccordionItem, };
6
+ export { CAccordion, CAccordionBody, CAccordionButton, CAccordionHeader, CAccordionItem };
@@ -10,7 +10,7 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
10
10
  */
11
11
  content: ReactNode | string;
12
12
  /**
13
- * Offset of the popover relative to its target.
13
+ * Offset of the tooltip relative to its target.
14
14
  */
15
15
  offset?: [number, number];
16
16
  /**
@@ -32,7 +32,7 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
32
32
  */
33
33
  placement?: 'auto' | 'top' | 'right' | 'bottom' | 'left';
34
34
  /**
35
- * Toggle the visibility of popover component.
35
+ * Toggle the visibility of tooltip component.
36
36
  */
37
37
  visible?: boolean;
38
38
  }
@@ -1,2 +1,3 @@
1
+ import { useColorModes } from './useColorModes';
1
2
  import { useForkedRef } from './useForkedRef';
2
- export { useForkedRef };
3
+ export { useColorModes, useForkedRef };
@@ -0,0 +1,6 @@
1
+ interface UseColorModesOutput {
2
+ getColorMode: () => string;
3
+ setColorMode: (mode: string) => void;
4
+ }
5
+ export declare const useColorModes: (localStorageItemName?: string) => UseColorModesOutput;
6
+ export {};
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components/';
2
+ export * from './hooks/';