@xola/ui-kit 2.0.0-86 → 2.0.0-88
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/build/ui-kit.mjs +55 -31
- package/build/ui-kit.umd.js +10 -10
- package/package.json +1 -1
- package/tailwind.config.js +7 -0
package/build/ui-kit.mjs
CHANGED
|
@@ -93,8 +93,8 @@ const vt = {
|
|
|
93
93
|
}
|
|
94
94
|
}, to = {
|
|
95
95
|
tiny: "px-2 py-0.5 text-xs leading-xs",
|
|
96
|
-
small: "px-3 py-2 h-
|
|
97
|
-
medium: "px-4.5 py-3 h-
|
|
96
|
+
small: "px-3 py-2 h-7.5 text-sm leading-sm",
|
|
97
|
+
medium: "px-4.5 py-3 h-10 text-base leading-base",
|
|
98
98
|
large: "px-6 py-4 h-[50px] text-md leading-md"
|
|
99
99
|
}, fe = ({
|
|
100
100
|
as: e = "button",
|
|
@@ -195,7 +195,7 @@ const U1 = {
|
|
|
195
195
|
}, /* @__PURE__ */ n.createElement(st, {
|
|
196
196
|
size: "current",
|
|
197
197
|
color: "current",
|
|
198
|
-
className: "relative top-
|
|
198
|
+
className: "relative -top-0.25 text-white"
|
|
199
199
|
}))), /* @__PURE__ */ n.createElement("span", {
|
|
200
200
|
className: C(t ? "flex-shrink flex-grow opacity-0" : "opacity-100")
|
|
201
201
|
}, a));
|
|
@@ -263,7 +263,7 @@ const ir = {
|
|
|
263
263
|
large: "w-6 h-6"
|
|
264
264
|
}, p = (e) => {
|
|
265
265
|
const t = ({ size: o = "small", className: a, ...r }) => /* @__PURE__ */ n.createElement(e, {
|
|
266
|
-
className: C(ir[o], "relative top-
|
|
266
|
+
className: C(ir[o], "relative -top-0.25 inline-block", a),
|
|
267
267
|
...r
|
|
268
268
|
});
|
|
269
269
|
return t.propTypes = {
|
|
@@ -916,10 +916,10 @@ kn.propTypes = {
|
|
|
916
916
|
};
|
|
917
917
|
bt.Item = kn;
|
|
918
918
|
const ua = {
|
|
919
|
-
small: "max-w-
|
|
920
|
-
medium: "max-w-
|
|
921
|
-
large: "max-w-
|
|
922
|
-
huge: "max-w-
|
|
919
|
+
small: "max-w-100",
|
|
920
|
+
medium: "max-w-125",
|
|
921
|
+
large: "max-w-150",
|
|
922
|
+
huge: "max-w-200"
|
|
923
923
|
}, An = ({
|
|
924
924
|
size: e = "medium",
|
|
925
925
|
isOpen: t = !1,
|
|
@@ -1335,7 +1335,7 @@ const ui = li((e, t) => e(t), 500), Eo = ({
|
|
|
1335
1335
|
}, /* @__PURE__ */ n.createElement("div", {
|
|
1336
1336
|
...j({ className: "w-full relative rounded-md" })
|
|
1337
1337
|
}, /* @__PURE__ */ n.createElement("div", {
|
|
1338
|
-
className: "pointer-events-none absolute inset-y-0 top-
|
|
1338
|
+
className: "pointer-events-none absolute inset-y-0 -top-0.5 left-0 hidden items-center md:flex"
|
|
1339
1339
|
}, /* @__PURE__ */ n.createElement(xo, {
|
|
1340
1340
|
className: "h-4 w-4 text-gray-darker"
|
|
1341
1341
|
})), /* @__PURE__ */ n.createElement("input", {
|
|
@@ -5900,13 +5900,13 @@ const C1 = {
|
|
|
5900
5900
|
className: C("ui-tabs", "flex overflow-x-auto", C1[t], e),
|
|
5901
5901
|
...i
|
|
5902
5902
|
}, t === "default" ? /* @__PURE__ */ n.createElement("div", {
|
|
5903
|
-
className: "min-w-
|
|
5903
|
+
className: "min-w-10 flex-shrink-0 border-b border-gray-light"
|
|
5904
5904
|
}) : null, c.map((d, m) => it(d, {
|
|
5905
5905
|
variant: t,
|
|
5906
5906
|
isActive: m === o,
|
|
5907
5907
|
onClick: () => a == null ? void 0 : a(m)
|
|
5908
5908
|
})), t === "default" ? /* @__PURE__ */ n.createElement("div", {
|
|
5909
|
-
className: "min-w-
|
|
5909
|
+
className: "min-w-10 flex-grow border-b border-gray-light"
|
|
5910
5910
|
}) : null), u[o]);
|
|
5911
5911
|
};
|
|
5912
5912
|
at.propTypes = {
|
|
@@ -6425,39 +6425,41 @@ const U = {
|
|
|
6425
6425
|
}, M1 = ({
|
|
6426
6426
|
ranges: e = ["day", "week", "month", "quarter", "year"],
|
|
6427
6427
|
value: t,
|
|
6428
|
-
|
|
6429
|
-
|
|
6428
|
+
showApply: o = !0,
|
|
6429
|
+
onChange: a,
|
|
6430
|
+
onSubmit: r
|
|
6430
6431
|
}) => {
|
|
6431
|
-
const
|
|
6432
|
-
const
|
|
6433
|
-
|
|
6432
|
+
const i = (s) => {
|
|
6433
|
+
const c = s.target.value, u = Kl[c]();
|
|
6434
|
+
a(c, u);
|
|
6434
6435
|
};
|
|
6435
6436
|
return /* @__PURE__ */ n.createElement("div", {
|
|
6436
6437
|
className: "flex space-x-2"
|
|
6437
6438
|
}, /* @__PURE__ */ n.createElement(Et, {
|
|
6438
6439
|
size: "medium",
|
|
6439
6440
|
value: t,
|
|
6440
|
-
onChange:
|
|
6441
|
+
onChange: i,
|
|
6441
6442
|
className: "pr-8 leading-5"
|
|
6442
6443
|
}, /* @__PURE__ */ n.createElement("option", {
|
|
6443
6444
|
value: ""
|
|
6444
|
-
}, "Relative Date Range"), e.map((
|
|
6445
|
-
const
|
|
6445
|
+
}, "Relative Date Range"), e.map((s) => {
|
|
6446
|
+
const c = Ql[s];
|
|
6446
6447
|
return /* @__PURE__ */ n.createElement("optgroup", {
|
|
6447
|
-
key:
|
|
6448
|
-
label:
|
|
6449
|
-
},
|
|
6450
|
-
key:
|
|
6451
|
-
value:
|
|
6452
|
-
},
|
|
6453
|
-
})), /* @__PURE__ */ n.createElement(fe, {
|
|
6454
|
-
onClick:
|
|
6448
|
+
key: s,
|
|
6449
|
+
label: c.label
|
|
6450
|
+
}, c.options.map((u) => /* @__PURE__ */ n.createElement("option", {
|
|
6451
|
+
key: u.value,
|
|
6452
|
+
value: u.value
|
|
6453
|
+
}, u.label)));
|
|
6454
|
+
})), o && /* @__PURE__ */ n.createElement(fe, {
|
|
6455
|
+
onClick: r
|
|
6455
6456
|
}, "Apply"));
|
|
6456
6457
|
};
|
|
6457
6458
|
M1.propTypes = {
|
|
6458
6459
|
ranges: l.arrayOf(l.oneOf(["day", "week", "month", "quarter", "year"])),
|
|
6459
6460
|
onChange: l.func.isRequired,
|
|
6460
6461
|
onSubmit: l.func.isRequired,
|
|
6462
|
+
showApply: l.bool,
|
|
6461
6463
|
value: l.string
|
|
6462
6464
|
};
|
|
6463
6465
|
const ft = {
|
|
@@ -6541,7 +6543,7 @@ const ft = {
|
|
|
6541
6543
|
key: T.toString(),
|
|
6542
6544
|
value: !0,
|
|
6543
6545
|
className: C(
|
|
6544
|
-
"mx-6 mt-3 flex min-w-
|
|
6546
|
+
"mx-6 mt-3 flex min-w-40 cursor-pointer items-center justify-center rounded border border-gray py-3 hover:border-blue hover:bg-blue hover:text-white",
|
|
6545
6547
|
{
|
|
6546
6548
|
"border-blue bg-blue text-white": V(N).isSame(
|
|
6547
6549
|
V(t),
|
|
@@ -6553,7 +6555,7 @@ const ft = {
|
|
|
6553
6555
|
E(N, {}, D), B(N);
|
|
6554
6556
|
}
|
|
6555
6557
|
}, V(N).format("ddd DD MMMM")))) : /* @__PURE__ */ n.createElement("div", {
|
|
6556
|
-
className: "mx-6 mt-7 max-w-
|
|
6558
|
+
className: "mx-6 mt-7 max-w-40 items-center justify-center rounded bg-yellow-lighter p-3"
|
|
6557
6559
|
}, "There is no future availability for this product.")) : null, /* @__PURE__ */ n.createElement(j1, {
|
|
6558
6560
|
showOutsideDays: !0,
|
|
6559
6561
|
className: C(
|
|
@@ -7208,11 +7210,18 @@ const ic = {
|
|
|
7208
7210
|
56: "224px",
|
|
7209
7211
|
60: "240px",
|
|
7210
7212
|
64: "256px",
|
|
7213
|
+
65: "260px",
|
|
7211
7214
|
72: "288px",
|
|
7212
7215
|
75: "300px",
|
|
7213
7216
|
80: "320px",
|
|
7214
7217
|
82: "350px",
|
|
7215
7218
|
96: "384px",
|
|
7219
|
+
100: "400px",
|
|
7220
|
+
105: "420px",
|
|
7221
|
+
125: "500px",
|
|
7222
|
+
140: "560px",
|
|
7223
|
+
150: "600px",
|
|
7224
|
+
200: "800px",
|
|
7216
7225
|
"0.25": "1px",
|
|
7217
7226
|
"0.5": "2px",
|
|
7218
7227
|
"0.75": "3px",
|
|
@@ -7339,11 +7348,18 @@ const ic = {
|
|
|
7339
7348
|
56: "224px",
|
|
7340
7349
|
60: "240px",
|
|
7341
7350
|
64: "256px",
|
|
7351
|
+
65: "260px",
|
|
7342
7352
|
72: "288px",
|
|
7343
7353
|
75: "300px",
|
|
7344
7354
|
80: "320px",
|
|
7345
7355
|
82: "350px",
|
|
7346
7356
|
96: "384px",
|
|
7357
|
+
100: "400px",
|
|
7358
|
+
105: "420px",
|
|
7359
|
+
125: "500px",
|
|
7360
|
+
140: "560px",
|
|
7361
|
+
150: "600px",
|
|
7362
|
+
200: "800px",
|
|
7347
7363
|
"0.25": "1px",
|
|
7348
7364
|
"0.5": "2px",
|
|
7349
7365
|
"0.75": "3px",
|
|
@@ -7385,11 +7401,18 @@ const ic = {
|
|
|
7385
7401
|
56: "224px",
|
|
7386
7402
|
60: "240px",
|
|
7387
7403
|
64: "256px",
|
|
7404
|
+
65: "260px",
|
|
7388
7405
|
72: "288px",
|
|
7389
7406
|
75: "300px",
|
|
7390
7407
|
80: "320px",
|
|
7391
7408
|
82: "350px",
|
|
7392
7409
|
96: "384px",
|
|
7410
|
+
100: "400px",
|
|
7411
|
+
105: "420px",
|
|
7412
|
+
125: "500px",
|
|
7413
|
+
140: "560px",
|
|
7414
|
+
150: "600px",
|
|
7415
|
+
200: "800px",
|
|
7393
7416
|
"0.25": "1px",
|
|
7394
7417
|
"0.5": "2px",
|
|
7395
7418
|
"0.75": "3px",
|
|
@@ -8173,7 +8196,7 @@ const g4 = p(({ className: e, ...t }) => /* @__PURE__ */ n.createElement("svg",
|
|
|
8173
8196
|
height: "24",
|
|
8174
8197
|
fill: "none",
|
|
8175
8198
|
viewBox: "0 0 96 24",
|
|
8176
|
-
className: C("h-
|
|
8199
|
+
className: C("h-6 w-24", e),
|
|
8177
8200
|
...t
|
|
8178
8201
|
}, /* @__PURE__ */ n.createElement("path", {
|
|
8179
8202
|
stroke: "#BDC0C6",
|
|
@@ -8215,7 +8238,7 @@ const g4 = p(({ className: e, ...t }) => /* @__PURE__ */ n.createElement("svg",
|
|
|
8215
8238
|
height: "24",
|
|
8216
8239
|
fill: "none",
|
|
8217
8240
|
viewBox: "0 0 96 24",
|
|
8218
|
-
className: C("h-
|
|
8241
|
+
className: C("h-6 w-24", e),
|
|
8219
8242
|
...t
|
|
8220
8243
|
}, /* @__PURE__ */ n.createElement("path", {
|
|
8221
8244
|
stroke: "#BDC0C6",
|
|
@@ -11239,6 +11262,7 @@ export {
|
|
|
11239
11262
|
Y2 as ReceptionBellIcon,
|
|
11240
11263
|
J2 as ReceptionBellMoneyIcon,
|
|
11241
11264
|
Z2 as RefreshIcon,
|
|
11265
|
+
M1 as RelativeDateRange,
|
|
11242
11266
|
Y4 as RosterIcon,
|
|
11243
11267
|
J4 as RoundedSquareIcon,
|
|
11244
11268
|
U2 as RulerIcon,
|