@marigold/components 11.1.0 → 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 +10 -10
- package/dist/index.mjs +13 -7
- package/package.json +7 -8
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: 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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: 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,
|
|
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
|
|
4294
|
-
var TabContext = (0,
|
|
4295
|
-
var useTabContext = () => (0,
|
|
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
|
@@ -1268,7 +1268,12 @@ var _Header = ({ variant, size, ...props }) => {
|
|
|
1268
1268
|
|
|
1269
1269
|
// src/Headline/Headline.tsx
|
|
1270
1270
|
import { Heading as Heading2 } from "react-aria-components";
|
|
1271
|
-
import {
|
|
1271
|
+
import {
|
|
1272
|
+
cn as cn23,
|
|
1273
|
+
ensureCssVar,
|
|
1274
|
+
textAlign,
|
|
1275
|
+
useClassNames as useClassNames21
|
|
1276
|
+
} from "@marigold/system";
|
|
1272
1277
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
1273
1278
|
var _Headline = ({
|
|
1274
1279
|
variant,
|
|
@@ -1295,7 +1300,7 @@ var _Headline = ({
|
|
|
1295
1300
|
// possibly set by a <Container>
|
|
1296
1301
|
textAlign[align]
|
|
1297
1302
|
),
|
|
1298
|
-
style: { color: color &&
|
|
1303
|
+
style: { color: color && ensureCssVar(color, "color") },
|
|
1299
1304
|
children
|
|
1300
1305
|
}
|
|
1301
1306
|
);
|
|
@@ -2857,7 +2862,7 @@ var _Pagination = ({
|
|
|
2857
2862
|
/* @__PURE__ */ jsx81(
|
|
2858
2863
|
NavigationButton,
|
|
2859
2864
|
{
|
|
2860
|
-
|
|
2865
|
+
onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
|
|
2861
2866
|
"aria-label": "Page previous",
|
|
2862
2867
|
isDisabled: isFirstPage,
|
|
2863
2868
|
registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
|
|
@@ -2872,7 +2877,7 @@ var _Pagination = ({
|
|
|
2872
2877
|
{
|
|
2873
2878
|
page: pageNumber,
|
|
2874
2879
|
selected: pageNumber === currentPage,
|
|
2875
|
-
|
|
2880
|
+
onClick: () => handlePageChange(pageNumber),
|
|
2876
2881
|
registerRef: (ref) => registerRef(NavigationTypes.Page, pageNumber, ref)
|
|
2877
2882
|
},
|
|
2878
2883
|
pageNumber
|
|
@@ -2881,7 +2886,7 @@ var _Pagination = ({
|
|
|
2881
2886
|
/* @__PURE__ */ jsx81(
|
|
2882
2887
|
NavigationButton,
|
|
2883
2888
|
{
|
|
2884
|
-
|
|
2889
|
+
onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
|
|
2885
2890
|
"aria-label": "Page next",
|
|
2886
2891
|
isDisabled: isLastPage,
|
|
2887
2892
|
registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
|
|
@@ -3802,6 +3807,7 @@ import { Text as Text2 } from "react-aria-components";
|
|
|
3802
3807
|
import {
|
|
3803
3808
|
cn as cn58,
|
|
3804
3809
|
cursorStyle,
|
|
3810
|
+
ensureCssVar as ensureCssVar2,
|
|
3805
3811
|
fontWeight,
|
|
3806
3812
|
textAlign as textAlign2,
|
|
3807
3813
|
textSize,
|
|
@@ -3844,7 +3850,7 @@ var _Text = ({
|
|
|
3844
3850
|
weight && fontWeight[weight],
|
|
3845
3851
|
fontSize && textSize[fontSize]
|
|
3846
3852
|
),
|
|
3847
|
-
style: { color: color &&
|
|
3853
|
+
style: { color: color && ensureCssVar2(color, "color") },
|
|
3848
3854
|
children
|
|
3849
3855
|
}
|
|
3850
3856
|
);
|
|
@@ -3977,8 +3983,8 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
3977
3983
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
3978
3984
|
|
|
3979
3985
|
// src/XLoader/XLoader.tsx
|
|
3980
|
-
import { useId } from "react";
|
|
3981
3986
|
import { Dialog as Dialog2, Modal as Modal2 } from "react-aria-components";
|
|
3987
|
+
import { useId } from "@react-aria/utils";
|
|
3982
3988
|
import { useClassNames as useClassNames58 } from "@marigold/system";
|
|
3983
3989
|
|
|
3984
3990
|
// src/XLoader/BaseLoader.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/components",
|
|
3
|
-
"version": "11.
|
|
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.
|
|
47
|
-
"@marigold/types": "1.
|
|
45
|
+
"@marigold/system": "11.2.0",
|
|
46
|
+
"@marigold/types": "1.3.0"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
|
-
"react": "
|
|
51
|
-
"react-dom": "
|
|
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.
|
|
58
|
-
"@marigold/icons": "1.
|
|
56
|
+
"tsup": "8.3.6",
|
|
57
|
+
"@marigold/icons": "1.3.0",
|
|
59
58
|
"@marigold/tsconfig": "0.4.0"
|
|
60
59
|
},
|
|
61
60
|
"scripts": {
|