prometeo-design-system 4.8.2 → 4.8.4
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/PyrionLayout.es.js +529 -525
- package/dist/Steps.es.js +21 -21
- package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +1 -0
- package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +1 -0
- package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +1 -0
- package/package.json +1 -1
package/dist/Steps.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { c as j } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { motion as
|
|
3
|
+
import { motion as c } from "framer-motion";
|
|
4
4
|
import N from "react";
|
|
5
5
|
import { Check as y } from "./Icons/Check.es.js";
|
|
6
6
|
const b = ({
|
|
@@ -29,7 +29,7 @@ const b = ({
|
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
31
|
/* @__PURE__ */ e.jsx(
|
|
32
|
-
|
|
32
|
+
c.div,
|
|
33
33
|
{
|
|
34
34
|
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
35
35
|
initial: {
|
|
@@ -54,7 +54,7 @@ const b = ({
|
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
56
|
x && /* @__PURE__ */ e.jsx(
|
|
57
|
-
|
|
57
|
+
c.div,
|
|
58
58
|
{
|
|
59
59
|
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
60
60
|
initial: {
|
|
@@ -80,7 +80,7 @@ const b = ({
|
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
] });
|
|
83
|
-
},
|
|
83
|
+
}, I = ({
|
|
84
84
|
steps: n,
|
|
85
85
|
currentStep: t,
|
|
86
86
|
orientation: u = "horizontal",
|
|
@@ -90,12 +90,12 @@ const b = ({
|
|
|
90
90
|
onStepClick: o,
|
|
91
91
|
allowClickableSteps: p = !1
|
|
92
92
|
}) => {
|
|
93
|
-
const
|
|
93
|
+
const r = u === "horizontal", m = {
|
|
94
94
|
sm: {
|
|
95
95
|
circle: "size-7 aspect-square text-xs",
|
|
96
96
|
title: "text-sm",
|
|
97
97
|
description: "text-[11px] w-16",
|
|
98
|
-
spacing:
|
|
98
|
+
spacing: r ? "gap-2" : "gap-1",
|
|
99
99
|
connectorContainer: "px-2",
|
|
100
100
|
iconSize: 20
|
|
101
101
|
},
|
|
@@ -103,7 +103,7 @@ const b = ({
|
|
|
103
103
|
circle: "w-10 h-10 text-sm",
|
|
104
104
|
title: "text-base",
|
|
105
105
|
description: "text-sm w-20",
|
|
106
|
-
spacing:
|
|
106
|
+
spacing: r ? "gap-3" : "gap-2",
|
|
107
107
|
connectorContainer: "px-2",
|
|
108
108
|
iconSize: 24
|
|
109
109
|
},
|
|
@@ -111,7 +111,7 @@ const b = ({
|
|
|
111
111
|
circle: "w-12 h-12 text-base",
|
|
112
112
|
title: "text-lg",
|
|
113
113
|
description: "text-base w-28",
|
|
114
|
-
spacing:
|
|
114
|
+
spacing: r ? "gap-4" : "gap-3",
|
|
115
115
|
connectorContainer: "px-2",
|
|
116
116
|
iconSize: 28
|
|
117
117
|
}
|
|
@@ -127,13 +127,13 @@ const b = ({
|
|
|
127
127
|
}
|
|
128
128
|
}, h = (a) => {
|
|
129
129
|
p && o && o(a);
|
|
130
|
-
}, v =
|
|
130
|
+
}, v = r ? `flex items-center w-full justify-center ${x}` : `space-y-0 ${x}`;
|
|
131
131
|
return /* @__PURE__ */ e.jsx("div", { className: v, children: n.map((a, l) => {
|
|
132
132
|
const d = w(l), f = p && o;
|
|
133
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children:
|
|
133
|
+
return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: r ? /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
|
|
134
134
|
/* @__PURE__ */ e.jsxs("div", { className: "w-max flex flex-col items-center relative", children: [
|
|
135
135
|
/* @__PURE__ */ e.jsx(
|
|
136
|
-
|
|
136
|
+
c.div,
|
|
137
137
|
{
|
|
138
138
|
className: `${g(d)} ${f ? "cursor-pointer" : ""} relative z-10`,
|
|
139
139
|
initial: { scale: 0.8, opacity: 0 },
|
|
@@ -141,11 +141,11 @@ const b = ({
|
|
|
141
141
|
transition: { duration: 0.3, delay: l * 0.3 },
|
|
142
142
|
whileTap: f ? { scale: 0.95 } : {},
|
|
143
143
|
onClick: () => h(l),
|
|
144
|
-
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(
|
|
144
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : N.cloneElement(a.icon, { size: m[i].iconSize })
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
147
|
s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className: j(
|
|
148
|
-
"absolute text-center w-28 -bottom-2 translate-y-full",
|
|
148
|
+
"absolute text-center w-28 -bottom-2 translate-y-full break-normal",
|
|
149
149
|
m[i].description,
|
|
150
150
|
"text-gray-400 mt-2 text-center",
|
|
151
151
|
d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
|
|
@@ -159,7 +159,7 @@ const b = ({
|
|
|
159
159
|
b,
|
|
160
160
|
{
|
|
161
161
|
index: l,
|
|
162
|
-
isHorizontal:
|
|
162
|
+
isHorizontal: r,
|
|
163
163
|
currentStep: t,
|
|
164
164
|
size: i
|
|
165
165
|
}
|
|
@@ -169,7 +169,7 @@ const b = ({
|
|
|
169
169
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col items-center w-max", children: [
|
|
170
170
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center w-full relative", children: [
|
|
171
171
|
/* @__PURE__ */ e.jsx(
|
|
172
|
-
|
|
172
|
+
c.div,
|
|
173
173
|
{
|
|
174
174
|
className: `${g(d)} ${f ? "cursor-pointer" : ""}`,
|
|
175
175
|
initial: { scale: 0.8, opacity: 0 },
|
|
@@ -177,18 +177,18 @@ const b = ({
|
|
|
177
177
|
transition: { duration: 0.3, delay: l * 0.1 },
|
|
178
178
|
whileTap: f ? { scale: 0.95 } : {},
|
|
179
179
|
onClick: () => h(l),
|
|
180
|
-
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(
|
|
180
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : a.icon
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
183
|
s !== "minimal" && s !== "numbered-minimal" && /* @__PURE__ */ e.jsx(
|
|
184
|
-
|
|
184
|
+
c.div,
|
|
185
185
|
{
|
|
186
186
|
className: `absolute -right-4 top-1/2 -translate-y-1/2 translate-x-full ml-4 gap-3 flex flex-col w-full ${m[i].spacing} flex h-full`,
|
|
187
187
|
initial: { opacity: 0, x: -10 },
|
|
188
188
|
animate: { opacity: 1, x: 0 },
|
|
189
189
|
transition: { duration: 0.3, delay: l * 0.1 + 0.1 },
|
|
190
190
|
children: a.description && /* @__PURE__ */ e.jsx("p", { className: j(
|
|
191
|
-
"h-full text-start flex items-center justify-start ",
|
|
191
|
+
"h-full text-start flex items-center justify-start break-normal",
|
|
192
192
|
m[i].description,
|
|
193
193
|
"text-gray-400",
|
|
194
194
|
d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
|
|
@@ -200,7 +200,7 @@ const b = ({
|
|
|
200
200
|
b,
|
|
201
201
|
{
|
|
202
202
|
index: l,
|
|
203
|
-
isHorizontal:
|
|
203
|
+
isHorizontal: r,
|
|
204
204
|
currentStep: t,
|
|
205
205
|
size: i
|
|
206
206
|
}
|
|
@@ -209,6 +209,6 @@ const b = ({
|
|
|
209
209
|
}) });
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
I as Steps,
|
|
213
|
+
I as default
|
|
214
214
|
};
|
|
@@ -12,6 +12,7 @@ export interface PyrionLayoutActionItemProps {
|
|
|
12
12
|
isView?: boolean | (() => boolean);
|
|
13
13
|
order?: number;
|
|
14
14
|
tooltipText?: string;
|
|
15
|
+
selectorCss?: string;
|
|
15
16
|
}
|
|
16
17
|
declare const NavigationDrawerActionItem: import('react').MemoExoticComponent<(props: PyrionLayoutActionItemProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
17
18
|
export default NavigationDrawerActionItem;
|
|
@@ -14,6 +14,7 @@ export interface NavigationDrawerItemBaseProps {
|
|
|
14
14
|
onAuxClick?: React.MouseEventHandler;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
tooltipText?: string;
|
|
17
|
+
selectorCss?: string;
|
|
17
18
|
}
|
|
18
19
|
declare const NavigationDrawerItemBase: React.MemoExoticComponent<(props: NavigationDrawerItemBaseProps) => import("react/jsx-runtime").JSX.Element>;
|
|
19
20
|
export default NavigationDrawerItemBase;
|
|
@@ -18,6 +18,7 @@ export interface PyrionLayoutLinkItemProps {
|
|
|
18
18
|
sublinks?: NavItemSecondaryProps[];
|
|
19
19
|
subLinksRender?: (sublinks: NavItemSecondaryProps[], controls: NavItemHandler) => ReactNode;
|
|
20
20
|
tooltipText?: string;
|
|
21
|
+
selectorCss?: string;
|
|
21
22
|
}
|
|
22
23
|
interface NavItemHandler {
|
|
23
24
|
toggle: () => void;
|