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.
Files changed (102) hide show
  1. package/dist/CardBackground-D5SgTU1i.js +262 -0
  2. package/dist/CardBackground.css +1 -0
  3. package/dist/CheckBox.es.js +1 -1
  4. package/dist/DrawerMobile-VjhsKiXN.js +563 -0
  5. package/dist/DrawerMobile.es.js +1 -1
  6. package/dist/HelperComponent-BLbQGj27.js +26 -0
  7. package/dist/Icons.es.js +26 -24
  8. package/dist/Input.es.js +321 -229
  9. package/dist/InputMultiple.es.js +1 -1
  10. package/dist/ListItem-DiQTFzmP.js +291 -0
  11. package/dist/Menu.css +1 -0
  12. package/dist/Menu.d.ts +0 -4
  13. package/dist/Menu.es.js +675 -69
  14. package/dist/Modal.es.js +2 -2
  15. package/dist/NotificationCard.es.js +73 -56
  16. package/dist/PLNotificationsList.es.js +27 -26
  17. package/dist/PyrionLayout.es.js +82 -132
  18. package/dist/RadioButton.es.js +1 -1
  19. package/dist/RecurrentDatePicker.es.js +8 -8
  20. package/dist/{Scrollable-Dawzc-Ih.js → Scrollable-BaO4iaOO.js} +1 -1
  21. package/dist/Scrollable.es.js +1 -1
  22. package/dist/SegmentedButton.es.js +143 -124
  23. package/dist/Select-5bmnPKr8.js +1439 -0
  24. package/dist/Select.css +1 -0
  25. package/dist/Select.es.js +2 -1140
  26. package/dist/SelectLegacy.d.ts +6 -0
  27. package/dist/SelectLegacy.es.js +1142 -0
  28. package/dist/SelectSearch.es.js +208 -270
  29. package/dist/Skeleton.es.js +6 -5
  30. package/dist/{TabLinks-DCD__JLI.js → TabLinks-DyiH6Iy7.js} +2 -2
  31. package/dist/TabLinks.es.js +1 -1
  32. package/dist/TabSwitch.es.js +330 -3
  33. package/dist/Table.css +1 -1
  34. package/dist/Table.es.js +204 -424
  35. package/dist/TextArea.es.js +1 -1
  36. package/dist/components/CardBackground/CardBackground.d.ts +7 -0
  37. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  38. package/dist/components/Input/Input.d.ts +1 -35
  39. package/dist/components/Input/adapter.d.ts +2 -0
  40. package/dist/components/Input/index.d.ts +2 -0
  41. package/dist/components/Input/styles.d.ts +23 -0
  42. package/dist/components/Input/types.d.ts +65 -0
  43. package/dist/components/InputLegacy/Input.d.ts +36 -0
  44. package/dist/components/InputLegacy/index.d.ts +2 -0
  45. package/dist/components/InputPassword/InputPassword.d.ts +7 -0
  46. package/dist/components/InputPassword/index.d.ts +2 -0
  47. package/dist/components/InputSearch/InputSearch.d.ts +1 -1
  48. package/dist/components/Menu/ListItem.d.ts +5 -3
  49. package/dist/components/Menu/Menu.d.ts +43 -0
  50. package/dist/components/Menu/MenuDrawer.d.ts +23 -0
  51. package/dist/components/Menu/MenuFloating.d.ts +25 -0
  52. package/dist/components/Menu/menuSlots.d.ts +17 -0
  53. package/dist/components/Menu/useMenuControl.d.ts +22 -0
  54. package/dist/components/Menu/useMenuSlots.d.ts +13 -0
  55. package/dist/components/MenuList/MenuList.d.ts +8 -18
  56. package/dist/components/MenuList/MenuListAccordionContext.d.ts +10 -0
  57. package/dist/components/MenuList/MenuListGroup.d.ts +31 -0
  58. package/dist/components/MenuList/useCollapse.d.ts +15 -0
  59. package/dist/components/NotificationCard/NotificationCard.d.ts +7 -3
  60. package/dist/components/PyrionNavigationDrawer/PLayoutBase.d.ts +2 -2
  61. package/dist/components/Select/DefaultGroupHeader.d.ts +12 -0
  62. package/dist/components/Select/DefaultOption.d.ts +14 -0
  63. package/dist/components/Select/MultiDisplay.d.ts +15 -0
  64. package/dist/components/Select/Select.d.ts +5 -132
  65. package/dist/components/Select/SelectDropdown.d.ts +39 -0
  66. package/dist/components/Select/SelectTrigger.d.ts +37 -0
  67. package/dist/components/Select/SingleDisplay.d.ts +8 -0
  68. package/dist/components/Select/index.d.ts +2 -0
  69. package/dist/components/Select/optionUtils.d.ts +7 -0
  70. package/dist/components/Select/types.d.ts +200 -0
  71. package/dist/components/Select/useSelectKeyboard.d.ts +20 -0
  72. package/dist/components/Select/useSelectSearch.d.ts +18 -0
  73. package/dist/components/Select/useSelectState.d.ts +33 -0
  74. package/dist/components/SelectLegacy/Select.d.ts +132 -0
  75. package/dist/components/SelectLegacy/index.d.ts +2 -0
  76. package/dist/components/SelectSearch/SelectSearch.d.ts +60 -19
  77. package/dist/components/SelectSearch/SelectSearchLegacy.d.ts +40 -0
  78. package/dist/components/SelectSearch/useAsyncOptions.d.ts +39 -0
  79. package/dist/components/Shared/HelperComponent.d.ts +1 -0
  80. package/dist/exports/Input.d.ts +1 -1
  81. package/dist/exports/Menu.d.ts +4 -3
  82. package/dist/exports/MenuList.d.ts +3 -0
  83. package/dist/exports/Select.d.ts +2 -4
  84. package/dist/exports/SelectLegacy.d.ts +2 -0
  85. package/dist/hooks/useFloatingPosition.d.ts +52 -0
  86. package/dist/icons/TextFieldsAlt.d.ts +6 -0
  87. package/dist/icons/TextFieldsAlt.es.js +19 -0
  88. package/dist/icons/components/TextFieldsAlt.d.ts +4 -0
  89. package/dist/icons/index.d.ts +1 -0
  90. package/dist/icons/registry.d.ts +3 -0
  91. package/dist/index.d.ts +13 -3
  92. package/dist/prometeo-design-system.es.js +853 -267
  93. package/dist/styles.css +1 -1
  94. package/dist/useDevice-S7cYqLVh.js +18 -0
  95. package/dist/useDevice.es.js +1 -1
  96. package/package.json +5 -1
  97. package/src/styles/base.css +18 -1
  98. package/src/styles/utilities.css +1 -1
  99. package/dist/DrawerMobile-CqPoG8Dz.js +0 -554
  100. package/dist/HelperComponent-ljsn0xD6.js +0 -26
  101. package/dist/TabSwitch-D0CuTaPF.js +0 -574
  102. 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)}
@@ -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 absolute", {
113
+ ), W = s("pointer-events-none shrink-0", {
114
114
  variants: {
115
115
  disabled: {
116
116
  true: "icon-disabled-ondisabled",