@7shifts/sous-chef 3.87.0-beta.1 → 3.87.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 (32) hide show
  1. package/dist/actions/Button/Button.d.ts +12 -1
  2. package/dist/actions/PaginationControls/PaginationControls.d.ts +5 -0
  3. package/dist/core/SousChefProvider/context/ProviderConfigContext.d.ts +0 -1
  4. package/dist/feedback/InlineBanner/InlineBanner.d.ts +7 -0
  5. package/dist/feedback/MicroBanner/MicroBanner.d.ts +7 -1
  6. package/dist/forms/PhoneField/usePhoneField.d.ts +0 -1
  7. package/dist/forms/SelectField/useSelectField.d.ts +0 -1
  8. package/dist/forms/TextField/useTextField.d.ts +0 -1
  9. package/dist/forms/hooks/useDateFieldControllers.d.ts +0 -1
  10. package/dist/forms/hooks/useMultiSelectFieldControllers.d.ts +0 -1
  11. package/dist/forms/hooks/usePhoneFieldControllers.d.ts +0 -1
  12. package/dist/forms/hooks/useRangeFieldControllers.d.ts +0 -1
  13. package/dist/forms/hooks/useSelectFieldControllers.d.ts +0 -1
  14. package/dist/foundation/tokens/color/color-constants.d.ts +3 -0
  15. package/dist/foundation/tokens/color/color-types.d.ts +1 -1
  16. package/dist/foundation/types.d.ts +40 -10
  17. package/dist/hooks/usePositionStyles.d.ts +0 -1
  18. package/dist/i18n/TranslationsContext.d.ts +0 -1
  19. package/dist/index.css +67 -128
  20. package/dist/index.css.map +1 -1
  21. package/dist/index.js +10 -11
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.modern.js +10 -11
  24. package/dist/index.modern.js.map +1 -1
  25. package/dist/lists/DataTable/DataTableContext.d.ts +0 -1
  26. package/dist/lists/hooks/useDataTableScrollState.d.ts +0 -1
  27. package/dist/overlay/KebabMenu/types.d.ts +0 -1
  28. package/dist/overlay/Tooltip/Tooltip.d.ts +3 -0
  29. package/dist/overlay/hooks/useListKeyboardNavigation/types.d.ts +0 -1
  30. package/dist/utils/elements.d.ts +0 -1
  31. package/dist/utils/types.d.ts +0 -1
  32. package/package.json +15 -18
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DataTableColumn, DataTableState } from './types';
3
2
  export type DataTableContextType = {
4
3
  columns?: DataTableColumn[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScrollState, StickyColumns } from '../DataTable/types';
3
2
  export declare const useDataTableScrollState: (stickyColumns?: StickyColumns) => {
4
3
  scrollState: ScrollState;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type MenuAction = {
3
2
  action: string;
4
3
  label: React.ReactNode;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Placement, TooltipTheme } from './types';
3
3
  type Props = {
4
+ /**
5
+ * @deprecated use the default black theme instead (no need to specify it explicitly). The white theme will be removed in future releases.
6
+ */
4
7
  theme?: TooltipTheme;
5
8
  /** It defines the overlay position on the screen. The component might not use the value defined in here as it will place the tooltip on the best place based on the anchor position on the screen. */
6
9
  placement?: Placement;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type ListItem = {
3
2
  disabled: boolean;
4
3
  onClick?: (e: React.MouseEvent | KeyboardEvent) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Config = {
3
2
  component: React.ReactElement['type'];
4
3
  displayName: string;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export type RefType<T> = React.MutableRefObject<T | null> | ((instance: T | null) => void) | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "3.87.0-beta.1",
3
+ "version": "3.87.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -32,8 +32,8 @@
32
32
  "start": "yarn storybook",
33
33
  "storybook": "storybook dev -p 6006 --loglevel info",
34
34
  "storybook:chromatic": "storybook dev -p 6006",
35
- "storybook:chromatic:build": "storybook build -o ./.storybook/dist --webpack-stats-json preview-stats.json",
36
- "storybook:build": "storybook build -o ./.storybook/dist --loglevel info --webpack-stats-json preview-stats.json",
35
+ "storybook:chromatic:build": "storybook build -o ./.storybook/dist --webpack-stats-json",
36
+ "storybook:build": "storybook build -o ./.storybook/dist --loglevel info --webpack-stats-json",
37
37
  "new:component": "node ./scripts/new-component.js"
38
38
  },
39
39
  "peerDependencies": {
@@ -44,15 +44,11 @@
44
44
  "devDependencies": {
45
45
  "@babel/core": "^7.24.4",
46
46
  "@babel/preset-env": "^7.24.4",
47
- "@storybook/addon-a11y": "^7.5.3",
48
- "@storybook/addon-essentials": "^7.5.3",
49
- "@storybook/addon-interactions": "^7.5.3",
50
- "@storybook/addon-links": "^7.5.3",
51
- "@storybook/addon-onboarding": "^1.0.8",
52
- "@storybook/blocks": "^7.5.3",
53
- "@storybook/react": "^7.5.3",
54
- "@storybook/react-vite": "^7.5.3",
55
- "@storybook/testing-library": "^0.2.2",
47
+ "@storybook/addon-a11y": "10.1.10",
48
+ "@storybook/addon-docs": "10.1.10",
49
+ "@storybook/addon-links": "10.1.10",
50
+ "@storybook/addon-onboarding": "10.1.10",
51
+ "@storybook/react-vite": "10.1.10",
56
52
  "@svgr/cli": "^8.0.1",
57
53
  "@testing-library/jest-dom": "^5.12.0",
58
54
  "@testing-library/react": "^11.2.7",
@@ -65,7 +61,7 @@
65
61
  "@types/react-modal": "^3.12.1",
66
62
  "@typescript-eslint/eslint-plugin": "^6.11.0",
67
63
  "@typescript-eslint/parser": "^6.11.0",
68
- "@vitejs/plugin-react": "^4.0.3",
64
+ "@vitejs/plugin-react": "^4.7.0",
69
65
  "babel-jest": "^29.7.0",
70
66
  "chromatic": "^13.3.4",
71
67
  "cross-env": "^7.0.3",
@@ -81,8 +77,9 @@
81
77
  "eslint-plugin-react-hooks": "^4.6.0",
82
78
  "eslint-plugin-react-refresh": "^0.4.4",
83
79
  "eslint-plugin-standard": "^5.0.0",
84
- "eslint-plugin-storybook": "^0.6.15",
80
+ "eslint-plugin-storybook": "10.1.10",
85
81
  "formik": "^2.2.6",
82
+ "identity-obj-proxy": "^3.0.0",
86
83
  "jest": "^29.7.0",
87
84
  "jest-environment-jsdom": "^29.7.0",
88
85
  "jest-environment-jsdom-sixteen": "^2.0.0",
@@ -91,15 +88,15 @@
91
88
  "prompt": "^1.3.0",
92
89
  "react": "^18.2.0",
93
90
  "react-dom": "^18.2.0",
94
- "react-scripts": "^3.4.1",
95
91
  "sass": "^1.48.0",
96
92
  "source-map-explorer": "^2.5.3",
97
- "storybook": "^7.5.3",
93
+ "storybook": "10.1.10",
98
94
  "ts-jest": "^29.1.2",
99
95
  "typescript": "^5.3.2",
100
- "vite": "^4.4.5",
96
+ "vite": "^6.4.1",
101
97
  "vite-plugin-turbosnap": "^1.0.3",
102
- "yup": "^0.32.9"
98
+ "yup": "^0.32.9",
99
+ "@types/node": "^22"
103
100
  },
104
101
  "files": [
105
102
  "dist"