creactive 0.0.56 → 0.0.58

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 (65) hide show
  1. package/build/browser.d.ts +1 -0
  2. package/build/browser.js +2 -0
  3. package/build/browser.js.LICENSE.txt +9 -0
  4. package/build/node.d.ts +1 -0
  5. package/build/node.js +2 -0
  6. package/build/node.js.LICENSE.txt +9 -0
  7. package/package.json +11 -6
  8. package/build/index.js +0 -1656
  9. package/source/components/index.ts +0 -2
  10. package/source/components/text/constants/color.ts +0 -26
  11. package/source/components/text/constants/font.ts +0 -32
  12. package/source/components/text/constants/index.ts +0 -5
  13. package/source/components/text/constants/role.ts +0 -12
  14. package/source/components/text/constants/text.ts +0 -22
  15. package/source/components/text/constants/type.ts +0 -27
  16. package/source/components/text/index.ts +0 -2
  17. package/source/components/text/spec/children.spec.tsx +0 -13
  18. package/source/components/text/spec/color.spec.native.tsx +0 -15
  19. package/source/components/text/spec/color.spec.tsx +0 -159
  20. package/source/components/text/spec/color.spec.web.tsx +0 -15
  21. package/source/components/text/spec/font.spec.tsx +0 -196
  22. package/source/components/text/spec/position.spec.tsx +0 -15
  23. package/source/components/text/spec/text.spec.native.tsx +0 -1043
  24. package/source/components/text/spec/text.spec.tsx +0 -39
  25. package/source/components/text/spec/text.spec.web.tsx +0 -1043
  26. package/source/components/text/spec/type.spec.web.tsx +0 -55
  27. package/source/components/text/text.stories.tsx +0 -46
  28. package/source/components/text/text.tsx +0 -262
  29. package/source/components/text/text.types.ts +0 -67
  30. package/source/constants/index.ts +0 -46
  31. package/source/constants/theme/color.ts +0 -27
  32. package/source/constants/theme/font.ts +0 -48
  33. package/source/constants/theme/index.ts +0 -50
  34. package/source/constants/theme/text.ts +0 -12
  35. package/source/contexts/index.ts +0 -15
  36. package/source/contexts/media/components/index.ts +0 -4
  37. package/source/contexts/media/components/media/index.ts +0 -2
  38. package/source/contexts/media/components/media/media.tsx +0 -37
  39. package/source/contexts/media/components/media/media.types.ts +0 -26
  40. package/source/contexts/media/components/wrapper/index.ts +0 -2
  41. package/source/contexts/media/components/wrapper/wrapper.tsx +0 -73
  42. package/source/contexts/media/components/wrapper/wrapper.types.ts +0 -3
  43. package/source/contexts/media/constants/breakpoint.ts +0 -18
  44. package/source/contexts/media/constants/index.ts +0 -6
  45. package/source/contexts/media/hooks/index.ts +0 -1
  46. package/source/contexts/media/hooks/use-breakpoint.ts +0 -18
  47. package/source/contexts/media/index.ts +0 -7
  48. package/source/contexts/media/media.tsx +0 -36
  49. package/source/contexts/media/media.types.ts +0 -38
  50. package/source/contexts/theme/index.ts +0 -8
  51. package/source/contexts/theme/theme.tsx +0 -280
  52. package/source/contexts/theme/theme.types.ts +0 -284
  53. package/source/helpers/index.ts +0 -3
  54. package/source/helpers/storybook/constants/control.ts +0 -25
  55. package/source/helpers/storybook/constants/index.ts +0 -1
  56. package/source/helpers/storybook/control.spec.ts +0 -140
  57. package/source/helpers/storybook/control.ts +0 -115
  58. package/source/helpers/storybook/index.ts +0 -1
  59. package/source/helpers/style/index.ts +0 -2
  60. package/source/helpers/style/style.spec.web.ts +0 -20
  61. package/source/helpers/style/style.ts +0 -14
  62. package/source/helpers/style/style.types.ts +0 -14
  63. package/source/hooks/index.ts +0 -1
  64. package/source/hooks/use-theme-style-sheet.ts +0 -135
  65. package/source/index.ts +0 -24
@@ -1,39 +0,0 @@
1
- import { faker } from '@faker-js/faker'
2
- import { render, screen } from '@testing-library/react-native'
3
- import { Text } from '../text'
4
-
5
- describe('@/components/text', () => {
6
- describe('text align passing as property', () => {
7
- it('renders with LEFT text alignment style by default', () => {
8
- const text = faker.lorem.words(2)
9
- render(<Text>{text}</Text>)
10
- expect(screen.getByText(text)).toHaveStyle({
11
- textAlign: 'left',
12
- })
13
- })
14
-
15
- it('renders with LEFT text alignment style when provided', () => {
16
- const text = faker.lorem.words(2)
17
- render(<Text align={Text.Align.LEFT}>{text}</Text>)
18
- expect(screen.getByText(text)).toHaveStyle({
19
- textAlign: 'left',
20
- })
21
- })
22
-
23
- it('renders with CENTER text alignment style when provided', () => {
24
- const text = faker.lorem.words(2)
25
- render(<Text align={Text.Align.CENTER}>{text}</Text>)
26
- expect(screen.getByText(text)).toHaveStyle({
27
- textAlign: 'center',
28
- })
29
- })
30
-
31
- it('renders with RIGHT text alignment style when provided', () => {
32
- const text = faker.lorem.words(2)
33
- render(<Text align={Text.Align.RIGHT}>{text}</Text>)
34
- expect(screen.getByText(text)).toHaveStyle({
35
- textAlign: 'right',
36
- })
37
- })
38
- })
39
- })