@caseparts-org/caseblocks 0.0.251 → 0.0.253
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/Cart.module-CV0POv9_.js +25 -0
- package/dist/{Table-f_q_CCA-.js → Table-_UT9976g.js} +63 -63
- package/dist/assets/Availability.css +1 -1
- package/dist/assets/Cart.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/atoms/Icon/Icon.d.ts +3 -2
- package/dist/atoms/Icon/Icon.js +33 -29
- package/dist/atoms/Icon/Icon.stories.d.ts +5 -0
- package/dist/atoms/Icon/Icon.stories.js +15 -11
- package/dist/main-client.js +1 -1
- package/dist/molecules/Availability/Availability.d.ts +6 -0
- package/dist/molecules/Availability/Availability.js +109 -57
- package/dist/molecules/Availability/Availability.stories.d.ts +4 -0
- package/dist/molecules/Availability/Availability.stories.js +33 -17
- package/dist/molecules/Cart/Cart.js +1 -1
- package/dist/molecules/Cart/CartPart.js +1 -1
- package/dist/molecules/Cart/CartSlideInPanel.js +8 -8
- package/dist/molecules/Modal/Modal.d.ts +1 -0
- package/dist/molecules/Modal/Modal.js +56 -44
- package/dist/molecules/Modal/Modal.stories.d.ts +1 -1
- package/dist/molecules/Modal/Modal.stories.js +50 -52
- package/dist/molecules/Table/Table.js +1 -1
- package/dist/molecules/Table/Table.stories.js +1 -1
- package/package.json +1 -1
- package/dist/Cart.module-CqE2A_OG.js +0 -25
|
@@ -1,81 +1,79 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Modal as
|
|
4
|
-
import { Text as
|
|
5
|
-
import { Button as
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import { Modal as n } from "./Modal.js";
|
|
4
|
+
import { Text as o } from "../../atoms/Text/Text.js";
|
|
5
|
+
import { Button as a } from "../../atoms/Button/Button.js";
|
|
6
6
|
const v = {
|
|
7
7
|
title: "Case Parts/Molecules/Modal",
|
|
8
|
-
component:
|
|
8
|
+
component: n,
|
|
9
|
+
// tags: ["autodocs"],
|
|
9
10
|
argTypes: {
|
|
10
11
|
isOpen: { control: { type: "boolean" }, description: "Controls visibility of the modal" },
|
|
11
12
|
closeOnOverlayClick: { control: { type: "boolean" }, description: "Close when clicking on overlay" }
|
|
12
13
|
},
|
|
13
14
|
args: { isOpen: !0, closeOnOverlayClick: !0 }
|
|
14
15
|
};
|
|
15
|
-
function C(
|
|
16
|
-
const [
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */ e(
|
|
19
|
-
/* @__PURE__ */ n
|
|
20
|
-
/* @__PURE__ */ n
|
|
21
|
-
/* @__PURE__ */ e(
|
|
22
|
-
/* @__PURE__ */ e(
|
|
16
|
+
function C() {
|
|
17
|
+
const [t, i] = r(!0);
|
|
18
|
+
return /* @__PURE__ */ l("div", { style: { padding: 24 }, children: [
|
|
19
|
+
/* @__PURE__ */ e(a, { variant: "primary", size: "md", onClick: () => i(!0), children: "Open Modal" }),
|
|
20
|
+
/* @__PURE__ */ l(n, { isOpen: t, onClose: () => i(!1), children: [
|
|
21
|
+
/* @__PURE__ */ l(n.Toolbar, { variant: "plain", children: [
|
|
22
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "lg", variant: "display", children: "Plain Toolbar" }),
|
|
23
|
+
/* @__PURE__ */ e(n.Header, { align: "right", children: /* @__PURE__ */ e(n.CloseButton, { onClick: () => i(!1) }) })
|
|
23
24
|
] }),
|
|
24
|
-
/* @__PURE__ */ n
|
|
25
|
-
/* @__PURE__ */ e(r, { as: "p", size: "md", children: "This is a reusable modal with a non-scrollable toolbar. Click the overlay or the X to close." }),
|
|
26
|
-
/* @__PURE__ */ e("div", { style: { height: 600 }, children: /* @__PURE__ */ e(r, { as: "p", size: "sm", children: "Scrollable content spacer..." }) })
|
|
27
|
-
] })
|
|
25
|
+
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "md", children: "This modal uses a toolbar without a background or bottom border." }) })
|
|
28
26
|
] })
|
|
29
27
|
] });
|
|
30
28
|
}
|
|
31
|
-
const
|
|
32
|
-
render: (
|
|
29
|
+
const O = {
|
|
30
|
+
render: () => /* @__PURE__ */ e(C, {})
|
|
33
31
|
};
|
|
34
|
-
function
|
|
35
|
-
const [
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */ e(
|
|
38
|
-
/* @__PURE__ */ n
|
|
39
|
-
/* @__PURE__ */ n
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
/* @__PURE__ */ e(
|
|
32
|
+
function u() {
|
|
33
|
+
const [t, i] = r(!1), [h, s] = r(!1), [m, d] = r(!1), [p, c] = r(!1);
|
|
34
|
+
return /* @__PURE__ */ l("div", { style: { width: "200px", display: "grid", gap: 12 }, children: [
|
|
35
|
+
/* @__PURE__ */ e(a, { variant: "secondary", size: "sm", onClick: () => i(!0), children: "Small Header" }),
|
|
36
|
+
/* @__PURE__ */ l(n, { isOpen: t, onClose: () => i(!1), children: [
|
|
37
|
+
/* @__PURE__ */ l(n.Toolbar, { children: [
|
|
38
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "sm", variant: "display", children: "Small Header" }),
|
|
39
|
+
/* @__PURE__ */ e(n.Header, { align: "right", children: /* @__PURE__ */ e(n.CloseButton, { size: "sm", onClick: () => i(!1) }) })
|
|
42
40
|
] }),
|
|
43
|
-
/* @__PURE__ */ e(
|
|
41
|
+
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "sm", children: "Small header modal content." }) })
|
|
44
42
|
] }),
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
/* @__PURE__ */ n
|
|
47
|
-
/* @__PURE__ */ n
|
|
48
|
-
/* @__PURE__ */ e(
|
|
49
|
-
/* @__PURE__ */ e(
|
|
43
|
+
/* @__PURE__ */ e(a, { variant: "primary", size: "md", onClick: () => s(!0), children: "Medium Header" }),
|
|
44
|
+
/* @__PURE__ */ l(n, { isOpen: h, onClose: () => s(!1), children: [
|
|
45
|
+
/* @__PURE__ */ l(n.Toolbar, { children: [
|
|
46
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "md", variant: "display", children: "Medium Header" }),
|
|
47
|
+
/* @__PURE__ */ e(n.Header, { align: "right", children: /* @__PURE__ */ e(n.CloseButton, { size: "md", onClick: () => s(!1) }) })
|
|
50
48
|
] }),
|
|
51
|
-
/* @__PURE__ */ e(
|
|
49
|
+
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "md", children: "Medium header modal content." }) })
|
|
52
50
|
] }),
|
|
53
|
-
/* @__PURE__ */ e(
|
|
54
|
-
/* @__PURE__ */ n
|
|
55
|
-
/* @__PURE__ */ n
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
/* @__PURE__ */ e(
|
|
51
|
+
/* @__PURE__ */ e(a, { variant: "cta-primary", size: "lg", onClick: () => d(!0), children: "Large Header" }),
|
|
52
|
+
/* @__PURE__ */ l(n, { isOpen: m, onClose: () => d(!1), children: [
|
|
53
|
+
/* @__PURE__ */ l(n.Toolbar, { children: [
|
|
54
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "lg", variant: "display", children: "Large Header" }),
|
|
55
|
+
/* @__PURE__ */ e(n.Header, { align: "right", children: /* @__PURE__ */ e(n.CloseButton, { size: "md", onClick: () => d(!1) }) })
|
|
58
56
|
] }),
|
|
59
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "lg", children: "Large header modal content." }) })
|
|
60
58
|
] }),
|
|
61
|
-
/* @__PURE__ */ e(
|
|
62
|
-
/* @__PURE__ */ n
|
|
63
|
-
/* @__PURE__ */ n
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
/* @__PURE__ */ n
|
|
59
|
+
/* @__PURE__ */ e(a, { variant: "tertiary", size: "md", onClick: () => c(!0), children: "Custom Toolbar" }),
|
|
60
|
+
/* @__PURE__ */ l(n, { isOpen: p, onClose: () => c(!1), children: [
|
|
61
|
+
/* @__PURE__ */ l(n.Toolbar, { children: [
|
|
62
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "md", variant: "display", children: "Custom Toolbar" }),
|
|
63
|
+
/* @__PURE__ */ l(n.Header, { align: "right", children: [
|
|
66
64
|
/* @__PURE__ */ e("button", { onClick: () => alert("Sent!"), children: "Send Email" }),
|
|
67
|
-
/* @__PURE__ */ e(
|
|
65
|
+
/* @__PURE__ */ e(n.CloseButton, { size: "md", onClick: () => c(!1) })
|
|
68
66
|
] })
|
|
69
67
|
] }),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "md", children: "Modal with custom toolbar functions." }) })
|
|
71
69
|
] })
|
|
72
70
|
] });
|
|
73
71
|
}
|
|
74
|
-
const
|
|
75
|
-
render: () => /* @__PURE__ */ e(
|
|
72
|
+
const H = {
|
|
73
|
+
render: () => /* @__PURE__ */ e(u, {})
|
|
76
74
|
};
|
|
77
75
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
O as PlainToolbar,
|
|
77
|
+
H as Sizes,
|
|
80
78
|
v as default
|
|
81
79
|
};
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import "../../atoms/HideAt.js";
|
|
5
|
-
import { T as e, T } from "../../Table-
|
|
5
|
+
import { T as e, T } from "../../Table-_UT9976g.js";
|
|
6
6
|
import "../../atoms/Icon/Icon.js";
|
|
7
7
|
export {
|
|
8
8
|
e as Table,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import R, { useState as d, useEffect as P } from "react";
|
|
3
|
-
import { T as t, s as x } from "../../Table-
|
|
3
|
+
import { T as t, s as x } from "../../Table-_UT9976g.js";
|
|
4
4
|
const v = {
|
|
5
5
|
title: "Case Parts/Molecules/Table",
|
|
6
6
|
component: t,
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import './assets/Cart.css';const t = "_cartIconButton_16z8i_2", o = "_count_16z8i_15", e = "_cartContainer_16z8i_30", n = "_headerWrapper_16z8i_41", _ = "_header_16z8i_41", i = "_cartItems_16z8i_59", a = "_cartItem_16z8i_59", c = "_topRow_16z8i_85", r = "_itemInfo_16z8i_92", s = "_editUnit_16z8i_97", m = "_purchaseInformation_16z8i_113", I = "_availabilitySlot_16z8i_119", u = "_priceSlot_16z8i_122", z = "_itemManagement_16z8i_125", l = "_quantitySlot_16z8i_131", p = "_itemImage_16z8i_141", h = "_removeItem_16z8i_144", d = "_noItems_16z8i_154", S = "_subtotal_16z8i_161", y = "_checkoutButton_16z8i_168", b = {
|
|
2
|
-
cartIconButton: t,
|
|
3
|
-
count: o,
|
|
4
|
-
cartContainer: e,
|
|
5
|
-
headerWrapper: n,
|
|
6
|
-
header: _,
|
|
7
|
-
cartItems: i,
|
|
8
|
-
cartItem: a,
|
|
9
|
-
topRow: c,
|
|
10
|
-
itemInfo: r,
|
|
11
|
-
editUnit: s,
|
|
12
|
-
purchaseInformation: m,
|
|
13
|
-
availabilitySlot: I,
|
|
14
|
-
priceSlot: u,
|
|
15
|
-
itemManagement: z,
|
|
16
|
-
quantitySlot: l,
|
|
17
|
-
itemImage: p,
|
|
18
|
-
removeItem: h,
|
|
19
|
-
noItems: d,
|
|
20
|
-
subtotal: S,
|
|
21
|
-
checkoutButton: y
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
b as s
|
|
25
|
-
};
|