cozy-ui 127.0.0 → 127.1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [127.1.0](https://github.com/cozy/cozy-ui/compare/v127.0.1...v127.1.0) (2025-07-01)
2
+
3
+
4
+ ### Features
5
+
6
+ * **TableContainer:** Add `square` prop to remove radius ([2e7c6c1](https://github.com/cozy/cozy-ui/commit/2e7c6c1))
7
+
8
+ ## [127.0.1](https://github.com/cozy/cozy-ui/compare/v127.0.0...v127.0.1) (2025-06-30)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **Button:** Use primary light background for ghost variant ([bbe5c2e](https://github.com/cozy/cozy-ui/commit/bbe5c2e)), closes [#D2E9](https://github.com/cozy/cozy-ui/issues/D2E9)
14
+
1
15
  # [127.0.0](https://github.com/cozy/cozy-ui/compare/v126.6.0...v127.0.0) (2025-06-26)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "127.0.0",
3
+ "version": "127.1.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -51,6 +51,7 @@
51
51
  "screenshots:server": "nodemon ./scripts/pixelmatch-server/server.js -e js,hbs",
52
52
  "postbuild": "postcss transpiled/react/stylesheet.css --replace",
53
53
  "travis-deploy-once": "travis-deploy-once",
54
+ "start:css:utils": "yarn build:css:utils --watch",
54
55
  "start:css": "yarn build:css --watch",
55
56
  "prestart:doc": "yarn sprite",
56
57
  "start:doc": "NODE_OPTIONS=--openssl-legacy-provider env BUILD_ENV=watch-styleguidist styleguidist server --config docs/styleguide.config.js",
@@ -221,11 +221,14 @@ export const makeLightNormalOverrides = theme => ({
221
221
  outlined: {
222
222
  '&:not($disabled)': {
223
223
  '&.ghost': {
224
- backgroundColor: theme.palette.background.default,
224
+ backgroundColor: alpha(theme.palette.primary.main, 0.25),
225
225
  '&:hover': {
226
- backgroundColor: darken(theme.palette.background.default, 0.05),
226
+ backgroundColor: darken(
227
+ alpha(theme.palette.primary.main, 0.25),
228
+ 0.1
229
+ ),
227
230
  '@media (hover: none)': {
228
- backgroundColor: darken(theme.palette.background.default, 0.05)
231
+ backgroundColor: alpha(theme.palette.primary.main, 0.25)
229
232
  }
230
233
  }
231
234
  },
@@ -11,6 +11,7 @@ const TableContainer = forwardRef((props, ref) => {
11
11
  component={Paper}
12
12
  style={{ zIndex: 'var(--zIndex-app)', ...props.style }}
13
13
  elevation={0}
14
+ square
14
15
  />
15
16
  )
16
17
  })
@@ -231,7 +231,7 @@ export function makeDarkInvertedOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -231,7 +231,7 @@ export function makeDarkNormalOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -231,7 +231,7 @@ export function makeLightInvertedOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -231,7 +231,7 @@ export function makeLightNormalOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -212,11 +212,11 @@ export var makeLightNormalOverrides = function makeLightNormalOverrides(theme) {
212
212
  outlined: {
213
213
  '&:not($disabled)': {
214
214
  '&.ghost': {
215
- backgroundColor: theme.palette.background.default,
215
+ backgroundColor: alpha(theme.palette.primary.main, 0.25),
216
216
  '&:hover': {
217
- backgroundColor: darken(theme.palette.background.default, 0.05),
217
+ backgroundColor: darken(alpha(theme.palette.primary.main, 0.25), 0.1),
218
218
  '@media (hover: none)': {
219
- backgroundColor: darken(theme.palette.background.default, 0.05)
219
+ backgroundColor: alpha(theme.palette.primary.main, 0.25)
220
220
  }
221
221
  }
222
222
  },
@@ -15,7 +15,8 @@ var TableContainer = /*#__PURE__*/forwardRef(function (props, ref) {
15
15
  style: _objectSpread({
16
16
  zIndex: 'var(--zIndex-app)'
17
17
  }, props.style),
18
- elevation: 0
18
+ elevation: 0,
19
+ square: true
19
20
  }));
20
21
  });
21
22
  export default TableContainer;