creactive 0.0.56 → 0.0.57

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 (63) hide show
  1. package/build/index.js +2 -1656
  2. package/build/index.js.LICENSE.txt +9 -0
  3. package/build/web.d.ts +1 -0
  4. package/build/web.js +2 -0
  5. package/build/web.js.LICENSE.txt +9 -0
  6. package/package.json +10 -6
  7. package/source/components/index.ts +0 -2
  8. package/source/components/text/constants/color.ts +0 -26
  9. package/source/components/text/constants/font.ts +0 -32
  10. package/source/components/text/constants/index.ts +0 -5
  11. package/source/components/text/constants/role.ts +0 -12
  12. package/source/components/text/constants/text.ts +0 -22
  13. package/source/components/text/constants/type.ts +0 -27
  14. package/source/components/text/index.ts +0 -2
  15. package/source/components/text/spec/children.spec.tsx +0 -13
  16. package/source/components/text/spec/color.spec.native.tsx +0 -15
  17. package/source/components/text/spec/color.spec.tsx +0 -159
  18. package/source/components/text/spec/color.spec.web.tsx +0 -15
  19. package/source/components/text/spec/font.spec.tsx +0 -196
  20. package/source/components/text/spec/position.spec.tsx +0 -15
  21. package/source/components/text/spec/text.spec.native.tsx +0 -1043
  22. package/source/components/text/spec/text.spec.tsx +0 -39
  23. package/source/components/text/spec/text.spec.web.tsx +0 -1043
  24. package/source/components/text/spec/type.spec.web.tsx +0 -55
  25. package/source/components/text/text.stories.tsx +0 -46
  26. package/source/components/text/text.tsx +0 -262
  27. package/source/components/text/text.types.ts +0 -67
  28. package/source/constants/index.ts +0 -46
  29. package/source/constants/theme/color.ts +0 -27
  30. package/source/constants/theme/font.ts +0 -48
  31. package/source/constants/theme/index.ts +0 -50
  32. package/source/constants/theme/text.ts +0 -12
  33. package/source/contexts/index.ts +0 -15
  34. package/source/contexts/media/components/index.ts +0 -4
  35. package/source/contexts/media/components/media/index.ts +0 -2
  36. package/source/contexts/media/components/media/media.tsx +0 -37
  37. package/source/contexts/media/components/media/media.types.ts +0 -26
  38. package/source/contexts/media/components/wrapper/index.ts +0 -2
  39. package/source/contexts/media/components/wrapper/wrapper.tsx +0 -73
  40. package/source/contexts/media/components/wrapper/wrapper.types.ts +0 -3
  41. package/source/contexts/media/constants/breakpoint.ts +0 -18
  42. package/source/contexts/media/constants/index.ts +0 -6
  43. package/source/contexts/media/hooks/index.ts +0 -1
  44. package/source/contexts/media/hooks/use-breakpoint.ts +0 -18
  45. package/source/contexts/media/index.ts +0 -7
  46. package/source/contexts/media/media.tsx +0 -36
  47. package/source/contexts/media/media.types.ts +0 -38
  48. package/source/contexts/theme/index.ts +0 -8
  49. package/source/contexts/theme/theme.tsx +0 -280
  50. package/source/contexts/theme/theme.types.ts +0 -284
  51. package/source/helpers/index.ts +0 -3
  52. package/source/helpers/storybook/constants/control.ts +0 -25
  53. package/source/helpers/storybook/constants/index.ts +0 -1
  54. package/source/helpers/storybook/control.spec.ts +0 -140
  55. package/source/helpers/storybook/control.ts +0 -115
  56. package/source/helpers/storybook/index.ts +0 -1
  57. package/source/helpers/style/index.ts +0 -2
  58. package/source/helpers/style/style.spec.web.ts +0 -20
  59. package/source/helpers/style/style.ts +0 -14
  60. package/source/helpers/style/style.types.ts +0 -14
  61. package/source/hooks/index.ts +0 -1
  62. package/source/hooks/use-theme-style-sheet.ts +0 -135
  63. 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
- })