@jonapin006/tiger 1.0.42 → 1.0.44

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/tiger.es.js CHANGED
@@ -98,9 +98,13 @@ var v = /* @__PURE__ */ function(e) {
98
98
  baseStyles: "flex items-center justify-center transition-all duration-300 transform-gpu active:scale-95 disabled:opacity-50 rounded-full"
99
99
  },
100
100
  badges: {
101
- small: { container: "px-2 py-0.5 text-[8px] rounded-sm" },
102
- medium: { container: "px-3 py-1 text-[10px] rounded-md" },
103
- typography: "leading-none tracking-widest uppercase font-black",
101
+ small: { container: "px-2 py-0.5 rounded-sm" },
102
+ medium: { container: "px-3 py-1 rounded-md" },
103
+ typographyMappings: {
104
+ small: b.Xsmall,
105
+ medium: b.Small
106
+ },
107
+ typography: "leading-none tracking-widest uppercase",
104
108
  baseStyles: "inline-flex items-center justify-center transition-all duration-300 shadow-none"
105
109
  },
106
110
  tabs: {
@@ -159,25 +163,25 @@ var v = /* @__PURE__ */ function(e) {
159
163
  content: "transition-all duration-500 animate-in fade-in slide-in-from-bottom-2"
160
164
  },
161
165
  cards: {
162
- small: {
163
- corner: "rounded-2xl",
164
- padding: "p-6 md:p-8"
165
- },
166
166
  none: {
167
- corner: "rounded-2xl",
168
- padding: "p-0"
167
+ corner: "rounded-none",
168
+ padding: "p-4 md:p-4"
169
+ },
170
+ small: {
171
+ corner: "rounded-xl",
172
+ padding: "p-4 md:p-4"
169
173
  },
170
174
  medium: {
171
175
  corner: "rounded-2xl",
172
- padding: "p-10 md:p-14"
176
+ padding: "p-4 md:p-4"
173
177
  },
174
178
  large: {
175
179
  corner: "rounded-3xl",
176
- padding: "p-14 md:p-20"
180
+ padding: "p-4 md:p-4"
177
181
  },
178
182
  xlarge: {
179
- corner: "rounded-[3rem]",
180
- padding: "p-20 md:p-32"
183
+ corner: "rounded-4xl",
184
+ padding: "p-4 md:p-4"
181
185
  },
182
186
  typographyMappings: {
183
187
  xsmall: b.Xsmall,
@@ -549,7 +553,12 @@ var v = /* @__PURE__ */ function(e) {
549
553
  titleContainer: "flex flex-col items-start min-w-0 flex-1",
550
554
  title: "block w-full",
551
555
  descriptionContainer: "mt-0.5 opacity-60 w-full",
552
- actionsContainer: "flex items-center justify-end flex-shrink-0"
556
+ actionsContainer: "flex items-center justify-end flex-shrink-0",
557
+ typographyMappings: {
558
+ medium: b.Medium,
559
+ large: b.Large,
560
+ xlarge: b.Xlarge
561
+ }
553
562
  },
554
563
  layout: {
555
564
  bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
@@ -1011,6 +1020,10 @@ var v = /* @__PURE__ */ function(e) {
1011
1020
  badges: {
1012
1021
  small: { container: "px-2 py-0.5 rounded-md" },
1013
1022
  medium: { container: "px-2.5 py-1 rounded-lg" },
1023
+ typographyMappings: {
1024
+ small: b.Xsmall,
1025
+ medium: b.Small
1026
+ },
1014
1027
  typography: "leading-none tracking-widest uppercase font-black",
1015
1028
  baseStyles: "inline-flex items-center justify-center transition-all duration-300 shadow-none"
1016
1029
  },
@@ -1070,25 +1083,25 @@ var v = /* @__PURE__ */ function(e) {
1070
1083
  content: "transition-all duration-500 animate-in fade-in slide-in-from-bottom-2"
1071
1084
  },
1072
1085
  cards: {
1086
+ none: {
1087
+ corner: "rounded-none",
1088
+ padding: "p-4 md:p-4"
1089
+ },
1073
1090
  small: {
1074
1091
  corner: "rounded-xl",
1075
- padding: "p-6"
1076
- },
1077
- none: {
1078
- corner: "rounded-2xl",
1079
- padding: "p-0"
1092
+ padding: "p-4 md:p-4"
1080
1093
  },
1081
1094
  medium: {
1082
1095
  corner: "rounded-2xl",
1083
- padding: "p-8 md:p-10"
1096
+ padding: "p-4 md:p-4"
1084
1097
  },
1085
1098
  large: {
1086
- corner: "rounded-[1.5rem]",
1087
- padding: "p-10 md:p-14"
1099
+ corner: "rounded-3xl",
1100
+ padding: "p-4 md:p-4"
1088
1101
  },
1089
1102
  xlarge: {
1090
- corner: "rounded-[2.5rem]",
1091
- padding: "p-14 md:p-20"
1103
+ corner: "rounded-4xl",
1104
+ padding: "p-4 md:p-4"
1092
1105
  },
1093
1106
  typographyMappings: {
1094
1107
  xsmall: b.Xsmall,
@@ -1460,7 +1473,12 @@ var v = /* @__PURE__ */ function(e) {
1460
1473
  titleContainer: "flex flex-col items-start min-w-0 flex-1",
1461
1474
  title: "block w-full",
1462
1475
  descriptionContainer: "mt-0.5 opacity-60 w-full",
1463
- actionsContainer: "flex items-center justify-end flex-shrink-0"
1476
+ actionsContainer: "flex items-center justify-end flex-shrink-0",
1477
+ typographyMappings: {
1478
+ medium: b.Medium,
1479
+ large: b.Large,
1480
+ xlarge: b.Xlarge
1481
+ }
1464
1482
  },
1465
1483
  layout: {
1466
1484
  bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
@@ -1922,6 +1940,10 @@ var v = /* @__PURE__ */ function(e) {
1922
1940
  badges: {
1923
1941
  small: { container: "px-2.5 py-0.5 rounded-full" },
1924
1942
  medium: { container: "px-3.5 py-1 rounded-full" },
1943
+ typographyMappings: {
1944
+ small: b.Xsmall,
1945
+ medium: b.Small
1946
+ },
1925
1947
  typography: "leading-none tracking-tight font-bold",
1926
1948
  baseStyles: "inline-flex items-center justify-center transition-all duration-300 shadow-none"
1927
1949
  },
@@ -1981,25 +2003,25 @@ var v = /* @__PURE__ */ function(e) {
1981
2003
  content: "transition-all duration-500 animate-in fade-in slide-in-from-bottom-2"
1982
2004
  },
1983
2005
  cards: {
1984
- small: {
1985
- corner: "rounded-xl",
1986
- padding: "p-4"
1987
- },
1988
2006
  none: {
1989
2007
  corner: "rounded-none",
1990
- padding: "p-0"
2008
+ padding: "p-4 md:p-4"
2009
+ },
2010
+ small: {
2011
+ corner: "rounded-xl",
2012
+ padding: "p-4 md:p-4"
1991
2013
  },
1992
2014
  medium: {
1993
2015
  corner: "rounded-2xl",
1994
- padding: "p-4"
2016
+ padding: "p-4 md:p-4"
1995
2017
  },
1996
2018
  large: {
1997
2019
  corner: "rounded-3xl",
1998
- padding: "p-4"
2020
+ padding: "p-4 md:p-4"
1999
2021
  },
2000
2022
  xlarge: {
2001
2023
  corner: "rounded-4xl",
2002
- padding: "p-4"
2024
+ padding: "p-4 md:p-4"
2003
2025
  },
2004
2026
  typographyMappings: {
2005
2027
  xsmall: b.Xsmall,
@@ -2371,7 +2393,12 @@ var v = /* @__PURE__ */ function(e) {
2371
2393
  titleContainer: "flex flex-col items-start min-w-0 flex-1",
2372
2394
  title: "block w-full",
2373
2395
  descriptionContainer: "mt-0.5 opacity-60 w-full",
2374
- actionsContainer: "flex items-center justify-end flex-shrink-0"
2396
+ actionsContainer: "flex items-center justify-end flex-shrink-0",
2397
+ typographyMappings: {
2398
+ medium: b.Medium,
2399
+ large: b.Large,
2400
+ xlarge: b.Xlarge
2401
+ }
2375
2402
  },
2376
2403
  layout: {
2377
2404
  bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
@@ -2824,13 +2851,13 @@ var L = ({ children: e, typographySize: t = b.Medium, variant: n = "p", bold: r
2824
2851
  style: o,
2825
2852
  children: e
2826
2853
  });
2827
- }, R = ({ children: e, variant: t = T.Primary, size: n = y.Medium, typographySize: r = b.Medium, className: i, style: a }) => {
2828
- let { theme: o, themeConfig: s } = F(), l = o.geometry.badges[n];
2854
+ }, R = ({ children: e, variant: t = T.Primary, size: n = y.Medium, typographySize: r, className: i, style: a }) => {
2855
+ let { theme: o, themeConfig: s } = F(), l = o.geometry.badges[n], u = r || o.geometry.badges.typographyMappings[n];
2829
2856
  return /* @__PURE__ */ c("div", {
2830
2857
  className: I(o.geometry.badges.baseStyles, s.badges.base, l.container, s.badges.variants[t], i),
2831
2858
  style: a,
2832
2859
  children: /* @__PURE__ */ c(L, {
2833
- typographySize: r,
2860
+ typographySize: u,
2834
2861
  bold: !0,
2835
2862
  className: o.geometry.badges.typography,
2836
2863
  children: e
@@ -2892,15 +2919,15 @@ var L = ({ children: e, typographySize: t = b.Medium, variant: n = "p", bold: r
2892
2919
  B.displayName = "TigerInput";
2893
2920
  //#endregion
2894
2921
  //#region src/presentation/components/TigerProgress.tsx
2895
- var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "bar", max: i = 100, size: a = y.Medium, typographySize: o = b.Medium, showValue: s = !0, className: u }) => {
2896
- let { theme: d, themeConfig: f } = F(), p = Math.min(Math.max(r === "bar" ? e / i * 100 : t / n * 100, 0), 100), m = d.geometry.progress, h = f.progress, g = m[a], _ = () => /* @__PURE__ */ c("div", {
2922
+ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "bar", max: i = 100, size: a = y.Medium, typographySize: o, showValue: s = !0, className: u }) => {
2923
+ let { theme: d, themeConfig: f } = F(), p = Math.min(Math.max(r === "bar" ? e / i * 100 : t / n * 100, 0), 100), m = d.geometry.progress, h = f.progress, g = m[a], _ = o, v = () => /* @__PURE__ */ c("div", {
2897
2924
  className: I(m.track, g.height, g.trackRadius, h.track),
2898
2925
  children: /* @__PURE__ */ c("div", {
2899
2926
  className: I(m.fill, g.trackRadius, h.fill),
2900
2927
  style: { width: `${p}%` },
2901
2928
  children: /* @__PURE__ */ c("div", { className: I(m.fillEffect, h.fillEffectColor) })
2902
2929
  })
2903
- }), v = () => /* @__PURE__ */ c("div", {
2930
+ }), b = () => /* @__PURE__ */ c("div", {
2904
2931
  className: I(m.stepContainer, g.gap),
2905
2932
  children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ c("div", {
2906
2933
  className: I(m.step, g.height, g.trackRadius, n < t ? h.fill : h.unfilled),
@@ -2911,11 +2938,11 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
2911
2938
  className: I(m.container, u),
2912
2939
  children: [/* @__PURE__ */ c("div", {
2913
2940
  className: m.wrapper,
2914
- children: r === "bar" ? _() : v()
2941
+ children: r === "bar" ? v() : b()
2915
2942
  }), s && /* @__PURE__ */ c("div", {
2916
2943
  className: m.valueContainer,
2917
2944
  children: /* @__PURE__ */ c(L, {
2918
- typographySize: o,
2945
+ typographySize: _,
2919
2946
  bold: !0,
2920
2947
  className: I(m.valueStyles, h.value),
2921
2948
  children: x
@@ -3065,31 +3092,31 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
3065
3092
  className: I(o.flexBase, l, s.gap, u, i),
3066
3093
  children: e
3067
3094
  });
3068
- }, U = ({ title: e, description: t, actions: n, className: r, titleTypographySize: i, descriptionTypographySize: a }) => {
3069
- let { themeConfig: o, theme: s } = F(), u = s.geometry.topbar, d = i || b.Xlarge, f = a || b.Medium;
3095
+ }, U = ({ title: e, description: t, actions: n, className: r, size: i = y.Xlarge, titleTypographySize: a, descriptionTypographySize: o }) => {
3096
+ let { themeConfig: s, theme: u } = F(), d = u.geometry.topbar, f = a || d.typographyMappings[i], p = o || d.typographyMappings.medium;
3070
3097
  return /* @__PURE__ */ l("header", {
3071
- className: I(u.wrapper, o.layout.topbar.container, u.padding, u.margin, u.corner, u.height, u.width, r),
3098
+ className: I(d.wrapper, s.layout.topbar.container, d.padding, d.margin, d.corner, d.height, d.width, r),
3072
3099
  children: [
3073
3100
  (e || t) && /* @__PURE__ */ l("div", {
3074
- className: u.titleContainer,
3101
+ className: d.titleContainer,
3075
3102
  children: [e && /* @__PURE__ */ c("div", {
3076
- className: u.title,
3103
+ className: d.title,
3077
3104
  children: ((e) => typeof e == "string" ? /* @__PURE__ */ c(L, {
3078
- typographySize: d,
3105
+ typographySize: f,
3079
3106
  bold: !0,
3080
3107
  children: e
3081
3108
  }) : e)(e)
3082
3109
  }), t && /* @__PURE__ */ c("div", {
3083
- className: u.descriptionContainer,
3110
+ className: d.descriptionContainer,
3084
3111
  children: ((e) => typeof e == "string" ? /* @__PURE__ */ c(L, {
3085
- typographySize: f,
3112
+ typographySize: p,
3086
3113
  children: e
3087
3114
  }) : e)(t)
3088
3115
  })]
3089
3116
  }),
3090
3117
  /* @__PURE__ */ c("div", {}),
3091
3118
  n && /* @__PURE__ */ c("div", {
3092
- className: u.actionsContainer,
3119
+ className: d.actionsContainer,
3093
3120
  children: n
3094
3121
  })
3095
3122
  ]
@@ -3430,7 +3457,7 @@ var ue = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
3430
3457
  ]
3431
3458
  });
3432
3459
  }, me = ({ isOpen: e, onClose: t, title: n, children: r, footer: a, size: s = y.Medium, typographySize: u, showCloseButton: d = !0, className: f }) => {
3433
- let { theme: p } = F(), m = s, _ = p.geometry.modal, v = u || _.typographyMappings.medium, [b, x] = o(!1);
3460
+ let { theme: p } = F(), m = s, _ = p.geometry.modal, v = u || _.typographyMappings[m], [b, x] = o(!1);
3434
3461
  if (i(() => (x(!0), e && (document.body.style.overflow = "hidden"), () => {
3435
3462
  document.body.style.overflow = "unset";
3436
3463
  }), [e]), i(() => {