prometeo-design-system 6.6.0 → 7.0.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/CardBackground-D5SgTU1i.js +262 -0
- package/dist/CardBackground.css +1 -0
- package/dist/CheckBox.es.js +1 -1
- package/dist/DrawerMobile-VjhsKiXN.js +563 -0
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/HelperComponent-BLbQGj27.js +26 -0
- package/dist/Icons.es.js +26 -24
- package/dist/Input.es.js +321 -229
- package/dist/InputMultiple.es.js +1 -1
- package/dist/ListItem-DiQTFzmP.js +291 -0
- package/dist/Menu.css +1 -0
- package/dist/Menu.d.ts +0 -4
- package/dist/Menu.es.js +675 -69
- package/dist/Modal.es.js +2 -2
- package/dist/NotificationCard.es.js +73 -56
- package/dist/PLNotificationsList.es.js +27 -26
- package/dist/PyrionLayout.es.js +82 -132
- package/dist/RadioButton.es.js +1 -1
- package/dist/RecurrentDatePicker.es.js +8 -8
- package/dist/{Scrollable-Dawzc-Ih.js → Scrollable-BaO4iaOO.js} +1 -1
- package/dist/Scrollable.es.js +1 -1
- package/dist/SegmentedButton.es.js +143 -124
- package/dist/Select-5bmnPKr8.js +1439 -0
- package/dist/Select.css +1 -0
- package/dist/Select.es.js +2 -1140
- package/dist/SelectLegacy.d.ts +6 -0
- package/dist/SelectLegacy.es.js +1142 -0
- package/dist/SelectSearch.es.js +208 -270
- package/dist/Skeleton.es.js +6 -5
- package/dist/{TabLinks-DCD__JLI.js → TabLinks-DyiH6Iy7.js} +2 -2
- package/dist/TabLinks.es.js +1 -1
- package/dist/TabSwitch.es.js +330 -3
- package/dist/Table.css +1 -1
- package/dist/Table.es.js +204 -424
- package/dist/TextArea.es.js +1 -1
- package/dist/components/CardBackground/CardBackground.d.ts +7 -0
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +1 -35
- package/dist/components/Input/adapter.d.ts +2 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/styles.d.ts +23 -0
- package/dist/components/Input/types.d.ts +65 -0
- package/dist/components/InputLegacy/Input.d.ts +36 -0
- package/dist/components/InputLegacy/index.d.ts +2 -0
- package/dist/components/InputPassword/InputPassword.d.ts +7 -0
- package/dist/components/InputPassword/index.d.ts +2 -0
- package/dist/components/InputSearch/InputSearch.d.ts +1 -1
- package/dist/components/Menu/ListItem.d.ts +5 -3
- package/dist/components/Menu/Menu.d.ts +43 -0
- package/dist/components/Menu/MenuDrawer.d.ts +23 -0
- package/dist/components/Menu/MenuFloating.d.ts +25 -0
- package/dist/components/Menu/menuSlots.d.ts +17 -0
- package/dist/components/Menu/useMenuControl.d.ts +22 -0
- package/dist/components/Menu/useMenuSlots.d.ts +13 -0
- package/dist/components/MenuList/MenuList.d.ts +8 -18
- package/dist/components/MenuList/MenuListAccordionContext.d.ts +10 -0
- package/dist/components/MenuList/MenuListGroup.d.ts +31 -0
- package/dist/components/MenuList/useCollapse.d.ts +15 -0
- package/dist/components/NotificationCard/NotificationCard.d.ts +7 -3
- package/dist/components/PyrionNavigationDrawer/PLayoutBase.d.ts +2 -2
- package/dist/components/Select/DefaultGroupHeader.d.ts +12 -0
- package/dist/components/Select/DefaultOption.d.ts +14 -0
- package/dist/components/Select/MultiDisplay.d.ts +15 -0
- package/dist/components/Select/Select.d.ts +5 -132
- package/dist/components/Select/SelectDropdown.d.ts +39 -0
- package/dist/components/Select/SelectTrigger.d.ts +37 -0
- package/dist/components/Select/SingleDisplay.d.ts +8 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/optionUtils.d.ts +7 -0
- package/dist/components/Select/types.d.ts +200 -0
- package/dist/components/Select/useSelectKeyboard.d.ts +20 -0
- package/dist/components/Select/useSelectSearch.d.ts +18 -0
- package/dist/components/Select/useSelectState.d.ts +33 -0
- package/dist/components/SelectLegacy/Select.d.ts +132 -0
- package/dist/components/SelectLegacy/index.d.ts +2 -0
- package/dist/components/SelectSearch/SelectSearch.d.ts +60 -19
- package/dist/components/SelectSearch/SelectSearchLegacy.d.ts +40 -0
- package/dist/components/SelectSearch/useAsyncOptions.d.ts +39 -0
- package/dist/components/Shared/HelperComponent.d.ts +1 -0
- package/dist/exports/Input.d.ts +1 -1
- package/dist/exports/Menu.d.ts +4 -3
- package/dist/exports/MenuList.d.ts +3 -0
- package/dist/exports/Select.d.ts +2 -4
- package/dist/exports/SelectLegacy.d.ts +2 -0
- package/dist/hooks/useFloatingPosition.d.ts +52 -0
- package/dist/icons/TextFieldsAlt.d.ts +6 -0
- package/dist/icons/TextFieldsAlt.es.js +19 -0
- package/dist/icons/components/TextFieldsAlt.d.ts +4 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/registry.d.ts +3 -0
- package/dist/index.d.ts +13 -3
- package/dist/prometeo-design-system.es.js +853 -267
- package/dist/styles.css +1 -1
- package/dist/useDevice-S7cYqLVh.js +18 -0
- package/dist/useDevice.es.js +1 -1
- package/package.json +5 -1
- package/src/styles/base.css +18 -1
- package/src/styles/utilities.css +1 -1
- package/dist/DrawerMobile-CqPoG8Dz.js +0 -554
- package/dist/HelperComponent-ljsn0xD6.js +0 -26
- package/dist/TabSwitch-D0CuTaPF.js +0 -574
- package/dist/useDevice-vwn4GLwK.js +0 -16
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { j as b } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { memo as I } from "react";
|
|
3
|
+
import { c as T } from "./index-BOQuZ0gG.js";
|
|
4
|
+
import { c as g } from "./cn-B6yFEsav.js";
|
|
5
|
+
const N = "data-interaction-group", P = "data-interaction-exclude";
|
|
6
|
+
function W() {
|
|
7
|
+
return { [N]: "" };
|
|
8
|
+
}
|
|
9
|
+
function R(r) {
|
|
10
|
+
return r != null && r !== "self";
|
|
11
|
+
}
|
|
12
|
+
function S(r, e) {
|
|
13
|
+
const t = r ?? "neutral";
|
|
14
|
+
return {
|
|
15
|
+
color: t,
|
|
16
|
+
variant: t === "brand" ? "primary" : e ?? "default"
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function O(r, e) {
|
|
20
|
+
return {
|
|
21
|
+
default: { color: r, variant: e },
|
|
22
|
+
hover: { color: r, variant: e, forced: "hover" },
|
|
23
|
+
pressed: { color: r, variant: e, forced: "pressed" }
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function V(r, e, t) {
|
|
27
|
+
if (r) return r;
|
|
28
|
+
const { color: a, variant: n } = S(e, t);
|
|
29
|
+
return O(a, n);
|
|
30
|
+
}
|
|
31
|
+
function A(r, e) {
|
|
32
|
+
return e || r !== void 0;
|
|
33
|
+
}
|
|
34
|
+
const y = "transition-colors duration-300 ease will-change-colors", i = T(y, {
|
|
35
|
+
variants: {
|
|
36
|
+
color: {
|
|
37
|
+
neutral: "",
|
|
38
|
+
brand: ""
|
|
39
|
+
},
|
|
40
|
+
variant: {
|
|
41
|
+
default: "",
|
|
42
|
+
primary: "",
|
|
43
|
+
secondary: "",
|
|
44
|
+
tertiary: ""
|
|
45
|
+
},
|
|
46
|
+
disabled: {
|
|
47
|
+
true: "bg-disabled-default",
|
|
48
|
+
false: ""
|
|
49
|
+
},
|
|
50
|
+
forced: {
|
|
51
|
+
undefined: "",
|
|
52
|
+
default: "",
|
|
53
|
+
hover: "",
|
|
54
|
+
pressed: ""
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
color: "neutral",
|
|
59
|
+
variant: "default"
|
|
60
|
+
},
|
|
61
|
+
compoundVariants: [
|
|
62
|
+
{
|
|
63
|
+
color: "neutral",
|
|
64
|
+
variant: "default",
|
|
65
|
+
class: "bg-neutral-default-default hover:bg-neutral-default-hover active:bg-neutral-default-pressed",
|
|
66
|
+
disabled: [!1],
|
|
67
|
+
forced: void 0
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
color: "neutral",
|
|
71
|
+
variant: "primary",
|
|
72
|
+
class: "bg-neutral-primary-default hover:bg-neutral-primary-hover active:bg-neutral-primary-pressed",
|
|
73
|
+
disabled: [!1]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
color: "neutral",
|
|
77
|
+
variant: "secondary",
|
|
78
|
+
class: "bg-neutral-secondary-default hover:bg-neutral-secondary-hover active:bg-neutral-secondary-pressed",
|
|
79
|
+
disabled: [!1]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
color: "neutral",
|
|
83
|
+
variant: "tertiary",
|
|
84
|
+
class: "bg-neutral-tertiary-default hover:bg-neutral-tertiary-hover active:bg-neutral-tertiary-pressed",
|
|
85
|
+
disabled: [!1]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
color: "brand",
|
|
89
|
+
variant: "primary",
|
|
90
|
+
class: "bg-brand-overlay-default hover:bg-brand-overlay-hover active:bg-brand-overlay-pressed",
|
|
91
|
+
disabled: [!1]
|
|
92
|
+
},
|
|
93
|
+
// Forced variants
|
|
94
|
+
{
|
|
95
|
+
color: "neutral",
|
|
96
|
+
variant: "default",
|
|
97
|
+
forced: "default",
|
|
98
|
+
class: "bg-neutral-default-default hover:bg-neutral-default-default active:bg-neutral-default-default"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
color: "neutral",
|
|
102
|
+
variant: "default",
|
|
103
|
+
forced: "hover",
|
|
104
|
+
class: "bg-neutral-default-hover hover:bg-neutral-default-hover active:bg-neutral-default-hover"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
color: "neutral",
|
|
108
|
+
variant: "default",
|
|
109
|
+
forced: "pressed",
|
|
110
|
+
class: "bg-neutral-default-pressed hover:bg-neutral-default-pressed active:bg-neutral-default-pressed"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
color: "neutral",
|
|
114
|
+
variant: "primary",
|
|
115
|
+
forced: "default",
|
|
116
|
+
class: "bg-neutral-primary-default hover:bg-neutral-primary-default active:bg-neutral-primary-default"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
color: "neutral",
|
|
120
|
+
variant: "primary",
|
|
121
|
+
forced: "hover",
|
|
122
|
+
class: "bg-neutral-primary-hover hover:bg-neutral-primary-hover active:bg-neutral-primary-hover"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
color: "neutral",
|
|
126
|
+
variant: "primary",
|
|
127
|
+
forced: "pressed",
|
|
128
|
+
class: "bg-neutral-primary-pressed hover:bg-neutral-primary-pressed active:bg-neutral-primary-pressed"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
color: "neutral",
|
|
132
|
+
variant: "secondary",
|
|
133
|
+
forced: "default",
|
|
134
|
+
class: "bg-neutral-secondary-default hover:bg-neutral-secondary-default active:bg-neutral-secondary-default"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
color: "neutral",
|
|
138
|
+
variant: "secondary",
|
|
139
|
+
forced: "hover",
|
|
140
|
+
class: "bg-neutral-secondary-hover hover:bg-neutral-secondary-hover active:bg-neutral-secondary-hover"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
color: "neutral",
|
|
144
|
+
variant: "secondary",
|
|
145
|
+
forced: "pressed",
|
|
146
|
+
class: "bg-neutral-secondary-pressed hover:bg-neutral-secondary-pressed active:bg-neutral-secondary-pressed"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
color: "neutral",
|
|
150
|
+
variant: "tertiary",
|
|
151
|
+
forced: "default",
|
|
152
|
+
class: "bg-neutral-tertiary-default hover:bg-neutral-tertiary-default active:bg-neutral-tertiary-default"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
color: "neutral",
|
|
156
|
+
variant: "tertiary",
|
|
157
|
+
forced: "hover",
|
|
158
|
+
class: "bg-neutral-tertiary-hover hover:bg-neutral-tertiary-hover active:bg-neutral-tertiary-hover"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
color: "neutral",
|
|
162
|
+
variant: "tertiary",
|
|
163
|
+
forced: "pressed",
|
|
164
|
+
class: "bg-neutral-tertiary-pressed hover:bg-neutral-tertiary-pressed active:bg-neutral-tertiary-pressed"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
color: "brand",
|
|
168
|
+
variant: "primary",
|
|
169
|
+
forced: "default",
|
|
170
|
+
class: "bg-brand-overlay-default hover:bg-brand-overlay-default active:bg-brand-overlay-default"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
color: "brand",
|
|
174
|
+
variant: "primary",
|
|
175
|
+
forced: "hover",
|
|
176
|
+
class: "bg-brand-overlay-hover hover:bg-brand-overlay-hover active:bg-brand-overlay-hover"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
color: "brand",
|
|
180
|
+
variant: "primary",
|
|
181
|
+
forced: "pressed",
|
|
182
|
+
class: "bg-brand-overlay-pressed hover:bg-brand-overlay-pressed active:bg-brand-overlay-pressed"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
});
|
|
186
|
+
function p(r) {
|
|
187
|
+
return !("color" in r.default);
|
|
188
|
+
}
|
|
189
|
+
function s(r) {
|
|
190
|
+
if (r.forced) {
|
|
191
|
+
const a = i({
|
|
192
|
+
color: r.color,
|
|
193
|
+
variant: r.color === "brand" ? "primary" : r.variant,
|
|
194
|
+
forced: r.forced,
|
|
195
|
+
disabled: !1
|
|
196
|
+
}), n = i({
|
|
197
|
+
color: r.color,
|
|
198
|
+
variant: r.color === "brand" ? "primary" : r.variant,
|
|
199
|
+
forced: void 0,
|
|
200
|
+
disabled: !1
|
|
201
|
+
}), c = new Set(
|
|
202
|
+
n.split(" ").filter((o) => o.startsWith("bg-") && !o.includes(":"))
|
|
203
|
+
);
|
|
204
|
+
return `var(--${a.split(" ").filter((o) => o.startsWith("bg-") && !o.includes(":") && !c.has(o))[0] ?? a.split(" ").filter((o) => o.startsWith("bg-") && !o.includes(":")).pop() ?? "bg-neutral-default-default"})`;
|
|
205
|
+
}
|
|
206
|
+
return `var(--${i({
|
|
207
|
+
color: r.color,
|
|
208
|
+
variant: r.color === "brand" ? "primary" : r.variant,
|
|
209
|
+
forced: void 0,
|
|
210
|
+
disabled: !1
|
|
211
|
+
}).split(" ").find((a) => a.startsWith("bg-") && !a.includes(":")) ?? "bg-neutral-default-default"})`;
|
|
212
|
+
}
|
|
213
|
+
function E(r) {
|
|
214
|
+
const e = p(r) ? r.default : r, t = p(r) ? r.selected : void 0, a = {
|
|
215
|
+
"--cell-bg": s(e.default),
|
|
216
|
+
"--cell-bg-hover": s(e.hover),
|
|
217
|
+
"--cell-bg-pressed": s(e.pressed)
|
|
218
|
+
};
|
|
219
|
+
return t && (a["--cell-bg-selected"] = s(t.default), a["--cell-bg-sel-hover"] = s(t.hover), a["--cell-bg-sel-pressed"] = s(t.pressed)), a;
|
|
220
|
+
}
|
|
221
|
+
const _ = (r) => {
|
|
222
|
+
const e = {
|
|
223
|
+
color: "neutral",
|
|
224
|
+
variant: "default",
|
|
225
|
+
forced: void 0,
|
|
226
|
+
disabled: !1
|
|
227
|
+
}, {
|
|
228
|
+
color: t,
|
|
229
|
+
variant: a,
|
|
230
|
+
forced: n,
|
|
231
|
+
className: c,
|
|
232
|
+
disabled: d,
|
|
233
|
+
children: l,
|
|
234
|
+
interactionConfig: o,
|
|
235
|
+
interactionSource: u,
|
|
236
|
+
...v
|
|
237
|
+
} = { ...e, ...r };
|
|
238
|
+
if (A(n, d)) {
|
|
239
|
+
const C = i({ color: t, variant: a, forced: n, disabled: d });
|
|
240
|
+
return /* @__PURE__ */ b.jsx("div", { className: g(C, c), "data-disabled": d, ...v, children: l && typeof l == "function" ? l() : l });
|
|
241
|
+
}
|
|
242
|
+
const h = V(o, t, a), m = E(h), f = R(u);
|
|
243
|
+
return /* @__PURE__ */ b.jsx(
|
|
244
|
+
"div",
|
|
245
|
+
{
|
|
246
|
+
"data-cell-interactive": "",
|
|
247
|
+
"data-interaction-grouped": f ? "" : void 0,
|
|
248
|
+
"data-interaction-source": f ? u : void 0,
|
|
249
|
+
className: g(y, c),
|
|
250
|
+
"data-disabled": d,
|
|
251
|
+
style: m,
|
|
252
|
+
...v,
|
|
253
|
+
children: l && typeof l == "function" ? l() : l
|
|
254
|
+
}
|
|
255
|
+
);
|
|
256
|
+
}, x = I(_);
|
|
257
|
+
x.displayName = "CardBackground";
|
|
258
|
+
export {
|
|
259
|
+
x as C,
|
|
260
|
+
P as I,
|
|
261
|
+
W as i
|
|
262
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-cell-interactive]{background-color:var(--cell-bg)}[data-cell-interactive]:not([data-interaction-grouped]):hover{background-color:var(--cell-bg-hover)}[data-cell-interactive]:not([data-interaction-grouped]):active{background-color:var(--cell-bg-pressed)}[data-cell-interactive]:not([data-interaction-grouped])[data-selected=true]{background-color:var(--cell-bg-selected)}[data-cell-interactive]:not([data-interaction-grouped])[data-selected=true]:hover{background-color:var(--cell-bg-sel-hover)}[data-cell-interactive]:not([data-interaction-grouped])[data-selected=true]:active{background-color:var(--cell-bg-sel-pressed)}[data-interaction-group]:hover:not(:has([data-interaction-exclude]:hover)) [data-cell-interactive][data-interaction-grouped]{background-color:var(--cell-bg-hover)}[data-interaction-group]:active:not(:has([data-interaction-exclude]:active)) [data-cell-interactive][data-interaction-grouped]{background-color:var(--cell-bg-pressed)}[data-interaction-group][data-selected=true] [data-cell-interactive][data-interaction-grouped]{background-color:var(--cell-bg-selected)}[data-interaction-group][data-selected=true]:hover:not(:has([data-interaction-exclude]:hover)) [data-cell-interactive][data-interaction-grouped]{background-color:var(--cell-bg-sel-hover)}[data-interaction-group][data-selected=true]:active:not(:has([data-interaction-exclude]:active)) [data-cell-interactive][data-interaction-grouped]{background-color:var(--cell-bg-sel-pressed)}
|
package/dist/CheckBox.es.js
CHANGED
|
@@ -110,7 +110,7 @@ const E = "[Pyrion CheckBox]", h = /* @__PURE__ */ new Set(), L = (a, e) => {
|
|
|
110
110
|
}
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
|
-
), W = s("pointer-events-none
|
|
113
|
+
), W = s("pointer-events-none shrink-0", {
|
|
114
114
|
variants: {
|
|
115
115
|
disabled: {
|
|
116
116
|
true: "icon-disabled-ondisabled",
|