prometeo-design-system 4.4.1 → 4.5.0
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/CheckBox.es.js +40 -40
- package/dist/Header.es.js +29 -26
- package/dist/IconButton.d.ts +6 -0
- package/dist/IconButton.es.js +306 -0
- package/dist/Icons/ArrowDownward.es.js +16 -7
- package/dist/Icons/ArrowUpward.es.js +16 -7
- package/dist/Icons/DragIndicator.d.ts +6 -0
- package/dist/Icons/DragIndicator.es.js +19 -0
- package/dist/Icons/components/DragIndicator.d.ts +4 -0
- package/dist/Icons/index.d.ts +1 -0
- package/dist/Icons/types.d.ts +2 -0
- package/dist/Icons.es.js +38 -36
- package/dist/PyrionLayout.es.js +1 -1
- package/dist/{TabLinks-BjGwvqR9.js → TabLinks-DnoWdrdk.js} +40 -40
- package/dist/TabLinks.es.js +1 -1
- package/dist/components/CheckBox/CheckBox.d.ts +1 -0
- package/dist/components/Header/Header.d.ts +3 -2
- package/dist/components/IconButton/IconButton.d.ts +22 -0
- package/dist/exports/IconButton.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/prometeo-design-system.es.js +47 -45
- package/dist/styles.css +1 -1
- package/package.json +5 -1
- package/src/styles/base.css +4 -0
- package/src/styles/intellisense.css +1 -0
- package/src/styles/utilities.css +4 -0
package/dist/CheckBox.es.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { Check as
|
|
5
|
-
const
|
|
6
|
-
({ className:
|
|
7
|
-
const
|
|
2
|
+
import { c as C } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { memo as y, forwardRef as j, useId as I, useRef as z, useState as N, useImperativeHandle as w } from "react";
|
|
4
|
+
import { Check as R } from "./Icons/Check.es.js";
|
|
5
|
+
const l = j(
|
|
6
|
+
({ className: c, disabled: e, onChange: o, value: d, checked: n, ...f }, u) => {
|
|
7
|
+
const p = I(), s = z(null), i = n !== void 0, [h, m] = N(!1), t = i ? n : h;
|
|
8
|
+
w(u, () => s.current, []);
|
|
9
|
+
const x = (r) => {
|
|
10
|
+
o && o(r), i || m(r.target.checked);
|
|
11
|
+
}, b = `
|
|
8
12
|
after:content-[""]
|
|
9
13
|
after:absolute
|
|
10
14
|
after:top-1/2
|
|
@@ -17,68 +21,64 @@ const i = g(
|
|
|
17
21
|
after:bg-neutral-700
|
|
18
22
|
after:-z-10
|
|
19
23
|
after:opacity-0
|
|
20
|
-
${!e && "hover:after:opacity-100"}
|
|
24
|
+
${!e && "aria-checked:hover:after:opacity-100"}
|
|
21
25
|
after:transition-all
|
|
22
26
|
after:duration-200
|
|
23
27
|
after:ease-in-out
|
|
24
28
|
after:pointer-events-none
|
|
25
|
-
${!e &&
|
|
29
|
+
${!e && `aria-checked:hover:bg-primary-default-hover
|
|
30
|
+
hover:border-primary-default-hover`}
|
|
26
31
|
transition-all
|
|
27
32
|
duration-200
|
|
28
33
|
ease-in-out
|
|
29
|
-
`,
|
|
34
|
+
`, g = "bg-primary-light", v = `
|
|
30
35
|
bg-transparent
|
|
31
36
|
border-[2px]
|
|
32
37
|
aria-checked:border-none
|
|
33
38
|
border-neutral-medium-default
|
|
34
39
|
hover:border-neutral-medium-hover
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
40
|
+
transition-all
|
|
41
|
+
duration-200
|
|
42
|
+
ease-in-out
|
|
43
|
+
`, k = {
|
|
44
|
+
selected: "bg-primary-default-disabled",
|
|
45
|
+
default: "border-neutral-default-disabled"
|
|
46
|
+
};
|
|
42
47
|
return /* @__PURE__ */ a.jsx(
|
|
43
48
|
"div",
|
|
44
49
|
{
|
|
45
|
-
id: "checkbox-container",
|
|
46
50
|
style: {
|
|
47
51
|
width: "24px",
|
|
48
52
|
height: "24px",
|
|
49
53
|
position: "relative",
|
|
50
54
|
zIndex: 10
|
|
51
55
|
},
|
|
52
|
-
className: "grid place-items-center p-2",
|
|
53
|
-
onClick: c,
|
|
56
|
+
className: "grid place-items-center p-2 ",
|
|
54
57
|
draggable: !1,
|
|
55
58
|
children: /* @__PURE__ */ a.jsxs(
|
|
56
59
|
"div",
|
|
57
60
|
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
className: s(
|
|
61
|
+
"aria-checked": t,
|
|
62
|
+
className: C(
|
|
61
63
|
"grid place-items-center absolute size-[18px] rounded-[2px]",
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
t
|
|
65
|
-
e &&
|
|
66
|
-
|
|
64
|
+
b,
|
|
65
|
+
v,
|
|
66
|
+
t ? g : "",
|
|
67
|
+
e && k[t ? "selected" : "default"],
|
|
68
|
+
c
|
|
67
69
|
),
|
|
68
|
-
onClick: c,
|
|
69
70
|
draggable: !1,
|
|
70
71
|
children: [
|
|
71
72
|
/* @__PURE__ */ a.jsx(
|
|
72
73
|
"input",
|
|
73
74
|
{
|
|
74
75
|
type: "checkbox",
|
|
75
|
-
id:
|
|
76
|
-
ref: (
|
|
77
|
-
|
|
76
|
+
id: p,
|
|
77
|
+
ref: (r) => {
|
|
78
|
+
s.current = r;
|
|
78
79
|
},
|
|
79
|
-
onChange:
|
|
80
|
-
value:
|
|
81
|
-
className: s(h),
|
|
80
|
+
onChange: x,
|
|
81
|
+
value: d,
|
|
82
82
|
disabled: e,
|
|
83
83
|
style: {
|
|
84
84
|
position: "absolute",
|
|
@@ -91,11 +91,11 @@ const i = g(
|
|
|
91
91
|
opacity: 0,
|
|
92
92
|
zIndex: 150
|
|
93
93
|
},
|
|
94
|
-
...
|
|
94
|
+
...f
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
t
|
|
98
|
-
|
|
97
|
+
t && /* @__PURE__ */ a.jsx(
|
|
98
|
+
R,
|
|
99
99
|
{
|
|
100
100
|
size: 18,
|
|
101
101
|
className: `absolute ${e ? "icon-neutral-strong-disabled" : ""} pointer-events-none icon-neutral-strong-default`
|
|
@@ -108,8 +108,8 @@ const i = g(
|
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
|
-
|
|
112
|
-
const
|
|
111
|
+
l.displayName = "CheckBox";
|
|
112
|
+
const E = y(l);
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
E as default
|
|
115
115
|
};
|
package/dist/Header.es.js
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
1
|
+
import { j as t } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { motion as n } from "framer-motion";
|
|
4
|
-
import { memo as
|
|
5
|
-
const c = ({ title: e, subtitle:
|
|
6
|
-
|
|
4
|
+
import { memo as f } from "react";
|
|
5
|
+
const c = ({ title: e, subtitle: s, children: l, className: m, subtitleClassName: r, titleClassName: d, mainActionSlot: a }) => /* @__PURE__ */ t.jsxs(
|
|
6
|
+
n.header,
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
initial: { opacity: 0, y: -10 },
|
|
9
|
+
animate: { opacity: 1, y: 0 },
|
|
10
|
+
transition: { duration: 0.6, ease: "easeOut" },
|
|
11
|
+
className: i(
|
|
12
|
+
"flex items-center sm:min-h-20 md:min-h-24 lg:min-h-28 xl:min-h-32 2xl:min-h-36 overflow-hidden px-4 md:px-0 py-2 md:py-3",
|
|
13
|
+
"flex justify-between items-center w-full",
|
|
14
|
+
a && "px-1",
|
|
15
|
+
m
|
|
11
16
|
),
|
|
12
|
-
children:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
className: "flex
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
)
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ t.jsxs("div", { className: i(
|
|
19
|
+
"flex items-center md:items-start md:flex-col leading-6 h-full justify-center min-w-max",
|
|
20
|
+
a && "justify-start gap-1"
|
|
21
|
+
), children: [
|
|
22
|
+
a && /* @__PURE__ */ t.jsx("div", { className: "md:px-3", children: typeof a == "function" ? a() : a }),
|
|
23
|
+
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col leading-6 justify-center md:px-6", children: [
|
|
24
|
+
s && /* @__PURE__ */ t.jsx("h3", { className: i(" prometeo-fonts-body-medium text-neutral-medium-default ", r), children: s }),
|
|
25
|
+
e && /* @__PURE__ */ t.jsx("h1", { className: i("prometeo-fonts-headline-small text-neutral-strong-default", d), children: e })
|
|
26
|
+
] })
|
|
27
|
+
] }),
|
|
28
|
+
l && /* @__PURE__ */ t.jsx("div", { className: "bg-red-400 px-2", children: l })
|
|
29
|
+
]
|
|
28
30
|
}
|
|
29
|
-
),
|
|
31
|
+
), u = f(c, (e, s) => e.title !== s.title || e.subtitle !== s.subtitle || e.className !== s.className ? !1 : e.children !== s.children ? !e.children && !s.children : !0);
|
|
32
|
+
u.displayName = "Header";
|
|
30
33
|
export {
|
|
31
|
-
|
|
34
|
+
u as default
|
|
32
35
|
};
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { j as r } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { memo as C, useMemo as E } from "react";
|
|
3
|
+
import R from "./Spinner.es.js";
|
|
4
|
+
import { c as b } from "./index-BOQuZ0gG.js";
|
|
5
|
+
import { c as f } from "./cn-B6yFEsav.js";
|
|
6
|
+
const u = {
|
|
7
|
+
small: {
|
|
8
|
+
container: "w-8 h-8 p-0 rounded-[6px]"
|
|
9
|
+
},
|
|
10
|
+
medium: {
|
|
11
|
+
container: "w-8 h-8 p-0 rounded-[6px]"
|
|
12
|
+
},
|
|
13
|
+
large: {
|
|
14
|
+
container: "w-12 h-12 p-0"
|
|
15
|
+
}
|
|
16
|
+
}, e = {
|
|
17
|
+
fill: {
|
|
18
|
+
primary: {
|
|
19
|
+
container: ` bg-primary-default-default border-primary-default-default
|
|
20
|
+
hover:bg-primary-default-hover
|
|
21
|
+
active:bg-primary-default-focused
|
|
22
|
+
`,
|
|
23
|
+
icon: "text-neutral-strong-default! group-hover:text-neutral-strong-hover! group-active:text-neutral-strong-pressed!"
|
|
24
|
+
},
|
|
25
|
+
secondary: {
|
|
26
|
+
container: `bg-neutral-medium-default border-neutral-medium-default
|
|
27
|
+
hover:bg-neutral-medium-hover
|
|
28
|
+
active:bg-neutral-medium-pressed`,
|
|
29
|
+
icon: "text-neutral-strong-default! group-hover:text-neutral-strong-hover! group-active:text-neutral-strong-pressed!"
|
|
30
|
+
},
|
|
31
|
+
success: {
|
|
32
|
+
container: "bg-success-default-default border-success-default-default hover:bg-success-default-hover active:bg-success-default-pressed",
|
|
33
|
+
icon: "text-neutral-weak-default group-hover:text-neutral-weak-hover group-active:text-neutral-weak-pressed"
|
|
34
|
+
},
|
|
35
|
+
error: {
|
|
36
|
+
container: "bg-error-default-default hover:bg-error-default-hover active:bg-error-default-pressed",
|
|
37
|
+
icon: "text-neutral-strong-default group-hover:text-neutral-strong-hover group-active:text-neutral-strong-pressed"
|
|
38
|
+
},
|
|
39
|
+
warning: {
|
|
40
|
+
container: "bg-warning-default-default hover:bg-warning-default-hover active:bg-warning-default-pressed",
|
|
41
|
+
icon: "text-neutral-weak-default group-hover:text-neutral-weak-hover group-active:text-neutral-weak-pressed"
|
|
42
|
+
},
|
|
43
|
+
disabled: {
|
|
44
|
+
container: "bg-primary-medium-disabled border-transparent cursor-default!",
|
|
45
|
+
icon: "text-neutral-strong-disabled group-hover:text-neutral-strong-disabled group-active:text-neutral-strong-disabled"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
outline: {
|
|
49
|
+
primary: {
|
|
50
|
+
container: `bg-transparent border-primary-default-default border
|
|
51
|
+
hover:bg-neutral-default-hover hover:border-primary-medium-hover
|
|
52
|
+
active:bg-neutral-default-pressed active:border-primary-medium-pressed
|
|
53
|
+
`,
|
|
54
|
+
icon: "text-primary-default-default group-hover:text-primary-medium-hover group-active:text-primary-medium-pressed"
|
|
55
|
+
},
|
|
56
|
+
secondary: {
|
|
57
|
+
container: "bg-transparent border-neutral-medium-default border hover:bg-neutral-default-hover hover:border-neutral-medium-hover active:bg-neutral-default-pressed active:border-neutral-medium-pressed",
|
|
58
|
+
icon: "text-neutral-strong-default group-hover:text-neutral-storng-hover group-active:text-neutral-storng-pressed"
|
|
59
|
+
},
|
|
60
|
+
success: {
|
|
61
|
+
container: "border border-success-default-default hover:border-success-default-hover hover:bg-neutral-default-hover active:border-success-default-pressed active:bg-neutral-default-pressed",
|
|
62
|
+
icon: "text-success-medium-default group-hover:text-success-medium-hover group-active:text-success-medium-pressed"
|
|
63
|
+
},
|
|
64
|
+
error: {
|
|
65
|
+
container: "border border-error-default-default hover:border-error-default-hover hover:bg-neutral-default-hover active:border-error-default-pressed active:bg-neutral-default-pressed",
|
|
66
|
+
icon: "text-error-medium-default group-hover:text-error-medium-hover group-active:text-error-medium-pressed"
|
|
67
|
+
},
|
|
68
|
+
warning: {
|
|
69
|
+
container: "border border-warning-default-default hover:border-warning-default-hover hover:bg-neutral-default-hover active:border-warning-default-pressed active:bg-neutral-default-pressed",
|
|
70
|
+
icon: "text-warning-medium-default group-hover:text-warning-medium-hover group-active:text-warning-medium-pressed"
|
|
71
|
+
},
|
|
72
|
+
disabled: {
|
|
73
|
+
container: "bg-neutral-default-disabled border-neutral-default-disabled border cursor-default!",
|
|
74
|
+
icon: "text-neutral-default-disabled group-hover:text-neutral-default-disabled group-active:text-neutral-default-disabled"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
text: {
|
|
78
|
+
primary: {
|
|
79
|
+
container: " bg-transparent border-0 text-primary-default-default hover:bg-neutral-default-hover hover:border-primary-medium-hover active:bg-neutral-default-pressed",
|
|
80
|
+
icon: "text-primary-default-default group-hover:text-primary-medium-hover group-active:text-primary-medium-pressed"
|
|
81
|
+
},
|
|
82
|
+
secondary: {
|
|
83
|
+
container: "bg-transparent border-0 hover:bg-neutral-default-hover hover:border-neutral-medium-hover active:bg-neutral-default-pressed",
|
|
84
|
+
icon: "text-neutral-strong-hover group-hover:text-neutral-storng-hover group-active:text-neutral-storng-pressed"
|
|
85
|
+
},
|
|
86
|
+
success: {
|
|
87
|
+
container: "border border-transparent hover:border-success-default-hover hover:bg-neutral-default-hover hover:border-success-default-hover active:border-success-default-pressed active:bg-neutral-default-pressed",
|
|
88
|
+
icon: "text-success-medium-default group-hover:text-success-medium-hover group-active:text-success-medium-pressed"
|
|
89
|
+
},
|
|
90
|
+
error: {
|
|
91
|
+
container: "border border-transparent hover:border-error-default-hover hover:bg-neutral-default-hover hover:border-error-default-hover active:border-error-default-pressed active:bg-neutral-default-pressed",
|
|
92
|
+
icon: "text-error-medium-default group-hover:text-error-medium-hover group-active:text-error-medium-pressed"
|
|
93
|
+
},
|
|
94
|
+
warning: {
|
|
95
|
+
container: "border border-transparent hover:border-warning-default-hover hover:bg-neutral-default-hover hover:border-warning-default-hover active:border-warning-default-pressed active:bg-neutral-default-pressed",
|
|
96
|
+
icon: "text-warning-medium-default group-hover:text-warning-medium-hover group-active:text-warning-medium-pressed"
|
|
97
|
+
},
|
|
98
|
+
disabled: {
|
|
99
|
+
container: "bg-transparent border-neutral-default-disabled border-none cursor-default! hover:bg-transparent",
|
|
100
|
+
icon: "text-neutral-medium-focused group-hover:text-neutral-medium-focused group-active:text-neutral-medium-focused"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, a = {
|
|
104
|
+
small: {
|
|
105
|
+
container: "",
|
|
106
|
+
icon: ""
|
|
107
|
+
},
|
|
108
|
+
medium: {
|
|
109
|
+
container: "",
|
|
110
|
+
icon: ""
|
|
111
|
+
},
|
|
112
|
+
large: {
|
|
113
|
+
container: "",
|
|
114
|
+
icon: ""
|
|
115
|
+
}
|
|
116
|
+
}, h = {
|
|
117
|
+
container: "flex justify-center items-center gap-1 w-max rounded-lg bg-transparent cursor-pointer transition-all ease-in-out duration-300 relative",
|
|
118
|
+
icon: "w-max transition-all ease-in-out duration-300 flex justify-center items-center"
|
|
119
|
+
}, p = {
|
|
120
|
+
true: {
|
|
121
|
+
container: "hover:scale-105 active:scale-95 disabled:scale-100"
|
|
122
|
+
},
|
|
123
|
+
false: {
|
|
124
|
+
container: ""
|
|
125
|
+
}
|
|
126
|
+
}, g = {
|
|
127
|
+
true: {
|
|
128
|
+
icon: "group-hover:rotate-90 group-active:rotate-0 group-disabled:rotate-0"
|
|
129
|
+
},
|
|
130
|
+
false: {
|
|
131
|
+
icon: ""
|
|
132
|
+
}
|
|
133
|
+
}, q = b(h.container, {
|
|
134
|
+
variants: {
|
|
135
|
+
size: {
|
|
136
|
+
small: `${a.small.container} ${u.small.container}`,
|
|
137
|
+
medium: `${a.medium.container} ${u.medium.container}`,
|
|
138
|
+
large: `${a.large.container} ${u.large.container}`
|
|
139
|
+
},
|
|
140
|
+
variant: {
|
|
141
|
+
fill: "",
|
|
142
|
+
outline: "",
|
|
143
|
+
text: ""
|
|
144
|
+
},
|
|
145
|
+
color: {
|
|
146
|
+
primary: "",
|
|
147
|
+
secondary: "",
|
|
148
|
+
success: "",
|
|
149
|
+
error: "",
|
|
150
|
+
warning: "",
|
|
151
|
+
disabled: ""
|
|
152
|
+
},
|
|
153
|
+
animation: {
|
|
154
|
+
true: p.true.container,
|
|
155
|
+
false: p.false.container
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
compoundVariants: [
|
|
159
|
+
{ variant: "fill", color: "primary", class: e.fill.primary.container },
|
|
160
|
+
{ variant: "fill", color: "secondary", class: e.fill.secondary.container },
|
|
161
|
+
{ variant: "fill", color: "success", class: e.fill.success.container },
|
|
162
|
+
{ variant: "fill", color: "error", class: e.fill.error.container },
|
|
163
|
+
{ variant: "fill", color: "warning", class: e.fill.warning.container },
|
|
164
|
+
{ variant: "fill", color: "disabled", class: e.fill.disabled.container },
|
|
165
|
+
{ variant: "outline", color: "primary", class: e.outline.primary.container },
|
|
166
|
+
{ variant: "outline", color: "secondary", class: e.outline.secondary.container },
|
|
167
|
+
{ variant: "outline", color: "success", class: e.outline.success.container },
|
|
168
|
+
{ variant: "outline", color: "error", class: e.outline.error.container },
|
|
169
|
+
{ variant: "outline", color: "warning", class: e.outline.warning.container },
|
|
170
|
+
{ variant: "outline", color: "disabled", class: e.outline.disabled.container },
|
|
171
|
+
{ variant: "text", color: "primary", class: e.text.primary.container },
|
|
172
|
+
{ variant: "text", color: "secondary", class: e.text.secondary.container },
|
|
173
|
+
{ variant: "text", color: "success", class: e.text.success.container },
|
|
174
|
+
{ variant: "text", color: "error", class: e.text.error.container },
|
|
175
|
+
{ variant: "text", color: "warning", class: e.text.warning.container },
|
|
176
|
+
{ variant: "text", color: "disabled", class: e.text.disabled.container }
|
|
177
|
+
],
|
|
178
|
+
defaultVariants: {
|
|
179
|
+
size: "medium",
|
|
180
|
+
variant: "fill",
|
|
181
|
+
color: "primary",
|
|
182
|
+
animation: !0
|
|
183
|
+
}
|
|
184
|
+
}), A = b(h.icon, {
|
|
185
|
+
variants: {
|
|
186
|
+
size: {
|
|
187
|
+
small: a.small.icon,
|
|
188
|
+
medium: a.medium.icon,
|
|
189
|
+
large: a.large.icon
|
|
190
|
+
},
|
|
191
|
+
variant: {
|
|
192
|
+
fill: "",
|
|
193
|
+
outline: "",
|
|
194
|
+
text: ""
|
|
195
|
+
},
|
|
196
|
+
color: {
|
|
197
|
+
primary: "",
|
|
198
|
+
secondary: "",
|
|
199
|
+
success: "",
|
|
200
|
+
error: "",
|
|
201
|
+
warning: "",
|
|
202
|
+
disabled: ""
|
|
203
|
+
},
|
|
204
|
+
animateIcon: {
|
|
205
|
+
true: g.true.icon,
|
|
206
|
+
false: g.false.icon
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
compoundVariants: [
|
|
210
|
+
{ variant: "fill", color: "primary", class: e.fill.primary.icon },
|
|
211
|
+
{ variant: "fill", color: "secondary", class: e.fill.secondary.icon },
|
|
212
|
+
{ variant: "fill", color: "success", class: e.fill.success.icon },
|
|
213
|
+
{ variant: "fill", color: "error", class: e.fill.error.icon },
|
|
214
|
+
{ variant: "fill", color: "warning", class: e.fill.warning.icon },
|
|
215
|
+
{ variant: "fill", color: "disabled", class: e.fill.disabled.icon },
|
|
216
|
+
{ variant: "outline", color: "primary", class: e.outline.primary.icon },
|
|
217
|
+
{ variant: "outline", color: "secondary", class: e.outline.secondary.icon },
|
|
218
|
+
{ variant: "outline", color: "success", class: e.outline.success.icon },
|
|
219
|
+
{ variant: "outline", color: "error", class: e.outline.error.icon },
|
|
220
|
+
{ variant: "outline", color: "warning", class: e.outline.warning.icon },
|
|
221
|
+
{ variant: "outline", color: "disabled", class: e.outline.disabled.icon },
|
|
222
|
+
{ variant: "text", color: "primary", class: e.text.primary.icon },
|
|
223
|
+
{ variant: "text", color: "secondary", class: e.text.secondary.icon },
|
|
224
|
+
{ variant: "text", color: "success", class: e.text.success.icon },
|
|
225
|
+
{ variant: "text", color: "error", class: e.text.error.icon },
|
|
226
|
+
{ variant: "text", color: "warning", class: e.text.warning.icon },
|
|
227
|
+
{ variant: "text", color: "disabled", class: e.text.disabled.icon }
|
|
228
|
+
],
|
|
229
|
+
defaultVariants: {
|
|
230
|
+
size: "medium",
|
|
231
|
+
variant: "fill",
|
|
232
|
+
color: "primary",
|
|
233
|
+
animateIcon: !0
|
|
234
|
+
}
|
|
235
|
+
}), M = ({
|
|
236
|
+
onClick: x,
|
|
237
|
+
icon: y,
|
|
238
|
+
contentClassName: n,
|
|
239
|
+
animate: w = !1,
|
|
240
|
+
animateIcon: j = !1,
|
|
241
|
+
isLoading: t = !1,
|
|
242
|
+
children: V,
|
|
243
|
+
hideSpinner: d = !1,
|
|
244
|
+
spinner: v = /* @__PURE__ */ r.jsx(R, { size: "small", variant: "clip", color: "var(--neutral-600)", className: "size-4 " }),
|
|
245
|
+
type: I,
|
|
246
|
+
className: $,
|
|
247
|
+
disabled: o,
|
|
248
|
+
variant: i = "fill",
|
|
249
|
+
form: k,
|
|
250
|
+
size: l = "medium",
|
|
251
|
+
color: z = "primary"
|
|
252
|
+
}) => {
|
|
253
|
+
const s = V || y;
|
|
254
|
+
if (!s)
|
|
255
|
+
throw new Error('IconButton: Se requiere un icon (prop "icon" o "children")');
|
|
256
|
+
const m = !!(j && !o && !t), S = !!(w && !o && !t), c = o || t ? "disabled" : z, N = E(() => {
|
|
257
|
+
if (t)
|
|
258
|
+
return /* @__PURE__ */ r.jsx("div", { className: "flex items-center justify-center", children: !d && v });
|
|
259
|
+
const B = s;
|
|
260
|
+
return /* @__PURE__ */ r.jsx("div", { className: f("flex items-center justify-center select-none", n), children: /* @__PURE__ */ r.jsx(
|
|
261
|
+
"span",
|
|
262
|
+
{
|
|
263
|
+
className: A({
|
|
264
|
+
size: l,
|
|
265
|
+
variant: i,
|
|
266
|
+
color: c,
|
|
267
|
+
animateIcon: m
|
|
268
|
+
}),
|
|
269
|
+
children: /* @__PURE__ */ r.jsx(B, {})
|
|
270
|
+
}
|
|
271
|
+
) });
|
|
272
|
+
}, [
|
|
273
|
+
n,
|
|
274
|
+
s,
|
|
275
|
+
i,
|
|
276
|
+
l,
|
|
277
|
+
c,
|
|
278
|
+
t,
|
|
279
|
+
d,
|
|
280
|
+
v,
|
|
281
|
+
m
|
|
282
|
+
]);
|
|
283
|
+
return /* @__PURE__ */ r.jsx(
|
|
284
|
+
"button",
|
|
285
|
+
{
|
|
286
|
+
type: I,
|
|
287
|
+
className: f(
|
|
288
|
+
"group",
|
|
289
|
+
q({
|
|
290
|
+
size: l,
|
|
291
|
+
variant: i,
|
|
292
|
+
color: c,
|
|
293
|
+
animation: S
|
|
294
|
+
}),
|
|
295
|
+
$
|
|
296
|
+
),
|
|
297
|
+
disabled: o || t,
|
|
298
|
+
form: k,
|
|
299
|
+
onClick: x,
|
|
300
|
+
children: /* @__PURE__ */ r.jsx("div", { className: `flex items-center gap-1 ${n}`, children: N })
|
|
301
|
+
}
|
|
302
|
+
);
|
|
303
|
+
}, H = C(M);
|
|
304
|
+
export {
|
|
305
|
+
H as default
|
|
306
|
+
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { m as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { j as o } from "../jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { m as s } from "../iconUtils-D0lVAgGT.js";
|
|
3
|
+
const e = s(({ size: r = 24, className: t, ...m }) => /* @__PURE__ */ o.jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
...m,
|
|
8
|
+
viewBox: "0 -960 960 960",
|
|
9
|
+
width: r,
|
|
10
|
+
height: r,
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
className: t,
|
|
13
|
+
children: /* @__PURE__ */ o.jsx("path", { d: "M480-120 200-400l80-80 160 160v-400h80v400l160-160 80 80-280 280Z" })
|
|
14
|
+
}
|
|
15
|
+
));
|
|
7
16
|
export {
|
|
8
|
-
|
|
17
|
+
e as ArrowDownward
|
|
9
18
|
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { m as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { j as o } from "../jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { m as s } from "../iconUtils-D0lVAgGT.js";
|
|
3
|
+
const h = s(({ size: r = 24, className: t, ...m }) => /* @__PURE__ */ o.jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
...m,
|
|
8
|
+
viewBox: "0 -960 960 960",
|
|
9
|
+
width: r,
|
|
10
|
+
height: r,
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
className: t,
|
|
13
|
+
children: /* @__PURE__ */ o.jsx("path", { d: "M480-840 200-560l80 80 160-160v400h80v-400l160 160 80-80-280-280Z" })
|
|
14
|
+
}
|
|
15
|
+
));
|
|
7
16
|
export {
|
|
8
|
-
|
|
17
|
+
h as ArrowUpward
|
|
9
18
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { j as T } from "../jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { m as o } from "../iconUtils-D0lVAgGT.js";
|
|
3
|
+
const e = o(({ size: q = 24, className: r, ...t }) => /* @__PURE__ */ T.jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
...t,
|
|
8
|
+
viewBox: "0 -960 960 960",
|
|
9
|
+
width: q,
|
|
10
|
+
height: q,
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
className: r,
|
|
13
|
+
children: /* @__PURE__ */ T.jsx("path", { d: "M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z" })
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
export {
|
|
17
|
+
e as DragIndicator,
|
|
18
|
+
e as default
|
|
19
|
+
};
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -65,5 +65,6 @@ export { Reassignment } from './components/Reassignment';
|
|
|
65
65
|
export { ReassignmentFill } from './components/ReassignmentFill';
|
|
66
66
|
export { Send } from './components/Send';
|
|
67
67
|
export { StarFill } from './components/StarFill';
|
|
68
|
+
export { DragIndicator } from './components/DragIndicator';
|
|
68
69
|
export type { IconProps } from './iconUtils';
|
|
69
70
|
export type { IconComponent } from './types';
|
package/dist/Icons/types.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ import { Reassignment } from './components/Reassignment';
|
|
|
65
65
|
import { ReassignmentFill } from './components/ReassignmentFill';
|
|
66
66
|
import { Send } from './components/Send';
|
|
67
67
|
import { StarFill } from './components/StarFill';
|
|
68
|
+
import { DragIndicator } from './components/DragIndicator';
|
|
68
69
|
export type IconsMap = {
|
|
69
70
|
Ticket: typeof Ticket;
|
|
70
71
|
Home: typeof Home;
|
|
@@ -133,6 +134,7 @@ export type IconsMap = {
|
|
|
133
134
|
Send: typeof Send;
|
|
134
135
|
StarFill: typeof StarFill;
|
|
135
136
|
UserAvatar: typeof UserAvatar;
|
|
137
|
+
DragIndicator: typeof DragIndicator;
|
|
136
138
|
};
|
|
137
139
|
export type IconName = keyof IconsMap;
|
|
138
140
|
export type IconComponent = IconsMap[IconName];
|