@cdx-ui/components 0.0.1-beta.110 → 0.0.1-beta.112

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 (48) hide show
  1. package/lib/commonjs/components/Box/Box.js +1 -11
  2. package/lib/commonjs/components/Box/Box.js.map +1 -1
  3. package/lib/commonjs/components/Carousel/index.js +153 -0
  4. package/lib/commonjs/components/Carousel/index.js.map +1 -0
  5. package/lib/commonjs/components/Carousel/paginationNavigation.js +35 -0
  6. package/lib/commonjs/components/Carousel/paginationNavigation.js.map +1 -0
  7. package/lib/commonjs/components/Carousel/styles.js +21 -0
  8. package/lib/commonjs/components/Carousel/styles.js.map +1 -0
  9. package/lib/commonjs/components/Link/index.js.map +1 -1
  10. package/lib/commonjs/components/index.js +12 -0
  11. package/lib/commonjs/components/index.js.map +1 -1
  12. package/lib/module/components/Box/Box.js +1 -11
  13. package/lib/module/components/Box/Box.js.map +1 -1
  14. package/lib/module/components/Carousel/index.js +147 -0
  15. package/lib/module/components/Carousel/index.js.map +1 -0
  16. package/lib/module/components/Carousel/paginationNavigation.js +31 -0
  17. package/lib/module/components/Carousel/paginationNavigation.js.map +1 -0
  18. package/lib/module/components/Carousel/styles.js +18 -0
  19. package/lib/module/components/Carousel/styles.js.map +1 -0
  20. package/lib/module/components/Link/index.js.map +1 -1
  21. package/lib/module/components/index.js +1 -0
  22. package/lib/module/components/index.js.map +1 -1
  23. package/lib/typescript/components/Box/Box.d.ts +0 -3
  24. package/lib/typescript/components/Box/Box.d.ts.map +1 -1
  25. package/lib/typescript/components/Carousel/index.d.ts +70 -0
  26. package/lib/typescript/components/Carousel/index.d.ts.map +1 -0
  27. package/lib/typescript/components/Carousel/paginationNavigation.d.ts +12 -0
  28. package/lib/typescript/components/Carousel/paginationNavigation.d.ts.map +1 -0
  29. package/lib/typescript/components/Carousel/styles.d.ts +8 -0
  30. package/lib/typescript/components/Carousel/styles.d.ts.map +1 -0
  31. package/lib/typescript/components/Link/index.d.ts +1 -0
  32. package/lib/typescript/components/Link/index.d.ts.map +1 -1
  33. package/lib/typescript/components/index.d.ts +1 -0
  34. package/lib/typescript/components/index.d.ts.map +1 -1
  35. package/package.json +6 -5
  36. package/src/components/Box/Box.tsx +3 -7
  37. package/src/components/Carousel/index.tsx +263 -0
  38. package/src/components/Carousel/paginationNavigation.ts +32 -0
  39. package/src/components/Carousel/styles.ts +18 -0
  40. package/src/components/Link/index.tsx +1 -0
  41. package/src/components/index.ts +1 -0
  42. package/lib/commonjs/utils/WrapStringChild.js +0 -22
  43. package/lib/commonjs/utils/WrapStringChild.js.map +0 -1
  44. package/lib/module/utils/WrapStringChild.js +0 -18
  45. package/lib/module/utils/WrapStringChild.js.map +0 -1
  46. package/lib/typescript/utils/WrapStringChild.d.ts +0 -10
  47. package/lib/typescript/utils/WrapStringChild.d.ts.map +0 -1
  48. package/src/utils/WrapStringChild.tsx +0 -25
@@ -1 +0,0 @@
1
- {"version":3,"file":"WrapStringChild.d.ts","sourceRoot":"","sources":["../../../src/utils/WrapStringChild.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE1D,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,oBAAoB,GAAG,SAAS,CAexF"}
@@ -1,25 +0,0 @@
1
- import { Children, Fragment, isValidElement, type ReactNode } from 'react';
2
- import { Text, type TextProps } from '../components/Text';
3
-
4
- interface WrapStringChildProps {
5
- children: ReactNode;
6
- textProps?: TextProps;
7
- }
8
-
9
- /** @deprecated Users should wrap their own children in a Text component themselves */
10
- export function WrapStringChild({ children, textProps }: WrapStringChildProps): ReactNode {
11
- return Children.map(children, (child) => {
12
- return typeof child === 'string' ||
13
- typeof child === 'number' ||
14
- (isValidElement(child) &&
15
- child.type === Fragment &&
16
- child.props &&
17
- typeof child.props === 'object' &&
18
- 'children' in child.props &&
19
- (typeof child.props.children === 'string' || typeof child.props.children === 'number')) ? (
20
- <Text {...textProps}>{child}</Text>
21
- ) : (
22
- child
23
- );
24
- });
25
- }