@umami/react-zen 0.76.0 → 0.77.0

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.d.ts CHANGED
@@ -322,10 +322,11 @@ declare module '@umami/react-zen/Box' {
322
322
  gridRow?: Responsive<string>;
323
323
  gridColumn?: Responsive<string>;
324
324
  order?: Responsive<number>;
325
+ theme?: string;
325
326
  as?: string;
326
327
  asChild?: boolean;
327
328
  }
328
- function Box({ display, color, backgroundColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, overflowX, overflowY, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
329
+ function Box({ display, color, backgroundColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, overflowX, overflowY, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, theme, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
329
330
  export { Box };
330
331
  export type { BoxProps };
331
332
  }
package/dist/index.js CHANGED
@@ -25635,6 +25635,7 @@ function Box({
25635
25635
  gridRow,
25636
25636
  gridColumn,
25637
25637
  order,
25638
+ theme,
25638
25639
  as = "div",
25639
25640
  asChild,
25640
25641
  className,
@@ -25694,7 +25695,7 @@ function Box({
25694
25695
  Component,
25695
25696
  {
25696
25697
  ...props,
25697
- className: (0, import_classnames3.default)(className, classes),
25698
+ className: (0, import_classnames3.default)(className, classes, theme && `${theme}-theme`),
25698
25699
  style: {
25699
25700
  ...styleProps,
25700
25701
  ...style
@@ -30634,6 +30635,7 @@ function ListItem({ id, children, className, ...props }) {
30634
30635
  $eed445e0843c11d0$export$a11e76429ed99b4,
30635
30636
  {
30636
30637
  ...props,
30638
+ id,
30637
30639
  className: (0, import_classnames32.default)(List_default.item, className),
30638
30640
  textValue: typeof children === "string" ? children : id?.toString(),
30639
30641
  children: [
package/dist/index.mjs CHANGED
@@ -25524,6 +25524,7 @@ function Box({
25524
25524
  gridRow,
25525
25525
  gridColumn,
25526
25526
  order,
25527
+ theme,
25527
25528
  as = "div",
25528
25529
  asChild,
25529
25530
  className,
@@ -25583,7 +25584,7 @@ function Box({
25583
25584
  Component,
25584
25585
  {
25585
25586
  ...props,
25586
- className: (0, import_classnames3.default)(className, classes),
25587
+ className: (0, import_classnames3.default)(className, classes, theme && `${theme}-theme`),
25587
25588
  style: {
25588
25589
  ...styleProps,
25589
25590
  ...style
@@ -30523,6 +30524,7 @@ function ListItem({ id, children, className, ...props }) {
30523
30524
  $eed445e0843c11d0$export$a11e76429ed99b4,
30524
30525
  {
30525
30526
  ...props,
30527
+ id,
30526
30528
  className: (0, import_classnames32.default)(List_default.item, className),
30527
30529
  textValue: typeof children === "string" ? children : id?.toString(),
30528
30530
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.76.0",
3
+ "version": "0.77.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",