@marigold/components 6.2.4 → 6.2.6
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.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +6 -8
- package/dist/index.mjs +6 -8
- package/package.json +6 -4
package/dist/index.d.mts
CHANGED
|
@@ -410,8 +410,9 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDis
|
|
|
410
410
|
shouldCloseOnSelect?: boolean;
|
|
411
411
|
variant?: string;
|
|
412
412
|
size?: string;
|
|
413
|
+
width?: WidthProp['width'];
|
|
413
414
|
}
|
|
414
|
-
declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
415
|
+
declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, width, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
415
416
|
|
|
416
417
|
type InsetProps = {
|
|
417
418
|
children: ReactNode;
|
|
@@ -424,7 +425,7 @@ type InsetProps = {
|
|
|
424
425
|
spaceX?: never;
|
|
425
426
|
spaceY?: never;
|
|
426
427
|
};
|
|
427
|
-
declare const Inset: ({ space, spaceX, spaceY, children
|
|
428
|
+
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
428
429
|
|
|
429
430
|
interface LinkOwnProps extends PressEvents {
|
|
430
431
|
disabled?: boolean;
|
|
@@ -492,7 +493,7 @@ declare const Message: ({ messageTitle, variant, size, children, ...props }: Mes
|
|
|
492
493
|
* Thus, we adjust our regular props to match them.
|
|
493
494
|
*/
|
|
494
495
|
type CustomProps = 'size' | 'width' | 'type' | 'value' | 'defaultValue' | 'step' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp' | 'min' | 'max';
|
|
495
|
-
interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
|
|
496
|
+
interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'label' | 'description' | 'errorMessage' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
|
|
496
497
|
variant?: string;
|
|
497
498
|
size?: string;
|
|
498
499
|
width?: WidthProp['width'];
|
|
@@ -553,7 +554,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
|
|
|
553
554
|
declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
554
555
|
|
|
555
556
|
type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
|
|
556
|
-
interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
|
|
557
|
+
interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children'>, AriaRadioProps {
|
|
557
558
|
width?: string;
|
|
558
559
|
variant?: string;
|
|
559
560
|
size?: string;
|
|
@@ -620,7 +621,7 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
|
620
621
|
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
621
622
|
|
|
622
623
|
type CustomSwitchProps = 'size' | 'value' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
|
|
623
|
-
interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps> {
|
|
624
|
+
interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps | 'children'> {
|
|
624
625
|
selected?: boolean;
|
|
625
626
|
variant?: string;
|
|
626
627
|
size?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -410,8 +410,9 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDis
|
|
|
410
410
|
shouldCloseOnSelect?: boolean;
|
|
411
411
|
variant?: string;
|
|
412
412
|
size?: string;
|
|
413
|
+
width?: WidthProp['width'];
|
|
413
414
|
}
|
|
414
|
-
declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
415
|
+
declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, width, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
415
416
|
|
|
416
417
|
type InsetProps = {
|
|
417
418
|
children: ReactNode;
|
|
@@ -424,7 +425,7 @@ type InsetProps = {
|
|
|
424
425
|
spaceX?: never;
|
|
425
426
|
spaceY?: never;
|
|
426
427
|
};
|
|
427
|
-
declare const Inset: ({ space, spaceX, spaceY, children
|
|
428
|
+
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
428
429
|
|
|
429
430
|
interface LinkOwnProps extends PressEvents {
|
|
430
431
|
disabled?: boolean;
|
|
@@ -492,7 +493,7 @@ declare const Message: ({ messageTitle, variant, size, children, ...props }: Mes
|
|
|
492
493
|
* Thus, we adjust our regular props to match them.
|
|
493
494
|
*/
|
|
494
495
|
type CustomProps = 'size' | 'width' | 'type' | 'value' | 'defaultValue' | 'step' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp' | 'min' | 'max';
|
|
495
|
-
interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
|
|
496
|
+
interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'label' | 'description' | 'errorMessage' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
|
|
496
497
|
variant?: string;
|
|
497
498
|
size?: string;
|
|
498
499
|
width?: WidthProp['width'];
|
|
@@ -553,7 +554,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
|
|
|
553
554
|
declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
554
555
|
|
|
555
556
|
type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
|
|
556
|
-
interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
|
|
557
|
+
interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children'>, AriaRadioProps {
|
|
557
558
|
width?: string;
|
|
558
559
|
variant?: string;
|
|
559
560
|
size?: string;
|
|
@@ -620,7 +621,7 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
|
620
621
|
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
621
622
|
|
|
622
623
|
type CustomSwitchProps = 'size' | 'value' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
|
|
623
|
-
interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps> {
|
|
624
|
+
interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps | 'children'> {
|
|
624
625
|
selected?: boolean;
|
|
625
626
|
variant?: string;
|
|
626
627
|
size?: string;
|
package/dist/index.js
CHANGED
|
@@ -2484,6 +2484,7 @@ var DatePicker = ({
|
|
|
2484
2484
|
shouldCloseOnSelect,
|
|
2485
2485
|
variant,
|
|
2486
2486
|
size,
|
|
2487
|
+
width,
|
|
2487
2488
|
...rest
|
|
2488
2489
|
}) => {
|
|
2489
2490
|
const props = {
|
|
@@ -2525,6 +2526,7 @@ var DatePicker = ({
|
|
|
2525
2526
|
error,
|
|
2526
2527
|
description: !state.isOpen && description,
|
|
2527
2528
|
triggerRef: ref,
|
|
2529
|
+
width,
|
|
2528
2530
|
action: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2529
2531
|
Button,
|
|
2530
2532
|
{
|
|
@@ -2552,17 +2554,13 @@ var DatePicker = ({
|
|
|
2552
2554
|
// src/Inset/Inset.tsx
|
|
2553
2555
|
var import_system40 = require("@marigold/system");
|
|
2554
2556
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2555
|
-
var Inset = ({
|
|
2556
|
-
space = 0,
|
|
2557
|
-
spaceX = 0,
|
|
2558
|
-
spaceY = 0,
|
|
2559
|
-
children
|
|
2560
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2557
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2561
2558
|
"div",
|
|
2562
2559
|
{
|
|
2563
2560
|
className: (0, import_system40.cn)(
|
|
2564
|
-
space
|
|
2565
|
-
import_system40.
|
|
2561
|
+
space && import_system40.paddingSpace[space],
|
|
2562
|
+
!space && spaceX && import_system40.paddingSpaceX[spaceX],
|
|
2563
|
+
!space && spaceY && import_system40.paddingSpaceY[spaceY]
|
|
2566
2564
|
),
|
|
2567
2565
|
children
|
|
2568
2566
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2452,6 +2452,7 @@ var DatePicker = ({
|
|
|
2452
2452
|
shouldCloseOnSelect,
|
|
2453
2453
|
variant,
|
|
2454
2454
|
size,
|
|
2455
|
+
width,
|
|
2455
2456
|
...rest
|
|
2456
2457
|
}) => {
|
|
2457
2458
|
const props = {
|
|
@@ -2493,6 +2494,7 @@ var DatePicker = ({
|
|
|
2493
2494
|
error,
|
|
2494
2495
|
description: !state.isOpen && description,
|
|
2495
2496
|
triggerRef: ref,
|
|
2497
|
+
width,
|
|
2496
2498
|
action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
|
|
2497
2499
|
Button,
|
|
2498
2500
|
{
|
|
@@ -2525,17 +2527,13 @@ import {
|
|
|
2525
2527
|
paddingSpaceY as paddingSpaceY2
|
|
2526
2528
|
} from "@marigold/system";
|
|
2527
2529
|
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2528
|
-
var Inset = ({
|
|
2529
|
-
space = 0,
|
|
2530
|
-
spaceX = 0,
|
|
2531
|
-
spaceY = 0,
|
|
2532
|
-
children
|
|
2533
|
-
}) => /* @__PURE__ */ jsx52(
|
|
2530
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
|
|
2534
2531
|
"div",
|
|
2535
2532
|
{
|
|
2536
2533
|
className: cn28(
|
|
2537
|
-
space
|
|
2538
|
-
|
|
2534
|
+
space && paddingSpace2[space],
|
|
2535
|
+
!space && spaceX && paddingSpaceX2[spaceX],
|
|
2536
|
+
!space && spaceY && paddingSpaceY2[spaceY]
|
|
2539
2537
|
),
|
|
2540
2538
|
children
|
|
2541
2539
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/components",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.6",
|
|
4
4
|
"description": "Components for the Marigold Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@react-types/table": "3.8.0",
|
|
84
84
|
"@react-types/tooltip": "3.4.3",
|
|
85
85
|
"react-is": "18.2.0",
|
|
86
|
-
"@marigold/icons": "1.2.
|
|
87
|
-
"@marigold/system": "6.2.
|
|
86
|
+
"@marigold/icons": "1.2.15",
|
|
87
|
+
"@marigold/system": "6.2.6",
|
|
88
88
|
"@marigold/types": "1.0.1"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
@@ -92,7 +92,9 @@
|
|
|
92
92
|
"react-dom": "17.x || 18.x"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@types/react": "18.2.
|
|
95
|
+
"@types/react": "18.2.21",
|
|
96
|
+
"@types/react-transition-group": "4.4.6",
|
|
97
|
+
"class-variance-authority": "0.7.0",
|
|
96
98
|
"react": "18.2.0",
|
|
97
99
|
"react-dom": "18.2.0",
|
|
98
100
|
"tsup": "7.2.0",
|