impact-nova 1.7.20 → 1.7.22

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.
@@ -1,78 +1,104 @@
1
- import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { cn as n } from "../../../lib/utils.js";
4
- import { CheckmarkSuccess as p } from "../../../icons/index.js";
5
- const f = i.createContext({ selected: !1 }), m = {
6
- purple: "linear-gradient(135deg, #F1DEFE 0%, #F6EDFD 33%, #F6EDFD 66%, #EDD3FE 100%)",
7
- blue: "linear-gradient(135deg, #F1F3FD 0%, #E2E6FF 33%, #F7F8FF 66%, #EAEDFF 100%)"
8
- }, u = i.forwardRef(
9
- ({ className: r, selected: e = !1, variant: o = "purple", gradient: t, children: s, ...d }, l) => /* @__PURE__ */ a(f.Provider, { value: { selected: e }, children: /* @__PURE__ */ c(
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { cn as d } from "../../../lib/utils.js";
4
+ const p = s.createContext({ selected: !1 }), x = "var(--Colors-Neutrals-Border-Subtle, #D9DDE7)", v = "var(--Colors-Primary-Surface-Default, #4259EE)", b = "linear-gradient(281deg, var(--Colors-Greys-50, #FAFAFA) 1.7%, var(--Colors-Greys-0, #FFF) 69.58%, var(--Colors-Greys-50, #FAFAFA) 97.56%)", g = "linear-gradient(281deg, var(--Colors-Blue_01-100, #ECEEFD) 1.7%, #FFF 48.25%, var(--Colors-Blue_01-100, #ECEEFD) 97.56%)", E = s.forwardRef(
5
+ ({ className: r, selected: e = !1, children: o, style: t, onMouseEnter: f, onMouseLeave: m, ...u }, C) => {
6
+ const [R, l] = s.useState(!1), c = e || R, n = c ? v : x;
7
+ return /* @__PURE__ */ a(p.Provider, { value: { selected: e }, children: /* @__PURE__ */ a(
8
+ "div",
9
+ {
10
+ ref: C,
11
+ style: {
12
+ width: "331px",
13
+ height: "132px",
14
+ padding: "12px",
15
+ flexDirection: "column",
16
+ alignItems: "flex-start",
17
+ gap: "12px",
18
+ borderRadius: "12px",
19
+ borderTop: `1px solid ${n}`,
20
+ borderRight: `1px solid ${n}`,
21
+ borderBottom: `2px solid ${n}`,
22
+ borderLeft: `4px solid ${n}`,
23
+ background: c ? g : b,
24
+ transition: "border-color 150ms ease, background 150ms ease",
25
+ ...t
26
+ },
27
+ className: d(
28
+ "relative flex cursor-pointer select-none",
29
+ "outline-none focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0",
30
+ r
31
+ ),
32
+ "data-component": "report-card",
33
+ "data-selected": e || void 0,
34
+ role: "option",
35
+ "aria-selected": e,
36
+ tabIndex: 0,
37
+ onMouseEnter: (i) => {
38
+ l(!0), f?.(i);
39
+ },
40
+ onMouseLeave: (i) => {
41
+ l(!1), m?.(i);
42
+ },
43
+ ...u,
44
+ children: o
45
+ }
46
+ ) });
47
+ }
48
+ );
49
+ E.displayName = "ReportCardRoot";
50
+ const D = ({ className: r }) => {
51
+ const { selected: e } = s.useContext(p);
52
+ return /* @__PURE__ */ a(
10
53
  "div",
11
54
  {
12
- ref: l,
13
- className: n(
14
- "relative flex max-w-[332px] shrink-0 p-3 flex-col items-start gap-[18px] rounded-lg border transition-colors cursor-pointer",
15
- "outline-none focus:outline-none focus-visible:outline-none",
16
- "focus:ring-0 focus-visible:ring-0 active:ring-0",
17
- "focus:ring-offset-0 focus-visible:ring-offset-0",
18
- "focus:border-stroke-hairline",
19
- e ? "border-stroke-hairline" : "border-stroke-hairline hover:border-brand hover:ring-1 hover:ring-brand focus:hover:ring-0",
55
+ className: d(
56
+ "w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0 transition-colors",
57
+ e ? "border-brand" : "border-[#C1C7D4]",
20
58
  r
21
59
  ),
22
- style: {
23
- width: 331.88,
24
- background: t ?? m[o]
25
- },
26
- "data-component": "report-card",
27
- "data-selected": e || void 0,
28
- role: "option",
29
- "aria-selected": e,
30
- tabIndex: 0,
31
- ...d,
32
- children: [
33
- e && /* @__PURE__ */ a(p, { size: 14, alt: "Selected", className: "absolute top-3 right-3 shrink-0" }),
34
- s
35
- ]
60
+ "aria-hidden": "true",
61
+ children: e && /* @__PURE__ */ a("div", { className: "w-2.5 h-2.5 rounded-full bg-brand" })
36
62
  }
37
- ) })
38
- );
39
- u.displayName = "ReportCardRoot";
40
- const g = i.forwardRef(
63
+ );
64
+ };
65
+ D.displayName = "ReportCardRadio";
66
+ const F = s.forwardRef(
41
67
  ({ className: r, children: e, ...o }, t) => /* @__PURE__ */ a(
42
68
  "div",
43
69
  {
44
70
  ref: t,
45
- className: n("flex flex-col items-start gap-3 w-full", r),
71
+ className: d("flex flex-col items-start gap-2 w-full", r),
46
72
  "data-slot": "report-card-content",
47
73
  ...o,
48
74
  children: e
49
75
  }
50
76
  )
51
77
  );
52
- g.displayName = "ReportCardContent";
53
- const x = i.forwardRef(
78
+ F.displayName = "ReportCardContent";
79
+ const N = s.forwardRef(
54
80
  ({ className: r, children: e, ...o }, t) => /* @__PURE__ */ a(
55
81
  "div",
56
82
  {
57
83
  ref: t,
58
- className: n(
59
- "flex items-center justify-center w-9 h-9 rounded-full bg-white shrink-0",
84
+ className: d(
85
+ "flex items-center justify-center shrink-0",
60
86
  r
61
87
  ),
62
88
  "data-slot": "report-card-icon",
63
89
  ...o,
64
- children: /* @__PURE__ */ a("div", { className: "w-6 h-6 flex items-center justify-center [&_svg]:w-6 [&_svg]:h-6", children: e })
90
+ children: e
65
91
  }
66
92
  )
67
93
  );
68
- x.displayName = "ReportCardIcon";
69
- const h = i.forwardRef(
94
+ N.displayName = "ReportCardIcon";
95
+ const w = s.forwardRef(
70
96
  ({ className: r, children: e, ...o }, t) => /* @__PURE__ */ a(
71
97
  "h3",
72
98
  {
73
99
  ref: t,
74
- className: n(
75
- "font-manrope text-[14px] font-semibold leading-[21px] text-[#0D152C]",
100
+ className: d(
101
+ "font-manrope text-[16px] font-medium leading-[125%] text-[#0D152C] capitalize",
76
102
  r
77
103
  ),
78
104
  ...o,
@@ -80,14 +106,27 @@ const h = i.forwardRef(
80
106
  }
81
107
  )
82
108
  );
83
- h.displayName = "ReportCardTitle";
84
- const R = i.forwardRef(
109
+ w.displayName = "ReportCardTitle";
110
+ const y = s.forwardRef(
111
+ ({ className: r, children: e, ...o }, t) => /* @__PURE__ */ a(
112
+ "div",
113
+ {
114
+ ref: t,
115
+ className: d("flex items-center gap-1 w-full", r),
116
+ "data-slot": "report-card-title-row",
117
+ ...o,
118
+ children: e
119
+ }
120
+ )
121
+ );
122
+ y.displayName = "ReportCardTitleRow";
123
+ const h = s.forwardRef(
85
124
  ({ className: r, children: e, ...o }, t) => /* @__PURE__ */ a(
86
125
  "p",
87
126
  {
88
127
  ref: t,
89
- className: n(
90
- "font-manrope text-[12px] font-medium leading-[134%] text-[#1F2B4D]",
128
+ className: d(
129
+ "font-manrope text-[12px] font-medium leading-[16px] text-[#60697D]",
91
130
  r
92
131
  ),
93
132
  ...o,
@@ -95,11 +134,13 @@ const R = i.forwardRef(
95
134
  }
96
135
  )
97
136
  );
98
- R.displayName = "ReportCardDescription";
137
+ h.displayName = "ReportCardDescription";
99
138
  export {
100
- g as ReportCardContent,
101
- R as ReportCardDescription,
102
- x as ReportCardIcon,
103
- u as ReportCardRoot,
104
- h as ReportCardTitle
139
+ F as ReportCardContent,
140
+ h as ReportCardDescription,
141
+ N as ReportCardIcon,
142
+ D as ReportCardRadio,
143
+ E as ReportCardRoot,
144
+ w as ReportCardTitle,
145
+ y as ReportCardTitleRow
105
146
  };
@@ -0,0 +1,5 @@
1
+ import * as L from "react";
2
+ const e = (t) => /* @__PURE__ */ L.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ L.createElement("path", { d: "M8 1.34619C8.23099 1.34619 8.45089 1.4067 8.66016 1.52783L13.3271 4.21143C13.5364 4.3326 13.699 4.492 13.8145 4.68994C13.9298 4.88785 13.9873 5.10785 13.9873 5.3501V10.6499C13.9873 10.8921 13.9298 11.1122 13.8145 11.3101C13.6989 11.5081 13.5365 11.6684 13.3271 11.7896L8.66016 14.4731C8.45097 14.5942 8.23089 14.6548 8 14.6548C7.76911 14.6548 7.54903 14.5942 7.33984 14.4731L2.67285 11.7896C2.46351 11.6684 2.30106 11.5081 2.18555 11.3101C2.07024 11.1122 2.0127 10.8921 2.0127 10.6499V5.3501C2.01271 5.10785 2.07015 4.88785 2.18555 4.68994C2.30101 4.492 2.46364 4.3326 2.67285 4.21143L7.33984 1.52783C7.54911 1.4067 7.76901 1.34619 8 1.34619ZM12.6602 6.05615L8.66016 8.37158L8.6543 8.36182V12.9722L8.67285 12.9614L12.6729 10.644L12.6787 10.6548V6.04541L12.6602 6.05615ZM5.34375 4.18896L4.04395 4.93896L4.02539 4.94971L4.04395 4.96143L7.99316 7.24365L7.9873 7.25537L8.00586 7.24463L9.30664 6.49463L9.3252 6.48389L9.30664 6.47314L5.35645 4.18896L5.34961 4.19971L5.3623 4.17822L5.34375 4.18896ZM7.99414 2.65576L6.69336 3.40576L6.6748 3.4165L6.69336 3.42725L10.6602 5.69482L10.6543 5.70459L10.6729 5.69482L11.9561 4.96143L11.9746 4.95068L11.9561 4.93896L8.00586 2.65576L8.0127 2.64502L7.99414 2.65576ZM7.33984 8.37256L3.33984 6.05615L3.32129 6.04541V10.6333H3.30859L3.32715 10.644L7.32715 12.9614L7.3457 12.9722V8.3833H7.3584L7.33984 8.37256Z", fill: "#1F2B4D", stroke: "#31416E", strokeWidth: 0.025 }));
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import * as t from "react";
2
+ const H = (e) => /* @__PURE__ */ t.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M1.33301 0.0126953H10.667C11.0302 0.0127724 11.3409 0.141682 11.5996 0.400391C11.8583 0.659099 11.9872 0.969823 11.9873 1.33301V10.667C11.9872 11.0302 11.8583 11.3409 11.5996 11.5996C11.3409 11.8583 11.0302 11.9872 10.667 11.9873H1.33301C0.969823 11.9872 0.659099 11.8583 0.400391 11.5996C0.141682 11.3409 0.0127724 11.0302 0.0126953 10.667V1.33301C0.0127725 0.969823 0.141682 0.659099 0.400391 0.400391C0.659099 0.141682 0.969823 0.0127725 1.33301 0.0126953ZM1.32129 10.6787H10.6787V8.4375H1.32129V10.6787ZM3.32129 8.91211V10.2207H2.0127V8.91211H3.32129ZM1.32129 7.12891H10.6787V4.87109H1.32129V7.12891ZM3.32129 5.3457V6.6543H2.0127V5.3457H3.32129ZM1.32129 3.5625H10.6787V1.32129H1.32129V3.5625ZM3.32129 1.7793V3.08789H2.0127V1.7793H3.32129Z", fill: "#1F2B4D", stroke: "#31416E", strokeWidth: 0.025 }));
3
+ export {
4
+ H as default
5
+ };
@@ -127,6 +127,8 @@ export declare const TrendingNeutral: IconComponent;
127
127
  export declare const IllustrationIcon1: IconComponent;
128
128
  export declare const Report1: ImageComponent;
129
129
  export declare const Report2: ImageComponent;
130
+ export declare const ReportExtract: IconComponent;
131
+ export declare const ProductBox: IconComponent;
130
132
  export declare const BillOrReceipt: ImageComponent;
131
133
  export declare const ChecklistWithPen: ImageComponent;
132
134
  export declare const Dollar: ImageComponent;