@ceed/ads 0.0.55 → 0.0.56
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 +7 -8
- package/framer/index.js +8 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1539,11 +1539,11 @@ var FormHelperText_default = FormHelperText;
|
|
|
1539
1539
|
// src/components/Input/Input.tsx
|
|
1540
1540
|
var MotionInput = motion13(JoyInput);
|
|
1541
1541
|
var Input = (props) => {
|
|
1542
|
-
const { label, helperText, error, style, ...innerProps } = props;
|
|
1542
|
+
const { label, helperText, error, style, size, color, ...innerProps } = props;
|
|
1543
1543
|
if (label) {
|
|
1544
|
-
return /* @__PURE__ */ React11.createElement(FormControl_default, { error }, /* @__PURE__ */ React11.createElement(FormLabel_default, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps
|
|
1544
|
+
return /* @__PURE__ */ React11.createElement(FormControl_default, { color, size, error }, /* @__PURE__ */ React11.createElement(FormLabel_default, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps }), helperText && /* @__PURE__ */ React11.createElement(FormHelperText_default, null, helperText));
|
|
1545
1545
|
}
|
|
1546
|
-
return /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps });
|
|
1546
|
+
return /* @__PURE__ */ React11.createElement(MotionInput, { color, size, ...innerProps });
|
|
1547
1547
|
};
|
|
1548
1548
|
Input.displayName = "Input";
|
|
1549
1549
|
|
|
@@ -2277,17 +2277,16 @@ var MotionOption = motion24(JoyOption);
|
|
|
2277
2277
|
var Option = MotionOption;
|
|
2278
2278
|
Option.displayName = "Option";
|
|
2279
2279
|
function Select(props) {
|
|
2280
|
-
const { label, helperText, error, ...innerProps } = props;
|
|
2280
|
+
const { label, helperText, error, size, color, ...innerProps } = props;
|
|
2281
2281
|
if (label) {
|
|
2282
|
-
return /* @__PURE__ */ React21.createElement(FormControl_default, { error }, /* @__PURE__ */ React21.createElement(FormLabel_default, null, label), /* @__PURE__ */ React21.createElement(
|
|
2282
|
+
return /* @__PURE__ */ React21.createElement(FormControl_default, { size, color, error }, /* @__PURE__ */ React21.createElement(FormLabel_default, null, label), /* @__PURE__ */ React21.createElement(
|
|
2283
2283
|
JoySelect,
|
|
2284
2284
|
{
|
|
2285
|
-
...innerProps
|
|
2286
|
-
color: error ? "danger" : innerProps.color
|
|
2285
|
+
...innerProps
|
|
2287
2286
|
}
|
|
2288
2287
|
), helperText && /* @__PURE__ */ React21.createElement(FormHelperText_default, null, helperText));
|
|
2289
2288
|
}
|
|
2290
|
-
return /* @__PURE__ */ React21.createElement(JoySelect, { ...innerProps });
|
|
2289
|
+
return /* @__PURE__ */ React21.createElement(JoySelect, { size, color, ...innerProps });
|
|
2291
2290
|
}
|
|
2292
2291
|
Select.displayName = "Select";
|
|
2293
2292
|
|
package/framer/index.js
CHANGED
|
@@ -40641,15 +40641,15 @@ var FormHelperText_default2 = FormHelperText3;
|
|
|
40641
40641
|
// src/components/Input/Input.tsx
|
|
40642
40642
|
var MotionInput = motion13(Input_default);
|
|
40643
40643
|
var Input3 = (props) => {
|
|
40644
|
-
const _a = props, { label, helperText, error, style: style4 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style"]);
|
|
40644
|
+
const _a = props, { label, helperText, error, style: style4, size, color: color2 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style", "size", "color"]);
|
|
40645
40645
|
if (label) {
|
|
40646
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
|
|
40646
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { color: color2, size, error, children: [
|
|
40647
40647
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40648
|
-
/* @__PURE__ */ jsx2(MotionInput,
|
|
40648
|
+
/* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps)),
|
|
40649
40649
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40650
40650
|
] });
|
|
40651
40651
|
}
|
|
40652
|
-
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps));
|
|
40652
|
+
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({ color: color2, size }, innerProps));
|
|
40653
40653
|
};
|
|
40654
40654
|
Input3.displayName = "Input";
|
|
40655
40655
|
|
|
@@ -41372,20 +41372,18 @@ var MotionOption = motion24(Option_default);
|
|
|
41372
41372
|
var Option3 = MotionOption;
|
|
41373
41373
|
Option3.displayName = "Option";
|
|
41374
41374
|
function Select3(props) {
|
|
41375
|
-
const _a = props, { label, helperText, error } = _a, innerProps = __objRest(_a, ["label", "helperText", "error"]);
|
|
41375
|
+
const _a = props, { label, helperText, error, size, color: color2 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "size", "color"]);
|
|
41376
41376
|
if (label) {
|
|
41377
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
|
|
41377
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { size, color: color2, error, children: [
|
|
41378
41378
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41379
41379
|
/* @__PURE__ */ jsx2(
|
|
41380
41380
|
Select_default,
|
|
41381
|
-
|
|
41382
|
-
color: error ? "danger" : innerProps.color
|
|
41383
|
-
})
|
|
41381
|
+
__spreadValues({}, innerProps)
|
|
41384
41382
|
),
|
|
41385
41383
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
41386
41384
|
] });
|
|
41387
41385
|
}
|
|
41388
|
-
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps));
|
|
41386
|
+
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({ size, color: color2 }, innerProps));
|
|
41389
41387
|
}
|
|
41390
41388
|
Select3.displayName = "Select";
|
|
41391
41389
|
|