@zentrades-ui/components 0.2.6 → 0.2.8

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.
@@ -521,6 +521,7 @@ var TextComponent = forwardRef5(function Text(props, ref) {
521
521
  } = props;
522
522
  const Element = as || DefaultTextElement;
523
523
  const variantStyles = applyTextVariantStyles(fontVariant);
524
+ const defaultElementReset = { margin: 0, padding: 0 };
524
525
  const truncationStyles = {};
525
526
  if (truncate) {
526
527
  truncationStyles.overflow = "hidden";
@@ -551,6 +552,7 @@ var TextComponent = forwardRef5(function Text(props, ref) {
551
552
  color,
552
553
  className,
553
554
  style: {
555
+ ...defaultElementReset,
554
556
  ...variantStyles,
555
557
  ...truncationStyles,
556
558
  ...style
@@ -1190,19 +1192,17 @@ var Checkbox = React4.forwardRef(
1190
1192
  {
1191
1193
  className: checkboxIndicator,
1192
1194
  style: { maxHeight: boxSize },
1193
- children: partialChecked ? /* @__PURE__ */ jsx9(MinusIcon, { size: iconSizeMap2[size], strokeWidth: 2.5 }) : /* @__PURE__ */ jsx9(CheckIcon, { size: iconSizeMap2[size], strokeWidth: 2.5 })
1195
+ children: partialChecked ? /* @__PURE__ */ jsx9(MinusIcon, { size: iconSizeMap2[size], strokeWidth: 1.5 }) : /* @__PURE__ */ jsx9(CheckIcon, { size: iconSizeMap2[size], strokeWidth: 1.5 })
1194
1196
  }
1195
1197
  )
1196
1198
  }
1197
1199
  );
1198
1200
  if (label || displayHelperText) {
1199
1201
  return /* @__PURE__ */ jsxs4(
1200
- "div",
1202
+ Stack2,
1201
1203
  {
1204
+ gap: "2xs",
1202
1205
  style: {
1203
- display: "flex",
1204
- flexDirection: "column",
1205
- gap: "2px",
1206
1206
  opacity: disabled ? 0.5 : 1
1207
1207
  },
1208
1208
  children: [
@@ -1210,7 +1210,6 @@ var Checkbox = React4.forwardRef(
1210
1210
  Inline2,
1211
1211
  {
1212
1212
  gap: "sm",
1213
- alignItems: "center",
1214
1213
  cursor: disabled ? "not-allowed" : "pointer",
1215
1214
  children: [
1216
1215
  checkbox,
@@ -1226,8 +1225,24 @@ var Checkbox = React4.forwardRef(
1226
1225
  }
1227
1226
  },
1228
1227
  children: [
1229
- /* @__PURE__ */ jsx9(Text2, { as: "label", fontVariant: "text-s-medium", htmlFor: checkboxId, children: label }),
1230
- required && /* @__PURE__ */ jsx9(Text2, { as: "span", color: "contentTertiary", fontVariant: "text-s-medium", children: "*" })
1228
+ /* @__PURE__ */ jsx9(
1229
+ Text2,
1230
+ {
1231
+ as: "label",
1232
+ fontVariant: "text-s-medium",
1233
+ htmlFor: checkboxId,
1234
+ children: label
1235
+ }
1236
+ ),
1237
+ required && /* @__PURE__ */ jsx9(
1238
+ Text2,
1239
+ {
1240
+ as: "span",
1241
+ color: "contentTertiary",
1242
+ fontVariant: "text-s-medium",
1243
+ children: "*"
1244
+ }
1245
+ )
1231
1246
  ]
1232
1247
  }
1233
1248
  )