@utilitywarehouse/hearth-react-native 0.32.4 → 0.33.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 (93) hide show
  1. package/.storybook/main.ts +0 -10
  2. package/.storybook/vitest.setup.ts +0 -8
  3. package/CHANGELOG.md +16 -0
  4. package/build/components/Accordion/Accordion.d.ts +1 -1
  5. package/build/components/Tabs/TabsList.js +1 -1
  6. package/build/core/themes.d.ts +4 -4
  7. package/build/tokens/color.d.ts +2 -2
  8. package/build/tokens/color.js +1 -1
  9. package/build/tokens/components/dark/alert.d.ts +0 -1
  10. package/build/tokens/components/dark/alert.js +0 -1
  11. package/build/tokens/components/dark/bottom-navigation.d.ts +1 -1
  12. package/build/tokens/components/dark/bottom-navigation.js +1 -1
  13. package/build/tokens/components/dark/card-accordion.d.ts +13 -0
  14. package/build/tokens/components/dark/card-accordion.js +12 -0
  15. package/build/tokens/components/dark/card.d.ts +3 -0
  16. package/build/tokens/components/dark/card.js +3 -0
  17. package/build/tokens/components/dark/checkbox.d.ts +1 -1
  18. package/build/tokens/components/dark/checkbox.js +1 -1
  19. package/build/tokens/components/dark/divider.d.ts +0 -1
  20. package/build/tokens/components/dark/divider.js +0 -1
  21. package/build/tokens/components/dark/index.d.ts +1 -0
  22. package/build/tokens/components/dark/index.js +1 -0
  23. package/build/tokens/components/dark/list.d.ts +3 -0
  24. package/build/tokens/components/dark/list.js +3 -0
  25. package/build/tokens/components/dark/navigation.d.ts +42 -1
  26. package/build/tokens/components/dark/navigation.js +42 -1
  27. package/build/tokens/components/dark/pagination.d.ts +1 -0
  28. package/build/tokens/components/dark/pagination.js +1 -0
  29. package/build/tokens/components/dark/segmented-control.d.ts +1 -1
  30. package/build/tokens/components/dark/segmented-control.js +1 -1
  31. package/build/tokens/components/dark/tabs.d.ts +0 -1
  32. package/build/tokens/components/dark/tabs.js +0 -1
  33. package/build/tokens/components/dark/tooltip.d.ts +1 -0
  34. package/build/tokens/components/dark/tooltip.js +1 -0
  35. package/build/tokens/components/light/alert.d.ts +0 -1
  36. package/build/tokens/components/light/alert.js +0 -1
  37. package/build/tokens/components/light/bottom-navigation.d.ts +1 -1
  38. package/build/tokens/components/light/bottom-navigation.js +1 -1
  39. package/build/tokens/components/light/card-accordion.d.ts +13 -0
  40. package/build/tokens/components/light/card-accordion.js +12 -0
  41. package/build/tokens/components/light/card.d.ts +3 -0
  42. package/build/tokens/components/light/card.js +3 -0
  43. package/build/tokens/components/light/checkbox.d.ts +1 -1
  44. package/build/tokens/components/light/checkbox.js +1 -1
  45. package/build/tokens/components/light/divider.d.ts +0 -1
  46. package/build/tokens/components/light/divider.js +0 -1
  47. package/build/tokens/components/light/index.d.ts +1 -0
  48. package/build/tokens/components/light/index.js +1 -0
  49. package/build/tokens/components/light/list.d.ts +3 -0
  50. package/build/tokens/components/light/list.js +3 -0
  51. package/build/tokens/components/light/navigation.d.ts +42 -1
  52. package/build/tokens/components/light/navigation.js +42 -1
  53. package/build/tokens/components/light/pagination.d.ts +1 -0
  54. package/build/tokens/components/light/pagination.js +1 -0
  55. package/build/tokens/components/light/segmented-control.d.ts +1 -1
  56. package/build/tokens/components/light/segmented-control.js +1 -1
  57. package/build/tokens/components/light/tabs.d.ts +0 -1
  58. package/build/tokens/components/light/tabs.js +0 -1
  59. package/build/tokens/components/light/tooltip.d.ts +1 -0
  60. package/build/tokens/components/light/tooltip.js +1 -0
  61. package/docs/changelog.mdx +16 -0
  62. package/package.json +7 -11
  63. package/src/components/Rating/Rating.figma.tsx +1 -1
  64. package/src/components/Tabs/TabsList.tsx +1 -1
  65. package/src/tokens/color.ts +1 -1
  66. package/src/tokens/components/dark/alert.ts +0 -1
  67. package/src/tokens/components/dark/bottom-navigation.ts +1 -1
  68. package/src/tokens/components/dark/card-accordion.ts +13 -0
  69. package/src/tokens/components/dark/card.ts +3 -0
  70. package/src/tokens/components/dark/checkbox.ts +1 -1
  71. package/src/tokens/components/dark/divider.ts +0 -1
  72. package/src/tokens/components/dark/index.ts +1 -0
  73. package/src/tokens/components/dark/list.ts +3 -0
  74. package/src/tokens/components/dark/navigation.ts +42 -1
  75. package/src/tokens/components/dark/pagination.ts +1 -0
  76. package/src/tokens/components/dark/segmented-control.ts +1 -1
  77. package/src/tokens/components/dark/tabs.ts +0 -1
  78. package/src/tokens/components/dark/tooltip.ts +1 -0
  79. package/src/tokens/components/light/alert.ts +0 -1
  80. package/src/tokens/components/light/bottom-navigation.ts +1 -1
  81. package/src/tokens/components/light/card-accordion.ts +13 -0
  82. package/src/tokens/components/light/card.ts +3 -0
  83. package/src/tokens/components/light/checkbox.ts +1 -1
  84. package/src/tokens/components/light/divider.ts +0 -1
  85. package/src/tokens/components/light/index.ts +1 -0
  86. package/src/tokens/components/light/list.ts +3 -0
  87. package/src/tokens/components/light/navigation.ts +42 -1
  88. package/src/tokens/components/light/pagination.ts +1 -0
  89. package/src/tokens/components/light/segmented-control.ts +1 -1
  90. package/src/tokens/components/light/tabs.ts +0 -1
  91. package/src/tokens/components/light/tooltip.ts +1 -0
  92. package/vitest.config.js +5 -1
  93. package/.turbo/turbo-lint$colon$fix.log +0 -56
package/vitest.config.js CHANGED
@@ -2,12 +2,16 @@ import path from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
3
  import { defineConfig } from 'vitest/config';
4
4
  import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
5
+ import { playwright } from '@vitest/browser-playwright';
5
6
 
6
7
  const dirname =
7
8
  typeof __dirname !== 'undefined' ? __dirname : path.dirname(fileURLToPath(import.meta.url));
8
9
 
9
10
  // More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
10
11
  export default defineConfig({
12
+ optimizeDeps: {
13
+ include: ['@react-stately/utils'],
14
+ },
11
15
  test: {
12
16
  projects: [
13
17
  {
@@ -22,7 +26,7 @@ export default defineConfig({
22
26
  browser: {
23
27
  enabled: true,
24
28
  headless: true,
25
- provider: 'playwright',
29
+ provider: playwright(),
26
30
  instances: [{ browser: 'chromium' }],
27
31
  },
28
32
  setupFiles: ['.storybook/vitest.setup.ts'],
@@ -1,56 +0,0 @@
1
- $ TIMING=1 eslint --fix .
2
-
3
- /home/runner/work/hearth/hearth/packages/react-native/src/components/Carousel/Carousel.context.tsx
4
- 6:14 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components
5
-
6
- /home/runner/work/hearth/hearth/packages/react-native/src/components/Carousel/Carousel.tsx
7
- 146:6 warning React Hook useMemo has a missing dependency: 'hasCarouselControlsInTree'. Either include it or remove the dependency array react-hooks/exhaustive-deps
8
-
9
- /home/runner/work/hearth/hearth/packages/react-native/src/components/DatePicker/DatePicker.tsx
10
- 109:6 warning React Hook useCallback has an unnecessary dependency: 'modalRef.current'. Either exclude it or remove the dependency array. Mutable values like 'modalRef.current' aren't valid dependencies because mutating them doesn't re-render the component react-hooks/exhaustive-deps
11
- 259:6 warning React Hook useEffect has a missing dependency: 'initialState'. Either include it or remove the dependency array react-hooks/exhaustive-deps
12
- 346:6 warning React Hook useEffect has a missing dependency: 'onChange'. Either include it or remove the dependency array react-hooks/exhaustive-deps
13
- 468:5 warning React Hook useCallback has a missing dependency: 'onChange'. Either include it or remove the dependency array react-hooks/exhaustive-deps
14
- 536:6 warning React Hook useEffect has a missing dependency: 'onSelectMonth'. Either include it or remove the dependency array react-hooks/exhaustive-deps
15
- 542:6 warning React Hook useEffect has a missing dependency: 'onSelectYear'. Either include it or remove the dependency array react-hooks/exhaustive-deps
16
-
17
- /home/runner/work/hearth/hearth/packages/react-native/src/components/DatePicker/DatePickerDay.tsx
18
- 76:6 warning React Hook useMemo has an unnecessary dependency: 'styles.rangeRoot'. Either exclude it or remove the dependency array. Outer scope values like 'styles.rangeRoot' aren't valid dependencies because mutating them doesn't re-render the component react-hooks/exhaustive-deps
19
- 84:6 warning React Hook useMemo has a missing dependency: 'isSelected'. Either include it or remove the dependency array react-hooks/exhaustive-deps
20
-
21
- /home/runner/work/hearth/hearth/packages/react-native/src/components/DatePicker/DatePickerDays.tsx
22
- 179:6 warning React Hook useMemo has unnecessary dependencies: 'month' and 'year'. Either exclude them or remove the dependency array react-hooks/exhaustive-deps
23
-
24
- /home/runner/work/hearth/hearth/packages/react-native/src/components/DatePicker/DatePickerYears.tsx
25
- 52:6 warning React Hook useCallback has a missing dependency: 'containerHeight'. Either include it or remove the dependency array. Outer scope values like 'styles' aren't valid dependencies because mutating them doesn't re-render the component react-hooks/exhaustive-deps
26
-
27
- /home/runner/work/hearth/hearth/packages/react-native/src/components/PillGroup/PillGroup.tsx
28
- 17:9 warning The 'normalizedValue' conditional could make the dependencies of useMemo Hook (at line 33) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'normalizedValue' in its own useMemo() Hook react-hooks/exhaustive-deps
29
-
30
- /home/runner/work/hearth/hearth/packages/react-native/src/components/Table/Table.context.tsx
31
- 23:14 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components
32
-
33
- /home/runner/work/hearth/hearth/packages/react-native/src/components/Tabs/Tabs.tsx
34
- 53:6 warning React Hook useEffect has a missing dependency: 'tabValues'. Either include it or remove the dependency array react-hooks/exhaustive-deps
35
- 53:7 warning React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
36
- 104:5 warning React Hook useMemo has an unnecessary dependency: 'tabValues'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps
37
- 127:62 warning React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
38
-
39
- /home/runner/work/hearth/hearth/packages/react-native/src/components/Toast/Toast.context.tsx
40
- 14:14 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components
41
- 106:14 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components
42
-
43
- ✖ 20 problems (0 errors, 20 warnings)
44
-
45
- Rule | Time (ms) | Relative
46
- :----------------------------------------|----------:|--------:
47
- @typescript-eslint/no-unused-vars | 2115.502 | 60.0%
48
- react-hooks/rules-of-hooks | 141.299 | 4.0%
49
- no-global-assign | 128.266 | 3.6%
50
- react-hooks/exhaustive-deps | 107.897 | 3.1%
51
- no-misleading-character-class | 72.815 | 2.1%
52
- @typescript-eslint/ban-ts-comment | 70.843 | 2.0%
53
- no-loss-of-precision | 55.192 | 1.6%
54
- no-unexpected-multiline | 52.206 | 1.5%
55
- no-regex-spaces | 50.033 | 1.4%
56
- @typescript-eslint/no-unused-expressions | 49.226 | 1.4%