@moda/om 21.7.2 → 21.8.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.
@@ -4,6 +4,6 @@ import './Field.scss';
4
4
  export type FieldProps = TextInputProps & {
5
5
  children?: JSX.Element;
6
6
  };
7
- export declare const Field: React.ForwardRefExoticComponent<import("../TextInput").InputProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
7
+ export declare const Field: React.ForwardRefExoticComponent<import("..").InputProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
8
8
  children?: JSX.Element;
9
9
  } & React.RefAttributes<HTMLInputElement>>;
@@ -5,5 +5,6 @@ export type TabListProps = {
5
5
  tabs: Tab[];
6
6
  onTabSelected(tabName: string): void;
7
7
  activePanel: string;
8
+ className?: string;
8
9
  };
9
10
  export declare const TabList: React.FC<TabListProps>;
@@ -6,5 +6,6 @@ export type TabsProps = React.HTMLAttributes<HTMLDivElement> & {
6
6
  onTabClicked?: (tabName: string) => void;
7
7
  defaultActiveTab?: string;
8
8
  activeTab?: string;
9
+ tabListClassName?: string;
9
10
  };
10
11
  export declare const Tabs: React.FC<TabsProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda/om",
3
- "version": "21.7.2",
3
+ "version": "21.8.0",
4
4
  "description": "Moda Operandi design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -53,106 +53,106 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@moda/icons": "^6.1.14",
57
- "@moda/tokens": "^6.5.0",
56
+ "@moda/icons": "^6.2.34",
57
+ "@moda/tokens": "^6.6.46",
58
58
  "@mona-health/react-input-mask": "^3.0.3",
59
59
  "@storybook/addon-styling": "^2.0.0",
60
60
  "classnames": "^2.5.1",
61
- "credit-card-type": "^10.0.2",
61
+ "credit-card-type": "^10.1.0",
62
62
  "focus-visible": "^5.2.1",
63
63
  "proportional-scale": "^4.0.0",
64
- "react-focus-on": "^3.10.0",
64
+ "react-focus-on": "^3.10.2",
65
65
  "scroll-into-view-if-needed": "^3.1.0",
66
- "storybook": "^9.0.17",
66
+ "storybook": "^10.1.11",
67
67
  "use-cursor": "^1.2.3"
68
68
  },
69
69
  "devDependencies": {
70
- "@babel/core": "^7.28.0",
71
- "@babel/preset-env": "^7.28.0",
72
- "@babel/preset-react": "^7.27.1",
73
- "@babel/preset-typescript": "^7.27.1",
74
- "@commitlint/cli": "^20.0.0",
75
- "@commitlint/config-conventional": "^20.0.0",
76
- "@eslint/js": "^9.31.0",
70
+ "@babel/core": "^7.28.5",
71
+ "@babel/preset-env": "^7.28.5",
72
+ "@babel/preset-react": "^7.28.5",
73
+ "@babel/preset-typescript": "^7.28.5",
74
+ "@commitlint/cli": "^20.3.0",
75
+ "@commitlint/config-conventional": "^20.3.0",
76
+ "@eslint/js": "^9.39.2",
77
77
  "@moda/rollup-plugin-postcss": "^4.0.1",
78
- "@rollup/plugin-babel": "^6.0.4",
78
+ "@rollup/plugin-babel": "^6.1.0",
79
79
  "@rollup/plugin-commonjs": "^29.0.0",
80
- "@rollup/plugin-node-resolve": "^16.0.1",
81
- "@storybook/addon-links": "^9.0.17",
80
+ "@rollup/plugin-node-resolve": "^16.0.3",
81
+ "@storybook/addon-links": "^10.1.11",
82
82
  "@storybook/addon-postcss": "^2.0.0",
83
83
  "@storybook/addon-webpack5-compiler-babel": "^4.0.0",
84
84
  "@storybook/addons": "^7.6.17",
85
- "@storybook/react": "^9.0.17",
86
- "@storybook/react-webpack5": "^9.0.17",
87
- "@testing-library/jest-dom": "^6.6.3",
88
- "@testing-library/react": "^16.3.0",
85
+ "@storybook/react": "^10.1.11",
86
+ "@storybook/react-webpack5": "^10.1.11",
87
+ "@testing-library/jest-dom": "^6.9.1",
88
+ "@testing-library/react": "^16.3.1",
89
89
  "@testing-library/user-event": "^14.6.1",
90
- "@types/chai": "^5.2.2",
90
+ "@types/chai": "^5.2.3",
91
91
  "@types/cheerio": "^1.0.0",
92
92
  "@types/classnames": "^2.3.4",
93
93
  "@types/credit-card-type": "^9.0.3",
94
94
  "@types/jest": "^30.0.0",
95
- "@types/ramda": "^0.31.0",
96
- "@types/react": "^19.1.8",
97
- "@types/react-dom": "^19.1.6",
95
+ "@types/ramda": "^0.31.1",
96
+ "@types/react": "^19.2.7",
97
+ "@types/react-dom": "^19.2.3",
98
98
  "@types/react-input-mask": "^3.0.6",
99
99
  "@types/react-router-dom": "^5.3.3",
100
- "@typescript-eslint/eslint-plugin": "^8.37.0",
101
- "@typescript-eslint/parser": "^8.37.0",
102
- "autoprefixer": "^10.4.21",
100
+ "@typescript-eslint/eslint-plugin": "^8.52.0",
101
+ "@typescript-eslint/parser": "^8.52.0",
102
+ "autoprefixer": "^10.4.23",
103
103
  "babel-loader": "^10.0.0",
104
104
  "commitizen": "^4.3.1",
105
105
  "css-loader": "^7.1.2",
106
106
  "cz-conventional-changelog": "^3.3.0",
107
- "eslint": "^9.31.0",
108
- "eslint-config-prettier": "^10.1.5",
107
+ "eslint": "^9.39.2",
108
+ "eslint-config-prettier": "^10.1.8",
109
109
  "eslint-plugin-import": "^2.32.0",
110
110
  "eslint-plugin-jest-dom": "^5.5.0",
111
111
  "eslint-plugin-jsx-a11y": "^6.10.2",
112
112
  "eslint-plugin-no-loops": "^0.4.0",
113
113
  "eslint-plugin-node": "^11.1.0",
114
- "eslint-plugin-prettier": "^5.5.1",
114
+ "eslint-plugin-prettier": "^5.5.4",
115
115
  "eslint-plugin-promise": "^7.2.1",
116
116
  "eslint-plugin-react": "^7.37.5",
117
- "eslint-plugin-react-hooks": "^7.0.0",
117
+ "eslint-plugin-react-hooks": "^7.0.1",
118
118
  "eslint-plugin-standard": "^5.0.0",
119
- "eslint-plugin-testing-library": "^7.6.0",
120
- "globals": "^16.3.0",
119
+ "eslint-plugin-testing-library": "^7.15.4",
120
+ "globals": "^17.0.0",
121
121
  "husky": "^9.1.7",
122
122
  "identity-obj-proxy": "^3.0.0",
123
123
  "ignore-not-found-export-webpack-plugin": "^1.0.2",
124
- "jest": "^30.0.4",
125
- "jest-environment-jsdom": "^30.0.4",
124
+ "jest": "^30.2.0",
125
+ "jest-environment-jsdom": "^30.2.0",
126
126
  "jest-matchmedia-mock": "^1.1.0",
127
- "lint-staged": "^16.1.2",
127
+ "lint-staged": "^16.2.7",
128
128
  "node-sass-package-importer": "^5.3.3",
129
129
  "pinst": "^3.0.0",
130
130
  "postcss": "^8.5.6",
131
- "postcss-loader": "^8.1.1",
132
- "prettier": "^3.6.2",
131
+ "postcss-loader": "^8.2.0",
132
+ "prettier": "^3.7.4",
133
133
  "ramda": "^0.32.0",
134
- "react": "^19.1.0",
135
- "react-dom": "^19.1.0",
134
+ "react": "^19.2.3",
135
+ "react-dom": "^19.2.3",
136
136
  "react-router-dom": "^5.1.2",
137
- "rollup": "^4.45.1",
137
+ "rollup": "^4.55.1",
138
138
  "rollup-plugin-peer-deps-external": "^2.2.4",
139
139
  "rollup-plugin-scss": "^4.0.1",
140
- "sass": "^1.89.2",
141
- "sass-loader": "^16.0.5",
142
- "semantic-release": "^25.0.0",
143
- "semantic-release-npm-github": "^5.0.0",
140
+ "sass": "^1.97.2",
141
+ "sass-loader": "^16.0.6",
142
+ "semantic-release": "^25.0.2",
143
+ "semantic-release-npm-github": "^6.0.0",
144
144
  "style-loader": "^4.0.0",
145
- "ts-jest": "^29.4.0",
146
- "typescript": "^5.8.3",
147
- "typescript-eslint": "^8.37.0",
145
+ "ts-jest": "^29.4.6",
146
+ "typescript": "^5.9.3",
147
+ "typescript-eslint": "^8.52.0",
148
148
  "waait": "^1.0.5",
149
- "webpack": "^5.100.2",
149
+ "webpack": "^5.104.1",
150
150
  "webpack-cli": "^6.0.1"
151
151
  },
152
152
  "overrides": {
153
- "@types/react": "^19.1.8",
154
- "react": "^19.1.0",
155
- "react-dom": "^19.1.0"
153
+ "@types/react": "^19.2.7",
154
+ "react": "^19.2.3",
155
+ "react-dom": "^19.2.3"
156
156
  },
157
157
  "config": {
158
158
  "commitizen": {
@@ -1,19 +1,25 @@
1
1
  import React from 'react';
2
+ import classNames from 'classnames';
2
3
  import { Tab } from './Tab';
4
+
3
5
  import './TabList.scss';
4
6
 
5
7
  export type TabListProps = {
6
8
  tabs: Tab[];
7
9
  onTabSelected(tabName: string): void;
8
10
  activePanel: string;
11
+ className?: string;
9
12
  };
10
13
 
11
- export const TabList: React.FC<TabListProps> = ({ tabs, onTabSelected, activePanel }) => {
12
- return (
13
- <div className='TabList'>
14
- {tabs.map(tab => (
15
- <Tab key={tab.name} tab={tab} onTabChosen={onTabSelected} activeTab={activePanel} />
16
- ))}
17
- </div>
18
- );
19
- };
14
+ export const TabList: React.FC<TabListProps> = ({
15
+ tabs,
16
+ onTabSelected,
17
+ activePanel,
18
+ className
19
+ }) => (
20
+ <div className={classNames('TabList', className)}>
21
+ {tabs.map(tab => (
22
+ <Tab key={tab.name} tab={tab} onTabChosen={onTabSelected} activeTab={activePanel} />
23
+ ))}
24
+ </div>
25
+ );
@@ -10,6 +10,7 @@ export type TabsProps = React.HTMLAttributes<HTMLDivElement> & {
10
10
  onTabClicked?: (tabName: string) => void;
11
11
  defaultActiveTab?: string;
12
12
  activeTab?: string;
13
+ tabListClassName?: string;
13
14
  };
14
15
 
15
16
  export const Tabs: React.FC<TabsProps> = ({
@@ -18,6 +19,7 @@ export const Tabs: React.FC<TabsProps> = ({
18
19
  defaultActiveTab,
19
20
  activeTab,
20
21
  className,
22
+ tabListClassName,
21
23
  ...rest
22
24
  }) => {
23
25
  const [activePanel, setActivePanel] = useState(activeTab || defaultActiveTab || tabs[0].name);
@@ -33,7 +35,12 @@ export const Tabs: React.FC<TabsProps> = ({
33
35
 
34
36
  return (
35
37
  <div className={classNames('Tabs', className)} {...rest}>
36
- <TabList tabs={tabs} onTabSelected={handleTabClick} activePanel={activePanel} />
38
+ <TabList
39
+ tabs={tabs}
40
+ onTabSelected={handleTabClick}
41
+ activePanel={activePanel}
42
+ className={tabListClassName}
43
+ />
37
44
  <TabPanels panels={tabs} activePanel={activePanel} />
38
45
  </div>
39
46
  );