@ceed/ads 0.0.89 → 0.0.91
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 +4 -4
- package/framer/index.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172,25 +172,25 @@ var Stack_default = Stack;
|
|
|
172
172
|
// src/components/Alert/Alert.tsx
|
|
173
173
|
var MotionAlert = motion4(JoyAlert);
|
|
174
174
|
function Alert(props) {
|
|
175
|
-
const { title, content, actions, color = "primary",
|
|
175
|
+
const { title, content, actions, color = "primary", ...innerProps } = props;
|
|
176
|
+
const innerVariant = props.variant === "outlined" ? void 0 : props.variant;
|
|
176
177
|
return /* @__PURE__ */ React3.createElement(
|
|
177
178
|
MotionAlert,
|
|
178
179
|
{
|
|
179
180
|
...innerProps,
|
|
180
181
|
color,
|
|
181
|
-
variant,
|
|
182
182
|
endDecorator: actions
|
|
183
183
|
},
|
|
184
184
|
/* @__PURE__ */ React3.createElement(Stack_default, null, title && /* @__PURE__ */ React3.createElement(
|
|
185
185
|
Typography_default,
|
|
186
186
|
{
|
|
187
187
|
color,
|
|
188
|
-
variant,
|
|
188
|
+
variant: innerVariant,
|
|
189
189
|
level: "title-md",
|
|
190
190
|
fontWeight: 600
|
|
191
191
|
},
|
|
192
192
|
title
|
|
193
|
-
), /* @__PURE__ */ React3.createElement(Typography_default, { color, variant, level: "body-md" }, content))
|
|
193
|
+
), /* @__PURE__ */ React3.createElement(Typography_default, { color, variant: innerVariant, level: "body-md" }, content))
|
|
194
194
|
);
|
|
195
195
|
}
|
|
196
196
|
Alert.displayName = "Alert";
|
package/framer/index.js
CHANGED
|
@@ -34896,25 +34896,25 @@ var Stack_default2 = Stack2;
|
|
|
34896
34896
|
// src/components/Alert/Alert.tsx
|
|
34897
34897
|
var MotionAlert = motion4(Alert_default);
|
|
34898
34898
|
function Alert3(props) {
|
|
34899
|
-
const _a2 = props, { title, content, actions, color: color2 = "primary"
|
|
34899
|
+
const _a2 = props, { title, content, actions, color: color2 = "primary" } = _a2, innerProps = __objRest(_a2, ["title", "content", "actions", "color"]);
|
|
34900
|
+
const innerVariant = props.variant === "outlined" ? void 0 : props.variant;
|
|
34900
34901
|
return /* @__PURE__ */ jsx2(
|
|
34901
34902
|
MotionAlert,
|
|
34902
34903
|
__spreadProps(__spreadValues({}, innerProps), {
|
|
34903
34904
|
color: color2,
|
|
34904
|
-
variant,
|
|
34905
34905
|
endDecorator: actions,
|
|
34906
34906
|
children: /* @__PURE__ */ jsxs2(Stack_default2, { children: [
|
|
34907
34907
|
title && /* @__PURE__ */ jsx2(
|
|
34908
34908
|
Typography_default2,
|
|
34909
34909
|
{
|
|
34910
34910
|
color: color2,
|
|
34911
|
-
variant,
|
|
34911
|
+
variant: innerVariant,
|
|
34912
34912
|
level: "title-md",
|
|
34913
34913
|
fontWeight: 600,
|
|
34914
34914
|
children: title
|
|
34915
34915
|
}
|
|
34916
34916
|
),
|
|
34917
|
-
/* @__PURE__ */ jsx2(Typography_default2, { color: color2, variant, level: "body-md", children: content })
|
|
34917
|
+
/* @__PURE__ */ jsx2(Typography_default2, { color: color2, variant: innerVariant, level: "body-md", children: content })
|
|
34918
34918
|
] })
|
|
34919
34919
|
})
|
|
34920
34920
|
);
|
|
@@ -45634,14 +45634,14 @@ var alertPropertyControls = {
|
|
|
45634
45634
|
title: "Actions",
|
|
45635
45635
|
type: ControlType2.ComponentInstance
|
|
45636
45636
|
},
|
|
45637
|
-
|
|
45638
|
-
title: "
|
|
45637
|
+
color: {
|
|
45638
|
+
title: "Color",
|
|
45639
45639
|
type: ControlType2.Enum,
|
|
45640
45640
|
options: ["primary", "danger", "warning", "neutral", "success"],
|
|
45641
45641
|
defaultValue: "primary"
|
|
45642
45642
|
},
|
|
45643
|
-
|
|
45644
|
-
title: "
|
|
45643
|
+
variant: {
|
|
45644
|
+
title: "Variant",
|
|
45645
45645
|
type: ControlType2.Enum,
|
|
45646
45646
|
options: ["solid", "outlined", "plain", "soft"],
|
|
45647
45647
|
defaultValue: "solid"
|