globalfy-design-system 1.18.0 → 1.19.1
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/components/atoms/Alert/Alert.d.ts +2 -0
- package/dist/components/atoms/Button/Button.d.ts +1 -1
- package/dist/components/atoms/Button/SpinnerIcon.d.ts +7 -0
- package/dist/components/atoms/DropdownList/DropdownList.d.ts +1 -1
- package/dist/globalfy-design-system.js +39 -7
- package/dist/globalfy-design-system.umd.cjs +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ButtonProps as NextUIButtonProps } from '@nextui-org/react';
|
|
3
3
|
|
|
4
|
-
export type ButtonVariant = 'primaryDark' | 'primaryLight' | 'primary' | 'negative' | 'secondaryNegative' | 'secondary' | 'tertiary' | 'tertiaryDark' | 'tertiaryLight' | 'direction' | 'directionCircle' | 'icon';
|
|
4
|
+
export type ButtonVariant = 'primaryDark' | 'primaryLight' | 'primary' | 'negative' | 'secondaryNegative' | 'secondary' | 'tertiary' | 'tertiaryDark' | 'tertiaryDarkGreen' | 'tertiaryLight' | 'direction' | 'directionCircle' | 'icon';
|
|
5
5
|
export type ButtonProps = Omit<NextUIButtonProps, 'variant' | 'size' | 'ref'> & {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
iconLeft?: React.ReactNode;
|
|
@@ -10,6 +10,7 @@ declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
10
10
|
secondary: string;
|
|
11
11
|
tertiary: string;
|
|
12
12
|
tertiaryDark: string;
|
|
13
|
+
tertiaryDarkGreen: string;
|
|
13
14
|
tertiaryLight: string;
|
|
14
15
|
direction: string;
|
|
15
16
|
directionCircle: string;
|
|
@@ -25,6 +26,7 @@ declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
25
26
|
secondary: string;
|
|
26
27
|
tertiary: string;
|
|
27
28
|
tertiaryDark: string;
|
|
29
|
+
tertiaryDarkGreen: string;
|
|
28
30
|
tertiaryLight: string;
|
|
29
31
|
direction: string;
|
|
30
32
|
directionCircle: string;
|
|
@@ -40,6 +42,7 @@ declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
40
42
|
secondary: string;
|
|
41
43
|
tertiary: string;
|
|
42
44
|
tertiaryDark: string;
|
|
45
|
+
tertiaryDarkGreen: string;
|
|
43
46
|
tertiaryLight: string;
|
|
44
47
|
direction: string;
|
|
45
48
|
directionCircle: string;
|
|
@@ -55,6 +58,7 @@ declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
55
58
|
secondary: string;
|
|
56
59
|
tertiary: string;
|
|
57
60
|
tertiaryDark: string;
|
|
61
|
+
tertiaryDarkGreen: string;
|
|
58
62
|
tertiaryLight: string;
|
|
59
63
|
direction: string;
|
|
60
64
|
directionCircle: string;
|
|
@@ -70,6 +74,7 @@ declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
70
74
|
secondary: string;
|
|
71
75
|
tertiary: string;
|
|
72
76
|
tertiaryDark: string;
|
|
77
|
+
tertiaryDarkGreen: string;
|
|
73
78
|
tertiaryLight: string;
|
|
74
79
|
direction: string;
|
|
75
80
|
directionCircle: string;
|
|
@@ -85,6 +90,7 @@ declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
85
90
|
secondary: string;
|
|
86
91
|
tertiary: string;
|
|
87
92
|
tertiaryDark: string;
|
|
93
|
+
tertiaryDarkGreen: string;
|
|
88
94
|
tertiaryLight: string;
|
|
89
95
|
direction: string;
|
|
90
96
|
directionCircle: string;
|
|
@@ -100,6 +106,7 @@ declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
100
106
|
secondary: string;
|
|
101
107
|
tertiary: string;
|
|
102
108
|
tertiaryDark: string;
|
|
109
|
+
tertiaryDarkGreen: string;
|
|
103
110
|
tertiaryLight: string;
|
|
104
111
|
direction: string;
|
|
105
112
|
directionCircle: string;
|
|
@@ -43774,6 +43774,7 @@ const vv0 = ({ icons: e, className: r, isSelected: t, onValueChange: o }) => {
|
|
|
43774
43774
|
secondary: "text-secondary-green-500",
|
|
43775
43775
|
tertiary: "text-primary-green-500",
|
|
43776
43776
|
tertiaryDark: "text-secondary-green-500",
|
|
43777
|
+
tertiaryDarkGreen: "text-secondary-green-500",
|
|
43777
43778
|
tertiaryLight: "text-primary-green-500",
|
|
43778
43779
|
direction: "text-white",
|
|
43779
43780
|
directionCircle: "text-white",
|
|
@@ -43882,6 +43883,14 @@ const vv0 = ({ icons: e, className: r, isSelected: t, onValueChange: o }) => {
|
|
|
43882
43883
|
// focus
|
|
43883
43884
|
"focus:text-secondary-green-500 data-[focus-visible=true]:outline-secondary-green-500"
|
|
43884
43885
|
].join(" "),
|
|
43886
|
+
tertiaryDarkGreen: [
|
|
43887
|
+
// default
|
|
43888
|
+
"!bg-transparent px-4 font-medium text-secondary-green-500",
|
|
43889
|
+
// hover
|
|
43890
|
+
"hover:text-primary-green-500",
|
|
43891
|
+
// focus
|
|
43892
|
+
"focus:text-secondary-green-500 data-[focus-visible=true]:outline-secondary-green-500"
|
|
43893
|
+
].join(" "),
|
|
43885
43894
|
tertiaryLight: [
|
|
43886
43895
|
// default
|
|
43887
43896
|
"!bg-transparent px-4 font-medium text-primary-green-500",
|
|
@@ -43978,6 +43987,11 @@ const vv0 = ({ icons: e, className: r, isSelected: t, onValueChange: o }) => {
|
|
|
43978
43987
|
isLoading: !0,
|
|
43979
43988
|
class: "!font-medium"
|
|
43980
43989
|
},
|
|
43990
|
+
{
|
|
43991
|
+
variant: "tertiaryDarkGreen",
|
|
43992
|
+
isLoading: !0,
|
|
43993
|
+
class: "!font-medium"
|
|
43994
|
+
},
|
|
43981
43995
|
{
|
|
43982
43996
|
variant: "tertiaryLight",
|
|
43983
43997
|
isLoading: !0,
|
|
@@ -44004,6 +44018,11 @@ const vv0 = ({ icons: e, className: r, isSelected: t, onValueChange: o }) => {
|
|
|
44004
44018
|
disabled: !0,
|
|
44005
44019
|
class: "!bg-transparent"
|
|
44006
44020
|
},
|
|
44021
|
+
{
|
|
44022
|
+
variant: "tertiaryDarkGreen",
|
|
44023
|
+
disabled: !0,
|
|
44024
|
+
class: "!bg-transparent"
|
|
44025
|
+
},
|
|
44007
44026
|
{
|
|
44008
44027
|
variant: "tertiaryLight",
|
|
44009
44028
|
disabled: !0,
|
|
@@ -44063,7 +44082,7 @@ const vv0 = ({ icons: e, className: r, isSelected: t, onValueChange: o }) => {
|
|
|
44063
44082
|
...h,
|
|
44064
44083
|
children: /* @__PURE__ */ A.jsxs("div", { className: "relative flex items-center gap-3 text-center", children: [
|
|
44065
44084
|
!!s && (typeof s == "string" ? /* @__PURE__ */ A.jsx(u1, { "data-testid": "button-component-icon-left", name: s }) : s),
|
|
44066
|
-
e && /* @__PURE__ */ A.jsx("span", { className: t.includes("tertiary") ? "underline" : "", children: e }),
|
|
44085
|
+
e && /* @__PURE__ */ A.jsx("span", { className: t.includes("tertiary") ? "underline underline-offset-4" : "", children: e }),
|
|
44067
44086
|
!!l && (typeof l == "string" ? /* @__PURE__ */ A.jsx(u1, { "data-testid": "button-component-icon-right", name: l }) : l)
|
|
44068
44087
|
] })
|
|
44069
44088
|
}
|
|
@@ -48426,7 +48445,7 @@ const Oj = /* @__PURE__ */ uE(Bj), Vv0 = C0(
|
|
|
48426
48445
|
/* @__PURE__ */ A.jsxs(
|
|
48427
48446
|
"div",
|
|
48428
48447
|
{
|
|
48429
|
-
className: p1("
|
|
48448
|
+
className: p1("relative w-full", {
|
|
48430
48449
|
"mt-6": !g
|
|
48431
48450
|
}),
|
|
48432
48451
|
children: [
|
|
@@ -57259,28 +57278,41 @@ const wq = ({
|
|
|
57259
57278
|
variants: {
|
|
57260
57279
|
actionType: {
|
|
57261
57280
|
link: "mt-[2px]",
|
|
57262
|
-
button: "md:justify-end"
|
|
57281
|
+
button: "flex-col gap-2 sm:flex-row md:justify-end"
|
|
57263
57282
|
}
|
|
57264
57283
|
}
|
|
57265
57284
|
}), f = () => o === "banner" ? "secondaryNegative" : u === "link" ? "tertiary" : "secondary";
|
|
57266
57285
|
return /* @__PURE__ */ A.jsxs("div", { className: d({ inlineActions: t, toastType: o }), children: [
|
|
57267
57286
|
a && /* @__PURE__ */ A.jsx("div", { className: p({ iconVariant: s }), children: typeof a == "string" ? /* @__PURE__ */ A.jsx(u1, { name: a }) : a }),
|
|
57268
57287
|
/* @__PURE__ */ A.jsxs("div", { className: "flex flex-1 flex-col gap-3 md:flex-row", children: [
|
|
57269
|
-
/* @__PURE__ */ A.jsx("div", { className: "
|
|
57288
|
+
/* @__PURE__ */ A.jsx("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ A.jsxs("p", { className: h({ toastType: o }), children: [
|
|
57270
57289
|
e,
|
|
57271
|
-
u === "link" && r && r.map(({ label: v, onClick: m }) => /* @__PURE__ */ A.jsx(
|
|
57290
|
+
u === "link" && r && r.map(({ label: v, onClick: m, isLoading: w, isDisabled: b }) => /* @__PURE__ */ A.jsx(
|
|
57272
57291
|
Qt,
|
|
57273
57292
|
{
|
|
57274
57293
|
variant: f(),
|
|
57275
57294
|
onClick: m,
|
|
57295
|
+
isLoading: w,
|
|
57296
|
+
isDisabled: b,
|
|
57276
57297
|
size: "small",
|
|
57277
|
-
className: "
|
|
57298
|
+
className: "!px-0 md:ml-2",
|
|
57278
57299
|
children: v
|
|
57279
57300
|
},
|
|
57280
57301
|
v
|
|
57281
57302
|
))
|
|
57282
57303
|
] }) }),
|
|
57283
|
-
u !== "link" && r && /* @__PURE__ */ A.jsx("div", { className: g({ actionType: u }), children: r.map(({ label: v, onClick: m }) => /* @__PURE__ */ A.jsx(
|
|
57304
|
+
u !== "link" && r && /* @__PURE__ */ A.jsx("div", { className: g({ actionType: u }), children: r.map(({ label: v, onClick: m, isLoading: w, isDisabled: b }) => /* @__PURE__ */ A.jsx(
|
|
57305
|
+
Qt,
|
|
57306
|
+
{
|
|
57307
|
+
variant: f(),
|
|
57308
|
+
onClick: m,
|
|
57309
|
+
size: "small",
|
|
57310
|
+
isLoading: w,
|
|
57311
|
+
isDisabled: b,
|
|
57312
|
+
children: v
|
|
57313
|
+
},
|
|
57314
|
+
v
|
|
57315
|
+
)) })
|
|
57284
57316
|
] }),
|
|
57285
57317
|
l && /* @__PURE__ */ A.jsx("div", { className: "flex self-start md:self-center", children: /* @__PURE__ */ A.jsx("button", { onClick: c, children: /* @__PURE__ */ A.jsx(u1, { name: "close", className: "cursor-pointer text-xs text-black" }) }) })
|
|
57286
57318
|
] });
|