@goodhood-web/ui 3.0.0-development.35 → 3.0.0-development.36
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/index.mjs
CHANGED
|
@@ -7832,19 +7832,22 @@ const De = (t) => {
|
|
|
7832
7832
|
);
|
|
7833
7833
|
});
|
|
7834
7834
|
Vt.displayName = "Button";
|
|
7835
|
-
const Gw = "
|
|
7835
|
+
const Gw = "_textButton_19zsp_120", X1 = {
|
|
7836
7836
|
textButton: Gw,
|
|
7837
|
-
"textButton--large": "_textButton--
|
|
7838
|
-
"textButton--
|
|
7839
|
-
"textButton--
|
|
7840
|
-
"textButton--
|
|
7841
|
-
"textButton--
|
|
7842
|
-
"textButton--
|
|
7837
|
+
"textButton--large": "_textButton--large_19zsp_132",
|
|
7838
|
+
"textButton--medium": "_textButton--medium_19zsp_137",
|
|
7839
|
+
"textButton--link": "_textButton--link_19zsp_142",
|
|
7840
|
+
"textButton--green": "_textButton--green_19zsp_148",
|
|
7841
|
+
"textButton--blue": "_textButton--blue_19zsp_154",
|
|
7842
|
+
"textButton--deepPurple": "_textButton--deepPurple_19zsp_160",
|
|
7843
|
+
"textButton--pinkLight": "_textButton--pinkLight_19zsp_166",
|
|
7844
|
+
"textButton--pinkDark": "_textButton--pinkDark_19zsp_172"
|
|
7843
7845
|
}, Yw = {
|
|
7844
7846
|
large: "h5",
|
|
7845
7847
|
link: "body-text-link",
|
|
7846
7848
|
medium: "body-semibold",
|
|
7847
|
-
small: "detail-bold"
|
|
7849
|
+
small: "detail-bold",
|
|
7850
|
+
tiny: "detail-medium"
|
|
7848
7851
|
};
|
|
7849
7852
|
function Ta({
|
|
7850
7853
|
className: t,
|
|
@@ -12728,17 +12731,17 @@ const Rk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12728
12731
|
}
|
|
12729
12732
|
) })
|
|
12730
12733
|
] }) : /* @__PURE__ */ R.jsx("div", { className: ra.container, children: t });
|
|
12731
|
-
}, Pk = "
|
|
12734
|
+
}, Pk = "_primaryButton_12hm0_120", Rl = {
|
|
12732
12735
|
primaryButton: Pk,
|
|
12733
|
-
"primaryButton--fullWidth": "_primaryButton--
|
|
12734
|
-
"primaryButton--
|
|
12735
|
-
"primaryButton--
|
|
12736
|
-
"primaryButton--
|
|
12737
|
-
"primaryButton--
|
|
12738
|
-
"primaryButton--highlight": "_primaryButton--
|
|
12739
|
-
"primaryButton--primary": "_primaryButton--
|
|
12740
|
-
"primaryButton--transparent": "_primaryButton--
|
|
12741
|
-
"primaryButton--loading": "_primaryButton--
|
|
12736
|
+
"primaryButton--fullWidth": "_primaryButton--fullWidth_12hm0_129",
|
|
12737
|
+
"primaryButton--large": "_primaryButton--large_12hm0_132",
|
|
12738
|
+
"primaryButton--medium": "_primaryButton--medium_12hm0_137",
|
|
12739
|
+
"primaryButton--small": "_primaryButton--small_12hm0_142",
|
|
12740
|
+
"primaryButton--tiny": "_primaryButton--tiny_12hm0_142",
|
|
12741
|
+
"primaryButton--highlight": "_primaryButton--highlight_12hm0_147",
|
|
12742
|
+
"primaryButton--primary": "_primaryButton--primary_12hm0_153",
|
|
12743
|
+
"primaryButton--transparent": "_primaryButton--transparent_12hm0_159",
|
|
12744
|
+
"primaryButton--loading": "_primaryButton--loading_12hm0_167"
|
|
12742
12745
|
}, Fk = ({
|
|
12743
12746
|
children: t,
|
|
12744
12747
|
className: e,
|
|
@@ -12748,15 +12751,15 @@ const Rk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12748
12751
|
leftIcon: a,
|
|
12749
12752
|
loading: l,
|
|
12750
12753
|
rightIcon: h,
|
|
12751
|
-
size: f = "
|
|
12754
|
+
size: f = "large",
|
|
12752
12755
|
text: p,
|
|
12753
12756
|
...v
|
|
12754
12757
|
}) => {
|
|
12755
12758
|
const y = Zr(a, [ut]), b = Zr(h, [ut]), S = Rl[`primaryButton--${n}`], L = Rl[`primaryButton--${f}`], D = {
|
|
12756
|
-
extraLarge: "h5",
|
|
12757
12759
|
large: "h5",
|
|
12758
|
-
medium: "
|
|
12759
|
-
small: "
|
|
12760
|
+
medium: "h5",
|
|
12761
|
+
small: "body-semibold",
|
|
12762
|
+
tiny: "detail-medium"
|
|
12760
12763
|
};
|
|
12761
12764
|
return /* @__PURE__ */ R.jsxs(
|
|
12762
12765
|
Vt,
|
|
@@ -12775,19 +12778,19 @@ const Rk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12775
12778
|
]
|
|
12776
12779
|
}
|
|
12777
12780
|
);
|
|
12778
|
-
}, Ak = "
|
|
12781
|
+
}, Ak = "_secondaryButton_1a87g_120", Ml = {
|
|
12779
12782
|
secondaryButton: Ak,
|
|
12780
|
-
"secondaryButton--fullWidth": "_secondaryButton--
|
|
12781
|
-
"secondaryButton--
|
|
12782
|
-
"secondaryButton--
|
|
12783
|
-
"secondaryButton--
|
|
12784
|
-
"secondaryButton--green": "_secondaryButton--
|
|
12785
|
-
"secondaryButton--pink": "_secondaryButton--
|
|
12786
|
-
"secondaryButton--grey": "_secondaryButton--
|
|
12787
|
-
"secondaryButton--teal": "_secondaryButton--
|
|
12788
|
-
"secondaryButton--lavender": "_secondaryButton--
|
|
12789
|
-
"secondaryButton--orange": "_secondaryButton--
|
|
12790
|
-
"secondaryButton--loading": "_secondaryButton--
|
|
12783
|
+
"secondaryButton--fullWidth": "_secondaryButton--fullWidth_1a87g_132",
|
|
12784
|
+
"secondaryButton--medium": "_secondaryButton--medium_1a87g_135",
|
|
12785
|
+
"secondaryButton--small": "_secondaryButton--small_1a87g_140",
|
|
12786
|
+
"secondaryButton--tiny": "_secondaryButton--tiny_1a87g_140",
|
|
12787
|
+
"secondaryButton--green": "_secondaryButton--green_1a87g_145",
|
|
12788
|
+
"secondaryButton--pink": "_secondaryButton--pink_1a87g_151",
|
|
12789
|
+
"secondaryButton--grey": "_secondaryButton--grey_1a87g_159",
|
|
12790
|
+
"secondaryButton--teal": "_secondaryButton--teal_1a87g_165",
|
|
12791
|
+
"secondaryButton--lavender": "_secondaryButton--lavender_1a87g_171",
|
|
12792
|
+
"secondaryButton--orange": "_secondaryButton--orange_1a87g_178",
|
|
12793
|
+
"secondaryButton--loading": "_secondaryButton--loading_1a87g_184"
|
|
12791
12794
|
}, Rh = ({
|
|
12792
12795
|
children: t,
|
|
12793
12796
|
className: e,
|
|
@@ -12797,15 +12800,15 @@ const Rk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12797
12800
|
leftIcon: a,
|
|
12798
12801
|
loading: l,
|
|
12799
12802
|
rightIcon: h,
|
|
12800
|
-
size: f = "
|
|
12803
|
+
size: f = "large",
|
|
12801
12804
|
text: p,
|
|
12802
12805
|
...v
|
|
12803
12806
|
}) => {
|
|
12804
12807
|
const y = Zr(a, [ut]), b = Zr(h, [ut]), S = Ml[`secondaryButton--${n}`], L = Ml[`secondaryButton--${f}`], D = {
|
|
12805
|
-
extraLarge: "h5",
|
|
12806
12808
|
large: "h5",
|
|
12807
|
-
medium: "
|
|
12808
|
-
small: "
|
|
12809
|
+
medium: "h5",
|
|
12810
|
+
small: "body-semibold",
|
|
12811
|
+
tiny: "detail-medium"
|
|
12809
12812
|
};
|
|
12810
12813
|
return /* @__PURE__ */ R.jsxs(
|
|
12811
12814
|
Vt,
|
|
@@ -12824,17 +12827,17 @@ const Rk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12824
12827
|
]
|
|
12825
12828
|
}
|
|
12826
12829
|
);
|
|
12827
|
-
}, Ik = "
|
|
12830
|
+
}, Ik = "_tertiaryButton_1lpa7_120", Ll = {
|
|
12828
12831
|
tertiaryButton: Ik,
|
|
12829
|
-
"tertiaryButton--fullWidth": "_tertiaryButton--
|
|
12830
|
-
"tertiaryButton--
|
|
12831
|
-
"tertiaryButton--
|
|
12832
|
-
"tertiaryButton--
|
|
12833
|
-
"tertiaryButton--green": "_tertiaryButton--
|
|
12834
|
-
"tertiaryButton--pink": "_tertiaryButton--
|
|
12835
|
-
"tertiaryButton--blue": "_tertiaryButton--
|
|
12836
|
-
"tertiaryButton--grey": "_tertiaryButton--
|
|
12837
|
-
"tertiaryButton--loading": "_tertiaryButton--
|
|
12832
|
+
"tertiaryButton--fullWidth": "_tertiaryButton--fullWidth_1lpa7_133",
|
|
12833
|
+
"tertiaryButton--medium": "_tertiaryButton--medium_1lpa7_136",
|
|
12834
|
+
"tertiaryButton--small": "_tertiaryButton--small_1lpa7_141",
|
|
12835
|
+
"tertiaryButton--tiny": "_tertiaryButton--tiny_1lpa7_141",
|
|
12836
|
+
"tertiaryButton--green": "_tertiaryButton--green_1lpa7_146",
|
|
12837
|
+
"tertiaryButton--pink": "_tertiaryButton--pink_1lpa7_158",
|
|
12838
|
+
"tertiaryButton--blue": "_tertiaryButton--blue_1lpa7_170",
|
|
12839
|
+
"tertiaryButton--grey": "_tertiaryButton--grey_1lpa7_182",
|
|
12840
|
+
"tertiaryButton--loading": "_tertiaryButton--loading_1lpa7_194"
|
|
12838
12841
|
}, Mh = ({
|
|
12839
12842
|
children: t,
|
|
12840
12843
|
className: e,
|
|
@@ -12844,15 +12847,15 @@ const Rk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12844
12847
|
leftIcon: a,
|
|
12845
12848
|
loading: l,
|
|
12846
12849
|
rightIcon: h,
|
|
12847
|
-
size: f = "
|
|
12850
|
+
size: f = "large",
|
|
12848
12851
|
text: p,
|
|
12849
12852
|
...v
|
|
12850
12853
|
}) => {
|
|
12851
12854
|
const y = Zr(a, [ut]), b = Zr(h, [ut]), S = Ll[`tertiaryButton--${n}`], L = Ll[`tertiaryButton--${f}`], D = {
|
|
12852
|
-
extraLarge: "h5",
|
|
12853
12855
|
large: "h5",
|
|
12854
|
-
medium: "
|
|
12855
|
-
small: "
|
|
12856
|
+
medium: "h5",
|
|
12857
|
+
small: "body-semibold",
|
|
12858
|
+
tiny: "detail-medium"
|
|
12856
12859
|
};
|
|
12857
12860
|
return /* @__PURE__ */ R.jsxs(
|
|
12858
12861
|
Vt,
|
|
@@ -29,7 +29,7 @@ export interface ButtonVariationProps {
|
|
|
29
29
|
leftIcon?: ReactElement<IconProps>;
|
|
30
30
|
loading?: boolean;
|
|
31
31
|
rightIcon?: ReactElement<IconProps>;
|
|
32
|
-
size?: '
|
|
32
|
+
size?: 'tiny' | 'small' | 'medium' | 'large';
|
|
33
33
|
target?: string;
|
|
34
34
|
text?: string;
|
|
35
35
|
}
|
|
@@ -4,6 +4,7 @@ export declare const typographyType: {
|
|
|
4
4
|
link: string;
|
|
5
5
|
medium: string;
|
|
6
6
|
small: string;
|
|
7
|
+
tiny: string;
|
|
7
8
|
};
|
|
8
9
|
export declare function TextButton({ className, color, disabled, leftIcon, rightIcon, size, text, ...props }: TextButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default TextButton;
|
|
@@ -7,7 +7,7 @@ export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'>
|
|
|
7
7
|
color: 'green' | 'blue' | 'deepPurple' | 'pinkLight' | 'pinkDark';
|
|
8
8
|
leftIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
9
9
|
rightIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
10
|
-
size: 'large' | 'medium' | 'small' | 'link';
|
|
10
|
+
size: 'large' | 'medium' | 'small' | 'link' | 'tiny';
|
|
11
11
|
text: string;
|
|
12
12
|
type?: 'button' | 'submit' | 'reset';
|
|
13
13
|
}
|