@umami/react-zen 1.0.4 → 1.0.5

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.mts CHANGED
@@ -661,7 +661,7 @@ declare function useToast(): {
661
661
  type StrokeWidth = '0.5' | '1' | '1.5' | '2' | '3' | '4';
662
662
  interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'size'> {
663
663
  color?: FontColor;
664
- /** Omit to use the theme's default icon size (`--icon-size`). */
664
+ /** Matches the text size of the same name (xs 12px … xl 20px). Omit to use the theme's `--icon-size`. */
665
665
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
666
666
  rotate?: number;
667
667
  strokeWidth?: StrokeWidth;
package/dist/index.d.ts CHANGED
@@ -661,7 +661,7 @@ declare function useToast(): {
661
661
  type StrokeWidth = '0.5' | '1' | '1.5' | '2' | '3' | '4';
662
662
  interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'size'> {
663
663
  color?: FontColor;
664
- /** Omit to use the theme's default icon size (`--icon-size`). */
664
+ /** Matches the text size of the same name (xs 12px … xl 20px). Omit to use the theme's `--icon-size`. */
665
665
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
666
666
  rotate?: number;
667
667
  strokeWidth?: StrokeWidth;
package/dist/index.js CHANGED
@@ -5509,11 +5509,16 @@ function useToast() {
5509
5509
  return { toast, toasts };
5510
5510
  }
5511
5511
  var sizeMap2 = {
5512
- xs: "w-3 h-3",
5513
- sm: "w-4 h-4",
5514
- md: "w-5 h-5",
5515
- lg: "w-6 h-6",
5516
- xl: "w-8 h-8"
5512
+ xs: "size-3",
5513
+ // 12px
5514
+ sm: "size-3.5",
5515
+ // 14px
5516
+ md: "size-4",
5517
+ // 16px
5518
+ lg: "size-4.5",
5519
+ // 18px
5520
+ xl: "size-5"
5521
+ // 20px
5517
5522
  };
5518
5523
  var strokeWidthMap = {
5519
5524
  "0.5": "stroke-[0.5]",