@jonapin006/tiger 1.0.42 → 1.0.43

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,11 @@ 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
+ }
553
561
  },
554
562
  layout: {
555
563
  bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
@@ -1011,6 +1019,10 @@ var v = /* @__PURE__ */ function(e) {
1011
1019
  badges: {
1012
1020
  small: { container: "px-2 py-0.5 rounded-md" },
1013
1021
  medium: { container: "px-2.5 py-1 rounded-lg" },
1022
+ typographyMappings: {
1023
+ small: b.Xsmall,
1024
+ medium: b.Small
1025
+ },
1014
1026
  typography: "leading-none tracking-widest uppercase font-black",
1015
1027
  baseStyles: "inline-flex items-center justify-center transition-all duration-300 shadow-none"
1016
1028
  },
@@ -1070,25 +1082,25 @@ var v = /* @__PURE__ */ function(e) {
1070
1082
  content: "transition-all duration-500 animate-in fade-in slide-in-from-bottom-2"
1071
1083
  },
1072
1084
  cards: {
1085
+ none: {
1086
+ corner: "rounded-none",
1087
+ padding: "p-4 md:p-4"
1088
+ },
1073
1089
  small: {
1074
1090
  corner: "rounded-xl",
1075
- padding: "p-6"
1076
- },
1077
- none: {
1078
- corner: "rounded-2xl",
1079
- padding: "p-0"
1091
+ padding: "p-4 md:p-4"
1080
1092
  },
1081
1093
  medium: {
1082
1094
  corner: "rounded-2xl",
1083
- padding: "p-8 md:p-10"
1095
+ padding: "p-4 md:p-4"
1084
1096
  },
1085
1097
  large: {
1086
- corner: "rounded-[1.5rem]",
1087
- padding: "p-10 md:p-14"
1098
+ corner: "rounded-3xl",
1099
+ padding: "p-4 md:p-4"
1088
1100
  },
1089
1101
  xlarge: {
1090
- corner: "rounded-[2.5rem]",
1091
- padding: "p-14 md:p-20"
1102
+ corner: "rounded-4xl",
1103
+ padding: "p-4 md:p-4"
1092
1104
  },
1093
1105
  typographyMappings: {
1094
1106
  xsmall: b.Xsmall,
@@ -1460,7 +1472,11 @@ var v = /* @__PURE__ */ function(e) {
1460
1472
  titleContainer: "flex flex-col items-start min-w-0 flex-1",
1461
1473
  title: "block w-full",
1462
1474
  descriptionContainer: "mt-0.5 opacity-60 w-full",
1463
- actionsContainer: "flex items-center justify-end flex-shrink-0"
1475
+ actionsContainer: "flex items-center justify-end flex-shrink-0",
1476
+ typographyMappings: {
1477
+ medium: b.Medium,
1478
+ large: b.Large
1479
+ }
1464
1480
  },
1465
1481
  layout: {
1466
1482
  bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
@@ -1922,6 +1938,10 @@ var v = /* @__PURE__ */ function(e) {
1922
1938
  badges: {
1923
1939
  small: { container: "px-2.5 py-0.5 rounded-full" },
1924
1940
  medium: { container: "px-3.5 py-1 rounded-full" },
1941
+ typographyMappings: {
1942
+ small: b.Xsmall,
1943
+ medium: b.Small
1944
+ },
1925
1945
  typography: "leading-none tracking-tight font-bold",
1926
1946
  baseStyles: "inline-flex items-center justify-center transition-all duration-300 shadow-none"
1927
1947
  },
@@ -1981,25 +2001,25 @@ var v = /* @__PURE__ */ function(e) {
1981
2001
  content: "transition-all duration-500 animate-in fade-in slide-in-from-bottom-2"
1982
2002
  },
1983
2003
  cards: {
1984
- small: {
1985
- corner: "rounded-xl",
1986
- padding: "p-4"
1987
- },
1988
2004
  none: {
1989
2005
  corner: "rounded-none",
1990
- padding: "p-0"
2006
+ padding: "p-4 md:p-4"
2007
+ },
2008
+ small: {
2009
+ corner: "rounded-xl",
2010
+ padding: "p-4 md:p-4"
1991
2011
  },
1992
2012
  medium: {
1993
2013
  corner: "rounded-2xl",
1994
- padding: "p-4"
2014
+ padding: "p-4 md:p-4"
1995
2015
  },
1996
2016
  large: {
1997
2017
  corner: "rounded-3xl",
1998
- padding: "p-4"
2018
+ padding: "p-4 md:p-4"
1999
2019
  },
2000
2020
  xlarge: {
2001
2021
  corner: "rounded-4xl",
2002
- padding: "p-4"
2022
+ padding: "p-4 md:p-4"
2003
2023
  },
2004
2024
  typographyMappings: {
2005
2025
  xsmall: b.Xsmall,
@@ -2371,7 +2391,11 @@ var v = /* @__PURE__ */ function(e) {
2371
2391
  titleContainer: "flex flex-col items-start min-w-0 flex-1",
2372
2392
  title: "block w-full",
2373
2393
  descriptionContainer: "mt-0.5 opacity-60 w-full",
2374
- actionsContainer: "flex items-center justify-end flex-shrink-0"
2394
+ actionsContainer: "flex items-center justify-end flex-shrink-0",
2395
+ typographyMappings: {
2396
+ medium: b.Medium,
2397
+ large: b.Large
2398
+ }
2375
2399
  },
2376
2400
  layout: {
2377
2401
  bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
@@ -2824,13 +2848,13 @@ var L = ({ children: e, typographySize: t = b.Medium, variant: n = "p", bold: r
2824
2848
  style: o,
2825
2849
  children: e
2826
2850
  });
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];
2851
+ }, R = ({ children: e, variant: t = T.Primary, size: n = y.Medium, typographySize: r, className: i, style: a }) => {
2852
+ let { theme: o, themeConfig: s } = F(), l = o.geometry.badges[n], u = r || o.geometry.badges.typographyMappings[n];
2829
2853
  return /* @__PURE__ */ c("div", {
2830
2854
  className: I(o.geometry.badges.baseStyles, s.badges.base, l.container, s.badges.variants[t], i),
2831
2855
  style: a,
2832
2856
  children: /* @__PURE__ */ c(L, {
2833
- typographySize: r,
2857
+ typographySize: u,
2834
2858
  bold: !0,
2835
2859
  className: o.geometry.badges.typography,
2836
2860
  children: e
@@ -2892,15 +2916,15 @@ var L = ({ children: e, typographySize: t = b.Medium, variant: n = "p", bold: r
2892
2916
  B.displayName = "TigerInput";
2893
2917
  //#endregion
2894
2918
  //#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", {
2919
+ 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 }) => {
2920
+ 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
2921
  className: I(m.track, g.height, g.trackRadius, h.track),
2898
2922
  children: /* @__PURE__ */ c("div", {
2899
2923
  className: I(m.fill, g.trackRadius, h.fill),
2900
2924
  style: { width: `${p}%` },
2901
2925
  children: /* @__PURE__ */ c("div", { className: I(m.fillEffect, h.fillEffectColor) })
2902
2926
  })
2903
- }), v = () => /* @__PURE__ */ c("div", {
2927
+ }), b = () => /* @__PURE__ */ c("div", {
2904
2928
  className: I(m.stepContainer, g.gap),
2905
2929
  children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ c("div", {
2906
2930
  className: I(m.step, g.height, g.trackRadius, n < t ? h.fill : h.unfilled),
@@ -2911,11 +2935,11 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
2911
2935
  className: I(m.container, u),
2912
2936
  children: [/* @__PURE__ */ c("div", {
2913
2937
  className: m.wrapper,
2914
- children: r === "bar" ? _() : v()
2938
+ children: r === "bar" ? v() : b()
2915
2939
  }), s && /* @__PURE__ */ c("div", {
2916
2940
  className: m.valueContainer,
2917
2941
  children: /* @__PURE__ */ c(L, {
2918
- typographySize: o,
2942
+ typographySize: _,
2919
2943
  bold: !0,
2920
2944
  className: I(m.valueStyles, h.value),
2921
2945
  children: x
@@ -3066,7 +3090,7 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
3066
3090
  children: e
3067
3091
  });
3068
3092
  }, 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;
3093
+ let { themeConfig: o, theme: s } = F(), u = s.geometry.topbar, d = i || u.typographyMappings.large, f = a || u.typographyMappings.medium;
3070
3094
  return /* @__PURE__ */ l("header", {
3071
3095
  className: I(u.wrapper, o.layout.topbar.container, u.padding, u.margin, u.corner, u.height, u.width, r),
3072
3096
  children: [
@@ -3430,7 +3454,7 @@ var ue = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
3430
3454
  ]
3431
3455
  });
3432
3456
  }, 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);
3457
+ let { theme: p } = F(), m = s, _ = p.geometry.modal, v = u || _.typographyMappings[m], [b, x] = o(!1);
3434
3458
  if (i(() => (x(!0), e && (document.body.style.overflow = "hidden"), () => {
3435
3459
  document.body.style.overflow = "unset";
3436
3460
  }), [e]), i(() => {