@parrot-co/parrot-ui 0.0.95 → 0.0.96

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 CHANGED
@@ -272,7 +272,7 @@ const $c3a954a7c0cb5109$export$21ee1313e2afe36c = (props, ref)=>{
272
272
  const { justify: justify, align: align, direction: direction, gap: gap = "sm", columnGap: columnGap, rowGap: rowGap, inline: inline, wrap: wrap, stack: stack, className: className, ...otherProps } = props;
273
273
  const flexDirection = stack ? "column" : direction ?? "row";
274
274
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $eb8f27c3596a0e6b$export$e71c4d32a2263218), {
275
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, inline ? "display-inline-flex" : "display-flex", `flex-direction-${flexDirection}`, `flex-${wrap}`, `flex-justify-${justify}`, `flex-align-${align}`, (0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("gap", gap), (0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("column-gap", columnGap), (0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("row-gap", rowGap)),
275
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, inline ? "display-inline-flex" : "display-flex", `flex-direction-${flexDirection}`, wrap && `flex-${wrap}`, justify && `flex-justify-${justify}`, align && `flex-align-${align}`, (0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("gap", gap), (0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("column-gap", columnGap), (0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("row-gap", rowGap)),
276
276
  // TODO - Fix types here - seems to work just fine though
277
277
  ref: ref,
278
278
  ...otherProps,
@@ -295,19 +295,17 @@ const $c3a954a7c0cb5109$export$f51f4c4ede09e011 = /*#__PURE__*/ $8zHUo$react.for
295
295
 
296
296
 
297
297
 
298
+
298
299
  const $88fa102d91bf323a$export$f5a10939c0132d55 = (props, ref)=>{
299
300
  const { textCase: textCase, size: size = "sm", weight: weight, color: color = "gray", variant: variant = "default", highlight: highlight, align: align, lineHeight: lineHeight, underline: underline, italic: italic, as: Comp = "span", className: className, ...rest } = props;
300
301
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)(Comp, {
301
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)({
302
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-text", className, {
302
303
  [`text-highlight`]: !!highlight,
303
- "p-text": true,
304
- [`text-size-${size}`]: !!size,
305
304
  [`text-weight-${weight}`]: !!weight,
306
305
  [`text-align-${align}`]: !!align,
307
306
  [`text-line-height-${lineHeight}`]: !!lineHeight,
308
- [`text-transform-${textCase}`]: !!textCase,
309
- [`${className}`]: !!className
310
- }),
307
+ [`text-transform-${textCase}`]: !!textCase
308
+ }, (0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("text-size", size)),
311
309
  "data-underline": underline,
312
310
  "data-italic": italic,
313
311
  "data-color": color,