@moises.ai/design-system 3.9.2 → 3.9.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 CHANGED
@@ -11106,47 +11106,44 @@ const sS = "_content_1cwsl_2", aS = "_iconWrapper_1cwsl_10", oS = "_iconWrapperL
11106
11106
  secondaryTextLow: mS,
11107
11107
  secondaryTextHigh: gS
11108
11108
  }, fS = ({
11109
- title: n = "Title",
11110
- secondaryText: e = "Secondary text",
11111
- buttonLabel: t = "Button",
11109
+ title: n,
11110
+ secondaryText: e,
11111
+ buttonLabel: t,
11112
11112
  onButtonClick: r,
11113
11113
  icon: a,
11114
- showIcon: o = !0,
11115
- showSecondaryText: i = !0,
11116
- showButton: l = !0,
11117
- className: c,
11118
- titleMultiline: u = !1,
11119
- emphasis: h = "low",
11120
- size: A = "medium",
11121
- children: p,
11122
- ...y
11114
+ className: o,
11115
+ titleMultiline: i = !1,
11116
+ emphasis: l = "low",
11117
+ size: c = "medium",
11118
+ children: u,
11119
+ ...h
11123
11120
  }) => {
11124
- const f = p != null || t != null;
11121
+ const A = u != null || t != null;
11125
11122
  return /* @__PURE__ */ s(
11126
11123
  C,
11127
11124
  {
11128
- className: v(c),
11125
+ className: v(o),
11129
11126
  direction: "column",
11130
11127
  align: "center",
11131
11128
  justify: "center",
11132
- ...y,
11129
+ ...h,
11133
11130
  children: /* @__PURE__ */ g(C, { direction: "column", align: "center", justify: "center", className: Je.content, gap: "5", py: "6", children: [
11134
- o && /* @__PURE__ */ s("div", { className: v(Je.iconWrapper, {
11135
- [Je.iconWrapperLarge]: A === "large",
11136
- [Je.iconWrapperMedium]: A === "medium",
11137
- [Je.iconWrapperLow]: h === "low",
11138
- [Je.iconWrapperHigh]: h === "high"
11131
+ a && /* @__PURE__ */ s("div", { className: v(Je.iconWrapper, {
11132
+ [Je.iconWrapperLarge]: c === "large",
11133
+ [Je.iconWrapperMedium]: c === "medium",
11134
+ [Je.iconWrapperLow]: l === "low",
11135
+ [Je.iconWrapperHigh]: l === "high"
11139
11136
  }), "aria-hidden": !0, children: a }),
11140
11137
  /* @__PURE__ */ g(C, { direction: "column", align: "center", justify: "center", className: Je.textGroup, gap: "2", children: [
11141
11138
  /* @__PURE__ */ s(
11142
11139
  L,
11143
11140
  {
11144
- size: A === "large" ? "7" : "4",
11141
+ size: c === "large" ? "7" : "4",
11145
11142
  weight: "medium",
11146
11143
  className: v({
11147
- [Je.titleMultiline]: u,
11148
- [Je.titleLow]: h === "low",
11149
- [Je.titleHigh]: h === "high"
11144
+ [Je.titleMultiline]: i,
11145
+ [Je.titleLow]: l === "low",
11146
+ [Je.titleHigh]: l === "high"
11150
11147
  }),
11151
11148
  children: n
11152
11149
  }
@@ -11154,21 +11151,21 @@ const sS = "_content_1cwsl_2", aS = "_iconWrapper_1cwsl_10", oS = "_iconWrapperL
11154
11151
  e && /* @__PURE__ */ s(
11155
11152
  L,
11156
11153
  {
11157
- size: A === "large" ? "3" : "2",
11154
+ size: c === "large" ? "3" : "2",
11158
11155
  weight: "regular",
11159
11156
  className: v(Je.secondaryText, {
11160
- [Je.secondaryTextLow]: h === "low",
11161
- [Je.secondaryTextHigh]: h === "high"
11157
+ [Je.secondaryTextLow]: l === "low",
11158
+ [Je.secondaryTextHigh]: l === "high"
11162
11159
  }),
11163
11160
  children: e
11164
11161
  }
11165
11162
  )
11166
11163
  ] }),
11167
- l && f && /* @__PURE__ */ s("div", { children: p ?? /* @__PURE__ */ s(
11164
+ A && /* @__PURE__ */ s("div", { children: u ?? /* @__PURE__ */ s(
11168
11165
  Ne,
11169
11166
  {
11170
- size: A === "large" ? "3" : "2",
11171
- variant: h === "low" ? "soft" : "solid",
11167
+ size: c === "large" ? "3" : "2",
11168
+ variant: l === "low" ? "soft" : "solid",
11172
11169
  onClick: r,
11173
11170
  "aria-label": t,
11174
11171
  children: t
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -7,14 +7,11 @@ import { Text } from '../Text/Text'
7
7
  // Emphasis: Low High
8
8
  // Size: Medium Large
9
9
  export const EmptyState = ({
10
- title = 'Title',
11
- secondaryText = 'Secondary text',
12
- buttonLabel = 'Button',
10
+ title,
11
+ secondaryText,
12
+ buttonLabel,
13
13
  onButtonClick,
14
14
  icon,
15
- showIcon = true,
16
- showSecondaryText = true,
17
- showButton = true,
18
15
  className,
19
16
  titleMultiline = false,
20
17
  emphasis = 'low',
@@ -32,7 +29,7 @@ export const EmptyState = ({
32
29
  {...props}
33
30
  >
34
31
  <Flex direction="column" align="center" justify="center" className={styles.content} gap="5" py="6">
35
- {showIcon && (
32
+ {icon && (
36
33
  <div className={classNames(styles.iconWrapper, {
37
34
  [styles.iconWrapperLarge]: size === 'large',
38
35
  [styles.iconWrapperMedium]: size === 'medium',
@@ -65,7 +62,7 @@ export const EmptyState = ({
65
62
  >{secondaryText}</Text>
66
63
  )}
67
64
  </Flex>
68
- {showButton && hasButtonContent && (
65
+ {hasButtonContent && (
69
66
  <div>
70
67
  {children ?? (
71
68
  <Button