@marigold/components 11.1.1 → 11.2.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/dist/index.js CHANGED
@@ -1394,7 +1394,7 @@ var _Headline = ({
1394
1394
  // possibly set by a <Container>
1395
1395
  import_system37.textAlign[align]
1396
1396
  ),
1397
- style: { color: (0, import_system37.ensureCssVar)(color) },
1397
+ style: { color: color && (0, import_system37.ensureCssVar)(color, "color") },
1398
1398
  children
1399
1399
  }
1400
1400
  );
@@ -2938,7 +2938,7 @@ var _Pagination = ({
2938
2938
  /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2939
2939
  NavigationButton,
2940
2940
  {
2941
- onPress: () => handlePageChange(Math.max(1, currentPage - 1)),
2941
+ onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
2942
2942
  "aria-label": "Page previous",
2943
2943
  isDisabled: isFirstPage,
2944
2944
  registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
@@ -2953,7 +2953,7 @@ var _Pagination = ({
2953
2953
  {
2954
2954
  page: pageNumber,
2955
2955
  selected: pageNumber === currentPage,
2956
- onPress: () => handlePageChange(pageNumber),
2956
+ onClick: () => handlePageChange(pageNumber),
2957
2957
  registerRef: (ref) => registerRef(NavigationTypes.Page, pageNumber, ref)
2958
2958
  },
2959
2959
  pageNumber
@@ -2962,7 +2962,7 @@ var _Pagination = ({
2962
2962
  /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2963
2963
  NavigationButton,
2964
2964
  {
2965
- onPress: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
2965
+ onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
2966
2966
  "aria-label": "Page next",
2967
2967
  isDisabled: isLastPage,
2968
2968
  registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
@@ -3882,7 +3882,7 @@ var _Text = ({
3882
3882
  weight && import_system84.fontWeight[weight],
3883
3883
  fontSize && import_system84.textSize[fontSize]
3884
3884
  ),
3885
- style: { color: (0, import_system84.ensureCssVar)(color) },
3885
+ style: { color: color && (0, import_system84.ensureCssVar)(color, "color") },
3886
3886
  children
3887
3887
  }
3888
3888
  );
@@ -4015,8 +4015,8 @@ _Tooltip.Trigger = _TooltipTrigger;
4015
4015
  var import_visually_hidden = require("@react-aria/visually-hidden");
4016
4016
 
4017
4017
  // src/XLoader/XLoader.tsx
4018
- var import_react63 = require("react");
4019
4018
  var import_react_aria_components61 = require("react-aria-components");
4019
+ var import_utils8 = require("@react-aria/utils");
4020
4020
  var import_system89 = require("@marigold/system");
4021
4021
 
4022
4022
  // src/XLoader/BaseLoader.tsx
@@ -4272,7 +4272,7 @@ var BaseLoader = ({
4272
4272
  // src/XLoader/XLoader.tsx
4273
4273
  var import_jsx_runtime110 = require("react/jsx-runtime");
4274
4274
  var LoaderFullScreen = (props) => {
4275
- const id = (0, import_react63.useId)();
4275
+ const id = (0, import_utils8.useId)();
4276
4276
  return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components61.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components61.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(BaseLoader, { id, ...props }) }) }) });
4277
4277
  };
4278
4278
  var LoaderSection = (props) => {
@@ -4290,9 +4290,9 @@ var import_react_aria_components65 = require("react-aria-components");
4290
4290
  var import_system92 = require("@marigold/system");
4291
4291
 
4292
4292
  // src/Tabs/Context.ts
4293
- var import_react64 = require("react");
4294
- var TabContext = (0, import_react64.createContext)({});
4295
- var useTabContext = () => (0, import_react64.useContext)(TabContext);
4293
+ var import_react63 = require("react");
4294
+ var TabContext = (0, import_react63.createContext)({});
4295
+ var useTabContext = () => (0, import_react63.useContext)(TabContext);
4296
4296
 
4297
4297
  // src/Tabs/Tab.tsx
4298
4298
  var import_react_aria_components62 = require("react-aria-components");
package/dist/index.mjs CHANGED
@@ -1300,7 +1300,7 @@ var _Headline = ({
1300
1300
  // possibly set by a <Container>
1301
1301
  textAlign[align]
1302
1302
  ),
1303
- style: { color: ensureCssVar(color) },
1303
+ style: { color: color && ensureCssVar(color, "color") },
1304
1304
  children
1305
1305
  }
1306
1306
  );
@@ -2862,7 +2862,7 @@ var _Pagination = ({
2862
2862
  /* @__PURE__ */ jsx81(
2863
2863
  NavigationButton,
2864
2864
  {
2865
- onPress: () => handlePageChange(Math.max(1, currentPage - 1)),
2865
+ onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
2866
2866
  "aria-label": "Page previous",
2867
2867
  isDisabled: isFirstPage,
2868
2868
  registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
@@ -2877,7 +2877,7 @@ var _Pagination = ({
2877
2877
  {
2878
2878
  page: pageNumber,
2879
2879
  selected: pageNumber === currentPage,
2880
- onPress: () => handlePageChange(pageNumber),
2880
+ onClick: () => handlePageChange(pageNumber),
2881
2881
  registerRef: (ref) => registerRef(NavigationTypes.Page, pageNumber, ref)
2882
2882
  },
2883
2883
  pageNumber
@@ -2886,7 +2886,7 @@ var _Pagination = ({
2886
2886
  /* @__PURE__ */ jsx81(
2887
2887
  NavigationButton,
2888
2888
  {
2889
- onPress: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
2889
+ onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
2890
2890
  "aria-label": "Page next",
2891
2891
  isDisabled: isLastPage,
2892
2892
  registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
@@ -3850,7 +3850,7 @@ var _Text = ({
3850
3850
  weight && fontWeight[weight],
3851
3851
  fontSize && textSize[fontSize]
3852
3852
  ),
3853
- style: { color: ensureCssVar2(color) },
3853
+ style: { color: color && ensureCssVar2(color, "color") },
3854
3854
  children
3855
3855
  }
3856
3856
  );
@@ -3983,8 +3983,8 @@ _Tooltip.Trigger = _TooltipTrigger;
3983
3983
  import { VisuallyHidden } from "@react-aria/visually-hidden";
3984
3984
 
3985
3985
  // src/XLoader/XLoader.tsx
3986
- import { useId } from "react";
3987
3986
  import { Dialog as Dialog2, Modal as Modal2 } from "react-aria-components";
3987
+ import { useId } from "@react-aria/utils";
3988
3988
  import { useClassNames as useClassNames58 } from "@marigold/system";
3989
3989
 
3990
3990
  // src/XLoader/BaseLoader.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/components",
3
- "version": "11.1.1",
3
+ "version": "11.2.0",
4
4
  "description": "Components for the Marigold Design System",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@internationalized/date": "3.7.0",
27
- "@react-aria/accordion": "3.0.0-alpha.37",
28
27
  "@react-aria/button": "3.11.1",
29
28
  "@react-aria/calendar": "3.7.0",
30
29
  "@react-aria/focus": "3.19.1",
@@ -43,19 +42,19 @@
43
42
  "@react-types/shared": "3.27.0",
44
43
  "@react-types/table": "3.10.4",
45
44
  "react-aria-components": "1.6.0",
46
- "@marigold/system": "11.1.1",
47
- "@marigold/types": "1.2.1"
45
+ "@marigold/system": "11.2.0",
46
+ "@marigold/types": "1.3.0"
48
47
  },
49
48
  "peerDependencies": {
50
- "react": "19.x",
51
- "react-dom": "19.x"
49
+ "react": ">=17.0.0",
50
+ "react-dom": ">=17.0.0"
52
51
  },
53
52
  "devDependencies": {
54
53
  "@types/react": "19.0.8",
55
54
  "react": "19.0.0",
56
55
  "react-dom": "19.0.0",
57
- "tsup": "8.3.5",
58
- "@marigold/icons": "1.2.69",
56
+ "tsup": "8.3.6",
57
+ "@marigold/icons": "1.3.0",
59
58
  "@marigold/tsconfig": "0.4.0"
60
59
  },
61
60
  "scripts": {