prometeo-design-system 1.9.8 → 2.0.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.
@@ -19,26 +19,27 @@ import { default as Bt } from "./Select.es.js";
19
19
  import { default as Lt } from "./SelectFormik.es.js";
20
20
  import { default as Ot } from "./Spinner.es.js";
21
21
  import { Steps as Et } from "./Steps.es.js";
22
- import { default as Dt } from "./SwipeContainer.es.js";
22
+ import { default as qt } from "./SwipeContainer.es.js";
23
23
  import { Switch as Ht } from "./Switch.es.js";
24
- import { Table as Mt, TableBody as $t, TableCaption as Ft, TableCell as Ut, TableFooter as Vt, TableHead as Gt, TableHeader as Xt, TableRow as Zt } from "./Table.es.js";
25
- import { default as Kt } from "./TabLinks.es.js";
26
- import { default as Yt } from "./TextArea.es.js";
27
- import { default as ta } from "./Tooltip.es.js";
28
- import { Skeleton as ra } from "./Skeleton.es.js";
24
+ import { default as Mt } from "./DatePicker.es.js";
25
+ import { Table as Ft, TableBody as Ut, TableCaption as Vt, TableCell as Gt, TableFooter as Xt, TableHead as Zt, TableHeader as Jt, TableRow as Kt } from "./Table.es.js";
26
+ import { default as Yt } from "./TabLinks.es.js";
27
+ import { default as ta } from "./TextArea.es.js";
28
+ import { default as ra } from "./Tooltip.es.js";
29
+ import { Skeleton as na } from "./Skeleton.es.js";
29
30
  import { j as a } from "./jsx-runtime-ByW6EXIE.js";
30
31
  import { c as u } from "./cn-B6yFEsav.js";
31
32
  import _, { useState as k, useMemo as z, useEffect as B, useRef as N, useLayoutEffect as Y, createContext as ee, useContext as te, forwardRef as M, useCallback as ae } from "react";
32
33
  import { motion as g, AnimatePresence as $ } from "framer-motion";
33
34
  import { u as F } from "./LayoutGeneric-jDE96L2N.js";
34
- import { L as na, S as ia } from "./LayoutGeneric-jDE96L2N.js";
35
+ import { L as sa, S as la } from "./LayoutGeneric-jDE96L2N.js";
35
36
  import { useGSAP as U } from "@gsap/react";
36
37
  import h from "gsap";
37
38
  import { Icons as R } from "./Icons.es.js";
38
- import { default as la } from "./OtpInput.es.js";
39
+ import { default as ua } from "./OtpInput.es.js";
39
40
  import { useDropzone as re } from "react-dropzone";
40
- import { useIsMobile as ua } from "./useDevice.es.js";
41
- import { DropZone as fa } from "./DropZone.es.js";
41
+ import { useIsMobile as fa } from "./useDevice.es.js";
42
+ import { DropZone as pa } from "./DropZone.es.js";
42
43
  const We = (t) => {
43
44
  const [e, o] = k({}), { size: r = "medium", color: n = "default", options: i, value: s, name: d, onChange: l, icon: f, allowExpand: c = !1, disabled: x = !1 } = t, p = Math.max(i.findIndex((m) => m.value === s), 0), b = i.length, I = 9, W = 26, w = {
44
45
  small: 120,
@@ -48,7 +49,7 @@ const We = (t) => {
48
49
  small: 94,
49
50
  medium: 94,
50
51
  large: 94
51
- }, q = 16, X = {
52
+ }, D = 16, X = {
52
53
  small: { container: "p-2" },
53
54
  medium: { container: "p-4 h-[48px] rounded-lg" },
54
55
  large: { container: "p-6" }
@@ -83,7 +84,7 @@ const We = (t) => {
83
84
  icon: "text-neutral-strong-disabled",
84
85
  option: "text-neutral-strong-disabled"
85
86
  }
86
- }, D = i.find((m) => m.value === s) ?? i[0], L = D.label.length * I + q * 2 + W, A = () => z(() => Object.values(e).reduce((y, j) => y + j, 0) + W, [e]), O = {
87
+ }, q = i.find((m) => m.value === s) ?? i[0], L = q.label.length * I + D * 2 + W, A = () => z(() => Object.values(e).reduce((y, j) => y + j, 0) + W, [e]), O = {
87
88
  small: c ? A() : (b - 1) * v.small + w.small,
88
89
  medium: c ? A() : (b - 1) * v.medium + w.medium,
89
90
  large: c ? A() : (b - 1) * v.large + w.large
@@ -92,7 +93,7 @@ const We = (t) => {
92
93
  if (!c) return;
93
94
  let m = {};
94
95
  i.forEach((y, j) => {
95
- m[j] = y.label.length * I + q * 2;
96
+ m[j] = y.label.length * I + D * 2;
96
97
  }), o(m);
97
98
  }, []);
98
99
  const Z = z(() => c ? Object.values(e).reduce((m, y, j) => j < p ? m + y : m, 0) : Math.max(p * v[r] - 2, 0), [p]), J = () => {
@@ -155,7 +156,7 @@ const We = (t) => {
155
156
  " overflow-hidden overflow-ellipsis text-nowrap ",
156
157
  C[S].switch
157
158
  ),
158
- children: D.label
159
+ children: q.label
159
160
  }
160
161
  )
161
162
  ]
@@ -696,7 +697,7 @@ const We = (t) => {
696
697
  ),
697
698
  children: n.map(
698
699
  (l, f) => {
699
- const c = l.name === d?.name, x = typeof l.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: l.thumbnail, alt: l.label, className: "aspect-square object-contain" }) : l.thumbnail, p = () => {
700
+ const c = l.name === d?.name, x = typeof l.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: l.thumbnail, alt: l.description, className: "aspect-square object-contain" }) : l.thumbnail, p = () => {
700
701
  l.disabled || (o(l.name), l.onClick && l.onClick(l.name));
701
702
  };
702
703
  return /* @__PURE__ */ a.jsx(
@@ -937,7 +938,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
937
938
  },
938
939
  n
939
940
  );
940
- }) }), qe = ({
941
+ }) }), De = ({
941
942
  links: t,
942
943
  isLinkActive: e,
943
944
  onLinkClick: o
@@ -1029,7 +1030,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
1029
1030
  },
1030
1031
  n
1031
1032
  );
1032
- }) }), De = ({
1033
+ }) }), qe = ({
1033
1034
  isActiveModalNotification: t,
1034
1035
  setIsActiveModalNotification: e
1035
1036
  }) => ({ handleNotificationClick: () => {
@@ -1108,23 +1109,24 @@ export {
1108
1109
  Ye as CheckBox,
1109
1110
  tt as CheckboxFormik,
1110
1111
  _e as CompanyLogo,
1112
+ Mt as DatePicker,
1111
1113
  rt as DialogModal,
1112
1114
  it as DrawerDesktop,
1113
1115
  ct as DrawerMobile,
1114
- fa as DropZone,
1116
+ pa as DropZone,
1115
1117
  ft as Header,
1116
1118
  R as Icons,
1117
1119
  pt as Input,
1118
1120
  ht as InputFormik,
1119
1121
  gt as InputMultiple,
1120
- na as LayoutGeneric,
1122
+ sa as LayoutGeneric,
1121
1123
  yt as Logo,
1122
1124
  jt as Menu,
1123
1125
  Ee as NavBarActions,
1124
1126
  He as NavbarCollapseButton,
1125
- qe as NavbarLinks,
1127
+ De as NavbarLinks,
1126
1128
  Pe as NavigationLink,
1127
- la as OtpInput,
1129
+ ua as OtpInput,
1128
1130
  Ct as Pagination,
1129
1131
  kt as ProfilePictureUpload,
1130
1132
  Rt as ProgressBar,
@@ -1134,30 +1136,30 @@ export {
1134
1136
  Lt as SelectFormik,
1135
1137
  Oe as Sidebar,
1136
1138
  ce as SidebarProvider,
1137
- ia as SidebarRefProvider,
1138
- ra as Skeleton,
1139
+ la as SidebarRefProvider,
1140
+ na as Skeleton,
1139
1141
  Ot as Spinner,
1140
1142
  Et as Steps,
1141
- Dt as SwipeContainer,
1143
+ qt as SwipeContainer,
1142
1144
  Ht as Switch,
1143
- Kt as TabLinks,
1144
- Mt as Table,
1145
- $t as TableBody,
1146
- Ft as TableCaption,
1147
- Ut as TableCell,
1148
- Vt as TableFooter,
1149
- Gt as TableHead,
1150
- Xt as TableHeader,
1151
- Zt as TableRow,
1152
- Yt as TextArea,
1153
- ta as Tooltip,
1154
- De as useActionsNavbar,
1145
+ Yt as TabLinks,
1146
+ Ft as Table,
1147
+ Ut as TableBody,
1148
+ Vt as TableCaption,
1149
+ Gt as TableCell,
1150
+ Xt as TableFooter,
1151
+ Zt as TableHead,
1152
+ Jt as TableHeader,
1153
+ Kt as TableRow,
1154
+ ta as TextArea,
1155
+ ra as Tooltip,
1156
+ qe as useActionsNavbar,
1155
1157
  $e as useClickOutside,
1156
1158
  ot as useDialogControl,
1157
1159
  st as useDrawerDesktop,
1158
1160
  ut as useDrawerMobile,
1159
1161
  Me as useFileDropzone,
1160
- ua as useIsMobile,
1162
+ fa as useIsMobile,
1161
1163
  ze as useNavbarCollapse,
1162
1164
  Ae as useSidebar,
1163
1165
  F as useSidebarContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "1.9.8",
4
+ "version": "2.0.1",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",
@@ -145,6 +145,10 @@
145
145
  "types": "./dist/SegmentedButton.d.ts",
146
146
  "import": "./dist/SegmentedButton.es.js"
147
147
  },
148
+ "./DatePicker":{
149
+ "types": "./dist/DatePicker.d.ts",
150
+ "import": "./dist/DatePicker.es.js"
151
+ },
148
152
  "./styles": "./dist/prometeo-design-system.css",
149
153
  "./intellisense": "./src/styles/intellisense.css"
150
154
  },
@@ -186,6 +190,7 @@
186
190
  "shared-dependencies-tickets": "^1.0.11"
187
191
  },
188
192
  "devDependencies": {
193
+ "@biomejs/biome": "2.2.7",
189
194
  "@emotion/is-prop-valid": "^1.4.0",
190
195
  "@eslint/js": "^9.33.0",
191
196
  "@gsap/react": "^2.1.2",
@@ -212,6 +217,7 @@
212
217
  "input-otp": "^1.4.2",
213
218
  "lucide-react": "^0.400.0",
214
219
  "react": "^19.0.0",
220
+ "react-day-picker": "^9.11.1",
215
221
  "react-dom": "^19.0.0",
216
222
  "react-dropzone": "^14.3.8",
217
223
  "react-router": "^7.9.3",
@@ -150,6 +150,7 @@
150
150
  @utility border-primary-default-default { --intellisense-border-primary-default-default: 1; }
151
151
  @utility border-primary-default-hover { --intellisense-border-primary-default-hover: 1; }
152
152
  @utility border-primary-default-focused { --intellisense-border-primary-default-focused: 1; }
153
+ @utility border-primary-default-pressed { --intellisense-border-primary-default-pressed: 1; }
153
154
  @utility border-primary-default-disabled { --intellisense-border-primary-default-disabled: 1; }
154
155
  @utility border-primary-light { --intellisense-border-primary-light: 1; }
155
156
  @utility border-primary-medium-default { --intellisense-border-primary-medium-default: 1; }