@marigold/components 3.0.1 → 3.0.3

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/dist/index.js CHANGED
@@ -344,6 +344,7 @@ var Label = ({
344
344
  return /* @__PURE__ */ import_react9.default.createElement(import_system6.Box, {
345
345
  ...props,
346
346
  as,
347
+ "aria-required": required,
347
348
  __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
348
349
  css: styles
349
350
  }, children, required && /* @__PURE__ */ import_react9.default.createElement(import_icons.Required, {
@@ -1449,7 +1450,8 @@ var NumberField = (0, import_react40.forwardRef)(
1449
1450
  display: "flex",
1450
1451
  alignItems: "stretch",
1451
1452
  "> input": {
1452
- flexGrow: 1
1453
+ flex: 1,
1454
+ minWidth: 0
1453
1455
  }
1454
1456
  },
1455
1457
  css: styles.group,
@@ -1795,9 +1797,8 @@ var messages = {
1795
1797
  // src/Select/Select.tsx
1796
1798
  var Chevron = ({ css }) => /* @__PURE__ */ import_react49.default.createElement(import_system35.Box, {
1797
1799
  as: "svg",
1798
- __baseCSS: { width: 16, height: 16 },
1800
+ __baseCSS: { width: 16, height: 16, fill: "none" },
1799
1801
  css,
1800
- fill: "none",
1801
1802
  viewBox: "0 0 24 24",
1802
1803
  stroke: "currentColor",
1803
1804
  strokeWidth: 2
@@ -2473,11 +2474,11 @@ var Table = ({
2473
2474
  as: "table",
2474
2475
  ref: tableRef,
2475
2476
  __baseCSS: {
2476
- display: "block",
2477
+ display: stretch ? "table" : "block",
2478
+ width: stretch ? "100%" : void 0,
2477
2479
  borderCollapse: "collapse",
2478
2480
  overflow: "auto",
2479
- whiteSpace: "nowrap",
2480
- width: stretch ? "100%" : void 0
2481
+ whiteSpace: "nowrap"
2481
2482
  },
2482
2483
  css: styles.table,
2483
2484
  ...gridProps
package/dist/index.mjs CHANGED
@@ -280,6 +280,7 @@ var Label = ({
280
280
  return /* @__PURE__ */ React9.createElement(Box5, {
281
281
  ...props,
282
282
  as,
283
+ "aria-required": required,
283
284
  __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
284
285
  css: styles
285
286
  }, children, required && /* @__PURE__ */ React9.createElement(Required, {
@@ -1412,7 +1413,8 @@ var NumberField = forwardRef7(
1412
1413
  display: "flex",
1413
1414
  alignItems: "stretch",
1414
1415
  "> input": {
1415
- flexGrow: 1
1416
+ flex: 1,
1417
+ minWidth: 0
1416
1418
  }
1417
1419
  },
1418
1420
  css: styles.group,
@@ -1782,9 +1784,8 @@ var messages = {
1782
1784
  // src/Select/Select.tsx
1783
1785
  var Chevron = ({ css }) => /* @__PURE__ */ React44.createElement(Box27, {
1784
1786
  as: "svg",
1785
- __baseCSS: { width: 16, height: 16 },
1787
+ __baseCSS: { width: 16, height: 16, fill: "none" },
1786
1788
  css,
1787
- fill: "none",
1788
1789
  viewBox: "0 0 24 24",
1789
1790
  stroke: "currentColor",
1790
1791
  strokeWidth: 2
@@ -2476,11 +2477,11 @@ var Table = ({
2476
2477
  as: "table",
2477
2478
  ref: tableRef,
2478
2479
  __baseCSS: {
2479
- display: "block",
2480
+ display: stretch ? "table" : "block",
2481
+ width: stretch ? "100%" : void 0,
2480
2482
  borderCollapse: "collapse",
2481
2483
  overflow: "auto",
2482
- whiteSpace: "nowrap",
2483
- width: stretch ? "100%" : void 0
2484
+ whiteSpace: "nowrap"
2484
2485
  },
2485
2486
  css: styles.table,
2486
2487
  ...gridProps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/components",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Components for the Marigold Design System",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,52 +23,52 @@
23
23
  "directory": "packages/components"
24
24
  },
25
25
  "dependencies": {
26
- "@marigold/icons": "1.1.1",
27
- "@marigold/system": "3.0.1",
26
+ "@marigold/icons": "1.1.3",
27
+ "@marigold/system": "3.0.3",
28
28
  "@marigold/tokens": "3.1.0",
29
29
  "@marigold/types": "0.5.4",
30
- "@react-aria/button": "3.6.1",
31
- "@react-aria/checkbox": "3.5.1",
32
- "@react-aria/dialog": "3.3.1",
33
- "@react-aria/focus": "3.8.0",
34
- "@react-aria/i18n": "3.6.0",
35
- "@react-aria/interactions": "3.11.0",
36
- "@react-aria/link": "3.3.3",
37
- "@react-aria/listbox": "3.6.1",
38
- "@react-aria/menu": "3.6.1",
39
- "@react-aria/numberfield": "3.3.1",
40
- "@react-aria/overlays": "3.10.1",
41
- "@react-aria/radio": "3.3.1",
42
- "@react-aria/select": "3.8.1",
43
- "@react-aria/separator": "3.2.3",
44
- "@react-aria/slider": "3.2.1",
30
+ "@react-aria/button": "3.6.2",
31
+ "@react-aria/checkbox": "3.6.0",
32
+ "@react-aria/dialog": "3.4.0",
33
+ "@react-aria/focus": "3.9.0",
34
+ "@react-aria/i18n": "3.6.1",
35
+ "@react-aria/interactions": "3.12.0",
36
+ "@react-aria/link": "3.3.4",
37
+ "@react-aria/listbox": "3.7.0",
38
+ "@react-aria/menu": "3.6.2",
39
+ "@react-aria/numberfield": "3.3.2",
40
+ "@react-aria/overlays": "3.11.0",
41
+ "@react-aria/radio": "3.4.0",
42
+ "@react-aria/select": "3.8.2",
43
+ "@react-aria/separator": "3.2.4",
44
+ "@react-aria/slider": "3.2.2",
45
45
  "@react-aria/ssr": "3.3.0",
46
- "@react-aria/switch": "3.2.3",
47
- "@react-aria/table": "3.4.1",
48
- "@react-aria/textfield": "3.7.1",
49
- "@react-aria/tooltip": "3.3.1",
50
- "@react-aria/utils": "3.13.3",
51
- "@react-aria/visually-hidden": "3.4.1",
52
- "@react-stately/checkbox": "3.2.1",
53
- "@react-stately/collections": "3.4.3",
46
+ "@react-aria/switch": "3.2.4",
47
+ "@react-aria/table": "3.5.0",
48
+ "@react-aria/textfield": "3.7.2",
49
+ "@react-aria/tooltip": "3.3.2",
50
+ "@react-aria/utils": "3.14.0",
51
+ "@react-aria/visually-hidden": "3.5.0",
52
+ "@react-stately/checkbox": "3.3.0",
53
+ "@react-stately/collections": "3.4.4",
54
54
  "@react-stately/data": "^3.6.0",
55
- "@react-stately/list": "3.5.3",
56
- "@react-stately/menu": "3.4.1",
57
- "@react-stately/numberfield": "3.2.1",
58
- "@react-stately/overlays": "3.4.1",
59
- "@react-stately/radio": "3.5.1",
60
- "@react-stately/select": "3.3.1",
61
- "@react-stately/slider": "3.2.1",
62
- "@react-stately/table": "3.4.0",
63
- "@react-stately/toggle": "3.4.1",
64
- "@react-stately/tooltip": "3.2.1",
65
- "@react-stately/tree": "3.3.3",
66
- "@react-types/checkbox": "3.3.3",
67
- "@react-types/dialog": "3.4.3",
68
- "@react-types/numberfield": "3.3.3",
69
- "@react-types/radio": "3.2.3",
70
- "@react-types/shared": "3.14.1",
71
- "@react-types/tooltip": "3.2.3",
55
+ "@react-stately/list": "3.5.4",
56
+ "@react-stately/menu": "3.4.2",
57
+ "@react-stately/numberfield": "3.2.2",
58
+ "@react-stately/overlays": "3.4.2",
59
+ "@react-stately/radio": "3.6.0",
60
+ "@react-stately/select": "3.3.2",
61
+ "@react-stately/slider": "3.2.2",
62
+ "@react-stately/table": "3.5.0",
63
+ "@react-stately/toggle": "3.4.2",
64
+ "@react-stately/tooltip": "3.2.2",
65
+ "@react-stately/tree": "3.3.4",
66
+ "@react-types/checkbox": "3.4.0",
67
+ "@react-types/dialog": "3.4.4",
68
+ "@react-types/numberfield": "3.3.4",
69
+ "@react-types/radio": "3.3.0",
70
+ "@react-types/shared": "3.15.0",
71
+ "@react-types/tooltip": "3.2.4",
72
72
  "deepmerge": "^4.2.2",
73
73
  "react-is": "18.2.0"
74
74
  },