@parrot-co/parrot-ui 0.1.2 → 0.1.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/main.js +20 -15
- package/dist/main.js.map +1 -1
- package/dist/module.js +20 -15
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +3 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -445,6 +445,11 @@ const $ef10b8551376ecd8$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
445
445
|
})
|
|
446
446
|
]
|
|
447
447
|
}),
|
|
448
|
+
error && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $9e021ab4f609c8de$export$2e2bcd8739ae039), {
|
|
449
|
+
validationStatus: validationStatus,
|
|
450
|
+
...errorMessageProps,
|
|
451
|
+
children: error
|
|
452
|
+
}),
|
|
448
453
|
description && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3157c40f7d0e6fa2$export$5f1af8db9871e1d6), {
|
|
449
454
|
as: "div",
|
|
450
455
|
variant: "light",
|
|
@@ -453,11 +458,6 @@ const $ef10b8551376ecd8$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
453
458
|
lineHeight: "base",
|
|
454
459
|
...descriptionProps,
|
|
455
460
|
children: description
|
|
456
|
-
}),
|
|
457
|
-
error && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $9e021ab4f609c8de$export$2e2bcd8739ae039), {
|
|
458
|
-
validationStatus: validationStatus,
|
|
459
|
-
...errorMessageProps,
|
|
460
|
-
children: error
|
|
461
461
|
})
|
|
462
462
|
]
|
|
463
463
|
});
|
|
@@ -622,6 +622,7 @@ const $d95a2216d3ccf702$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
622
622
|
const Comp = as;
|
|
623
623
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)(Comp, {
|
|
624
624
|
style: style,
|
|
625
|
+
"data-is-toggle": isToggle,
|
|
625
626
|
"data-pressed": isPressed,
|
|
626
627
|
"data-radius": radius,
|
|
627
628
|
"data-icon-button": isIconButton,
|
|
@@ -829,6 +830,10 @@ const $7794de767effca39$export$379139ebc1c2b235 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
829
830
|
"data-appearance": appearance,
|
|
830
831
|
...inputProps
|
|
831
832
|
}),
|
|
833
|
+
error && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $9e021ab4f609c8de$export$2e2bcd8739ae039), {
|
|
834
|
+
...errorMessageProps,
|
|
835
|
+
children: error
|
|
836
|
+
}),
|
|
832
837
|
description && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3157c40f7d0e6fa2$export$5f1af8db9871e1d6), {
|
|
833
838
|
lineHeight: "base",
|
|
834
839
|
...descriptionProps,
|
|
@@ -836,10 +841,6 @@ const $7794de767effca39$export$379139ebc1c2b235 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
836
841
|
as: "div",
|
|
837
842
|
size: "sm",
|
|
838
843
|
children: description
|
|
839
|
-
}),
|
|
840
|
-
error && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $9e021ab4f609c8de$export$2e2bcd8739ae039), {
|
|
841
|
-
...errorMessageProps,
|
|
842
|
-
children: error
|
|
843
844
|
})
|
|
844
845
|
]
|
|
845
846
|
});
|
|
@@ -2809,7 +2810,7 @@ function $62ecff109eaa29fb$export$50e381fea3a45244(props) {
|
|
|
2809
2810
|
|
|
2810
2811
|
|
|
2811
2812
|
|
|
2812
|
-
const $6bbafdf52af7a191$export$ea98c603db73aee7 = /*#__PURE__*/ (0, $hgUW1$react).forwardRef(({ variant: variant = "outline", color: color = "violet", padded: padded = true, gap: gap = "sm", radius: radius, ...props }, ref)=>{
|
|
2813
|
+
const $6bbafdf52af7a191$export$ea98c603db73aee7 = /*#__PURE__*/ (0, $hgUW1$react).forwardRef(({ variant: variant = "outline", color: color = "violet", padded: padded = true, gap: gap = "sm", radius: radius, children: children, ...props }, ref)=>{
|
|
2813
2814
|
const theme = (0, $5fc28f26e128d5c0$export$93d4e7f90805808f)();
|
|
2814
2815
|
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e2f278d76a00796a$export$f51f4c4ede09e011), {
|
|
2815
2816
|
"data-radius": radius ?? theme?.radius ?? "lg",
|
|
@@ -2821,7 +2822,8 @@ const $6bbafdf52af7a191$export$ea98c603db73aee7 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
2821
2822
|
"data-color": color,
|
|
2822
2823
|
ref: ref,
|
|
2823
2824
|
gap: gap,
|
|
2824
|
-
...props
|
|
2825
|
+
...props,
|
|
2826
|
+
children: children
|
|
2825
2827
|
});
|
|
2826
2828
|
});
|
|
2827
2829
|
$6bbafdf52af7a191$export$ea98c603db73aee7.displayName = "Sticker";
|
|
@@ -2957,11 +2959,14 @@ function $4bad2c10a2b6e638$var$Dialog({ width: width = 400, title: title, onCanc
|
|
|
2957
2959
|
})
|
|
2958
2960
|
]
|
|
2959
2961
|
}),
|
|
2960
|
-
props.isDismissable && showCloseButton && /*#__PURE__*/ (0, $hgUW1$jsx)(
|
|
2962
|
+
props.isDismissable && showCloseButton && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
|
|
2961
2963
|
color: "gray",
|
|
2962
|
-
|
|
2963
|
-
variant: "ghost",
|
|
2964
|
-
|
|
2964
|
+
onClick: handleClose,
|
|
2965
|
+
"data-variant": "ghost",
|
|
2966
|
+
"data-color": "gray",
|
|
2967
|
+
className: "p-button size-sm",
|
|
2968
|
+
"data-radius": "full",
|
|
2969
|
+
"data-icon-button": true,
|
|
2965
2970
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$HiX), {
|
|
2966
2971
|
size: 18
|
|
2967
2972
|
})
|