@marigold/components 11.2.2 → 11.2.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 +128 -85
- package/dist/index.mjs +103 -60
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2337,7 +2337,7 @@ var _DialogTrigger = ({
|
|
|
2337
2337
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2338
2338
|
var CloseButton = ({ className }) => {
|
|
2339
2339
|
const ctx = (0, import_react26.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
|
|
2340
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2341
2341
|
"button",
|
|
2342
2342
|
{
|
|
2343
2343
|
className: (0, import_system40.cn)(
|
|
@@ -2355,7 +2355,7 @@ var CloseButton = ({ className }) => {
|
|
|
2355
2355
|
}
|
|
2356
2356
|
) })
|
|
2357
2357
|
}
|
|
2358
|
-
)
|
|
2358
|
+
);
|
|
2359
2359
|
};
|
|
2360
2360
|
var _Dialog = ({
|
|
2361
2361
|
variant,
|
|
@@ -3114,36 +3114,64 @@ var icons = {
|
|
|
3114
3114
|
"svg",
|
|
3115
3115
|
{
|
|
3116
3116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3117
|
-
viewBox: "0
|
|
3117
|
+
viewBox: "0 0 24 24",
|
|
3118
3118
|
fill: "currentColor",
|
|
3119
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3119
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3120
|
+
"path",
|
|
3121
|
+
{
|
|
3122
|
+
fillRule: "evenodd",
|
|
3123
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",
|
|
3124
|
+
clipRule: "evenodd"
|
|
3125
|
+
}
|
|
3126
|
+
)
|
|
3120
3127
|
}
|
|
3121
3128
|
),
|
|
3122
3129
|
info: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3123
3130
|
"svg",
|
|
3124
3131
|
{
|
|
3125
3132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3126
|
-
viewBox: "0
|
|
3133
|
+
viewBox: "0 0 24 24",
|
|
3127
3134
|
fill: "currentColor",
|
|
3128
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3135
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3136
|
+
"path",
|
|
3137
|
+
{
|
|
3138
|
+
fillRule: "evenodd",
|
|
3139
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3140
|
+
clipRule: "evenodd"
|
|
3141
|
+
}
|
|
3142
|
+
)
|
|
3129
3143
|
}
|
|
3130
3144
|
),
|
|
3131
3145
|
warning: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3132
3146
|
"svg",
|
|
3133
3147
|
{
|
|
3134
3148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3135
|
-
viewBox: "0
|
|
3149
|
+
viewBox: "0 0 24 24",
|
|
3136
3150
|
fill: "currentColor",
|
|
3137
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3151
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3152
|
+
"path",
|
|
3153
|
+
{
|
|
3154
|
+
fillRule: "evenodd",
|
|
3155
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3156
|
+
clipRule: "evenodd"
|
|
3157
|
+
}
|
|
3158
|
+
)
|
|
3138
3159
|
}
|
|
3139
3160
|
),
|
|
3140
3161
|
error: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3141
3162
|
"svg",
|
|
3142
3163
|
{
|
|
3143
3164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3144
|
-
viewBox: "0
|
|
3165
|
+
viewBox: "0 0 24 24",
|
|
3145
3166
|
fill: "currentColor",
|
|
3146
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3167
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3168
|
+
"path",
|
|
3169
|
+
{
|
|
3170
|
+
fillRule: "evenodd",
|
|
3171
|
+
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3172
|
+
clipRule: "evenodd"
|
|
3173
|
+
}
|
|
3174
|
+
)
|
|
3147
3175
|
}
|
|
3148
3176
|
)
|
|
3149
3177
|
};
|
|
@@ -3181,7 +3209,7 @@ var SectionMessage = ({
|
|
|
3181
3209
|
className: (0, import_system63.cn)("grid auto-rows-min", classNames3.container),
|
|
3182
3210
|
children: [
|
|
3183
3211
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_system63.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon4, {}) }),
|
|
3184
|
-
closeButton && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3212
|
+
closeButton && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3185
3213
|
"button",
|
|
3186
3214
|
{
|
|
3187
3215
|
...buttonProps,
|
|
@@ -3198,7 +3226,7 @@ var SectionMessage = ({
|
|
|
3198
3226
|
}
|
|
3199
3227
|
) })
|
|
3200
3228
|
}
|
|
3201
|
-
)
|
|
3229
|
+
),
|
|
3202
3230
|
children
|
|
3203
3231
|
]
|
|
3204
3232
|
}
|
|
@@ -8957,34 +8985,42 @@ var _NumberField = (0, import_react47.forwardRef)(
|
|
|
8957
8985
|
isRequired: required,
|
|
8958
8986
|
...rest
|
|
8959
8987
|
};
|
|
8960
|
-
const showStepper = !hideStepper;
|
|
8961
|
-
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
className:
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
+
const showStepper = !hideStepper && !readOnly;
|
|
8989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8990
|
+
FieldBase,
|
|
8991
|
+
{
|
|
8992
|
+
as: import_react_aria_components46.NumberField,
|
|
8993
|
+
...props,
|
|
8994
|
+
"data-readonly": readOnly ? "true" : void 0,
|
|
8995
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react_aria_components46.Group, { className: (0, import_system66.cn)("flex items-stretch", classNames3.group), children: [
|
|
8996
|
+
showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8997
|
+
_StepButton,
|
|
8998
|
+
{
|
|
8999
|
+
className: classNames3.stepper,
|
|
9000
|
+
direction: "down",
|
|
9001
|
+
slot: "decrement"
|
|
9002
|
+
}
|
|
9003
|
+
),
|
|
9004
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9005
|
+
_Input,
|
|
9006
|
+
{
|
|
9007
|
+
ref,
|
|
9008
|
+
variant,
|
|
9009
|
+
size: size2,
|
|
9010
|
+
className: classNames3.input
|
|
9011
|
+
}
|
|
9012
|
+
) }),
|
|
9013
|
+
showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9014
|
+
_StepButton,
|
|
9015
|
+
{
|
|
9016
|
+
className: classNames3.stepper,
|
|
9017
|
+
direction: "up",
|
|
9018
|
+
slot: "increment"
|
|
9019
|
+
}
|
|
9020
|
+
)
|
|
9021
|
+
] })
|
|
9022
|
+
}
|
|
9023
|
+
);
|
|
8988
9024
|
}
|
|
8989
9025
|
);
|
|
8990
9026
|
|
|
@@ -9764,7 +9800,7 @@ var _Switch = (0, import_react60.forwardRef)(
|
|
|
9764
9800
|
var import_react68 = require("react");
|
|
9765
9801
|
var import_table9 = require("@react-aria/table");
|
|
9766
9802
|
var import_table10 = require("@react-stately/table");
|
|
9767
|
-
var
|
|
9803
|
+
var import_system85 = require("@marigold/system");
|
|
9768
9804
|
|
|
9769
9805
|
// src/Table/Context.tsx
|
|
9770
9806
|
var import_react61 = require("react");
|
|
@@ -9942,14 +9978,21 @@ var TableColumnHeader = ({
|
|
|
9942
9978
|
|
|
9943
9979
|
// src/Table/TableHeader.tsx
|
|
9944
9980
|
var import_table5 = require("@react-aria/table");
|
|
9981
|
+
var import_system82 = require("@marigold/system");
|
|
9945
9982
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
9946
9983
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
9947
9984
|
const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
|
|
9985
|
+
const { classNames: classNames3 } = useTableContext();
|
|
9948
9986
|
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
9949
9987
|
"thead",
|
|
9950
9988
|
{
|
|
9951
9989
|
...rowGroupProps,
|
|
9952
|
-
className:
|
|
9990
|
+
className: (0, import_system82.cn)(
|
|
9991
|
+
classNames3 == null ? void 0 : classNames3.thead,
|
|
9992
|
+
// for sticky header &th needs to be sticky for b2b and core theme
|
|
9993
|
+
// for rui sticky is applied to thead
|
|
9994
|
+
stickyHeader ? "sticky [&_th]:sticky [&_th]:top-0" : ""
|
|
9995
|
+
),
|
|
9953
9996
|
children
|
|
9954
9997
|
}
|
|
9955
9998
|
);
|
|
@@ -9976,13 +10019,13 @@ var import_focus4 = require("@react-aria/focus");
|
|
|
9976
10019
|
var import_interactions3 = require("@react-aria/interactions");
|
|
9977
10020
|
var import_table7 = require("@react-aria/table");
|
|
9978
10021
|
var import_utils11 = require("@react-aria/utils");
|
|
9979
|
-
var
|
|
10022
|
+
var import_system83 = require("@marigold/system");
|
|
9980
10023
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
9981
10024
|
var TableRow = ({ children, row }) => {
|
|
9982
10025
|
const ref = (0, import_react66.useRef)(null);
|
|
9983
10026
|
const { interactive, state, ...ctx } = useTableContext();
|
|
9984
10027
|
const { variant, size: size2 } = row.props;
|
|
9985
|
-
const classNames3 = (0,
|
|
10028
|
+
const classNames3 = (0, import_system83.useClassNames)({
|
|
9986
10029
|
component: "Table",
|
|
9987
10030
|
variant: variant || ctx.variant,
|
|
9988
10031
|
size: size2 || ctx.size
|
|
@@ -10000,7 +10043,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10000
10043
|
const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
|
|
10001
10044
|
isDisabled: disabled || !interactive
|
|
10002
10045
|
});
|
|
10003
|
-
const stateProps = (0,
|
|
10046
|
+
const stateProps = (0, import_system83.useStateProps)({
|
|
10004
10047
|
disabled,
|
|
10005
10048
|
selected,
|
|
10006
10049
|
hover: isHovered,
|
|
@@ -10011,7 +10054,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10011
10054
|
"tr",
|
|
10012
10055
|
{
|
|
10013
10056
|
ref,
|
|
10014
|
-
className: (0,
|
|
10057
|
+
className: (0, import_system83.cn)(
|
|
10015
10058
|
[
|
|
10016
10059
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
10017
10060
|
],
|
|
@@ -10030,7 +10073,7 @@ var import_focus5 = require("@react-aria/focus");
|
|
|
10030
10073
|
var import_interactions4 = require("@react-aria/interactions");
|
|
10031
10074
|
var import_table8 = require("@react-aria/table");
|
|
10032
10075
|
var import_utils12 = require("@react-aria/utils");
|
|
10033
|
-
var
|
|
10076
|
+
var import_system84 = require("@marigold/system");
|
|
10034
10077
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
10035
10078
|
var TableSelectAllCell = ({
|
|
10036
10079
|
column: column2,
|
|
@@ -10049,7 +10092,7 @@ var TableSelectAllCell = ({
|
|
|
10049
10092
|
const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
|
|
10050
10093
|
const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
|
|
10051
10094
|
const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
|
|
10052
|
-
const stateProps = (0,
|
|
10095
|
+
const stateProps = (0, import_system84.useStateProps)({
|
|
10053
10096
|
hover: isHovered,
|
|
10054
10097
|
focusVisible: isFocusVisible
|
|
10055
10098
|
});
|
|
@@ -10057,7 +10100,7 @@ var TableSelectAllCell = ({
|
|
|
10057
10100
|
"th",
|
|
10058
10101
|
{
|
|
10059
10102
|
ref,
|
|
10060
|
-
className: (0,
|
|
10103
|
+
className: (0, import_system84.cn)(import_system84.width[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
|
|
10061
10104
|
...(0, import_utils12.mergeProps)(columnHeaderProps, hoverProps, focusProps),
|
|
10062
10105
|
...stateProps,
|
|
10063
10106
|
align,
|
|
@@ -10090,7 +10133,7 @@ var Table = ({
|
|
|
10090
10133
|
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
10091
10134
|
}
|
|
10092
10135
|
const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
|
|
10093
|
-
const classNames3 = (0,
|
|
10136
|
+
const classNames3 = (0, import_system85.useClassNames)({
|
|
10094
10137
|
component: "Table",
|
|
10095
10138
|
variant,
|
|
10096
10139
|
size: size2
|
|
@@ -10104,7 +10147,7 @@ var Table = ({
|
|
|
10104
10147
|
"table",
|
|
10105
10148
|
{
|
|
10106
10149
|
ref: tableRef,
|
|
10107
|
-
className: (0,
|
|
10150
|
+
className: (0, import_system85.cn)(
|
|
10108
10151
|
"group/table",
|
|
10109
10152
|
"border-collapse",
|
|
10110
10153
|
stretch ? "table w-full" : "block",
|
|
@@ -10172,7 +10215,7 @@ Table.Row = import_table10.Row;
|
|
|
10172
10215
|
|
|
10173
10216
|
// src/Text/Text.tsx
|
|
10174
10217
|
var import_react_aria_components55 = require("react-aria-components");
|
|
10175
|
-
var
|
|
10218
|
+
var import_system86 = require("@marigold/system");
|
|
10176
10219
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
10177
10220
|
var _Text = ({
|
|
10178
10221
|
variant,
|
|
@@ -10187,7 +10230,7 @@ var _Text = ({
|
|
|
10187
10230
|
as = "div",
|
|
10188
10231
|
...props
|
|
10189
10232
|
}) => {
|
|
10190
|
-
const classNames3 = (0,
|
|
10233
|
+
const classNames3 = (0, import_system86.useClassNames)({
|
|
10191
10234
|
component: "Text",
|
|
10192
10235
|
variant,
|
|
10193
10236
|
size: size2
|
|
@@ -10199,17 +10242,17 @@ var _Text = ({
|
|
|
10199
10242
|
{
|
|
10200
10243
|
...props,
|
|
10201
10244
|
...elementType,
|
|
10202
|
-
className: (0,
|
|
10245
|
+
className: (0, import_system86.cn)(
|
|
10203
10246
|
"max-w-(--maxTextWidth)",
|
|
10204
10247
|
// possibly set by a <Container>
|
|
10205
10248
|
classNames3,
|
|
10206
|
-
fontStyle &&
|
|
10207
|
-
align &&
|
|
10208
|
-
cursor2 &&
|
|
10209
|
-
weight &&
|
|
10210
|
-
fontSize &&
|
|
10249
|
+
fontStyle && import_system86.textStyle[fontStyle],
|
|
10250
|
+
align && import_system86.textAlign[align],
|
|
10251
|
+
cursor2 && import_system86.cursorStyle[cursor2],
|
|
10252
|
+
weight && import_system86.fontWeight[weight],
|
|
10253
|
+
fontSize && import_system86.textSize[fontSize]
|
|
10211
10254
|
),
|
|
10212
|
-
style: { color: color && (0,
|
|
10255
|
+
style: { color: color && (0, import_system86.ensureCssVar)(color, "color") },
|
|
10213
10256
|
children
|
|
10214
10257
|
}
|
|
10215
10258
|
);
|
|
@@ -10218,7 +10261,7 @@ var _Text = ({
|
|
|
10218
10261
|
// src/TextArea/TextArea.tsx
|
|
10219
10262
|
var import_react69 = require("react");
|
|
10220
10263
|
var import_react_aria_components56 = require("react-aria-components");
|
|
10221
|
-
var
|
|
10264
|
+
var import_system87 = require("@marigold/system");
|
|
10222
10265
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
10223
10266
|
var _TextArea = (0, import_react69.forwardRef)(
|
|
10224
10267
|
({
|
|
@@ -10231,7 +10274,7 @@ var _TextArea = (0, import_react69.forwardRef)(
|
|
|
10231
10274
|
rows,
|
|
10232
10275
|
...rest
|
|
10233
10276
|
}, ref) => {
|
|
10234
|
-
const classNames3 = (0,
|
|
10277
|
+
const classNames3 = (0, import_system87.useClassNames)({ component: "TextArea", variant, size: size2 });
|
|
10235
10278
|
const props = {
|
|
10236
10279
|
isDisabled: disabled,
|
|
10237
10280
|
isReadOnly: readOnly,
|
|
@@ -10261,7 +10304,7 @@ var _TextField = (0, import_react70.forwardRef)(
|
|
|
10261
10304
|
);
|
|
10262
10305
|
|
|
10263
10306
|
// src/Tiles/Tiles.tsx
|
|
10264
|
-
var
|
|
10307
|
+
var import_system88 = require("@marigold/system");
|
|
10265
10308
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
10266
10309
|
var Tiles = ({
|
|
10267
10310
|
space = 0,
|
|
@@ -10279,13 +10322,13 @@ var Tiles = ({
|
|
|
10279
10322
|
"div",
|
|
10280
10323
|
{
|
|
10281
10324
|
...props,
|
|
10282
|
-
className: (0,
|
|
10325
|
+
className: (0, import_system88.cn)(
|
|
10283
10326
|
"grid",
|
|
10284
|
-
|
|
10327
|
+
import_system88.gapSpace[space],
|
|
10285
10328
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
10286
10329
|
equalHeight && "auto-rows-[1fr]"
|
|
10287
10330
|
),
|
|
10288
|
-
style: (0,
|
|
10331
|
+
style: (0, import_system88.createVar)({ column: column2, tilesWidth }),
|
|
10289
10332
|
children
|
|
10290
10333
|
}
|
|
10291
10334
|
);
|
|
@@ -10293,7 +10336,7 @@ var Tiles = ({
|
|
|
10293
10336
|
|
|
10294
10337
|
// src/Tooltip/Tooltip.tsx
|
|
10295
10338
|
var import_react_aria_components59 = require("react-aria-components");
|
|
10296
|
-
var
|
|
10339
|
+
var import_system89 = require("@marigold/system");
|
|
10297
10340
|
|
|
10298
10341
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10299
10342
|
var import_react_aria_components58 = require("react-aria-components");
|
|
@@ -10321,13 +10364,13 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10321
10364
|
...rest,
|
|
10322
10365
|
isOpen: open
|
|
10323
10366
|
};
|
|
10324
|
-
const classNames3 = (0,
|
|
10367
|
+
const classNames3 = (0, import_system89.useClassNames)({ component: "Tooltip", variant, size: size2 });
|
|
10325
10368
|
const portal = usePortalContainer();
|
|
10326
10369
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
10327
10370
|
import_react_aria_components59.Tooltip,
|
|
10328
10371
|
{
|
|
10329
10372
|
...props,
|
|
10330
|
-
className: (0,
|
|
10373
|
+
className: (0, import_system89.cn)("group/tooltip", classNames3.container),
|
|
10331
10374
|
UNSTABLE_portalContainer: portal,
|
|
10332
10375
|
children: [
|
|
10333
10376
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components59.OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
@@ -10340,11 +10383,11 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
10340
10383
|
|
|
10341
10384
|
// src/TagGroup/Tag.tsx
|
|
10342
10385
|
var import_react_aria_components61 = require("react-aria-components");
|
|
10343
|
-
var
|
|
10386
|
+
var import_system91 = require("@marigold/system");
|
|
10344
10387
|
|
|
10345
10388
|
// src/TagGroup/TagGroup.tsx
|
|
10346
10389
|
var import_react_aria_components60 = require("react-aria-components");
|
|
10347
|
-
var
|
|
10390
|
+
var import_system90 = require("@marigold/system");
|
|
10348
10391
|
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
10349
10392
|
var _TagGroup = ({
|
|
10350
10393
|
width,
|
|
@@ -10355,7 +10398,7 @@ var _TagGroup = ({
|
|
|
10355
10398
|
size: size2,
|
|
10356
10399
|
...rest
|
|
10357
10400
|
}) => {
|
|
10358
|
-
const classNames3 = (0,
|
|
10401
|
+
const classNames3 = (0, import_system90.useClassNames)({ component: "Tag", variant, size: size2 });
|
|
10359
10402
|
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(FieldBase, { as: import_react_aria_components60.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
10360
10403
|
import_react_aria_components60.TagList,
|
|
10361
10404
|
{
|
|
@@ -10374,7 +10417,7 @@ var CloseButton2 = ({ className }) => {
|
|
|
10374
10417
|
};
|
|
10375
10418
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10376
10419
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10377
|
-
const classNames3 = (0,
|
|
10420
|
+
const classNames3 = (0, import_system91.useClassNames)({ component: "Tag", variant, size: size2 });
|
|
10378
10421
|
const props = {
|
|
10379
10422
|
isDisabled: disabled,
|
|
10380
10423
|
...rest
|
|
@@ -10384,13 +10427,13 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10384
10427
|
{
|
|
10385
10428
|
textValue,
|
|
10386
10429
|
...props,
|
|
10387
|
-
className: (0,
|
|
10430
|
+
className: (0, import_system91.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10388
10431
|
children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
|
|
10389
10432
|
children,
|
|
10390
10433
|
allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
10391
10434
|
CloseButton2,
|
|
10392
10435
|
{
|
|
10393
|
-
className: (0,
|
|
10436
|
+
className: (0, import_system91.cn)("flex items-center", classNames3.closeButton)
|
|
10394
10437
|
}
|
|
10395
10438
|
)
|
|
10396
10439
|
] })
|
|
@@ -10405,12 +10448,12 @@ var import_visually_hidden = require("@react-aria/visually-hidden");
|
|
|
10405
10448
|
// src/XLoader/XLoader.tsx
|
|
10406
10449
|
var import_react_aria_components63 = require("react-aria-components");
|
|
10407
10450
|
var import_utils14 = require("@react-aria/utils");
|
|
10408
|
-
var
|
|
10451
|
+
var import_system93 = require("@marigold/system");
|
|
10409
10452
|
|
|
10410
10453
|
// src/XLoader/BaseLoader.tsx
|
|
10411
10454
|
var import_react_aria_components62 = require("react-aria-components");
|
|
10412
10455
|
var import_i18n6 = require("@react-aria/i18n");
|
|
10413
|
-
var
|
|
10456
|
+
var import_system92 = require("@marigold/system");
|
|
10414
10457
|
|
|
10415
10458
|
// src/intl/messages.ts
|
|
10416
10459
|
var intlMessages2 = {
|
|
@@ -10432,7 +10475,7 @@ var BaseLoader = ({
|
|
|
10432
10475
|
...props
|
|
10433
10476
|
}) => {
|
|
10434
10477
|
const stringFormatter = (0, import_i18n6.useLocalizedStringFormatter)(intlMessages2, "marigold");
|
|
10435
|
-
const className = (0,
|
|
10478
|
+
const className = (0, import_system92.useClassNames)({ component: "XLoader", variant, size: size2 });
|
|
10436
10479
|
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
10437
10480
|
import_react_aria_components62.ProgressBar,
|
|
10438
10481
|
{
|
|
@@ -10664,7 +10707,7 @@ var LoaderFullScreen = (props) => {
|
|
|
10664
10707
|
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_aria_components63.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_aria_components63.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(BaseLoader, { id, ...props }) }) }) });
|
|
10665
10708
|
};
|
|
10666
10709
|
var LoaderSection = (props) => {
|
|
10667
|
-
const className = (0,
|
|
10710
|
+
const className = (0, import_system93.useClassNames)({
|
|
10668
10711
|
component: "Underlay",
|
|
10669
10712
|
variant: "modal",
|
|
10670
10713
|
className: "flex size-full items-center justify-center"
|
|
@@ -10675,7 +10718,7 @@ var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PUR
|
|
|
10675
10718
|
|
|
10676
10719
|
// src/Tabs/Tabs.tsx
|
|
10677
10720
|
var import_react_aria_components67 = require("react-aria-components");
|
|
10678
|
-
var
|
|
10721
|
+
var import_system96 = require("@marigold/system");
|
|
10679
10722
|
|
|
10680
10723
|
// src/Tabs/Context.ts
|
|
10681
10724
|
var import_react71 = require("react");
|
|
@@ -10684,7 +10727,7 @@ var useTabContext = () => (0, import_react71.useContext)(TabContext);
|
|
|
10684
10727
|
|
|
10685
10728
|
// src/Tabs/Tab.tsx
|
|
10686
10729
|
var import_react_aria_components64 = require("react-aria-components");
|
|
10687
|
-
var
|
|
10730
|
+
var import_system94 = require("@marigold/system");
|
|
10688
10731
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
10689
10732
|
var _Tab = (props) => {
|
|
10690
10733
|
const { classNames: classNames3 } = useTabContext();
|
|
@@ -10692,7 +10735,7 @@ var _Tab = (props) => {
|
|
|
10692
10735
|
import_react_aria_components64.Tab,
|
|
10693
10736
|
{
|
|
10694
10737
|
...props,
|
|
10695
|
-
className: (0,
|
|
10738
|
+
className: (0, import_system94.cn)(
|
|
10696
10739
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
10697
10740
|
classNames3.tab
|
|
10698
10741
|
),
|
|
@@ -10703,7 +10746,7 @@ var _Tab = (props) => {
|
|
|
10703
10746
|
|
|
10704
10747
|
// src/Tabs/TabList.tsx
|
|
10705
10748
|
var import_react_aria_components65 = require("react-aria-components");
|
|
10706
|
-
var
|
|
10749
|
+
var import_system95 = require("@marigold/system");
|
|
10707
10750
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
10708
10751
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10709
10752
|
const { classNames: classNames3 } = useTabContext();
|
|
@@ -10711,7 +10754,7 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10711
10754
|
import_react_aria_components65.TabList,
|
|
10712
10755
|
{
|
|
10713
10756
|
...props,
|
|
10714
|
-
className: (0,
|
|
10757
|
+
className: (0, import_system95.cn)("flex", import_system95.gapSpace[space], classNames3.tabsList),
|
|
10715
10758
|
children: props.children
|
|
10716
10759
|
}
|
|
10717
10760
|
);
|
|
@@ -10732,7 +10775,7 @@ var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
|
10732
10775
|
isDisabled: disabled,
|
|
10733
10776
|
...rest
|
|
10734
10777
|
};
|
|
10735
|
-
const classNames3 = (0,
|
|
10778
|
+
const classNames3 = (0, import_system96.useClassNames)({
|
|
10736
10779
|
component: "Tabs",
|
|
10737
10780
|
size: size2,
|
|
10738
10781
|
variant
|
package/dist/index.mjs
CHANGED
|
@@ -2266,7 +2266,7 @@ var _DialogTrigger = ({
|
|
|
2266
2266
|
import { jsx as jsx46, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2267
2267
|
var CloseButton = ({ className }) => {
|
|
2268
2268
|
const ctx = useContext8(OverlayTriggerStateContext);
|
|
2269
|
-
return /* @__PURE__ */ jsx46(
|
|
2269
|
+
return /* @__PURE__ */ jsx46(
|
|
2270
2270
|
"button",
|
|
2271
2271
|
{
|
|
2272
2272
|
className: cn27(
|
|
@@ -2284,7 +2284,7 @@ var CloseButton = ({ className }) => {
|
|
|
2284
2284
|
}
|
|
2285
2285
|
) })
|
|
2286
2286
|
}
|
|
2287
|
-
)
|
|
2287
|
+
);
|
|
2288
2288
|
};
|
|
2289
2289
|
var _Dialog = ({
|
|
2290
2290
|
variant,
|
|
@@ -3061,36 +3061,64 @@ var icons = {
|
|
|
3061
3061
|
"svg",
|
|
3062
3062
|
{
|
|
3063
3063
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3064
|
-
viewBox: "0
|
|
3064
|
+
viewBox: "0 0 24 24",
|
|
3065
3065
|
fill: "currentColor",
|
|
3066
|
-
children: /* @__PURE__ */ jsx74(
|
|
3066
|
+
children: /* @__PURE__ */ jsx74(
|
|
3067
|
+
"path",
|
|
3068
|
+
{
|
|
3069
|
+
fillRule: "evenodd",
|
|
3070
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",
|
|
3071
|
+
clipRule: "evenodd"
|
|
3072
|
+
}
|
|
3073
|
+
)
|
|
3067
3074
|
}
|
|
3068
3075
|
),
|
|
3069
3076
|
info: () => /* @__PURE__ */ jsx74(
|
|
3070
3077
|
"svg",
|
|
3071
3078
|
{
|
|
3072
3079
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3073
|
-
viewBox: "0
|
|
3080
|
+
viewBox: "0 0 24 24",
|
|
3074
3081
|
fill: "currentColor",
|
|
3075
|
-
children: /* @__PURE__ */ jsx74(
|
|
3082
|
+
children: /* @__PURE__ */ jsx74(
|
|
3083
|
+
"path",
|
|
3084
|
+
{
|
|
3085
|
+
fillRule: "evenodd",
|
|
3086
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3087
|
+
clipRule: "evenodd"
|
|
3088
|
+
}
|
|
3089
|
+
)
|
|
3076
3090
|
}
|
|
3077
3091
|
),
|
|
3078
3092
|
warning: () => /* @__PURE__ */ jsx74(
|
|
3079
3093
|
"svg",
|
|
3080
3094
|
{
|
|
3081
3095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3082
|
-
viewBox: "0
|
|
3096
|
+
viewBox: "0 0 24 24",
|
|
3083
3097
|
fill: "currentColor",
|
|
3084
|
-
children: /* @__PURE__ */ jsx74(
|
|
3098
|
+
children: /* @__PURE__ */ jsx74(
|
|
3099
|
+
"path",
|
|
3100
|
+
{
|
|
3101
|
+
fillRule: "evenodd",
|
|
3102
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3103
|
+
clipRule: "evenodd"
|
|
3104
|
+
}
|
|
3105
|
+
)
|
|
3085
3106
|
}
|
|
3086
3107
|
),
|
|
3087
3108
|
error: () => /* @__PURE__ */ jsx74(
|
|
3088
3109
|
"svg",
|
|
3089
3110
|
{
|
|
3090
3111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3091
|
-
viewBox: "0
|
|
3112
|
+
viewBox: "0 0 24 24",
|
|
3092
3113
|
fill: "currentColor",
|
|
3093
|
-
children: /* @__PURE__ */ jsx74(
|
|
3114
|
+
children: /* @__PURE__ */ jsx74(
|
|
3115
|
+
"path",
|
|
3116
|
+
{
|
|
3117
|
+
fillRule: "evenodd",
|
|
3118
|
+
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
3119
|
+
clipRule: "evenodd"
|
|
3120
|
+
}
|
|
3121
|
+
)
|
|
3094
3122
|
}
|
|
3095
3123
|
)
|
|
3096
3124
|
};
|
|
@@ -3128,7 +3156,7 @@ var SectionMessage = ({
|
|
|
3128
3156
|
className: cn40("grid auto-rows-min", classNames3.container),
|
|
3129
3157
|
children: [
|
|
3130
3158
|
/* @__PURE__ */ jsx74("div", { className: cn40("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ jsx74(Icon4, {}) }),
|
|
3131
|
-
closeButton && /* @__PURE__ */ jsx74(
|
|
3159
|
+
closeButton && /* @__PURE__ */ jsx74(
|
|
3132
3160
|
"button",
|
|
3133
3161
|
{
|
|
3134
3162
|
...buttonProps,
|
|
@@ -3145,7 +3173,7 @@ var SectionMessage = ({
|
|
|
3145
3173
|
}
|
|
3146
3174
|
) })
|
|
3147
3175
|
}
|
|
3148
|
-
)
|
|
3176
|
+
),
|
|
3149
3177
|
children
|
|
3150
3178
|
]
|
|
3151
3179
|
}
|
|
@@ -8909,34 +8937,42 @@ var _NumberField = forwardRef21(
|
|
|
8909
8937
|
isRequired: required,
|
|
8910
8938
|
...rest
|
|
8911
8939
|
};
|
|
8912
|
-
const showStepper = !hideStepper;
|
|
8913
|
-
return /* @__PURE__ */ jsx79(
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
className:
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
+
const showStepper = !hideStepper && !readOnly;
|
|
8941
|
+
return /* @__PURE__ */ jsx79(
|
|
8942
|
+
FieldBase,
|
|
8943
|
+
{
|
|
8944
|
+
as: NumberField,
|
|
8945
|
+
...props,
|
|
8946
|
+
"data-readonly": readOnly ? "true" : void 0,
|
|
8947
|
+
children: /* @__PURE__ */ jsxs29(Group4, { className: cn43("flex items-stretch", classNames3.group), children: [
|
|
8948
|
+
showStepper && /* @__PURE__ */ jsx79(
|
|
8949
|
+
_StepButton,
|
|
8950
|
+
{
|
|
8951
|
+
className: classNames3.stepper,
|
|
8952
|
+
direction: "down",
|
|
8953
|
+
slot: "decrement"
|
|
8954
|
+
}
|
|
8955
|
+
),
|
|
8956
|
+
/* @__PURE__ */ jsx79("div", { className: "flex-1", children: /* @__PURE__ */ jsx79(
|
|
8957
|
+
_Input,
|
|
8958
|
+
{
|
|
8959
|
+
ref,
|
|
8960
|
+
variant,
|
|
8961
|
+
size: size2,
|
|
8962
|
+
className: classNames3.input
|
|
8963
|
+
}
|
|
8964
|
+
) }),
|
|
8965
|
+
showStepper && /* @__PURE__ */ jsx79(
|
|
8966
|
+
_StepButton,
|
|
8967
|
+
{
|
|
8968
|
+
className: classNames3.stepper,
|
|
8969
|
+
direction: "up",
|
|
8970
|
+
slot: "increment"
|
|
8971
|
+
}
|
|
8972
|
+
)
|
|
8973
|
+
] })
|
|
8974
|
+
}
|
|
8975
|
+
);
|
|
8940
8976
|
}
|
|
8941
8977
|
);
|
|
8942
8978
|
|
|
@@ -9740,7 +9776,7 @@ import {
|
|
|
9740
9776
|
Row,
|
|
9741
9777
|
useTableState
|
|
9742
9778
|
} from "@react-stately/table";
|
|
9743
|
-
import { cn as
|
|
9779
|
+
import { cn as cn61, useClassNames as useClassNames55 } from "@marigold/system";
|
|
9744
9780
|
|
|
9745
9781
|
// src/Table/Context.tsx
|
|
9746
9782
|
import { createContext as createContext12, useContext as useContext21 } from "react";
|
|
@@ -9918,14 +9954,21 @@ var TableColumnHeader = ({
|
|
|
9918
9954
|
|
|
9919
9955
|
// src/Table/TableHeader.tsx
|
|
9920
9956
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
9957
|
+
import { cn as cn58 } from "@marigold/system";
|
|
9921
9958
|
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
9922
9959
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
9923
9960
|
const { rowGroupProps } = useTableRowGroup2();
|
|
9961
|
+
const { classNames: classNames3 } = useTableContext();
|
|
9924
9962
|
return /* @__PURE__ */ jsx98(
|
|
9925
9963
|
"thead",
|
|
9926
9964
|
{
|
|
9927
9965
|
...rowGroupProps,
|
|
9928
|
-
className:
|
|
9966
|
+
className: cn58(
|
|
9967
|
+
classNames3 == null ? void 0 : classNames3.thead,
|
|
9968
|
+
// for sticky header &th needs to be sticky for b2b and core theme
|
|
9969
|
+
// for rui sticky is applied to thead
|
|
9970
|
+
stickyHeader ? "sticky [&_th]:sticky [&_th]:top-0" : ""
|
|
9971
|
+
),
|
|
9929
9972
|
children
|
|
9930
9973
|
}
|
|
9931
9974
|
);
|
|
@@ -9952,7 +9995,7 @@ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
|
9952
9995
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
9953
9996
|
import { useTableRow } from "@react-aria/table";
|
|
9954
9997
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
9955
|
-
import { cn as
|
|
9998
|
+
import { cn as cn59, useClassNames as useClassNames54, useStateProps as useStateProps4 } from "@marigold/system";
|
|
9956
9999
|
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
9957
10000
|
var TableRow = ({ children, row }) => {
|
|
9958
10001
|
const ref = useRef13(null);
|
|
@@ -9987,7 +10030,7 @@ var TableRow = ({ children, row }) => {
|
|
|
9987
10030
|
"tr",
|
|
9988
10031
|
{
|
|
9989
10032
|
ref,
|
|
9990
|
-
className:
|
|
10033
|
+
className: cn59(
|
|
9991
10034
|
[
|
|
9992
10035
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
9993
10036
|
],
|
|
@@ -10010,7 +10053,7 @@ import {
|
|
|
10010
10053
|
} from "@react-aria/table";
|
|
10011
10054
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
10012
10055
|
import {
|
|
10013
|
-
cn as
|
|
10056
|
+
cn as cn60,
|
|
10014
10057
|
width as twWidth6,
|
|
10015
10058
|
useStateProps as useStateProps5
|
|
10016
10059
|
} from "@marigold/system";
|
|
@@ -10040,7 +10083,7 @@ var TableSelectAllCell = ({
|
|
|
10040
10083
|
"th",
|
|
10041
10084
|
{
|
|
10042
10085
|
ref,
|
|
10043
|
-
className:
|
|
10086
|
+
className: cn60(twWidth6[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
|
|
10044
10087
|
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
10045
10088
|
...stateProps,
|
|
10046
10089
|
align,
|
|
@@ -10087,7 +10130,7 @@ var Table = ({
|
|
|
10087
10130
|
"table",
|
|
10088
10131
|
{
|
|
10089
10132
|
ref: tableRef,
|
|
10090
|
-
className:
|
|
10133
|
+
className: cn61(
|
|
10091
10134
|
"group/table",
|
|
10092
10135
|
"border-collapse",
|
|
10093
10136
|
stretch ? "table w-full" : "block",
|
|
@@ -10156,7 +10199,7 @@ Table.Row = Row;
|
|
|
10156
10199
|
// src/Text/Text.tsx
|
|
10157
10200
|
import { Text as Text2 } from "react-aria-components";
|
|
10158
10201
|
import {
|
|
10159
|
-
cn as
|
|
10202
|
+
cn as cn62,
|
|
10160
10203
|
cursorStyle,
|
|
10161
10204
|
ensureCssVar as ensureCssVar2,
|
|
10162
10205
|
fontWeight,
|
|
@@ -10191,7 +10234,7 @@ var _Text = ({
|
|
|
10191
10234
|
{
|
|
10192
10235
|
...props,
|
|
10193
10236
|
...elementType,
|
|
10194
|
-
className:
|
|
10237
|
+
className: cn62(
|
|
10195
10238
|
"max-w-(--maxTextWidth)",
|
|
10196
10239
|
// possibly set by a <Container>
|
|
10197
10240
|
classNames3,
|
|
@@ -10253,7 +10296,7 @@ var _TextField = forwardRef30(
|
|
|
10253
10296
|
);
|
|
10254
10297
|
|
|
10255
10298
|
// src/Tiles/Tiles.tsx
|
|
10256
|
-
import { cn as
|
|
10299
|
+
import { cn as cn63, createVar as createVar9, gapSpace as gapSpace9 } from "@marigold/system";
|
|
10257
10300
|
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10258
10301
|
var Tiles = ({
|
|
10259
10302
|
space = 0,
|
|
@@ -10271,7 +10314,7 @@ var Tiles = ({
|
|
|
10271
10314
|
"div",
|
|
10272
10315
|
{
|
|
10273
10316
|
...props,
|
|
10274
|
-
className:
|
|
10317
|
+
className: cn63(
|
|
10275
10318
|
"grid",
|
|
10276
10319
|
gapSpace9[space],
|
|
10277
10320
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -10285,7 +10328,7 @@ var Tiles = ({
|
|
|
10285
10328
|
|
|
10286
10329
|
// src/Tooltip/Tooltip.tsx
|
|
10287
10330
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
10288
|
-
import { cn as
|
|
10331
|
+
import { cn as cn64, useClassNames as useClassNames58 } from "@marigold/system";
|
|
10289
10332
|
|
|
10290
10333
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10291
10334
|
import { TooltipTrigger } from "react-aria-components";
|
|
@@ -10319,7 +10362,7 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10319
10362
|
Tooltip,
|
|
10320
10363
|
{
|
|
10321
10364
|
...props,
|
|
10322
|
-
className:
|
|
10365
|
+
className: cn64("group/tooltip", classNames3.container),
|
|
10323
10366
|
UNSTABLE_portalContainer: portal,
|
|
10324
10367
|
children: [
|
|
10325
10368
|
/* @__PURE__ */ jsx108(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx108("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx108("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
@@ -10332,7 +10375,7 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
10332
10375
|
|
|
10333
10376
|
// src/TagGroup/Tag.tsx
|
|
10334
10377
|
import { Button as Button7, Tag } from "react-aria-components";
|
|
10335
|
-
import { cn as
|
|
10378
|
+
import { cn as cn65, useClassNames as useClassNames60 } from "@marigold/system";
|
|
10336
10379
|
|
|
10337
10380
|
// src/TagGroup/TagGroup.tsx
|
|
10338
10381
|
import { TagGroup, TagList } from "react-aria-components";
|
|
@@ -10376,13 +10419,13 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10376
10419
|
{
|
|
10377
10420
|
textValue,
|
|
10378
10421
|
...props,
|
|
10379
|
-
className:
|
|
10422
|
+
className: cn65("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10380
10423
|
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs40(Fragment11, { children: [
|
|
10381
10424
|
children,
|
|
10382
10425
|
allowsRemoving && /* @__PURE__ */ jsx110(
|
|
10383
10426
|
CloseButton2,
|
|
10384
10427
|
{
|
|
10385
|
-
className:
|
|
10428
|
+
className: cn65("flex items-center", classNames3.closeButton)
|
|
10386
10429
|
}
|
|
10387
10430
|
)
|
|
10388
10431
|
] })
|
|
@@ -10676,7 +10719,7 @@ var useTabContext = () => useContext22(TabContext);
|
|
|
10676
10719
|
|
|
10677
10720
|
// src/Tabs/Tab.tsx
|
|
10678
10721
|
import { Tab } from "react-aria-components";
|
|
10679
|
-
import { cn as
|
|
10722
|
+
import { cn as cn66 } from "@marigold/system";
|
|
10680
10723
|
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
10681
10724
|
var _Tab = (props) => {
|
|
10682
10725
|
const { classNames: classNames3 } = useTabContext();
|
|
@@ -10684,7 +10727,7 @@ var _Tab = (props) => {
|
|
|
10684
10727
|
Tab,
|
|
10685
10728
|
{
|
|
10686
10729
|
...props,
|
|
10687
|
-
className:
|
|
10730
|
+
className: cn66(
|
|
10688
10731
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
10689
10732
|
classNames3.tab
|
|
10690
10733
|
),
|
|
@@ -10695,7 +10738,7 @@ var _Tab = (props) => {
|
|
|
10695
10738
|
|
|
10696
10739
|
// src/Tabs/TabList.tsx
|
|
10697
10740
|
import { TabList } from "react-aria-components";
|
|
10698
|
-
import { cn as
|
|
10741
|
+
import { cn as cn67, gapSpace as gapSpace10 } from "@marigold/system";
|
|
10699
10742
|
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
10700
10743
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10701
10744
|
const { classNames: classNames3 } = useTabContext();
|
|
@@ -10703,7 +10746,7 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10703
10746
|
TabList,
|
|
10704
10747
|
{
|
|
10705
10748
|
...props,
|
|
10706
|
-
className:
|
|
10749
|
+
className: cn67("flex", gapSpace10[space], classNames3.tabsList),
|
|
10707
10750
|
children: props.children
|
|
10708
10751
|
}
|
|
10709
10752
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/components",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.3",
|
|
4
4
|
"description": "Components for the Marigold Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@react-types/shared": "3.28.0",
|
|
43
43
|
"@react-types/table": "3.11.0",
|
|
44
44
|
"react-aria-components": "1.7.0",
|
|
45
|
-
"@marigold/system": "11.2.
|
|
45
|
+
"@marigold/system": "11.2.3",
|
|
46
46
|
"@marigold/types": "1.3.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react": "19.0.0",
|
|
55
55
|
"react-dom": "19.0.0",
|
|
56
56
|
"tsup": "8.3.6",
|
|
57
|
-
"@marigold/icons": "1.3.
|
|
57
|
+
"@marigold/icons": "1.3.3",
|
|
58
58
|
"@marigold/tsconfig": "0.4.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|